/* ── Variables ───────────────────────────────── */
:root {
    --r72-navy:       #0e1e45;
    --r72-navy-mid:   #1a3068;
    --r72-blue:       #2563eb;
    --r72-blue-mid:   #3b7dd8;
    --r72-blue-light: #60a5fa;
    --r72-bg:         #f8fafc;
    --r72-surface:    #ffffff;
    --r72-border:     #e2e8f0;
    --r72-text:       #0f172a;
    --r72-muted:      #64748b;
    --r72-green:      #10b981;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--r72-bg);
    color: var(--r72-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ───────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FFFFFF;
    border-bottom: 1px solid var(--r72-border);
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo-wrap { display: flex; align-items: center; text-decoration: none; }
.logo-wrap img { height: 34px; display: block; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
    color: var(--r72-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--r72-text); background: #f1f5f9; text-decoration: none; }
.site-nav .btn-login { color: var(--r72-navy-mid); }
.site-nav .btn-signup {
    background: var(--r72-navy);
    color: #fff !important;
    border-radius: 4px;
    padding: 8px 18px;
    font-weight: 600;
}
.site-nav .btn-signup:hover { background: var(--r72-navy-mid); color: #fff !important; }
.nav-links { display: flex; align-items: center; gap: 0; }

/* ── Hero ─────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #060d1f 0%, #0e1e45 55%, #0d2460 100%);
    position: relative;
    overflow: hidden;
    padding: 96px 24px 108px;
    text-align: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
}
.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--r72-blue-light); }
.hero .lead {
    font-size: 1.125rem;
    color: #ffffff;
    margin-bottom: 40px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}
.hero .cta-wrap { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    background: #fff;
    color: var(--r72-navy) !important;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    font-family: inherit;
}
.btn-hero-primary:hover { background: #e8f0fe; text-decoration: none; transform: translateY(-1px); }
.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    background: transparent;
    color: rgba(255,255,255,0.88) !important;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.6); text-decoration: none; }

/* ── Trust bar ────────────────────────────────── */
.trust-bar {
    background:#f0f0f0;
    border-bottom: 1px solid #cecece;
}
.trust-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px;
    flex: 1;
    min-width: 200px;
}
.trust-item + .trust-item { border-left: 1px solid var(--r72-border); }
.trust-item .ti-icon {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background: rgba(14,30,69,0.07);
    color: var(--r72-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}
.trust-item .ti-text strong { display: block; font-size: 0.875rem; font-weight: 600; color: var(--r72-text); line-height: 1.3; }
.trust-item .ti-text span { font-size: 0.75rem; color: var(--r72-muted); }

/* ── Sections ─────────────────────────────────── */
.section {
    padding: 80px 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.section-eyebrow {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--r72-blue);
    margin-bottom: 10px;
}
.section-title {
    font-size: clamp(1.625rem, 3vw, 2.125rem);
    font-weight: 800;
    color: var(--r72-navy);
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -0.025em;
    line-height: 1.2;
}
.section-subtitle {
    color: var(--r72-muted);
    text-align: center;
    margin-bottom: 48px;
    font-size: 1.0625rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

/* ── Feature cards ────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.feature-card {
    background: #FFFFFF;
    border-radius: 4px;
    padding: 28px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
    box-shadow: 0 12px 32px rgba(14,30,69,0.1);
    border-color: #bfdbfe;
    transform: translateY(-2px);
}
.feature-card .icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(29,78,216,0.28);
}
.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--r72-navy);
    letter-spacing: -0.01em;
}
.feature-card p { font-size: 0.875rem; color: var(--r72-muted); margin-bottom: 0; line-height: 1.65; }
.feature-card ul { list-style: none; padding: 0; margin: 14px 0 0; }
.feature-card ul li { font-size: 0.8125rem; color: var(--r72-muted); padding: 4px 0 4px 20px; position: relative; }
.feature-card ul li::before {
    content: "\F26B";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--r72-green);
    font-size: 0.75rem;
}

/* ── Pricing section ──────────────────────────── */
.pricing-section-bg {
    background: #f1f5f9;
    padding: 80px 0;
}
.pricing-section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
}
.pricing-card {
    background: var(--r72-surface);
    border-radius: 4px;
    padding: 32px;
    border: 1.5px solid var(--r72-border);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.pricing-card:hover { box-shadow: 0 8px 28px rgba(14,30,69,0.09); }
.pricing-card.featured {
    border-color: var(--r72-navy);
    box-shadow: 0 8px 32px rgba(14,30,69,0.15);
}
.pricing-card .featured-badge {
    display: inline-block;
    background: var(--r72-navy);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.pricing-card .plan-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--r72-navy);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.pricing-card .plan-desc { font-size: 0.875rem; color: var(--r72-muted); margin-bottom: 20px; }
.pricing-card .price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--r72-navy);
    letter-spacing: -0.03em;
    margin-bottom: 0;
    line-height: 1;
}
.pricing-card .price span { font-size: 0.875rem; font-weight: 500; color: var(--r72-muted); letter-spacing: 0; }
.pricing-card .price .price-amount { font-size: 2.25rem; font-weight: 800; color: var(--r72-navy); letter-spacing: -0.03em; }
.pricing-card .price .price-period { font-size: 0.875rem; font-weight: 500; color: var(--r72-muted); letter-spacing: 0; }
.pricing-card .price-annual-note { font-size: 0.75rem; color: var(--r72-green); font-weight: 600; min-height: 1.2em; margin-top: 4px; }
.pricing-card ul { list-style: none; margin: 24px 0; flex: 1; padding: 0; }
.pricing-card ul li {
    font-size: 0.875rem;
    color: var(--r72-text);
    padding: 7px 0 7px 24px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card ul li::before {
    content: "\F26B";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--r72-green);
    font-size: 0.8125rem;
}
.pricing-card .btn-plan {
    margin-top: auto;
    padding: 13px 20px;
    font-weight: 600;
    border-radius: 4px;
    font-size: 0.9375rem;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    border: none;
    font-family: inherit;
    cursor: pointer;
}
.pricing-card .btn-plan:hover { text-decoration: none; transform: translateY(-1px); }
.pricing-card .btn-plan.btn-primary { background: var(--r72-navy); color: #fff; }
.pricing-card .btn-plan.btn-primary:hover { background: var(--r72-navy-mid); color: #fff; }
.pricing-card .btn-plan.btn-primary.btn-plan-loading { cursor: wait; opacity: 0.9; }
.pricing-card .btn-plan .btn-plan-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: login-spin 0.6s linear infinite;
}
.pricing-card .btn-plan.btn-outline-primary { background: transparent; border: 1.5px solid var(--r72-navy); color: var(--r72-navy); }
.pricing-card .btn-plan.btn-outline-primary:hover { background: var(--r72-navy); color: #fff; }

/* Billing toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    border-radius: 100px;
    padding: 4px;
    width: fit-content;
    margin: 0 auto 40px;
}
.billing-toggle .toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    border: none;
    background: transparent;
    color: var(--r72-muted);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.billing-toggle .toggle-btn.active {
    background: #fff;
    color: var(--r72-navy);
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.save-badge {
    background: #dcfce7;
    color: #15803d;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    line-height: 1.5;
}
.pricing-section-inner .section-subtitle { margin-bottom: 24px; }

/* ── Best for section ──────────────────────────────── */
#best-for .section-subtitle {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
}
.best-for-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 32px;
}
@media (min-width: 576px) {
    .best-for-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
    .best-for-grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
}
.best-for-card {
    background: rgba(15, 30, 65, 0.04);
    border: 1px solid var(--r72-border, #e2e8f0);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
}
.best-for-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--r72-primary, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 12px;
}
.best-for-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--r72-navy, #0e1e45);
    margin-bottom: 8px;
    line-height: 1.3;
}
.best-for-card-desc {
    font-size: 0.875rem;
    color: var(--r72-muted);
    line-height: 1.55;
    margin: 0;
}
.best-for-note-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding-top: 8px;
    border-top: 1px solid var(--r72-border, #e2e8f0);
}
.best-for-note {
    font-size: 0.875rem;
    color: var(--r72-muted);
    text-align: center;
    line-height: 1.55;
    margin: 0;
    font-style: italic;
}

/* ── CTA section ──────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #060d1f 0%, #0e1e45 60%, #0d2460 100%);
    padding: 96px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.cta-inner { position: relative; max-width: 600px; margin: 0 auto; }
.cta-section h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    line-height: 1.2;
}
.cta-section p { color: rgba(255,255,255,0.65); font-size: 1.0625rem; margin-bottom: 36px; line-height: 1.65; }
.cta-section .cta-positioning { font-size: 0.875rem; margin-bottom: 24px; opacity: 0.85; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    background: #fff;
    color: var(--r72-navy) !important;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    font-family: inherit;
}
.btn-cta:hover { background: #e8f0fe; text-decoration: none; transform: translateY(-1px); }
.btn-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    background: transparent;
    color: rgba(255,255,255,0.88) !important;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.btn-cta-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.6); text-decoration: none; }

/* ── Footer ───────────────────────────────────── */
.site-footer {
    background: #080f22;
    color: rgba(255,255,255,0.5);
    padding: 64px 24px 32px;
}
.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img { height: 30px; margin-bottom: 16px; display: block; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer-share-col h4 { margin-bottom: 12px; }
.share-links { display: flex; gap: 12px; flex-wrap: wrap; }
.share-links .share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 1.15rem;
    transition: background 0.2s, color 0.2s;
}
.share-links .share-link:hover { background: rgba(255,255,255,0.15); color: #fff; }
.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    margin-bottom: 11px;
    transition: color 0.15s;
}
.footer-col a:hover { color: rgba(255,255,255,0.88); }
.footer-bottom {
    max-width: 1100px;
    margin: 28px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8125rem;
}
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.15s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.75); }
.footer-bottom-links { display: flex; gap: 20px; }

/* ── Login modal ───────────────────────────────── */
#loginModal .modal-dialog { max-width: 400px; }
#loginModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 24px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
    overflow: hidden;
}
#loginModal .modal-header {
    border-bottom: none;
    padding: 28px 28px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}
#loginModal .modal-header .modal-title {
    order: 2;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--r72-navy);
    margin: 0;
}
#loginModal .modal-header .btn-close { position: absolute; top: 16px; right: 16px; opacity: 0.5; padding: 8px; }
#loginModal .modal-header .btn-close:hover { opacity: 1; }
#loginModal .login-modal-logo { display: block; height: 36px; width: auto; margin: 0 auto; }
#loginModal .modal-body { padding: 24px 28px 28px; }
#loginModal .login-modal-subtitle { color: var(--r72-muted); font-size: 0.9375rem; margin-bottom: 24px; }
#loginModal .input-wrap { position: relative; margin-bottom: 18px; }
#loginModal .input-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--r72-muted);
    font-size: 1.125rem;
    pointer-events: none;
}
#loginModal .input-wrap .form-control {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    font-size: 0.9375rem;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background: #fff;
    color: var(--r72-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
#loginModal .input-wrap .form-control::placeholder { color: #9aa0a6; }
#loginModal .input-wrap .form-control:hover { border-color: #bdc1c6; }
#loginModal .input-wrap .form-control:focus {
    outline: none;
    border-color: var(--r72-blue-mid);
    box-shadow: 0 0 0 3px rgba(59,125,216,0.18);
}
#loginModal .input-wrap .form-control.is-invalid { border-color: #d93025; box-shadow: 0 0 0 2px rgba(217,48,37,0.15); }
#loginModal .form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--r72-text); margin-bottom: 8px; }
#loginModal .login-submit-btn {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--r72-navy);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
    font-family: inherit;
}
#loginModal .login-submit-btn:hover:not(:disabled) { background: var(--r72-navy-mid); }
#loginModal .login-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }
#loginModal .login-modal-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--r72-border);
}
#loginModal .login-modal-links a { font-size: 0.875rem; color: var(--r72-blue-mid); text-decoration: none; }
#loginModal .login-modal-links a:hover { text-decoration: underline; }
#loginModal .login-modal-links .sep { color: #dadce0; margin: 0 10px; font-size: 0.875rem; }
#loginModal .login-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: login-spin 0.6s linear infinite;
}
@keyframes login-spin { to { transform: rotate(360deg); } }

/* ── Signup modal (redesigned) ──────────────────── */
#signupModal .signup-modal-dialog {
    max-width: 480px;
}

#signupModal .signup-modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 32px 64px rgba(14, 30, 69, 0.2), 0 12px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#signupModal .signup-modal-header {
    background: linear-gradient(135deg, #060d1f 0%, var(--r72-navy) 50%, #0d2460 100%);
    padding: 24px 28px 20px;
    position: relative;
}

#signupModal .signup-modal-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

#signupModal .signup-modal-header-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    z-index: 1;
}

#signupModal .signup-modal-logo {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

#signupModal .signup-modal-header-text {
    flex: 1;
    min-width: 0;
}

#signupModal .signup-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

#signupModal .signup-modal-steps {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

#signupModal .signup-step-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
}

#signupModal .signup-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.7;
    padding: 6px;
    filter: invert(1);
}

#signupModal .signup-modal-close:hover {
    opacity: 1;
}

#signupModal .signup-plan-badge {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    position: relative;
    z-index: 1;
}

#signupModal .signup-modal-body {
    padding: 28px 28px 32px;
    background: var(--r72-surface);
}

#signupModal .signup-modal-intro {
    font-size: 0.9375rem;
    color: var(--r72-muted);
    margin-bottom: 24px;
    line-height: 1.55;
}

#signupModal .signup-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    margin-bottom: 24px;
}

#signupModal .signup-field {
    grid-column: 1 / -1;
}

#signupModal .signup-field-half {
    grid-column: span 1;
}

#signupModal .signup-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--r72-text);
    margin-bottom: 6px;
}

#signupModal .signup-label-optional {
    font-weight: 400;
    color: var(--r72-muted);
}

#signupModal .signup-input-wrap {
    position: relative;
}

#signupModal .signup-input-wrap .signup-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--r72-muted);
    font-size: 1rem;
    pointer-events: none;
}

#signupModal .signup-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    font-size: 0.9375rem;
    border: 1px solid var(--r72-border);
    border-radius: 8px;
    background: #fff;
    color: var(--r72-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

#signupModal .signup-input::placeholder {
    color: #94a3b8;
}

#signupModal .signup-input:hover {
    border-color: #cbd5e1;
}

#signupModal .signup-input:focus {
    outline: none;
    border-color: var(--r72-blue-mid);
    box-shadow: 0 0 0 3px rgba(59, 125, 216, 0.18);
}

#signupModal .signup-input.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

#signupModal .signup-cta-btn {
    width: 100%;
    height: 52px;
    padding: 0 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--r72-navy) 0%, var(--r72-navy-mid) 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(14, 30, 69, 0.25);
}

#signupModal .signup-cta-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--r72-navy-mid) 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 30, 69, 0.3);
}

#signupModal .signup-cta-btn:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    transform: none;
}

#signupModal .signup-cta-btn .signup-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: login-spin 0.6s linear infinite;
}

#signupModal .signup-trust-line {
    margin: 16px 0 0;
    font-size: 0.75rem;
    color: var(--r72-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

#signupModal .signup-trust-line i {
    color: var(--r72-green);
    font-size: 0.875rem;
}

@media (max-width: 520px) {
    #signupModal .signup-form-grid {
        grid-template-columns: 1fr;
    }

    #signupModal .signup-field-half {
        grid-column: 1 / -1;
    }
}

/* ── Auth modals ───────────────────────────────── */
#forgot_password_modal .modal-dialog,
#forgot_username_modal .modal-dialog { max-width: 400px; }
#forgot_password_modal .modal-content,
#forgot_username_modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 24px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
    overflow: hidden;
}
#forgot_password_modal .modal-header,
#forgot_username_modal .modal-header {
    border-bottom: none;
    padding: 28px 28px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    position: relative;
}
#forgot_password_modal .modal-header .modal-title,
#forgot_username_modal .modal-header .modal-title {
    order: 2;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--r72-navy);
    margin: 0;
}
#forgot_password_modal .modal-header .btn-close,
#forgot_username_modal .modal-header .btn-close { position: absolute; top: 16px; right: 16px; opacity: 0.5; padding: 8px; }
#forgot_password_modal .modal-header .btn-close:hover,
#forgot_username_modal .modal-header .btn-close:hover { opacity: 1; }
#forgot_password_modal .auth-modal-logo,
#forgot_username_modal .auth-modal-logo { display: block; height: 36px; width: auto; margin: 0 auto; }
#forgot_password_modal .modal-body,
#forgot_username_modal .modal-body { padding: 24px 28px 28px; }
#forgot_password_modal .modal-footer,
#forgot_username_modal .modal-footer { border-top: 1px solid var(--r72-border); padding: 20px 28px 28px; gap: 12px; flex-wrap: wrap; }
#forgot_password_modal .login-modal-subtitle,
#forgot_username_modal .login-modal-subtitle { color: var(--r72-muted); font-size: 0.9375rem; margin-bottom: 24px; }
#forgot_password_modal .input-wrap,
#forgot_username_modal .input-wrap { position: relative; margin-bottom: 20px; }
#forgot_password_modal .input-wrap .input-icon,
#forgot_username_modal .input-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--r72-muted);
    font-size: 1.125rem;
    pointer-events: none;
}
#forgot_password_modal .input-wrap .form-control,
#forgot_username_modal .input-wrap .form-control {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    font-size: 0.9375rem;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background: #fff;
    color: var(--r72-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
#forgot_password_modal .input-wrap .form-control::placeholder,
#forgot_username_modal .input-wrap .form-control::placeholder { color: #9aa0a6; }
#forgot_password_modal .input-wrap .form-control:focus,
#forgot_username_modal .input-wrap .form-control:focus {
    outline: none;
    border-color: var(--r72-blue-mid);
    box-shadow: 0 0 0 3px rgba(59,125,216,0.18);
}
#forgot_password_modal .input-wrap .form-control.is-invalid,
#forgot_username_modal .input-wrap .form-control.is-invalid { border-color: #d93025; box-shadow: 0 0 0 2px rgba(217,48,37,0.15); }
#forgot_password_modal .form-label,
#forgot_username_modal .form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--r72-text); margin-bottom: 8px; }
#forgot_password_modal .auth-modal-btn,
#forgot_username_modal .auth-modal-btn {
    height: 48px;
    padding: 0 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-family: inherit;
}
#forgot_password_modal .auth-modal-btn.btn-primary,
#forgot_username_modal .auth-modal-btn.btn-primary { background: var(--r72-navy); color: #fff; }
#forgot_password_modal .auth-modal-btn.btn-primary:hover,
#forgot_username_modal .auth-modal-btn.btn-primary:hover { background: var(--r72-navy-mid); color: #fff; }
#forgot_password_modal .auth-modal-btn.btn-secondary,
#forgot_username_modal .auth-modal-btn.btn-secondary { background: #fff; color: var(--r72-text); border: 1px solid #dadce0; }
#forgot_password_modal .auth-modal-btn.btn-secondary:hover,
#forgot_username_modal .auth-modal-btn.btn-secondary:hover { background: #f1f5f9; border-color: #bdc1c6; }

/* ── Legal modal (Privacy / Terms) ────────────── */
#legalModal .modal-dialog { max-width: 640px; }
#legalModal .modal-content {
    border-radius: 4px;
    border: none;
    box-shadow: 0 24px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
    overflow: hidden;
}
#legalModal .modal-header {
    border-bottom: 1px solid var(--r72-border);
    padding: 28px 28px 20px;
    position: relative;
}
#legalModal .modal-header .modal-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--r72-navy);
    margin: 0;
}
#legalModal .modal-header .btn-close { position: absolute; top: 20px; right: 20px; opacity: 0.5; padding: 8px; }
#legalModal .modal-header .btn-close:hover { opacity: 1; }
#legalModal .modal-body {
    padding: 24px 28px 28px;
    max-height: 70vh;
    overflow-y: auto;
    font-size: 0.9375rem;
    color: var(--r72-text);
    line-height: 1.65;
}
#legalModalBody h2 { font-size: 1.125rem; font-weight: 700; color: var(--r72-navy); margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--r72-border); }
#legalModalBody h3 { font-size: 0.9375rem; font-weight: 600; color: var(--r72-navy); margin: 20px 0 10px; }
#legalModalBody h3:first-of-type { margin-top: 0; }
#legalModalBody p { margin-bottom: 12px; font-size: 0.75rem; color: var(--r72-text); }
#legalModalBody ul { margin: 0 0 16px 20px; padding: 0; }
#legalModalBody li { margin-bottom: 8px; }
#legalModalBody a { color: var(--r72-blue-mid); text-decoration: none; }
#legalModalBody a:hover { text-decoration: underline; }
#legalModalBody .text-muted { color: var(--r72-muted); }
#legalModalBody .text-danger { color: #d93025; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 960px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .site-header { padding: 0 16px; }
    .nav-links { display: none; }
    .hero { padding: 72px 16px 80px; }
    .section { padding: 56px 16px; }
    .pricing-section-bg { padding: 56px 0; }
    .trust-item + .trust-item { border-left: none; border-top: 1px solid var(--r72-border); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
}
