/* HiddenPro Billing - Premium Dark Cosmic Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============ CSS CUSTOM PROPERTIES ============ */
:root {
  /* Dark Cosmic Color Palette */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a24;

  /* Accent Colors */
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-violet: #a855f7;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-teal: #14b8a6;

  /* Gradient Accents */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-aurora: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(236, 72, 153, 0.2) 100%);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-accent: #a5b4fc;

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Status Colors */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  /* Sizing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ============ CSS RESET & BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============ ANIMATED BACKGROUND ============ */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 70% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
  animation: aurora 20s ease-in-out infinite;
}

@keyframes aurora {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Floating Orbs */
body::after {
  content: '';
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  z-index: 0;
  pointer-events: none;
  animation: floatOrb 15s ease-in-out infinite;
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-30px, 50px) scale(1.1);
  }

  66% {
    transform: translate(20px, -30px) scale(0.95);
  }
}

/* ============ LINKS ============ */
a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

a:hover {
  color: var(--accent-purple);
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.875rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.site-header .logo .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow:
    0 0 12px rgba(139, 92, 246, 0.6),
    0 0 24px rgba(139, 92, 246, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow:
      0 0 12px rgba(139, 92, 246, 0.6),
      0 0 24px rgba(139, 92, 246, 0.3);
  }

  50% {
    box-shadow:
      0 0 20px rgba(139, 92, 246, 0.8),
      0 0 40px rgba(139, 92, 246, 0.4);
  }
}

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

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.site-nav a:hover {
  color: var(--text-primary);
  text-shadow: none;
}

.site-nav a:hover::after {
  width: 100%;
}

.auth-session {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.auth-session .muted {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ============ MAIN CONTENT ============ */
main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  position: relative;
  z-index: 1;
}

main.auth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-height: calc(100vh - 120px);
}

/* ============ CARDS - GLASSMORPHISM ============ */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover::before {
  opacity: 1;
}

.card--compact {
  padding: 1.25rem;
}

/* ============ AUTH LAYOUT ============ */
.auth-grid {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(320px, 500px);
  gap: 2rem;
  width: 100%;
  max-width: 980px;
  align-items: stretch;
}

.auth-card {
  padding: 2rem 2rem 2.25rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.auth-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-card p.subtitle {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
}

.auth-field {
  margin-bottom: 1.25rem;
}

.auth-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.auth-footer-link {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.auth-footer-link a {
  font-weight: 600;
  color: var(--accent-blue);
}

/* Auth Hero Section */
.auth-hero {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.auth-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  animation: floatOrb 10s ease-in-out infinite;
}

.auth-hero h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-hero>p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.auth-hero ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-hero li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.auth-hero li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-hero li:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(4px);
}

.auth-hero li:hover::before {
  opacity: 1;
}

.auth-hero li .feature-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient-primary);
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

/* ============ FORMS ============ */
input,
textarea,
select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-purple);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 3px rgba(139, 92, 246, 0.15),
    0 0 20px rgba(139, 92, 246, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input[type="checkbox"] {
  width: auto;
  accent-color: var(--accent-purple);
  cursor: pointer;
}

/* ============ BUTTONS ============ */
button {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

button:hover::before {
  left: 100%;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button:disabled::before {
  display: none;
}

.primary,
.btn.primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
  box-shadow:
    0 4px 20px rgba(139, 92, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.primary:hover,
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 30px rgba(139, 92, 246, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.primary:active,
.btn.primary:active {
  transform: translateY(0);
}

.btn.primary:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  box-shadow: none;
}

.secondary,
.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.secondary:hover,
.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ============ GRID & LAYOUT ============ */
.grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ============ TYPOGRAPHY UTILITIES ============ */
h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.muted {
  color: var(--text-muted);
}

.danger {
  color: var(--danger);
}

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

.help {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ============ BADGES ============ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.paid {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(20, 184, 166, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.badge.free {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

/* ============ PROGRESS BAR ============ */
.progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  overflow: hidden;
  position: relative;
}

.progress .bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 50px;
  transition: width 0.6s ease;
  position: relative;
}

.progress .bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ============ PLAN CARDS ============ */
.plan-cards {
  margin-top: 1rem;
}

.plan-cards--dashboard {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.04));
  border: 1px solid rgba(139, 92, 246, 0.18);
}

.plan-cards__heading {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.plan-cards__grid,
.plan-cards:not(.plan-cards--dashboard) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.plan-card {
  padding: 1rem 1.125rem;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.plan-card--current {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.15);
}

.plan-card--premium {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.06));
  border-color: rgba(139, 92, 246, 0.25);
}

.plan-card__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.plan-card__current {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 50px;
  background: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
}

.plan-card__quota {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
}

.plan-card__number {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: 0.2rem;
}

.plan-card__detail {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.plan-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  line-height: 1.4;
}

.plan-card__was {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.65;
}

.plan-card__badge {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fbbf24;
}

.price-highlight {
  display: inline-flex;
  padding: 0.125rem 0.625rem;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.15));
  color: #c4b5fd;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 0.875rem;
}

.usage-meter {
  margin-top: 0.5rem;
}

.usage-meter__count {
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-primary);
}

.usage-meter__label {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .plan-cards__grid,
  .plan-cards:not(.plan-cards--dashboard) {
    grid-template-columns: 1fr;
  }
}

/* Legacy alias */
.plan-note--stacked span {
  color: var(--text-secondary);
}

/* ============ BILLING NOTE ============ */
.billing-note {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.billing-note__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: #34d399;
  flex-shrink: 0;
}

.billing-note__title {
  margin: 0;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #34d399;
}

.billing-note__text {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.billing-note__text strong {
  color: #34d399;
}

/* ============ SECTION TITLES ============ */
.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}

/* ============ NOTICE ============ */
.notice {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--text-primary);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
}

/* ============ MESSAGES ============ */
.message {
  margin-bottom: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
}

.message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

.message.danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

/* ============ FOOTER ============ */
.footer-meta {
  border-top: 1px solid var(--glass-border);
  padding: 1rem 1.5rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
}

.footer-meta a {
  color: var(--accent-blue);
}

/* ============ TERMS BOX ============ */
.terms-box {
  margin-top: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.checkbox-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.125rem;
}

.helper-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ============ PASSWORD STRENGTH INDICATOR ============ */
.password-strength {
  margin-top: 0.5rem;
}

.password-strength__bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 0.375rem;
}

.password-strength__fill {
  height: 100%;
  border-radius: 2px;
  transition: all 0.3s ease;
  width: 0;
}

.password-strength__fill.weak {
  width: 33%;
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.password-strength__fill.fair {
  width: 66%;
  background: linear-gradient(90deg, #f59e0b, #eab308);
}

.password-strength__fill.strong {
  width: 100%;
  background: linear-gradient(90deg, #22c55e, #10b981);
}

.password-strength__text {
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.password-strength__text.weak {
  color: #fca5a5;
}

.password-strength__text.fair {
  color: #fcd34d;
}

.password-strength__text.strong {
  color: #6ee7b7;
}

/* Details/Summary for Terms */
details {
  margin-top: 0.75rem;
}

details summary {
  cursor: pointer;
  color: var(--accent-blue);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

details summary:hover {
  color: var(--accent-purple);
}

details[open] summary {
  margin-bottom: 0.75rem;
}

/* ============ STRIPE PRICING TABLE WRAPPER ============ */
stripe-pricing-table {
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* ============ MOBILE HAMBURGER MENU ============ */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .auth-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .auth-hero {
    order: 2;
  }

  .auth-card {
    order: 1;
  }

  main {
    padding: 1.5rem 1rem 2rem;
  }

  main.auth {
    padding: 1rem;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 1rem;
    position: relative;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 3;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    gap: 0.75rem;
  }

  .site-nav.active {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
  }

  .site-nav a::after {
    display: none;
  }

  .auth-session {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    margin-left: 0;
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav.active+.auth-session,
  .auth-session.active {
    display: flex;
    margin-top: 0;
  }

  .auth-card,
  .card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }

  .auth-card h2 {
    font-size: 1.5rem;
  }

  .auth-hero {
    padding: 1.5rem;
  }

  .auth-hero li {
    padding: 0.75rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 0.625rem 0.875rem;
  }

  .site-header .logo {
    font-size: 1rem;
  }

  .site-nav {
    gap: 0.5rem;
  }

  .auth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-actions a {
    text-align: center;
  }

  button,
  .btn,
  input {
    width: 100%;
  }

  .actions {
    flex-direction: column;
  }

  .row {
    flex-direction: column;
    align-items: stretch;
  }

  .row>* {
    width: 100%;
  }

  .billing-note {
    flex-direction: column;
    text-align: center;
  }

  .billing-note__icon {
    margin: 0 auto;
  }

  .footer-meta {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
}

/* ============ ANIMATIONS ON SCROLL ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.auth-card,
.auth-hero {
  animation: fadeInUp 0.6s ease-out forwards;
}

.auth-hero li {
  animation: fadeInUp 0.5s ease-out forwards;
}

.auth-hero li:nth-child(1) {
  animation-delay: 0.1s;
}

.auth-hero li:nth-child(2) {
  animation-delay: 0.15s;
}

.auth-hero li:nth-child(3) {
  animation-delay: 0.2s;
}

.auth-hero li:nth-child(4) {
  animation-delay: 0.25s;
}

.auth-hero li:nth-child(5) {
  animation-delay: 0.3s;
}

/* ============ HOVER GLOW EFFECTS ============ */
.auth-card:hover,
.card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(139, 92, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ============ CUSTOM SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-blue));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-pink), var(--accent-purple));
}

/* ============ FOCUS VISIBLE ============ */
:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 2px;
}

/* ============ SELECTION ============ */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: white;
}