/* ════════════════════════════════════════════════════════════
   APEX DESIGN SYSTEM — Alpha Link Pro v2.0
   Brand Identity: Premium Trading Intelligence Platform
   Own voice. Not inspired by anyone.
════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:         #06070d;
  --surface:    #0b0d1c;
  --surface-2:  #0f1224;
  --surface-3:  #14172e;
  --surface-4:  #1a1e3a;

  /* Borders */
  --border:     rgba(255,255,255,0.07);
  --border-md:  rgba(255,255,255,0.13);
  --border-lg:  rgba(255,255,255,0.22);

  /* Text */
  --text:       #edf0ff;
  --text-2:     #9aa3c2;
  --text-3:     #525b7f;

  /* Accents */
  --red:        #e8192c;
  --red-dim:    rgba(232,25,44,0.18);
  --red-glow:   rgba(232,25,44,0.35);
  --gold:       #d4af37;
  --gold-dim:   rgba(212,175,55,0.15);
  --gold-glow:  rgba(212,175,55,0.30);
  --blue:       #4f7cff;
  --blue-dim:   rgba(79,124,255,0.14);
  --blue-glow:  rgba(79,124,255,0.30);
  --green:      #00d68f;
  --green-dim:  rgba(0,214,143,0.13);

  /* Typography */
  --f-head: 'Space Grotesk', sans-serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  /* Radius */
  --r:    8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Easing */
  --ease:    all 0.22s cubic-bezier(0.4,0,0.2,1);
  --ease-lg: all 0.40s cubic-bezier(0.4,0,0.2,1);
  --ease-spring: all 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--f-body); border: none; outline: none; }
input, textarea, select { font-family: var(--f-body); outline: none; border: none; background: none; }

/* ── Typography Scale ──────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--f-head); font-weight: 700; line-height: 1.1; color: var(--text); }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); letter-spacing: -0.02em; }
h4 { font-size: 1.2rem; letter-spacing: -0.01em; }
h5 { font-size: 1rem; }
p  { font-size: 1rem; line-height: 1.75; color: var(--text-2); }
.mono { font-family: var(--f-mono); }

/* ── Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 28px; }
.container-lg { max-width: 1440px; margin: 0 auto; padding: 0 40px; }

/* ── Dot-Grid Background Texture ──────────────────────── */
.dot-bg {
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── Section Tags ──────────────────────────────────────── */
.apex-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
  padding: 6px 14px;
  border: 1px solid var(--border-md);
  border-radius: 30px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 20px;
}
.apex-tag.red   { color: var(--red);  border-color: rgba(232,25,44,0.28);  background: var(--red-dim); }
.apex-tag.gold  { color: var(--gold); border-color: rgba(212,175,55,0.28); background: var(--gold-dim); }
.apex-tag.blue  { color: var(--blue); border-color: rgba(79,124,255,0.28); background: var(--blue-dim); }
.apex-tag .tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; animation: pulse-dot 2s ease-in-out infinite;
}

/* ── Section Layout ────────────────────────────────────── */
.apex-section { padding: 100px 0; }
.apex-section-sm { padding: 64px 0; }
.apex-section-lg { padding: 130px 0; }
.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; max-width: 520px; }
.section-header.center p { margin: 0 auto; }

/* ── Divider Lines ─────────────────────────────────────── */
.apex-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-md) 30%, var(--border-md) 70%, transparent);
}
.apex-glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 30%, var(--blue) 70%, transparent);
  opacity: 0.4;
}

/* ════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 30px;
  border-radius: var(--r);
  font-family: var(--f-body); font-size: 14px; font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--ease); cursor: pointer;
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn i { font-size: 13px; }

/* Primary red */
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 20px var(--red-glow);
}
.btn-primary:hover { background: #c8151f; transform: translateY(-2px); box-shadow: 0 8px 28px var(--red-glow); }

/* Gold — for premium */
.btn-gold {
  background: linear-gradient(135deg, #d4af37, #b8962e);
  color: #08080f;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--gold-glow); }

/* Ghost */
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border-md);
}
.btn-ghost:hover { background: rgba(255,255,255,0.10); border-color: var(--border-lg); transform: translateY(-2px); }

/* Outline red */
.btn-outline {
  background: transparent;
  color: var(--red);
  border: 1.5px solid rgba(232,25,44,0.45);
}
.btn-outline:hover { background: var(--red-dim); border-color: var(--red); transform: translateY(-2px); }

/* White */
.btn-white {
  background: var(--text);
  color: #06070d;
  font-weight: 700;
}
.btn-white:hover { background: #d5d8f0; transform: translateY(-2px); }

/* Sizes */
.btn-sm { padding: 9px 20px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 15px; }
.btn-xl { padding: 18px 50px; font-size: 16px; font-weight: 700; }
.btn-full { width: 100%; }

/* ════════════════════════════════════════════════════════
   TOP BAR
════════════════════════════════════════════════════════ */
.apex-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 36px;
  display: flex; align-items: center;
  font-size: 12px;
  color: var(--text-3);
}
.apex-topbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-left a { color: var(--text-3); transition: var(--ease); display: flex; align-items: center; gap: 6px; }
.topbar-left a:hover { color: var(--text-2); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-right a { color: var(--text-3); font-size: 13px; transition: var(--ease); }
.topbar-right a:hover { color: var(--text); }

/* ════════════════════════════════════════════════════════
   NAVBAR — Creative Animated Design
════════════════════════════════════════════════════════ */
.apex-nav {
  position: sticky; top: 0; z-index: 900;
  height: 70px;
  background: rgba(4,5,10,0.94);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border-bottom: none;
  transition: box-shadow 0.3s ease;
  /* Subtle dot-grid texture */
  background-image:
    radial-gradient(circle, rgba(79,124,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
/* Animated shimmer bottom line */
.apex-nav::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg,
    transparent 0%, rgba(79,124,255,0) 5%,
    rgba(79,124,255,0.9) 30%, rgba(147,197,253,0.7) 50%,
    rgba(79,124,255,0.9) 70%, rgba(79,124,255,0) 95%, transparent 100%);
  background-size: 200% 100%;
  animation: navLine 4s ease-in-out infinite;
}
/* Second subtle glow line */
.apex-nav::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 40px; pointer-events: none;
  background: linear-gradient(0deg, rgba(79,124,255,0.04) 0%, transparent 100%);
}
@keyframes navLine {
  0%   { opacity: 0.4; background-position: -100% 0; }
  50%  { opacity: 1;   background-position:  100% 0; }
  100% { opacity: 0.4; background-position:  300% 0; }
}
.apex-nav.scrolled {
  background: rgba(4,5,10,0.98);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 60px rgba(79,124,255,0.07);
}
.apex-nav .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 32px; }

/* Logo — animated glow pulse */
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, #121840 0%, #1e2660 50%, #161e50 100%);
  border: 1px solid rgba(79,124,255,0.4);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  animation: logoGlow 3.5s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(79,124,255,0);
}
@keyframes logoGlow {
  0%,100% { border-color: rgba(79,124,255,0.35); box-shadow: 0 0 8px rgba(79,124,255,0.2), inset 0 0 12px rgba(79,124,255,0.08); }
  50%     { border-color: rgba(79,124,255,0.7);  box-shadow: 0 0 20px rgba(79,124,255,0.45), inset 0 0 20px rgba(79,124,255,0.18); }
}
/* Spinning gradient overlay on logo */
.nav-logo-mark::before {
  content: 'α';
  font-family: var(--f-head); font-size: 21px; font-weight: 700; color: #fff;
  text-shadow: 0 0 14px rgba(79,124,255,1), 0 0 28px rgba(79,124,255,0.5);
  line-height: 1; position: relative; z-index: 2;
}
.nav-logo-mark::after {
  content: '';
  position: absolute; inset: -50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(79,124,255,0.25) 60deg, transparent 120deg);
  animation: logoSpin 4s linear infinite;
}
@keyframes logoSpin { to { transform: rotate(360deg); } }

.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-name {
  font-family: var(--f-head); font-size: 15px; font-weight: 800;
  color: var(--text); letter-spacing: -0.02em; line-height: 1.1;
}
.nav-logo-name span { color: var(--blue); }
.nav-logo-sub { font-family: var(--f-mono); font-size: 8.5px; color: var(--text-3); letter-spacing: 0.12em; text-transform: uppercase; }

/* Nav Links — glowing slide underline */
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-link {
  padding: 8px 15px; border-radius: var(--r);
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  transition: all 0.22s ease; position: relative; overflow: hidden;
}
.nav-link::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 100%;
  background: linear-gradient(0deg, rgba(79,124,255,0.06) 0%, transparent 60%);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%) scaleX(0);
  width: 55%; height: 1.5px; border-radius: 1px;
  background: linear-gradient(90deg, rgba(79,124,255,0.3), var(--blue), rgba(147,197,253,0.8), var(--blue), rgba(79,124,255,0.3));
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 8px rgba(79,124,255,0.6);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::before { transform: scaleY(1); }
.nav-link:hover::after, .nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.nav-link.active { color: #fff; font-weight: 600; }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ── Login button — bold, animated, blue glow ── */
.nav-login {
  padding: 8px 22px; font-size: 13px; font-weight: 700;
  color: var(--blue); border-radius: var(--r);
  border: 1px solid rgba(79,124,255,0.28);
  background: rgba(79,124,255,0.07);
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
  animation: loginPulse 3.5s ease-in-out infinite;
}
.nav-login::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(79,124,255,0.18) 0%, rgba(127,179,255,0.08) 100%);
  opacity: 0; transition: opacity 0.2s;
}
.nav-login:hover::before { opacity: 1; }
.nav-login:hover {
  color: #fff; border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(79,124,255,0.35);
  transform: translateY(-2px);
  animation: none;
}
@keyframes loginPulse {
  0%, 100% { border-color: rgba(79,124,255,0.28); box-shadow: 0 0 0 0 rgba(79,124,255,0); }
  50%       { border-color: rgba(79,124,255,0.55); box-shadow: 0 0 12px rgba(79,124,255,0.2); }
}

.nav-register { padding: 9px 22px; font-size: 13px; font-weight: 600; border-radius: var(--r); background: var(--blue); color: #fff; transition: var(--ease); box-shadow: 0 2px 12px rgba(79,124,255,0.3); }
.nav-register:hover { background: #3a62e0; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,124,255,0.4); }

/* ══════════════════════════════════════════════
   AUTH PAGE HEADER + FOOTER (login/register/forgot-password)
══════════════════════════════════════════════ */
.auth-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(6,7,14,0.88); backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(79,124,255,0.1);
}
.auth-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(79,124,255,0.7) 25%, rgba(127,179,255,0.5) 50%, rgba(79,124,255,0.7) 75%, transparent 100%);
  animation: hdrShimmer 3.5s ease-in-out infinite;
}
@keyframes hdrShimmer { 0%,100%{ opacity:.45; } 50%{ opacity:1; } }

.auth-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  height: 60px; display: flex; align-items: center; gap: 20px;
}
.auth-header-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.auth-header-logo .ah-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--blue), #2a52cc);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-head); font-size: 17px; font-weight: 900; color: #fff;
  box-shadow: 0 0 14px rgba(79,124,255,0.4);
  animation: markPulse 3s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes markPulse { 0%,100%{ box-shadow:0 0 14px rgba(79,124,255,.4); } 50%{ box-shadow:0 0 24px rgba(79,124,255,.7); } }
.auth-header-logo .ah-name {
  font-family: var(--f-head); font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -.02em;
}
.auth-header-logo .ah-name .hl { color: var(--blue); }

.auth-header-nav { display: flex; gap: 2px; flex: 1; justify-content: center; }
.auth-header-nav a {
  padding: 6px 13px; font-size: 13px; font-weight: 500; color: var(--text-2);
  border-radius: 8px; transition: var(--ease); text-decoration: none;
}
.auth-header-nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }

.auth-header-help {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 7px 15px; border-radius: 9px;
  background: rgba(34,197,94,0.09); border: 1px solid rgba(34,197,94,0.22);
  font-size: 12px; font-weight: 700; color: #22c55e;
  text-decoration: none; transition: var(--ease); white-space: nowrap;
}
.auth-header-help:hover { background: rgba(34,197,94,0.17); box-shadow: 0 4px 14px rgba(34,197,94,0.2); transform: translateY(-1px); }

/* ── Auth Footer ── */
.auth-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(4,5,8,0.8) 100%);
  border-top: 1px solid rgba(79,124,255,0.08);
  padding: 18px 28px;
}
.auth-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.auth-footer-brand { display: flex; flex-direction: column; gap: 1px; }
.auth-footer-name { font-family: var(--f-head); font-size: 13px; font-weight: 700; color: var(--text); }
.auth-footer-name .hl { color: var(--blue); }
.auth-footer-copy { font-size: 10px; color: var(--text-3); }
.auth-footer-links { display: flex; gap: 4px; flex-wrap: wrap; }
.auth-footer-links a {
  padding: 4px 10px; font-size: 11px; color: var(--text-3);
  border-radius: 6px; transition: var(--ease); text-decoration: none;
}
.auth-footer-links a:hover { color: var(--blue); background: rgba(79,124,255,0.08); }

@media(max-width:640px) {
  .auth-header-nav { display: none; }
  .auth-header-help .help-label { display: none; }
}

/* Hamburger */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; transition: var(--ease); }
.nav-hamburger:hover span { background: var(--text); }

/* Mobile Nav */
.nav-mobile {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(6,7,13,0.97);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column;
  padding: 28px;
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile-close {
  align-self: flex-end; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 16px; cursor: pointer; transition: var(--ease); margin-bottom: 32px;
}
.nav-mobile-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.nav-mobile-links { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-mobile-link {
  padding: 14px 18px; border-radius: var(--r-md);
  font-size: 17px; font-weight: 600; color: var(--text-2);
  border: 1px solid transparent; transition: var(--ease);
}
.nav-mobile-link:hover { color: var(--text); background: rgba(255,255,255,0.04); border-color: var(--border); }
.nav-mobile-link.active { color: var(--text); background: var(--blue-dim); border-color: rgba(79,124,255,0.25); }
.nav-mobile-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ════════════════════════════════════════════════════════
   LIVE TICKER
════════════════════════════════════════════════════════ */
.apex-ticker {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 44px; overflow: hidden;
  position: relative;
}
.apex-ticker::before, .apex-ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; z-index: 2; width: 80px;
}
.apex-ticker::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.apex-ticker::after  { right: 0; background: linear-gradient(-90deg, var(--surface), transparent); }
.ticker-label {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px;
  background: var(--surface-2);
  border-right: 1px solid var(--border-md);
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; color: var(--green); text-transform: uppercase;
}
.ticker-label::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.ticker-scroll { display: flex; align-items: center; height: 100%; padding-left: 120px; }
.ticker-track { display: flex; align-items: center; gap: 0; animation: ticker-scroll 40s linear infinite; white-space: nowrap; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 24px; height: 44px;
  border-right: 1px solid var(--border);
  font-size: 12.5px;
}
.ticker-item-name { font-weight: 600; color: var(--text-2); font-family: var(--f-mono); }
.ticker-item-price { font-family: var(--f-mono); font-weight: 600; color: var(--text); }
.ticker-item-change { font-family: var(--f-mono); font-size: 11px; font-weight: 500; }
.ticker-item-change.up   { color: var(--green); }
.ticker-item-change.down { color: var(--red); }
.ticker-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px;
}
.ticker-badge.synth  { background: var(--blue-dim);  color: var(--blue); }
.ticker-badge.crypto { background: var(--gold-dim);  color: var(--gold); }
.ticker-badge.forex  { background: rgba(0,214,143,0.12); color: var(--green); }
@keyframes ticker-scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.price-flash-up   { animation: flash-green 0.5s ease; }
.price-flash-down { animation: flash-red 0.5s ease; }
@keyframes flash-green { 0%,100%{color:var(--text)} 50%{color:var(--green)} }
@keyframes flash-red   { 0%,100%{color:var(--text)} 50%{color:var(--red)} }
@keyframes feedSlide   { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse       { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ════════════════════════════════════════════════════════
   CARDS
════════════════════════════════════════════════════════ */
.apex-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: var(--ease-lg);
  position: relative; overflow: hidden;
}
.apex-card:hover { border-color: var(--border-md); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.apex-card-sm { padding: 20px 24px; border-radius: var(--r-md); }
.apex-card-glass {
  background: rgba(15,18,36,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-xl);
}

/* ════════════════════════════════════════════════════════
   FORMS
════════════════════════════════════════════════════════ */
.apex-form-group { display: flex; flex-direction: column; gap: 6px; }
.apex-label {
  font-size: 12px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.07em;
}
.apex-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-md);
  border-radius: var(--r);
  color: var(--text); padding: 12px 14px;
  font-size: 14px; width: 100%;
  transition: border-color 0.2s, background 0.2s;
}
.apex-input:focus {
  border-color: var(--blue);
  background: rgba(79,124,255,0.06);
}
.apex-input::placeholder { color: var(--text-3); }
.apex-input-icon { position: relative; }
.apex-input-icon .apex-input { padding-left: 44px; }
.apex-input-icon .icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: 14px; pointer-events: none;
}
select.apex-input option { background: var(--surface-2); }

/* ════════════════════════════════════════════════════════
   BADGES & TAGS
════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.03em;
}
.badge-red   { background: var(--red-dim);  color: var(--red); }
.badge-gold  { background: var(--gold-dim); color: var(--gold); }
.badge-blue  { background: var(--blue-dim); color: var(--blue); }
.badge-green { background: var(--green-dim); color: var(--green); }

/* ════════════════════════════════════════════════════════
   FOOTER — Creative Animated Redesign
════════════════════════════════════════════════════════ */
.apex-footer {
  background: linear-gradient(180deg,#060810 0%,#03040d 100%);
  position: relative; overflow: hidden; padding: 0;
}
/* Animated glowing top border */
.apex-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,transparent 0%,#4f7cff 20%,#a78bfa 50%,#4f7cff 80%,transparent 100%);
  background-size: 200% 100%;
  animation: ftBorderShimmer 4s linear infinite;
}
/* Subtle grid texture overlay */
.apex-footer::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79,124,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg,rgba(79,124,255,0.03) 1px,transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
@keyframes ftBorderShimmer {
  0%   { background-position:200% 0; }
  100% { background-position:-200% 0; }
}

/* ── CTA Strip ── */
.footer-cta-strip {
  position: relative; z-index: 1;
  background: linear-gradient(135deg,rgba(79,124,255,0.1) 0%,rgba(167,139,250,0.06) 100%);
  border-bottom: 1px solid rgba(79,124,255,0.12);
  padding: 44px 0; text-align: center;
}
.footer-cta-strip h3 {
  font-family: var(--f-head); font-size: 22px; font-weight: 800;
  color: #fff; margin: 0 0 8px; letter-spacing: -0.02em;
}
.footer-cta-strip p { font-size: 14px; color: rgba(255,255,255,0.45); margin: 0 0 22px; }
.footer-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.footer-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 10px;
  font-size: 13.5px; font-weight: 700; transition: var(--ease);
  text-decoration: none;
}
.footer-cta-btn.primary {
  background: linear-gradient(135deg,#4f7cff,#2a52cc); color: #fff;
  box-shadow: 0 4px 22px rgba(79,124,255,0.35);
}
.footer-cta-btn.primary:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(79,124,255,0.55); }
.footer-cta-btn.secondary {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
}
.footer-cta-btn.secondary:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.25); color: #fff; transform: translateY(-3px); }

/* ── Footer Grid ── */
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 60px; padding: 60px 0;
  position: relative; z-index: 1;
}
.footer-brand p { font-size: 13.5px; color: var(--text-3); line-height: 1.8; margin-top: 18px; max-width: 280px; }

/* ── Social Icons ── */
.footer-socials { display: flex; gap: 10px; margin-top: 24px; }
.footer-social {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 15px;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative; overflow: hidden;
}
.footer-social::before {
  content: ''; position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.3s; border-radius: inherit;
}
.footer-social > i { position: relative; z-index: 1; }
.footer-social:hover { transform: translateY(-5px) scale(1.12); border-color: transparent; color: #fff; }
.footer-social:hover::before { opacity: 1; }
.footer-social[data-brand="ig"]:hover       { box-shadow: 0 8px 24px rgba(225,48,108,0.45); }
.footer-social[data-brand="ig"]::before     { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.footer-social[data-brand="yt"]:hover       { box-shadow: 0 8px 24px rgba(255,0,0,0.4); }
.footer-social[data-brand="yt"]::before     { background: #FF0000; }
.footer-social[data-brand="x"]:hover        { box-shadow: 0 8px 24px rgba(255,255,255,0.15); }
.footer-social[data-brand="x"]::before      { background: #1a1a1a; }
.footer-social[data-brand="tg"]:hover       { box-shadow: 0 8px 24px rgba(0,136,204,0.45); }
.footer-social[data-brand="tg"]::before     { background: #0088CC; }
.footer-social[data-brand="wa"]:hover       { box-shadow: 0 8px 24px rgba(37,211,102,0.45); }
.footer-social[data-brand="wa"]::before     { background: linear-gradient(135deg,#25D366,#128C7E); }

/* ── Column Headings ── */
.footer-col h5 {
  font-family: var(--f-head); font-size: 11px; font-weight: 700;
  color: var(--text); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 9px;
}
.footer-col h5::before {
  content: ''; width: 18px; height: 2px;
  background: linear-gradient(90deg,#4f7cff,#a78bfa); border-radius: 2px; flex-shrink: 0;
}

/* ── Column Links ── */
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 13.5px; color: var(--text-3); transition: var(--ease);
  display: flex; align-items: center; gap: 8px; padding: 3px 0;
}
.footer-col ul li a i { font-size: 8px; transition: transform 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li a:hover i { transform: translateX(4px); color: #4f7cff; }

/* ── Contact Items ── */
.footer-contact-item {
  display: flex; align-items: center; gap: 11px;
  font-size: 13px; color: var(--text-3); margin-bottom: 10px;
  padding: 9px 12px; border-radius: 9px;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent; transition: var(--ease);
}
.footer-contact-item i { width: 16px; color: var(--blue); font-size: 14px; flex-shrink: 0; }
.footer-contact-item a { color: var(--text-3); transition: var(--ease); }
.footer-contact-item:hover { background: rgba(79,124,255,0.07); border-color: rgba(79,124,255,0.2); }
.footer-contact-item:hover a { color: #fff; }

/* ── Footer Bottom ── */
.footer-bottom {
  position: relative; z-index: 1;
  background: rgba(0,0,0,0.35);
  border-top: 1px solid rgba(79,124,255,0.08);
  padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: var(--text-3);
}
.footer-bottom::before {
  content: '';
  position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg,transparent,rgba(79,124,255,0.35),transparent);
}
.footer-bottom a { color: var(--text-3); transition: var(--ease); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom-links { display: flex; gap: 6px; }
.footer-bottom-links a {
  padding: 4px 11px; border-radius: 6px; transition: var(--ease);
}
.footer-bottom-links a:hover { background: rgba(79,124,255,0.1); color: #4f7cff !important; }
@media(max-width:900px){
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media(max-width:560px){
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cta-strip h3 { font-size: 18px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
}

/* ════════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════════ */
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(0.7); }
}
@keyframes fade-up {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fade-in {
  from { opacity:0; }
  to   { opacity:1; }
}
@keyframes float {
  0%,100% { transform:translateY(0); }
  50%      { transform:translateY(-12px); }
}
@keyframes float-slow {
  0%,100% { transform:translateY(0) rotate(0deg); }
  33%      { transform:translateY(-8px) rotate(1deg); }
  66%      { transform:translateY(-4px) rotate(-1deg); }
}
@keyframes glow-pulse {
  0%,100% { opacity:0.5; }
  50%      { opacity:1; }
}
@keyframes spin-slow { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes shimmer {
  0%   { background-position:-200% center; }
  100% { background-position:200% center; }
}
@keyframes chart-draw {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}
@keyframes slide-up {
  from { transform:translateY(20px); opacity:0; }
  to   { transform:translateY(0);    opacity:1; }
}
@keyframes scale-in {
  from { transform:scale(0.9); opacity:0; }
  to   { transform:scale(1);   opacity:1; }
}
@keyframes count-up { from{opacity:0} to{opacity:1} }
@keyframes bar-grow { from{width:0} }
@keyframes ring-draw {
  from { stroke-dashoffset: 283; }
}

/* ── Scroll Reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.reveal.left  { transform: translateX(-32px); }
.reveal.right { transform: translateX(32px); }
.reveal.scale { transform: scale(0.94); }
.reveal.visible { opacity:1; transform:none; }
.delay-1 { transition-delay:0.1s; }
.delay-2 { transition-delay:0.2s; }
.delay-3 { transition-delay:0.3s; }
.delay-4 { transition-delay:0.4s; }
.delay-5 { transition-delay:0.5s; }

/* ════════════════════════════════════════════════════════
   UTILITIES
════════════════════════════════════════════════════════ */
.text-red   { color: var(--red); }
.text-gold  { color: var(--gold); }
.text-blue  { color: var(--blue); }
.text-green { color: var(--green); }
.text-muted { color: var(--text-2); }
.text-dim   { color: var(--text-3); }
.text-white { color: var(--text); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.bold { font-weight: 700; }
.mono-text { font-family: var(--f-mono); }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.gap-4 { gap: 16px; } .gap-5 { gap: 24px; } .gap-6 { gap: 32px; }

.w-full { width: 100%; }
.max-w-sm { max-width: 460px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 860px; }
.mx-auto { margin: 0 auto; }

.mt-1{margin-top:4px} .mt-2{margin-top:8px} .mt-3{margin-top:16px}
.mt-4{margin-top:24px} .mt-5{margin-top:32px} .mt-6{margin-top:48px}
.mb-1{margin-bottom:4px} .mb-2{margin-bottom:8px} .mb-3{margin-bottom:16px}
.mb-4{margin-bottom:24px} .mb-5{margin-bottom:32px} .mb-6{margin-bottom:48px}

/* Live dot indicator */
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE — SHARED
════════════════════════════════════════════════════════ */
@media(max-width:1024px){
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions .nav-login { display: none; }
}
@media(max-width:640px){
  .container { padding: 0 18px; }
  .apex-section { padding: 70px 0; }
  .apex-section-lg { padding: 90px 0; }
  .nav-register { padding: 8px 16px; font-size: 12px; }
}

/* ════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
════════════════════════════════════════════════════════ */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 80px 0 70px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 80% at 50% -20%, rgba(79,124,255,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-tag { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2.2rem,5vw,3.6rem); margin-bottom: 16px; }
.page-hero p  { font-size: 1.05rem; max-width: 540px; color: var(--text-2); }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-3); margin-bottom: 24px;
  font-family: var(--f-mono);
}
.breadcrumb a { color: var(--text-3); transition: var(--ease); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-sep { color: var(--text-3); font-size: 10px; }

/* ════════════════════════════════════════════════════════
   CTA SECTION (shared)
════════════════════════════════════════════════════════ */
.apex-cta-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 90px 0;
  position: relative; overflow: hidden;
  text-align: center;
}
.apex-cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 50%, rgba(232,25,44,0.07) 0%, transparent 65%);
}
.apex-cta-section h2 { font-size: clamp(2rem,4vw,3rem); margin-bottom: 16px; position: relative; z-index: 1; }
.apex-cta-section p { font-size: 1.05rem; margin-bottom: 40px; position: relative; z-index: 1; }
.cta-btn-group { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ════════════════════════════════════════════════════════
   ANNOUNCEMENT BAR
════════════════════════════════════════════════════════ */
.announce-bar {
  background: linear-gradient(90deg, var(--blue-dim), rgba(232,25,44,0.06));
  border-bottom: 1px solid rgba(79,124,255,0.15);
  padding: 9px 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.announce-bar strong { color: var(--text); }
.announce-bar .sep { color: var(--border-lg); }

/* ════════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 28px; right: 24px;
  z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  padding: 13px 20px 13px 16px;
  text-decoration: none;
  font-family: var(--f-body);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35), 0 2px 8px rgba(0,0,0,0.3);
  transition: max-width 0.35s cubic-bezier(0.4,0,0.2,1), transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  max-width: 56px;
}
.wa-float:hover {
  max-width: 220px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(37,211,102,0.5), 0 4px 12px rgba(0,0,0,0.3);
  transform: translateY(-3px);
  animation: none;
}
.wa-float i { font-size: 22px; flex-shrink: 0; line-height: 1; }
.wa-float-label {
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s 0.15s;
  pointer-events: none;
  font-size: 13.5px;
}
.wa-float:hover .wa-float-label { opacity: 1; }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.35), 0 2px 8px rgba(0,0,0,0.3), 0 0 0 0 rgba(37,211,102,0.45); }
  60%      { box-shadow: 0 4px 20px rgba(37,211,102,0.35), 0 2px 8px rgba(0,0,0,0.3), 0 0 0 10px rgba(37,211,102,0); }
}
.wa-float { animation: wa-pulse 2.8s ease-out infinite; }
@media(max-width:640px) {
  .wa-float { bottom: 20px; right: 16px; padding: 13px; border-radius: 50%; max-width: 50px; }
  .wa-float-label { display: none; }
  .wa-float:hover { max-width: 50px; border-radius: 50%; }
}
