/* ═══════════════════════════════════════════════════════════════
   DESIGN SYSTEM — PREMIUM DARK UI
   VsiSvoi Platform · Next-Gen Redesign
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ──[ COLOR SYSTEM ]────────────────────────────────────────── */
  --bg-base:       #09090b; /* Zinc 950 */
  --bg-surface:    #18181b; /* Zinc 900 */
  --bg-elevated:   #27272a; /* Zinc 800 */
  --bg-hover:      #3f3f46; /* Zinc 700 */
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-base:   rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);

  /* ──[ ACCENTS ]────────────────────────────────────────────── */
  --accent-base:   #f97316; /* Orange 500 */
  --accent-hover:  #fb923c; /* Orange 400 */
  --accent-muted:  rgba(249, 115, 22, 0.15);
  --accent-glow:   rgba(249, 115, 22, 0.3);

  /* ──[ TEXT ]────────────────────────────────────────────────── */
  --text-primary:  #f4f4f5; /* Zinc 100 */
  --text-muted:    #a1a1aa; /* Zinc 400 */
  --text-faint:    #71717a; /* Zinc 500 */

  /* ──[ STATUS ]─────────────────────────────────────────────── */
  --status-success:#10b981; /* Emerald 500 */
  --status-error:  #ef4444; /* Red 500 */
  --status-warning:#eab308; /* Yellow 500 */
  --status-info:   #3b82f6; /* Blue 500 */

  /* ──[ MEDALS ]─────────────────────────────────────────────── */
  --gold:          #fbbf24;
  --silver:        #9ca3af;
  --bronze:        #b45309;

  /* ──[ LEGACY MAPPINGS ]────────────────────────────────────── */
  --void:          var(--bg-base);
  --panel:         var(--bg-surface);
  --surface:       var(--bg-elevated);
  --text:          var(--text-primary);
  --muted:         var(--text-muted);
  --faint:         var(--border-base);
  --accent:        var(--accent-base);
  --hot:           var(--accent-hover);
  --glow:          var(--accent-glow);
  --good:          var(--status-success);
  --bad:           var(--status-error);
  --warn:          var(--status-warning);
  --ct:            var(--status-info);
  --tt:            var(--status-warning);
  --ember:         #ea580c; /* For old hot gradients */

  /* ──[ TYPOGRAPHY SYSTEM ]───────────────────────────────────── */
  --font-display:  'Inter', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --font-mono:     'Share Tech Mono', ui-monospace, monospace;

  /* ──[ SPACING SYSTEM ]──────────────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;

  /* ──[ RADIUS SYSTEM ]───────────────────────────────────────── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ──[ SHADOW SYSTEM ]───────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5), 0 0 0 1px var(--border-subtle);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.6), 0 0 0 1px var(--border-base);
  --shadow-glow: 0 0 20px var(--accent-glow);

  /* ──[ TRANSITIONS ]────────────────────────────────────────── */
  --trans-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --trans-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ──[ BASE RESET ]───────────────────────────────────────────── */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body {
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(circle at 15% 0%, rgba(249, 115, 22, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 100%, rgba(249, 115, 22, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ──[ SCROLLBAR ]────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { 
  background: var(--bg-elevated); 
  border-radius: var(--radius-full); 
  border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover { background: var(--bg-hover); }
html { scrollbar-width: thin; scrollbar-color: var(--bg-elevated) var(--bg-base); }

/* ──[ SELECTION ]────────────────────────────────────────────── */
::selection { background: var(--accent-muted); color: var(--text-primary); }

/* ──[ TYPOGRAPHY & LINKS ]───────────────────────────────────── */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ──[ UTILITIES ]────────────────────────────────────────────── */
.glass-panel {
  background: rgba(24, 24, 27, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #d4d4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: linear-gradient(135deg, #fff 0%, var(--accent-base) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* --- Global Toast --- */
.site-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50px;
  padding: 10px 24px;
  font-family: var(--font-head);
  font-size: .65rem;
  letter-spacing: .12em;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  z-index: 9999;
  border: 1px solid rgba(255, 140, 0,.32);
  background: rgba(255, 140, 0,.14);
  color: var(--hot);
  text-transform: uppercase;
  white-space: nowrap;
}
.site-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}
.site-toast--success {
  border-color: rgba(79,255,176,.4);
  background: rgba(79,255,176,.15);
  color: var(--positive);
}
.site-toast--error {
  border-color: rgba(255,79,123,.4);
  background: rgba(255,79,123,.16);
  color: var(--negative);
}

/* --- Global Footer --------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 3;
  margin-top: 0;
  border-top: 1px solid var(--border-base);
  background: var(--bg-surface);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}
.footer-divider {
  width: 1px;
  height: 48px;
  background: var(--border-base);
}
@media(max-width:600px) { .footer-divider { display:none; } }

.footer-block { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.footer-title {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
}

.footer-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  transition: transform var(--trans-base);
}
.footer-link:hover { transform: translateY(-4px); }

.footer-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-base);
  transition: border-color var(--trans-base), box-shadow var(--trans-base);
  background: var(--bg-elevated);
}
.footer-support:hover .footer-img {
  border-color: var(--status-success);
  box-shadow: var(--shadow-sm);
}
.footer-contact .footer-img { border-radius: var(--radius-full); }
.footer-contact:hover .footer-img {
  border-color: #60a5fa;
  box-shadow: var(--shadow-sm);
}

.footer-link-label {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--trans-base);
}
.footer-support:hover .footer-link-label { color: var(--status-success); }
.footer-contact:hover .footer-link-label { color: #60a5fa; }

.footer-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-base);
  background: var(--bg-base);
}
