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

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

:root {
  --bg:         #0A0F1E;
  --bg2:        #0F1629;
  --card:       #131929;
  --card2:      #1A2038;
  --border:     rgba(124,58,237,0.18);
  --border2:    rgba(255,255,255,0.06);
  --purple:     #7C3AED;
  --purple2:    #6D28D9;
  --purple3:    #5B21B6;
  --purple-soft:#A78BFA;
  --purple-dim: rgba(124,58,237,0.12);
  --purple-glow:rgba(124,58,237,0.3);
  --white:      #FFFFFF;
  --off-white:  #F1F5F9;
  --muted:      #8892A4;
  --muted2:     #64748B;
  --light:      #CBD5E1;
  --success:    #10B981;
  --warning:    #F59E0B;
  --danger:     #EF4444;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --radius:   14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-purple: 0 8px 32px rgba(124,58,237,0.3);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  height: 68px;
  background: rgba(10,15,30,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 40px; gap: 32px;
}
.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 800;
  color: var(--white); text-decoration: none;
  letter-spacing: -0.02em; flex-shrink: 0;
}
.navbar-brand em {
  font-style: normal;
  background: linear-gradient(135deg, var(--purple-soft), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-links {
  display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center;
}
.navbar-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: all 0.15s; white-space: nowrap;
}
.navbar-links a:hover { color: var(--white); background: var(--card2); }
.navbar-links a.active { color: var(--purple-soft); background: var(--purple-dim); }
.navbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.navbar-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto;
}
.navbar-hamburger span { display: block; width: 22px; height: 2px; background: var(--muted); border-radius: 2px; transition: all 0.2s; }
.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px; z-index: 199; flex-direction: column; gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--light); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 12px 16px; border-radius: var(--radius-sm); transition: all 0.15s;
}
.mobile-menu a:hover { background: var(--card2); color: var(--white); }
.mobile-menu a.active { color: var(--purple-soft); background: var(--purple-dim); }
.mobile-menu-divider { height: 1px; background: var(--border2); margin: 8px 0; }
@media (max-width: 768px) {
  .navbar { padding: 0 20px; gap: 0; }
  .navbar-links { display: none; }
  .navbar-actions { display: none; }
  .navbar-hamburger { display: flex; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.15s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--purple); color: var(--white); box-shadow: var(--shadow-purple); }
.btn-primary:hover { background: var(--purple2); transform: translateY(-1px); box-shadow: 0 12px 40px rgba(124,58,237,0.4); }
.btn-secondary { background: var(--card2); color: var(--white); border: 1px solid var(--border2); }
.btn-secondary:hover { background: var(--card); border-color: var(--border); }
.btn-outline { background: transparent; color: var(--purple-soft); border: 1.5px solid rgba(124,58,237,0.35); }
.btn-outline:hover { background: var(--purple-dim); border-color: var(--purple-soft); }
.btn-ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--border2); }
.btn-ghost:hover { color: var(--white); border-color: var(--border); }
.btn-danger-soft { background: transparent; color: #FCA5A5; border: 1.5px solid rgba(239,68,68,0.2); }
.btn-danger-soft:hover { background: rgba(239,68,68,0.08); }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.825rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── CARDS ── */
.card { background: var(--card); border: 1px solid var(--border2); border-radius: var(--radius); padding: 24px; }
.card-purple { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }

/* ── FORMS ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }
.form-input, .form-select {
  background: var(--bg2); border: 1.5px solid var(--border2); border-radius: var(--radius-sm);
  color: var(--white); font-family: var(--font-body); font-size: 0.925rem;
  padding: 12px 16px; width: 100%; transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none; -webkit-appearance: none;
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238892A4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer;
}
.form-input:focus, .form-select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,0.18); }
.form-input::placeholder { color: var(--muted2); }
.form-select option { background: var(--card2); }
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 20px; font-size: 0.73rem; font-weight: 700; }
.badge-purple { background: var(--purple-dim); color: var(--purple-soft); border: 1px solid rgba(124,58,237,0.2); }
.badge-green  { background: rgba(16,185,129,0.1); color: #34D399; }
.badge-amber  { background: rgba(245,158,11,0.1); color: #FCD34D; }
.badge-red    { background: rgba(239,68,68,0.1); color: #FCA5A5; }
.badge-muted  { background: rgba(136,146,164,0.08); color: var(--muted); }

/* ── TYPE ── */
.display-xl { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; }
.display-lg { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
.display-md { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.display-sm { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple-soft); }
.body-lg { font-size: 1.05rem; line-height: 1.75; color: var(--light); }
.body-md { font-size: 0.925rem; line-height: 1.65; color: var(--muted); }
.body-sm { font-size: 0.825rem; line-height: 1.6; color: var(--muted); }

.text-white   { color: var(--white) !important; }
.text-purple  { color: var(--purple-soft) !important; }
.text-muted   { color: var(--muted) !important; }
.text-success { color: #34D399 !important; }
.text-danger  { color: #FCA5A5 !important; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ── LAYOUT ── */
.container    { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.container-sm { max-width: 720px;  margin: 0 auto; padding: 0 32px; }
.section      { padding: 72px 0; }
.section-sm   { padding: 48px 0; }
@media (max-width: 600px) { .container, .container-sm { padding: 0 20px; } .section { padding: 48px 0; } }

/* ── UTILITIES ── */
.divider { height: 1px; background: var(--border2); }
.divider-purple { height: 1px; background: var(--border); }
.mt-4{margin-top:4px} .mt-8{margin-top:8px} .mt-12{margin-top:12px} .mt-16{margin-top:16px}
.mt-20{margin-top:20px} .mt-24{margin-top:24px} .mt-32{margin-top:32px} .mt-40{margin-top:40px}
.flex{display:flex} .flex-col{flex-direction:column} .items-center{align-items:center}
.justify-between{justify-content:space-between} .flex-wrap{flex-wrap:wrap} .flex-1{flex:1}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:768px){.grid-2,.grid-3{grid-template-columns:1fr}}

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--card2); color: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--purple); border-radius: var(--radius-sm); padding: 14px 20px; font-size: 0.875rem; font-weight: 500; box-shadow: 0 8px 30px rgba(0,0,0,0.5); animation: toastIn 0.25s ease; max-width: 320px; }
.toast.error { border-left-color: var(--danger); }
.toast.success { border-left-color: var(--success); }
@keyframes toastIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* ── SKELETON ── */
.skeleton { background: linear-gradient(90deg,var(--card) 25%,var(--card2) 50%,var(--card) 75%); background-size: 200% 100%; animation: shimmer 1.6s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ── AUTH ── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px 40px; box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 80px rgba(124,58,237,0.08); }
.auth-logo { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--white); text-decoration: none; letter-spacing: -0.02em; display: block; margin-bottom: 28px; text-align: center; }
.auth-logo em { font-style: normal; background: linear-gradient(135deg, var(--purple-soft), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.auth-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-subtitle { font-size: 0.875rem; color: var(--muted); text-align: center; margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .form-label { font-size: 0.85rem; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--light); }
.auth-footer { text-align: center; font-size: 0.875rem; color: var(--muted); margin-top: 20px; }
.auth-footer a { color: var(--purple-soft); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted2); font-size: 0.8rem; margin: 4px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border2); }
.password-field { position: relative; }
.toggle-pwd-btn { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--muted2); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
@media(max-width:500px) { .auth-card { padding: 32px 24px; } }

/* ── PAGE FOOTER ── */
.site-footer { border-top: 1px solid var(--border2); padding: 40px 32px; text-align: center; }
.site-footer p { font-size: 0.85rem; color: var(--muted2); }
.site-footer a { color: var(--purple-soft); text-decoration: none; }
