/* ══════════════════════════════════════════════════
   Sensei Server — Server-Only Styles
   Landing (lv2-), Auth (av2-), Sidebar + Dashboard (dv2-).
   Shared rules live in shared.css (UI project).
   ══════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════
   LV2 — Landing v2 (Duolingo Theme)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
.landing-v2 *, .landing-v2 *::before, .landing-v2 *::after { box-sizing: border-box; }

/* ── Header ── */
.lv2-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: #fff; border-bottom: 2px solid #E5E7EB;
    height: 64px; display: flex; align-items: center;
}
.lv2-header-inner {
    max-width: 1100px; margin: 0 auto; width: 100%;
    padding: 0 24px; display: flex; align-items: center; justify-content: space-between;
}
.lv2-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.lv2-brand-icon { font-size: 28px; line-height: 1; }
.lv2-brand-name {
    font-family: 'Nunito', system-ui, sans-serif; font-weight: 800;
    font-size: 22px; color: #3C3C3C; letter-spacing: -0.3px;
}
.lv2-header-actions { display: flex; align-items: center; gap: 10px; }

/* ── Buttons ── */
.lv2-btn {
    font-family: 'Nunito', system-ui, sans-serif; font-weight: 800;
    text-decoration: none; display: inline-flex; align-items: center;
    justify-content: center; border-radius: 999px; cursor: pointer;
    transition: background 0.15s, transform 0.1s, border-bottom-width 0.1s;
    letter-spacing: 0.04em; text-transform: uppercase; border: none;
}
.lv2-btn-primary {
    background: #58CC02; color: #fff;
    border-bottom: 4px solid #58A700;
}
.lv2-btn-primary:hover { background: #46A302; color: #fff; text-decoration: none; }
.lv2-btn-primary:active { transform: translateY(2px); border-bottom-width: 2px; }
.lv2-btn-secondary {
    background: #fff; color: #3C3C3C;
    border: 2px solid #E5E7EB; border-bottom: 4px solid #D1D5DB;
}
.lv2-btn-secondary:hover { background: #F7F7F7; color: #3C3C3C; text-decoration: none; }
.lv2-btn-sm { font-size: 13px; padding: 8px 18px; }
.lv2-btn-hero { font-size: 17px; padding: 14px 32px; }
.lv2-btn-cta { font-size: 16px; padding: 14px 32px; }
.lv2-btn-white-green {
    background: #fff; color: #58CC02;
    border: 2px solid #fff; border-bottom: 4px solid rgba(0,0,0,0.15);
}
.lv2-btn-white-green:hover { background: #F0FBE9; color: #46A302; text-decoration: none; }
@media (max-width: 480px) { .lv2-btn-login-hide { display: none; } }

/* ── Main ── */
.lv2-main { padding-top: 64px; }

/* ── Hero ── */
.lv2-hero {
    min-height: 560px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #F0FBE9 0%, #fff 100%);
    text-align: center; padding: 60px 24px 80px; position: relative; overflow: hidden;
}
.lv2-hero-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 600px; }
.lv2-hero-title {
    font-family: 'Nunito', system-ui, sans-serif; font-weight: 800;
    font-size: clamp(32px, 5vw, 52px); color: #3C3C3C;
    line-height: 1.15; margin: 0;
}
.lv2-hero-sub {
    font-family: 'Nunito', system-ui, sans-serif; font-weight: 700;
    font-size: 18px; color: #777777; margin: 0; line-height: 1.5;
}
.lv2-hero-signin {
    font-family: 'Nunito', system-ui, sans-serif; font-weight: 700;
    font-size: 14px; color: #58CC02; text-decoration: none;
}
.lv2-hero-signin:hover { text-decoration: underline; }
.lv2-br-desktop { display: none; }
@media (min-width: 600px) { .lv2-br-desktop { display: block; } }
.lv2-br-sm { display: none; }
@media (max-width: 480px) { .lv2-br-sm { display: block; } }

/* ── Owl Mascot ── */
.lv2-owl-wrap {
    position: relative; width: 200px; height: 200px;
    display: flex; align-items: center; justify-content: center;
    animation: lv2OwlBounce 2.4s ease-in-out infinite;
}
.lv2-owl-glow {
    position: absolute; inset: -20px; border-radius: 50%;
    background: radial-gradient(circle, rgba(88,204,2,0.18) 0%, transparent 70%);
    animation: lv2Pulse 2.4s ease-in-out infinite;
}
.lv2-owl-kimono {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 16px; background: #1CB0F6; border-radius: 8px 8px 0 0;
}
.lv2-owl-headband {
    position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
    width: 56px; height: 10px; background: #FF4B4B; border-radius: 5px;
}
.lv2-owl-headband-knot {
    position: absolute; right: -4px; top: -4px;
    width: 18px; height: 18px; background: #FF4B4B; border-radius: 50%;
}
.lv2-owl-scroll {
    position: absolute; right: -10px; bottom: 20px;
    font-size: 24px; transform: rotate(15deg);
}
.lv2-owl-bubble {
    position: absolute; top: -18px; right: -60px;
    background: #fff; border: 2px solid #E5E7EB; border-radius: 12px;
    padding: 4px 10px; font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 800; font-size: 12px; color: #3C3C3C; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
@keyframes lv2OwlBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes lv2Pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* ── Confetti Dots ── */
.lv2-confetti {
    position: absolute; border-radius: 50%; opacity: 0.5; pointer-events: none;
    animation: lv2OwlBounce 3s ease-in-out infinite;
}
.lv2-confetti-1 { width: 16px; height: 16px; background: #FFC800; top: 18%; left: 12%; animation-delay: 0s; }
.lv2-confetti-2 { width: 10px; height: 10px; background: #FF4B4B; top: 30%; right: 10%; animation-delay: 0.6s; }
.lv2-confetti-3 { width: 12px; height: 12px; background: #1CB0F6; bottom: 25%; left: 8%; animation-delay: 1.2s; }
.lv2-confetti-4 { width: 8px; height: 8px; background: #58CC02; bottom: 20%; right: 14%; animation-delay: 1.8s; }

/* ── Sections ── */
.lv2-section { padding: 64px 24px; }
.lv2-section-gray { background: #F7F7F7; }
.lv2-section-white { background: #fff; }
.lv2-section-green { background: #58CC02; }
.lv2-section-bordered { border-top: 2px solid #E5E7EB; border-bottom: 2px solid #E5E7EB; }
.lv2-container { max-width: 1000px; margin: 0 auto; }
.lv2-text-center { text-align: center; }
.lv2-text-left { text-align: left; }
.lv2-section-title {
    font-family: 'Nunito', system-ui, sans-serif; font-weight: 800;
    font-size: clamp(24px, 3vw, 34px); color: #3C3C3C; margin: 0 0 32px;
    text-align: center;
}
.lv2-section-green .lv2-section-title { color: #fff; }

/* ── Steps Grid ── */
.lv2-steps-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px;
}
.lv2-step-card {
    background: #fff; border: 2px solid #E5E7EB; border-radius: 20px;
    padding: 28px 20px; text-align: center; position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.lv2-step-number {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: #58CC02; color: #fff; width: 28px; height: 28px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: 'Nunito', system-ui, sans-serif; font-weight: 800; font-size: 14px;
}
.lv2-step-emoji { font-size: 36px; margin-bottom: 12px; display: block; }
.lv2-step-title {
    font-family: 'Nunito', system-ui, sans-serif; font-weight: 800;
    font-size: 15px; color: #3C3C3C; margin: 0;
}

/* ── Pill Bar ── */
.lv2-pill-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.lv2-pill {
    font-family: 'Nunito', system-ui, sans-serif; font-weight: 800;
    font-size: 14px; padding: 8px 16px; border-radius: 999px;
    display: flex; align-items: center; gap: 6px;
}
.lv2-pill-count { font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 800; }
.lv2-pill-count-light { background: rgba(255,255,255,0.25); color: #fff; }
.lv2-pill-count-dark { background: rgba(0,0,0,0.12); color: inherit; }

/* ── BYOB ── */
.lv2-byob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 640px) { .lv2-byob-grid { grid-template-columns: 1fr; } }
.lv2-byob-steps { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.lv2-byob-step {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border: 2px solid #E5E7EB; border-radius: 16px; padding: 14px 16px;
}
.lv2-byob-step--indent1 { margin-left: 20px; }
.lv2-byob-step--indent2 { margin-left: 40px; }
.lv2-byob-step-num {
    background: #58CC02; color: #fff; width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Nunito', system-ui, sans-serif; font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.lv2-byob-step-title { font-family: 'Nunito', system-ui, sans-serif; font-weight: 800; font-size: 14px; color: #3C3C3C; margin: 0 0 2px; }
.lv2-byob-step-desc { font-family: 'Nunito', system-ui, sans-serif; font-size: 13px; color: #777; margin: 0; }
.lv2-byob-step-icon { font-size: 22px; margin-left: auto; }
.lv2-byob-right { display: flex; align-items: center; justify-content: center; }
.lv2-byob-illustration { position: relative; width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; }
.lv2-byob-book { font-size: 80px; }
.lv2-byob-owl { position: absolute; bottom: 10px; right: 10px; font-size: 48px; }
.lv2-byob-sparkle1 { position: absolute; top: 20px; right: 20px; font-size: 28px; animation: lv2OwlBounce 2s infinite; }
.lv2-byob-sparkle2 { position: absolute; top: 30px; left: 10px; font-size: 24px; animation: lv2OwlBounce 2.5s infinite 0.5s; }

/* ── Why / Quote ── */
.lv2-why-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.lv2-why-owl-wrap { position: relative; font-size: 56px; }
.lv2-why-grad { position: absolute; top: -8px; right: -16px; font-size: 28px; }
.lv2-quote-card {
    background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.4);
    border-radius: 20px; padding: 28px 32px; max-width: 480px; text-align: center; position: relative;
}
.lv2-quote-mark {
    font-family: Georgia, serif; font-size: 72px; color: rgba(255,255,255,0.5);
    line-height: 0.5; position: absolute; top: 20px; left: 20px;
}
.lv2-quote-text {
    font-family: 'Nunito', system-ui, sans-serif; font-weight: 800;
    font-size: 20px; color: #fff; margin: 0; line-height: 1.4;
}
.lv2-quote-highlight {
    background: #fff; color: #58CC02; border-radius: 6px;
    padding: 0 6px; display: inline-block;
}

/* ── Features Grid ── */
.lv2-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.lv2-feature-card {
    background: #fff; border: 2px solid #E5E7EB; border-radius: 20px;
    padding: 24px; display: flex; gap: 16px; align-items: flex-start;
}
.lv2-feature-icon {
    width: 52px; height: 52px; border-radius: 14px; border-bottom: 4px solid #ccc;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; flex-shrink: 0;
}
.lv2-feature-title { font-family: 'Nunito', system-ui, sans-serif; font-weight: 800; font-size: 16px; color: #3C3C3C; margin: 0 0 6px; }
.lv2-feature-desc { font-family: 'Nunito', system-ui, sans-serif; font-size: 14px; color: #777; margin: 0; line-height: 1.5; }

/* ── CTA Section ── */
.lv2-cta-section {
    background: linear-gradient(135deg, #58CC02 0%, #46A302 100%);
    padding: 80px 24px; text-align: center; position: relative; overflow: hidden;
}
.lv2-cta-bg-owl { position: absolute; left: -40px; bottom: -20px; font-size: 160px; opacity: 0.07; pointer-events: none; }
.lv2-cta-bg-fire { position: absolute; right: -20px; top: -20px; font-size: 120px; opacity: 0.07; pointer-events: none; }
.lv2-cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.lv2-cta-owl-peek { font-size: 48px; animation: lv2OwlBounce 2s ease-in-out infinite; }
.lv2-cta-card { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.lv2-cta-title {
    font-family: 'Nunito', system-ui, sans-serif; font-weight: 800;
    font-size: clamp(22px, 4vw, 36px); color: #fff; margin: 0; max-width: 500px;
}

/* ── Footer ── */
.lv2-footer {
    background: #fff; border-top: 2px solid #E5E7EB;
    padding: 40px 24px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.lv2-footer-brand { display: flex; align-items: center; gap: 8px; font-size: 24px; }
.lv2-footer-name { font-family: 'Nunito', system-ui, sans-serif; font-weight: 800; font-size: 20px; color: #3C3C3C; }
.lv2-footer-tagline { font-family: 'Nunito', system-ui, sans-serif; font-size: 14px; color: #AFAFAF; margin: 0; }
.lv2-footer-links { display: flex; gap: 20px; }
.lv2-footer-links a { font-family: 'Nunito', system-ui, sans-serif; font-size: 13px; font-weight: 700; color: #AFAFAF; text-decoration: none; }
.lv2-footer-links a:hover { color: #3C3C3C; }

/* ═══════════════════════════════════════════════════════════════════
   DV2 — Dashboard v2 (Duolingo Sidebar + Dashboard)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Layout ── */

.dv2-layout {
    display: flex;
    min-height: 100vh;
    background: #F7F7F7;
}

/* ── Sidebar ── */

.dv2-sidebar {
    width: 240px;
    min-width: 240px;
    background: #fff;
    border-right: 2px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.dv2-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 20px 20px;
    border-bottom: 2px solid #E5E7EB;
}

.dv2-brand-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dv2-brand-owl {
    font-size: 28px;
    line-height: 1;
    display: block;
    position: relative;
    z-index: 1;
}

.dv2-brand-headband {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 5px;
    background: #FF4B4B;
    border-radius: 3px;
    z-index: 2;
}

.dv2-brand-kimono {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 8px;
    background: #1CB0F6;
    border-radius: 4px 4px 0 0;
    z-index: 0;
}

.dv2-brand-name {
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #3C3C3C;
    margin: 0;
    letter-spacing: -0.3px;
}

/* ── Nav ── */

.dv2-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 12px;
    flex: 1;
}

.dv2-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #777777;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    border: 2px solid transparent;
}

.dv2-nav-link:hover {
    background: #F0FBE9;
    color: #58CC02;
    text-decoration: none;
}

.dv2-nav-active {
    background: #F0FBE9 !important;
    color: #58CC02 !important;
    border-color: #58CC02 !important;
}

.dv2-nav-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ── Sidebar Footer ── */

.dv2-sidebar-footer {
    padding: 16px 12px;
    border-top: 2px solid #E5E7EB;
}

.dv2-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #AFAFAF;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.dv2-logout:hover {
    background: #FFF0F0;
    color: #FF4B4B;
    text-decoration: none;
}

.dv2-footer-link {
    display: block;
    padding: 6px 16px;
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #AFAFAF;
    text-decoration: none;
    transition: color 0.15s;
}

.dv2-footer-link:hover {
    color: #777777;
    text-decoration: none;
}

/* ── Main Content Area ── */

.dv2-main {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    background: #F7F7F7;
}

/* ── Mobile Bottom Nav (web only, <=768px) ── */

.dv2-mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    .dv2-sidebar { display: none; }

    .dv2-mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #fff;
        border-top: 2px solid #E5E5E5;
        z-index: 100;
        justify-content: space-around;
        align-items: center;
        padding: 0 4px;
    }

    .dv2-main {
        padding-bottom: 68px;
    }
}

.dv2-mobnav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #AFAFAF;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.68rem;
    transition: color 0.15s;
}
.dv2-mobnav-link:hover { color: #777; }
.dv2-mobnav-active {
    color: #58CC02 !important;
}
.dv2-mobnav-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
