/* ═══════════════════════════════════════
   Wininvest — Design System Tokens
   Futuristic Cyber-Finance Theme
   ═══════════════════════════════════════ */

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

:root {
  /* ── Core Backgrounds ── */
  --bg-primary:    #080B14;
  --bg-secondary:  #0D1321;
  --bg-tertiary:   #131A2E;
  --bg-elevated:   #182040;
  --bg-card:       rgba(13, 19, 33, 0.7);
  --bg-card-hover: rgba(19, 26, 46, 0.85);
  --bg-input:      rgba(8, 11, 20, 0.8);

  /* ── Primary Accent: Electric Cyan ── */
  --cyan:          #00F5FF;
  --cyan-dim:      #00C4CC;
  --cyan-dark:     #008B99;
  --cyan-glow:     rgba(0, 245, 255, 0.4);
  --cyan-subtle:   rgba(0, 245, 255, 0.08);
  --cyan-border:   rgba(0, 245, 255, 0.2);

  /* ── Secondary Accent: Plasma Gold ── */
  --gold:          #FFD700;
  --gold-dim:      #C9A800;
  --gold-glow:     rgba(255, 215, 0, 0.35);
  --gold-subtle:   rgba(255, 215, 0, 0.08);

  /* ── Semantic Colors ── */
  --green:         #00FF88;
  --green-dim:     #00CC6A;
  --green-bg:      rgba(0, 255, 136, 0.1);
  --red:           #FF3366;
  --red-dim:       #CC2952;
  --red-bg:        rgba(255, 51, 102, 0.1);
  --blue:          #3B82F6;
  --purple:        #A855F7;

  /* ── Text ── */
  --text-primary:   #F0F4FF;
  --text-secondary: #8892B0;
  --text-muted:     #4A5568;
  --text-disabled:  #2D3748;

  /* ── Borders ── */
  --border:        rgba(255, 255, 255, 0.06);
  --border-hover:  rgba(255, 255, 255, 0.12);
  --border-active: rgba(0, 245, 255, 0.3);

  /* ── Typography ── */
  --font-heading:  'Orbitron', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'IBM Plex Mono', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.5rem;
  --text-5xl:  3.25rem;

  /* ── Spacing ── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ── Border Radius ── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* ── Shadows & Glows ── */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 30px rgba(0,0,0,0.6);
  --shadow-xl:   0 16px 50px rgba(0,0,0,0.7);
  --glow-cyan:   0 0 20px var(--cyan-glow), 0 0 60px rgba(0,245,255,0.1);
  --glow-gold:   0 0 20px var(--gold-glow), 0 0 60px rgba(255,215,0,0.1);
  --glow-green:  0 0 15px rgba(0,255,136,0.3);
  --glow-red:    0 0 15px rgba(255,51,102,0.3);

  /* ── Glass Panel ── */
  --glass-bg:     rgba(13, 19, 33, 0.6);
  --glass-border: rgba(0, 245, 255, 0.12);
  --glass-blur:   20px;

  /* ── Transitions ── */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:     150ms;
  --t-normal:   250ms;
  --t-slow:     400ms;

  /* ── Z-Index Scale ── */
  --z-base:    1;
  --z-dropdown: 100;
  --z-sticky:  200;
  --z-overlay: 300;
  --z-modal:   400;
  --z-toast:   500;
  --z-max:     9999;

  /* ── Layout ── */
  --container-max:  1280px;
  --sidebar-width:  260px;
  --nav-height:     72px;
  --header-height:  64px;
}


/* ═══════════════════════════════════════
   Base Reset & Global Styles
   ═══════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol { list-style: none; }

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-dark);
}

/* ── Selection ── */
::selection {
  background: rgba(0, 245, 255, 0.2);
  color: var(--cyan);
}

/* ── Focus Ring ── */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}


/* ═══════════════════════════════════════
   Utility Classes
   ═══════════════════════════════════════ */

.font-heading { font-family: var(--font-heading); }
.font-mono    { font-family: var(--font-mono); }

.text-cyan    { color: var(--cyan); }
.text-gold    { color: var(--gold); }
.text-green   { color: var(--green); }
.text-red     { color: var(--red); }
.text-muted   { color: var(--text-secondary); }

.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glass Panel ── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.glass-glow {
  box-shadow: 
    inset 0 1px 0 rgba(0, 245, 255, 0.1),
    0 0 20px rgba(0, 245, 255, 0.05);
}
