/* ============================================================
   GlobalMarketplaceGames - Premium Dark Gaming UI
   Aesthetic: Cyberpunk / Dark Tech / Neon Accents
   ============================================================ */

:root {
  --bg-void: #050508;
  --bg-dark: #0a0b10;
  --bg-card: #0f1018;
  --bg-card2: #13141f;
  --bg-elevated: #1a1b28;
  --border: rgba(255,255,255,0.07);
  --border-glow: rgba(99,102,241,0.4);

  --primary: #6366f1;
  --primary-glow: rgba(99,102,241,0.25);
  --primary-dark: #4f46e5;
  --accent: #06d6a0;
  --accent2: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;

  --neon-cyan: #00f5d4;
  --neon-purple: #c77dff;
  --neon-orange: #ff6b35;

  --text-1: #f4f4f8;
  --text-2: #a0a3b1;
  --text-3: #6b6e82;

  --font-display: 'Exo 2', sans-serif;
  --font-accent: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(99,102,241,0.2);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--bg-void);
  color: var(--text-1);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Particle background */
.particles {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99,102,241,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(6,214,160,0.06) 0%, transparent 50%);
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.main-content { position: relative; z-index: 1; min-height: 80vh; }

/* ── Topbar ── */
.topbar {
  background: rgba(6,214,160,0.06);
  border-bottom: 1px solid rgba(6,214,160,0.15);
  padding: 6px 0; font-size: 12px; color: var(--text-3);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-left, .topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar-left span i, .topbar-right span i { color: var(--accent); margin-right: 5px; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,11,16,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  transition: all 0.3s;
}
.navbar.scrolled { box-shadow: 0 0 40px rgba(99,102,241,0.15); }
.nav-inner { display: flex; align-items: center; gap: 20px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 0 20px var(--primary-glow);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-main { font-family: var(--font-accent); font-size: 18px; font-weight: 700; color: var(--text-1); letter-spacing: 1px; }
.logo-main em { font-style: normal; color: var(--primary); }
.logo-sub { font-size: 10px; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; font-family: var(--font-mono); }

/* Nav search */
.nav-search { flex: 1; max-width: 400px; display: flex; position: relative; }
.nav-search input {
  width: 100%; padding: 9px 44px 9px 16px;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-1); font-family: var(--font-display); font-size: 14px;
  transition: all 0.3s;
}
.nav-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.nav-search button {
  position: absolute; right: 0; top: 0; bottom: 0; width: 44px;
  background: var(--primary); border: none; border-radius: 0 8px 8px 0;
  color: #fff; cursor: pointer; transition: background 0.2s;
}
.nav-search button:hover { background: var(--primary-dark); }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 7px 12px; border-radius: 7px; transition: all 0.2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-1); background: var(--bg-elevated); }
.btn-sell {
  background: linear-gradient(135deg, var(--primary), #8b5cf6) !important;
  color: #fff !important; font-weight: 600 !important;
  box-shadow: 0 0 20px var(--primary-glow);
}
.btn-sell:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--primary-glow) !important; }
.btn-login, .btn-register {
  padding: 8px 18px !important; border-radius: 8px !important;
  font-weight: 600 !important;
}
.btn-login { border: 1px solid var(--border) !important; }
.btn-register { background: var(--primary) !important; color: #fff !important; }

/* Icon btn */
.icon-btn {
  background: var(--bg-card2); border: 1px solid var(--border);
  color: var(--text-2); width: 38px; height: 38px; border-radius: 8px;
  cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--text-1); }
.badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* User btn */
.user-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card2); border: 1px solid var(--border);
  color: var(--text-1); padding: 5px 12px; border-radius: 8px;
  cursor: pointer; font-family: var(--font-display); font-size: 14px; font-weight: 500;
  transition: all 0.2s;
}
.user-btn:hover { border-color: var(--primary); }
.user-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.user-avatar-placeholder {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); min-width: 200px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6); z-index: 200;
  overflow: hidden; opacity: 0; transform: translateY(-8px);
  pointer-events: none; transition: all 0.2s;
}
.nav-dropdown.open .dropdown-menu { opacity: 1; transform: translateY(0); pointer-events: all; }
.dropdown-header, .dropdown-footer {
  padding: 10px 16px; font-size: 12px; font-weight: 600;
  color: var(--text-3); text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 1px solid var(--border); display: block; text-decoration: none;
}
.dropdown-footer { border-top: 1px solid var(--border); border-bottom: none; text-align: center; color: var(--primary); font-size: 13px; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; color: var(--text-2); text-decoration: none;
  font-size: 14px; transition: all 0.15s; cursor: pointer; border: none; width: 100%; background: none; font-family: var(--font-display);
}
.dropdown-item:hover { background: var(--bg-elevated); color: var(--text-1); }
.dropdown-item i { width: 16px; color: var(--text-3); }
.dropdown-item.text-danger { color: var(--danger); }
.dropdown-item.unread { background: rgba(99,102,241,0.08); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.dropdown-empty { padding: 20px; text-align: center; color: var(--text-3); font-size: 13px; }
.user-menu-header { padding: 16px; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.um-name { font-weight: 700; font-size: 15px; }
.um-balance { font-family: var(--font-mono); color: var(--accent); font-size: 13px; margin: 4px 0; }
.um-role { }
.role-badge {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  background: var(--primary-glow); border: 1px solid var(--primary);
  color: var(--primary); font-size: 11px; font-weight: 600;
}
.notif-title { font-size: 13px; font-weight: 600; color: var(--text-1); }
.notif-time { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.notif-menu { min-width: 300px; }

/* Hamburger */
.hamburger { display: none; background: none; border: 1px solid var(--border); color: var(--text-1); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 16px; }

/* Flash message */
.flash-container { position: fixed; top: 80px; right: 20px; z-index: 300; }
.flash {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: var(--radius); max-width: 380px;
  font-size: 14px; font-weight: 500; margin-bottom: 10px;
  animation: slideIn 0.3s ease;
}
.flash-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.4); color: #10b981; }
.flash-error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.4); color: #ef4444; }
.flash-info { background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.4); color: var(--primary); }
.flash-close { background: none; border: none; color: inherit; cursor: pointer; margin-left: auto; font-size: 18px; line-height: 1; }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── HERO ── */
.hero {
  padding: 80px 0 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(99,102,241,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { text-align: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 20px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3);
  color: var(--primary); font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-accent); font-size: clamp(36px, 6vw, 72px); font-weight: 700;
  line-height: 1.1; margin-bottom: 20px; letter-spacing: 1px;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--neon-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 18px; color: var(--text-2); max-width: 600px; margin: 0 auto 36px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 10px; font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff; text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 0 30px var(--primary-glow); transition: all 0.3s; font-family: var(--font-display);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px var(--primary-glow); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 10px; font-size: 15px; font-weight: 700;
  background: transparent; color: var(--text-1); text-decoration: none;
  border: 1px solid var(--border); cursor: pointer; transition: all 0.3s; font-family: var(--font-display);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
.hero-stats {
  display: flex; gap: 40px; justify-content: center; margin-top: 48px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--text-1); }
.stat-num span { color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* ── Section headers ── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-title { font-family: var(--font-accent); font-size: 22px; font-weight: 700; color: var(--text-1); }
.section-title span { color: var(--primary); }
.section-link { color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 500; }
.section-link:hover { text-decoration: underline; }

/* ── Category pills ── */
.categories-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 32px; scrollbar-width: thin; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 30px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-2); text-decoration: none; font-size: 13px; font-weight: 600;
  white-space: nowrap; transition: all 0.2s; cursor: pointer;
}
.cat-pill:hover, .cat-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cat-pill .icon { font-size: 16px; }

/* ── Listing Grid ── */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

.listing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s; position: relative;
}
.listing-card:hover { border-color: var(--border-glow); transform: translateY(-4px); box-shadow: var(--shadow-glow), var(--shadow); }
.listing-card.featured { border-color: rgba(245,158,11,0.4); }
.listing-card.featured::before {
  content: '⭐ Featured'; position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--accent2); color: #000; font-size: 10px; font-weight: 800;
  padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px;
}
.card-photos { position: relative; height: 180px; overflow: hidden; }
.card-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.listing-card:hover .card-photos img { transform: scale(1.05); }
.card-photos-count {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.7); color: #fff; font-size: 11px;
  padding: 3px 8px; border-radius: 5px; backdrop-filter: blur(4px);
}
.card-platform {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.75); color: var(--accent); font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 5px; backdrop-filter: blur(4px);
}
.card-wishlist {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.6); border: none; color: var(--text-3); width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; backdrop-filter: blur(4px);
}
.card-wishlist:hover, .card-wishlist.active { color: #ef4444; }
.card-body { padding: 16px; }
.card-game { font-size: 11px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.card-title { font-size: 15px; font-weight: 700; color: var(--text-1); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.card-meta { display: flex; gap: 12px; margin-bottom: 12px; }
.card-meta-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); }
.card-meta-item i { font-size: 10px; color: var(--accent); }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); }
.card-price { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--accent); }
.card-original-price { font-size: 12px; color: var(--text-3); text-decoration: line-through; }
.btn-buy {
  padding: 7px 16px; border-radius: 7px; background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 700; border: none; cursor: pointer; text-decoration: none;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display);
}
.btn-buy:hover { background: var(--primary-dark); transform: translateY(-1px); }
.card-seller { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.seller-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.seller-name { font-size: 12px; color: var(--text-3); }
.seller-rating { font-size: 11px; color: var(--accent2); }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.form-label span.req { color: var(--danger); }
.form-control {
  width: 100%; padding: 11px 14px;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-1); font-family: var(--font-display); font-size: 14px;
  transition: all 0.3s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-control::placeholder { color: var(--text-3); }
select.form-control option { background: var(--bg-card); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Photo upload */
.photo-upload-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
.photo-slot {
  aspect-ratio: 4/3; border-radius: var(--radius); border: 2px dashed var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden;
  background: var(--bg-card2);
}
.photo-slot:hover { border-color: var(--primary); background: var(--primary-glow); }
.photo-slot .slot-icon { font-size: 24px; color: var(--text-3); margin-bottom: 4px; }
.photo-slot .slot-text { font-size: 11px; color: var(--text-3); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot .remove-photo {
  position: absolute; top: 4px; right: 4px; background: rgba(239,68,68,0.9);
  color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px;
  cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.photo-slot.primary-slot { border-color: rgba(245,158,11,0.5); }
.primary-badge {
  position: absolute; bottom: 4px; left: 4px; background: var(--accent2);
  color: #000; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px;
}

/* Auth pages */
.auth-container { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 48px 40px; width: 100%; max-width: 460px;
  box-shadow: var(--shadow);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo i { font-size: 40px; color: var(--primary); }
.auth-title { font-family: var(--font-accent); font-size: 26px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--text-3); font-size: 14px; margin-bottom: 32px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--text-3); }
.auth-link { text-align: center; font-size: 14px; color: var(--text-3); margin-top: 24px; }
.auth-link a { color: var(--primary); font-weight: 600; text-decoration: none; }
.role-selector { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.role-option { display: none; }
.role-label {
  display: block; padding: 14px 10px; border-radius: var(--radius);
  border: 2px solid var(--border); text-align: center; cursor: pointer;
  transition: all 0.2s; background: var(--bg-card2);
}
.role-label .rl-icon { font-size: 22px; display: block; margin-bottom: 6px; }
.role-label .rl-name { font-size: 13px; font-weight: 700; display: block; color: var(--text-2); }
.role-option:checked + .role-label { border-color: var(--primary); background: var(--primary-glow); color: var(--primary); }
.role-option:checked + .role-label .rl-name { color: var(--primary); }

/* ── Dashboard ── */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 32px 0; align-items: start; }
.dashboard-sidebar {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; position: sticky; top: 90px;
}
.sidebar-user { padding: 24px; border-bottom: 1px solid var(--border); text-align: center; }
.sidebar-avatar { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 12px; border: 3px solid var(--primary); object-fit: cover; }
.sidebar-avatar-placeholder {
  width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 12px; border: 3px solid var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #fff;
}
.sidebar-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.sidebar-balance { font-family: var(--font-mono); color: var(--accent); font-size: 15px; font-weight: 700; }
.sidebar-nav { padding: 8px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius); color: var(--text-2);
  text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s; margin-bottom: 2px;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--bg-elevated); color: var(--text-1); }
.sidebar-nav a.active { border-left: 3px solid var(--primary); }
.sidebar-nav a i { width: 18px; color: var(--text-3); font-size: 15px; }
.sidebar-nav a.active i { color: var(--primary); }

/* Dashboard cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; transition: all 0.2s;
}
.stat-card:hover { border-color: var(--border-glow); }
.stat-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px;
}
.stat-card-icon.green { background: rgba(16,185,129,0.15); color: var(--success); }
.stat-card-icon.purple { background: var(--primary-glow); color: var(--primary); }
.stat-card-icon.yellow { background: rgba(245,158,11,0.15); color: var(--accent2); }
.stat-card-icon.cyan { background: rgba(6,214,160,0.15); color: var(--accent); }
.stat-card-value { font-family: var(--font-mono); font-size: 24px; font-weight: 700; color: var(--text-1); }
.stat-card-label { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* Tables */
.table-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.table-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.table-card-title { font-weight: 700; font-size: 15px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 14px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* Status badges */
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.status-active { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.status-pending { background: rgba(245,158,11,0.15); color: var(--accent2); border: 1px solid rgba(245,158,11,0.3); }
.status-sold { background: rgba(99,102,241,0.15); color: var(--primary); border: 1px solid rgba(99,102,241,0.3); }
.status-banned { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.status-completed { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.status-cancelled { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }

/* Wallet */
.wallet-balance-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(6,214,160,0.1));
  border: 1px solid rgba(99,102,241,0.3); border-radius: var(--radius-lg);
  padding: 32px; margin-bottom: 24px; position: relative; overflow: hidden;
}
.wallet-balance-card::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.2), transparent);
}
.wallet-label { font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.wallet-amount { font-family: var(--font-mono); font-size: 42px; font-weight: 700; color: var(--text-1); margin-bottom: 24px; }
.wallet-amount span { color: var(--accent); }
.wallet-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Tabs */
.tabs { display: flex; gap: 4px; background: var(--bg-card2); padding: 4px; border-radius: 10px; width: fit-content; margin-bottom: 24px; }
.tab-btn {
  padding: 8px 18px; border-radius: 7px; border: none; background: transparent;
  color: var(--text-3); font-family: var(--font-display); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.tab-btn.active { background: var(--bg-elevated); color: var(--text-1); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto;
  transform: scale(0.95); transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: var(--font-accent); font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-3); font-size: 20px; cursor: pointer; padding: 4px; border-radius: 6px; transition: all 0.2s; }
.modal-close:hover { background: var(--bg-elevated); color: var(--text-1); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 12px; justify-content: flex-end; }

/* Payment methods */
.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.payment-method-option { display: none; }
.payment-method-label {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px; border-radius: var(--radius); border: 2px solid var(--border);
  cursor: pointer; transition: all 0.2s; background: var(--bg-card2); text-align: center;
}
.payment-method-label .pm-icon { font-size: 28px; }
.payment-method-label .pm-name { font-size: 12px; font-weight: 700; color: var(--text-2); }
.payment-method-option:checked + .payment-method-label { border-color: var(--primary); background: var(--primary-glow); }

/* Listing detail */
.listing-detail { padding: 32px 0; }
.listing-gallery { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); }
.gallery-main { height: 420px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; padding: 12px; background: var(--bg-card2); }
.gallery-thumb { width: 70px; height: 50px; border-radius: 6px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; }
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.listing-info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.listing-price-big { font-family: var(--font-mono); font-size: 36px; font-weight: 700; color: var(--accent); margin-bottom: 20px; }
.listing-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.listing-feature { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.listing-feature i { color: var(--accent); width: 16px; }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-3); }

/* Footer */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 60px 0 24px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; color: var(--text-3); margin: 12px 0 20px; line-height: 1.7; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-1); font-family: var(--font-accent); font-size: 20px; font-weight: 700; }
.footer-logo i { color: var(--primary); }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 36px; height: 36px; border-radius: 8px; background: var(--bg-elevated); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-2); text-decoration: none; transition: all 0.2s; }
.footer-socials a:hover { border-color: var(--primary); color: var(--primary); }
.footer-col h4 { font-weight: 700; font-size: 14px; margin-bottom: 16px; color: var(--text-1); }
.footer-col a { display: block; color: var(--text-3); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: var(--text-3); }
.payment-icons { display: flex; gap: 8px; align-items: center; }
.payment-icons img { height: 22px; border-radius: 4px; }

/* Alert */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #10b981; }
.alert-info { background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3); color: var(--primary); }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-2);
  text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.2s;
}
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
}
@media (max-width: 768px) {
  .nav-search { display: none; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .photo-upload-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .payment-methods { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; } .gap-2 { gap: 16px; } .align-center { align-items: center; }
.section { padding: 48px 0; }
.page-header { padding: 32px 0 24px; }
.page-title { font-family: var(--font-accent); font-size: 28px; font-weight: 700; }
.text-muted { color: var(--text-3); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger) !important; }
.fw-700 { font-weight: 700; }
.font-mono { font-family: var(--font-mono); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
