/* ═════════════════════════════════════════════════════════════════
   OyunPasaj — Ultra Premium Gaming Design System (Full Release)
   ═════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ─── Color Tokens & Theme Variables ─── */
:root {
  /* Brand Accents */
  --c-brand: #6366f1;
  --c-brand-hover: #4f46e5;
  --c-brand-light: #818cf8;
  --c-brand-glow: rgba(99, 102, 241, 0.4);
  
  --c-accent: #06b6d4;
  --c-accent-glow: rgba(6, 182, 212, 0.35);

  --c-neon-green: #10b981;
  --c-neon-green-glow: rgba(16, 185, 129, 0.3);
  --c-neon-orange: #f59e0b;
  --c-neon-red: #ef4444;

  /* Dark Theme (Default OLED Deep Space) */
  --c-bg: #07090e;
  --c-bg-subtle: #0d1117;
  --c-surface: rgba(15, 20, 30, 0.75);
  --c-surface-solid: #0f1520;
  --c-surface-2: rgba(22, 29, 44, 0.7);
  --c-surface-3: #1a2233;
  --c-surface-hover: #202b3f;
  
  --c-border: rgba(255, 255, 255, 0.08);
  --c-border-hover: rgba(99, 102, 241, 0.4);
  --c-border-glow: rgba(99, 102, 241, 0.25);

  --c-text: #f1f5f9;
  --c-text-muted: #94a3b8;
  --c-text-dim: #64748b;
  --c-title: #ffffff;

  /* Shadows & Blur */
  --glass-blur: blur(16px);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-neon: 0 0 25px var(--c-brand-glow);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Light Theme Variables */
[data-theme="light"] {
  --c-bg: #f8fafc;
  --c-bg-subtle: #f1f5f9;
  --c-surface: rgba(255, 255, 255, 0.85);
  --c-surface-solid: #ffffff;
  --c-surface-2: rgba(241, 245, 249, 0.9);
  --c-surface-3: #e2e8f0;
  --c-surface-hover: #cbd5e1;

  --c-border: rgba(0, 0, 0, 0.08);
  --c-border-hover: rgba(99, 102, 241, 0.5);
  --c-border-glow: rgba(99, 102, 241, 0.2);

  --c-text: #1e293b;
  --c-text-muted: #64748b;
  --c-text-dim: #94a3b8;
  --c-title: #0f172a;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --shadow-neon: 0 4px 20px rgba(99, 102, 241, 0.25);
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font-body);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.35s var(--ease-smooth), color 0.35s var(--ease-smooth);
}

/* Ambient Background Light */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Top Bar / Announcement ─── */
.top-notice-bar {
  background: linear-gradient(90deg, #4f46e5, #06b6d4, #6366f1);
  background-size: 200% 100%;
  animation: gradientShift 6s ease infinite;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  padding: 7px 16px;
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.top-notice-bar i {
  color: #fef08a;
  animation: pulseIcon 1.5s infinite ease-in-out;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* ─── Header & Navigation ─── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--c-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--c-border);
  transition: all 0.3s var(--ease-smooth);
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 28px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s var(--ease-smooth);
}

.logo:hover .logo-img {
  transform: scale(1.04);
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  align-items: center;
  background: var(--c-surface-2);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--c-border);
  gap: 4px;
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--c-text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s var(--ease-smooth);
}

.nav-tab:hover {
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  background: var(--c-brand);
  color: #ffffff;
  box-shadow: 0 2px 12px var(--c-brand-glow);
}

.nav-tab .tab-badge {
  background: rgba(0, 0, 0, 0.25);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Header Right Area */
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wallet-badge {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
}

.wallet-badge:hover {
  border-color: var(--c-brand-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.wallet-icon {
  color: var(--c-neon-green);
  font-size: 14px;
}

.wallet-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--c-title);
}

.wallet-add-btn {
  background: var(--c-neon-green);
  color: #064e3b;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.theme-toggle-btn {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.25s var(--ease-smooth);
}

.theme-toggle-btn:hover {
  border-color: var(--c-border-hover);
  color: var(--c-brand-light);
  transform: rotate(15deg);
}

/* ─── Main Content & Pages ─── */
main {
  flex: 1;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 28px 60px;
  position: relative;
  z-index: 10;
}

.page {
  display: none;
  animation: fadeIn 0.35s var(--ease-smooth) forwards;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Hero Spotlight Section ─── */
.hero-spotlight {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  background: #000;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.6s var(--ease-smooth);
}

.hero-spotlight:hover .hero-bg-img {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #07090e 0%, rgba(7, 9, 14, 0.7) 45%, rgba(7, 9, 14, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--c-brand), var(--c-accent));
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 14.5px;
  color: #cbd5e1;
  margin-bottom: 22px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-brand), #4f46e5);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--c-brand-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--c-brand-light), var(--c-brand));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--c-brand-glow);
}

.btn-secondary {
  background: var(--c-surface-2);
  color: var(--c-text);
  border-color: var(--c-border);
}

.btn-secondary:hover {
  background: var(--c-surface-3);
  border-color: var(--c-border-hover);
  color: var(--c-title);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--c-neon-green-glow);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--c-neon-green-glow);
}

/* ─── Trust Badges Row ─── */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.trust-card {
  background: var(--c-surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--c-border);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s var(--ease-smooth);
}

.trust-card:hover {
  border-color: var(--c-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--c-surface-2);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--c-brand-light);
  flex-shrink: 0;
}

.trust-info h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--c-title);
  margin-bottom: 2px;
}

.trust-info p {
  font-size: 12px;
  color: var(--c-text-muted);
}

/* ─── Section Header & Filter Controls ─── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title-wrap h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--c-title);
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-wrap p {
  font-size: 13.5px;
  color: var(--c-text-muted);
  margin-top: 3px;
}

.search-box {
  position: relative;
  min-width: 260px;
}

.search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-dim);
  font-size: 13px;
}

.search-box input {
  width: 100%;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: all 0.25s var(--ease-smooth);
}

.search-box input:focus {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px var(--c-brand-glow);
}

.category-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.chip-btn {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s var(--ease-smooth);
}

.chip-btn:hover {
  border-color: var(--c-border-hover);
  color: var(--c-text);
}

.chip-btn.active {
  background: var(--c-brand);
  color: #ffffff;
  border-color: var(--c-brand);
  box-shadow: 0 2px 10px var(--c-brand-glow);
}

/* ─── Games Grid & Cards ─── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--c-surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-border-hover);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  height: 170px;
  overflow: hidden;
  background: var(--c-surface-3);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}

.game-card:hover .card-img {
  transform: scale(1.08);
}

.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--c-neon-green);
  color: #064e3b;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.platform-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-genre {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 800;
  color: var(--c-title);
  line-height: 1.35;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
}

.price-wrap {
  display: flex;
  flex-direction: column;
}

.price-original {
  font-size: 11.5px;
  color: var(--c-text-dim);
  text-decoration: line-through;
}

.price-current {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--c-neon-green);
}

.card-buy-btn {
  background: var(--c-brand);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s var(--ease-smooth);
}

.card-buy-btn:hover {
  background: var(--c-brand-hover);
  box-shadow: 0 4px 12px var(--c-brand-glow);
  transform: scale(1.04);
}

/* ─── Library Section (Steam Launcher Style) ─── */
.library-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}

.library-empty i {
  font-size: 48px;
  color: var(--c-brand-light);
  margin-bottom: 16px;
}

.library-empty h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--c-title);
  margin-bottom: 8px;
}

.library-empty p {
  color: var(--c-text-muted);
  max-width: 420px;
  margin: 0 auto 20px;
}

.purchased-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.library-card {
  background: var(--c-surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-smooth);
}

.library-card:hover {
  border-color: var(--c-border-hover);
  box-shadow: var(--shadow-md);
}

.lib-header {
  display: flex;
  gap: 16px;
  align-items: center;
}

.lib-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.lib-meta h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--c-title);
  margin-bottom: 4px;
}

.lib-order-id {
  font-size: 11.5px;
  color: var(--c-text-dim);
  font-family: monospace;
}

.credentials-box {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cred-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.cred-label {
  color: var(--c-text-muted);
  font-weight: 600;
}

.cred-val-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cred-val {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-title);
  background: var(--c-surface-3);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--c-brand-light);
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
  transition: transform 0.15s;
}

.copy-btn:hover {
  transform: scale(1.2);
}

/* Guard Code Area */
.guard-box {
  border-top: 1px solid var(--c-border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guard-result-pill {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px dashed var(--c-brand);
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guard-code-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--c-title);
  letter-spacing: 2px;
}

/* ─── Admin Dashboard Section ─── */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 22px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--c-surface-2);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--c-brand);
}

.admin-stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--c-title);
}

.admin-stat-lbl {
  font-size: 12.5px;
  color: var(--c-text-muted);
}

.admin-table-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.admin-table th {
  background: var(--c-surface-2);
  padding: 14px 20px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--c-title);
  border-bottom: 1px solid var(--c-border);
}

.admin-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.status-ready {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.status-cooldown {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ─── Modal Architecture ─── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 20px;
  animation: fadeIn 0.2s ease forwards;
}

.modal-backdrop.active {
  display: grid;
}

.modal-card {
  background: var(--c-surface-solid);
  border: 1px solid var(--c-border-hover);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalPop 0.3s var(--ease-smooth) forwards;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--c-title);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--c-text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--c-title);
}

.preset-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.preset-btn {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover {
  border-color: var(--c-brand);
  background: var(--c-surface-3);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--c-brand);
}

/* ─── FAQ Section ─── */
.faq-section {
  margin-top: 60px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.faq-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--c-title);
  margin-bottom: 20px;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--c-title);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 13.5px;
  color: var(--c-text-muted);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* ─── Toast Notifications ─── */
#toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--c-surface-solid);
  border: 1px solid var(--c-border-hover);
  color: var(--c-title);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  animation: toastIn 0.3s var(--ease-smooth), toastOut 0.3s ease 3.5s forwards;
  min-width: 280px;
}

.toast-success i { color: var(--c-neon-green); }
.toast-error i { color: var(--c-neon-red); }
.toast-info i { color: var(--c-brand-light); }

@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px); } }

/* ─── Footer ─── */
footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 50px 28px 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.brand-col .logo-img {
  height: 52px;
  max-width: 210px;
  margin-bottom: 12px;
}

.brand-col p {
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--c-title);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--c-text-muted);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--c-brand-light);
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 28px;
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--c-text-dim);
}

/* ─── Mobile Responsiveness ─── */
@media (max-width: 900px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 16px; }
  .nav-tab span { display: none; }
  .hero-content { padding: 24px; }
  .hero-title { font-size: 24px; }
  .trust-bar { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ─── Admin Credential UI Elements ─── */
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: var(--c-surface-2);
  color: var(--c-text-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-border);
  font-size: 13.5px;
  color: var(--c-text);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.04);
}

.cred-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.cred-box:hover {
  border-color: var(--c-border-hover);
  background: var(--c-surface-3);
}

.cred-code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-title);
  user-select: all;
  letter-spacing: 0.3px;
}

.cred-user {
  color: #38bdf8;
}

.cred-pass {
  color: #f43f5e;
}

.cred-btn {
  background: transparent;
  border: none;
  color: var(--c-text-muted);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, transform 0.15s, background-color 0.15s;
}

.cred-btn:hover {
  color: var(--c-title);
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.1);
}

.cred-btn:active {
  transform: scale(0.95);
}

/* ─── Live Guard Code & Countdown Timer ─── */
.guard-card-active {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-hover);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guard-timer-wrap {
  background: var(--c-surface-3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.guard-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.guard-timer-progress {
  height: 100%;
  background: var(--c-neon-green);
  border-radius: 999px;
  transition: width 1s linear, background-color 0.3s ease;
}

.guard-expired-alert {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--c-neon-orange);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeIn 0.3s ease;
}

.guard-pulse-btn {
  background: linear-gradient(135deg, var(--c-brand), var(--c-accent));
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.admin-guard-live-pill {
  display: inline-flex;
  flex-direction: column;
  background: rgba(6, 191, 255, 0.1);
  border: 1px solid rgba(6, 191, 255, 0.35);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}

/* ════════ Authentication & User Header Controls ════════ */
.auth-guest-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-outline-auth {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
}

.btn-outline-auth:hover {
  border-color: var(--c-brand-light);
  color: var(--c-brand-light);
  transform: translateY(-1px);
}

.btn-primary-auth {
  background: linear-gradient(135deg, var(--c-brand), var(--c-accent));
  border: none;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--c-brand-glow);
  transition: all 0.25s var(--ease-smooth);
}

.btn-primary-auth:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 6px 18px var(--c-brand-glow);
}

.auth-user-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-menu-wrapper {
  position: relative;
}

.user-profile-btn {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  color: var(--c-title);
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.user-profile-btn:hover {
  border-color: var(--c-brand-light);
  box-shadow: var(--shadow-sm);
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-brand), var(--c-accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.user-menu-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chevron {
  font-size: 10px;
  color: var(--c-text-muted);
  transition: transform 0.2s;
}

.user-profile-btn.active .user-chevron {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  background: var(--c-surface-solid);
  border: 1px solid var(--c-border-hover);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 1000;
  display: none;
}

.user-dropdown-menu.active {
  display: block;
  animation: modalPop 0.2s ease forwards;
}

.dropdown-header {
  padding: 8px 12px;
}

.dropdown-username {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--c-title);
}

.dropdown-email {
  display: block;
  font-size: 11.5px;
  color: var(--c-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-divider {
  height: 1px;
  background: var(--c-border);
  margin: 6px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: all 0.15s;
}

.dropdown-item:hover {
  background: var(--c-surface-2);
  color: var(--c-brand-light);
}

.dropdown-badge {
  margin-left: auto;
  background: var(--c-surface-3);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  color: var(--c-text-muted);
}

.dropdown-logout {
  color: #ef4444 !important;
}

.dropdown-logout:hover {
  background: rgba(239, 68, 68, 0.1) !important;
}

/* Form Input with Icon & Eye Toggle */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 14px;
  color: var(--c-text-muted);
  font-size: 14px;
  pointer-events: none;
}

.input-icon-wrap .form-input.with-icon {
  padding-left: 40px;
  padding-right: 40px;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--c-text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
}

.password-toggle-btn:hover {
  color: var(--c-title);
}

.modal-auth-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
  text-align: center;
  font-size: 13px;
  color: var(--c-text-muted);
}

.modal-auth-footer a {
  color: var(--c-brand-light);
  font-weight: 700;
  text-decoration: none;
}

.modal-auth-footer a:hover {
  text-decoration: underline;
}

/* ════════ USER PROFILE VIEW STYLING ════════ */
.profile-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.3s ease;
}

.profile-hero-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border-hover);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.profile-hero-banner {
  height: 155px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%), url('https://images.unsplash.com/photo-1538481199705-c710c4e965fc?q=80&w=1600&auto=format&fit=crop') center 40%/cover;
  position: relative;
}

.profile-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(168, 85, 247, 0.25), rgba(6, 182, 212, 0.2));
  backdrop-filter: blur(1px);
}

.profile-hero-body {
  padding: 0 28px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  margin-top: -46px;
}

.profile-user-left {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.profile-avatar-large {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-brand), var(--c-accent));
  border: 4px solid var(--c-surface-solid);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 36px;
  box-shadow: var(--shadow-neon);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.profile-details {
  margin-bottom: 4px;
}

.profile-username-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-username-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--c-title);
  letter-spacing: -0.5px;
}

.profile-badge-verified {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-meta-row {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--c-text-muted);
  flex-wrap: wrap;
}

.profile-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-hero-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

/* Stats Cards Grid */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 800px) {
  .profile-stats-grid {
    grid-template-columns: 1fr;
  }
}

.profile-stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s var(--ease-smooth);
}

.profile-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-brand-light);
  box-shadow: var(--shadow-sm);
}

.profile-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--c-surface-2);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.profile-stat-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--c-title);
  line-height: 1.2;
}

.profile-stat-lbl {
  font-size: 12px;
  color: var(--c-text-muted);
  margin-top: 2px;
}

/* Profile Content Section */
.profile-content-section {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-section-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--c-title);
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-games-count {
  background: var(--c-brand);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
}




