/* ═══════════════════════════════════════════════════════
   TAARA — Global Mobile Responsive Stylesheet
   Covers: index, checkout, dashboard, report, subscription,
           book-session, support, login, success
   Touch-safe: no payment / report-gen / email changes.
   ═══════════════════════════════════════════════════════ */

/* ── Base rules ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img, video, canvas, svg, iframe {
  max-width: 100%;
  height: auto;
}

/* Prevent iOS font zoom on inputs */
input, select, textarea, button {
  font-size: 16px !important;
}

/* ── Containers ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ── Navigation ─────────────────────────────────────── */
  .nav {
    padding: 14px 16px !important;
  }

  .nav-links,
  .nav-actions {
    display: none !important;
  }

  .nav-hamburger {
    display: flex !important;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }

  /* Mobile nav drawer — large tap targets */
  .nav-mobile {
    padding: 24px 20px 40px;
  }

  .nav-mobile a {
    font-size: 20px !important;
    padding: 14px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-mobile a:last-child {
    border-bottom: none;
  }

  .nav-mobile-close {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  /* ── Hero Section ───────────────────────────────────── */
  .hero {
    min-height: auto !important;
    padding: 100px 16px 64px !important;
  }

  .hero h1 {
    font-size: clamp(34px, 9vw, 46px) !important;
    line-height: 1.1 !important;
    margin-bottom: 14px !important;
  }

  .hero-tagline {
    font-size: 17px !important;
  }

  .hero-desc {
    font-size: 15px !important;
    margin-bottom: 32px !important;
  }

  .hero-cta-group {
    flex-direction: column !important;
    width: 100%;
    gap: 12px !important;
    margin-bottom: 40px !important;
  }

  .hero-cta-group a,
  .hero-cta-group button {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .hero-trust {
    gap: 14px !important;
    font-size: 12px !important;
  }

  .hero-scroll { display: none !important; }

  /* ── Stats Bar — 2×2 grid ───────────────────────────── */
  .stats-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    padding: 0 !important;
  }

  .stat-item {
    padding: 24px 12px;
    border-right: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }

  .stat-number {
    font-size: 28px !important;
  }

  /* ── Service / Report Cards — 1 col ─────────────────── */
  .services-grid,
  .reports-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .service-card {
    padding: 22px 18px !important;
  }

  /* Description line-clamp on mobile */
  .service-card .service-desc,
  .card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .service-footer {
    flex-direction: row !important;
    margin-top: 16px !important;
  }

  .service-footer a,
  .service-footer button {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* ── Daily Guidance / Pricing Cards — 1 col ─────────── */
  .pricing-grid,
  .plans-grid,
  .comparison-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Flatten any inline-flex plan rows */
  [style*="display:flex"][style*="gap"] .plan-card,
  [style*="display: flex"][style*="gap"] .plan-card {
    width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* ── Reviews / Testimonials — 1 col ─────────────────── */
  .testimonials-grid,
  .reviews-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .testimonial-card,
  .review-card {
    padding: 20px 16px !important;
  }

  /* Quote line-clamp */
  .testimonial-text,
  .review-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ── Forecast / Offer Section ───────────────────────── */
  .forecast-section-wrap,
  .offer-section {
    padding: 28px 16px !important;
  }

  .forecast-card {
    padding: 20px 16px !important;
  }

  /* Countdown timer — 2x2 grid */
  .countdown-wrap,
  .timer-wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  /* ── Our Story ──────────────────────────────────────── */
  .story-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .story-text,
  .about-text {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  /* ── Footer — 1 col ────────────────────────────────── */
  footer .footer-grid,
  .footer-grid,
  footer > div > div[style*="grid"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
  }

  footer {
    padding: 40px 0 24px !important;
  }

  /* Inline-styled footer grids */
  footer [style*="display:grid"],
  footer [style*="display: grid"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
  }

  footer [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* ── Section general ────────────────────────────────── */
  .section {
    padding: 56px 0 !important;
  }

  .section-title {
    font-size: 26px !important;
  }

  .section-subtitle {
    font-size: 15px !important;
  }
}

/* ── Checkout & Forms ───────────────────────────────────── */
@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .checkout-form {
    padding: 20px 16px !important;
  }

  .form-input-row,
  .form-input-row-triple,
  .time-input-group {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .form-input,
  .form-input select,
  input[type="text"],
  input[type="email"],
  input[type="date"],
  input[type="time"],
  input[type="tel"],
  input[type="password"],
  select,
  textarea {
    min-height: 48px !important;
    font-size: 16px !important;
    padding: 12px 14px !important;
  }

  .form-label {
    font-size: 11px !important;
  }

  /* AM/PM toggle — equal width side-by-side */
  .ampm-group,
  .btn-ampm-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  /* Payment button */
  .btn-pay,
  .pay-btn,
  button[id*="pay"],
  button[id*="submit"] {
    width: 100% !important;
    min-height: 52px !important;
    font-size: 16px !important;
  }

  .checkout-btn-group {
    gap: 10px !important;
  }

  /* Order summary card */
  .order-summary {
    padding: 20px 16px !important;
  }

  /* Phone prefix + number side by side */
  .phone-row,
  .phone-input-wrap {
    display: grid !important;
    grid-template-columns: 96px 1fr !important;
    gap: 8px !important;
  }
}

/* ── Report View Page ───────────────────────────────────── */
@media (max-width: 768px) {
  .report-nav-content {
    padding: 12px 16px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  /* Top nav buttons — wrap into 2 columns */
  .report-nav-content .btn-nav-small {
    font-size: 12px !important;
    padding: 8px 12px !important;
    min-height: 40px !important;
  }

  .report-container {
    max-width: 100% !important;
    padding: 16px !important;
    overflow-x: hidden !important;
  }

  .report-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .btn-action,
  .btn-action-secondary {
    width: 100% !important;
    min-height: 48px !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Report content typography */
  .report-content {
    font-size: 16px !important;
    line-height: 1.7 !important;
  }

  .report-content h1 { font-size: 28px !important; }
  .report-content h2 { font-size: 22px !important; }
  .report-content h3 { font-size: 18px !important; }

  /* Vedic reasoning boxes */
  .report-section,
  .report-block {
    padding: 16px !important;
    overflow-x: hidden !important;
  }

  /* Chart / audit details — stack vertically */
  .audit-grid,
  .chart-grid,
  .birth-detail-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* Ask The Stars answer blocks */
  .ask-answer-block {
    padding: 16px !important;
  }
}

/* ── Customer Dashboard ─────────────────────────────────── */
@media (max-width: 768px) {
  /* Stat boxes — 2 col */
  .dash-stats {
    grid-template-columns: 1fr 1fr !important;
  }

  .dash-stat-n {
    font-size: 26px !important;
  }

  /* Tabs — horizontal scroll instead of wrap */
  .dash-tabs {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    padding-bottom: 2px !important;
    flex-wrap: nowrap !important;
  }

  .dash-tabs::-webkit-scrollbar { display: none; }

  .dash-tab {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 9px 16px !important;
    font-size: 13px !important;
    min-height: 44px !important;
  }

  /* Order/report cards */
  .order-card {
    padding: 18px 16px !important;
  }

  .order-card .birth-row {
    flex-direction: column !important;
    gap: 6px !important;
  }

  .order-actions,
  .card-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .order-actions a,
  .order-actions button,
  .card-actions a,
  .card-actions button {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Subscription cards */
  .sub-card {
    padding: 18px 16px !important;
  }

  .sub-card-details {
    grid-template-columns: 1fr 1fr !important;
  }

  .sub-card-birth {
    flex-direction: column !important;
    gap: 4px !important;
  }

  .sub-card-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .sub-card-actions button,
  .sub-card-actions a {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Support / tickets in dashboard */
  .ticket-card {
    padding: 16px !important;
  }
}

@media (max-width: 480px) {
  .sub-card-details {
    grid-template-columns: 1fr !important;
  }

  .dash-stat-n {
    font-size: 22px !important;
  }
}

/* ── Daily Guidance / Subscription Page ─────────────────── */
@media (max-width: 768px) {
  /* Plan cards — 1 col */
  .plan-cards-wrap,
  .plans-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    align-items: stretch !important;
  }

  .plan-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* "Most popular" badge — don't let it overflow */
  .popular-badge,
  [style*="position:absolute"][style*="top:-"] {
    font-size: 9px !important;
    padding: 3px 10px !important;
    white-space: nowrap !important;
  }

  /* Comparison features list */
  .comparison-table,
  .features-list {
    font-size: 14px !important;
  }

  .feature-row {
    padding: 10px 0 !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  /* Subscribe modal */
  .modal-box,
  .subscribe-modal {
    width: calc(100vw - 32px) !important;
    max-width: 100% !important;
    padding: 20px 16px !important;
    margin: 16px !important;
  }
}

/* ── 1-on-1 Session Booking Page ────────────────────────── */
@media (max-width: 768px) {
  /* Calendar + form side-by-side → stack */
  .session-layout,
  .booking-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    flex-direction: column !important;
  }

  .calendar-wrap,
  .session-form-wrap {
    width: 100% !important;
  }

  /* Time slot buttons — 2 col grid */
  .time-slots-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .time-slot-btn {
    min-height: 48px !important;
    font-size: 14px !important;
  }

  /* Calendar grid — tighter on phone */
  .cal-grid {
    gap: 4px !important;
  }

  .cal-day {
    width: 36px !important;
    height: 36px !important;
    font-size: 13px !important;
  }
}

/* ── Support Page ───────────────────────────────────────── */
@media (max-width: 768px) {
  .support-grid,
  .issue-types-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .issue-type-btn {
    min-height: 44px !important;
    font-size: 13px !important;
    padding: 10px 8px !important;
  }

  .support-form-wrap,
  .ticket-form {
    padding: 20px 16px !important;
  }

  .support-form-wrap input,
  .support-form-wrap select,
  .support-form-wrap textarea,
  .ticket-form input,
  .ticket-form select,
  .ticket-form textarea {
    width: 100% !important;
    min-height: 48px !important;
  }

  .submit-btn,
  button[type="submit"] {
    width: 100% !important;
    min-height: 48px !important;
  }

  /* Response time badges */
  .response-badges {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
}

@media (max-width: 480px) {
  .support-grid,
  .issue-types-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Login / Register ───────────────────────────────────── */
@media (max-width: 768px) {
  .auth-card,
  .login-card,
  .register-card {
    width: calc(100vw - 32px) !important;
    max-width: 440px !important;
    padding: 28px 20px !important;
    margin: 0 auto !important;
  }

  .auth-card input,
  .login-card input,
  .register-card input {
    width: 100% !important;
    min-height: 48px !important;
  }

  .auth-submit,
  .login-btn,
  .register-btn,
  .auth-card button[type="submit"],
  .login-card button[type="submit"],
  .register-card button[type="submit"] {
    width: 100% !important;
    min-height: 48px !important;
  }
}

/* ── Success / Processing Page ──────────────────────────── */
@media (max-width: 768px) {
  .success-card,
  .processing-card {
    padding: 28px 16px !important;
    margin: 0 16px !important;
  }

  .success-actions,
  .processing-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .success-actions a,
  .success-actions button,
  .processing-actions a,
  .processing-actions button {
    width: 100% !important;
    min-height: 48px !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* ── Inline-style overrides for mobile ──────────────────── */
/* Many sections use inline style="display:grid; grid-template-columns: ..."
   These targeted overrides force 1-col on small screens. */
@media (max-width: 768px) {
  /* General inline grid to 1-col */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  /* Inline flex rows → column */
  [style*="display:flex"][style*="gap:"] > * {
    max-width: 100%;
  }

  /* Full-width inline buttons */
  [style*="padding:18px 40px"],
  [style*="padding: 18px 40px"] {
    padding: 16px 24px !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
  }
}

/* ── Extra small phones (360px) ─────────────────────────── */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 32px !important;
  }

  .stat-number {
    font-size: 24px !important;
  }

  .dash-tab {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  .nav-logo-main {
    font-size: 18px !important;
  }

  .nav-logo-sub {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════
   MOBILE UX OVERHAUL — Homepage bounce rate fix
   Targets: sticky CTA, daily-kundli section, hero, form
   ═══════════════════════════════════════════════════════ */

/* ── Sticky Bottom CTA (mobile only) ────────────────────── */
#mobile-sticky-cta {
  display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
  #mobile-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    padding: 10px 16px;
    /* safe area for iPhone home bar */
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(6,9,32,0.98) 0%, rgba(6,9,32,0.88) 100%);
    border-top: 1px solid rgba(201,168,76,0.25);
    transition: transform 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  #mobile-sticky-cta.hidden {
    transform: translateY(120%);
  }

  #mobile-sticky-cta a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 14px 20px !important;
    background: linear-gradient(135deg, #C9A84C, #E2C87A) !important;
    color: #060920 !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 4px 20px rgba(201,168,76,0.35) !important;
  }

  /* Add bottom padding to body so sticky bar doesn't cover content */
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ── Hero — tighter on mobile ────────────────────────────── */
@media (max-width: 480px) {
  .hero {
    padding: 76px 20px 44px !important;
  }

  .hero h1 {
    font-size: clamp(30px, 8.5vw, 40px) !important;
    margin-bottom: 12px !important;
  }

  .hero-badge {
    font-size: 10px !important;
    padding: 6px 14px !important;
    margin-bottom: 20px !important;
  }

  .hero-tagline {
    font-size: 15px !important;
    margin-bottom: 8px !important;
  }

  .hero-desc {
    font-size: 14px !important;
    margin-bottom: 24px !important;
  }

  .hero-trust {
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
  }
}

/* ── Daily Kundli section — mobile ──────────────────────── */
@media (max-width: 768px) {
  #daily-kundli {
    padding: 56px 16px !important;
  }

  /* Main headline */
  #daily-kundli h2 {
    font-size: clamp(26px, 7vw, 36px) !important;
    line-height: 1.2 !important;
  }

  #daily-kundli p {
    font-size: 14px !important;
  }

  /* 3-col comparison cards → 1-col vertical stack */
  #daily-kundli [style*="repeat(3,1fr)"],
  #daily-kundli [style*="repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;            /* room for top badges */
    margin: 28px auto 28px !important;
    max-width: 100% !important;
  }

  /* Each comparison card needs padding-top so absolute badge at top:-13px shows */
  #daily-kundli [style*="repeat(3,1fr)"] > div,
  #daily-kundli [style*="repeat(3, 1fr)"] > div {
    margin-top: 14px !important;     /* makes room for the TAARA DAILY badge */
    overflow: visible !important;
  }

  /* Dim the "others" cards on mobile — emphasise TAARA card */
  #daily-kundli [style*="repeat(3,1fr)"] > div:first-child,
  #daily-kundli [style*="repeat(3, 1fr)"] > div:first-child,
  #daily-kundli [style*="repeat(3,1fr)"] > div:last-child,
  #daily-kundli [style*="repeat(3, 1fr)"] > div:last-child {
    opacity: 0.55 !important;
  }

  /* Features 2-col → 1-col */
  #daily-kundli [style*="repeat(2,1fr)"],
  #daily-kundli [style*="repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-bottom: 32px !important;
  }

  /* ── Pricing preview bar — clean mobile list ── */
  /* Container */
  #daily-kundli [style*="max-width:680px"] {
    padding: 8px 16px !important;
    margin-bottom: 28px !important;
  }

  /* Flex row → block (each item becomes its own row) */
  #daily-kundli [style*="max-width:680px"] > [style*="display:flex"] {
    display: block !important;
  }

  /* Hide all vertical divider lines */
  #daily-kundli [style*="width:1px"] {
    display: none !important;
  }

  /* Each plan item → horizontal flex row: label | price | days */
  #daily-kundli [style*="max-width:680px"] [style*="text-align:center"],
  #daily-kundli [style*="max-width:680px"] [style*="position:relative"] {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: left !important;
    padding: 10px 2px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    position: static !important;    /* prevent badge from floating outside */
    overflow: visible !important;
  }

  #daily-kundli [style*="max-width:680px"] > [style*="display:flex"] > div:last-child {
    border-bottom: none !important;
  }

  /* Label (first text child) — take remaining space */
  #daily-kundli [style*="max-width:680px"] [style*="text-align:center"] > div:first-child,
  #daily-kundli [style*="max-width:680px"] [style*="position:relative"] > div:nth-child(2) {
    flex: 1 !important;
    margin-bottom: 0 !important;
    font-size: 11px !important;
  }

  /* Price — centre column */
  #daily-kundli [style*="max-width:680px"] [style*="text-align:center"] > div:nth-child(2),
  #daily-kundli [style*="max-width:680px"] [style*="position:relative"] > div:nth-child(3) {
    font-size: 18px !important;
    margin: 0 14px !important;
    line-height: 1 !important;
  }

  /* Duration — right column */
  #daily-kundli [style*="max-width:680px"] [style*="text-align:center"] > div:nth-child(3),
  #daily-kundli [style*="max-width:680px"] [style*="position:relative"] > div:nth-child(4) {
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  /* POPULAR badge — hide on mobile (subscription.html shows it on the actual plan card) */
  #daily-kundli [style*="position:absolute"][style*="top:-36px"] {
    display: none !important;
  }

  /* CTA button — full width */
  #daily-kundli a[href="subscription.html"] {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 16px 24px !important;
    box-sizing: border-box !important;
  }

  /* Subtext under CTA */
  #daily-kundli [style*="margin-top:14px"] {
    font-size: 12px !important;
  }
}

/* ── Free Forecast form — mobile polish ──────────────────── */
@media (max-width: 768px) {
  #free-forecast {
    padding: 52px 0 48px !important;
  }

  .forecast-section-wrap {
    padding: 28px 20px !important;
    border-radius: 12px !important;
  }

  .forecast-form {
    max-width: 100% !important;
  }

  .forecast-form input {
    font-size: 16px !important; /* prevents iOS zoom */
    min-height: 50px !important;
    padding: 14px 16px !important;
    margin-bottom: 10px !important;
  }

  .forecast-form button {
    min-height: 52px !important;
    font-size: 15px !important;
    margin-top: 6px !important;
  }

  /* Countdown badge — wrap if needed */
  #free-forecast [style*="inline-flex"] {
    flex-wrap: wrap !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* ── Subscription page — plan cards mobile ───────────────── */
@media (max-width: 768px) {
  /* Remove the 360px cap — let cards use full width */
  .plans-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    gap: 14px !important;
  }

  .plan-card {
    padding: 24px 20px !important;
  }

  /* Popular badge — prevent overflow */
  .plan-badge {
    font-size: 9px !important;
    padding: 3px 10px !important;
    white-space: nowrap !important;
  }

  /* Plan price — bigger on mobile */
  .plan-price {
    font-size: 34px !important;
  }

  /* CTA button — taller tap target */
  .plan-cta {
    min-height: 50px !important;
    font-size: 15px !important;
  }

  /* Journey / how-it-works section */
  .journey-section {
    padding: 32px 16px !important;
  }

  .journey-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ── Subscribe modal — mobile padding + field stacking ──────── */
@media (max-width: 600px) {
  /* Inner modal box — reduce cramped desktop padding */
  #subscribe-modal > div {
    padding: 24px 16px !important;
    margin: 0 !important;
    width: calc(100vw - 32px) !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* TOB + POB side-by-side → stack vertically */
  #subscribe-modal [style*="grid-template-columns:1fr 1fr"],
  #subscribe-modal [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* Modal heading */
  #subscribe-modal h3 {
    font-size: 18px !important;
  }

  /* Submit button — full width, tall tap target */
  #subscribe-modal button[type="submit"],
  #subscribe-modal .btn-pay {
    width: 100% !important;
    min-height: 52px !important;
    font-size: 16px !important;
  }
}
