/* =====================================================
   AURORA PAYMENTS — MAIN STYLESHEET
   Полная дизайн-система для всех страниц
   ===================================================== */

/* ---- Google Fonts + Variables ---- */
@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');

:root {
  /* Backgrounds */
  --bg-0: #04040c;
  --bg-1: #07071a;
  --bg-2: #0c0c24;
  --bg-3: #11112e;

  /* Brand Colors */
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --purple-dark: #5b21b6;
  --purple-dim: rgba(124, 58, 237, 0.12);
  --cyan: #06b6d4;
  --cyan-light: #67e8f9;
  --cyan-dim: rgba(6, 182, 212, 0.12);
  --green: #10b981;
  --green-light: #6ee7b7;
  --red: #ef4444;
  --red-light: #fca5a5;
  --orange: #f97316;
  --orange-light: #fdba74;
  --yellow: #f59e0b;
  --yellow-light: #fde68a;

  /* Text */
  --text-0: #f8fafc;
  --text-1: #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #64748b;

  /* Glass & Borders */
  --glass: rgba(255, 255, 255, 0.04);
  --glass-hover: rgba(255, 255, 255, 0.07);
  --glass-active: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-focus: rgba(124, 58, 237, 0.5);

  /* Gradients */
  --grad-main: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --grad-aurora: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #0891b2 100%);
  --grad-purple: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  --grad-cyan: linear-gradient(135deg, #0891b2 0%, #67e8f9 100%);
  --grad-dark: linear-gradient(180deg, transparent 0%, rgba(4, 4, 12, 0.8) 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.35);
  --shadow-cyan: 0 0 30px rgba(6, 182, 212, 0.3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);

  /* Spacing scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;
  --s20: 80px; --s24: 96px;

  /* Border radius */
  --r-xs: 6px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --r-xl: 20px; --r-2xl: 24px; --r-full: 9999px;

  /* Fonts */
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  /* Transitions */
  --t-fast: all 0.15s ease;
  --t: all 0.25s ease;
  --t-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Nav height */
  --nav-h: 70px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: #04040c;
}
body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--text-0);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-sans); cursor: pointer; border: none; outline: none; background: none; }
input, textarea, select { font-family: var(--font-sans); outline: none; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.4); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }
::selection { background: rgba(124,58,237,0.3); color: var(--text-0); }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--s6); }

/* ---- Section ---- */
.section { padding: var(--s24) 0; }
.section-header { text-align: center; margin-bottom: var(--s16); }
.section-tag {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 5px 14px;
  background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--r-full); font-size: 12px; font-weight: 600; color: var(--purple-light);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s4);
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800;
  background: var(--grad-aurora);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: var(--s4);
}
.section-subtitle { font-size: 1.05rem; color: var(--text-2); max-width: 580px; margin: 0 auto; }

/* ---- Gradient Text ---- */
.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 12px 26px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 600;
  transition: var(--t); cursor: pointer; position: relative; overflow: hidden; border: none;
  white-space: nowrap;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.08); opacity: 0; transition: var(--t-fast);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--grad-main); color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,0.55); }

.btn-secondary {
  background: var(--glass); color: var(--text-0);
  border: 1px solid var(--border); backdrop-filter: blur(12px);
}
.btn-secondary:hover { background: var(--glass-hover); border-color: var(--border-hover); transform: translateY(-2px); }

.btn-outline {
  background: transparent; color: var(--purple-light);
  border: 1px solid rgba(124,58,237,0.4);
}
.btn-outline:hover { background: rgba(124,58,237,0.1); border-color: var(--purple); }

.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text-0); background: var(--glass); }

.btn-danger {
  background: rgba(239,68,68,0.15); color: var(--red-light);
  border: 1px solid rgba(239,68,68,0.3);
}
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-lg { padding: 15px 34px; font-size: 16px; border-radius: var(--r-lg); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--r-sm); }
.btn-xs { padding: 5px 12px; font-size: 12px; border-radius: var(--r-xs); }
.btn-icon { padding: 10px; border-radius: var(--r-sm); }
.btn-full { width: 100%; }

/* ---- Cards ---- */
.card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s6);
  transition: var(--t); backdrop-filter: blur(10px);
}
.card:hover {
  border-color: var(--border-hover); background: var(--glass-hover);
  transform: translateY(-4px); box-shadow: var(--shadow-card);
}
.card-glow:hover { box-shadow: var(--shadow-glow); }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
}
.badge-purple { background: rgba(124,58,237,0.18); color: var(--purple-light); border: 1px solid rgba(124,58,237,0.3); }
.badge-cyan   { background: rgba(6,182,212,0.18);  color: var(--cyan-light);   border: 1px solid rgba(6,182,212,0.3); }
.badge-green  { background: rgba(16,185,129,0.18); color: var(--green-light);  border: 1px solid rgba(16,185,129,0.3); }
.badge-red    { background: rgba(239,68,68,0.18);  color: var(--red-light);    border: 1px solid rgba(239,68,68,0.3); }
.badge-orange { background: rgba(249,115,22,0.18); color: var(--orange-light); border: 1px solid rgba(249,115,22,0.3); }
.badge-yellow { background: rgba(245,158,11,0.18); color: var(--yellow-light); border: 1px solid rgba(245,158,11,0.3); }
.badge-gray   { background: rgba(100,116,139,0.18); color: #94a3b8; border: 1px solid rgba(100,116,139,0.3); }

/* ---- Form Elements ---- */
.form-group { margin-bottom: var(--s5); }
.form-label { display: block; font-size: 14px; font-weight: 500; color: var(--text-1); margin-bottom: 7px; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--red-light); margin-top: 5px; display: none; }
.form-error.visible { display: block; }

.form-input {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--r-md); color: var(--text-0); font-size: 15px;
  transition: var(--t-fast);
}
.form-input:focus {
  border-color: var(--purple);
  background: rgba(124,58,237,0.05);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.form-input::placeholder { color: var(--text-3); }
.form-input.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }

.input-wrap { position: relative; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: 16px; pointer-events: none; z-index: 1;
}
.input-wrap .form-input { padding-left: 44px; }
.input-wrap .input-action {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); cursor: pointer; padding: 4px; transition: var(--t-fast); z-index: 1;
}
.input-wrap .input-action:hover { color: var(--text-1); }

/* Password strength */
.pw-strength { margin-top: 8px; }
.pw-strength-bar { height: 4px; border-radius: 99px; background: var(--border); overflow: hidden; }
.pw-strength-fill { height: 100%; border-radius: 99px; transition: var(--t); width: 0; }
.pw-strength-text { font-size: 11px; margin-top: 4px; color: var(--text-3); }

/* ---- Divider ---- */
.divider {
  display: flex; align-items: center; gap: var(--s4);
  color: var(--text-3); font-size: 13px; margin: var(--s5) 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 1000;
  padding: 0 var(--s6);
  background-color: #04040c;
  transition: box-shadow 0.2s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 1px #04040c;
}
.navbar::before {
  content: '';
  position: absolute;
  top: -30px; left: -1px; right: -1px;
  height: 31px;
  background-color: #04040c;
  pointer-events: none;
  z-index: -1;
}
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background-color: #04040c;
  pointer-events: none;
  z-index: -1;
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 1px 0 0 rgba(255,255,255,0.08);
}
.nav-inner {
  width: 100%; max-width: 1200px; height: 100%;
  margin: 0 auto; padding: 0 var(--s6);
  display: flex; align-items: center; justify-content: space-between;
}
/* ---- Logo: иконка + Aurora Pay + подзаголовок (компактные размеры) ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-radius: var(--r-md);
  flex-shrink: 0;
}
.nav-logo { text-decoration: none; color: inherit; }
.nav-logo .logo { padding: 4px 0; gap: 10px; }

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg,
.logo-icon img { width: 100%; height: 100%; display: block; object-fit: contain; }

.logo-text { display: flex; flex-direction: column; gap: 0; }

.logo-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.15;
}
.logo-title .aurora {
  background: linear-gradient(90deg, #2F6BFF, #7A3BFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.logo-title .pay {
  color: #2EC5B6;
  font-weight: 500;
}

.logo-subtitle {
  font-size: 10px;
  font-weight: 400;
  color: #8A8F98;
  line-height: 1.25;
  margin-top: 1px;
}

/* Варианты: форма авторизации */
.auth-logo .logo { padding: 12px 0; gap: 12px; }
.auth-logo .logo-icon { width: 40px; height: 40px; }
.auth-logo .logo-title { font-size: 22px; }
.auth-logo .logo-subtitle { font-size: 11px; }

/* Декоративный блок (login справа) */
.logo--deco .logo { padding: 16px 0; gap: 14px; }
.logo--deco .logo-icon { width: 48px; height: 48px; }
.logo--deco .logo-title { font-size: 26px; }
.logo--deco .logo-subtitle { font-size: 12px; }

.footer-brand .logo-subtitle { color: var(--text-2); }

/* Simple Icons через jsDelivr (mask для цвета) */
.si-icon { vertical-align: middle; }
.trusted-item .si-icon { opacity: 0.7; transition: opacity 0.2s; }
.trusted-item:hover .si-icon { opacity: 1; }

/* Адаптив */
@media (max-width: 768px) {
  .logo { gap: 8px; padding: 4px 0; }
  .nav-logo .logo { gap: 8px; }
  .logo-icon { width: 28px; height: 28px; }
  .logo-title { font-size: 16px; }
  .logo-subtitle { font-size: 9px; }
  .auth-logo .logo-icon { width: 36px; height: 36px; }
  .auth-logo .logo-title { font-size: 20px; }
  .auth-logo .logo-subtitle { font-size: 10px; }
  .logo--deco .logo-icon { width: 40px; height: 40px; }
  .logo--deco .logo-title { font-size: 22px; }
}

.nav-links { display: flex; align-items: center; gap: var(--s8); }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: var(--t-fast); position: relative; padding: 4px 0;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--grad-main); border-radius: 99px;
  transform: scaleX(0); transition: var(--t-fast);
}
.nav-link:hover, .nav-link.active { color: var(--text-0); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: var(--s2); }
.nav-user-btn {
  display: flex; align-items: center; gap: var(--s2);
  padding: 8px 14px; background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r-full); color: var(--text-1); font-size: 14px; font-weight: 500;
  transition: var(--t-fast); cursor: pointer;
}
.nav-user-btn:hover { background: var(--glass-hover); border-color: var(--border-hover); }
.nav-avatar {
  width: 28px; height: 28px; background: var(--grad-main);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white;
}

.nav-menu-btn { display: none; color: var(--text-0); font-size: 20px; padding: var(--s2); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: rgba(4,4,12,0.97); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: var(--s6); z-index: 998;
  flex-direction: column; gap: 0;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  font-size: 16px; font-weight: 500; color: var(--text-1);
  padding: var(--s4) 0; border-bottom: 1px solid var(--border);
  transition: var(--t-fast); display: flex; align-items: center; gap: var(--s3);
}
.mobile-nav-link:hover { color: var(--purple-light); padding-left: var(--s3); }
.mobile-nav-actions { margin-top: var(--s6); display: flex; flex-direction: column; gap: var(--s3); }

/* ============================================
   FOOTER
   ============================================ */
footer {
  border-top: 1px solid var(--border); background: var(--bg-1);
  padding: var(--s16) 0 var(--s8);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s12); margin-bottom: var(--s12);
}
.footer-brand p { color: var(--text-2); margin-top: var(--s4); font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-head { font-size: 13px; font-weight: 700; color: var(--text-0); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--s5); }
.footer-links { display: flex; flex-direction: column; gap: var(--s3); }
.footer-link { font-size: 14px; color: var(--text-2); transition: var(--t-fast); }
.footer-link:hover { color: var(--purple-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s8); border-top: 1px solid var(--border);
}
.footer-copy { font-size: 13px; color: var(--text-3); }
.social-links { display: flex; gap: var(--s2); }
.social-btn {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--glass); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 14px; transition: var(--t-fast);
}
.social-btn:hover {
  background: rgba(124,58,237,0.2); border-color: rgba(124,58,237,0.4);
  color: var(--purple-light); transform: translateY(-2px);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed; bottom: 24px; left: 24px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-1); font-size: 18px;
  box-shadow: var(--shadow-md); z-index: 999;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease,
              background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.back-to-top.visible {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.back-to-top:hover {
  background: var(--glass-hover); border-color: var(--border-hover);
  color: var(--purple-light);
}
@media (max-width: 768px) {
  .back-to-top { display: none !important; }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 9999; max-width: 360px;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--bg-2); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); font-size: 14px; color: var(--text-0);
  transform: translateX(110%); opacity: 0; transition: var(--t-slow);
}
.toast.visible { transform: translateX(0); opacity: 1; }
.toast-success { border-color: rgba(16,185,129,0.4); }
.toast-success i { color: var(--green); }
.toast-error { border-color: rgba(239,68,68,0.4); }
.toast-error i { color: var(--red); }
.toast-warning { border-color: rgba(245,158,11,0.4); }
.toast-warning i { color: var(--yellow); }
.toast-info { border-color: rgba(124,58,237,0.4); }
.toast-info i { color: var(--purple-light); }
.toast i:first-child { font-size: 17px; flex-shrink: 0; }
.toast span { flex: 1; }
.toast-close { color: var(--text-3); font-size: 13px; padding: 2px; flex-shrink: 0; transition: var(--t-fast); }
.toast-close:hover { color: var(--text-0); }

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: var(--s4); opacity: 0; visibility: hidden; transition: var(--t);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-2xl); padding: var(--s8);
  max-width: 480px; width: 100%;
  transform: scale(0.94) translateY(16px); transition: var(--t);
  box-shadow: var(--shadow-xl);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s6); }
.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-close { color: var(--text-2); font-size: 18px; padding: 4px; transition: var(--t-fast); border-radius: var(--r-sm); }
.modal-close:hover { color: var(--text-0); background: var(--glass); }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 40px) var(--s4) var(--s12);
  position: relative;
}
.auth-bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
}
.auth-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.15;
}
.auth-orb-1 { width: 600px; height: 600px; background: var(--purple); top: -200px; right: -200px; animation: orbFloat 8s ease-in-out infinite; }
.auth-orb-2 { width: 400px; height: 400px; background: var(--cyan); bottom: -100px; left: -100px; animation: orbFloat 10s ease-in-out infinite reverse; }
.auth-orb-3 { width: 300px; height: 300px; background: var(--purple-dark); top: 50%; left: 20%; animation: orbFloat 12s ease-in-out infinite 2s; }

.auth-card {
  background: rgba(7,7,26,0.85); border: 1px solid var(--border);
  border-radius: var(--r-2xl); padding: var(--s10);
  width: 100%; max-width: 440px;
  position: relative; z-index: 1;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.auth-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: var(--s8); gap: var(--s3); }
.auth-logo h1 { font-size: 1.5rem; font-weight: 800; }
.auth-logo p { font-size: 14px; color: var(--text-2); text-align: center; }

.auth-footer { text-align: center; margin-top: var(--s6); font-size: 14px; color: var(--text-2); }
.auth-footer a { color: var(--purple-light); font-weight: 500; transition: var(--t-fast); }
.auth-footer a:hover { color: var(--cyan-light); }

/* ============================================
   DASHBOARD
   ============================================ */
.dash-layout {
  display: flex; min-height: 100vh; padding-top: var(--nav-h);
  max-width: 1200px; margin: 0 auto; padding-left: var(--s6); padding-right: var(--s6);
}
.dash-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--bg-1); border-right: 1px solid var(--border);
  padding: var(--s6) 0; overflow-y: auto;
  transition: var(--t-slow);
}
.dash-main {
  flex: 1; min-width: 0;
  padding: var(--s8); padding-top: var(--s8);
}
.dash-nav { padding: 0 var(--s8); }
.dash-nav-item {
  display: flex; align-items: center; gap: var(--s3);
  padding: 11px var(--s4); border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: var(--t-fast); cursor: pointer; margin-bottom: 2px;
}
.dash-nav-item:hover { background: var(--glass); color: var(--text-0); }
.dash-nav-item.active { background: rgba(124,58,237,0.15); color: var(--purple-light); border: 1px solid rgba(124,58,237,0.2); }
.dash-nav-item .nav-icon { width: 18px; text-align: center; font-size: 15px; }
.dash-nav-divider { height: 1px; background: var(--border); margin: var(--s4) var(--s4); }

/* Dashboard cards */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-bottom: var(--s8); }
.stat-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s5);
  transition: var(--t);
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.stat-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: var(--s4);
}
.stat-value { font-size: 1.7rem; font-weight: 800; font-family: var(--font-display); }
.stat-label { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* Orders table */
.orders-section { background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.orders-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s5) var(--s6); border-bottom: 1px solid var(--border);
}
.orders-title { font-size: 1rem; font-weight: 700; }
.order-card {
  padding: var(--s5) var(--s6); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: var(--s4);
  transition: var(--t-fast);
}
.order-card:last-child { border-bottom: none; }
.order-card:hover { background: var(--glass); }
.order-service-icon {
  width: 42px; height: 42px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.order-info { flex: 1; min-width: 0; }
.order-name { font-weight: 600; font-size: 15px; }
.order-meta { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.order-price { font-weight: 700; font-size: 15px; text-align: right; }
.order-price-sub { font-size: 12px; color: var(--text-2); }

/* Empty state */
.empty-state { padding: var(--s20) var(--s6); text-align: center; }
.empty-icon { font-size: 3rem; color: var(--text-3); margin-bottom: var(--s4); }
.empty-title { font-size: 1.1rem; font-weight: 700; color: var(--text-1); margin-bottom: var(--s2); }
.empty-text { font-size: 14px; color: var(--text-2); }

/* ============================================
   ORDER PAGE
   ============================================ */
.order-page {
  min-height: 100vh; padding: calc(var(--nav-h) + 40px) 0 var(--s16);
}
.order-layout {
  display: grid; grid-template-columns: 1fr 380px;
  gap: var(--s8); align-items: start;
}
.order-form-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r-2xl); padding: var(--s8);
  backdrop-filter: blur(10px);
}
.order-summary-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-2xl); padding: var(--s6);
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.order-summary-title { font-size: 1rem; font-weight: 700; margin-bottom: var(--s5); }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s3) 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--text-2); }
.summary-row .value { font-weight: 600; }
.summary-total { padding-top: var(--s4); margin-top: var(--s2); }
.summary-total .label { font-size: 15px; font-weight: 600; color: var(--text-0); }
.summary-total .value { font-size: 1.3rem; font-weight: 800; background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.security-notice {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding: var(--s4); background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2); border-radius: var(--r-md);
  font-size: 13px; color: var(--text-2);
}
.security-notice i { color: var(--green); font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* Step progress */
.step-progress { display: flex; align-items: center; gap: 0; margin-bottom: var(--s8); }
.step-item { display: flex; align-items: center; gap: var(--s3); flex: 1; }
.step-item:last-child { flex: 0; }
.step-dot {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--text-3); flex-shrink: 0;
  transition: var(--t);
}
.step-dot.active { border-color: var(--purple); background: rgba(124,58,237,0.15); color: var(--purple-light); }
.step-dot.done { border-color: var(--green); background: rgba(16,185,129,0.15); color: var(--green); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 var(--s2); }
.step-line.done { background: var(--grad-main); }
.step-label { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ============================================
   SERVICE CARDS (on order page)
   ============================================ */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s4); }
.service-select-card {
  background: var(--glass); border: 2px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s5);
  cursor: pointer; transition: var(--t);
}
.service-select-card:hover { border-color: var(--purple); background: rgba(124,58,237,0.06); transform: translateY(-2px); }
.service-select-card.selected { border-color: var(--purple); background: rgba(124,58,237,0.1); box-shadow: var(--shadow-glow); }
.service-select-icon { width: 44px; height: 44px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: var(--s3); }
.service-select-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.service-select-price { font-size: 13px; color: var(--text-2); }

/* ============================================
   LANDING PAGE - HERO
   ============================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: var(--nav-h) 0 var(--s16);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
}
.hero-orb-1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(124,58,237,0.25) 0%, transparent 70%); top: -200px; right: -100px; animation: orbFloat 10s ease-in-out infinite; }
.hero-orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(6,182,212,0.2) 0%, transparent 70%); bottom: -150px; left: -50px; animation: orbFloat 14s ease-in-out infinite 3s; }
.hero-orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%); top: 30%; left: 35%; animation: orbFloat 8s ease-in-out infinite 1s; }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s12); align-items: center;
  padding-top: var(--s12);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 7px 16px;
  background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--r-full); font-size: 13px; font-weight: 600; color: var(--purple-light);
  margin-bottom: var(--s5); animation: fadeInUp 0.6s ease both;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.1;
  margin-bottom: var(--s5); animation: fadeInUp 0.7s 0.1s ease both;
}
.hero-title .highlight {
  display: block; background: var(--grad-aurora); background-size: 200% 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: auroraShift 4s ease infinite;
}
.hero-desc {
  font-size: 1.1rem; color: var(--text-2); max-width: 500px; line-height: 1.7;
  margin-bottom: var(--s8); animation: fadeInUp 0.8s 0.2s ease both;
}
.hero-actions { display: flex; gap: var(--s3); flex-wrap: wrap; animation: fadeInUp 0.9s 0.3s ease both; }
.hero-stats {
  display: flex; gap: var(--s8); margin-top: var(--s8);
  animation: fadeInUp 1s 0.4s ease both;
}
.hero-stat .value { font-size: 1.6rem; font-weight: 800; font-family: var(--font-display); background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat .label { font-size: 13px; color: var(--text-2); }

/* Hero visual */
.hero-visual {
  position: relative; height: 500px;
  animation: fadeInUp 1s 0.3s ease both;
}
.floating-cards {
  position: relative; width: 100%; height: 100%;
}
.float-card {
  position: absolute; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-lg);
  padding: 14px 18px; backdrop-filter: blur(15px);
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: var(--t);
}
.float-card:hover { transform: translateY(-4px) scale(1.02) !important; }
.float-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.float-card-name { font-weight: 700; font-size: 14px; }
.float-card-price { font-size: 13px; color: var(--text-2); }
.float-card-badge { font-size: 11px; font-weight: 600; color: var(--green); }

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-filter {
  display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: center;
  margin-bottom: var(--s10);
}
.filter-btn {
  padding: 8px 18px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--glass); border: 1px solid var(--border);
  color: var(--text-2); transition: var(--t-fast);
}
.filter-btn:hover { background: var(--glass-hover); color: var(--text-0); }
.filter-btn.active {
  background: rgba(124,58,237,0.2); border-color: rgba(124,58,237,0.4);
  color: var(--purple-light);
}

.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s5);
}
.service-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s6);
  transition: var(--t); position: relative; overflow: hidden;
  cursor: pointer;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-main); opacity: 0; transition: var(--t);
}
.service-card:hover {
  border-color: rgba(124,58,237,0.4); background: var(--glass-hover);
  transform: translateY(-6px); box-shadow: var(--shadow-glow);
}
.service-card:hover::before { opacity: 1; }
.service-card.popular { border-color: rgba(124,58,237,0.3); }
.popular-badge {
  position: absolute; top: var(--s4); right: var(--s4);
  padding: 3px 10px; background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--r-full); font-size: 11px; font-weight: 700; color: var(--purple-light);
}
.service-icon {
  width: 52px; height: 52px; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: var(--s4); flex-shrink: 0;
}
.service-icon img,
.spick-icon img,
.order-service-icon img,
.float-card-icon img {
  display: block; flex-shrink: 0; object-fit: contain;
}
.service-provider { font-size: 12px; color: var(--text-3); font-weight: 500; margin-bottom: 4px; }
.service-name { font-size: 1.05rem; font-weight: 700; margin-bottom: var(--s2); }
.service-desc { font-size: 13px; color: var(--text-2); margin-bottom: var(--s4); line-height: 1.5; }
.service-features { margin-bottom: var(--s5); }
.service-feature {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2); padding: 4px 0;
}
.service-feature i { color: var(--green); font-size: 12px; flex-shrink: 0; }
.service-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--border);
}
.service-price .main { font-size: 1.25rem; font-weight: 800; font-family: var(--font-display); }
.service-price .sub { font-size: 12px; color: var(--text-2); }
.service-timing { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s6); position: relative;
}
.how-grid::before {
  content: ''; position: absolute;
  top: 36px; left: calc(16.67% + 32px); right: calc(16.67% + 32px);
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  opacity: 0.4;
}
.how-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s8);
  text-align: center; transition: var(--t);
}
.how-card:hover { border-color: var(--border-hover); transform: translateY(-6px); box-shadow: var(--shadow-card); }
.how-num {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--grad-main); display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: white; font-family: var(--font-display);
  margin: 0 auto var(--s5); box-shadow: var(--shadow-glow); position: relative; z-index: 1;
}
.how-title { font-size: 1.05rem; font-weight: 700; margin-bottom: var(--s3); }
.how-text { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ============================================
   WHY US
   ============================================ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.why-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--s6);
  transition: var(--t);
}
.why-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.why-icon {
  width: 52px; height: 52px; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: var(--s4);
}
.why-title { font-size: 1rem; font-weight: 700; margin-bottom: var(--s2); }
.why-text { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ============================================
   STATS
   ============================================ */
.stats-section {
  padding: var(--s16) 0; background: linear-gradient(135deg, rgba(124,58,237,0.06) 0%, rgba(6,182,212,0.06) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s8); }
.stat-block { text-align: center; }
.stat-num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; font-family: var(--font-display); background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-suf { background: var(--grad-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-desc { font-size: 14px; color: var(--text-2); margin-top: var(--s2); }

/* ============================================
   FAQ
   ============================================ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: var(--s5) 0; cursor: pointer; gap: var(--s4);
  font-size: 16px; font-weight: 600; color: var(--text-0); text-align: left;
  transition: var(--t-fast); background: none; border: none;
}
.faq-question:hover { color: var(--purple-light); }
.faq-icon { flex-shrink: 0; color: var(--text-3); transition: var(--t); }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--purple-light); }
.faq-answer {
  overflow: hidden; max-height: 0; transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { padding-bottom: var(--s5); font-size: 15px; color: var(--text-2); line-height: 1.7; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: var(--s16) 0;
}
.cta-card {
  background: var(--grad-aurora); border-radius: var(--r-2xl);
  padding: var(--s16); text-align: center; position: relative; overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 900; color: white; margin-bottom: var(--s4); }
.cta-subtitle { font-size: 1rem; color: rgba(255,255,255,0.7); margin-bottom: var(--s8); }

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes auroraShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(124,58,237,0.3); }
  50% { box-shadow: 0 0 40px rgba(124,58,237,0.6), 0 0 80px rgba(6,182,212,0.2); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Utility animation classes */
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.loading-spin { animation: spin 1s linear infinite; }

/* AOS custom override */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .dash-main { max-width: 100%; }
  .order-layout { grid-template-columns: 1fr; }
  .order-summary-card { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-grid::before { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-sidebar {
    position: fixed; top: var(--nav-h); bottom: 0; left: 0;
    z-index: 100; transform: translateX(-100%);
  }
  .dash-sidebar.mobile-open { transform: translateX(0); box-shadow: var(--shadow-xl); }
  .dash-main { margin-left: 0; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; align-items: center; }
  .section { padding: var(--s16) 0; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .footer-bottom { flex-direction: column; gap: var(--s4); text-align: center; }
  .auth-card { padding: var(--s6); }
  .hero-stats { gap: var(--s5); }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--s4); }
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .toast-container { left: 12px; right: 12px; bottom: 12px; max-width: 100%; }
}
