/* SmileHub — Modern Gaming Hub UI v2 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #05050f;
  --bg-surface: rgba(10, 10, 28, 0.92);
  --bg-card: rgba(255, 255, 255, 0.028);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --bg-input: rgba(255, 255, 255, 0.045);

  --primary: #8b5cf6;
  --primary-dim: #6d28d9;
  --primary-soft: rgba(139, 92, 246, 0.13);
  --primary-glow: rgba(139, 92, 246, 0.35);

  --accent: #22d3ee;
  --accent-dim: #06b6d4;
  --accent-soft: rgba(34, 211, 238, 0.11);

  --pink: #ec4899;
  --pink-soft: rgba(236, 72, 153, 0.12);

  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.12);
  --error: #f43f5e;
  --error-soft: rgba(244, 63, 94, 0.12);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.12);

  --text: #f0f4ff;
  --text-muted: #94a3b8;
  --text-dim: #4a5568;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(139, 92, 246, 0.4);
  --border-accent: rgba(34, 211, 238, 0.3);

  --glow-primary: 0 0 30px rgba(139, 92, 246, 0.22), 0 4px 20px rgba(0,0,0,0.4);
  --glow-accent: 0 0 30px rgba(34, 211, 238, 0.18);
  --glow-card: 0 8px 32px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.04) inset;

  --radius: 18px;
  --radius-sm: 13px;
  --radius-xs: 9px;
  --radius-full: 9999px;

  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Animated Mesh Background ── */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 15% -5%, rgba(109, 40, 217, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 85% 5%, rgba(6, 182, 212, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 90%, rgba(236, 72, 153, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 30% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  animation: bg-pulse 18s ease-in-out infinite alternate;
}

.bg-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

@keyframes bg-pulse {
  0%   { opacity: 1; transform: scale(1) rotate(0deg); }
  50%  { opacity: 0.75; transform: scale(1.04) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ── Header / Nav ── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem max(1.25rem, env(safe-area-inset-right)) 0.8rem max(1.25rem, env(safe-area-inset-left));
  background: rgba(5, 5, 15, 0.72);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(139, 92, 246, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex-shrink: 1;
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}

.logo-img {
  height: 52px;
  width: auto;
  border-radius: 10px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}

.logo h1 {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

.badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
  flex: 1 1 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius-xs);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
  border-radius: inherit;
}
.btn:hover::after { background: rgba(255,255,255,0.04); }
.btn:active::after { background: rgba(255,255,255,0.08); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dim) 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.3);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.45);
}

.btn-order {
  background: linear-gradient(135deg, var(--primary) 0%, #6d28d9 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.25);
  letter-spacing: 0.01em;
}

.btn-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(139, 92, 246, 0.4);
}

.btn-order.btn-locked {
  opacity: 0.28;
  cursor: not-allowed;
  filter: grayscale(0.5);
  pointer-events: none;
}

.btn-order.ordering {
  opacity: 0.8;
  pointer-events: none;
  animation: pulse-glow 1.6s ease-in-out infinite;
}

.btn-order.ordered {
  background: linear-gradient(135deg, var(--success), #059669);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.3);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 18px rgba(139, 92, 246, 0.25); }
  50%       { box-shadow: 0 4px 35px rgba(139, 92, 246, 0.6), 0 0 0 4px rgba(139, 92, 246, 0.12); }
}

.btn-google {
  background: #fff;
  color: #333;
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-google:hover { background: #f0f0f0; }

/* ── Main Layout ── */
.main {
  position: relative;
  z-index: 5;
  max-width: 1380px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 4rem;
}

/* ── Game Accounts page banner ── */
.ga-page-banner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(139, 92, 246, 0.08);
  line-height: 0;
}
.ga-page-banner img { width: 100%; height: auto; display: block; }

.ga-page-intro {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
}

.ga-category-grid.products {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.35rem;
}

.ga-category-grid .card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.ga-category-grid .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* ── Support chat ── */
.support-chat-layout {
  max-width: 520px;
  margin: 0 auto;
}

.support-chat-card {
  background: linear-gradient(165deg, rgba(18, 18, 40, 0.92) 0%, rgba(12, 12, 28, 0.78) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(139, 92, 246, 0.08);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.support-chat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(139, 92, 246, 0.06);
}

.support-chat-head-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  flex-shrink: 0;
}

.support-chat-head-text h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.support-chat-head-text p {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.support-chat-window {
  min-height: min(52vh, 480px);
  max-height: min(56vh, 520px);
  overflow-y: auto;
  padding: 1rem 1rem 1.1rem;
  scroll-behavior: smooth;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139, 92, 246, 0.07), transparent 55%),
    rgba(0, 0, 0, 0.18);
}

.support-chat-window::-webkit-scrollbar { width: 7px; }
.support-chat-window::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.35);
  border-radius: 999px;
}

.support-chat-msg {
  display: flex;
  margin-bottom: 0.85rem;
  animation: support-msg-in 0.35s ease both;
}

@keyframes support-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.support-chat-msg-user { justify-content: flex-end; }
.support-chat-msg-admin { justify-content: flex-start; }

.support-chat-bubble {
  max-width: 88%;
  padding: 0.65rem 0.85rem;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
}

.support-chat-msg-user .support-chat-bubble {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.55), rgba(139, 92, 246, 0.38));
  border: 1px solid rgba(196, 181, 253, 0.22);
  border-bottom-right-radius: 6px;
  text-align: left;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.support-chat-msg-admin .support-chat-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 6px;
}

.support-chat-meta {
  font-size: 0.7rem;
  opacity: 0.62;
  margin-top: 0.35rem;
  letter-spacing: 0.01em;
}

.support-chat-bubble img {
  max-width: 100%;
  max-height: min(320px, 45vh);
  border-radius: 12px;
  display: block;
  margin-top: 0.4rem;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
}

.support-chat-compose {
  padding: 0.95rem 1rem 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 8, 20, 0.55);
}

.support-chat-preview {
  display: none;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  font-size: 0.8rem;
}

.support-chat-preview.show { display: flex; }

.support-chat-preview img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.support-chat-preview-remove {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.2rem;
  border-radius: 6px;
}

.support-chat-preview-remove:hover { color: var(--error); background: var(--error-soft); }

.support-chat-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-end;
}

.support-chat-row textarea.field-input {
  flex: 1;
  min-height: 44px;
  max-height: 140px;
  resize: vertical;
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.support-chat-row .btn-order {
  flex-shrink: 0;
  border-radius: 14px;
  padding: 0.65rem 1.1rem;
  font-weight: 600;
}

.support-chat-hint {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.support-chat-file .field-input {
  border-radius: 12px;
  font-size: 0.82rem;
  padding: 0.5rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(139, 92, 246, 0.35);
}

/* ── Game account listing (category page) ── */
.ga-listings {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-width: 820px;
  margin: 0 auto;
}

.ga-listing-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--glow-card);
  transition: var(--transition);
  text-align: left;
}

.ga-listing-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--pink));
  opacity: 0.85;
}

.ga-listing-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-primary);
}

.ga-listing-inner {
  padding: 1.35rem 1.4rem 1.4rem;
}

.ga-listing-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.ga-listing-top h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
  flex: 1;
  min-width: 200px;
}

.ga-price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  border: 1px solid rgba(139, 92, 246, 0.35);
  font-weight: 700;
  font-size: 0.95rem;
  color: #e9d5ff;
  white-space: nowrap;
}

.ga-price-pill span { font-size: 0.72rem; font-weight: 600; opacity: 0.75; }

.ga-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.ga-gallery a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 1;
  transition: var(--transition-fast);
  background: rgba(0, 0, 0, 0.25);
}

.ga-gallery a:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.ga-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
  display: block;
}

.ga-listing-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 1.15rem;
}

.ga-listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.ga-listing-actions .btn-order {
  border-radius: 12px;
  padding: 0.55rem 1.25rem;
  font-weight: 600;
}

/* ── Hero ── */
.hero {
  text-align: center;
  margin-bottom: 2.25rem;
  padding: 1.5rem 0 0.75rem;
}

.hero-elevated {
  background:
    radial-gradient(60% 120% at 50% -20%, rgba(139, 92, 246, 0.22), transparent 70%),
    rgba(12, 12, 30, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.6rem 1.2rem 1.25rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.hero-kicker {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: #67e8f9;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.hero h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 35%, var(--accent) 70%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% auto;
  animation: hero-shimmer 6s ease-in-out infinite alternate;
}

@keyframes hero-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 100% center; }
}

.hero p, .muted {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-chips {
  margin-top: 0.95rem;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.hero-chip {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: rgba(139, 92, 246, 0.1);
  color: #ddd6fe;
  font-size: 0.75rem;
  font-weight: 600;
}

.discover-panel {
  background: rgba(10, 10, 24, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.1rem 1rem 0.2rem;
  margin-bottom: 1.4rem;
}

.small { font-size: 0.85rem; }

/* ── Search ── */
.search-bar {
  position: relative;
  max-width: 540px;
  margin: 0 auto 2.25rem;
}

.search-bar input {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 3rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.search-bar input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12), 0 4px 24px rgba(0,0,0,0.2);
}

.search-bar input::placeholder { color: var(--text-dim); }

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  transition: color 0.2s;
}
.search-bar:focus-within .search-icon { color: var(--primary); }

/* ── Stats ── */
.stats {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.stats span {
  color: var(--accent);
  font-weight: 700;
}

/* ── Product Grid ── */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.35rem;
}

/* ── Card ── */
.card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  overflow: hidden;
  box-shadow: var(--glow-card);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(139, 92, 246, 0.2), var(--glow-primary);
}

.card.package-selected {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3), var(--glow-primary);
}

/* Shimmer highlight on top */
.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 30%, var(--accent) 70%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover .card-glow { opacity: 1; }

/* Product card image */
.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(109,40,217,0.18), rgba(6,182,212,0.1));
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover .card-image img { transform: scale(1.1); }

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(109,40,217,0.15), rgba(6,182,212,0.08));
  letter-spacing: -0.02em;
}

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,15,0.88) 0%, rgba(5,5,15,0.2) 50%, transparent 100%);
  pointer-events: none;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.2rem 1.2rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 0.75rem;
  opacity: 0.75;
  transition: opacity 0.2s, gap 0.2s;
  font-weight: 500;
}
.card:hover .card-link { opacity: 1; gap: 0.5rem; }

/* ── Loading / Empty ── */
.loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
  gap: 1rem;
}

.spinner {
  width: 46px;
  height: 46px;
  border: 3px solid rgba(139, 92, 246, 0.12);
  border-top-color: var(--primary);
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty, .error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  padding: 0.8rem 1.75rem;
  background: rgba(10, 10, 28, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 500;
  min-width: 200px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 20px rgba(16, 185, 129, 0.15);
}

.toast.error {
  border-color: rgba(244, 63, 94, 0.45);
  background: rgba(244, 63, 94, 0.1);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 20px rgba(244, 63, 94, 0.15);
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 200;
  animation: none;
}

.modal-overlay.show {
  display: flex;
  animation: overlay-in 0.22s ease;
}

@keyframes overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  width: min(740px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  background: rgba(10, 10, 26, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 32px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03) inset;
  animation: modal-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-up {
  from { transform: translateY(24px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.modal-subtitle { color: var(--text-muted); font-size: 0.9rem; }
.modal-loading { color: var(--text-muted); padding: 0.75rem 0; }
.modal-form { display: block; }
.modal-muted { color: var(--text-muted); font-size: 0.85rem; }

.modal-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* ── Order Progress Overlay ── */
.order-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1.5rem;
}
.order-overlay.show { display: flex; }

.order-progress-card {
  width: min(420px, 95vw);
  background: rgba(10, 10, 26, 0.97);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 40px 120px rgba(0,0,0,0.75), 0 0 40px rgba(139, 92, 246, 0.1);
}

.order-progress-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.01em;
}

.order-progress-title.failed { color: var(--error); }
.order-progress-title.success { color: var(--success); }

.order-steps {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.order-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.order-step.active {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--text);
}

.order-step.done {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.order-step.error-step {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.18);
  color: #fda4af;
}

.order-step-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.order-package-info {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
}

.order-package-name {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.order-package-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

.order-error-msg {
  padding: 0.85rem 1.1rem;
  background: var(--error-soft);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--radius-xs);
  color: #fda4af;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ── Form Fields ── */
.field { margin-bottom: 0.9rem; }

.field-label {
  display: block;
  margin-bottom: 0.38rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}

.field-input {
  width: 100%;
  padding: 0.78rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.field-input:focus {
  outline: none;
  background: rgba(255,255,255,0.06);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.field-input::placeholder { color: var(--text-dim); }
.req-star { color: var(--error); }

/* ── Package Cards (product page) ── */
.package-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.package-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.package-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(139, 92, 246, 0.1);
}
.package-card:hover::before { opacity: 1; }

.package-card.selected {
  border-color: rgba(139, 92, 246, 0.65);
  background: rgba(139, 92, 246, 0.07);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2), var(--glow-primary);
}
.package-card.selected::before { opacity: 1; }

.package-card-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.3;
  font-size: 0.95rem;
}

.package-card-prices { color: var(--text-muted); font-size: 0.9rem; }
.package-card-prices b { color: var(--text); }

.package-card-foot {
  margin-top: 0.6rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.package-price-mm {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.package-price-mm strong { font-weight: 800; }

/* ── Account Section ── */
.account-section { margin-bottom: 1.5rem; }
.account-card .card-content { padding: 1.25rem 1.5rem; }

.section-step {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.account-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.verify-msg {
  margin-top: 0.85rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-xs);
  background: var(--error-soft);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ── Wallet Info (Header) ── */
.wallet-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.9rem;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.wallet-info:hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.12);
}

/* ── Wallet Balance Card ── */
.balance-card {
  text-align: center;
  padding: 2.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(109,40,217,0.1), rgba(6,182,212,0.07));
  border: 1px solid rgba(109,40,217,0.18);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  opacity: 0.6;
}

.balance-amount {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.5rem 0;
  letter-spacing: -0.02em;
}

/* ── Payment Method Radio ── */
.payment-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.payment-option input[type="radio"] { display: none; }

.payment-label {
  padding: 0.58rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.payment-option input:checked + .payment-label {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
}

.payment-label:hover { border-color: rgba(139,92,246,0.35); }

/* ── Data Tables ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table th {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.02);
}

.data-table tbody tr { transition: background 0.18s; }
.data-table tbody tr:hover { background: var(--bg-card-hover); }

/* ── Status Badges ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-pending    { background: var(--warning-soft); color: var(--warning); }
.status-approved, .status-done, .status-completed, .status-success {
  background: var(--success-soft); color: var(--success);
}
.status-rejected, .status-failed { background: var(--error-soft); color: var(--error); }
.status-processing { background: rgba(96, 165, 250, 0.12); color: #60a5fa; }

/* ── Tab System ── */
.tabs-nav {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  padding: 0.3rem;
  background: rgba(255,255,255,0.025);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.tab-btn {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-xs);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.tab-btn.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.12);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Auth Pages ── */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(10, 10, 26, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 40px rgba(139, 92, 246, 0.06);
}

.auth-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.auth-divider {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 1.25rem;
}

.auth-divider a {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.2s;
}
.auth-divider a:hover { color: #c4b5fd; }

/* ── Section Card ── */
.section-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--glow-card);
}

.section-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ── Success / Info Messages ── */
.msg-success {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-xs);
  background: var(--success-soft);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.msg-info {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-xs);
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: #93c5fd;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ── Admin Deposit Card ── */
.deposit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 0.85rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.deposit-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.deposit-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.deposit-card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.btn-approve {
  background: linear-gradient(135deg, var(--success), #059669);
  color: #fff;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  border: none;
  border-radius: var(--radius-xs);
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-approve:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16,185,129,0.35); }

.btn-reject {
  background: transparent;
  color: var(--error);
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  border: 1px solid rgba(244,63,94,0.3);
  border-radius: var(--radius-xs);
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.btn-reject:hover { background: var(--error-soft); }

/* ── Receipt Image ── */
.receipt-img {
  max-width: 280px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  margin-top: 0.75rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .main { padding: 1rem 1rem 3rem; }
  .hero h2 { font-size: 1.85rem; }
  .products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .account-fields-row { grid-template-columns: 1fr; }
}

@media (max-width: 699px) {
  .header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding-top: max(0.65rem, env(safe-area-inset-top));
    padding-bottom: 0.65rem;
  }
  .logo { flex-shrink: 0; justify-content: flex-start; }
  .logo-img { height: 40px; }
  .logo h1 {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(52vw, 220px);
  }
  .header-actions {
    width: 100%;
    flex: none;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 0.45rem;
    column-gap: 0.4rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--border);
  }
  .header-actions .btn-ghost {
    padding: 0.42rem 0.65rem;
    font-size: 0.8rem;
    min-height: 40px;
  }
  .wallet-info {
    padding: 0.32rem 0.65rem;
    font-size: 0.74rem;
    max-width: 100%;
    min-height: 40px;
    align-items: center;
  }
  .wallet-info [data-nav-balance] {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: bottom;
  }
  .nav-avatar, .nav-avatar-placeholder { width: 28px; height: 28px; font-size: 0.68rem; }
}

@media (max-width: 480px) {
  .logo h1 { display: none; }
  .logo-img { height: 36px; }
  .header-actions .btn-ghost { padding: 0.38rem 0.5rem; font-size: 0.74rem; min-height: 40px; }
  .wallet-info { font-size: 0.7rem; padding: 0.28rem 0.55rem; gap: 0.28rem; }
  .wallet-info svg { width: 12px; height: 12px; }
  .products { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .card-content { padding: 0.75rem; }
  .card-title { font-size: 0.88rem; }
  .hero h2 { font-size: 1.45rem; }
  .auth-card { padding: 1.5rem; }
  .balance-amount { font-size: 2.25rem; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.4); }

/* ── Profile Avatar ── */
.profile-avatar-wrap { margin: 1rem auto 0.75rem; }

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(139, 92, 246, 0.3);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.profile-avatar:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.profile-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 2.5rem;
  font-weight: 800;
}

/* ── Nav Profile Pic (small) ── */
.nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.25);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.nav-avatar:hover {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}

.nav-avatar-placeholder {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: var(--transition);
}
.nav-avatar-placeholder:hover {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Glow Divider ── */
.glow-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), rgba(34, 211, 238, 0.4), transparent);
  margin: 1.5rem 0;
}

/* ── Chip / Tag ── */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  background: var(--primary-soft);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

/* ── Highlight text ── */
.text-accent  { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-error   { color: var(--error); }
.text-muted   { color: var(--text-muted); }

/* ── Admin dashboard ── */
.main.admin-dashboard {
  max-width: 1240px;
  padding-top: 1.25rem;
}

.header--admin {
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
  margin-bottom: 0.25rem;
}

.admin-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #ddd6fe;
}

.admin-alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  margin: 0 0 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.28);
  color: #fda4af;
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.45rem;
  margin-bottom: 1.35rem;
  background: linear-gradient(165deg, rgba(14, 14, 36, 0.94), rgba(8, 8, 20, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.admin-tabs .tab-btn {
  padding: 0.55rem 0.95rem;
  border-radius: 11px;
  font-size: 0.8rem;
}

.admin-tabs .tab-btn.active {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.45), rgba(139, 92, 246, 0.25));
  color: #fff;
  border: 1px solid rgba(196, 181, 253, 0.25);
}

.admin-page-head {
  margin-bottom: 1rem;
}

.admin-page-head h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.admin-page-head p {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin: 0;
}

.admin-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--glow-card);
}

.admin-table-shell {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.admin-inline-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0;
}

.admin-support-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1.15rem;
  align-items: start;
}

@media (max-width: 900px) {
  .admin-support-layout {
    grid-template-columns: 1fr;
  }
}

.admin-thread-sidebar h3 {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 0 0 0.75rem;
}

.admin-thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: min(70vh, 520px);
  overflow-y: auto;
}

.admin-thread-pill {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  font-size: 0.86rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  transition: var(--transition-fast);
}

.admin-thread-pill:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.08);
}

.admin-thread-pill.is-active {
  border-color: rgba(34, 211, 238, 0.45);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(139, 92, 246, 0.12));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.08);
}

.admin-thread-pill strong {
  display: block;
  font-weight: 700;
}

.admin-thread-pill .admin-thread-preview {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-thread-pill .admin-thread-time {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.admin-chat-thread-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-chat-thread-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.admin-chat-live {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-chat-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: admin-pulse 2s ease-in-out infinite;
}

@keyframes admin-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.admin-chat-log {
  min-height: 240px;
  max-height: min(52vh, 440px);
  overflow-y: auto;
  padding: 0.85rem;
  border-radius: 14px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 92, 246, 0.06), transparent 55%),
    rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 1rem;
  scroll-behavior: smooth;
}

.admin-chat-log::-webkit-scrollbar { width: 6px; }
.admin-chat-log::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.35);
  border-radius: 999px;
}

.admin-chat-row {
  margin-bottom: 0.75rem;
  max-width: 92%;
  animation: support-msg-in 0.3s ease both;
}

.admin-chat-row--staff {
  margin-left: 0;
}

.admin-chat-row--user {
  margin-left: auto;
}

.admin-chat-bubble {
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

.admin-chat-row--staff .admin-chat-bubble {
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(165, 180, 252, 0.2);
  border-bottom-left-radius: 5px;
}

.admin-chat-row--user .admin-chat-bubble {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-right-radius: 5px;
  text-align: right;
}

.admin-chat-meta {
  font-size: 0.68rem;
  opacity: 0.65;
  margin-top: 0.3rem;
}

.admin-chat-bubble img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 10px;
  display: block;
  margin-top: 0.35rem;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
}

.admin-chat-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-ga-form-grid .field-input[type="file"] {
  font-size: 0.82rem;
  padding: 0.45rem;
}
