/* AdGenXAI Landing Page - premium hive system */

/* Primary Navigation */
.primary-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: rgba(5, 7, 16, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.primary-nav .nav-logo {
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.primary-nav .nav-logo .logo-icon {
  font-size: 1.5rem;
}

.primary-nav .nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.primary-nav .nav-links a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--duration-fast) var(--ease-out);
}

.primary-nav .nav-links a:hover,
.primary-nav .nav-links a:focus-visible {
  color: var(--primary-gold);
}

.primary-nav .nav-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.primary-nav .nav-cta .btn {
  padding: 0.55rem 1.5rem;
}

@media (max-width: 900px) {
  .primary-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .primary-nav .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* Koloni Landing Page - AdGenXAI premium system */

header[role='banner'] {
  position: relative;
  padding: 4rem 1.5rem 6rem;
  min-height: 90vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: 3rem;
  overflow: hidden;
}

.hero {
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gradient-mesh {
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.45;
  filter: blur(80px);
}

.gradient-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gradient-glow);
  filter: blur(120px);
}

/* Liquid 3D Background */
.liquid-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(45, 95, 247, 0.45), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(236, 72, 153, 0.4), transparent 40%),
    radial-gradient(circle at 60% 70%, rgba(14, 165, 233, 0.35), transparent 45%),
    linear-gradient(135deg, rgba(45, 95, 247, 0.35), rgba(139, 92, 246, 0.4));
  filter: saturate(1.2) drop-shadow(0 20px 120px rgba(0, 0, 0, 0.35));
  opacity: 0.9;
  mix-blend-mode: screen;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  justify-content: flex-end;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 800;
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

.hero-title .gradient-text {
  display: inline-block;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--color-text-tertiary);
}

.hero-trust span {
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-logos {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  opacity: 0.65;
  filter: grayscale(100%);
}

.trust-logos li {
  font-size: var(--text-sm);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-visual {
  max-width: 540px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 2rem;
}

.hero-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.hero-visual-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-visual-chip span {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.hero-visual-metric {
  font-size: var(--text-3xl);
  font-weight: 700;
}

.hero-visual-chip .positive {
  color: #10b981;
  font-size: var(--text-sm);
}

.hero-visual-highlight {
  grid-column: span 2;
  background: var(--gradient-primary);
  border-radius: 1.25rem;
  padding: 1.5rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-visual-highlight strong {
  font-size: var(--text-2xl);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  header[role='banner'] {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content,
  .hero-visual {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual-highlight {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-cta {
    justify-content: center;
  }
  
  /* Liquid background mobile adjustments */
  .liquid-background {
    width: 120%;
    height: 60vh;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    opacity: 0.65;
  }
  
  .hero {
    flex-direction: column;
  }
  
  .hero-content {
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 2;
    max-width: 600px;
  }
  
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .hero-badge {
    font-size: 0.75rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
}

main {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.features h2,
.how-it-works h2,
.pricing h2,
.final-cta h2,
.social-proof h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.bento-grid .card {
  min-height: 220px;
}

.how-it-works {
  margin-top: 5rem;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1rem;
  font-weight: 600;
}

.social-proof {
  margin-top: 5rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--glow-primary);
}

.stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin: 0;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.stat-change {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  align-self: flex-start;
}

.stat-change.positive {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.stat-change.neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-tertiary);
}


.pricing-header {
  text-align: center;
  padding: clamp(2rem, 4vw, 4rem) 1.5rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-header .eyebrow {
  display: inline-flex;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: 1rem;
}

.pricing-header h1 {
  margin-bottom: 1rem;
}

.pricing-header p {
  color: var(--color-text-secondary);
}

.pricing {
  margin-top: 5rem;
}

.section-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1rem;
}

.section-intro p {
  color: var(--color-text-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.popular {
  border: 1px solid transparent;
  background-image: linear-gradient(var(--glass-bg), var(--glass-bg)), var(--gradient-primary);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.25);
  transform: translateY(-12px);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-tertiary);
}

.badge-best {
  background: var(--gradient-primary);
  color: #0a0d19;
}

.pricing-card.featured {
  transform: scale(1.05);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 35px 80px rgba(20, 31, 66, 0.45);
  position: relative;
}

.pricing-card.featured::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary-gold), var(--cyan-accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pricing-popular {
  transform: scale(1.03);
.pricing-card.popular:hover {
  transform: translateY(-16px);
}

.pricing-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-tertiary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-badge.popular {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.pricing-price {
  font-size: var(--text-5xl);
  margin: 0;
}

.pricing-credit {
  margin: -0.5rem 0 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.pricing-price span {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-text-tertiary);
}

.pricing-description {
  margin: 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-features li {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.pricing-features svg,
.pricing-features span.icon {
  color: var(--color-primary);
}

.pricing-card .btn-full {
  margin-top: auto;
}

.pricing-card .btn-full.btn-primary {
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.35);
}

.btn-full {
  width: 100%;
  margin-top: auto;
}

.final-cta {
  margin-top: 6rem;
  text-align: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.final-cta::after {
  content: '';
  position: absolute;
  inset: -20% auto auto -20%;
  width: 240px;
  height: 240px;
  background: var(--gradient-glow);
  filter: blur(120px);
  opacity: 0.4;
}

.final-cta p {
  color: var(--color-text-secondary);
  max-width: 540px;
  margin: 0 auto 2rem;
}

.final-cta .cta-buttons {
  justify-content: center;
}

@media (max-width: 640px) {
  main {
    padding: 1.5rem;
  }

  .pricing-card.popular {
    transform: none;
  }
}

@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 960px) {
  .pricing-card.popular {
    order: -1;
  }
}

/* ============================================================= */
/* Utility Pages (success, auth, legal)                           */
/* ============================================================= */

.success-container,
.error-container,
.auth-container,
.legal-container {
  min-height: 100vh;
  padding: clamp(2rem, 4vw, 4rem) 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(14, 165, 233, 0.08), transparent 55%),
    var(--color-bg-primary);
}

.success-box,
.error-box,
.auth-box,
.legal-content {
  width: min(960px, 100%);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 1.75rem;
  backdrop-filter: blur(var(--glass-blur));
  padding: clamp(2rem, 3vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

.success-box::before,
.error-box::before,
.auth-box::before,
.legal-content::before {
  content: '';
  position: absolute;
  inset: auto auto -20% -10%;
  width: 260px;
  height: 260px;
  background: var(--gradient-glow);
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
}

.success-box h1,
.error-box h1,
.legal-content h1,
.auth-header h1 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: 1rem;
}

.success-message,
.error-message,
.auth-header p,
.legal-content p {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
/* ==========================================
   Utility Pages - Success, Error, Legal, Auth
   ========================================== */
.success-container,
.error-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-md);
}

.success-box,
.error-box {
  max-width: 640px;
  width: 100%;
  text-align: center;
  padding: var(--space-3xl) var(--space-2xl);
}

.success-icon,
.error-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  animation: scaleIn 0.5s ease-out;
}

.error-icon {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.45);
}

.error-code {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.success-details {
  margin: 2.5rem 0;
  padding: 2rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.success-details h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  margin: 0 auto var(--space-xl);
  animation: scaleIn 0.5s var(--ease-out);
}

.success-icon svg {
  color: var(--success);
}

.error-icon svg {
  color: var(--error);
}

.error-code {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-lg);
}

.success-box h1,
.error-box h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-lg);
}

.success-container .success-message,
.error-container .error-message {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: var(--leading-relaxed);
}

.success-details {
  margin: var(--space-2xl) 0;
  text-align: left;
  padding: var(--space-xl);
}

.success-details h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  gap: var(--space-lg);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--glass-border);
}

.detail-row:last-child {
  border-bottom: none;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-weight: var(--font-medium);
  font-size: var(--text-xs);
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

.success-actions,
.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2.5rem 0 1.5rem;
}

.error-suggestions {
  margin: 2rem 0 0;
  color: var(--color-text-secondary);
  list-style: none;
  padding: 0;
  gap: var(--space-md);
  justify-content: center;
  margin: var(--space-2xl) 0 var(--space-lg);
}

.error-suggestions {
  margin: var(--space-2xl) 0;
  text-align: left;
  padding: var(--space-xl);
}

.error-suggestions h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.error-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-suggestions li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.success-footer,
.auth-footer {
  text-align: center;
  color: var(--color-text-tertiary);
  margin-top: 1.5rem;
}

.success-footer a,
.auth-footer a,
.legal-content a {
  color: var(--color-primary);
  font-weight: var(--font-medium);
}

/* Auth Experience */
.auth-main {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  position: relative;
}

.auth-box {
  width: 100%;
  color: var(--color-text-secondary);
}

.success-footer,
.error-footer {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--glass-border);
  color: var(--color-text-tertiary);
}

/* Legal Pages */
.legal-container {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}

.legal-content {
  padding: var(--space-3xl) var(--space-2xl);
}

.legal-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.last-updated {
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2xl);
}

.legal-content section {
  margin-bottom: var(--space-2xl);
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.legal-content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.75rem;
  margin-bottom: var(--space-lg);
}

.legal-content li {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: 0.5rem;
}

/* Auth Page */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-md);
  position: relative;
}

.auth-main {
  max-width: 520px;
  width: 100%;
  z-index: 1;
}

.auth-box {
  padding: var(--space-3xl) var(--space-2xl);
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
  margin-bottom: var(--space-2xl);
}

.auth-header p {
  color: var(--color-text-secondary);
}

.oauth-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.btn-oauth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-primary);
}

.btn-oauth svg {
  color: currentColor;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border);
  transition: all var(--duration-base) var(--ease-out);
}

.btn-oauth:hover {
  background: var(--glass-bg-medium);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.divider {
  position: relative;
  text-align: center;
  margin: 2rem 0;
  margin: var(--space-xl) 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  background: var(--glass-border);
}

.divider span {
  position: relative;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-tertiary);
  background: var(--glass-bg);
  padding: 0 var(--space-sm);
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
}

.auth-tabs {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--glass-border);
}

.tab-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--color-text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-weight: var(--font-medium);
  transition: color 0.2s ease, border-color 0.2s ease;
  background: none;
  border: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}

.tab-btn.active {
  color: var(--color-primary);
  border-color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-btn:hover:not(.active) {
  color: var(--color-text-secondary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.auth-hint {
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  text-align: center;
  animation: fadeIn 0.3s var(--ease-out);
}

.auth-hint {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  text-align: center;
  margin-top: var(--space-sm);
}

.form-footer {
  text-align: right;
  margin-bottom: 1rem;
}

.link-secondary {
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-md);
}

.link-secondary {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-out);
}

.link-secondary:hover {
  color: var(--color-primary-light);
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner-small {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: currentColor;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.auth-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

.auth-visual {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--glass-border);
  color: var(--color-text-tertiary);
}

.auth-visual {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.visual-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: float 6s ease-in-out infinite;
}

.visual-orb.orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--color-secondary), transparent);
  top: -120px;
  right: -80px;
}

.visual-orb.orb-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--color-primary), transparent);
  bottom: -120px;
  left: -80px;
  animation-delay: 2s;
}

.visual-orb.orb-3 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, var(--color-secondary-light), transparent);
  top: 40%;
  left: 40%;
  animation-delay: 4s;
}

/* Legal content */
.legal-content {
  max-width: 800px;
  color: var(--color-text-secondary);
  padding: clamp(2rem, 4vw, 4rem);
}

.legal-content section {
  margin-top: 2rem;
}

.legal-content h2 {
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.legal-content h3 {
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  opacity: 0.18;
  animation: float 8s ease-in-out infinite;
}

.visual-orb.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-primary), transparent);
  top: -150px;
  right: -150px;
}

.visual-orb.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-secondary), transparent);
  bottom: -100px;
  left: -100px;
  animation-delay: 3s;
}

.visual-orb.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--color-primary-light), transparent);
  top: 50%;
  left: 50%;
  animation-delay: 6s;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

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

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -20px, 0);
  }
}

@media (max-width: 768px) {
  .auth-main {
    grid-template-columns: 1fr;
  }

  .success-box,
  .error-box,
  .auth-box,
  .legal-content {
    padding: 2rem;
  }

@media (max-width: 640px) {
  .success-actions,
  .error-actions {
    flex-direction: column;
  }

  .success-actions .btn,
  .error-actions .btn {
    width: 100%;
  }

  .legal-content,
  .auth-box {
    padding: var(--space-2xl) var(--space-lg);
  }
}
