/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAF7F2;
  --bg-card: #FFFBF5;
  --accent: #E8A850;
  --accent-deep: #D4923A;
  --accent-light: #FDF0DD;
  --secondary: #6B9EAB;
  --secondary-light: #E8F2F4;
  --text: #2C2416;
  --text-muted: #6B5E4A;
  --text-light: #9B8E7A;
  --border: #E8DFD0;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --shadow-card: 0 2px 16px rgba(44, 36, 22, 0.06);
  --shadow-card-hover: 0 8px 32px rgba(44, 36, 22, 0.10);
  --max-width: 1200px;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
a { color: var(--secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #4A7D89; }

/* ===== Utility ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; font-family: inherit; font-size: 0.95rem; font-weight: 700;
  padding: 12px 28px; border-radius: var(--radius-pill);
  cursor: pointer; transition: all 0.25s ease; border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #FFFDF7; border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-deep); border-color: var(--accent-deep);
}
.btn-outline {
  background: transparent; color: var(--accent); border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-light);
}
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }

.section {
  padding: 100px 0;
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

.section-label {
  display: inline-block; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px; color: var(--text);
}

.section-body {
  max-width: 680px; margin: 0 auto; text-align: center;
  font-size: 1.08rem; color: var(--text-muted); line-height: 1.9;
}

.highlight {
  background: linear-gradient(180deg, transparent 60%, var(--accent-light) 60%);
  padding: 0 4px;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.navbar-logo {
  font-size: 1.35rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.02em;
}
.navbar-links {
  display: flex; align-items: center; gap: 28px; list-style: none;
}
.navbar-links a {
  color: var(--text-muted); font-size: 0.92rem; font-weight: 500;
}
.navbar-links a:hover { color: var(--text); }

.navbar-cta { display: flex; align-items: center; gap: 16px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .navbar-links, .navbar-cta .btn-primary { display: none; }
  .hamburger { display: flex; }
  .navbar-links.mobile-open {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 16px; position: absolute; top: var(--nav-height);
    left: 0; right: 0; background: rgba(250, 247, 242, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px; border-bottom: 1px solid var(--border);
  }
  .navbar-cta.mobile-open { display: flex; }
}

/* ===== Hero ===== */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  position: relative; overflow: hidden;
}
.hero .container {
  position: relative; z-index: 2;
  text-align: center;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700; line-height: 1.25;
  color: var(--text); margin-bottom: 24px;
  max-width: 800px; margin-left: auto; margin-right: auto;
}
.hero-title .highlight-word {
  position: relative;
  background: linear-gradient(180deg, transparent 62%, var(--accent-light) 62%);
  padding: 0 6px;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 640px; margin: 0 auto 36px;
  line-height: 1.85;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}

/* Hero decorative glow */
.hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,168,80,0.12) 0%, rgba(250,247,242,0) 70%);
  border-radius: 50%; pointer-events: none; z-index: 1;
}
.hero-glow-2 {
  position: absolute; bottom: -80px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(107,158,171,0.08) 0%, rgba(250,247,242,0) 70%);
  border-radius: 50%; pointer-events: none; z-index: 1;
}

/* ===== Problem Section ===== */
.problem {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
}
.problem-quote {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700; line-height: 1.5;
  color: var(--text); text-align: center;
  max-width: 720px; margin: 0 auto 36px;
  position: relative;
}
.problem-quote::before {
  content: '"'; font-size: 5rem; color: var(--accent-light);
  position: absolute; top: -40px; left: -20px;
  line-height: 1; opacity: 0.5; pointer-events: none;
}
.problem-quote::after {
  content: '"'; font-size: 5rem; color: var(--accent-light);
  position: absolute; bottom: -80px; right: -20px;
  line-height: 1; opacity: 0.5; pointer-events: none;
}
.problem-divider {
  width: 80px; height: 3px; background: var(--accent);
  border-radius: 2px; margin: 48px auto 0;
  opacity: 0.5;
}

/* ===== Paradigm Section ===== */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 36px 28px; border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.card-icon {
  font-size: 2.4rem; margin-bottom: 16px; display: block;
}
.card-title {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 10px;
  color: var(--text);
}
.card-desc {
  font-size: 0.95rem; color: var(--text-muted); line-height: 1.75;
}
@media (max-width: 768px) {
  .cards-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Path Section ===== */
.path { background: var(--bg-card); }
.path-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.path-card {
  background: var(--bg); border-radius: var(--radius-lg);
  padding: 36px 28px; border: 2px solid var(--border);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.path-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent);
}
.path-step {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; color: var(--accent);
  background: var(--accent-light); padding: 4px 14px;
  border-radius: var(--radius-pill); margin-bottom: 16px;
}
.path-card-title {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 10px;
  color: var(--text);
}
.path-card-desc {
  font-size: 0.95rem; color: var(--text-muted); line-height: 1.75;
  margin-bottom: 20px;
}
.path-card-link {
  font-size: 0.9rem; font-weight: 700;
  color: var(--accent); display: inline-flex; align-items: center; gap: 4px;
}
.path-card-link:hover { color: var(--accent-deep); }

/* Path connectors */
.path-cards-wrapper { position: relative; }
@media (min-width: 769px) {
  .path-cards-wrapper::before {
    content: '';
    position: absolute; top: 48px; left: calc(16.67% + 24px); right: calc(16.67% + 24px);
    height: 2px; background: var(--border);
    z-index: 0;
  }
}
@media (max-width: 768px) {
  .path-cards { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .path-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Community / Social Proof ===== */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; margin-top: 48px;
}
.testimonial-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 32px 28px; border: 1px solid var(--border);
  box-shadow: var(--shadow-card); position: relative;
}
.testimonial-card::before {
  content: '"';
  font-size: 4rem; color: var(--accent-light);
  position: absolute; top: 8px; left: 20px;
  line-height: 1; pointer-events: none;
}
.testimonial-text {
  font-size: 1.05rem; color: var(--text); line-height: 1.85;
  position: relative; z-index: 1; padding-left: 8px;
}
.testimonial-author {
  margin-top: 16px; font-size: 0.9rem;
  color: var(--text-muted); font-style: italic;
  padding-left: 8px;
}
@media (max-width: 768px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-light) 100%);
  text-align: center;
}
.cta-headline {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 700; color: var(--text); margin-bottom: 12px;
}
.cta-sub {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 32px; line-height: 1.8;
}
.cta-form {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap;
  gap: 12px; max-width: 520px; margin: 0 auto;
}
.cta-form input[type="email"] {
  flex: 1; padding: 14px 20px; font-size: 0.95rem;
  font-family: inherit; border: 2px solid var(--border);
  border-radius: var(--radius-pill); background: #FFFDF7;
  color: var(--text); outline: none;
  transition: border-color 0.25s ease;
}
.cta-form input[type="email"]:focus {
  border-color: var(--accent);
}
.cta-form input[type="email"]::placeholder {
  color: var(--text-light);
}
.cta-form textarea {
  width: 100%; flex-basis: 100%;
  padding: 14px 20px; font-size: 0.95rem;
  font-family: inherit; border: 2px solid var(--border);
  border-radius: var(--radius); background: #FFFDF7;
  color: var(--text); outline: none; resize: vertical;
  transition: border-color 0.25s ease;
}
.cta-form textarea:focus {
  border-color: var(--accent);
}
.cta-form textarea::placeholder {
  color: var(--text-light);
}
.cta-form .btn { flex-shrink: 0; }
.cta-note {
  margin-top: 14px; font-size: 0.82rem;
  color: var(--text-light);
}
@media (max-width: 480px) {
  .cta-form { flex-direction: column; }
  .cta-form input[type="email"] { width: 100%; }
  .cta-form .btn { width: 100%; }
}

/* ===== Footer ===== */
.footer {
  background: #F5F0E7; padding: 48px 0 32px;
  text-align: center;
}
.footer-links {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap; list-style: none;
  margin-bottom: 20px;
}
.footer-links a {
  font-size: 0.9rem; color: var(--text-muted);
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.85rem; color: var(--text-light);
}

/* ===== Navbar User (Logged-in state) ===== */
.navbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--accent-light);
  flex-shrink: 0;
}
.nav-avatar-placeholder {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  flex-shrink: 0;
}
.nav-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-user-name {
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  max-width: 100px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-plan {
  font-size: 0.7rem; font-weight: 600; color: var(--accent);
}
.nav-logout-btn {
  font-size: 0.78rem; font-weight: 600; color: #C25450;
  cursor: pointer; background: none; border: none;
  font-family: inherit; padding: 4px 8px;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-logout-btn:hover { color: #A04040; text-decoration: underline; }

/* ===== Login Modal (Redesigned) ===== */

/* -- Animations (removed keyframe animations; using GPU-composited transitions instead) -- */

/* -- Overlay -- */
.login-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center; justify-content: center;
  padding: 1rem;

  /* Hidden by default — use visibility+opacity instead of display:none
     so the browser can establish the compositor layer before animating */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  /* On close: fade opacity first, then hide visibility after 0.25s */
  transition: visibility 0s 0.25s, opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.login-modal-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  /* On open: show visibility immediately, fade opacity in */
  transition: visibility 0s 0s, opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -- Modal Card -- */
.login-modal {
  position: relative;
  background: var(--bg-card);
  border-radius: 20px;
  max-width: 420px; width: 100%;
  padding: 40px 32px 36px;
  box-shadow: 0 24px 80px rgba(44, 36, 22, 0.18),
              0 0 0 1px rgba(0, 0, 0, 0.04);

  /* Start state (hidden) — compositor-only properties */
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
/* Card animates in when overlay becomes active */
.login-modal-overlay.active .login-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* -- Close Button (X icon top-right) -- */
.login-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.login-modal-close:hover {
  background: var(--bg);
  color: var(--text);
}
.login-modal-close svg {
  display: block;
}

/* -- Header -- */
.login-modal-header {
  text-align: center;
  margin-bottom: 28px;
}
.login-modal-header h2 {
  font-size: 1.5rem; font-weight: 700; color: var(--text);
  margin-bottom: 6px;
}
.login-modal-header .login-sub {
  font-size: 0.9rem; color: var(--text-muted);
  margin: 0;
}

/* -- Input Groups (icon + input) -- */
.login-input-group {
  position: relative;
  margin-bottom: 14px;
}
.login-input-icon {
  position: absolute;
  left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-light);
  display: flex; align-items: center;
  pointer-events: none;
  transition: color 0.2s ease;
}
.login-input-group:focus-within .login-input-icon {
  color: var(--accent);
}
.login-input-group input {
  display: block; width: 100%;
  padding: 14px 16px 14px 46px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 16px; /* prevent mobile zoom */
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.login-input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 168, 80, 0.12);
}
.login-input-group input::placeholder {
  color: var(--text-light);
}

/* -- Error Message -- */
.login-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 14px;
  line-height: 1.5;
}
.login-error.hidden { display: none; }

/* -- Buttons (shared) -- */
.login-btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  margin-bottom: 0;
}

/* Email login button */
.login-btn-email {
  background: var(--accent);
  color: #FFFDF7;
}
.login-btn-email:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 168, 80, 0.3);
}
.login-btn-email:disabled {
  opacity: 0.55; cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Google login button */
.login-btn-google {
  background: #FFFFFF;
  color: var(--text);
  border: 2px solid var(--border);
  position: relative;
  padding-left: 52px; /* room for ::before G icon */
}
.login-btn-google::before {
  content: '';
  position: absolute;
  left: 16px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z'/%3E%3Cpath fill='%2334A853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3E%3Cpath fill='%23FBBC05' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z'/%3E%3Cpath fill='%23EA4335' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.login-btn-google:hover {
  background: #F5F2EC;
  border-color: #D0C9BB;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.login-btn-google:disabled {
  opacity: 0.55; cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* -- Divider -- */
.login-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 20px 0; color: var(--text-light);
  font-size: 0.82rem;
}
.login-divider::before,
.login-divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border);
}
.login-divider span {
  flex-shrink: 0;
}

/* -- Footer -- */
.login-footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 22px;
  margin-bottom: 0;
}
.login-footer a {
  color: var(--accent); font-weight: 700;
  transition: color 0.2s ease;
}
.login-footer a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

/* -- Mobile Responsive -- */
@media (max-width: 480px) {
  .login-modal-overlay {
    padding: 0.75rem;
  }
  .login-modal {
    border-radius: 20px 20px 16px 16px;
    padding: 32px 24px 28px;
    margin-top: auto;
    max-width: 100%;
  }
  .login-modal-header h2 {
    font-size: 1.35rem;
  }
}

/* ===== End Login Modal ===== */

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1; transform: translateY(0);
}

/* ===== Early Bird Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 36, 22, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(44, 36, 22, 0.25);
  animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 1.5rem 1.5rem 0;
  position: relative;
}
.modal-header h2 {
  margin: 0.5rem 0 0;
  font-size: 1.4rem;
  color: var(--text);
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}
.modal-close:hover { color: var(--text); }

.disclaimer-banner {
  background: #FFF3E0;
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

/* ===== Plan Cards ===== */
.plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 500px) {
  .plan-cards { grid-template-columns: 1fr; }
}

.plan-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: var(--bg-card);
}
.plan-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(232, 168, 80, 0.12);
}
.plan-card--selected {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 4px 20px rgba(232, 168, 80, 0.22);
}
.plan-card h3 {
  font-size: 1.1rem;
  margin: 0.25rem 0 0.5rem;
  color: var(--text);
}
.plan-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.plan-card ul li {
  padding: 0.2rem 0;
}

.plan-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--secondary-light);
  color: var(--secondary);
}
.plan-badge--hot {
  background: #FCE4EC;
  color: #C25450;
}

/* ===== Registration Methods ===== */
.registration-methods {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.registration-methods h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--text);
}

.email-registration {
  margin-bottom: 1rem;
}
.email-registration input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-family: inherit;
  background: #FFFDF7;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease;
}
.email-registration input[type="email"]:focus {
  border-color: var(--accent);
}
.email-registration input[type="email"]::placeholder {
  color: var(--text-light);
}

.privacy-notice {
  font-size: 0.75rem;
  color: var(--text-light);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.4;
}

.divider {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  color: var(--text-light);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.divider span {
  padding: 0 0.75rem;
  font-size: 0.85rem;
}

/* ===== Buttons ===== */
.btn-full {
  width: 100%;
  display: block;
  text-align: center;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-primary.btn-full {
  background: var(--accent);
  color: #FFFDF7;
}
.btn-primary.btn-full:hover {
  background: var(--accent-deep);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #FFFDF7;
  color: var(--text);
  border: 2px solid var(--border);
  padding: 0.7rem 1.5rem;
}
.btn-google:hover {
  background: var(--bg);
  border-color: var(--accent);
}

/* ===== Early Bird Section ===== */
.early-bird-section {
  text-align: center;
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-light) 100%);
}
.cta-main-button {
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  margin: 1.5rem 0 0.75rem;
}
.cta-sub {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.cta-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* ===== Toast Notifications ===== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  box-shadow: 0 8px 32px rgba(44, 36, 22, 0.18);
  animation: toastSlideIn 0.3s ease;
  max-width: 380px;
}
.toast--success {
  background: var(--secondary-light);
  color: #2E4A3A;
  border: 1px solid var(--secondary);
}
.toast--error {
  background: #FCE4EC;
  color: #C25450;
  border: 1px solid #EF9A9A;
}
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== Inline Plan Cards (bottom section) ===== */
.plan-cards-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 2rem auto 0;
}

@media (max-width: 640px) {
  .plan-cards-inline {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

.plan-card-inline {
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--bg-card, #fff);
  text-align: center;
  position: relative;
}

.plan-card-inline:hover {
  border-color: var(--accent, #2563eb);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}

.plan-card-inline--selected {
  border-color: var(--accent, #2563eb);
  background: rgba(37, 99, 235, 0.04);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.2);
  transform: translateY(-4px);
}

.plan-card-inline--selected::after {
  content: '✓ 已選取';
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--accent, #2563eb);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.plan-card-inline h3 {
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.plan-card-inline .plan-price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: var(--accent, #2563eb);
}

.plan-card-inline .plan-price span {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: #999;
}

.plan-card-inline .plan-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.plan-card-inline ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: 0.85rem;
}

.plan-card-inline ul li {
  padding: 0.3rem 0;
}

/* Registration area (below plan cards, shown after selection) */
.registration-area {
  max-width: 500px;
  margin: 2rem auto 0;
  padding: 2rem;
  background: var(--bg-card, #fff);
  border-radius: 16px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  animation: fadeSlideIn 0.35s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.registration-area h4 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  text-align: center;
}

.disclaimer-banner-inline {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: #856404;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  text-align: center;
}

/* Ensure existing utility classes still work */
.early-bird-section .cta-note {
  text-align: center;
  margin-top: 1.5rem;
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  display: none; /* hidden by default, shown by JS if no consent */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: rgba(255,255,255,0.9);
  padding: 1rem 1.5rem;
  z-index: 10000;
  font-size: 0.85rem;
  line-height: 1.5;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  animation: slideUp 0.35s ease;
}

.cookie-banner p {
  margin: 0 0 0.75rem;
}

.cookie-banner small {
  opacity: 0.7;
  font-size: 0.75rem;
}

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

.cookie-banner .btn-sm {
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  font-weight: 600;
}

.cookie-banner .btn-primary.btn-sm {
  background: var(--accent);
  color: #fff;
}

.cookie-banner .btn-outline.btn-sm {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.3);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
