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

/* Root Variables */
:root {
  /* Palette */
  --bg-0: #06060a;
  --bg-1: #0e1116;
  --panel: rgba(22, 24, 28, 0.70);
  --muted: #9aa3b2;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --glass: rgba(255, 255, 255, 0.025);
  --glass-2: rgba(255, 255, 255, 0.015);
  --text: #e6eef8;
  --success: #22c55e;
  --error: #ef4444;
  /* Sizing */
  --radius: 14px;
  --card-w: 420px;
  --pad-sm: 10px;
  --pad: 14px;
  --input-h: 44px;
  --icon-size: 28px;
  /* Elevation / Motion */
  --shadow-1: 0 6px 22px rgba(2, 6, 23, 0.56);
  --shadow-2: 0 18px 46px rgba(2, 6, 23, 0.62);
  --anim: 180ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* Reset & Base */
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #000000;  
  color: #f0f0ff;
  overflow-x: hidden;   
  overflow-y: auto;   
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  position: relative;
  min-height: 100vh;
}

body {
 
  /* Background image */
  background-image: url('https://assets.melodreams.com/assets/images/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Slightly dark overlay */
  background-color: rgba(0, 0, 0, 0.35);
  background-blend-mode: multiply;
}


/* ~50–60 tiny pure white stars with real constellation arrangements */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: 
    /* Orion (belt + shoulders/legs/arms) – lower center ~12 stars */
    radial-gradient(circle at 45% 65%, #ffffff 0.7px, transparent 1.2px),   /* Belt center */
    radial-gradient(circle at 42% 68%, #ffffff 0.6px, transparent 1.1px),
    radial-gradient(circle at 48% 68%, #ffffff 0.6px, transparent 1.1px),
    radial-gradient(circle at 40% 60%, #ffffff 0.8px, transparent 1.3px),   /* Shoulder */
    radial-gradient(circle at 50% 60%, #ffffff 0.5px, transparent 1px),
    radial-gradient(circle at 38% 75%, #ffffff 0.7px, transparent 1.2px),   /* Knee/foot */
    radial-gradient(circle at 52% 75%, #ffffff 0.6px, transparent 1.1px),
    radial-gradient(circle at 44% 55%, #ffffff 0.5px, transparent 1px),
    radial-gradient(circle at 46% 72%, #ffffff 0.8px, transparent 1.3px),
    radial-gradient(circle at 43% 78%, #ffffff 0.5px, transparent 1px),
    radial-gradient(circle at 49% 78%, #ffffff 0.6px, transparent 1.1px),
    radial-gradient(circle at 47% 62%, #ffffff 0.7px, transparent 1.2px),
    
    /* Cassiopeia (W / M shape) – upper left ~6 stars */
    radial-gradient(circle at 20% 15%, #ffffff 0.7px, transparent 1.2px),
    radial-gradient(circle at 25% 12%, #ffffff 0.6px, transparent 1.1px),
    radial-gradient(circle at 28% 18%, #ffffff 0.8px, transparent 1.3px),
    radial-gradient(circle at 22% 22%, #ffffff 0.5px, transparent 1px),
    radial-gradient(circle at 30% 20%, #ffffff 0.7px, transparent 1.2px),
    radial-gradient(circle at 18% 25%, #ffffff 0.6px, transparent 1.1px),
    
    /* Big Dipper (ladle) – lower right ~8 stars */
    radial-gradient(circle at 70% 70%, #ffffff 0.8px, transparent 1.3px),   /* Bowl end */
    radial-gradient(circle at 75% 65%, #ffffff 0.6px, transparent 1.1px),
    radial-gradient(circle at 72% 75%, #ffffff 0.7px, transparent 1.2px),
    radial-gradient(circle at 78% 68%, #ffffff 0.5px, transparent 1px),
    radial-gradient(circle at 80% 72%, #ffffff 0.6px, transparent 1.1px),
    radial-gradient(circle at 68% 78%, #ffffff 0.7px, transparent 1.2px),
    radial-gradient(circle at 82% 75%, #ffffff 0.8px, transparent 1.3px),   /* Handle start */
    radial-gradient(circle at 85% 68%, #ffffff 0.5px, transparent 1px),
    
    /* Little Dipper + Polaris – upper center-right ~7 stars */
    radial-gradient(circle at 60% 25%, #ffffff 0.9px, transparent 1.4px),   /* Polaris – slightly larger */
    radial-gradient(circle at 58% 30%, #ffffff 0.6px, transparent 1.1px),
    radial-gradient(circle at 62% 28%, #ffffff 0.5px, transparent 1px),
    radial-gradient(circle at 55% 35%, #ffffff 0.7px, transparent 1.2px),
    radial-gradient(circle at 65% 32%, #ffffff 0.6px, transparent 1.1px),
    radial-gradient(circle at 57% 40%, #ffffff 0.5px, transparent 1px),
    radial-gradient(circle at 63% 38%, #ffffff 0.7px, transparent 1.2px),
    
    /* Extra scattered stars for natural density (~20 more) */
    radial-gradient(circle at 10% 40%, #ffffff 0.5px, transparent 1px),
    radial-gradient(circle at 15% 80%, #ffffff 0.6px, transparent 1.1px),
    radial-gradient(circle at 35% 45%, #ffffff 0.7px, transparent 1.2px),
    radial-gradient(circle at 40% 85%, #ffffff 0.5px, transparent 1px),
    radial-gradient(circle at 50% 20%, #ffffff 0.6px, transparent 1.1px),
    radial-gradient(circle at 65% 45%, #ffffff 0.7px, transparent 1.2px),
    radial-gradient(circle at 85% 15%, #ffffff 0.5px, transparent 1px),
    radial-gradient(circle at 90% 50%, #ffffff 0.6px, transparent 1.1px),
    radial-gradient(circle at 25% 55%, #ffffff 0.5px, transparent 1px),
    radial-gradient(circle at 30% 90%, #ffffff 0.7px, transparent 1.2px),
    radial-gradient(circle at 75% 30%, #ffffff 0.6px, transparent 1.1px),
    radial-gradient(circle at 55% 80%, #ffffff 0.5px, transparent 1px),
    radial-gradient(circle at 8% 70%, #ffffff 0.6px, transparent 1.1px),
    radial-gradient(circle at 92% 85%, #ffffff 0.5px, transparent 1px),
    radial-gradient(circle at 48% 10%, #ffffff 0.7px, transparent 1.2px);
  
  /* Large seamless tiles + random offsets */
  background-size: 2400px 2400px, 2200px 2200px, 2600px 2600px, 2000px 2000px, 2800px 2800px;
  
  background-position: 
    0 0, 
    -180px 250px, 
    350px -120px, 
    -250px 450px, 
    120px -350px;
  
  animation: twinkleCalm 18s ease-in-out infinite alternate;
  opacity: 0.96;
}

/* Gentle slow twinkle – uniform across all stars */
@keyframes twinkleCalm {
  0%, 100% { opacity: 0.80; }
  50%      { opacity: 0.99; }
}


.app-bg {
  position: relative;
  z-index: 0;
}
.app-bg::before {
  content: '';
  position: fixed;
  inset: -6% -6% auto -6%;
  height: 360px;
  background: linear-gradient(110deg, rgba(59, 130, 246, 0.06), rgba(96, 165, 250, 0.02));
  filter: blur(54px) saturate(120%);
  pointer-events: none;
  z-index: 0;
}
.center-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 34px 18px;
  position: relative;
  z-index: 10;
}

/* Brand */
.brand {
  text-align: center;
  user-select: none;
  margin-bottom: 30px;
}
.logo {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--text);
}
.logo-img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}
.slogan {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}





.brand {
  text-align: center;
  user-select: none;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;     /* makes sure everything inside is centered */
}

.logo {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--text);
}

.beta-badge {
  padding: 3px 6px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #60a5fa;            /* nice blue to match your gradient feel */
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 10px;       /* soft pill shape */
  backdrop-filter: blur(4px);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Optional: make it feel more "official" / subtle */
.beta-badge {
  border-radius: 8px;
  opacity: 0.9;
}











/* Card */
.card {
  width: 100%;
  max-width: 480px;
  padding: 42px;
  background: #0c121afc;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: visible;
}

/* Panel Switcher */
.switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  justify-content: center;
  z-index: 5;
  margin-top: 12px;
}
.switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all var(--anim);
}
.switch-btn i {
  font-size: 13px;
  color: var(--muted);
}
.switch-btn.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.12), rgba(96, 165, 250, 0.04));
  border-color: rgba(59, 130, 246, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.04);
}

/* Selected text in select — same as placeholder color when not selected */
select.input {
  color: var(--text);
}

/* Placeholder-like color when no real placeholder (default option) */
select.input:not(:focus) {
  color: var(--muted);
}

/* Forms & Inputs */
.panel {
  display: block;
}
.hidden {
  display: none !important;
}
.field {
  position: relative;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  min-height: var(--input-h);
}
.input,
select.input {
    width: 100%;
    height: var(--input-h);
    padding: 8px 44px 8px calc(var(--icon-size) + 14px);
    background: linear-gradient(180deg, var(--glass), var(--glass-2));
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 50px;
    color: var(--text);
    font-size: 13px;
    outline: none;                    /* already good */
    transition: box-shadow var(--anim), border-color calc(var(--anim) / 1.2), transform calc(var(--anim) / 1.2);
    -webkit-appearance: none;
    appearance: none;
}




/* Dropdown menu styling */
select.input option {
  color: whitesmoke;          /* full white text */
  padding: 10px 16px;
  font-size: 14px;
}

/* ← THIS IS THE IMPORTANT → */
.input:focus,
.input:focus-visible,
select.input:focus,
select.input:focus-visible {
    border-color: rgba(255, 255, 255, 0.04) !important;   /* same as normal state */
    box-shadow: none !important;
    transform: none !important;
    outline: none !important;            /* kills browser default blue ring */
}

/* Optional but recommended for accessibility - very subtle indicator only when using keyboard */
.input:focus:not(:focus-visible),
select.input:focus:not(:focus-visible) {
    /* mouse click focus = completely no indicator */
    border-color: rgba(255,255,255,0.04);
    box-shadow: none;
    transform: none;
}
.field.has-error .input {
  border-color: rgba(239, 68, 68, 0.92);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.06);
}
.field.has-success .input {
  border-color: rgba(34, 197, 94, 0.92);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.06);
}
/* Icons */
.icon {
  position: absolute;
  left: 10px;
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--accent); /* Primary color (#3b82f6) */
  
}
.icon-btn {
  position: absolute;
  right: 6px;
  border: none;
  background: transparent;
  color: var(--accent); /* Primary color (#3b82f6) */
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.12s ease, transform var(--anim);
}
.icon-btn:hover {
  color: var(--accent-2); /* Lighter primary shade (#60a5fa) */
}
.check-username {
  right: 6px;
  font-size: 14px;
  color: var(--accent); /* Primary color (#3b82f6) */
}
.check-username:hover {
  color: var(--accent-2); /* Lighter primary shade (#60a5fa) */
}


/* Referral Section */
.referral-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.2);
  transition: all var(--anim);
}
.referral-box:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.referral-box.collapsed {
  padding-bottom: 12px;
}
.referral-header {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  user-select: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}
.referral-header:hover {
  background: rgba(255, 255, 255, 0.02);
}
.referral-header i {
  font-size: 14px;
  color: var(--accent); /* Primary color (#3b82f6) */
}
.referral-field .icon {
  color: var(--accent); /* Primary color (#3b82f6) */
}
.referral-header .referral-toggle {
  margin-left: auto;
  transition: transform var(--anim);
}
.referral-header[aria-expanded='true'] .referral-toggle {
  transform: rotate(180deg);
}
.referral-content {
  margin-top: 8px;
}
.referral-text {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.4;
}
.referral-field {
  margin-bottom: 0;
}
.referral-field .icon {
  color: var(--accent);
}

/* Buttons */
.btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: transform 120ms cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 120ms;
}
.btn.primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  height: 40px;
  margin-top: 16px;
}
.btn.primary:active {
  transform: translateY(1px);
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.small.muted {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
}
.form-msg {
  margin-top: 4px;
  margin-bottom: 10px;
  font-size: 12px;
  min-height: 16px; /* gives consistent space even when empty */
  text-align: center;
  color: var(--muted);
  transition: all var(--anim);
  gap: 3px;

  /* Flex for perfect icon + text alignment */
  display: flex;
  justify-content: center;
}

.form-msg:empty {
  display: none;
  margin: 0;
}

.form-msg.error {
  color: var(--error);
}

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

/* Make icon same size as text */
.form-msg i {
  font-size: 12px;        /* matches text size */
  line-height: 1;         /* removes extra spacing */
}
.notice {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.05), rgba(34, 197, 94, 0.02));
  color: var(--text);
  border: 1px solid rgba(34, 197, 94, 0.06);
  font-size: 13px;
}

#signup-form button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #0f1c2b !important;
}

/* Extra Modal Box */
.extra-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  z-index: 1100;
  opacity: 0;
  transition: opacity var(--anim);
  pointer-events: none;
}
.extra-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.extra-box {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: min(460px, calc(100% - 36px));
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--anim), transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}
.extra-box.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.extra-inner {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.008));
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.78);
}
.extra-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
#extra-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

/* Compact Variant */
.card.compact {
  padding: 10px;
  max-width: 380px;
}
.card.compact .input {
  height: 38px;
  padding: 6px 40px 6px calc(var(--icon-size) + 12px);
  font-size: 13px;
}

/* Accessibility & Preferences */
:focus {
  outline: none;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Responsive Tweaks */
@media (max-width: 520px) {
  :root {
    --card-w: 92vw;
  }
  .logo {
    font-size: 18px;
  }
  .slogan {
    font-size: 11px;
  }
  .input {
    padding-left: 44px;
    padding-right: 44px;
    font-size: 13px;
  }
  .card {
    padding: 30px;
  }
  .extra-box {
    width: calc(100% - 28px);
  }
}

/* Footer */
footer.tiny {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  padding: 10px 6px;
  user-select: none;
}
footer.tiny a {
  color: var(--accent-2);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--anim), text-shadow var(--anim);
}
footer.tiny a:hover {
  color: var(--accent);
  text-shadow: 0 0 6px rgba(59, 130, 246, 0.35);
}
footer.tiny a:not(:last-child)::after {
  content: '·';
  margin: 0 6px;
  color: var(--muted);
  font-weight: 400;
}
@media (max-width: 480px) {
  footer.tiny {
    font-size: 11px;
    line-height: 1.6;
  }
}



/* Disabled state for Sign In button (visible but clearly inactive) */
#login-form button[type="submit"]:disabled,
#login-form .btn.primary:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  background: #0f1c2b !important; /* Dark gray to show it's disabled */
  box-shadow: none !important;
  transform: none !important;
}



button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #0f1c2b !important;
}
button:not(.disabled) {
  cursor: pointer;
}



/* FIX: Status message under Create Account button */
#signup-form .btn.primary {
  margin-top: 20px !important; /* gives breathing room */
  margin-bottom: 8px;
}

#signup-button-status {
  margin-top: 4px !important;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

#signup-button-status.success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--success);
}

#signup-button-status.warning {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
  color: #fbbf24;
}


.warning {
  color: #d97706;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
}



.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(59, 130, 246, 0.2); /* faint accent */
  border-top: 4px solid var(--accent); /* solid accent blue */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Better Checkbox Styles */
.checkbox-field {
  /*margin: 20px 0 12px; /* More space */
  padding: 0;
}

.checkbox-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px; /* Slightly larger for visibility */
  color: var(--text);
  transition: color 0.2s ease;
  user-select: none;
}

.checkbox-field label:hover {
  color: var(--accent);
}

.checkbox-field input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--glass);
  border: 2px solid var(--muted);
  border-radius: 4px;
  position: relative;
  transition: all var(--anim);
  flex-shrink: 0;
}

.checkbox-field input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent-2);
}

.checkbox-field input[type="checkbox"]:checked::before {
  content: '\f00c'; /* FontAwesome check icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--bg-0);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
}

.checkbox-field input[type="checkbox"]:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* Hide honeypot completely */
.honeypot-field {
  display: none !important;
}


.security-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 12px 14px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}

.security-info i {
  font-size: 18px;
  color: var(--success);
  flex-shrink: 0;
}




/* Pricing Info Box - Beautiful & Clear */
.pricing-info {
  margin: 20px 0 16px;
  text-align: center;
}

.pricing-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(96, 165, 250, 0.06));
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  color: var(--text);
  backdrop-filter: blur(6px);
  margin-bottom: 8px;
}

.pricing-box i {
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 8px;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse 2s infinite alternate; /* subtle breathing effect */
}

.pricing-box i:hover {
  color: var(--accent-2);
  transform: scale(1.15) translateY(-3px);
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.4); /* soft glow */
}

@keyframes pulse {
  from { opacity: 0.9; }
  to { opacity: 1; }
}

.pricing-note {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* Forgot Modal Styling */
#forgot-modal .extra-inner {
  max-width: 400px;
}







/* Password Generator Button */
.generate-password {
  right: 44px !important; /* Position next to toggle */
  color: var(--accent);
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.generate-password:hover {
  opacity: 1;
  transform: scale(1.1) rotate(20deg);
  color: var(--accent-2);
}

/* Adjust toggle button when generator is present */
.toggle {
  right: 6px;
}

/* Better icons in status */
#username-status i {
  margin-right: 6px;
  font-size: 14px;
}

#username-status .fa-spinner {
  animation: spin 1s linear infinite;
}

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


/* Password Strength Meter */
#password-strength {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
  display: none; /* ← hidden until needed */
  margin: 8px 0;
  transition: opacity 0.3s ease;
  opacity: 0;
}

#password-strength.visible {
  display: block;
  opacity: 1;
}
#strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
  border-radius: 2px;
}

/* Strength levels */
.strength-weak { background: #ef4444; }     /* Red */
.strength-fair { background: #f59e0b; }     /* Orange */
.strength-good { background: #10b981; }     /* Green */
.strength-strong { background: #22c55e; }   /* Strong green */
.strength-very-strong { background: #16a34a; } /* Darker green */




/* Username check animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes successPulse {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
  20%, 40%, 60%, 80% { transform: translateX(6px); }
}

@keyframes warningBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Icons in status */
#username-status i {
  display: inline-block;
}

.success-icon {
  animation: successPulse 0.6s ease-out;
}

.error-icon {
  animation: errorShake 0.5s ease-out;
}

.warning-icon {
  animation: warningBounce 0.6s ease-out;
}










/* Robot checkbox animation */
#robot-icon {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease;
}

#anti-bot-checkbox-up:checked ~ #robot-icon-wrapper #robot-icon {
  animation: robotCelebrate 0.8s ease-out;
}

@keyframes robotCelebrate {
  0% { transform: translateY(0) rotate(0); }
  20% { transform: translateY(-8px) rotate(-10deg); }
  40% { transform: translateY(-8px) rotate(10deg); }
  60% { transform: translateY(-4px) rotate(-5deg); }
  80% { transform: translateY(-4px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0); }
}

/* Optional: wave effect */
@keyframes robotWave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-20deg); }
  75% { transform: rotate(20deg); }
}

/* Text pulse when checked */
#anti-bot-checkbox-up:checked ~ #robot-text {
  animation: textPulse 0.6s ease-out;
}

@keyframes textPulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}






/* Plan Toggle */
.plan-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--muted);
}

.plan-label {
  font-weight: 600;
}

.plan-label.highlight {
  color: var(--text);
}

.save-badge {
  background: #22c55e;
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 8px;
  font-weight: 700;
  display: none; /* hidden by default */
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;   /* reduced from 52px to better fit the smaller knob */
  height: 24px;  /* reduced from 28px – gives ~3px padding top/bottom around the 18px knob */
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px; /* half of height for perfect pill shape */
  transition: 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background: var(--accent);
}

input:checked + .slider:before {
  transform: translateX(20px); /* 44px width - 18px knob - 2×3px padding = 20px travel */
}







.verification-container {
  backdrop-filter: blur(10px);
  margin: 16px 0;
  flex-direction: column;
  gap: 14px; /* space between the two checkboxes */
}

.checkbox-field {
  margin: 0; /* remove any default margins */
}





















select {
    background-color: #050506;
    color: #ffffff;
    border: 1px solid #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select:hover {
    background-color: #050506;
    border-color: #555;
}

select:focus {
    background-color: #050506;
    border-color: #777;
}

/* Style options */
select option {
    background-color: #050506;
    color: #ffffff;
}
/* Optional: style dropdown arrow (modern browsers) */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}










@media (max-width: 768px) {

  /* Clean background */
  body {
    background-image: none !important;
    background-color: #06060a !important;
  }
  .stars,
  .app-bg::before {
    display: none !important;
  }

  /* Full bleed card */
  .center-wrap {
    padding: 0 !important;
    min-height: 100dvh !important;
  }

  .card {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 32px 24px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* Hide ONLY the logo text on mobile */
  .logo span {
    display: none !important;
  }

  /* Logo image stays and looks balanced */
  .brand {
    margin-bottom: 24px !important;
  }
  .logo {
    justify-content: center !important;
    gap: 0 !important;
  }
  .logo-img {
    width: 48px !important;
    height: 48px !important;
  }

  /* Inputs — smaller & minimal */
  .input,
  select.input {
    height: 48px !important;
    font-size: 15px !important;
    padding-left: calc(var(--icon-size) + 16px) !important;
    padding-right: 50px !important;
    border-radius: 9999px !important;
  }

  .icon {
    left: 14px !important;
    font-size: 15px !important;
  }

  .icon-btn,
  .check-username {
    right: 10px !important;
  }

  /* Switcher — smaller */
  .switcher {
    gap: 10px !important;
    margin-bottom: 26px !important;
  }

  /* Buttons — minimal & smaller */
  .btn.primary {
    height: 48px !important;
    font-size: 15px !important;
    margin-top: 18px !important;
    border-radius: 9999px !important;
    background: linear-gradient(180deg, var(--accent), var(--accent-2)) !important;
  }

  /* Referral, notice, security boxes — tighter */
  .referral-box,
  .notice,
  .security-info {
    margin: 14px 0 !important;
    padding: 12px !important;
    font-size: 13px !important;
  }

  /* Extra modals */
  .extra-box {
    width: calc(100% - 28px) !important;
  }
  .extra-inner {
    padding: 18px !important;
  }
}

/* Extra-small phones */
@media (max-width: 480px) {
  .card {
    padding: 28px 20px !important;
  }
  .input,
  select.input {
    height: 46px !important;
    font-size: 13.5px !important;
  }
  .logo-img {
    width: 44px !important;
    height: 44px !important;
  }
  .btn.primary {
    height: 46px !important;
    font-size: 13.5px !important;
  }
}