/* =============================================
   ULTRA VIP GOLD ALGOMAX PRO - Design System
   ============================================= */

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

/* --- CSS Variables --- */
:root {
  --bg-primary:    #000000;
  --bg-surface:    #0d0d0d;
  --bg-card:       #111111;
  --bg-card-2:     #161616;
  --bg-card-hover: #1a1a1a;
  --border:        #222222;
  --border-gold:   #3a2e00;

  --gold:          #FFD700;
  --gold-light:    #FFE566;
  --gold-dark:     #CC9900;
  --gold-muted:    #7a6200;
  --gold-glow:     rgba(255, 215, 0, 0.15);
  --gold-glow-lg:  rgba(255, 215, 0, 0.08);

  --text-primary:  #FFFFFF;
  --text-secondary:#BBBBBB;
  --text-muted:    #666666;
  --text-faint:    #444444;

  --green:         #00E676;
  --green-bg:      rgba(0, 230, 118, 0.08);
  --red:           #FF3B3B;
  --red-bg:        rgba(255, 59, 59, 0.08);
  --blue:          #3B82F6;

  --font-primary:  'Outfit', sans-serif;
  --font-secondary:'Inter', sans-serif;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-xl:     24px;
  --radius-full:   9999px;

  --shadow-gold:   0 0 20px rgba(255,215,0,0.15), 0 0 60px rgba(255,215,0,0.05);
  --shadow-card:   0 4px 24px rgba(0,0,0,0.6);
  --shadow-nav:    0 2px 40px rgba(0,0,0,0.8);

  --transition:    all 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.45s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gold-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* --- Utility Classes --- */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-6 { gap: 1.5rem; }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* --- Gold Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-gold   { background: rgba(255,215,0,0.12); color: var(--gold); border: 1px solid rgba(255,215,0,0.25); }
.badge-vip    { background: linear-gradient(135deg,#7c3aed,#4f46e5); color: #fff; }
.badge-pro    { background: linear-gradient(135deg,#0ea5e9,#0284c7); color: #fff; }
.badge-starter{ background: rgba(255,255,255,0.08); color: var(--text-secondary); }
.badge-green  { background: var(--green-bg); color: var(--green); border: 1px solid rgba(0,230,118,0.2); }
.badge-red    { background: var(--red-bg); color: var(--red); border: 1px solid rgba(255,59,59,0.2); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #FFA500);
  color: #000;
  box-shadow: 0 4px 20px rgba(255,215,0,0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,215,0,0.5);
}
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}
.btn-ghost {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}
.btn-danger {
  background: var(--red);
  color: #fff;
}
.btn-green {
  background: linear-gradient(135deg, #00E676, #00C853);
  color: #000;
  font-weight: 800;
}
.btn-red {
  background: linear-gradient(135deg, #FF3B3B, #CC0000);
  color: #fff;
  font-weight: 800;
}
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-xl { padding: 18px 42px; font-size: 18px; }

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}
.card-gold {
  background: linear-gradient(135deg, #1a1400, #0d0d00);
  border: 1px solid rgba(255,215,0,0.2);
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 1.5rem 0;
}

/* --- Glow line --- */
.glow-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  width: 100%;
}

/* --- Gold gradient text --- */
.text-gradient {
  background: linear-gradient(135deg, var(--gold), #FFA500, var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Section Headers --- */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* --- Overlay / Blur --- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* --- Page Transition --- */
.page { animation: fadeIn 0.35s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Spinner --- */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Pulse glow animation --- */
@keyframes pulseGold {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.3); }
  50%      { box-shadow: 0 0 0 10px rgba(255,215,0,0); }
}
.pulse-gold { animation: pulseGold 2s infinite; }

/* --- Shimmer skeleton --- */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, #1f1f1f 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* --- Responsive Container --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Avatar circles --- */
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000;
  flex-shrink: 0;
}
.avatar-lg { width: 68px; height: 68px; font-size: 24px; }
.avatar-xl { width: 84px; height: 84px; font-size: 30px; }

/* --- Tab groups --- */
.tab-group {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 2px;
}
.tab-btn {
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.tab-btn.active {
  background: var(--gold);
  color: #000;
  box-shadow: 0 2px 12px rgba(255,215,0,0.3);
}

/* --- Live dot --- */
.live-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
  display: inline-block;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* Responsive */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .btn-xl { padding: 14px 28px; font-size: 15px; }
}
