/* ===========================
   GameTrade Pro - Main CSS
   =========================== */

:root {
    --bg-primary: #0d0d1a;
    --bg-secondary: #12122a;
    --bg-card: #1a1a35;
    --bg-card-hover: #1f1f40;
    --border: #2a2a4a;
    --border-light: #3a3a5a;
    --purple: #7c3aed;
    --purple-light: #9d5cf0;
    --purple-dark: #5b21b6;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --green: #10b981;
    --red: #ef4444;
    --orange: #f59e0b;
    --pink: #ec4899;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --gradient: linear-gradient(135deg, #7c3aed, #3b82f6);
    --gradient-fire: linear-gradient(135deg, #f59e0b, #ef4444);
    --gradient-nature: linear-gradient(135deg, #10b981, #06b6d4);
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-purple: 0 4px 24px rgba(124,58,237,0.3);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; }

/* ============ LAYOUT ============ */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.main-content { padding-top: 140px; padding-bottom: 60px; min-height: calc(100vh - 300px); }

/* ============ NAVBAR ============ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(13,13,26,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar > .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; gap: 16px;
}

.navbar-brand {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700;
    font-size: 1.2rem; color: var(--text-primary);
    text-decoration: none;
}

.brand-icon { font-size: 1.4rem; }
.brand-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.navbar-center { flex: 1; max-width: 480px; }

.search-form { display: flex; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 50px; overflow: hidden; }
.search-input { flex: 1; background: none; border: none; outline: none; padding: 10px 18px; color: var(--text-primary); font-size: 0.9rem; }
.search-input::placeholder { color: var(--text-muted); }
.search-btn { background: var(--gradient); border: none; padding: 10px 18px; cursor: pointer; color: white; }
.search-btn:hover { opacity: 0.9; }

.navbar-actions { display: flex; align-items: center; gap: 10px; }

.category-bar {
    background: var(--bg-secondary); border-top: 1px solid var(--border);
    overflow-x: auto; scrollbar-width: none;
}
.category-bar::-webkit-scrollbar { display: none; }
.category-bar > .container {
    display: flex; gap: 4px; padding: 8px 20px;
    white-space: nowrap; align-items: center;
}
.cat-link {
    padding: 6px 14px; border-radius: 50px; font-size: 0.82rem; font-weight: 500;
    color: var(--text-secondary); transition: var(--transition); cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.cat-link:hover { background: var(--bg-card); color: var(--text-primary); }
.cat-link.active { background: var(--purple); color: white; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600;
    font-size: 0.9rem; cursor: pointer; border: none; transition: var(--transition);
    text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gradient); color: white; box-shadow: var(--shadow-purple); }
.btn-primary:hover { box-shadow: 0 6px 30px rgba(124,58,237,0.5); }
.btn-purple { background: var(--purple); color: white; }
.btn-purple:hover { background: var(--purple-light); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-light); }
.btn-outline:hover { background: var(--bg-card); border-color: var(--purple); color: var(--purple); }
.btn-success { background: var(--green); color: white; }
.btn-danger { background: var(--red); color: white; }
.btn-warning { background: var(--orange); color: #1a1a1a; }
.btn-secondary { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--purple); color: var(--purple); }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-wa { background: #25d366; color: white; }
.btn-wa:hover { background: #1ebe57; box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
.btn-icon { padding: 8px; width: 36px; height: 36px; justify-content: center; }

/* ============ CARDS ============ */
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: var(--transition);
}
.card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-body { padding: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.card-footer { padding: 16px 20px; border-top: 1px solid var(--border); }

/* ============ GAME ACCOUNT CARD ============ */
.accounts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

.account-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all 0.25s ease; cursor: pointer; position: relative;
}
.account-card:hover {
    border-color: var(--purple); transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(124,58,237,0.25);
}
.account-card.featured { border-color: var(--orange); }
.account-card.featured::before {
    content: '⭐ Featured'; position: absolute; top: 10px; left: 10px;
    background: var(--gradient-fire); color: white; font-size: 0.7rem;
    font-weight: 700; padding: 3px 10px; border-radius: 20px; z-index: 1;
}

.account-card-img {
    width: 100%; height: 180px; object-fit: cover;
    background: linear-gradient(135deg, #1a1a35, #2a1a4a);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; position: relative; overflow: hidden;
}
.account-card-img img { width: 100%; height: 100%; object-fit: cover; }
.account-card-img .no-img { opacity: 0.4; }

.account-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; }

.account-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 50px; padding: 3px 10px; font-size: 0.72rem;
    font-weight: 600; color: var(--text-secondary); margin-bottom: 8px;
    width: fit-content;
}

.account-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; line-height: 1.3; color: var(--text-primary); }

.account-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; flex: 1; align-content: flex-start; }
.spec-tag {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 6px; padding: 3px 8px; font-size: 0.72rem; color: var(--text-secondary);
    display: flex; align-items: center; gap: 4px;
}

.account-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 12px; margin-top: auto;
    border-top: 1px solid var(--border-light);
    background: transparent;
}
.account-price {
    font-size: 1.15rem; font-weight: 800;
    color: var(--purple-light);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.seller-info { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-secondary); }
.seller-avatar-sm { width: 22px; height: 22px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; color: white; flex-shrink: 0; }

/* ============ STATUS BADGES ============ */
.status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600;
}
.status-active { background: rgba(16,185,129,0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.status-pending { background: rgba(245,158,11,0.15); color: var(--orange); border: 1px solid rgba(245,158,11,0.3); }
.status-sold { background: rgba(100,116,139,0.15); color: var(--text-muted); border: 1px solid rgba(100,116,139,0.3); }
.status-rejected { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.status-suspended { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.status-connected { background: rgba(16,185,129,0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.status-disconnected { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }

/* ============ FORMS ============ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.form-control {
    width: 100%; background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 11px 14px; color: var(--text-primary);
    font-size: 0.9rem; transition: var(--transition); font-family: inherit;
    outline: none;
}
.form-control:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-error { color: var(--red); font-size: 0.8rem; margin-top: 4px; }

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border); border-radius: var(--radius);
    padding: 40px 20px; text-align: center; cursor: pointer;
    transition: var(--transition); position: relative;
}
.upload-area:hover, .upload-area.drag-over { border-color: var(--purple); background: rgba(124,58,237,0.05); }
.upload-area input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload-icon { font-size: 2.5rem; margin-bottom: 10px; color: var(--text-muted); }
.upload-text { font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.upload-hint { font-size: 0.8rem; color: var(--text-muted); }

.image-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 12px; }
.image-preview-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--bg-secondary); }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-item .remove-img { position: absolute; top: 4px; right: 4px; background: rgba(239,68,68,0.9); color: white; border: none; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-size: 11px; display: flex; align-items: center; justify-content: center; }

/* ============ TABLES ============ */
.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { background: var(--bg-secondary); padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.88rem; vertical-align: middle; }
.table tr:hover td { background: rgba(124,58,237,0.04); }
.table tr:last-child td { border-bottom: none; }

/* ============ STATS CARDS ============ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    display: flex; align-items: flex-start; gap: 14px;
    transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-light); }
.stat-icon { width: 46px; height: 46px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.stat-icon.purple { background: rgba(124,58,237,0.15); color: var(--purple); }
.stat-icon.blue { background: rgba(59,130,246,0.15); color: var(--blue); }
.stat-icon.green { background: rgba(16,185,129,0.15); color: var(--green); }
.stat-icon.orange { background: rgba(245,158,11,0.15); color: var(--orange); }
.stat-icon.red { background: rgba(239,68,68,0.15); color: var(--red); }
.stat-icon.cyan { background: rgba(6,182,212,0.15); color: var(--cyan); }
.stat-number { font-size: 1.7rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ============ SIDEBAR LAYOUT ============ */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.sidebar {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); position: sticky; top: 150px;
    overflow: hidden;
}
.sidebar-header { padding: 20px; border-bottom: 1px solid var(--border); }
.sidebar-user { display: flex; align-items: center; gap: 12px; }
.sidebar-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; color: white; flex-shrink: 0; }
.sidebar-username { font-weight: 700; font-size: 0.95rem; }
.sidebar-role { font-size: 0.75rem; color: var(--text-muted); }

.sidebar-nav { padding: 10px; }
.sidebar-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-weight: 500; font-size: 0.88rem;
    transition: var(--transition); margin-bottom: 2px;
}
.sidebar-item:hover { background: var(--bg-secondary); color: var(--text-primary); }
.sidebar-item.active { background: rgba(124,58,237,0.15); color: var(--purple); }
.sidebar-item i { width: 18px; text-align: center; }
.sidebar-divider { border: none; border-top: 1px solid var(--border); margin: 8px 10px; }
.sidebar-badge { background: var(--purple); color: white; border-radius: 50px; padding: 1px 8px; font-size: 0.7rem; margin-left: auto; }

/* ============ SECTION HEADERS ============ */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.section-title i { color: var(--purple); }
.page-header { margin-bottom: 32px; }
.page-title { font-size: 1.6rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; margin-bottom: 6px; }
.page-subtitle { color: var(--text-secondary); font-size: 0.92rem; }

/* ============ HERO SECTION ============ */
.hero {
    background: linear-gradient(135deg, rgba(124,58,237,0.1) 0%, rgba(59,130,246,0.05) 100%);
    border-bottom: 1px solid var(--border);
    padding: 40px 0 30px;
    margin-bottom: 32px;
}
.hero-content { text-align: center; }
.hero-title { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; }
.hero-title span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { color: var(--text-secondary); font-size: 1rem; max-width: 500px; margin: 0 auto 24px; }
.hero-stats { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-number { font-size: 1.5rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stat-label { font-size: 0.78rem; color: var(--text-muted); }

/* ============ FLASH MESSAGES ============ */
.flash-message {
    position: fixed; top: 80px; right: 20px; z-index: 9999;
    padding: 14px 20px; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px; max-width: 400px;
    animation: slideInRight 0.3s ease; box-shadow: var(--shadow);
}
.flash-success { background: rgba(16,185,129,0.95); color: white; }
.flash-error { background: rgba(239,68,68,0.95); color: white; }
.flash-warning { background: rgba(245,158,11,0.95); color: #1a1a1a; }
.flash-info { background: rgba(59,130,246,0.95); color: white; }
.flash-message button { background: none; border: none; cursor: pointer; color: inherit; margin-left: auto; opacity: 0.7; font-size: 1rem; }
.flash-message.fade-out { animation: fadeOut 0.4s ease forwards; }

/* ============ NOTIFICATIONS ============ */
.notif-wrapper { position: relative; }
.notif-btn {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-secondary); position: relative; transition: var(--transition);
}
.notif-btn:hover { border-color: var(--purple); color: var(--text-primary); }
.notif-badge {
    position: absolute; top: -5px; right: -5px;
    background: var(--red); color: white; border-radius: 50%;
    width: 18px; height: 18px; font-size: 0.65rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.notif-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 320px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); z-index: 999;
    display: none; overflow: hidden;
}
.notif-dropdown.show { display: block; }
.notif-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 0.88rem; }
.notif-header a { font-size: 0.78rem; color: var(--purple); }
.notif-empty { padding: 30px; text-align: center; color: var(--text-muted); }
.notif-empty i { font-size: 2rem; margin-bottom: 8px; display: block; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: var(--transition); }
.notif-item:hover { background: var(--bg-secondary); }
.notif-item:last-child { border-bottom: none; }
.notif-title { font-weight: 600; font-size: 0.85rem; margin-bottom: 2px; }
.notif-msg { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 4px; }
.notif-time { font-size: 0.72rem; color: var(--text-muted); }

/* ============ USER MENU ============ */
.user-menu { position: relative; }
.user-btn {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 6px 12px;
    cursor: pointer; color: var(--text-primary); font-size: 0.88rem; transition: var(--transition);
}
.user-btn:hover { border-color: var(--purple); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; color: white; }
.user-avatar.large { width: 48px; height: 48px; font-size: 1.1rem; }
.user-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 200px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); z-index: 999;
    display: none; overflow: hidden;
}
.user-dropdown.show { display: block; }
.user-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--text-secondary); font-size: 0.88rem; transition: var(--transition); }
.user-dropdown a:hover { background: var(--bg-secondary); color: var(--text-primary); }
.user-dropdown .text-danger { color: var(--red) !important; }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* ============ AUTH PAGES ============ */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; padding-top: 120px; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .brand-icon { font-size: 3rem; display: block; margin-bottom: 8px; }
.auth-logo h1 { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.auth-logo p { color: var(--text-muted); font-size: 0.88rem; margin-top: 4px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-muted); font-size: 0.82rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-top: 1px solid var(--border); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--text-muted); }
.auth-footer a { color: var(--purple); font-weight: 600; }

/* ============ MOBILE SIDEBAR ============ */
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1001; display: none; }
.mobile-overlay.show { display: block; }
.mobile-sidebar { position: fixed; top: 0; left: -280px; width: 280px; height: 100vh; background: var(--bg-card); border-right: 1px solid var(--border); z-index: 1002; transition: left 0.3s ease; overflow-y: auto; }
.mobile-sidebar.show { left: 0; }
.mobile-sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); }
.mobile-sidebar-header button { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1.2rem; }
.mobile-sidebar-body { padding: 16px; }
.mobile-nav-item { display: block; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--text-secondary); font-weight: 500; margin-bottom: 2px; transition: var(--transition); }
.mobile-nav-item:hover { background: var(--bg-secondary); color: var(--text-primary); }
.mobile-nav-item.text-danger { color: var(--red); }
.mobile-section-title { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); padding: 12px 14px 6px; }
.mobile-user-info { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg-secondary); border-radius: var(--radius-sm); margin-bottom: 8px; }
.mobile-menu-btn { display: none; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); width: 38px; height: 38px; cursor: pointer; color: var(--text-secondary); font-size: 1rem; align-items: center; justify-content: center; }

/* ============ DETAIL PAGE ============ */
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.image-gallery .main-img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius-lg); background: var(--bg-card); }
.image-gallery .no-img-placeholder { width: 100%; height: 320px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--text-muted); }
.thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.thumb-img { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.thumb-img.active, .thumb-img:hover { border-color: var(--purple); }
.thumb-img img { width: 100%; height: 100%; object-fit: cover; }

.buy-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 150px; }
.price-big { font-size: 2rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px; }
.seller-card-mini { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--bg-secondary); border-radius: var(--radius-sm); margin-bottom: 16px; }
.seller-avatar-md { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; flex-shrink: 0; }
.stars { color: var(--orange); }

.specs-table { width: 100%; }
.specs-table tr td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table td:first-child { color: var(--text-muted); width: 40%; }
.specs-table td:last-child { font-weight: 600; }

/* ============ ADMIN/SELLER LAYOUT ============ */
/* Admin/Seller panel pages are standalone — no fixed navbar above them */
.panel-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.panel-sidebar { background: var(--bg-secondary); border-right: 1px solid var(--border); padding: 24px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.panel-content { padding: 32px; background: var(--bg-primary); min-height: 100vh; }

.panel-nav-section { padding: 6px 16px; margin-bottom: 4px; }
.panel-nav-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; padding: 8px 16px 4px; }
.panel-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; color: var(--text-secondary); font-size: 0.88rem; font-weight: 500;
    transition: var(--transition); border-left: 3px solid transparent;
}
.panel-nav-item:hover { background: rgba(124,58,237,0.08); color: var(--text-primary); }
.panel-nav-item.active { background: rgba(124,58,237,0.12); color: var(--purple); border-left-color: var(--purple); }
.panel-nav-item i { width: 18px; text-align: center; }
.panel-nav-badge { background: var(--orange); color: #1a1a1a; border-radius: 50px; padding: 1px 7px; font-size: 0.68rem; font-weight: 700; margin-left: auto; }
.panel-nav-badge.danger { background: var(--red); color: white; }

.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.panel-title { font-size: 1.5rem; font-weight: 800; font-family: 'Space Grotesk', sans-serif; }
.panel-subtitle { color: var(--text-muted); font-size: 0.88rem; margin-top: 2px; }

.panel-brand { padding: 20px 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.panel-brand-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.panel-brand-role { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* ============ WA CARD ============ */
.wa-card { background: linear-gradient(135deg, #075e54, #128c7e); border-radius: var(--radius-lg); padding: 24px; color: white; position: relative; overflow: hidden; }
.wa-card::before { content: ''; position: absolute; top: -30px; right: -30px; width: 100px; height: 100px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.wa-card::after { content: ''; position: absolute; bottom: -40px; left: -20px; width: 120px; height: 120px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.wa-card-icon { font-size: 2.5rem; margin-bottom: 12px; }
.wa-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.wa-card-number { font-size: 1.3rem; font-weight: 800; opacity: 0.95; }
.wa-card-status { font-size: 0.8rem; opacity: 0.8; margin-top: 8px; }
.wa-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.wa-status-dot.connected { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.wa-status-dot.disconnected { background: #f87171; }

/* ============ EMPTY STATE ============ */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

/* ============ TABS ============ */
.tabs { display: flex; gap: 4px; background: var(--bg-secondary); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 20px; }
.tab-btn { flex: 1; padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; border: none; background: none; color: var(--text-muted); transition: var(--transition); }
.tab-btn.active { background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow-sm); }

/* ============ BREADCRUMB ============ */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--purple); }
.breadcrumb-sep { opacity: 0.5; }

/* ============ FILTERS ============ */
.filter-bar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.filter-select { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 7px 32px 7px 12px; color: var(--text-primary); font-size: 0.85rem; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 8px center; background-size: 14px; outline: none; }
.filter-select:focus { border-color: var(--purple); }
.filter-count { font-size: 0.82rem; color: var(--text-muted); margin-left: auto; }

/* ============ PAGINATION ============ */
.pagination-nav { display: flex; justify-content: center; margin-top: 32px; }
.pagination { display: flex; gap: 6px; list-style: none; }
.page-item .page-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); font-size: 0.88rem; transition: var(--transition); }
.page-item .page-link:hover, .page-item.active .page-link { background: var(--purple); border-color: var(--purple); color: white; }

/* ============ FOOTER ============ */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 48px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-logo { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 16px; }
.footer-socials { display: flex; gap: 10px; }
.social-link { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: var(--transition); }
.social-link:hover { background: var(--purple); border-color: var(--purple); color: white; }
.footer-links h4 { font-weight: 700; font-size: 0.95rem; margin-bottom: 14px; color: var(--text-primary); }
.footer-links a { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 10px; transition: var(--transition); }
.footer-links a:hover { color: var(--purple); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }
.footer-bottom-right { display: flex; gap: 16px; }
.badge-safe { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.badge-safe i { color: var(--green); }

/* ============ MODALS ============ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; display: none; }
.modal-overlay.show { display: flex; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; width: 100%; max-width: 480px; animation: scaleIn 0.2s ease; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 1.2rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* ============ MISC ============ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-danger { color: var(--red) !important; }
.text-success { color: var(--green) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-purple { color: var(--purple) !important; }
.text-sm { font-size: 0.82rem; }
.fw-bold { font-weight: 700; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; } .align-items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.w-100 { width: 100%; }
.code-box { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; font-family: monospace; font-size: 0.85rem; color: var(--cyan); word-break: break-all; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; }
.loading-overlay { position: fixed; inset: 0; background: rgba(13,13,26,0.8); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 50px; padding: 3px 10px; font-size: 0.75rem; font-weight: 500; color: var(--text-secondary); }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ============ ANIMATIONS ============ */
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.animate-pulse { animation: pulse 2s infinite; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .panel-layout { grid-template-columns: 200px 1fr; }
}
@media (max-width: 768px) {
    .main-content { padding-top: 130px; }
    .navbar-center { display: none; }
    .mobile-menu-btn { display: flex; }
    .navbar-actions .btn:not(.btn-sm) { display: none; }
    .navbar-actions { gap: 6px; }
    .hero-title { font-size: 1.6rem; }
    .hero-stats { gap: 16px; }
    .accounts-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-bottom-right { flex-wrap: wrap; justify-content: center; }
    .panel-layout { grid-template-columns: 1fr; }
    .panel-sidebar { position: static; height: auto; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .filter-bar { gap: 8px; }
}
@media (max-width: 480px) {
    .accounts-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stats-grid { grid-template-columns: 1fr; }
    .panel-content { padding: 16px; }
}
