@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════════════════════
   EXECUTION MIND — LANDING PAGE STYLES
   Total Overhaul: Apple/SaaS-Style Dark Glass UI
   Scope: .welcome-landing + .index-auth-page navbar/modals
   JS contract: all IDs/classes/data-attributes preserved
═══════════════════════════════════════════════════════════════ */

/* ── Entrance animation keyframe ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Design Tokens (scoped to landing root) ── */
.welcome-landing {
    --bg-deep:          #08030F;
    --bg-main:          #08030F;
    --primary:          #7c3aed;
    --primary-bright:   #9333ea;
    --primary-hover:    #6d28d9;
    --glow-purple:      rgba(124, 58, 237, 0.42);
    --glow-purple-soft: rgba(124, 58, 237, 0.22);
    --elite:            #d946ef;
    --elite-hover:      #c026d3;
    --elite-glow:       rgba(217, 70, 239, 0.32);
    --glass-bg:         rgba(255, 255, 255, 0.032);
    --glass-border:     rgba(255, 255, 255, 0.09);
    --glass-blur:       18px;
    --card-bg:          rgba(255, 255, 255, 0.030);
    --card-border:      rgba(255, 255, 255, 0.09);
    --text-main:        #f8fafc;
    --text-muted:       #8b98b0;
    --text-gradient:    linear-gradient(135deg, #ffffff 0%, #c4b5fd 52%, #7c3aed 100%);
    --primary-glow:     rgba(124, 58, 237, 0.42);
    --elite-glow-var:   rgba(217, 70, 239, 0.32);

    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    direction: ltr;
    isolation: isolate;
}

/* Dot-grid background texture */
.welcome-landing::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(124, 58, 237, 0.10) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* Ambient colour clouds */
.welcome-landing::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 72% 52% at 18% -4%,  rgba(124, 58, 237, 0.16) 0%, transparent 58%),
        radial-gradient(ellipse 56% 44% at 82%  14%, rgba(217, 70, 239, 0.10) 0%, transparent 52%),
        radial-gradient(ellipse 62% 42% at 50%  105%, rgba(124, 58, 237, 0.12) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.welcome-landing * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.welcome-landing .container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* ── HERO SECTION ── */
.hero-section {
    text-align: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Decorative hero grid overlay (added via HTML) */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
}

/* Light streak decorations */
.hero-streak {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.hero-streak--1 {
    width: 380px;
    height: 1px;
    top: 38%;
    left: -80px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.30), transparent);
    transform: rotate(-12deg);
}

.hero-streak--2 {
    width: 280px;
    height: 1px;
    top: 55%;
    right: -60px;
    background: linear-gradient(90deg, transparent, rgba(217, 70, 239, 0.22), transparent);
    transform: rotate(10deg);
}

/* Glow orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(180px);
    z-index: 0;
    opacity: 0.38;
    pointer-events: none;
    will-change: transform;
}

.orb-1 {
    width: 540px;
    height: 540px;
    background: var(--primary);
    top: -200px;
    left: -140px;
    animation: orbFloat1 10s ease-in-out infinite alternate;
}

.orb-2 {
    width: 440px;
    height: 440px;
    background: var(--elite);
    bottom: -100px;
    right: -100px;
    animation: orbFloat2 12s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(48px, 36px) scale(1.10); }
}

@keyframes orbFloat2 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-40px, -28px) scale(1.10); }
}

@media (prefers-reduced-motion: reduce) {
    .glow-orb { animation: none !important; }
    .hero-title,
    .hero-subtitle,
    .billing-toggle,
    .pricing-card,
    .final-push h2,
    .final-push p,
    .final-push .btn-large {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Hero Title — text gradient */
.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 28px;
    line-height: 1.06;
    letter-spacing: -0.045em;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.10s both;
}

.highlight {
    background: linear-gradient(135deg, #ede9fe 0%, #c084fc 38%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 28px rgba(124, 58, 237, 0.45));
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    font-weight: 400;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 56px;
    line-height: 1.75;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

/* ── BILLING TOGGLE ── */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 0 0 1px rgba(124, 58, 237, 0.08) inset,
        0 8px 32px rgba(0, 0, 0, 0.28);
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

.toggle-label {
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.48);
    transition: color 0.25s ease;
}

/* Active label via CSS :has — brightens the relevant label */
.billing-toggle:not(:has(#billing-checkbox:checked)) .toggle-label:first-of-type {
    color: #f8fafc;
    text-shadow: 0 0 18px rgba(124, 58, 237, 0.28);
}
.billing-toggle:has(#billing-checkbox:checked) .toggle-label.active-yearly,
.billing-toggle:has(#billing-checkbox:checked) .toggle-label:last-of-type {
    color: #f8fafc;
    text-shadow: 0 0 18px rgba(124, 58, 237, 0.28);
}

.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 34px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, var(--primary-bright), var(--primary));
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.50);
}

input:checked + .slider {
    background-color: rgba(124, 58, 237, 0.24);
    box-shadow: 0 0 14px rgba(124, 58, 237, 0.22) inset;
}

input:checked + .slider:before {
    transform: translateX(24px);
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.60);
}

.badge {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.40);
    font-size: 0.70rem;
    padding: 3px 9px;
    border-radius: 999px;
    margin-left: 6px;
    font-weight: 700;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

/* ── PRICING SECTION ── */
.pricing-section {
    padding: 56px 0 80px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: stretch;
    overflow: visible;
    padding-top: 12px;
}

/* ── PRICING CARDS — Glassmorphism ── */
.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 48px 32px;
    backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    transition:
        transform 0.42s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.42s ease,
        border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    overflow: visible;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 16px 48px rgba(0, 0, 0, 0.38);
    animation: fadeInUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pricing-grid .pricing-card:nth-child(1) { animation-delay: 0.46s; }
.pricing-grid .pricing-card:nth-child(2) { animation-delay: 0.58s; }
.pricing-grid .pricing-card:nth-child(3) { animation-delay: 0.70s; }

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.30);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.07) inset,
        0 0 64px var(--glow-purple),
        0 28px 60px rgba(0, 0, 0, 0.46);
}

/* Top accent lines per card (added via HTML .card-top-line) */
.card-top-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    border-radius: 0 0 4px 4px;
    opacity: 0.55;
    transition: opacity 0.35s ease, width 0.35s ease;
}

.starter-card .card-top-line {
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.45), transparent);
}

.pro-card .card-top-line {
    background: linear-gradient(90deg, transparent, #a78bfa, #8b5cf6, transparent);
    opacity: 0.75;
}

.elite-card .card-top-line {
    background: linear-gradient(90deg, transparent, var(--elite), #8b5cf6, transparent);
    opacity: 0.70;
}

.pricing-card:hover .card-top-line {
    opacity: 1;
    width: 75%;
}

/* Card header */
.card-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 14px;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    color: #fff;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.currency {
    font-size: 1.8rem;
    margin-right: 4px;
    font-weight: 600;
    color: var(--text-muted);
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 8px;
    font-weight: 400;
}

.tagline {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.6;
}

.features {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.icon {
    margin-right: 14px;
    font-size: 1.2rem;
    line-height: 1.2;
}

.features .icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 0;
    margin-top: 2px;
}

.features .icon svg {
    width: 18px;
    height: 18px;
}

.feature-text {
    flex: 0 1 auto;
    min-width: 0;
}

.icon-check svg {
    color: #8b5cf6;
    stroke: currentColor;
}

.icon-zap svg {
    color: var(--elite);
    fill: currentColor;
}

.feature-value {
    font-weight: 700;
    color: var(--text-main);
}

.note {
    font-size: 0.85rem !important;
    color: #64748b;
    margin-top: 8px;
}

/* ── PRO CARD (Most Popular) ── */
.popular {
    border-color: rgba(139, 92, 246, 0.42);
    background: rgba(139, 92, 246, 0.055);
    box-shadow:
        0 1px 0 rgba(167, 139, 250, 0.12) inset,
        0 0 56px var(--glow-purple),
        0 18px 44px rgba(0, 0, 0, 0.38);
}

/* Gradient border ring on Pro card */
.popular::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 31px;
    padding: 1px;
    background: linear-gradient(145deg,
        rgba(167, 139, 250, 0.55),
        rgba(139, 92, 246, 0.25),
        rgba(217, 70, 239, 0.20),
        rgba(139, 92, 246, 0.10));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.popular > * {
    position: relative;
    z-index: 1;
}

.popular:hover {
    border-color: rgba(167, 139, 250, 0.55);
    box-shadow:
        0 1px 0 rgba(167, 139, 250, 0.18) inset,
        0 0 68px var(--glow-purple),
        0 26px 58px rgba(0, 0, 0, 0.44);
}

.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, #8b5cf6, var(--elite));
    color: #fff;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 20px rgba(139, 92, 246, 0.40);
    white-space: nowrap;
}

.popular-badge .icon-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.popular-badge .icon-star svg {
    width: 14px;
    height: 14px;
    color: #fff;
}

/* ── BUTTONS ── */
.welcome-landing .cta-btn {
    width: 100%;
    min-height: 52px;
    padding: 16px 20px;
    border-radius: 18px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, transform 0.18s ease;
    border: none;
    letter-spacing: 0.02em;
}

.welcome-landing .cta-btn:active {
    transform: scale(0.97);
}

.welcome-landing .btn-outline {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: var(--text-main);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.welcome-landing .btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.welcome-landing .btn-primary {
    background: linear-gradient(135deg, var(--primary-bright) 0%, var(--primary) 50%, var(--primary-hover) 100%);
    color: #fff;
    box-shadow: 0 4px 22px rgba(124, 58, 237, 0.36);
}

.welcome-landing .btn-primary:hover {
    background: linear-gradient(135deg, #a855f7 0%, var(--primary) 45%, var(--primary-hover) 100%);
    box-shadow: 0 8px 36px var(--glow-purple);
    transform: translateY(-2px);
}

.welcome-landing .btn-elite {
    background: linear-gradient(135deg, var(--elite) 0%, var(--primary) 100%);
    color: #fff;
    box-shadow: 0 4px 22px rgba(217, 70, 239, 0.28);
}

.welcome-landing .btn-elite:hover {
    box-shadow: 0 8px 36px var(--elite-glow), 0 0 28px var(--glow-purple-soft);
    transform: translateY(-2px);
}

.pricing-card .cta-btn:hover {
    transform: translateY(-2px);
}

/* ── FAQ SECTION — CSS Accordion ── */
.faq-section {
    padding: 0 0 100px;
}

.section-title {
    font-size: clamp(1.85rem, 4vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
    letter-spacing: -0.035em;
    background: linear-gradient(135deg, #ffffff 0%, #d8b4fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.faq-section .section-title {
    margin-top: 32px;
    margin-bottom: 32px;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
    gap: 12px;
}

/* FAQ items as <details> accordion */
.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.20);
}

.faq-item[open] {
    border-color: rgba(139, 92, 246, 0.28);
    background: rgba(139, 92, 246, 0.04);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 0 24px rgba(139, 92, 246, 0.08);
}

.faq-item:hover:not([open]) {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.038);
}

/* Summary — question row */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Hide Safari default disclosure triangle */
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

.faq-q-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.4;
}

/* Chevron icon */
.faq-chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: background 0.25s ease, color 0.25s ease, transform 0.3s ease;
}

.faq-chevron svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-chevron {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-bright);
    border-color: rgba(139, 92, 246, 0.25);
}

.faq-item[open] .faq-chevron svg {
    transform: rotate(180deg);
}

/* Answer body */
.faq-answer {
    padding: 0 24px 22px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.72;
}

/* Legacy faq-item h3 / p support (if HTML not updated) */
.faq-item h3 {
    margin-bottom: 12px;
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 22px 24px 0;
}

.faq-item > p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.72;
    padding: 0 24px 22px;
}

/* ── FINAL PUSH ── */
.final-push {
    text-align: center;
    padding: 80px 0 calc(120px + env(safe-area-inset-bottom, 0px));
    position: relative;
}

/* Ambient glow ring behind CTA */
.final-push::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    width: min(580px, 92vw);
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.14) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.final-push > * {
    position: relative;
    z-index: 1;
}

.final-push h2 {
    font-size: clamp(1.75rem, 4.2vw, 2.85rem);
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 16px;
    letter-spacing: -0.035em;
    line-height: 1.14;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    animation: fadeInUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.82s both;
}

.final-push p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
    animation: fadeInUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.92s both;
}

.welcome-landing .btn-large {
    width: auto;
    min-height: 56px;
    padding: 18px 48px;
    font-size: 1.15rem;
    border-radius: 20px;
    animation: fadeInUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) 1.02s both;
}

/* ── FOOTER / LEGAL LINKS ── */
.welcome-landing .landing-legal {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
}

.welcome-landing .landing-legal__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.welcome-landing .landing-legal__link:hover {
    color: var(--primary-bright);
    text-decoration: none;
}

.welcome-landing .landing-legal__sep {
    color: rgba(148, 163, 184, 0.35);
    user-select: none;
}

.welcome-landing .landing-copyright {
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: rgba(139, 152, 176, 0.55);
    letter-spacing: 0.02em;
}

/* ── FOOTER LEGAL BUTTONS (Support / About) ── */
.welcome-landing .landing-legal__btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE BREAKPOINTS
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .index-landing-nav__inner {
        padding: 14px 18px;
    }

    .index-landing-nav__brand {
        font-size: 1.28rem;
    }

    .index-landing-nav__cta {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 0.88rem;
    }

    .index-auth-page .welcome-landing .hero-section {
        padding: 64px 0 56px;
    }

    .hero-title {
        font-size: 2.5rem;
        padding: 0 8px;
    }

    .hero-subtitle {
        margin-bottom: 40px;
        padding: 0 8px;
    }

    .billing-toggle {
        padding: 10px 16px;
        gap: 10px;
        max-width: calc(100vw - 32px);
    }

    .toggle-label {
        font-size: 0.95rem;
    }

    .pricing-section {
        padding: 40px 0 64px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .price {
        font-size: 3rem;
    }

    .pricing-card {
        padding: 40px 24px;
    }

    .faq-section {
        padding-bottom: 64px;
    }

    .faq-grid {
        max-width: 100%;
    }

    .faq-q-text {
        font-size: 1rem;
        line-height: 1.45;
    }

    .section-title {
        margin-bottom: 28px;
    }

    .final-push {
        padding: 48px 0 calc(80px + env(safe-area-inset-bottom, 0px));
    }

    .final-push h2 {
        font-size: 1.65rem;
        line-height: 1.35;
        margin-top: 40px;
        margin-bottom: 18px;
        padding: 0 16px;
    }

    .welcome-landing .btn-large {
        width: 100%;
        max-width: 360px;
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.95rem;
        letter-spacing: -0.03em;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .pricing-card {
        padding: 36px 20px;
        border-radius: 24px;
    }

    .popular::before {
        border-radius: 25px;
    }

    .welcome-landing .cta-btn {
        min-height: 48px;
        font-size: 1rem;
        border-radius: 16px;
    }

    .welcome-landing .btn-large {
        border-radius: 16px;
    }

    .index-landing-nav__inner {
        padding: 12px 14px;
    }

    .faq-question {
        padding: 18px 20px;
    }

    .faq-q-text {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .faq-answer {
        padding: 0 20px 18px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   INDEX.HTML: LANDING NAVBAR + AUTH MODAL
   (index-auth-page scoped)
═══════════════════════════════════════════════════════════════ */

.index-auth-page {
    background-color: #08030F;
    --index-cta-bg:   #7c3aed;
    --index-cta-hover: #6d28d9;
    --index-cta-glow: 0 8px 28px rgba(124, 58, 237, 0.42);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Sticky Navbar ── */
.index-landing-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(8, 3, 15, 0.70);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        0 1px 0 rgba(124, 58, 237, 0.14),
        0 8px 32px rgba(0, 0, 0, 0.40);
}

.index-landing-nav__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.index-landing-nav__brand {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: #f8fafc;
    text-decoration: none;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.index-landing-nav__brand-accent {
    color: #7c3aed;
}

.index-landing-nav__brand:hover {
    color: #f8fafc;
}

.index-landing-nav__brand:hover .index-landing-nav__brand-accent {
    color: #9333ea;
}

.index-landing-nav__cta {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #6d28d9 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.36);
}

.index-landing-nav button.index-landing-nav__cta {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #6d28d9 100%);
}

.index-landing-nav button.index-landing-nav__cta:hover {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 45%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(124, 58, 237, 0.50);
}

.index-landing-nav__cta:hover {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 45%, #6d28d9 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(124, 58, 237, 0.50);
}

.index-landing-nav__cta[hidden],
#indexNavUserWrap[hidden] {
    display: none !important;
}

.index-auth-page .welcome-landing .hero-section {
    padding-top: 48px;
}

/* ── Custom Alert Modal ── */
.index-custom-alert {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 350;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.index-custom-alert.is-open,
.index-custom-alert:not([hidden]) {
    display: flex;
}

.index-custom-alert__panel {
    width: 100%;
    max-width: 400px;
    padding: 28px 26px 24px;
    text-align: center;
    background: rgba(12, 5, 22, 0.92);
    border: 1px solid var(--glass-border, rgba(255,255,255,0.09));
    border-radius: 20px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(124, 58, 237, 0.14);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.index-custom-alert__title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 14px;
}

.index-custom-alert__message {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #e2e8f0;
    line-height: 1.6;
    margin: 0 0 22px;
}

.index-custom-alert__ok {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: #ffffff;
    transition: box-shadow 0.2s ease;
}

.index-custom-alert__ok:hover {
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.44);
}

/* ── Auth Modal Overlay ── */
.auth-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(0, 0, 0, 0.70);
    overflow: hidden;
}

.auth-modal-overlay.is-open {
    display: flex;
}

.auth-modal-panel {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    overflow: visible;
}

.auth-modal-shell {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: min(90vh, 720px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: rgba(12, 5, 22, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(124, 58, 237, 0.12);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.auth-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.auth-modal-body::-webkit-scrollbar {
    display: none;
}

.auth-oauth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-oauth-divider::before,
.auth-oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(148, 163, 184, 0.30);
}

/* Auth modal button styles */
.index-auth-page .login-box .auth-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 0;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.index-auth-page .auth-modal-overlay #loginBtn,
.index-auth-page .auth-modal-overlay #registerBtn,
.index-auth-page .auth-modal-overlay #continueWithCodeBtn,
.index-auth-page .auth-modal-overlay .auth-google-btn {
    background-color: var(--index-cta-bg);
    color: #ffffff;
    transform: none;
}

.index-auth-page .auth-modal-overlay #loginBtn:hover,
.index-auth-page .auth-modal-overlay #registerBtn:hover,
.index-auth-page .auth-modal-overlay #continueWithCodeBtn:hover,
.index-auth-page .auth-modal-overlay .auth-google-btn:hover {
    background-color: var(--index-cta-hover);
    color: #ffffff;
    box-shadow: var(--index-cta-glow);
    transform: none;
}

.index-auth-page .auth-modal-overlay #loginBtn:active,
.index-auth-page .auth-modal-overlay #registerBtn:active,
.index-auth-page .auth-modal-overlay #continueWithCodeBtn:active,
.index-auth-page .auth-modal-overlay .auth-google-btn:active {
    transform: none;
}

.index-auth-page .auth-modal-overlay #loginBtn:disabled,
.index-auth-page .auth-modal-overlay #registerBtn:disabled,
.index-auth-page .auth-modal-overlay #continueWithCodeBtn:disabled,
.index-auth-page .auth-modal-overlay .auth-google-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.index-auth-page .auth-modal-overlay #showActivationCodeBtn {
    margin-top: 16px;
}

.index-auth-page .auth-modal-overlay #goToWelcomeBtn {
    margin-top: 12px;
}

.index-auth-page .auth-modal-overlay #loginBox h1 {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #f8fafc;
    color: #f8fafc;
    text-shadow: none;
}

.index-auth-page .auth-modal-overlay #loginBox h1 .modal-brand-mind {
    color: #7c3aed;
    -webkit-text-fill-color: #7c3aed;
}

body.light-mode .index-auth-page .auth-modal-overlay #loginBox h1 {
    -webkit-text-fill-color: #0f172a;
    color: #0f172a;
}

body.light-mode .index-auth-page .auth-modal-overlay #loginBox h1 .modal-brand-mind {
    color: #7c3aed;
    -webkit-text-fill-color: #7c3aed;
}

.auth-google-btn__icon {
    flex-shrink: 0;
    display: block;
}

.index-auth-page .auth-modal-overlay .auth-legal-text {
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
    color: #9ca3af;
    margin-top: 15px;
    margin-bottom: 0;
    padding: 0 4px;
}

.index-auth-page .auth-modal-overlay .auth-legal-link {
    color: rgba(248, 250, 252, 0.75);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.index-auth-page .auth-modal-overlay .auth-legal-link:hover {
    color: #7c3aed;
    text-decoration: underline;
}

body.light-mode .index-auth-page .auth-modal-overlay .auth-legal-text {
    color: #64748b;
}

body.light-mode .index-auth-page .auth-modal-overlay .auth-legal-link {
    color: #475569;
}

body.light-mode .index-auth-page .auth-modal-overlay .auth-legal-link:hover {
    color: #7c3aed;
}

.auth-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    color: #94a3b8;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.auth-modal-close:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

.auth-modal-overlay .login-container {
    display: block;
    min-height: unset;
    background: transparent;
    padding: 0;
}

.auth-modal-overlay .login-box {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    max-width: none;
    padding: 44px 32px 32px 40px;
}

/* ── Logged-in Nav State ── */
.index-nav-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 0;
}

.index-nav-dashboard-btn {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 44px;
    padding: 9px 18px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: #ffffff !important;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.36);
}

.index-nav-dashboard-btn:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(124, 58, 237, 0.50);
}

.index-nav-avatar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(124, 58, 237, 0.38);
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.18);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.index-nav-avatar-btn:hover {
    border-color: rgba(124, 58, 237, 0.65);
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.36);
}

.index-nav-avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: none;
}

.index-nav-avatar-btn--placeholder {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.index-nav-avatar-btn--placeholder:hover {
    border: none;
    box-shadow: none;
}

.default-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-color, #7c3aed);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
    border: none;
    font-family: 'Inter', sans-serif;
    line-height: 1;
    user-select: none;
}

.index-nav-avatar-initial:not(.default-avatar) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: 0;
    background: #7c3aed;
    user-select: none;
}

/* Avatar dropdown */
.index-nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    padding: 8px;
    background: rgba(12, 5, 22, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.40);
    z-index: 250;
}

.index-nav-dropdown__meta {
    pointer-events: none;
    padding: 8px 12px 6px;
}

.index-nav-dropdown__username {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.35;
    word-break: break-word;
}

.index-nav-dropdown__plan {
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.04em;
}

.index-nav-dropdown__divider {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

.index-nav-dropdown__item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.index-nav-dropdown__item:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

/* ── Footer Modals (Support & About) ── */
.footer-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 310;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(0, 0, 0, 0.70);
    backdrop-filter: blur(6px);
}

.footer-modal-overlay.is-open {
    display: flex;
}

.footer-modal-panel {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.footer-modal-shell {
    position: relative;
    width: 100%;
    padding: 28px 24px 24px;
    background: rgba(12, 5, 22, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(124, 58, 237, 0.12);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.footer-modal-shell--about {
    padding-top: 20px;
    max-height: min(90vh, 720px);
    overflow-y: auto;
}

.footer-modal-panel--about {
    max-width: 520px;
}

.footer-modal-about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.footer-modal-about-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.22);
}

.footer-modal-about-brand {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main, #f8fafc);
    line-height: 1.2;
}

.footer-modal-about-brand-accent {
    color: #7c3aed;
}

.footer-modal-about-eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
}

.footer-modal-about-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-modal-about-lead {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-main, #f8fafc);
    text-align: center;
}

.footer-modal-about-pill {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
}

.footer-modal-about-pill-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7c3aed;
}

.footer-modal-about-pill p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted, #94a3b8);
}

.footer-modal-about-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-modal-about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main, #f8fafc);
}

.footer-modal-about-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.10);
    color: #7c3aed;
}

.footer-modal-about-bridge {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-muted, #94a3b8);
    text-align: center;
}

.footer-modal-about-tagline {
    margin: 0;
    padding: 12px 16px;
    border-left: 3px solid #7c3aed;
    background: rgba(124, 58, 237, 0.06);
    border-radius: 0 10px 10px 0;
}

.footer-modal-about-tagline p {
    margin: 0;
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-main, #f8fafc);
}

body.light-mode .footer-modal-about-icon {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.14);
}

body.light-mode .footer-modal-about-tagline {
    background: rgba(124, 58, 237, 0.04);
}

.footer-modal-title {
    margin: 0 0 20px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main, #f8fafc);
    text-align: center;
}

.footer-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-modal-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
}

.footer-modal-required {
    margin-left: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(124, 58, 237, 0.75);
}

.footer-modal-field.error-state .footer-modal-required {
    color: #f87171;
}

.footer-modal-field.error-state input,
.footer-modal-field.error-state textarea {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.footer-modal-field.error-state input:focus,
.footer-modal-field.error-state textarea:focus {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.20);
}

.footer-modal-field input,
.footer-modal-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main, #f8fafc);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
    min-height: 44px;
}

.footer-modal-field input:focus,
.footer-modal-field textarea:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.footer-modal-field textarea {
    min-height: 140px;
}

.footer-modal-hint {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted, #94a3b8);
    text-align: right;
}

.footer-modal-hint--over {
    color: #f87171;
    font-weight: 600;
}

.footer-modal-error {
    margin: 0;
    font-size: 0.85rem;
    color: #f87171;
    line-height: 1.4;
}

.footer-modal-error:not([hidden]) {
    display: block;
}

.footer-modal-submit {
    width: 100%;
    margin-top: 4px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: #ffffff;
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
}

.footer-modal-submit:hover:not(:disabled) {
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.44);
}

.footer-modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

body.light-mode .footer-modal-shell {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ── Landing toast ── */
.landing-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    z-index: 400;
    max-width: min(90vw, 420px);
    padding: 14px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ecfdf5;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border: 1px solid rgba(16, 185, 129, 0.50);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.landing-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.landing-toast:not([hidden]) {
    display: block;
}

/* ── Auth modal mobile alignment ── */
@media (max-width: 768px) {
    .auth-modal-overlay .login-container {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .auth-modal-overlay .login-box {
        margin: 0;
        padding: 44px 24px 32px 24px;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .auth-modal-overlay .login-box input[type="text"],
    .auth-modal-overlay .login-box input[type="email"],
    .auth-modal-overlay .login-box .password-wrapper,
    .auth-modal-overlay .login-box button,
    .auth-modal-overlay .auth-oauth-divider,
    .auth-modal-overlay .auth-legal-text,
    .auth-modal-overlay .switch-form {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
}
