/* ============================================================
   J2ST.ICU — ULTIMATE VOID REDESIGN (v4.0)
   Theme: Absolute Zero / Deep Gray Premium
   ============================================================ */

:root {
    --bg-void: #000000;
    --bg-surface: #0a0a0a;
    --bg-card: rgba(14, 14, 14, 0.7);
    --bg-sidebar: #050505;
    
    --accent-silver: #ffffff;
    --accent-gray: #a1a1aa;
    --accent-border: rgba(255, 255, 255, 0.06);
    --accent-hover: rgba(255, 255, 255, 0.1);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    
    --success: #ffffff; /* Success is also white for premium feel */
    --danger: #ff4d4d;
    
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.8);
    --transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===== BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
}

body {
    background: var(--bg-void);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch !important; /* Full width override */
}

/* Atmosphere */
.void-atmosphere {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #080808 0%, #000000 100%);
}

.grid-field {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle, black, transparent 80%);
}

/* ===== LAYOUT ===== */
.dash-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    padding: 0;
    gap: 0;
}

/* SIDEBAR */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--accent-border);
    display: flex;
    flex-direction: column;
    padding: 32px 20px;
    box-shadow: var(--shadow-premium);
    z-index: 10;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px 32px;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    filter: invert(1);
}

.brand-name {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.nav-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 14px 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-item i {
    width: 18px;
    display: flex;
    justify-content: center;
    opacity: 0.6;
}

.nav-item i img {
    width: 18px;
    filter: invert(1);
}

.nav-item:hover, .nav-item.active {
    background: var(--accent-hover);
    color: var(--text-primary);
}

.nav-item.active i {
    opacity: 1;
}

.nav-item.danger:hover {
    color: var(--danger);
    background: rgba(255, 77, 77, 0.05);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 32px 40px;
    background: rgba(0,0,0,0.2);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 20px;
}

.page-info h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.page-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-profile-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--accent-border);
    padding: 6px 14px 6px 6px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.user-profile-chip:hover {
    border-color: rgba(255,255,255,0.2);
}

.chip-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.chip-name {
    font-size: 13px;
    font-weight: 700;
}

/* PANELS */
.tab-panel {
    display: none;
    height: 100%;
    overflow-y: auto;
    padding-right: 8px;
}

.tab-panel.active {
    display: block;
}

/* Scrollbar Style */
.tab-panel::-webkit-scrollbar {
    width: 4px;
}
.tab-panel::-webkit-scrollbar-track {
    background: transparent;
}
.tab-panel::-webkit-scrollbar-thumb {
    background: var(--accent-border);
    border-radius: 10px;
}

/* TOAST */
.toast-notif {
    position: fixed;
    top: 30px;
    right: 30px;
    background: #111;
    border: 1px solid var(--accent-border);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.toast-notif.active {
    transform: translateX(0);
}

.toast-notif i { color: #fff; font-size: 18px; }
.toast-notif.error i { color: var(--danger); }
.toast-notif span { font-size: 14px; font-weight: 700; }

/* SOCIAL SELECTOR GRID */
.social-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.social-platform-item {
    aspect-ratio: 1;
    background: #0e0e0e;
    border: 1px solid var(--accent-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.social-platform-item:hover {
    background: var(--accent-hover);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.social-platform-item i {
    transition: transform 0.3s ease;
    pointer-events: none;
}

.social-platform-item:hover i {
    transform: scale(1.2);
}

.social-platform-item.active {
    background: #fff;
    color: #000;
}

/* BADGE COLLECTION STYLES */
.badge-collect-item {
    border: 1px solid var(--accent-border);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.badge-collect-item.locked {
    opacity: 0.6;
    border-style: dashed;
}

.badge-collect-item.owned {
    opacity: 1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.badge-collect-item.owned:hover {
    transform: translateY(-5px);
    border-color: #fff;
    box-shadow: 0 10px 30px rgba(255,255,255,0.05);
}

.badge-status-icon {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .sidebar { width: 80px; }
    .brand-name, .nav-label, .nav-item span { display: none; }
    .nav-item { justify-content: center; }
}
