/* ==================== BLAST PROJECT — PRICING LANDING + BLUR LOGIN MODAL ==================== */
:root {
  --bg-canvas: #F5F7FA;
  --bg-surface: #FFFFFF;
  --bg-input: #F4F6FA;
  --bg-slate: #232A35;
  --bg-slate-soft: #364152;
  --bg-slate-darker: #181E28;

  --brand-gold: #FFE050;
  --brand-gold-hover: #F7D238;
  --brand-gold-accent: #F5C518;
  --brand-gold-tint: #FFF8D6;
  --brand-gold-squircle: rgba(255, 224, 80, 0.16);

  --text-primary: #232A35;
  --text-ink: #1E242D;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;

  --border-subtle: #EAEEF4;
  --border-slate: rgba(255, 255, 255, 0.12);

  --success: #10B981;
  --success-bg: #ECFDF5;
  --warning: #F59E0B;
  --warning-bg: #FFFBEB;
  --warning-border: rgba(245, 158, 11, 0.35);
  --warning-text: #B45309;
  --danger: #EF4444;
  --danger-bg: #FEF2F2;
  --danger-border: rgba(239, 68, 68, 0.25);
  --danger-text: #B91C1C;

  --shadow-card: 0 20px 50px rgba(35, 42, 53, 0.08);
  --shadow-modal: 0 28px 70px rgba(15, 23, 42, 0.28);
  --shadow-focus: 0 0 0 4px rgba(255, 224, 80, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.hidden {
  display: none !important;
}

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

/* ==================== TOP HEADER BAR ==================== */
.landing-topbar {
  background: var(--bg-slate);
  border-bottom: 1px solid var(--border-slate);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.topbar-brand-logo {
  height: 32px;
  width: auto;
  display: block;
  user-select: none;
}

.topbar-vps-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-slate);
  color: #E2E8F0;
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
}

.vps-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 0 3px var(--brand-gold-squircle);
  flex-shrink: 0;
}

.topbar-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.lang-switch-btn {
  min-width: 34px;
  height: 36px;
  padding: 0 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #CBD5E1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

.lang-switch-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.lang-switch-btn.active {
  background: var(--brand-gold);
  color: var(--bg-slate);
  box-shadow: 0 2px 8px rgba(255, 224, 80, 0.28);
}

.lang-switch-btn:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.btn-user-login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.16s ease;
}

.btn-user-login:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 224, 80, 0.55);
  transform: translateY(-1px);
}

.user-btn-squircle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-gold);
  color: var(--bg-slate);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-btn-squircle svg {
  width: 18px;
  height: 18px;
}

/* ==================== MAIN LANDING BODY ==================== */
.landing-main-content {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 24px 52px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: filter 0.24s ease, transform 0.24s ease;
}

.landing-main-content.is-blurred {
  filter: blur(8px);
  transform: scale(0.992);
  pointer-events: none;
  user-select: none;
}

.landing-hero {
  text-align: center;
  max-width: 680px;
  margin-bottom: 36px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--brand-gold-tint);
  color: var(--text-ink);
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ==================== 2 PRICING CARDS GRID ==================== */
.pricing-cards-grid {
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 32px 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.pricing-card.is-highlighted {
  background: var(--bg-slate);
  border-color: rgba(255, 224, 80, 0.28);
  color: #FFFFFF;
}

.pricing-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
}

.pricing-card.is-highlighted .plan-badge {
  background: var(--brand-gold-squircle);
  color: var(--brand-gold);
  border: 1px solid rgba(255, 224, 80, 0.28);
}

.plan-name {
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.pricing-card.is-highlighted .plan-name {
  color: #FFFFFF;
}

.plan-subtitle {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.pricing-card.is-highlighted .plan-subtitle {
  color: var(--text-muted);
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-card.is-highlighted .plan-price-row {
  border-bottom-color: var(--border-slate);
}

.plan-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.pricing-card.is-highlighted .plan-price {
  color: var(--brand-gold);
}

.plan-duration {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-card.is-highlighted .plan-duration {
  color: var(--text-muted);
}

.plan-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.pricing-card.is-highlighted .plan-feature-item {
  color: #E2E8F0;
}

.plan-feature-item.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

.feature-check,
.feature-cross {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-check {
  background: var(--success-bg);
  color: var(--success);
}

.pricing-card.is-highlighted .feature-check {
  background: var(--brand-gold-squircle);
  color: var(--brand-gold);
}

.feature-cross {
  background: var(--bg-input);
  color: var(--text-muted);
}

.plan-cta-btn {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.plan-cta-btn svg {
  width: 17px;
  height: 17px;
}

.plan-cta-basic {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.plan-cta-basic:hover {
  background: #E8ECF3;
  transform: translateY(-1px);
}

.plan-cta-pro {
  background: var(--brand-gold);
  color: var(--text-ink);
  box-shadow: 0 8px 20px rgba(255, 224, 80, 0.3);
}

.plan-cta-pro:hover {
  background: var(--brand-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 224, 80, 0.4);
}

/* ==================== LANDING FOOTER ==================== */
.landing-footer {
  width: 100%;
  max-width: 920px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-footer-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.btn-footer-login {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  color: var(--text-primary);
  cursor: pointer;
  background-color: var(--bg-surface);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.btn-footer-login:hover {
  border-color: var(--brand-gold-accent);
  background-color: var(--brand-gold-tint);
}

/* ==================== BLURRED LOGIN POP-UP OVERLAY ==================== */
.login-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 30, 40, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.login-modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 36px 32px 28px;
  box-shadow: var(--shadow-modal);
  position: relative;
  animation: modalEnter 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-shake {
  animation: shake 0.38s ease-in-out both;
}

@keyframes shake {
  15%, 85% { transform: translateX(-5px); }
  35%, 65% { transform: translateX(5px); }
  50% { transform: translateX(-6px); }
}

.modal-close-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.modal-close-x:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-right: 36px;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-gold-tint);
  color: var(--text-ink);
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.auth-heading {
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.subtitle {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
}

.login-reason-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 14px;
  color: var(--warning-text);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 16px;
}

.login-reason-banner svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--warning);
  margin-top: 1px;
}

.error-alert {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: 14px;
  color: var(--danger-text);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 16px;
}

.error-alert.visible {
  display: flex;
}

.error-alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--danger);
}

/* Form Controls */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1.5px solid transparent;
  border-radius: 14px;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrap:focus-within {
  background: var(--bg-surface);
  border-color: var(--brand-gold-accent);
  box-shadow: var(--shadow-focus);
}

.input-prefix-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  pointer-events: none;
}

.input-wrap:focus-within .input-prefix-icon {
  color: var(--bg-slate);
}

.input-prefix-icon svg {
  width: 18px;
  height: 18px;
}

.input-field {
  width: 100%;
  height: 50px;
  background: transparent;
  border: none;
  border-radius: 14px;
  padding: 0 50px 0 44px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
}

.input-field::placeholder {
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
}

.toggle-visibility-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.toggle-visibility-btn:hover {
  background: rgba(35, 42, 53, 0.06);
  color: var(--text-primary);
}

.toggle-visibility-btn.is-revealed {
  background: var(--brand-gold-tint);
  color: var(--text-ink);
}

.toggle-visibility-btn svg {
  width: 18px;
  height: 18px;
}

.options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #CBD5E1;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkbox-custom svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  color: var(--bg-slate);
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--brand-gold);
  border-color: var(--bg-slate);
}

.checkbox-label input:checked + .checkbox-custom svg {
  opacity: 1;
}

.btn-submit {
  width: 100%;
  height: 50px;
  background: var(--brand-gold);
  color: var(--text-ink);
  border: none;
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(255, 224, 80, 0.34);
  transition: background-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.btn-submit:hover:not(:disabled) {
  background: var(--brand-gold-hover);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.btn-submit.is-success {
  background: var(--success);
  color: #FFFFFF;
  opacity: 1;
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2.5px solid rgba(30, 36, 45, 0.22);
  border-top-color: var(--text-ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.auth-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-footer-note {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
}

.auth-footer-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-input);
  padding: 4px 10px;
  border-radius: 8px;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.landing-toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.landing-toast {
  background: var(--bg-slate);
  color: #FFFFFF;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  border-left: 4px solid var(--brand-gold);
  animation: modalEnter 0.2s ease;
}

.landing-toast.warn {
  border-left-color: var(--warning);
}

.landing-toast.error {
  border-left-color: var(--danger);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .topbar-inner {
    padding: 12px 16px;
  }

  .topbar-vps-pill {
    display: none;
  }

  .topbar-brand-logo {
    height: 28px;
  }

  .topbar-actions-group {
    gap: 8px;
  }

  .lang-switch-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    font-size: 0.7rem;
  }

  .btn-user-login {
    padding: 4px 4px 4px 12px;
    gap: 8px;
    font-size: 0.8rem;
  }

  .user-btn-squircle {
    width: 32px;
    height: 32px;
  }

  .landing-main-content {
    padding: 28px 16px 36px;
  }

  .hero-title {
    font-size: 1.62rem;
  }

  .pricing-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pricing-card {
    padding: 24px 20px;
  }

  .login-modal-card {
    padding: 28px 20px 22px;
    border-radius: 20px;
  }

  .input-field {
    font-size: 16px;
  }
}
