:root {
  --bg: #0a0b0d;
  --bg-2: #0e0f12;
  --txt: #e6e8ee;
  --muted: #8b8f9a;
  --success: #22c55e;
  --border: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.03);
  --glass: rgba(255, 255, 255, 0.04);
  --shadow: 0 10px 30px rgba(0,0,0,0.5);
  --radius: 14px;
  --radius-lg: 18px;
  --maxw: 1120px;
  --charcoal: #1a1b1f;
  --charcoal-2: #141517;
  --charcoal-3: #222328;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--txt);
  background: var(--bg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ========== BACKGROUND EFFECTS ========== */
.bg { position: fixed; inset: 0; z-index: -2; background: radial-gradient(ellipse at 50% 0%, #12141a 0%, var(--bg) 60%); }
}
.fx-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: glowFloat 20s ease-in-out infinite;
}
.glow-1 {
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 60%);
  top: -200px;
  left: -100px;
}
.glow-2 {
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 60%);
  bottom: -200px;
  right: -100px;
  animation-delay: -10s;
  animation-direction: reverse;
}
@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -40px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.9); }
}


/* ========== HEADER ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 20px;
  animation: headerSlide 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(-20px);
}
@keyframes headerSlide {
  to { opacity: 1; transform: translateY(0); }
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between; height: 56px;
  background: rgba(8,8,10,0.7);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  backdrop-filter: blur(20px) saturate(150%);
  padding: 0 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-row:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--txt); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.3px; transition: transform 0.3s ease; }
.brand:hover { transform: scale(1.02); }
.brand-icon { color: var(--txt); font-size: 20px; transition: transform 0.5s ease; }
.brand:hover .brand-icon { transform: rotate(180deg); }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; transition: all 0.3s ease; position: relative; }
.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--txt);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}
.nav a:not(.btn):hover { color: var(--txt); }
.nav a:not(.btn):hover::after { width: 20px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
  color: var(--txt); text-decoration: none; font-weight: 600; font-size: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer; position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--charcoal); border-color: rgba(255,255,255,0.12); }
.btn-primary:hover { 
  background: var(--charcoal-3); 
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4); 
}
.btn-ghost { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.btn-lg { padding: 12px 20px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-glow {
  box-shadow: 0 0 20px rgba(255,255,255,0.1), 0 0 40px rgba(255,255,255,0.05);
}
.btn-glow:hover {
  box-shadow: 0 0 30px rgba(255,255,255,0.15), 0 0 60px rgba(255,255,255,0.08);
}
.btn-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.nav .btn { height: 38px; padding: 0 14px; }

/* ========== HERO SPLIT ========== */
.hero-split {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.cta-left {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Device Frame on Right */
.hero-visual {
  position: relative;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -60px;
  transform: scale(1.1);
  transform-origin: center right;
}

.device-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0c0c10;
  will-change: transform;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5);
}

.device-frame:hover {
  border-color: rgba(255,255,255,0.25);
  box-shadow: 
    0 40px 80px -20px rgba(0,0,0,0.6),
    0 0 60px -10px rgba(255,255,255,0.08),
    0 0 30px -5px rgba(255,255,255,0.05);
}

.device-frame img {
  display: block;
  width: 100%;
  height: auto;
}



/* Animations */
.anim-in {
  opacity: 0;
  transform: translateY(30px);
  animation: animIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes animIn {
  to { opacity: 1; transform: translateY(0); }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--txt);
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.pill:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.pill .arrow {
  transition: transform 0.3s ease;
}
.pill:hover .arrow {
  transform: translateX(4px);
}
.display {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -1.5px;
  font-weight: 800;
  color: var(--txt);
}
.word {
  display: inline-block;
  transition: transform 0.3s ease;
}
.word:hover {
  transform: translateY(-4px);
}
.gradient-text {
  background: linear-gradient(135deg, #fff, #888);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: gradientShift 5s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
.sublede {
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
}
.cta-center {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.stats-row {
  display: flex;
  gap: 40px;
  justify-content: flex-start;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: -0.5px;
  transition: transform 0.3s ease;
}
.stat:hover .stat-num { transform: scale(1.05); }
.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.scroll-arrow {
  width: 20px;
  height: 30px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  position: relative;
}
.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
  animation: scrollBounce 1.5s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}

/* Swirl */
.swirl {
  position: absolute;
  inset: -20vh -20vw;
  z-index: 1;
  pointer-events: none;
  animation: swirlSpin 90s linear infinite;
}
.swirl .tile {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 280px;
  border-radius: 16px;
  background-image: url('Xnip2025-10-31_12-07-34.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  filter: saturate(0.6) brightness(0.7);
  opacity: 0.35;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 36deg)) translateX(min(480px, 38vw)) rotate(calc(var(--i) * -36deg)) scale(0.85);
  transition: all 0.5s ease;
}
.swirl:hover .tile {
  opacity: 0.45;
  filter: saturate(0.8) brightness(0.8);
}
@keyframes swirlSpin {
  to { transform: rotate(360deg); }
}

/* ========== SECTIONS ========== */
.section { padding: 100px 0; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 40px;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  font-weight: 700;
}
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card:hover::before { opacity: 1; }
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.card h3 { margin: 14px 0 10px; font-size: 18px; }
.card p { color: var(--muted); margin: 0 0 16px; font-size: 14px; line-height: 1.6; }
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.card-tag {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  font-family: monospace;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
}
.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  transition: all 0.4s ease;
}
.card-icon svg {
  width: 24px;
  height: 24px;
}
.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.03), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover .card-glow { opacity: 1; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Status Section */
.status-section { padding: 40px 0; }
.status-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.status-card:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
  transform: translateY(-4px);
}
.status-indicator {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.9); opacity: 0.6; }
}
.status-info h3 { margin: 0; font-size: 16px; }
.status-info p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.status-badge {
  margin-left: auto;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}
.status-pulse {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius);
  animation: statusPulse 3s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.02); opacity: 0; }
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.price-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.price-card.featured {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  transform: scale(1.02);
}
.price-card.featured:hover {
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.02) translateY(-8px);
}
.popular-tag {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: var(--charcoal-3);
  border: 1px solid rgba(255,255,255,0.15);
  border-top: none;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.price-card h3 { margin: 0 0 8px; font-size: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.price {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  margin: 8px 0 24px;
}
.price span { font-size: 20px; color: var(--muted); }
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
}
.price-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  transition: all 0.3s ease;
}
.price-card:hover .price-features li { color: var(--txt); }
.price-features li:last-child { border-bottom: none; }
.price-features li::before {
  content: "✓";
  margin-right: 12px;
  color: var(--success);
}

/* CTA Band */
.cta-band { padding: 80px 0; }
.cta {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  background: rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.cta:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}
.cta-glow {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 50%);
  pointer-events: none;
}
.cta h2 { font-size: 36px; margin: 0 0 12px; position: relative; }
.cta p { color: var(--muted); margin: 0 0 28px; font-size: 17px; position: relative; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
  padding: 56px 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.foot-brand .small { color: var(--muted); margin-top: 16px; font-size: 13px; }
.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.foot-nav h4 { margin: 0 0 16px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.foot-nav a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: all 0.3s ease;
  position: relative;
}
.foot-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--txt);
  transition: width 0.3s ease;
}
.foot-nav a:hover { color: var(--txt); padding-left: 12px; }
.foot-nav a:hover::before { width: 6px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }
  .cta-left {
    justify-content: center;
  }
  .stats-row {
    justify-content: center;
  }
}
@media (max-width: 900px) {
  .feature-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { gap: 40px; }
}
@media (max-width: 640px) {
  .nav a:not(.btn):not(.brand) { display: none; }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; gap: 24px; }
  .display { font-size: 36px; letter-spacing: -1px; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-8px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== AUTH MODAL ========== */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.auth-modal.show {
  opacity: 1;
  visibility: visible;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.auth-modal-content {
  position: relative;
  background: linear-gradient(180deg, #141517 0%, #0e0f12 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  margin: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal.show .auth-modal-content {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 8px;
  padding: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--txt);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 16px;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--txt);
  margin: 0 0 8px;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.auth-input-group {
  margin-bottom: 16px;
}

.auth-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}

.auth-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--txt);
  font-size: 1rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.auth-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.auth-input::placeholder {
  color: var(--muted);
}

.auth-code-input {
  text-align: center;
  font-size: 1.5rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 8px;
  padding: 16px;
}

.auth-error {
  display: none;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #f87171;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.auth-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
  border: none;
  border-radius: 10px;
  color: #0a0b0d;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.auth-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #0a0b0d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.auth-footer-text {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 16px;
}

.auth-code-sent {
  text-align: center;
  margin-bottom: 24px;
}

.auth-code-sent svg {
  margin-bottom: 12px;
}

.auth-code-sent p {
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-code-sent strong {
  color: var(--txt);
}

.auth-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 16px;
  transition: color 0.2s ease;
}

.auth-back-btn:hover {
  color: var(--txt);
}

.auth-toggle-btn {
  background: none;
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-toggle-btn:hover {
  opacity: 0.8;
}

.auth-error {
  background: rgba(255, 80, 80, 0.15);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff6b6b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.auth-footer-text {
  text-align: center;
  color: var(--txt-2);
  font-size: 0.9rem;
  margin-top: 20px;
}

/* Auth Toast */
.auth-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--txt);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10001;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.auth-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.auth-toast-success {
  border-color: rgba(74, 222, 128, 0.3);
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, var(--charcoal) 100%);
}

.auth-toast-error {
  border-color: rgba(248, 113, 113, 0.3);
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.1) 0%, var(--charcoal) 100%);
}

.auth-toast button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.auth-toast button:hover {
  color: var(--txt);
}

/* User Menu */
/* Profile Dropdown */
.auth-profile-wrapper {
  display: none;
  position: relative;
}

.auth-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--txt);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-profile-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.auth-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: rgba(20, 22, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.auth-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.auth-dropdown-header {
  padding: 12px;
}

.auth-dropdown-email {
  font-size: 0.85rem;
  color: var(--txt);
  word-break: break-all;
}

.auth-dropdown-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin: 4px 0;
}

.auth-dropdown-balance-label {
  font-size: 0.8rem;
  color: var(--txt-2);
}

.auth-dropdown-balance {
  font-size: 0.95rem;
  font-weight: 600;
  color: #10b981;
}

.auth-dropdown-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 4px 0;
}

.auth-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--txt-2);
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s ease;
  text-align: left;
  text-decoration: none;
}

a.auth-dropdown-item {
  text-decoration: none;
}

.auth-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--txt);
}

.auth-dropdown-item svg,
.auth-dropdown-item .dropdown-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}
