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

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ── Age Verification Gate ──────────────────────────────────── */
.age-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(155deg, rgba(26,10,60,0.92) 0%, rgba(76,29,149,0.92) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.age-gate-card {
    max-width: 420px;
    width: 100%;
    padding: 40px 36px;
    border-radius: 28px;
    text-align: center;
}

.age-gate-icon {
    font-size: 42px;
    margin-bottom: 16px;
}

.age-gate-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.age-gate-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 28px;
}

.age-gate-inputs {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.age-gate-select {
    flex: 1;
    padding: 12px 10px;
    border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}
.age-gate-select option {
    background: #2d1b69;
    color: #fff;
}

.age-gate-error {
    font-size: 13px;
    color: #fca5a5;
    margin: 8px 0 0;
    text-align: left;
}

.age-gate-btn {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--ltw-p400), var(--ltw-pink));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(167,139,250,0.4);
    transition: transform 0.2s, opacity 0.2s;
}
.age-gate-btn:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

/* ─── Card ──────────────────────────────────────────────────── */
.page {
    background: #ffffff;
    border-radius: 28px;
    padding: 48px 44px 44px;
    max-width: 560px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.05),
        0 24px 64px rgba(79,70,229,0.25);
    animation: fadeSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-8px); }
    40%       { transform: translateX(8px); }
    60%       { transform: translateX(-5px); }
    80%       { transform: translateX(5px); }
}

/* ─── Progress Steps ────────────────────────────────────────── */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.step.active .step-dot {
    border-color: #4f46e5;
    background: #4f46e5;
    color: white;
    box-shadow: 0 0 0 4px rgba(79,70,229,0.15);
}

.step.done .step-dot {
    border-color: #10b981;
    background: #10b981;
    color: white;
}

.step span {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.step.active span,
.step.done span {
    color: #6b7280;
}

.step-line {
    width: 64px;
    height: 2px;
    background: #e5e7eb;
    margin: 0 8px;
    margin-bottom: 22px;
    border-radius: 2px;
    transition: background 0.4s ease;
}

.step-line.filled {
    background: linear-gradient(to right, #10b981, #4f46e5);
}

/* ─── Page Icon ─────────────────────────────────────────────── */
.page-icon {
    font-size: 42px;
    margin-bottom: 16px;
    line-height: 1;
}

/* ─── Headings & Text ───────────────────────────────────────── */
h1 {
    font-size: 30px;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.highlight {
    background: linear-gradient(135deg, #4f46e5, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.label-small {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-align: left;
}

/* ─── Input ─────────────────────────────────────────────────── */
.input-wrapper {
    position: relative;
    margin-bottom: 6px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    opacity: 0.5;
}

input[type="text"] {
    width: 100%;
    padding: 14px 18px 14px 44px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    color: #111827;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

input[type="text"]::placeholder {
    color: #9ca3af;
}

input[type="text"]:focus {
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(79,70,229,0.1);
}

/* ─── Suggestion Chips ──────────────────────────────────────── */
.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 16px 0 28px;
}

.suggestions button {
    background: #f5f3ff;
    border: 1.5px solid #ddd6fe;
    color: #5b21b6;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s ease;
}

.suggestions button:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.next-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 15px 36px;
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(79,70,229,0.35);
    letter-spacing: 0.01em;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79,70,229,0.45);
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

.next-btn:active {
    transform: translateY(0);
}

.btn-arrow {
    font-style: normal;
    font-size: 16px;
}

.back-btn {
    background: transparent;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 13px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    border-color: #9ca3af;
    color: #374151;
    background: #f9fafb;
}

.nav-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
}

/* ─── Slider ────────────────────────────────────────────────── */
.slider-container {
    margin: 24px 0;
}

.time-display {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #4f46e5, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    min-height: 64px;
    line-height: 1.1;
    transition: all 0.15s ease;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 6px;
    background: linear-gradient(to right, #4f46e5 0%, #e5e7eb 0%);
    outline: none;
    cursor: pointer;
    transition: background 0.1s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: white;
    border: 3px solid #4f46e5;
    cursor: grab;
    box-shadow: 0 2px 12px rgba(79,70,229,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.25);
    box-shadow: 0 4px 18px rgba(79,70,229,0.55);
}

.slider::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: white;
    border: 3px solid #4f46e5;
    cursor: grab;
    box-shadow: 0 2px 12px rgba(79,70,229,0.4);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
}

.estimate-note {
    color: #9ca3af;
    font-size: 13px;
    margin: 4px 0 24px;
    background: #f9fafb;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid #f3f4f6;
    display: inline-block;
}

/* ─── Page 3 — wider card ───────────────────────────────────── */
.page3 {
    max-width: 720px;
    padding: 40px 40px 36px;
}

/* ─── Loading State ─────────────────────────────────────────── */
#loadingState {
    padding: 32px 0 24px;
}

#loadingState .octo-loader-stage {
    margin: 0 auto 12px;
}

.loading-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid #ede9fe;
    border-top-color: #4f46e5;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 0.8s linear infinite;
}

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

.loading-text {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.loading-sub {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 0;
    animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* ─── Result State ──────────────────────────────────────────── */
#resultState {
    text-align: left;
}

.match-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.result-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.channel-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.video-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.channel-name {
    font-size: 13px;
    font-weight: 600;
    color: #4f46e5;
}

.meta-pill {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 50px;
}

.meta-pill.views {
    background: #fef3c7;
    color: #92400e;
}

/* ─── Video Embed ───────────────────────────────────────────── */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ─── Summary Panel ──────────────────────────────────────────── */
.summary-panel {
    margin-bottom: 24px;
    margin-top: 8px;
    animation: summarySlideIn 0.25s ease;
    width: 100%;
    text-align: center;
}

@keyframes summarySlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.summary-loading-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6d28d9;
    font-size: 14px;
    font-weight: 500;
}

.summary-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid #ddd6fe;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

.summary-body {
    font-size: 18px;
    line-height: 1.85;
    color: #1e1b4b;
    margin: 0 auto;
    text-align: left;
    max-width: 100%;
    font-family: 'Georgia', 'Cambria', 'Times New Roman', serif;
    font-weight: 400;
    display: block;
}

/* Individual text line */
.summary-line {
    display: block;
    margin-bottom: 0.5em;
}

/* Bullet item — real dot + indented text */
.summary-bullet {
    display: flex;
    align-items: baseline;
    gap: 0.55em;
    padding-left: 1.6em;
    margin-bottom: 0.25em;
}

.bullet-dot {
    flex-shrink: 0;
    font-size: 0.45em;
    color: #1e1b4b;
    line-height: 2.8;
}

.summary-header {
    display: block;
    text-align: center;
    font-size: 1.0em;
    font-weight: 700;
    font-family: inherit;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.55em;
    margin-bottom: 0.15em;
    letter-spacing: 0.01em;
}

/* Top-to-bottom mask reveal during typing animation */
.summary-body.typing {
    -webkit-mask-image: linear-gradient(
        to bottom,
        black var(--reveal-pct, 4%),
        transparent calc(var(--reveal-pct, 4%) + 6%)
    );
    mask-image: linear-gradient(
        to bottom,
        black var(--reveal-pct, 4%),
        transparent calc(var(--reveal-pct, 4%) + 6%)
    );
}

.summary-hint {
    margin: 12px 0 0;
    font-size: 12px;
    color: #9f7aea;
    font-style: italic;
    text-align: center;
    animation: summaryPulse 2s ease-in-out infinite;
}

@keyframes summaryPulse {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

/* ─── Result Actions ────────────────────────────────────────── */
.result-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.try-btn {
    background: #f5f3ff;
    border: 1.5px solid #ddd6fe;
    color: #5b21b6;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.try-btn:hover {
    background: #ede9fe;
    border-color: #c4b5fd;
    transform: translateY(-1px);
}

.try-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.open-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ff0000;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255,0,0,0.25);
    margin-left: auto;
}

.open-btn:hover {
    background: #cc0000;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255,0,0,0.35);
}

/* ─── Quiz CTA button (Page 3) ──────────────────────────────── */
.quiz-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}

.quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(99,102,241,0.45);
}

/* ─── Error State ───────────────────────────────────────────── */
#errorState {
    padding: 16px 0;
}

#errorState h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

/* ════════════════════════════════════════════════════════════════
   PAGE 4 — QUIZ
════════════════════════════════════════════════════════════════ */

/* ─── Quiz Loading ───────────────────────────────────────────── */
#quizLoading {
    padding: 32px 0 24px;
}

/* ─── Quiz Question ──────────────────────────────────────────── */
#quizQuestion {
    text-align: left;
}

.quiz-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.quiz-counter {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.quiz-score-live {
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
    background: #d1fae5;
    padding: 3px 10px;
    border-radius: 50px;
}

.quiz-progress-track {
    width: 100%;
    height: 5px;
    background: #e5e7eb;
    border-radius: 10px;
    margin-bottom: 24px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(to right, #4f46e5, #a855f7);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Quiz question row (mascot + question) ─────────────────── */
.quiz-question-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.quiz-mascot {
    width: 146px;
    height: 146px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
}

.question-text {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.5;
    margin-bottom: 0;
    flex: 1;
}

/* ─── Options ────────────────────────────────────────────────── */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s ease;
    animation: optionIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.option-btn:nth-child(1) { animation-delay: 0.05s; }
.option-btn:nth-child(2) { animation-delay: 0.10s; }
.option-btn:nth-child(3) { animation-delay: 0.15s; }
.option-btn:nth-child(4) { animation-delay: 0.20s; }

@keyframes optionIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

.option-btn:hover:not(:disabled) {
    border-color: #4f46e5;
    background: #f5f3ff;
    color: #4f46e5;
    transform: translateX(3px);
}

.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.18s ease;
}

.option-btn:hover:not(:disabled) .option-letter {
    background: #4f46e5;
    color: white;
}

/* Correct answer */
.option-btn.correct {
    border-color: #10b981;
    background: #ecfdf5;
    color: #065f46;
}
.option-btn.correct .option-letter {
    background: #10b981;
    color: white;
}

/* Wrong answer */
.option-btn.wrong {
    border-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}
.option-btn.wrong .option-letter {
    background: #ef4444;
    color: white;
}

.option-btn:disabled {
    cursor: default;
    transform: none;
}

/* ─── Explanation Box ────────────────────────────────────────── */
.explanation-box {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
    animation: fadeSlideUp 0.3s ease both;
}

.explanation-icon {
    font-size: 18px;
    line-height: 1;
    margin-top: 1px;
}

/* ─── Code Challenge Badge ───────────────────────────────────── */
.quiz-code-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* ─── Quiz Code Blocks ───────────────────────────────────────── */
.quiz-code-block {
    background: #1e1e2e;
    color: #cdd6f4;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 10px 0 6px;
    font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    overflow-x: auto;
    text-align: left;
    white-space: pre;
}

.quiz-inline-code {
    background: #1e1e2e;
    color: #cdd6f4;
    font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 0.88em;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ─── Quiz Nav ───────────────────────────────────────────────── */
.quiz-nav {
    display: flex;
    justify-content: flex-end;
    animation: fadeSlideUp 0.3s ease both;
}

/* ─── Results ────────────────────────────────────────────────── */
#quizResults {
    text-align: center;
}

.score-ring-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
}

.score-ring {
    width: 140px;
    height: 140px;
    transform: rotate(-90deg);
}

.score-ring-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 10;
}

.score-ring-fill {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.score-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-size: 40px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.score-denom {
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
}

.results-heading {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.results-sub {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 24px;
}

/* ─── Answers Review ─────────────────────────────────────────── */
.answers-review {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.review-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.review-item.correct-item {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.review-item.wrong-item {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.review-icon {
    font-size: 16px;
    line-height: 1.4;
    flex-shrink: 0;
}

.review-text strong {
    display: block;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.review-text span {
    color: #6b7280;
    font-size: 13px;
}

/* ─── Results Actions ────────────────────────────────────────── */
.results-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Quiz Error ─────────────────────────────────────────────── */
#quizError {
    padding: 16px 0;
}

#quizError h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

/* ════════════════════════════════════════════════════════════════
   PAGE 1 — LANDING PAGE REDESIGN
════════════════════════════════════════════════════════════════ */

/* Full-screen white overlay — overrides .page defaults */
#page1 {
    position: fixed;
    inset: 0;
    max-width: none;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    text-align: left;
    overflow-y: auto;
    z-index: 100;
    animation: p1FadeIn 0.5s ease both;
}

@keyframes p1FadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── Header ─────────────────────────────────────────────────── */
.p1-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 18px 36px;
    z-index: 200;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.p1-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.p1-nav-btn {
    background: transparent;
    border: 1.5px solid #d1d5db;
    color: #374151;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.p1-nav-btn:hover {
    border-color: #7c3aed;
    color: #7c3aed;
}

.p1-signin-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.35);
}

.p1-signin-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* ─── Onboarding Toggle ──────────────────────────────────────── */
.p1-onboarding-toggle {
    background: transparent;
    border: 1.5px dashed #d1d5db;
    color: #9ca3af;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.p1-onboarding-toggle:hover {
    border-color: #6366f1;
    color: #6366f1;
}
.p1-onboarding-toggle--on {
    border-style: solid;
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99,102,241,0.07);
}

/* ─── Background Bubbles ─────────────────────────────────────── */
.p1-bubbles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.p1-bubble-wrap {
    position: absolute;
    bottom: -150px;
    left: var(--left, 50%);
    animation: p1BubbleRise var(--duration, 20s) var(--delay, 0s) ease-in-out infinite;
}

@keyframes p1BubbleRise {
    0%   { transform: translateX(0)                  translateY(0);       opacity: 0;    }
    8%   { opacity: 0.85;                                                                 }
    45%  { transform: translateX(var(--drift, 30px)) translateY(-55vh);                  }
    92%  { opacity: 0.85;                                                                 }
    100% { transform: translateX(0)                  translateY(-115vh);  opacity: 0;    }
}

.p1-bubble {
    width: var(--size, 80px);
    height: var(--size, 80px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    pointer-events: all;
    background: radial-gradient(circle at 35% 35%,
        rgba(149, 128, 255, 0.72),
        rgba(102, 51, 204, 0.52));
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 0 24px rgba(102, 126, 234, 0.3),
        inset 0 0 16px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    user-select: none;
    text-align: center;
    padding: 8px;
    line-height: 1.2;
}

.p1-bubble:hover {
    transform: scale(1.12);
    box-shadow:
        0 0 36px rgba(102, 126, 234, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

/* ─── Main Content Area ──────────────────────────────────────── */
.p1-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    z-index: 10;
    min-height: 100vh;
}

/* ─── Card (borderless) ──────────────────────────────────────── */
.p1-card {
    background: transparent;
    border-radius: 0;
    padding: 40px 50px;
    max-width: 580px;
    width: 100%;
    box-shadow: none;
    animation: p1CardFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
    text-align: center;
}

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

/* ─── Logo ───────────────────────────────────────────────────── */
.p1-logo {
    display: block;
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 20px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
}

/* ─── Brand Heading ──────────────────────────────────────────── */
.p1-brand {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Search Input ───────────────────────────────────────────── */
.p1-input {
    width: 100%;
    padding: 15px 20px !important;
    border: 2px solid #eeeeee !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-family: inherit;
    color: #111827;
    background: #ffffff !important;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 16px;
    display: block;
    box-sizing: border-box;
}

.p1-input::placeholder {
    color: #9ca3af;
}

.p1-input:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1) !important;
}

/* ─── Next Button ────────────────────────────────────────────── */
.p1-next-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 18px rgba(102, 126, 234, 0.38);
    letter-spacing: 0.01em;
}

.p1-next-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.52);
}

.p1-next-btn:active {
    transform: scale(0.99);
}

/* ─── Bubble click feedback ──────────────────────────────────── */
.p1-bubble:active {
    transform: scale(0.93);
}

/* ════════════════════════════════════════════════════════════════
   ABOUT US MODAL
════════════════════════════════════════════════════════════════ */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalBgIn 0.25s ease both;
}

@keyframes modalBgIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 44px 40px;
    max-width: 560px;
    width: 100%;
    position: relative;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08), 0 32px 80px rgba(0,0,0,0.18);
    animation: modalBoxIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalBoxIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.modal-icon {
    font-size: 40px;
    margin-bottom: 14px;
    line-height: 1;
}

.modal-title {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}

.modal-intro {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: 28px;
}

.modal-intro em {
    color: #7c3aed;
    font-style: normal;
    font-weight: 600;
}

.modal-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.modal-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.modal-feature-icon {
    font-size: 22px;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.modal-feature strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.modal-feature p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.modal-cta {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 15px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.38);
}

.modal-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 26px rgba(102, 126, 234, 0.52);
}

/* ════════════════════════════════════════════════════════════════
   PAGE 2 — SHARED FRAME (3 designs: cards · journey · slider)
════════════════════════════════════════════════════════════════ */

#page2 {
    position: fixed !important;
    inset: 0 !important;
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(155deg, #6366f1 0%, #7c3aed 35%, #6d28d9 65%, #4c1d95 100%) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    text-align: left !important;
    overflow-y: auto !important;
    z-index: 100 !important;
    animation: p1FadeIn 0.5s ease both !important;
}

.p2-hero-waves {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}

.p2-content {
    position: relative; min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 14px; padding: 80px 20px 60px; z-index: 10;
    animation: p2DesignIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes p2DesignIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.p2-header { text-align: center; margin-bottom: 0; max-width: 680px; }
.p2-topic-line { display: none !important; }
.p2-title {
    font-size: 56px; font-weight: 900; color: #fff;
    letter-spacing: -1.5px; margin: 0; line-height: 1.02;
    text-shadow: 0 4px 24px rgba(45,18,105,0.4);
}
.p2-subtitle {
    font-size: 18px; color: rgba(255,255,255,0.95);
    margin: 16px auto 0; max-width: 600px; line-height: 1.45;
    font-weight: 500;
    text-shadow: 0 1px 12px rgba(45,18,105,0.3);
    animation: fadeIn 0.5s ease both;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Tagline area (skeleton OR real text) */
.p2-tagline-wrap { width: 100%; max-width: 600px; margin: 16px auto 0; min-height: 52px; }

.p2-tagline-skeleton {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}

.p2-skel-line {
    height: 18px; border-radius: 8px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.18),
        rgba(255,255,255,0.42),
        rgba(255,255,255,0.18));
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
    width: 100%;
}
.p2-skel-line-short { width: 65%; }
.p2-skel-line-mid   { width: 80%; }
.p2-skel-line-tiny  { height: 10px; width: 38%; }

/* Loading microcopy with bouncing dots — hidden, the skeleton on cards is enough signal */
.p2-loading-status {
    display: none !important;
}
.p2-loading-status-OLD {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin-top: 14px;
    font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,0.78);
    letter-spacing: 0.05em;
}
.p2-loading-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: #fff;
    opacity: 0.45;
    animation: p2DotPulse 1.2s ease-in-out infinite;
}
.p2-loading-dot:nth-child(2) { animation-delay: 0.15s; }
.p2-loading-dot:nth-child(3) { animation-delay: 0.3s; }
.p2-loading-text {
    margin-left: 8px;
    transition: opacity 0.24s ease;
}
@keyframes p2DotPulse {
    0%, 60%, 100% { opacity: 0.35; transform: scale(0.9); }
    30%           { opacity: 1;    transform: scale(1.2); }
}

/* Disabled "Ready to Learn" button */
.p2-find-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(45,18,105,0.18);
}

/* Express card skeleton */
.p2a-express-skeleton {
    display: flex;
    align-items: center; gap: 22px;
    width: 100%; max-width: 540px;
    padding: 26px 30px;
    background: rgba(255,255,255,0.32);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 24px;
    box-shadow: inset 0 0 22px rgba(255,255,255,0.25), 0 8px 32px rgba(0,0,0,0.14);
}
.p2a-skel-icon-block {
    width: 66px; height: 66px; flex-shrink: 0;
    border-radius: 18px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.1),
        rgba(255,255,255,0.22),
        rgba(255,255,255,0.1));
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.p2a-skel-body-block {
    flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.p2a-skel-body-block .p2-skel-line {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.1),
        rgba(255,255,255,0.22),
        rgba(255,255,255,0.1));
    background-size: 200% 100%;
}

/* Divider between Express and the grid */
.p2-divider {
    display: flex; align-items: center; gap: 12px;
    width: 100%; max-width: 540px;
    margin: 0;
}
.p2-divider-line { flex: 1; height: 1px; background: rgba(255,255,255,0.32); }
.p2-divider-text {
    font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.9);
    letter-spacing: 0.16em; text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 8px rgba(45,18,105,0.3);
}

/* ─── Resume suggestion banner (top-center floating card) ─────── */
.p2-sug-card {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
    z-index: 200;
    width: calc(100% - 32px); max-width: 580px;
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 22px;
    padding: 14px 18px 14px 16px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.5) inset,
        0 24px 60px rgba(45,18,105,0.5);
    animation: p2SugIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes p2SugIn {
    from { opacity: 0; transform: translate(-50%, -40px) scale(0.94); }
    to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.p2-sug-icon-wrap {
    width: 46px; height: 46px;
    background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 100%);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(124,58,237,0.3), 0 0 0 1px rgba(255,255,255,0.5) inset;
}
.p2-sug-icon { font-size: 22px; line-height: 1; }

.p2-sug-info { flex: 1; min-width: 0; }

.p2-sug-eyebrow {
    font-size: 9px; font-weight: 800; color: #7c3aed;
    letter-spacing: 0.16em; text-transform: uppercase;
    line-height: 1;
}

.p2-sug-topic-name {
    font-size: 16px; font-weight: 800; color: #3b1a78;
    margin-top: 4px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    letter-spacing: -0.2px;
    line-height: 1.15;
}

.p2-sug-progress-row {
    display: flex; align-items: center; gap: 10px;
    margin-top: 8px;
}

.p2-sug-progress-bar {
    flex: 1; min-width: 50px;
    height: 5px; border-radius: 999px;
    background: #ede9fe;
    overflow: hidden;
}

.p2-sug-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(to right, #7c3aed, #5b21b6);
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 8px rgba(124,58,237,0.4);
}

.p2-sug-meta {
    font-size: 11px; font-weight: 600; color: #6b7280;
    white-space: nowrap;
    letter-spacing: -0.1px;
}

.p2-sug-cta {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: #fff; border: none;
    padding: 11px 18px; border-radius: 999px;
    font-size: 13px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    box-shadow: 0 6px 22px rgba(124,58,237,0.45);
    transition: all 0.22s ease;
    flex-shrink: 0;
    letter-spacing: -0.1px;
}
.p2-sug-cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 28px rgba(124,58,237,0.6);
}
.p2-sug-cta-arrow {
    font-size: 14px;
    transition: transform 0.22s;
}
.p2-sug-cta:hover .p2-sug-cta-arrow { transform: translateX(3px); }

.p2-sug-dismiss {
    position: absolute; top: 6px; right: 6px;
    background: transparent; border: none;
    color: #c4b5fd; font-size: 11px;
    width: 24px; height: 24px; border-radius: 50%;
    cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.18s ease;
}
.p2-sug-dismiss:hover { background: #f3f4f6; color: #5b21b6; }

/* Shared hint */
.p2-hint {
    font-size: 13px; color: rgba(255,255,255,0.92);
    margin: 0; text-align: center; min-height: 18px;
    font-weight: 600;
    text-shadow: 0 1px 8px rgba(45,18,105,0.3);
}

/* Inline nav — two floating glass pills, no container background */
.p2-nav {
    display: flex; gap: 12px; align-items: center;
    width: 100%; max-width: 540px;
    margin-top: 8px;
}
.p2-find-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    flex: 1;
    background: rgba(255,255,255,0.18) !important;
    backdrop-filter: blur(30px) saturate(180%) brightness(130%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(130%) !important;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    padding: 16px 36px; border-radius: 999px;
    font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.25), 0 4px 20px rgba(0,0,0,0.15);
    letter-spacing: -0.2px; position: relative; overflow: hidden;
}
.p2-find-btn::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 60%);
    pointer-events: none; z-index: 1;
}
.p2-find-btn > * { position: relative; z-index: 2; }
.p2-find-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255,255,255,0.26) !important;
    box-shadow: inset 0 0 24px rgba(255,255,255,0.3), 0 8px 28px rgba(0,0,0,0.2);
}
.p2-find-btn:active { transform: scale(0.99); }
.p2-find-btn:disabled {
    opacity: 0.35; cursor: not-allowed; pointer-events: none;
}

/* Back button — lighter ghost pill */
#page2 .back-btn {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(30px) saturate(180%) brightness(130%);
    -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(130%);
    color: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.28);
    padding: 16px 24px; border-radius: 999px;
    font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: all 0.22s ease; flex-shrink: 0;
    box-shadow: inset 0 0 16px rgba(255,255,255,0.12), 0 4px 14px rgba(0,0,0,0.12);
}
#page2 .back-btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.45);
    color: #fff;
    transform: translateY(-1px);
}

/* Shared custom input row */
.p2-custom-row {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.94);
    border: 1.5px solid rgba(124,58,237,0.28);
    border-radius: 14px; padding: 12px 22px;
    width: 100%; max-width: 420px;
    animation: fadeSlideUp 0.22s ease both;
    box-shadow: 0 6px 22px rgba(45,18,105,0.25);
}
.p2-custom-input {
    border: none; background: transparent; font-size: 22px; font-weight: 700;
    color: #3b1a78; width: 110px; outline: none; font-family: inherit;
}
.p2-custom-input::placeholder { color: #c4b5fd; }
.p2-custom-unit { font-size: 13px; color: #8b5cf6; font-weight: 600; }

/* ════════════════════════════════════════════════════════════════
   DESIGN A — SMART CARDS (modular cards on dark gradient)
════════════════════════════════════════════════════════════════ */

.p2a-express-card {
    width: 100%; max-width: 540px;
    display: flex; align-items: center; gap: 22px;
    padding: 26px 30px;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(30px) saturate(180%) brightness(120%);
    -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(120%);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 24px; cursor: pointer; text-align: left;
    box-shadow: inset 0 0 24px rgba(255,255,255,0.28), 0 10px 36px rgba(0,0,0,0.18);
    transition: all 0.22s ease; font-family: inherit; position: relative; overflow: hidden;
}
.p2a-express-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background:
        radial-gradient(circle at 22% 18%, rgba(255,255,255,0.32), transparent 55%),
        radial-gradient(circle at 100% 110%, rgba(251,191,36,0.18), transparent 60%);
    pointer-events: none;
}
.p2a-express-card:hover {
    transform: translateY(-3px) scale(1.01);
    background: rgba(255,255,255,0.48);
    box-shadow: inset 0 0 30px rgba(255,255,255,0.34), 0 18px 52px rgba(0,0,0,0.22);
}
.p2a-express-card.selected {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.4), 0 18px 50px rgba(245,158,11,0.5);
}
.p2a-express-card.selected .p2a-express-badge { background: rgba(255,255,255,0.28); color: #fff; }
.p2a-express-card.selected .p2a-express-time,
.p2a-express-card.selected .p2a-express-desc,
.p2a-express-card.selected .p2a-express-arrow,
.p2a-express-card.selected .p2a-express-icon { color: #fff; }
.p2a-express-card.selected .p2a-express-icon { background: rgba(255,255,255,0.25); border-color: transparent; }
.p2a-express-icon {
    font-size: 32px; flex-shrink: 0;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    width: 66px; height: 66px;
    border-radius: 18px; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: inset 0 0 18px rgba(255,255,255,0.3), 0 4px 14px rgba(245,158,11,0.4);
    transition: all 0.22s ease;
    color: #fff;
    text-shadow: 0 2px 8px rgba(180,83,9,0.5);
}
.p2a-express-body { flex: 1; min-width: 0; }
.p2a-express-badge {
    display: inline-block; font-size: 10px; font-weight: 800; color: #78350f;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    padding: 3px 10px; border-radius: 999px;
    margin-bottom: 6px; letter-spacing: 0.12em;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 2px 8px rgba(245,158,11,0.25);
    transition: all 0.22s ease;
}
.p2a-express-time { font-size: 30px; font-weight: 900; color: #fff; line-height: 1.05; letter-spacing: -0.8px; transition: color 0.22s; text-shadow: 0 2px 12px rgba(45,18,105,0.35); }
.p2a-express-desc {
    font-size: 14px; color: rgba(255,255,255,0.92); margin-top: 6px; line-height: 1.45;
    font-weight: 500; transition: color 0.22s;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p2a-express-arrow { font-size: 24px; color: rgba(255,255,255,0.85); margin-left: auto; transition: all 0.22s; }
.p2a-express-card:hover .p2a-express-arrow { transform: translateX(4px); color: #fff; }

/* Loading skeleton */
.p2a-loading {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
    width: 100%; max-width: 540px;
}
.p2a-skeleton {
    height: 156px; border-radius: 22px;
    background: linear-gradient(90deg, rgba(255,255,255,0.10), rgba(255,255,255,0.22), rgba(255,255,255,0.10));
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
}
@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Preset cards */
.p2a-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
    width: 100%; max-width: 540px;
}
.p2a-preset {
    padding: 22px 20px 20px;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(30px) saturate(180%) brightness(120%);
    -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(120%);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 22px; cursor: pointer;
    text-align: left; transition: all 0.22s ease;
    box-shadow: inset 0 0 24px rgba(255,255,255,0.28), 0 8px 28px rgba(0,0,0,0.16);
    font-family: inherit; position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 0;
    min-height: 156px;
}
.p2a-preset::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,0.32), transparent 55%),
        radial-gradient(circle at 100% 110%, rgba(196,181,253,0.22), transparent 60%);
    pointer-events: none;
}
.p2a-preset:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255,255,255,0.48);
    box-shadow: inset 0 0 30px rgba(255,255,255,0.34), 0 14px 40px rgba(0,0,0,0.2);
}
.p2a-preset.selected {
    background: linear-gradient(135deg, rgba(139,92,246,0.92), rgba(109,40,217,0.95));
    border-color: rgba(255,255,255,0.55);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.35), 0 14px 40px rgba(124,58,237,0.65);
}
.p2a-preset-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.32);
    position: relative;
}
.p2a-preset-time {
    font-size: 28px; font-weight: 900; color: #fff;
    letter-spacing: -0.8px; line-height: 1;
    text-shadow: 0 2px 12px rgba(45,18,105,0.35);
    transition: color 0.22s;
}
.p2a-preset-sessions {
    font-size: 10px; font-weight: 800; color: #fff;
    background: rgba(255,255,255,0.28);
    padding: 4px 10px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.42);
    letter-spacing: 0.04em;
    text-shadow: 0 1px 4px rgba(45,18,105,0.3);
    transition: all 0.22s;
    flex-shrink: 0;
}
.p2a-preset-label {
    display: inline-block;
    font-size: 10px; color: #3b1a78; font-weight: 800;
    background: linear-gradient(135deg, #ede9fe, #c4b5fd);
    padding: 3px 10px; border-radius: 999px;
    letter-spacing: 0.14em; margin: 0 0 8px; text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 2px 8px rgba(124,58,237,0.2);
    width: fit-content;
    transition: all 0.22s;
}
.p2a-preset-outcome {
    font-size: 13px; color: rgba(255,255,255,0.92); line-height: 1.5;
    font-weight: 500; transition: color 0.22s;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p2a-preset.selected .p2a-preset-head { border-bottom-color: rgba(255,255,255,0.28); }
.p2a-preset.selected .p2a-preset-time { color: #fff; }
.p2a-preset.selected .p2a-preset-sessions { background: rgba(255,255,255,0.28); color: #fff; border-color: rgba(255,255,255,0.4); }
.p2a-preset.selected .p2a-preset-label {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #78350f;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.p2a-preset.selected .p2a-preset-outcome { color: rgba(255,255,255,0.96); }

.p2a-custom-toggle {
    background: rgba(255,255,255,0.12);
    border: 1.5px dashed rgba(255,255,255,0.45);
    color: #fff; font-weight: 600; font-size: 13px;
    padding: 11px 24px; border-radius: 999px; cursor: pointer; font-family: inherit;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: all 0.2s ease;
}
.p2a-custom-toggle:hover { background: rgba(255,255,255,0.22); border-style: solid; }
.p2a-custom-toggle.selected {
    background: #fff; color: #5b21b6; border-color: transparent; border-style: solid;
}

/* ════════════════════════════════════════════════════════════════
   DURATION CONFLICT MODAL (matches Page 1 + Page 2 aesthetic)
════════════════════════════════════════════════════════════════ */

.dcm-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(20, 8, 50, 0.65);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    z-index: 1000;
    align-items: center; justify-content: center;
    padding: 20px;
    animation: dcmOverlayIn 0.28s ease both;
}

@keyframes dcmOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.dcm-box {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    max-width: 480px; width: 100%;
    max-height: 92vh; overflow-y: auto;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.15) inset,
        0 40px 90px rgba(45,18,105,0.6);
    animation: dcmBoxIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    text-align: center;
}

@keyframes dcmBoxIn {
    from { opacity: 0; transform: translateY(40px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Header (violet gradient) ─────────────────────────────── */
.dcm-header {
    background: linear-gradient(155deg, #a78bfa 0%, #7c3aed 45%, #5b21b6 85%, #4c1d95 100%);
    padding: 36px 32px 36px;
    position: relative;
    color: #fff;
    overflow: hidden;
}
/* Decorative wave layer */
.dcm-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px; height: 24px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.05));
    pointer-events: none;
}

.dcm-close {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer; font-family: inherit;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: all 0.22s ease;
    z-index: 2;
}
.dcm-close:hover {
    background: rgba(255,255,255,0.35);
    transform: rotate(90deg);
}

.dcm-icon-wrap {
    width: 68px; height: 68px;
    margin: 0 auto 18px;
    background: rgba(255,255,255,0.96);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow:
        0 0 0 5px rgba(255,255,255,0.22),
        0 12px 30px rgba(45,18,105,0.4);
    position: relative; z-index: 1;
}
.dcm-icon { font-size: 30px; line-height: 1; }

.dcm-title {
    font-size: 22px; font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.25;
    text-shadow: 0 2px 16px rgba(45,18,105,0.35);
    position: relative; z-index: 1;
}

.dcm-intro {
    font-size: 14px; color: rgba(255,255,255,0.92);
    margin: 12px auto 0;
    max-width: 380px;
    line-height: 1.55;
    font-weight: 500;
    position: relative; z-index: 1;
}
.dcm-intro strong { color: #fff; font-weight: 700; }
.dcm-progress-line {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.78);
    font-weight: 500;
}

/* ─── Body (white) ─────────────────────────────────────────── */
.dcm-body {
    padding: 26px 28px 30px;
    background: #fff;
}

/* Compare panel — side-by-side */
.dcm-compare {
    display: flex; align-items: stretch; justify-content: center;
    background: linear-gradient(135deg, #faf7ff 0%, #ede9fe 100%);
    border: 1px solid rgba(124,58,237,0.15);
    border-radius: 18px;
    padding: 4px;
    gap: 4px;
}
.dcm-compare-item {
    flex: 1;
    padding: 14px 12px;
    text-align: center;
    border-radius: 14px;
    background: #fff;
}
.dcm-compare-old { background: #fff; }
.dcm-compare-new {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    box-shadow: 0 4px 14px rgba(124,58,237,0.18);
}
.dcm-compare-label {
    font-size: 10px; font-weight: 800;
    color: #8b5cf6; letter-spacing: 0.14em;
    margin-bottom: 6px;
}
.dcm-compare-new .dcm-compare-label { color: #7c3aed; }
.dcm-compare-value {
    font-size: 18px; font-weight: 800;
    color: #3b1a78; letter-spacing: -0.3px;
}
.dcm-compare-arrow {
    align-self: center;
    color: #a78bfa;
    font-size: 22px;
    padding: 0 4px;
    font-weight: 700;
}

/* Action buttons */
.dcm-actions {
    display: flex; flex-direction: column; gap: 8px;
    margin-top: 24px;
}
.dcm-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 22px;
    border: none;
    border-radius: 14px;
    font-size: 14px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    transition: all 0.22s ease;
    letter-spacing: -0.1px;
}
.dcm-btn-icon { font-size: 12px; opacity: 0.9; }

.dcm-btn-primary {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: #fff;
    box-shadow: 0 8px 26px rgba(124,58,237,0.45);
}
.dcm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(124,58,237,0.6);
}
.dcm-btn-primary:active { transform: translateY(0) scale(0.99); }

.dcm-btn-danger {
    background: #fff;
    color: #ef4444;
    border: 1.5px solid #fecaca;
    box-shadow: 0 4px 14px rgba(239,68,68,0.1);
}
.dcm-btn-danger:hover {
    background: #fef2f2;
    border-color: #ef4444;
    transform: translateY(-1px);
}

.dcm-btn-ghost {
    background: transparent;
    color: #6b7280;
    padding: 10px 22px;
    font-weight: 600;
}
.dcm-btn-ghost:hover {
    color: #3b1a78;
    background: rgba(124,58,237,0.05);
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — PAGE 2, SUGGESTION BANNER, DURATION MODAL
════════════════════════════════════════════════════════════════ */
/* Short viewports — keep typography dominant, tighten card padding */
@media (max-height: 760px) {
    .p2-content { padding: 50px 20px 40px; gap: 12px; }
    .p2-title { font-size: 44px; letter-spacing: -1.2px; }
    .p2-subtitle { font-size: 16px; -webkit-line-clamp: 2; line-clamp: 2;}
    .p2-tagline-wrap { min-height: 44px; margin-top: 12px; }
    .p2a-express-card { padding: 20px 22px; gap: 16px; }
    .p2a-express-icon { width: 54px; height: 54px; font-size: 26px; border-radius: 15px; }
    .p2a-express-time { font-size: 24px; }
    .p2a-express-desc { font-size: 13px; }
    .p2a-preset { min-height: 138px; padding: 18px 16px 16px; }
    .p2a-preset-head { padding-bottom: 11px; margin-bottom: 11px; }
    .p2a-preset-time { font-size: 24px; }
    .p2a-preset-outcome { font-size: 12px; }
    .p2-find-btn { padding: 14px 28px; font-size: 15px; }
    #page2 .back-btn { padding: 14px 20px; font-size: 14px; }
}

@media (max-width: 580px) {
    .p2-title { font-size: 38px; letter-spacing: -1px; }
    .p2-subtitle { font-size: 15px; max-width: 100%; }
    .p2-content { padding: 50px 16px 40px; gap: 12px; }
    .p2a-grid, .p2a-loading { grid-template-columns: 1fr; }
    .p2a-grid { gap: 10px; }
    .p2a-preset { min-height: 120px; padding: 18px 18px 16px; }
    .p2a-preset-time { font-size: 24px; }
    .p2a-express-card { padding: 20px 20px; gap: 16px; }
    .p2a-express-icon { width: 54px; height: 54px; font-size: 26px; border-radius: 15px; }
    .p2a-express-time { font-size: 24px; }
    .p2-nav { flex-direction: column-reverse; width: 100%; max-width: 380px; gap: 10px; }
    .p2-nav .back-btn, .p2-nav .p2-find-btn { width: 100%; justify-content: center; }
    .p2-find-btn { padding: 15px 24px; font-size: 15px; }
    #page2 .back-btn { padding: 15px 20px; font-size: 14px; }

    /* Suggestion banner */
    .p2-sug-card {
        padding: 12px 14px;
        gap: 10px;
        border-radius: 18px;
        top: 16px;
    }
    .p2-sug-icon-wrap { width: 38px; height: 38px; border-radius: 12px; }
    .p2-sug-icon { font-size: 18px; }
    .p2-sug-eyebrow { font-size: 8px; }
    .p2-sug-topic-name { font-size: 14px; }
    .p2-sug-meta { font-size: 10px; }
    .p2-sug-cta { padding: 9px 14px; font-size: 12px; }

    /* Duration modal */
    .dcm-header { padding: 28px 22px 28px; }
    .dcm-body { padding: 20px 22px 24px; }
    .dcm-title { font-size: 19px; }
    .dcm-icon-wrap { width: 60px; height: 60px; border-radius: 17px; }
    .dcm-icon { font-size: 26px; }
    .dcm-compare { flex-direction: column; gap: 4px; padding: 6px; }
    .dcm-compare-arrow { transform: rotate(90deg); padding: 4px 0; }
    .dcm-btn { padding: 13px 18px; font-size: 13px; }
}

@media (max-width: 380px) {
    .p2-sug-cta { padding: 8px 12px; font-size: 11px; }
    .p2-sug-cta-arrow { display: none; }
}


/* ════════════════════════════════════════════════════════════════
   PAGES 3 & 4 — FULL-SCREEN LAYOUT (matching pages 1 & 2)
════════════════════════════════════════════════════════════════ */

/* Full-screen white base */
.p34-page {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 100;
    animation: p1FadeIn 0.5s ease both;
    overflow: hidden;
}

/* ─── Decorative bubbles (no text, no interaction) ─────────── */
.p34-bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.p34-bubble-wrap {
    position: absolute;
    bottom: -130px;
    left: var(--left, 50%);
    animation: p1BubbleRise var(--duration, 20s) var(--delay, 0s) ease-in-out infinite;
}

.p34-bubble {
    width: var(--size, 70px);
    height: var(--size, 70px);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%,
        rgba(149, 128, 255, 0.52),
        rgba(102, 51, 204, 0.32));
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 0 20px rgba(102, 126, 234, 0.2),
        inset 0 0 14px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ─── Top bar ─────────────────────────────────────────────── */
.p34-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.p34-topbar-brand {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.p34-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.p34-topbar-btn {
    background: transparent;
    border: 1.5px solid #d1d5db;
    color: #374151;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.p34-topbar-btn:hover {
    border-color: #7c3aed;
    color: #7c3aed;
}

.p34-topbar-signin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102,126,234,0.3);
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}
.p34-topbar-signin:hover { opacity: 0.9; transform: translateY(-1px); }

.p34-user-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    border-radius: 50px;
    padding: 3px 12px 3px 3px;
    cursor: pointer;
    transition: background 0.2s;
}
.p34-user-chip:hover { background: #e5e7eb; }

.p34-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.p34-user-name {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

/* ─── Left sidebar ────────────────────────────────────────── */
.p34-sidebar {
    position: absolute;
    top: 64px;
    left: 0;
    width: 220px;
    bottom: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 20;
    padding: 16px 14px 32px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.p34-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.p34-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
    cursor: default;
}

.p34-nav-item.p34-nav-active {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.1),
        rgba(118, 75, 162, 0.07));
    color: #667eea;
    font-weight: 600;
}

.p34-nav-icon {
    font-size: 15px;
    line-height: 1;
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

/* ─── Main content area ────────────────────────────────────── */
.p34-main {
    position: absolute;
    top: 64px;
    left: 220px;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 44px 36px;
    z-index: 10;
}

.p34-content {
    width: 100%;
    max-width: 700px;
    text-align: center;
    /* Compensate for 220px sidebar to center content at screen midpoint */
    transform: translateX(-110px);
}

@media (max-width: 1140px) {
    .p34-content { transform: none; }
}

/* Result state inherits left-align */
.p34-content #resultState,
.p34-content #quizQuestion {
    text-align: left;
}

/* ════════════════════════════════════════════════════════════════
   SESSION SIDEBAR LIST
════════════════════════════════════════════════════════════════ */

/* Divider between nav items and sessions list */
.p34-sidebar-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 16px 0 12px;
    flex-shrink: 0;
}

/* "Your Sessions" label */
.p34-sidebar-section-label {
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 14px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

/* Scrollable list container */
.p34-sessions-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow-y: auto;
    flex: 1;
    padding-bottom: 16px;
}

/* Individual session row */
.p34-session-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: default;
    transition: background 0.15s ease;
    user-select: none;
}

/* Number / icon circle */
.p34-session-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
    background: #f3f4f6;
    color: #d1d5db;
    transition: all 0.2s ease;
}

/* Sub-topic label */
.p34-session-label {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: #d1d5db;
    transition: color 0.2s ease;
}

/* ── Active (current session) ─── */
.p34-session-item.session-active {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.1),
        rgba(118, 75, 162, 0.07));
}

.p34-session-item.session-active .p34-session-num {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
}

.p34-session-item.session-active .p34-session-label {
    color: #374151;
    font-weight: 600;
}

/* ── Done (completed session) ─── */
.p34-session-item.session-done {
    cursor: pointer;
}

.p34-session-item.session-done:hover {
    background: #f5f3ff;
}

.p34-session-item.session-done .p34-session-num {
    background: #d1fae5;
    color: #065f46;
    font-size: 11px;
}

.p34-session-item.session-done .p34-session-label {
    color: #6b7280;
}

/* ── Upcoming ─── */
.p34-session-item.session-upcoming {
    opacity: 0.9;
}

.p34-session-item.session-upcoming .p34-session-label {
    color: #6b7280;
}

.p34-session-item.session-upcoming .p34-session-num {
    color: #9ca3af;
}

/* ── Waiting page pointing mascot ─── */
.pw-mascot {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ── (video-title-row removed — mascot moved to session header) ─── */
.video-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.video-title-mascot {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   SESSION HEADER (badge + sub-topic name above progress bar)
════════════════════════════════════════════════════════════════ */

.session-mascot {
    width: 88px;
    height: 88px;
    object-fit: contain;
    flex-shrink: 0;
}

.p34-session-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    min-height: 28px; /* reserve space so layout doesn't jump */
}

/* "Session 1 of 3" pill */
.p34-session-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Sub-topic name */
.p34-session-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
}

/* ════════════════════════════════════════════════════════════════
   TOP BAR — SESSION PROGRESS + HEARTS
════════════════════════════════════════════════════════════════ */

/* Make topbar 3-column grid so center is always at screen center */
.p34-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    justify-content: unset;
}

.p34-topbar-right {
    justify-self: end;
}

.p34-topbar-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Progress bar track */
.p34-topbar-progress {
    width: 100%;
    max-width: 320px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

/* Filled portion */
.p34-topbar-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* "2 of 5 sessions complete" label */
.p34-topbar-progress-label {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* ─── Certificate preview in sidebar ──────────────────────── */
.sidebar-cert-preview {
    width: 100%;
    /* height set dynamically by scaleSidebarCerts() */
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #e0e7ff;
    background: #1a0a2e; /* matches cert dark bg while loading */
    margin-bottom: 18px;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(102,126,234,0.18);
    position: relative;
}

/* Overlay: whole cert gets a base dark shadow; left portion gets extra dark */
.cert-progress-overlay {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    overflow: hidden;
    pointer-events: none;
    /* Base dim covering the full certificate */
    background: rgba(8, 4, 24, 0.52);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}

.cert-progress-overlay.complete {
    opacity: 0;
}

/* Completed portion — sits on the left, extra dark on top of base */
.cert-progress-done {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.36);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    width: 0%;
}

/* Percentage label — centered in the overlay */
.cert-progress-pct {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.sidebar-cert-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1280px;
    height: 950px;
    border: none;
    transform-origin: top left;
    /* transform scale set dynamically by scaleSidebarCerts() */
    pointer-events: none;
    display: block;
}

/* ─── Progress bar celebration animation ──────────────────── */
.p34-topbar-progress {
    transition: height 0.4s ease;
}

.p34-topbar-progress.progress-celebrating {
    height: 12px;
}

/* ─── Streak counter ─────────────────────────────────────── */
.streak-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    padding-right: 4px;
}

.streak-counter {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
    line-height: 1.3;
}

.streak-freeze {
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    line-height: 1.3;
}

/* Streak freeze activated toast */
.streak-freeze-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.45);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
}
.streak-freeze-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Hearts container */
.p34-hearts {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Individual heart */
.p34-heart {
    font-size: 18px;
    line-height: 1;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

/* Lost heart — greyed out and smaller */
.p34-heart.lost {
    filter: grayscale(100%) opacity(0.35);
    transform: scale(0.82);
}

/* ════════════════════════════════════════════════════════════════
   PASS-REQUIRED MESSAGE
════════════════════════════════════════════════════════════════ */

.p34-pass-required {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
    text-align: center;
    animation: fadeSlideUp 0.3s ease both;
}

/* ════════════════════════════════════════════════════════════════
   SIDEBAR — simplified (no static nav above sessions)
════════════════════════════════════════════════════════════════ */

/* Reduce top padding now that nav items are gone */
.p34-sidebar {
    padding-top: 24px;
}

/* ════════════════════════════════════════════════════════════════
   PAGE WAIT — Waiting / Loading page
════════════════════════════════════════════════════════════════ */

#pageWait {
    position: fixed;
    inset: 0;
    max-width: none;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    overflow: hidden;
    z-index: 100;
    animation: p1FadeIn 0.5s ease both;
}

/* ─── Background bubbles ─────────────────────────────────────── */
.pw-bubbles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.pw-bubble-wrap {
    position: absolute;
    bottom: -150px;
    left: var(--left, 50%);
    animation: p1BubbleRise var(--duration, 20s) var(--delay, 0s) ease-in-out infinite;
}

.pw-bubble {
    width: var(--size, 80px);
    height: var(--size, 80px);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%,
        rgba(149, 128, 255, 0.72),
        rgba(102, 51, 204, 0.52));
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 0 24px rgba(102, 126, 234, 0.3),
        inset 0 0 16px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ─── Main content area ──────────────────────────────────────── */
.pw-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 40px 24px;
}

/* ─── Brand ──────────────────────────────────────────────────── */
.pw-brand {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 64px;
}

/* ─── Text area ──────────────────────────────────────────────── */
.pw-text-area {
    max-width: 580px;
    width: 100%;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* ─── Octopus block-building loader ─────────────────────────── */
.octo-loader-stage {
    position: relative;
    width: 240px;
    height: 220px;
}

.octo-loader-img {
    position: absolute;
    width: 110px;
    height: 110px;
    object-fit: contain;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    mix-blend-mode: multiply;
    animation: octoLoaderFloat 2.4s ease-in-out infinite;
}

.octo-blocks {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.octo-block {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    animation: octoBlockPop 2.1s cubic-bezier(.34,1.56,.64,1) infinite;
    box-shadow: 0 4px 14px rgba(109,40,217,0.25);
}

.ob1 { background: linear-gradient(135deg, var(--ltw-p300), var(--ltw-p500)); animation-delay: 0s; }
.ob2 { background: linear-gradient(135deg, var(--ltw-p500), var(--ltw-pink)); animation-delay: 0.7s; }
.ob3 { background: linear-gradient(135deg, var(--ltw-p200), var(--ltw-p400)); animation-delay: 1.4s; }

@keyframes octoLoaderFloat {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-2deg); }
    50%      { transform: translateX(-50%) translateY(-14px) rotate(2deg); }
}

@keyframes octoBlockPop {
    0%   { transform: translateY(36px) scale(0.5); opacity: 0; }
    55%  { transform: translateY(-8px) scale(1.08); opacity: 1; }
    70%  { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}


/* ─── Message paragraph ──────────────────────────────────────── */
.pw-message {
    font-size: 20px;
    font-weight: 500;
    color: #374151;
    line-height: 1.75;
    text-align: center;
    margin: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.pw-message.pw-visible {
    opacity: 1;
}

/* ─── Typing cursor ──────────────────────────────────────────── */
.pw-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #7c3aed;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: pwCursorBlink 0.65s ease-in-out infinite;
}

@keyframes pwCursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ─── Step dots ──────────────────────────────────────────────── */
.pw-dots {
    display: flex;
    gap: 10px;
    margin-top: 52px;
}

.pw-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: background 0.35s ease, transform 0.35s ease;
}

.pw-dot.pw-dot-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.25);
}

/* ─── Waiting page: cert-mode (step 4) ──────────────────────── */
.pw-content.pw-cert-mode {
    justify-content: flex-start;
    padding-top: 8vh;
    overflow-y: auto;
}

/* ─── Certificate preview (waiting page step 4) ─────────────── */
.pw-cert-preview {
    margin-top: 36px;
    width: 100%;
    max-width: 720px;
    animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pw-cert-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
    text-align: center;
}

.pw-cert-frame-wrap {
    width: 100%;
    /* Iframe is 1280×1020px at scale 0.5625.
       Visible height = 1020 × 0.5625 = 573px — shows the full certificate. */
    height: 573px;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 16px 60px rgba(26, 13, 46, 0.28);
    position: relative;
}

.pw-cert-frame {
    position: absolute;
    top: 0;
    left: 0;
    /* Scale to fit the ~720px preview container: 720/1280 = 0.5625 */
    width: 1280px;
    height: 1020px;
    border: none;
    transform: scale(0.5625);
    transform-origin: 0 0;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════
   PAGE CONGRATS — Congratulations + Final Certificate
════════════════════════════════════════════════════════════════ */

.pc-page {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 100;
    overflow-y: auto;
    animation: p1FadeIn 0.5s ease both;
}

.pc-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 24px 80px;
    min-height: 100%;
    position: relative;
    z-index: 10;
}

/* ─── Celebration card ───────────────────────────────────────── */
.pc-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 48px 44px 44px;
    max-width: 560px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.05),
        0 24px 64px rgba(79,70,229,0.2);
    margin-bottom: 48px;
}

.pc-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 20px;
    animation: pcIconBounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both 0.2s;
}

.pc-graduated-mascot {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

@keyframes pcIconBounce {
    from { opacity: 0; transform: scale(0.4) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.pc-heading {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.pc-sub {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: 32px;
}

.pc-topic {
    font-style: normal;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Name form ──────────────────────────────────────────────── */
.pc-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.pc-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    color: #111827;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    text-align: center;
    box-sizing: border-box;
}

.pc-input::placeholder { color: #9ca3af; }

.pc-input:focus {
    border-color: #7c3aed;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.pc-submit-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 18px rgba(102, 126, 234, 0.38);
    letter-spacing: 0.01em;
}

.pc-submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.52);
}

.pc-submit-btn:active { transform: scale(0.99); }

/* ─── Final certificate section ──────────────────────────────── */
.pc-cert-wrap {
    width: 100%;
    max-width: 960px;
    animation: fadeSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pc-cert-heading {
    font-size: 14px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
}

/* Iframe container — height is set dynamically by scaleFinalCertIframe() */
.pc-cert-frame-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(26, 13, 46, 0.3);
    position: relative;
    margin-bottom: 28px;
}

.pc-cert-frame {
    display: block;
    border: none;
    /* width/height/transform set dynamically */
}

/* ─── Print / action buttons ─────────────────────────────────── */
.pc-cert-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.pc-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.38);
}

.pc-print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.48);
}

.pc-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 12px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pc-home-btn:hover {
    border-color: #9ca3af;
    color: #374151;
    background: #f9fafb;
}

/* ════════════════════════════════════════════════════════════════
   SIGN IN MODAL
════════════════════════════════════════════════════════════════ */

.si-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #ffffff;
    color: #374151;
    border: 2px solid #e5e7eb;
    padding: 13px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.si-google-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.si-guest-btn {
    display: block;
    width: 100%;
    background: transparent;
    color: #9ca3af;
    border: none;
    padding: 10px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s;
}

.si-guest-btn:hover { color: #6b7280; }

/* ════════════════════════════════════════════════════════════════
   NAV USER CHIP
════════════════════════════════════════════════════════════════ */

.nav-user-chip {
    display: none;
    align-items: center;
    gap: 8px;
    background: #f5f3ff;
    border: 1.5px solid #ddd6fe;
    border-radius: 50px;
    padding: 5px 14px 5px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-user-chip:hover {
    background: #ede9fe;
    border-color: #c4b5fd;
}

.nav-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    background: #ddd6fe;
}

.nav-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #5b21b6;
}

/* ════════════════════════════════════════════════════════════════
   MY COURSES PAGE — full redesign (Tier 1-4 from review)
════════════════════════════════════════════════════════════════ */

#pageMyCourses {
    position: fixed; inset: 0;
    background: linear-gradient(155deg, #c4b5fd 0%, #a78bfa 25%, #818cf8 55%, #7c3aed 80%, #6d28d9 100%);
    z-index: 100;
    overflow-y: auto; overflow-x: hidden;
    animation: p1FadeIn 0.5s ease both;
}

.mc-hero-waves {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}

/* ─── Top nav (glass pills) ──────────────────────────────────── */
.mc-topbar {
    position: fixed; top: 22px; left: 22px; right: 22px;
    z-index: 50;
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px;
    pointer-events: none;
}
.mc-nav-pill {
    pointer-events: auto;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 9px 18px; border-radius: 999px;
    font-size: 13px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    transition: all 0.2s ease;
    letter-spacing: -0.1px;
    box-shadow: 0 4px 18px rgba(45,18,105,0.28);
}
.mc-nav-pill:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(45,18,105,0.4);
}
.mc-nav-pill-ghost {
    background: transparent;
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.85);
}
.mc-nav-pill-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

/* ─── Content container ──────────────────────────────────────── */
.mc-content {
    position: relative;
    z-index: 10;
    padding: 84px 22px 64px;
    max-width: 1180px;
    margin: 0 auto;
}

.mc-page-header { text-align: center; margin-bottom: 32px; }
.mc-page-title {
    font-size: 40px; font-weight: 800;
    color: #fff; letter-spacing: -1px;
    margin: 0;
    text-shadow: 0 4px 24px rgba(45,18,105,0.4);
    animation: fadeIn 0.6s ease both;
}
.mc-page-sub {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    margin: 10px 0 0;
    font-weight: 500;
    animation: fadeIn 0.7s ease both;
}

/* ─── Stats overview ──────────────────────────────────────────── */
.mc-stats {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-bottom: 24px;
    animation: fadeIn 0.7s ease both;
}
.mc-stat {
    flex: 1 1 0;
    min-width: 140px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 8px 24px rgba(45,18,105,0.22);
    transition: transform 0.22s ease;
}
.mc-stat:hover { transform: translateY(-2px); }
.mc-stat-value {
    font-size: 32px; font-weight: 800; color: #fff;
    letter-spacing: -0.8px; line-height: 1;
}
.mc-stat-label {
    font-size: 11px; font-weight: 700;
    color: rgba(255,255,255,0.78);
    letter-spacing: 0.1em; text-transform: uppercase;
    margin-top: 6px;
}

/* ─── Continue (featured) card ────────────────────────────────── */
.mc-continue {
    display: flex; align-items: center; gap: 20px;
    background: rgba(255,255,255,0.97);
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 28px;
    box-shadow: 0 24px 60px rgba(45,18,105,0.45);
    animation: fadeIn 0.8s ease both;
}
.mc-continue-cover {
    width: 96px; height: 96px;
    border-radius: 18px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18) inset;
}
.mc-continue-cover::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 70%);
}
.mc-continue-icon { font-size: 44px; line-height: 1; z-index: 1; }

.mc-continue-body { flex: 1; min-width: 0; }
.mc-continue-eyebrow {
    font-size: 10px; font-weight: 800; color: #7c3aed;
    letter-spacing: 0.14em; text-transform: uppercase;
}
.mc-continue-title {
    font-size: 22px; font-weight: 800; color: #3b1a78;
    margin-top: 4px; letter-spacing: -0.4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mc-continue-next {
    font-size: 13px; color: #6b7280;
    margin-top: 6px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mc-continue-next span { color: #5b21b6; font-weight: 600; }
.mc-continue-progress {
    display: flex; align-items: center; gap: 10px;
    margin-top: 10px;
}
.mc-continue-bar {
    flex: 1; height: 6px; background: #ede9fe;
    border-radius: 999px; overflow: hidden;
    max-width: 280px;
}
.mc-continue-fill {
    height: 100%; background: linear-gradient(to right, #7c3aed, #5b21b6);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(124,58,237,0.4);
}
.mc-continue-pct {
    font-size: 11px; font-weight: 600; color: #8b5cf6;
    white-space: nowrap;
}
.mc-continue-cta {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: #fff; border: none;
    padding: 13px 24px; border-radius: 999px;
    font-size: 14px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    box-shadow: 0 8px 26px rgba(124,58,237,0.45);
    transition: all 0.22s ease;
    flex-shrink: 0;
}
.mc-continue-cta:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 32px rgba(124,58,237,0.6); }
.mc-continue-cta span { font-size: 16px; transition: transform 0.22s; }
.mc-continue-cta:hover span { transform: translateX(3px); }

/* ─── Toolbar (filter chips + search) ─────────────────────────── */
.mc-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 20px;
    flex-wrap: wrap;
    animation: fadeIn 0.85s ease both;
}
.mc-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-chip {
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.88);
    padding: 8px 18px; border-radius: 999px;
    font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: all 0.18s ease;
}
.mc-chip:hover { background: rgba(255,255,255,0.28); color: #fff; }
.mc-chip.active {
    background: #fff; color: #5b21b6;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(45,18,105,0.28);
}

.mc-search-wrap {
    position: relative;
    flex: 0 1 280px;
}
.mc-search-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 13px; color: rgba(255,255,255,0.7);
    pointer-events: none;
}
.mc-search {
    width: 100%;
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    padding: 10px 16px 10px 38px;
    border-radius: 999px;
    font-size: 13px; font-family: inherit;
    outline: none;
    transition: all 0.18s ease;
}
.mc-search::placeholder { color: rgba(255,255,255,0.6); }
.mc-search:focus {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.4);
}

/* ─── Grid + cards ─────────────────────────────────────────────── */
.mc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    animation: fadeIn 0.9s ease both;
}
.mc-card {
    background: rgba(255,255,255,0.97);
    border-radius: 22px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 12px 36px rgba(45,18,105,0.3);
    display: flex; flex-direction: column;
    position: relative;
}
.mc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(45,18,105,0.45);
}

/* Cover with progress ring overlay */
.mc-card-cover {
    height: 130px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.mc-card-cover::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 70%);
}
.mc-card-icon {
    font-size: 52px; line-height: 1;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* Progress ring (top-right corner of cover) */
.mc-card-ring {
    position: absolute;
    top: 10px; left: 10px;
    width: 56px; height: 56px;
    transform: rotate(-90deg);
}
.mc-ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.35);
    stroke-width: 4;
}
.mc-ring-fill {
    fill: none;
    stroke: #fff;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.5));
}
.mc-card-pct {
    position: absolute;
    top: 22px; left: 22px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.mc-delete-btn {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.9);
    width: 28px; height: 28px; border-radius: 50%;
    font-size: 11px;
    cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: all 0.22s ease;
    z-index: 3;
}
.mc-card:hover .mc-delete-btn { opacity: 1; }
.mc-delete-btn:hover {
    background: rgba(239,68,68,0.85);
    border-color: rgba(255,255,255,0.4);
    transform: rotate(90deg);
}

.mc-badge {
    position: absolute;
    bottom: 10px; right: 10px;
    font-size: 10px; font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.06em;
    z-index: 2;
}
.mc-badge-done {
    background: rgba(16,185,129,0.95);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16,185,129,0.4);
}

/* Card body */
.mc-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }

.mc-card-topic {
    font-size: 19px; font-weight: 800; color: #3b1a78;
    letter-spacing: -0.3px; line-height: 1.25;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.mc-card-meta {
    font-size: 12px; color: #6b7280;
    font-weight: 500;
    margin-bottom: 14px;
    display: flex; flex-wrap: wrap; gap: 4px;
    align-items: center;
}
.mc-meta-sep { opacity: 0.4; }

.mc-card-progress-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px;
    gap: 8px;
}
.mc-hearts {
    display: flex; gap: 3px;
    font-size: 15px;
    line-height: 1;
}
.mc-heart { color: #ef4444; }
.mc-heart.lost { color: #e5e7eb; }
.mc-remaining {
    font-size: 11px; font-weight: 600;
    color: #8b5cf6;
    background: #ede9fe;
    padding: 3px 9px; border-radius: 999px;
    white-space: nowrap;
}

.mc-resume-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff; border: none;
    padding: 12px;
    border-radius: 14px;
    font-size: 14px; font-weight: 700;
    font-family: inherit; cursor: pointer;
    transition: all 0.22s ease;
    box-shadow: 0 6px 18px rgba(124,58,237,0.4);
    margin-top: auto;
    letter-spacing: -0.1px;
}
.mc-resume-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(124,58,237,0.55);
}
.mc-resume-arrow { font-size: 16px; transition: transform 0.22s; }
.mc-resume-btn:hover .mc-resume-arrow { transform: translateX(3px); }

.mc-resume-btn-done {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 18px rgba(16,185,129,0.4);
}
.mc-resume-btn-done:hover { box-shadow: 0 10px 26px rgba(16,185,129,0.55); }

/* ─── Loading / Empty / No-match states ──────────────────────── */
.mc-loading {
    text-align: center;
    padding: 60px 0;
    grid-column: 1 / -1;
    color: rgba(255,255,255,0.85);
}

.mc-empty {
    grid-column: 1 / -1;
    text-align: center;
    background: rgba(255,255,255,0.96);
    border-radius: 28px;
    padding: 48px 32px;
    box-shadow: 0 24px 60px rgba(45,18,105,0.4);
    max-width: 580px; margin: 0 auto;
    animation: fadeIn 0.6s ease both;
}
.mc-empty-icon {
    font-size: 56px; margin-bottom: 18px;
    line-height: 1;
}
.mc-empty-title {
    font-size: 24px; font-weight: 800; color: #3b1a78;
    letter-spacing: -0.4px;
    margin: 0 0 8px;
}
.mc-empty-sub {
    color: #6b7280; font-size: 14px;
    margin: 0 0 22px;
    line-height: 1.55;
}
.mc-empty-chips {
    display: flex; gap: 8px; flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 26px;
}
.mc-empty-chip {
    background: #fff;
    border: 1.5px solid #ede9fe;
    color: #5b21b6;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: all 0.18s ease;
    box-shadow: 0 2px 8px rgba(124,58,237,0.08);
}
.mc-empty-chip:hover {
    background: #ede9fe;
    border-color: #c4b5fd;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124,58,237,0.18);
}
.mc-empty-cta {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: #fff; border: none;
    padding: 13px 28px; border-radius: 999px;
    font-size: 14px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    box-shadow: 0 8px 24px rgba(124,58,237,0.45);
    transition: all 0.22s ease;
}
.mc-empty-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 30px rgba(124,58,237,0.6); }

.mc-no-match {
    grid-column: 1 / -1;
    text-align: center;
    background: rgba(255,255,255,0.94);
    border-radius: 22px;
    padding: 40px 24px;
    color: #6b7280;
}
.mc-no-match-icon { font-size: 44px; margin-bottom: 12px; }
.mc-no-match p { margin: 0 0 18px; color: #6b7280; }
.mc-no-match-reset {
    background: transparent;
    border: 1.5px solid #c4b5fd;
    color: #5b21b6;
    padding: 9px 22px; border-radius: 999px;
    font-size: 13px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    transition: all 0.2s ease;
}
.mc-no-match-reset:hover { background: #ede9fe; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 720px) {
    .mc-content { padding: 76px 16px 56px; }
    .mc-page-title { font-size: 30px; }
    .mc-stats { gap: 8px; }
    .mc-stat { min-width: 140px; padding: 14px 16px; }
    .mc-stat-value { font-size: 26px; }
    .mc-continue {
        flex-direction: column; align-items: stretch;
        gap: 14px; padding: 16px;
    }
    .mc-continue-cover { width: 100%; height: 80px; border-radius: 16px; }
    .mc-continue-icon { font-size: 38px; }
    .mc-continue-cta { width: 100%; justify-content: center; }
    .mc-toolbar { flex-direction: column; align-items: stretch; }
    .mc-search-wrap { flex: 1 1 auto; }
    .mc-grid { grid-template-columns: 1fr; gap: 14px; }
    .mc-topbar { top: 14px; left: 14px; right: 14px; }
    .mc-nav-pill { padding: 8px 14px; font-size: 12px; }
}

/* ─── Save button in topbar ─────────────────────────────────── */
.p34-save-btn {
    background: transparent;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 5px 9px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    color: #6b7280;
}
.p34-save-btn:hover {
    border-color: #667eea;
    background: #f5f3ff;
    color: #667eea;
}

/* ─── Beta Access Gate ───────────────────────────────────────── */
html.beta-pending, html.beta-pending body { overflow: hidden; }

.beta-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'Inter', system-ui, sans-serif;
    animation: fadeIn 0.3s ease both;
}

.beta-gate-box {
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.beta-gate-icon {
    font-size: 44px;
    margin-bottom: 8px;
}

.beta-gate-title {
    font-size: 26px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 6px;
}

.beta-gate-sub {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px;
    line-height: 1.5;
}

.beta-gate-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}
.beta-gate-input:focus { border-color: #6366f1; }

.beta-gate-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 12px;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(102,126,234,0.35);
}
.beta-gate-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.beta-gate-btn:active { transform: scale(0.98); }

.beta-gate-err {
    margin: 14px 0 0;
    font-size: 13px;
    color: #ef4444;
    font-weight: 500;
}



/* ════════════════════════════════════════════════════════════════
   LEARN THIS WAY — LANDING PAGE REDESIGN (page1)
   All classes prefixed with ltw- to avoid collisions
════════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
    --ltw-p900: #1e0a4a;
    --ltw-p800: #3b1f7a;
    --ltw-p700: #4c1d95;
    --ltw-p600: #6d28d9;
    --ltw-p500: #7c3aed;
    --ltw-p400: #8b5cf6;
    --ltw-p300: #a78bfa;
    --ltw-p200: #c4b5fd;
    --ltw-p100: #ede9fe;
    --ltw-p50:  #f5f3ff;
    --ltw-pink: #e879f9;
    --ltw-indigo: #818cf8;
}

/* ── Page 1 override: scrollable, gradient bg ───────────────── */
#page1 {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    background: linear-gradient(155deg, #c4b5fd 0%, #a78bfa 25%, #818cf8 55%, #7c3aed 80%, #6d28d9 100%);
    padding: 0;
    z-index: 100;
    animation: p1FadeIn 0.5s ease both;
}

/* ── Animated wave background ───────────────────────────────── */
.ltw-hero-waves {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ── Liquid glass utility ────────────────────────────────────── */

/* ───────────────────────────────────────────────
   HERO CONTENT — ensure full-width centering
──────────────────────────────────────────────── */
.ltw-hero-content {
    width: 100%;
    max-width: 520px; /* matches search bar width */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ───────────────────────────────────────────────
   SEARCH BAR — allow proper flex expansion
──────────────────────────────────────────────── */
.ltw-search {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
}

/* Keyhole shape */
.ltw-keyhole {
    border-radius: 999px !important;
    overflow: hidden;
    box-sizing: border-box;
}

/* Input — enforce 4:1 ratio */
.ltw-search-input {
    flex: 4 1 0;
    min-width: 0;
    padding: 14px 22px;
    font-size: 16px;
    border: none;
    outline: none;
    background: transparent !important;
    color: #fff;
}

/* Button — enforce 1:1 ratio + black text */
.ltw-search-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 22px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background: transparent !important;
    color: #000;
    font-weight: 600;
}

/* ───────────────────────────────────────────────
   LOGO — visually center under mascot
──────────────────────────────────────────────── */
.ltw-logo-wrap {
    transform: translateX(10px); /* adjust 8–14px if needed */
}

/* ───────────────────────────────────────────────
   iOS Liquid Glass Effect
──────────────────────────────────────────────── */
.ltw-glass {
    position: relative;
    background: rgba(255,255,255,0.15) !important;
    backdrop-filter: blur(30px) saturate(180%) brightness(130%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(130%) !important;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow:
        inset 0 0 20px rgba(255,255,255,0.25),
        0 4px 20px rgba(0,0,0,0.15);
}

/* Radial highlight */
.ltw-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at 30% 20%,
        rgba(255,255,255,0.35),
        transparent 60%
    );
    pointer-events: none;
    z-index: 1;
}

/* Gradient sheen */
.ltw-glass::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.35) 0%,
        rgba(255,255,255,0.05) 40%,
        rgba(255,255,255,0.25) 100%
    );
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
}

/* Ensure text stays above glass layers */
.ltw-glass > * {
    position: relative;
    z-index: 2;
}


/* ── Navbar ──────────────────────────────────────────────────── */
.ltw-navbar {
    position: fixed;
    top: 20px; left: 50%; transform: translateX(-50%);
    z-index: 1000;
    display: flex; align-items: center; gap: 4px;
    padding: 7px 10px 7px 16px;
    border-radius: 60px; white-space: nowrap;
    box-shadow: 0 8px 32px rgba(109,40,217,0.22), 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.3s;
}
.ltw-navbar-brand {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 14px; font-weight: 800;
    background: linear-gradient(135deg, #3b1f7a, #e879f9);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 6px; letter-spacing: -0.3px;
}
.ltw-nav-link {
    background: transparent; border: none;
    color: rgba(60,20,120,0.8);
    padding: 7px 13px; border-radius: 50px;
    font-size: 13px; font-weight: 500;
    font-family: 'DM Sans', 'Inter', inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.ltw-nav-link:hover { background: rgba(139,92,246,0.1); color: var(--ltw-p800); }
.ltw-nav-signin {
    background: linear-gradient(135deg, var(--ltw-p600), var(--ltw-pink));
    border: none; color: #fff;
    padding: 8px 20px; border-radius: 50px;
    font-size: 13px; font-weight: 700;
    font-family: inherit; cursor: pointer;
    box-shadow: 0 2px 12px rgba(139,92,246,0.35);
    transition: opacity 0.2s, transform 0.2s;
}
.ltw-nav-signin:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Navbar ──────────────────────────────────────────────────── */
.ltw-navbar {
    position: fixed;
    top: 20px; left: 50%; transform: translateX(-50%);
    z-index: 1000;
    display: flex; align-items: center; justify-content: space-between; gap: 4px;
    padding: 7px 10px 7px 16px;
    border-radius: 60px; white-space: nowrap;
    box-shadow: 0 8px 32px rgba(109,40,217,0.22), 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.3s;
}
.ltw-navbar-brand {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 14px; font-weight: 800;
    background: linear-gradient(135deg, #3b1f7a, #e879f9);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 6px; letter-spacing: -0.3px;
}
.ltw-nav-link {
    background: transparent; border: none;
    color: rgba(60,20,120,0.8);
    padding: 7px 13px; border-radius: 50px;
    font-size: 13px; font-weight: 500;
    font-family: 'DM Sans', 'Inter', inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.ltw-nav-link:hover { background: rgba(139,92,246,0.1); color: var(--ltw-p800); }
.ltw-nav-signin {
    background: linear-gradient(135deg, var(--ltw-p600), var(--ltw-pink));
    border: none; color: #fff;
    padding: 8px 20px; border-radius: 50px;
    font-size: 13px; font-weight: 700;
    font-family: inherit; cursor: pointer;
    box-shadow: 0 2px 12px rgba(139,92,246,0.35);
    transition: opacity 0.2s, transform 0.2s;
}
.ltw-nav-signin:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Navbar mobile fixes ─────────────────────────────────── */
.ltw-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ltw-nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ltw-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
}
.ltw-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(60,20,120,0.85);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.ltw-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ltw-hamburger.open span:nth-child(2) { opacity: 0; }
.ltw-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ltw-mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    flex-direction: column;
    border-radius: 18px;
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 12px 40px rgba(109,40,217,0.2);
}
.ltw-mobile-menu.open {
    display: flex;
}
.ltw-mobile-link {
    background: transparent;
    border: none;
    color: rgba(60,20,120,0.85);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background 0.15s;
    display: block;
    width: 100%;
}
.ltw-mobile-link:hover { background: rgba(139,92,246,0.1); }

@media (max-width: 600px) {
    .ltw-navbar {
        left: 16px;
        right: 16px;
        transform: none;
        width: auto;
        min-width: 0;
        padding: 8px 14px;
    }
    .ltw-nav-links {
        display: none;
    }
    .ltw-hamburger {
        display: flex;
    }
    .ltw-navbar-brand {
        font-size: 13px;
    }
    .ltw-nav-signin {
        font-size: 12px;
        padding: 7px 14px;
    }
}

/* ── Bubbles ─────────────────────────────────────────────────── */
.ltw-bubbles {
    position: fixed;
    inset: 0; overflow: hidden;
    pointer-events: none; z-index: 2;
}
.ltw-bubble-wrap {
    position: absolute; bottom: -160px; left: var(--left, 50%);
    animation: ltwBubbleRise var(--dur, 20s) var(--delay, 0s) ease-in-out infinite;
}
@keyframes ltwBubbleRise {
    0%   { transform: translateX(0) translateY(0); opacity: 0; }
    8%   { opacity: 0.72; }
    45%  { transform: translateX(var(--drift, 30px)) translateY(-58vh); }
    92%  { opacity: 0.72; }
    100% { transform: translateX(0) translateY(-118vh); opacity: 0; }
}
.ltw-bubble {
    width: var(--size, 80px); height: var(--size, 80px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
    font-family: 'Sora', 'Inter', sans-serif;
    color: rgba(255,255,255,0.95);
    pointer-events: all; cursor: pointer;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.32);
    box-shadow: 0 4px 24px rgba(139,92,246,0.18), inset 0 0 16px rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.25s;
    text-align: center; padding: 8px; line-height: 1.2; user-select: none;
}
.ltw-bubble:hover { transform: scale(1.1); }
.ltw-bubble:active { transform: scale(0.93); }

/* ── Hero ────────────────────────────────────────────────────── */
.ltw-hero {
    position: relative; min-height: 100vh; z-index: 10;
    display: flex; align-items: center; justify-content: center;
}
.ltw-hero-content {
    width: 100%;
    max-width: 720px; /* matches your design scale */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@keyframes ltwFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Logo */
.ltw-logo-wrap {
    position: relative; display: inline-block; margin-bottom: 18px;
    animation: ltwFloat 3.8s ease-in-out infinite;
}
.ltw-logo-wrap img {
    width: 50%; /* makes it half the original size */
    height: auto; /* keeps proportions */
}
@keyframes ltwFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.ltw-logo {
    width: 120px; height: 120px; object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 10px 28px rgba(80,20,180,0.5));
    display: block;
}
.ltw-logo-glow {
    position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 18px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(167,139,250,0.55), transparent 70%);
    animation: ltwGlowPulse 3.8s ease-in-out infinite;
}
@keyframes ltwGlowPulse {
    0%,100% { opacity: 0.6; transform: translateX(-50%) scaleX(1); }
    50%      { opacity: 0.22; transform: translateX(-50%) scaleX(0.72); }
}

.ltw-hero-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(42px, 7vw, 70px); font-weight: 800;
    letter-spacing: -2.5px; line-height: 1.05; margin-bottom: 14px;
    color: #fff;
    text-shadow: 0 2px 24px rgba(109,40,217,0.28);
}
.ltw-hero-sub {
    font-size: 17px; color: rgba(255,255,255,0.78);
    line-height: 1.65; margin-bottom: 36px;
    font-family: 'DM Sans', 'Inter', sans-serif;
}
.ltw-search {
    width: 100%;
    max-width: 520px; /* adjust as needed */
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
}
.ltw-search-input {
    flex: 4 1 0;
    min-width: 0;
}
.ltw-search-input::placeholder { color: rgba(109,40,217,0.42); }
.ltw-search-btn {
    flex: 1 1 0;
    min-width: 0;
}
.ltw-search-btn:hover { opacity: 0.9; }
.ltw-hero-hint { font-size: 12px; color: rgba(255,255,255,0.48); }

.ltw-scroll-hint {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 5px;
    color: rgba(255,255,255,0.42); font-size: 11px;
    animation: ltwBounce 2.4s ease-in-out infinite; cursor: pointer;
}
@keyframes ltwBounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── Wave dividers ───────────────────────────────────────────── */
.ltw-wave-div {
    display: block; width: 100%; overflow: hidden;
    line-height: 0; margin-bottom: -2px; position: relative; z-index: 10;
}
.ltw-wave-div svg { display: block; width: 100%; }

/* ── Section base ────────────────────────────────────────────── */
.ltw-section {
    padding: 96px 48px;
    position: relative; overflow: hidden; z-index: 10;
}
.ltw-section-inner { max-width: 1100px; margin: 0 auto; }
.ltw-eyebrow {
    display: inline-block; font-size: 11px; font-weight: 600;
    letter-spacing: 0.13em; text-transform: uppercase;
    margin-bottom: 12px; padding: 5px 14px; border-radius: 50px;
    background: var(--ltw-p200); color: var(--ltw-p700);
    font-family: 'Sora', 'Inter', sans-serif;
}
.ltw-eyebrow-dark { background: rgba(196,181,253,0.18); color: var(--ltw-p200); }
.ltw-section-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(26px, 3.8vw, 44px); font-weight: 800;
    letter-spacing: -1px; line-height: 1.15; margin-bottom: 14px;
}
.ltw-section-sub {
    font-size: 17px; line-height: 1.65; max-width: 560px;
    font-family: 'DM Sans', 'Inter', sans-serif;
}
.ltw-subtle-waves {
    position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
}

/* ── Scroll reveal ───────────────────────────────────────────── */
.ltw-reveal {
    opacity: 0; transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
                transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.ltw-reveal.ltw-visible { opacity: 1; transform: translateY(0); }
.ltw-d1 { transition-delay: 0.08s; }
.ltw-d2 { transition-delay: 0.16s; }
.ltw-d3 { transition-delay: 0.24s; }
.ltw-d4 { transition-delay: 0.32s; }

/* ── Goals section ───────────────────────────────────────────── */
.ltw-goals-section {
    background: linear-gradient(180deg, var(--ltw-p50) 0%, #fff 100%);
    color: #1e1b4b;
}
.ltw-goals-section .ltw-section-title { color: #1e1b4b; }
.ltw-goals-section .ltw-section-sub   { color: #6b7280; }
.ltw-goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px; margin-top: 52px;
}
.ltw-goal-card {
    border-radius: 22px; padding: 30px 26px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.ltw-goal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(109,40,217,0.13);
    border-color: var(--ltw-p400) !important;
}
.ltw-goal-icon {
    width: 50px; height: 50px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 18px;
    background: linear-gradient(135deg, var(--ltw-p200), var(--ltw-p300));
    box-shadow: 0 2px 8px rgba(139,92,246,0.2);
}
.ltw-goal-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 16px; font-weight: 700; color: #1e1b4b; margin-bottom: 8px;
}
.ltw-goal-desc { font-size: 13.5px; color: #6b7280; line-height: 1.6; }

.ltw-goal-icon-img {
    width: 100px !important;
    height: 100px !important;
    background: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 18px;
    overflow: hidden;
    flex-shrink: 0;
}
.ltw-goal-icon-img .ltw-goal-icon-image,
.ltw-goal-icon-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    display: block;
}
/* ── Benefits section ────────────────────────────────────────── */
.ltw-benefits-section {
    background: linear-gradient(180deg, #f0ebff 0%, var(--ltw-p200) 100%);
    color: #1e1b4b;
}
.ltw-benefits-section .ltw-section-title { color: #1e1b4b; }
.ltw-benefits-section .ltw-section-sub   { color: #4b5563; }
.ltw-benefits-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 52px; align-items: center; margin-top: 52px; min-width: 0;
}
.ltw-benefit-list { display: flex; flex-direction: column; gap: 16px; min-width: 0;}
.ltw-benefit-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 18px 20px; border-radius: 18px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.ltw-benefit-item:hover {
    background: rgba(255,255,255,0.93) !important;
    border-color: var(--ltw-p400) !important;
    transform: translateX(4px);
}
.ltw-benefit-dot {
    width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px;
    background: linear-gradient(135deg, var(--ltw-p500), var(--ltw-pink));
    display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.ltw-benefit-text h4 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 14px; font-weight: 700; color: #1e1b4b; margin-bottom: 3px;
}
.ltw-benefit-text p { font-size: 13px; color: #6b7280; line-height: 1.5; margin: 0; }
.ltw-stat-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0;
}
.ltw-stat-card {
    border-radius: 20px; padding: 26px 22px;
    text-align: center; color: #fff; position: relative; overflow: hidden;
}
.ltw-stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 45%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.22), transparent);
    pointer-events: none;
}
.ltw-stat-1 { background: linear-gradient(135deg, var(--ltw-p800), var(--ltw-p500)); }
.ltw-stat-2 { background: linear-gradient(135deg, var(--ltw-p500), var(--ltw-pink)); margin-top: 22px; }
.ltw-stat-3 { background: linear-gradient(135deg, var(--ltw-indigo), var(--ltw-p400)); margin-top: -22px; }
.ltw-stat-4 { background: linear-gradient(135deg, var(--ltw-p600), var(--ltw-indigo)); }
.ltw-stat-num {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 34px; font-weight: 800; letter-spacing: -1px;
    line-height: 1; margin-bottom: 5px; position: relative; z-index: 1;
}
.ltw-stat-label { font-size: 11px; opacity: 0.78; font-weight: 500; position: relative; z-index: 1; }

.ltw-benefit-dot-img {
    width: 100px !important;
    height: 100px !important;
    background: none;
    overflow: hidden;
    padding: 0;
    flex-shrink: 0;
}
.ltw-benefit-icon-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    display: block;
}

/* ── App section ─────────────────────────────────────────────── */
.ltw-app-section {
    background: linear-gradient(155deg, #4c1d95 0%, #2d1b69 100%);
    color: #fff;
}
.ltw-app-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center; margin-top: 52px;
}
.ltw-store-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.ltw-store-btn {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 22px; border-radius: 14px;
    color: #fff; font-family: inherit; cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s;
}
.ltw-store-btn:hover { transform: translateY(-2px); }
.ltw-store-icon { font-size: 22px; }
.ltw-store-sub  { font-size: 10px; opacity: 0.62; display: block; }
.ltw-store-name {
    font-size: 14px; font-weight: 700;
    font-family: 'Sora', 'Inter', sans-serif; display: block;
}
.ltw-coming-badge {
    display: inline-block; margin-top: 18px; font-size: 12px;
    color: var(--ltw-p200);
    background: rgba(196,181,253,0.12);
    border: 1px solid rgba(196,181,253,0.22);
    padding: 5px 14px; border-radius: 50px;
}
.ltw-phone-wrap { display: flex; justify-content: center; }
.ltw-phone {
    width: 210px; height: 430px; border-radius: 38px;
    background: linear-gradient(155deg, #6d40c4 0%, #2d1b69 100%);
    box-shadow: 0 40px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(196,181,253,0.14);
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    align-items: center; padding: 50px 18px 26px; gap: 12px;
}
.ltw-phone::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.08), transparent);
    pointer-events: none;
}
.ltw-phone-notch {
    position: absolute; top: 12px; width: 62px; height: 17px;
    background: rgba(0,0,0,0.5); border-radius: 20px;
}
.ltw-phone-item {
    width: 100%; padding: 10px 12px; border-radius: 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(196,181,253,0.18);
    font-size: 11px; color: rgba(255,255,255,0.82);
}
.ltw-phone-item strong {
    display: block; font-size: 9.5px; color: var(--ltw-p200);
    margin-bottom: 3px; font-family: 'Sora', 'Inter', sans-serif;
}
.ltw-phone-bar {
    width: 100%; height: 4px;
    background: rgba(255,255,255,0.1); border-radius: 4px;
    margin-top: 5px; overflow: hidden;
}
.ltw-phone-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ltw-p200), var(--ltw-pink));
    border-radius: 4px;
}
.ltw-phone-badge {
    margin-top: auto; font-size: 10px; font-weight: 600;
    font-family: 'Sora', 'Inter', sans-serif;
    color: var(--ltw-p200); text-align: center; opacity: 0.65;
}

/* ── Premium / Pricing ───────────────────────────────────────── */
.ltw-premium-section {
    background: linear-gradient(180deg, #fff 0%, var(--ltw-p50) 100%);
    color: #1e1b4b;
}
.ltw-premium-section .ltw-section-title { color: #1e1b4b; }
.ltw-premium-section .ltw-eyebrow {
    background: #fdf4ff; color: #7c3aed;
    border: 1px solid #ddd6fe;
}
.ltw-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px; margin-top: 52px; max-width: 840px;
}
.ltw-plan {
    border-radius: 24px; padding: 34px 30px;
    border: 2px solid transparent; position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex; flex-direction: column;
}
.ltw-plan:hover { transform: translateY(-5px); }
.ltw-plan-free { border-color: rgba(167,139,250,0.22); }
.ltw-plan-pro {
    background: rgba(76,29,149,0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-color: var(--ltw-p400);
    box-shadow: 0 20px 60px rgba(109,40,217,0.35),
                inset 0 1px 0 rgba(196,181,253,0.28);
    color: #fff;
}
.ltw-plan-pro::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
    pointer-events: none; border-radius: inherit;
}
.ltw-plan-popular {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--ltw-p500), var(--ltw-pink));
    color: #fff; font-size: 11px; font-weight: 700;
    font-family: 'Sora', 'Inter', sans-serif;
    padding: 4px 16px; border-radius: 50px; white-space: nowrap;
}
.ltw-plan-name {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: #6b7280; margin-bottom: 11px;
}
.ltw-plan-tagline {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 22px;
    line-height: 1.5;
}
.ltw-plan-price {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 46px; font-weight: 800;
    letter-spacing: -2px; line-height: 1;
    color: #1e1b4b; margin-bottom: 4px;
}
.ltw-plan-period { font-size: 13px; color: #9ca3af; margin-bottom: 26px; }
.ltw-plan-features { display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.ltw-plan-feat {
    display: flex; align-items: center; gap: 10px;
    font-size: 13.5px; color: #374151;
}
.ltw-feat-pro { color: rgba(255,255,255,0.86) !important; position: relative; z-index: 1; }
.ltw-feat-check {
    width: 19px; height: 19px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; background: #dcfce7; color: #166534;
}
.ltw-check-pro { background: rgba(196,181,253,0.22); color: var(--ltw-p200); }
.ltw-plan-cta {
    width: 100%; padding: 13px; border-radius: 14px;
    font-size: 14px; font-weight: 700; font-family: inherit;
    cursor: pointer; border: none;
    transition: transform 0.2s, opacity 0.2s; margin-top: auto;
}
.ltw-plan-cta-free { background: var(--ltw-p100); color: var(--ltw-p700); }
.ltw-plan-cta-free:hover { background: var(--ltw-p200); transform: translateY(-1px); }
.ltw-plan-cta-pro {
    background: linear-gradient(135deg, var(--ltw-p300), var(--ltw-pink));
    color: #fff;
    box-shadow: 0 4px 18px rgba(167,139,250,0.4);
    position: relative; z-index: 1;
}
.ltw-plan-cta-pro:hover { opacity: 0.9; transform: translateY(-2px); }

/* ── Footer ──────────────────────────────────────────────────── */
.ltw-footer {
    background: #1e0a4a;
    padding: 68px 48px 38px;
    position: relative; overflow: hidden; z-index: 10;
}
.ltw-footer-inner { max-width: 1100px; margin: 0 auto; }
.ltw-footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 44px; padding-bottom: 44px;
    border-bottom: 1px solid rgba(167,139,250,0.1);
    margin-bottom: 32px;
}
.ltw-footer-brand {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 19px; font-weight: 800;
    background: linear-gradient(135deg, #c4b5fd, #f0abfc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 10px;
}
.ltw-footer-tagline {
    font-size: 13.5px; color: rgba(255,255,255,0.4);
    line-height: 1.6; max-width: 270px; margin-bottom: 18px;
}
.ltw-footer-col-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--ltw-p200); margin-bottom: 14px;
}
.ltw-footer-links { display: flex; flex-direction: column; gap: 9px; list-style: none; }
.ltw-footer-links a {
    font-size: 13.5px; color: rgba(255,255,255,0.42);
    text-decoration: none; transition: color 0.2s;
}
.ltw-footer-links a:hover { color: var(--ltw-p200); }
.ltw-footer-bottom {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.ltw-footer-copy { font-size: 12.5px; color: rgba(255,255,255,0.26); }
.ltw-footer-legal { display: flex; gap: 18px; }
.ltw-footer-legal a {
    font-size: 12.5px; color: rgba(255,255,255,0.26);
    text-decoration: none; transition: color 0.2s;
}
.ltw-footer-legal a:hover { color: var(--ltw-p200); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .ltw-section { padding: 72px 24px; }
    .ltw-benefits-layout { grid-template-columns: 1fr; }
    .ltw-app-layout { grid-template-columns: 1fr; }
    .ltw-phone-wrap { order: -1; }
    .ltw-footer-top { grid-template-columns: 1fr 1fr; }
    .ltw-footer-brand-col { grid-column: 1 / -1; }
    .ltw-hero-content { padding: 100px 20px 60px; }
    .ltw-search { max-width: 100%; }
    .ltw-navbar { padding: 6px 8px 6px 12px; gap: 2px; }
    .ltw-nav-link { padding: 6px 8px; font-size: 12px; }
}