:root {
    --sky: #f1f5f8;
    --sky-2: #ffffff;
    --white: #ffffff;
    --ink: #243044;
    --muted: #6d7382;
    --line: #ece7dc;
    --blue: #341c77;
    --blue-2: #27145c;
    --green: #02b890;
    --sun: #fdb510;
    --coral: #f33b10;
    --pink: #ff8ad4;
    --lilac: #f4eefe;
    --navy: #341c77;
    --gold: #fdb510;
    --danger: #c43838;
    --shadow: 0 16px 36px rgba(52, 28, 119, 0.12);
    --display: "Lobster Two", "Dosis", cursive;
    --sans: "Dosis", "Avenir Next", sans-serif;
    --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.6;
}

img { max-width: 100%; }

a { color: inherit; }

h1, h2, h3, legend {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
    color: var(--navy);
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }

h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }

p { margin: 0; }

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--blue);
    color: white;
    padding: 0.5rem 0.8rem;
    z-index: 20;
    border-radius: 999px;
}

.skip:focus { top: 1rem; }

.wrap {
    width: min(var(--max), calc(100% - 2.4rem));
    margin-inline: auto;
}

.topbar {
    background: var(--gold);
    color: white;
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-height: 46px;
    font-weight: 700;
}

.topbar a { color: white; text-decoration: none; }

.topbar p { margin-right: auto; }

.top-cta {
    background: var(--navy);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    padding: 0.35rem 0.8rem;
    font-weight: 700;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
}

.header-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 108px;
    gap: 1rem;
}

.header-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.header-end form { margin: 0; }

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img, .login-logo {
    display: block;
    height: 96px;
    width: auto;
    background: transparent;
}

.login-screen {
    background:
        radial-gradient(520px 220px at 0% 0%, rgba(253, 181, 16, 0.16), transparent 70%),
        radial-gradient(460px 240px at 100% 100%, rgba(109, 61, 240, 0.08), transparent 68%),
        #f4f1f8;
    padding: 1.35rem 1.25rem 2rem;
}

.login-gate {
    width: min(920px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: stretch;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(52, 28, 119, 0.12);
}

.login-phone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 1.35rem 1.15rem 1.2rem;
    text-align: center;
    background:
        radial-gradient(220px 140px at 0% 0%, rgba(253, 181, 16, 0.28), transparent 72%),
        linear-gradient(180deg, #f6f1ff, #efe8fb);
}

.login-phone .phone {
    background: #111;
    border: 0;
    border-radius: 32px;
    padding: 7px;
    box-shadow: 0 16px 28px rgba(39, 20, 92, 0.16);
}

.login-phone img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 26px;
}

.login-phone figcaption {
    margin-top: 0.75rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--navy);
}

.login-choice {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.login-choice .button-ghost,
.login-choice .button-ghost:hover {
    background: white;
    color: var(--navy) !important;
    box-shadow: inset 0 0 0 2px #c5d4ff;
}

.login-choice .button-ghost:hover { background: #f4f1fb; }

.login-card.is-form .login-choice { display: none; }

.login-form { display: none; }

.login-form.is-open { display: block; }

.login-register-note,
.login-steps {
    margin: 0.85rem 0 0;
    padding: 0.75rem 0.85rem 0.8rem;
    border-radius: 12px;
    background: #fff1f0;
    color: #b42318;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
}

.login-register-note p { margin: 0; }

.login-register-note .register-steps {
    margin-top: 0.55rem;
    color: #9f1c14;
}

.login-register-note .store-link { margin-top: 0.75rem; }

.login-steps ol {
    margin: 0.45rem 0 0;
    padding-left: 1.15rem;
}

.login-steps li + li { margin-top: 0.35rem; }

.login-steps .store-link { margin-top: 0.75rem; }

.register-dialog { text-align: left; }

.register-steps {
    margin: 0.75rem 0 0;
    padding-left: 1.15rem;
    color: var(--navy);
    font-weight: 700;
}

.register-steps li + li { margin-top: 0.35rem; }

.register-dialog .store-link { margin-top: 0.9rem; }

.login-register-note a,
.login-steps a {
    color: #b42318;
    font-weight: 800;
    text-underline-offset: 0.15em;
}

.login-screen > .login-card {
    width: min(420px, 100%);
    margin: 0.4rem auto 0;
    border-radius: 24px;
    box-shadow: 0 22px 48px rgba(52, 28, 119, 0.12);
    padding: 1.65rem 1.45rem 1.3rem;
}

.login-screen > .login-card .login-logo {
    width: 96px;
    margin-bottom: 0.45rem;
}

.login-screen > .login-card h1 { font-size: 1.55rem; }

.login-screen > .login-card .lede {
    font-size: 0.95rem;
    max-width: none;
    margin-bottom: 0.95rem;
}

.reset-path {
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    list-style: none;
    margin: 0 0 1.05rem;
    padding: 0;
}

.reset-path li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.15;
}

.reset-path span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #efe8fb;
    color: var(--navy);
    font-size: 0.72rem;
}

.reset-path .is-current { color: var(--navy); }

.reset-path .is-current span {
    background: var(--navy);
    color: #fff;
}

.login-screen > .login-card .text-button { margin-top: 0.45rem; }

.login-card {
    width: 100%;
    margin: 0;
    background: white;
    border-radius: 0;
    box-shadow: none;
    padding: 1.45rem 1.6rem 1.3rem;
    text-align: center;
}

.login-card .login-logo {
    width: 118px;
    height: auto;
    margin: 0 auto 0.7rem;
    background: transparent;
}

.login-card h1 {
    font-family: var(--sans);
    font-size: clamp(1.45rem, 2vw, 1.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.35rem;
    overflow-wrap: break-word;
}

.login-card .lede {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.45;
    max-width: 28rem;
    margin: 0 auto 1rem;
}

.login-card form { text-align: left; }

.login-card .field {
    gap: 0.3rem;
    margin-bottom: 0.7rem;
}

.login-card .field span { font-size: 0.95rem; }

.login-card input {
    background: #faf8f4;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    min-height: 48px;
}

.login-card .field-error {
    margin: -0.25rem 0 0.7rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: #fff1f0;
    color: #b42318;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

.login-email-field { position: relative; }

.saved-logins {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    top: calc(100% - 0.15rem);
    margin: 0;
    padding: 0.3rem;
    list-style: none;
    background: #fff;
    border: 2px solid #e4e0d8;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.saved-logins button {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--navy);
    font: inherit;
    font-weight: 800;
    text-align: left;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
}

.saved-logins button:hover { background: #f4f1fb; }

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.1rem 0 0.85rem;
    font-weight: 800;
    color: var(--navy);
}

.remember-me input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--blue);
}

.forgot-password {
    margin: -0.2rem 0 0.85rem;
    justify-content: flex-start;
    font-size: 0.92rem;
}

.password-field { position: relative; display: block; }

.password-field input { padding-right: 3rem; }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
}

.password-toggle svg { width: 22px; height: 22px; }

.password-toggle .eye-off,
.password-toggle.is-visible .eye-open { display: none; }

.password-toggle.is-visible .eye-off { display: block; }

.login-card .button {
    width: 100%;
    margin-top: 0.2rem;
    min-height: 48px;
    border-radius: 12px;
}

.verify-email {
    margin: -0.4rem auto 1.3rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #f7f4ff;
    color: var(--navy);
    font-weight: 800;
    word-break: break-word;
}

.login-note {
    margin: -0.8rem auto 1.2rem;
    color: var(--navy);
    font-weight: 700;
}

.code-expiry {
    margin: -0.4rem auto 1.1rem;
    color: var(--muted);
    font-weight: 700;
}

.code-expiry strong { color: #c2410c; }

.code-expiry.is-expired strong { color: var(--coral); }

.otp-card .kicker { margin-bottom: 0.35rem; }

.otp-card .lede strong {
    color: var(--navy);
    font-weight: 800;
}

.otp-boxes {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.2rem 0 1.15rem;
}

.login-card .otp-digit {
    width: 64px;
    height: 72px;
    min-height: 0;
    padding: 0;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    background: #faf8ff;
    border: 2px solid #e6e0f2;
    border-radius: 16px;
    caret-color: var(--gold);
}

.otp-digit:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(253, 181, 16, 0.28);
    background: white;
}

.otp-boxes.is-invalid .otp-digit { border-color: var(--coral); }

.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.85rem;
    background: none;
    border: 0;
    color: var(--navy);
    font: inherit;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button-spinner {
    display: none;
    width: 16px;
    height: 16px;
    margin-right: 0.55rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    animation: button-spin 0.7s linear infinite;
}

.text-button .button-spinner {
    border-color: rgba(52, 28, 119, 0.2);
    border-top-color: var(--navy);
}

.is-loading {
    cursor: wait;
    opacity: 0.9;
}

.is-loading .button-spinner { display: inline-block; }

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

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.15rem;
}

.site-nav form { margin: 0; }

.site-nav a, .nav-text {
    text-decoration: none;
    color: var(--ink);
    font-weight: 800;
}

.site-nav a {
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
}

.site-nav a.is-current,
.site-nav a:hover,
.nav-text:hover { color: var(--blue); }

.site-nav a:hover { background: #f3eefc; }

.nav-cta, .button, .button-sun, .button-ghost, .button-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nav-cta, .button {
    background: var(--blue);
    color: white !important;
}

.nav-cta:hover, .button:hover { background: var(--blue-2); }

.nav-logout,
.nav-logout:hover { background: #e23b2f; color: #fff !important; }

.nav-logout:hover { background: #c42818; }

.confirm-dialog {
    width: min(26rem, calc(100% - 2rem));
    border: 0;
    border-radius: 20px;
    padding: 1.45rem 1.4rem 1.25rem;
    box-shadow: var(--shadow);
}

.confirm-dialog::backdrop { background: rgba(36, 20, 70, 0.45); }

.confirm-dialog h2 {
    font-family: var(--sans);
    font-size: 1.45rem;
    font-weight: 800;
}

.confirm-dialog p {
    margin-top: 0.4rem;
    color: var(--muted);
    font-weight: 700;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1.15rem;
}

.debug-plan-actions {
    flex-wrap: wrap;
}

.debug-plan-actions form { margin: 0; }

.debug-plan-actions .button-ghost {
    background: #f4f1fb;
    color: var(--navy) !important;
}

.confirm-actions .button { min-height: 46px; }

.confirm-actions .button-ghost {
    background: #f4f1fb;
    color: var(--navy) !important;
    box-shadow: none;
}

.button-sun {
    background: var(--sun);
    color: #1b1b1b !important;
}

.button-light {
    background: white;
    color: var(--navy) !important;
}

.button-ghost {
    background: white;
    color: var(--blue);
    box-shadow: inset 0 0 0 3px #c9ddff;
}

.nav-cta:hover,
.button:hover,
.button-sun:hover,
.button-light:hover,
.button-ghost:hover,
.confirm-actions .button-ghost:hover,
.nav-logout:hover {
    color: #fff !important;
}

.nav-text {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
    min-height: 0;
}

.nav-toggle {
    display: none;
    border: 0;
    background: var(--sky);
    color: var(--navy);
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    font: inherit;
    font-weight: 800;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
    padding: 2.2rem 0 1rem;
}

.page-hero {
    background: var(--navy);
    color: white;
    border-radius: 0;
    padding: 3rem 1.5rem;
    box-shadow: none;
    margin-top: 0;
    text-align: center;
}

.page-hero h1, .page-hero .lede { color: white; }

.page-hero .lede { margin-inline: auto; }

.page-hero .store-links {
    justify-content: center;
    margin-top: 1.4rem;
}

.features-hero {
    padding: 3.6rem 1.5rem 2.8rem;
    background:
        radial-gradient(520px 220px at 12% 0%, rgba(253, 181, 16, 0.28), transparent 70%),
        radial-gradient(460px 240px at 92% 110%, rgba(2, 184, 144, 0.22), transparent 68%),
        var(--navy);
}

.feature-jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.35rem;
}

.feature-jump a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.feature-jump a:hover {
    color: var(--navy);
    background: var(--gold);
    border-color: var(--gold);
}

.page-hero.wrap, .page-hero.narrow {
    width: 100%;
    max-width: none;
}

.eyebrow, .kicker {
    display: inline-block;
    color: var(--gold);
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.kicker-dark { color: var(--coral); }

.page-hero .eyebrow { color: var(--gold); background: none; }

.lede {
    margin-top: 0.9rem;
    max-width: 38rem;
    color: var(--muted);
    font-size: 1.15rem;
    font-weight: 700;
}

.hero-actions, .steps .button { margin-top: 1.4rem; }

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-art img, .photo-row img {
    width: 100%;
    object-fit: cover;
    border-radius: 32px;
}

.hero-art img { height: 420px; box-shadow: var(--shadow); }

.photo-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 0.9rem;
    padding-bottom: 0.4rem;
}

.photo-row img { height: 240px; box-shadow: var(--shadow); }

.photo-row img.logo-card {
    object-fit: contain;
    background: #fff;
}

.phone {
    background: linear-gradient(180deg, #ffffff 0%, #f6f3ec 100%);
    border: 1px solid #efeae2;
    border-radius: 42px;
    padding: 10px;
    box-shadow: 0 22px 44px rgba(24, 49, 82, 0.14);
}

.features .phone img,
.shot-row .phone img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    object-fit: contain;
    border-radius: 32px;
    background: white;
}

.app-shots { padding-top: 0.6rem; }

.gallery-block .app-shots { text-align: center; }

.app-shots h2 { margin-bottom: 0.35rem; }

.shot-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0 1.4rem;
    scrollbar-width: none;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
}

.shot-row::-webkit-scrollbar { display: none; }

.shot-row figure {
    flex: 0 0 210px;
    margin: 0;
    scroll-snap-align: start;
}

.shot-row .phone { border-radius: 36px; padding: 8px; }

.shot-row figcaption {
    margin-top: 0.55rem;
    text-align: center;
    font-family: var(--display);
    font-weight: 700;
    color: var(--navy);
}

.play-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    padding: 0.4rem;
}

.bubble {
    min-height: 118px;
    border-radius: 32px;
    display: grid;
    place-items: end start;
    padding: 1rem;
    color: white;
    font-family: var(--display);
    font-size: 1.7rem;
    box-shadow: var(--shadow);
}

.b1 { background: #14bf96; }
.b2 { background: #1865f2; }
.b3 { background: #7c5cff; }
.b4 { background: #ffb100; color: #183152; }
.b5 { background: #ff7a59; }
.b6 { background: #ff8ad4; color: #183152; }

.trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.4rem 0 2.4rem;
}

.trust article, .summary, .form-card form, .form-card-inner, .checkout-form, .panel {
    background: white;
    border-radius: 28px;
    padding: 1.3rem 1.25rem 1.4rem;
    box-shadow: var(--shadow);
}

.trust h2 { font-size: 1.45rem; margin: 0.55rem 0 0.4rem; }

.features-canvas {
    background:
        radial-gradient(640px 280px at 0% 8%, rgba(253, 181, 16, 0.16), transparent 70%),
        radial-gradient(520px 260px at 100% 40%, rgba(2, 184, 144, 0.1), transparent 68%),
        #f7f4fb;
}

.features {
    display: grid;
    gap: 1.15rem;
    padding: 1.7rem 0 3.2rem;
}

.features article {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    align-items: center;
    gap: 2.2rem;
    scroll-margin-top: 8rem;
    background: white;
    border-radius: 32px;
    padding: 1.7rem 1.7rem 1.7rem 2rem;
    box-shadow: 0 18px 40px rgba(52, 28, 119, 0.07);
}

.features article:nth-child(even) { grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr); }

.features article:nth-child(even) .feature-copy { order: 2; }

.features h2 {
    font-size: clamp(2.15rem, 3vw, 2.85rem);
    margin: 0.15rem 0 0.7rem;
    line-height: 1.05;
}

.features .feature-copy p {
    max-width: 36rem;
    color: #4a5364;
    font-size: 1.08rem;
    line-height: 1.55;
    font-weight: 600;
}

.features .feature-copy p + p { margin-top: 0.7rem; }

.features .feature-copy ul {
    list-style: none;
    margin: 1.05rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.features .feature-copy li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    max-width: 36rem;
    padding: 0.55rem 0.75rem;
    border-radius: 14px;
    background: #fff4d4;
    color: var(--navy);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.4;
}

.features .feature-copy li::before {
    content: "";
    width: 12px;
    height: 12px;
    margin-top: 0.28rem;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(253, 181, 16, 0.45);
    flex: none;
}

.features .tag { margin: 0 0 0.55rem; }

.features .tag-free { background: #e7f8f3; color: #0b7a62; }
.features .tag-preview { background: #fff1ea; color: #c2410c; }
.features .tag-premium { background: #fff4d4; color: #8a5a00; }

.feature-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 430px;
}

.feature-stage::before {
    content: "";
    position: absolute;
    width: min(292px, 86%);
    height: 92%;
    border-radius: 46px;
    background: var(--stage, #fff6dc);
}

.features .phone {
    position: relative;
    z-index: 1;
    width: min(248px, 100%);
    margin-inline: auto;
    background: #111;
    border: 0;
    border-radius: 36px;
    padding: 8px;
    box-shadow: 0 24px 40px rgba(39, 20, 92, 0.18);
}

.stage-gold { --stage: #ffe7a3; }
.stage-teal { --stage: #c8f6ea; }
.stage-lilac { --stage: #e4d9fb; }
.stage-coral { --stage: #ffd5c8; }
.stage-pink { --stage: #ffd6ee; }
.stage-navy { --stage: #ddd4f6; }

.trust p, .summary p, .pay-note, .fine-print, .updated { color: var(--muted); }

.chip {
    display: inline-block;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 800;
    color: white;
}

.chip-blue { background: var(--blue); }
.chip-green { background: var(--green); }
.chip-sun { background: var(--sun); color: var(--navy); }

.tag {
    display: inline-block;
    margin-bottom: 0.7rem;
    background: var(--lilac);
    color: #5b3cc4;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
}

.band {
    background: linear-gradient(180deg, #fff4cc, #ffe08a);
    border-radius: 40px;
    margin: 0.4rem auto 0.2rem;
    width: min(1180px, calc(100% - 1.2rem));
    padding: 3.2rem 0;
}

.band .eyebrow { background: white; color: #9a6200; }

.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: start;
}

.band p { margin-top: 0.8rem; color: #3d4d12; max-width: 36rem; font-weight: 700; }

.text-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--blue);
    font-weight: 800;
}

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.checklist li {
    background: white;
    border-radius: 22px;
    padding: 0.9rem 1rem;
    font-weight: 800;
    box-shadow: 0 8px 0 rgba(255, 177, 0, 0.35);
}

.steps { padding: 3.2rem 0 3.6rem; background: white; }

.steps ol {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    margin: 2rem 0 0;
    padding: 0;
    position: relative;
}

.steps ol::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 16%;
    right: 16%;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--green) 52%, var(--coral));
    border-radius: 99px;
}

.steps li {
    background: transparent;
    border-radius: 0;
    padding: 0 0.6rem;
    box-shadow: none;
    text-align: center;
}

.steps li span {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 0.9rem;
    border-radius: 50%;
    background: var(--blue);
    color: white;
    font-family: var(--display);
    font-size: 1.35rem;
    position: relative;
    z-index: 1;
    border: 5px solid white;
    box-shadow: 0 0 0 3px #efe8fb;
}

.steps li:nth-child(2) span { background: var(--green); }
.steps li:nth-child(3) span { background: var(--coral); }

.steps h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }

.steps p { color: var(--muted); font-weight: 700; }

.narrow { width: min(720px, calc(100% - 2.4rem)); }

.checkout {
    display: grid;
    grid-template-columns: 1.35fr 0.75fr;
    gap: 1rem;
    align-items: start;
    padding: 1.2rem 0 4rem;
}

fieldset { border: 0; margin: 0 0 1.2rem; padding: 0; }

legend { font-size: 1.45rem; margin-bottom: 0.7rem; }

.plan-grid, .method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.method-grid { grid-template-columns: repeat(3, 1fr); }

.plan, .method {
    display: grid;
    gap: 0.15rem;
    background: var(--sky);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    box-shadow: inset 0 0 0 2px transparent;
}

.plan:has(input:checked), .method:has(input:checked) {
    background: #fff8e4;
    box-shadow: inset 0 0 0 2px var(--gold);
}

.plan input, .method input { accent-color: var(--blue); }

.plan-label, .method span, .field span { font-weight: 800; }

.plan-price {
    font-family: var(--display);
    font-size: 1.8rem;
}

.pay-note, .fine-print { margin-top: 0.75rem; font-weight: 700; }

.field { display: grid; gap: 0.35rem; margin-bottom: 0.85rem; }

.field em { font-style: normal; color: var(--muted); font-weight: 700; }

input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="password"], input[type="number"], select, textarea {
    width: 100%;
    border: 2px solid #e4e0d8;
    background: white;
    border-radius: 16px;
    padding: 0.8rem 0.9rem;
    font: inherit;
    font-weight: 700;
    color: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--blue);
}

.field-error { color: var(--danger); margin: 0.2rem 0 0.8rem; font-weight: 800; }

.check {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 0.4rem 0 1rem;
    font-weight: 700;
}

.summary ul { margin: 0.8rem 0 1rem; padding-left: 1.1rem; font-weight: 700; }

.summary li + li { margin-top: 0.35rem; }

.account-email { font-weight: 800; margin: 0 0 0.35rem; }

.form-card-inner h2, .panel h2 { font-size: 1.6rem; margin-bottom: 0.4rem; }

.form-card { padding-bottom: 4rem; }

.account-page { display: grid; gap: 1rem; padding-bottom: 4rem; }

.parent-hero {
    background: linear-gradient(180deg, #f7f4ff 0%, #fbfaff 100%);
    padding: 1.35rem 0 0.35rem;
}

.parent-hero-inner {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: stretch;
    gap: 1.35rem;
    padding: 0.85rem 0.85rem 0.85rem 1.4rem;
    background: #fff;
    border: 1px solid #efeaf8;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(52, 28, 119, 0.06);
}

.parent-id { align-self: center; }

.parent-kicker {
    margin: 0;
    color: var(--coral);
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.parent-hero h1 {
    margin: 0.15rem 0 0;
    font-family: var(--sans);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.15;
}

.parent-email {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-weight: 700;
}

.parent-status {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.15rem;
    padding: 0.9rem 1rem;
    background: #faf8ff;
    border-radius: 16px;
}

.parent-status strong {
    font-family: var(--sans);
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 800;
}

.parent-status span {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.35;
}

.parent-status .button {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
}

.parent-status.is-on { background: #eefaf6; }

.parent-status.is-ended { background: #fff6f1; }

.parent-home {
    display: grid;
    gap: 1.15rem;
    padding: 1.15rem 0 4rem;
}

.parent-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.parent-stack { display: grid; gap: 1.25rem; }

.parent-card {
    background: white;
    border: 1px solid #efeaf8;
    border-radius: 22px;
    padding: 1.55rem 1.45rem 1.5rem;
    box-shadow: 0 10px 28px rgba(52, 28, 119, 0.06);
}

.parent-card h2 {
    font-size: 1.7rem;
    line-height: 1.35;
    margin-bottom: 0.2rem;
}

.parent-card h3 {
    font-size: 1.25rem;
    margin: 1.2rem 0 0.35rem;
}

.parent-hint {
    margin: 0 0 0.9rem;
    color: var(--muted);
    font-weight: 700;
}

.parent-hint a { color: var(--navy); }

.parent-empty { margin: 0.2rem 0 0.4rem; color: var(--muted); font-weight: 700; }

.parent-list { display: grid; }

.parent-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.8rem 0;
    border-top: 1px solid #f1edf7;
    min-width: 0;
}

.parent-row:has(.parent-avatar) { grid-template-columns: auto minmax(0, 1fr); }

.parent-list .parent-row:first-child { border-top: 0; }

.parent-row > div { min-width: 0; }

.parent-person strong,
.parent-person span { display: block; }

.parent-person span { margin-top: 0.15rem; color: var(--muted); font-weight: 700; font-size: 0.95rem; }

.parent-row .parent-avatar,
.parent-row .parent-photo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
}

.parent-row .parent-avatar {
    display: grid;
    place-items: center;
    background: #f4eefe;
    color: var(--navy);
    font-family: var(--display);
    font-size: 1.35rem;
    line-height: 1;
}

.parent-photo { object-fit: cover; display: block; }

.parent-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    background: white;
    border: 1px solid #efeaf8;
    border-radius: 22px;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(52, 28, 119, 0.06);
}

.parent-link-card strong {
    display: block;
    font-family: var(--display);
    font-size: 1.55rem;
    color: var(--navy);
}

.parent-link-card span { color: var(--muted); font-weight: 700; }

.parent-link-go {
    background: var(--navy);
    color: white !important;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-weight: 800;
}

.parent-add {
    margin-top: 1.35rem;
    padding-top: 1.2rem;
    border-top: 1px solid #f1edf7;
}

.avatar-picker { border: 0; margin: 0 0 1rem; padding: 0; }

.avatar-picker legend {
    font-weight: 800;
    margin-bottom: 0.65rem;
    padding: 0;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.avatar-grid label { position: relative; display: block; cursor: pointer; }

.avatar-grid input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.avatar-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid transparent;
    background: #f7f4ff;
}

.avatar-grid input:checked + img,
.avatar-grid input:focus-visible + img {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(52, 28, 119, 0.16);
}

.parent-url {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parent-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.parent-form .field { margin: 0; }

.parent-form .button { justify-self: start; }

.parent-form-split {
    grid-template-columns: 1fr 7rem auto;
    align-items: end;
}

.parent-form-inline {
    grid-template-columns: 1fr auto;
    align-items: end;
}

.parent-quiet {
    border: 0;
    background: #f7f4ff;
    color: var(--navy);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.parent-home-screen h2 { margin-bottom: 0.15rem; }

.parent-toggles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

.parent-card > .parent-row { grid-template-columns: 1fr auto; }

.parent-toggles form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.38rem 0.45rem 0.38rem 0.7rem;
    border-radius: 12px;
    background: #faf8ff;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
}

.parent-toggles form > span { min-width: 0; }

.toggle {
    position: relative;
    width: 46px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d8d2e6;
    cursor: pointer;
}

.toggle > span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(52, 28, 119, 0.28);
    transition: transform 0.18s ease;
}

.toggle.is-on { background: #02b890; }

.toggle.is-on > span { transform: translateX(18px); }

.video-head {
    background: linear-gradient(180deg, #f7f4ff 0%, #fbfaff 100%);
    padding: 1.4rem 0 0.2rem;
}

.video-head-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
}

.video-head h1 {
    margin-top: 0.1rem;
    font-family: var(--sans);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
}

.video-head p {
    max-width: 36rem;
    margin-top: 0.35rem;
    color: var(--muted);
    font-weight: 700;
}

.video-head .button { flex: none; }

.video-add {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
}

.video-add select,
.video-add input,
.video-add .button {
    height: 52px;
    min-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.video-page { display: grid; gap: 1.15rem; }

.video-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    width: min(26rem, 100%);
    margin-inline: auto;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid #efeaf8;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(52, 28, 119, 0.05);
}

.video-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.video-tabs button span {
    min-width: 1.7rem;
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    background: #f3eefc;
    color: var(--navy);
    font-size: 0.82rem;
    line-height: 1.4;
}

.video-tabs button.is-current {
    background: var(--navy);
    color: #fff;
}

.video-tabs button.is-current span {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.video-empty {
    margin: 0;
    padding: 2.2rem 1rem;
    border: 1px dashed #e4dcf3;
    border-radius: 18px;
    background: #fff;
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}

.video-history h2 {
    margin: 0.4rem 0 0;
    font-size: 1.7rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.video-card {
    display: grid;
    gap: 0.65rem;
    padding: 0.55rem;
    border: 1px solid #efeaf8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(52, 28, 119, 0.05);
}

.video-thumb { position: relative; }

.video-thumb form {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    margin: 0;
}

.video-thumb .toggle {
    box-shadow: 0 4px 12px rgba(20, 10, 40, 0.28);
}

.video-card img,
.video-fallback {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    background: #f3eefc;
}

.video-copy { display: grid; gap: 0.15rem; padding: 0 0.35rem; }
.video-copy strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--navy);
    font-size: 0.98rem;
    line-height: 1.25;
    min-height: 2.5em;
}
.video-copy span { color: var(--muted); font-size: 0.88rem; font-weight: 700; }

.video-remove { margin: 0; padding: 0 0.35rem 0.35rem; }
.video-remove button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--coral);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
}

.parent-switch {
    min-width: 3.4rem;
    border: 0;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: #ece7f4;
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.parent-switch.is-on { background: #e7f8f3; color: #0c7a62; }

.panel h3 { font-size: 1.2rem; margin: 1rem 0 0.2rem; }

.mini-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 3px solid var(--sky);
    font-weight: 700;
}

.mini-row span { overflow-wrap: anywhere; }

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: end;
    margin-top: 1rem;
}

.inline-form .field { margin: 0; flex: 1; min-width: 140px; }

.banner {
    margin-top: 1.2rem;
    background: #e7f8f3;
    color: #0c7a62;
    border-radius: 18px;
    padding: 0.9rem 1rem;
    font-weight: 800;
}

.prose {
    background: white;
    border-radius: 32px;
    margin: 1.6rem auto 3rem;
    padding: 2rem 1.6rem 2.4rem;
    box-shadow: var(--shadow);
    max-width: 760px;
}

.prose h1 { margin-bottom: 0.6rem; }

.prose h2 { font-size: 1.6rem; margin: 1.6rem 0 0.45rem; }

.prose p, .prose li { color: #2c4664; font-weight: 700; }

.prose p + p, .prose ul { margin-top: 0.75rem; }

.prose ul { padding-left: 1.15rem; }

.prose li + li { margin-top: 0.4rem; }

.prose a, .lede a, .pay-note a { color: var(--blue); }

.site-footer {
    background: var(--navy);
    color: white;
    padding: 2.8rem 0 2.2rem;
    border-radius: 0;
}

.site-footer h2 { color: white; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 0.8fr);
    gap: 1.5rem;
}

.footer-grid h2 {
    font-family: var(--display);
    font-size: 1.6rem;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 0.7rem;
}

.footer-grid a, .footer-note {
    display: block;
    color: #efe8ff;
    text-decoration: none;
    margin-top: 0.35rem;
    font-weight: 600;
}

.footer-grid a:hover { color: white; }

.footer-grid .brand img { height: 88px; background: transparent; }

.copyright {
    width: min(var(--max), calc(100% - 2.4rem));
    margin: 1.8rem auto 0;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: #d6e6ff;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.support-page {
    background:
        radial-gradient(560px 240px at 0% 0%, rgba(253, 181, 16, 0.2), transparent 70%),
        radial-gradient(480px 280px at 100% 100%, rgba(109, 61, 240, 0.1), transparent 68%),
        #f7f4fb;
    padding: 1.6rem 0 2.8rem;
}

.support-shell {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    align-items: stretch;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(52, 28, 119, 0.12);
}

.support-intro {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.7rem 1.45rem 1.4rem;
    color: #fff;
    background:
        radial-gradient(280px 160px at 0% 0%, rgba(253, 181, 16, 0.38), transparent 72%),
        linear-gradient(165deg, #5534e0 0%, #341c77 58%, #27145c 100%);
}

.support-intro h1 {
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1.02;
    color: #fff;
    overflow-wrap: anywhere;
}

.support-intro .eyebrow { color: var(--gold); }

.support-intro p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    line-height: 1.45;
}

.support-points {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.support-points li {
    display: grid;
    gap: 0.1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.support-points strong { font-size: 1rem; }

.support-points span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
}

.support-mail {
    display: inline-block;
    margin-top: auto;
    padding-top: 0.8rem;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    overflow-wrap: anywhere;
    width: fit-content;
}

.support-form {
    padding: 1.45rem 1.4rem 1.3rem;
}

.support-form .field { margin-bottom: 0.7rem; }

.support-form input,
.support-form textarea {
    background: #faf8f4;
    border-radius: 12px;
}

.support-form textarea { min-height: 6.5rem; resize: vertical; }

.support-form .button {
    width: 100%;
    min-height: 52px;
    margin-top: 0.15rem;
    border-radius: 12px;
}

@media (max-width: 860px) {
    .support-page { padding: 0.85rem 0 2rem; }
    .support-shell { grid-template-columns: 1fr; border-radius: 20px; }
    .support-intro { padding: 1.2rem 1rem 1.1rem; }
    .support-intro h1 { font-size: 2rem; }
    .support-mail { margin-top: 0.4rem; }
    .support-form { padding: 1rem 0.9rem 1.05rem; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.play-hero {
    position: relative;
    overflow: hidden;
    background: #c9ecff url("../images/hero/sky.jpg") center 30% / cover no-repeat;
    padding: 1.6rem 0 2rem;
}

.play-hero .wrap {
    width: min(1140px, calc(100vw - 2.4rem));
}

.play-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
    align-items: center;
    gap: 0.4rem 1.2rem;
}

.play-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}

.play-subjects li {
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #3a1d86;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(58, 29, 134, 0.08);
}

.play-subjects li:nth-child(2) { color: #0b7a62; }
.play-subjects li:nth-child(3) { color: #1849a9; }
.play-subjects li:nth-child(4) { color: #b45309; }

.play-copy h1 {
    max-width: none;
    font-size: clamp(2.7rem, 4.4vw, 4.15rem);
    line-height: 0.98;
    color: #3a1d86;
}

.play-lede {
    margin-top: 0.85rem;
    max-width: 26rem;
    color: #4a5568;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.45;
}

.play-cta {
    margin-top: 1.15rem;
    padding: 0.85rem 1.45rem;
    border-radius: 999px;
    background: #6d3df0;
    box-shadow: 0 10px 22px rgba(90, 40, 210, 0.28);
}

.play-cta:hover { background: #5a2de0; }

.play-trust {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    color: #5b6578;
    font-size: 0.98rem;
    font-weight: 800;
}

.play-trust svg {
    width: 18px;
    height: 18px;
    color: #6d3df0;
    flex: none;
}

.play-copy { min-width: 0; }

.play-copy .store-links { margin-top: 0.85rem; gap: 0.45rem; }

.play-copy .store-link {
    height: 44px;
    padding: 0 0.62rem 0 0.5rem;
    gap: 0.4rem;
}

.play-copy .store-link svg { width: 18px; height: 18px; }

.play-stage {
    position: relative;
    min-height: 560px;
}

.play-stage .piece {
    position: absolute;
    height: auto;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 10px 16px rgba(70, 90, 140, 0.16));
}

.play-stage .island {
    width: 92%;
    left: 6%;
    bottom: 0;
    z-index: 3;
    max-width: none;
}

.play-stage .fox {
    width: 30%;
    right: -2%;
    top: 4%;
    z-index: 6;
}

.play-stage .quran {
    width: 22%;
    left: 0;
    top: 6%;
    z-index: 5;
}

.play-stage .mosque {
    width: 18%;
    left: 28%;
    top: 1%;
    z-index: 5;
}

.play-stage .math {
    width: 19%;
    right: 20%;
    top: 7%;
    z-index: 5;
}

.play-stage .trail {
    width: 28%;
    right: 6%;
    top: 22%;
    z-index: 4;
    opacity: 0.95;
}

.play-stage .spark {
    width: 14%;
    right: 0;
    bottom: 22%;
    z-index: 5;
}

.play-stage .cloud-a { width: 28%; left: 4%; top: 18%; z-index: 1; opacity: 0.9; }
.play-stage .cloud-b { width: 24%; left: 34%; top: 14%; z-index: 1; }
.play-stage .cloud-c { width: 20%; right: 8%; top: 20%; z-index: 1; }
.play-stage .isle-a { width: 20%; left: -2%; bottom: 6%; z-index: 2; }
.play-stage .isle-b { width: 16%; left: 22%; top: 16%; z-index: 2; }
.play-stage .s1 { width: 8%; left: 16%; top: 4%; z-index: 4; }
.play-stage .s2 { width: 6%; left: 48%; top: 0; z-index: 4; }
.play-stage .s3 { width: 5%; right: 28%; top: 2%; z-index: 4; }
.play-stage .s4 { width: 4.2%; right: 12%; top: 14%; z-index: 6; }
.play-stage .s5 { width: 3.6%; left: 8%; top: 28%; z-index: 4; }

.home-banner {
    position: relative;
    height: auto;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(520px 280px at 12% 20%, #ffe7a8 0%, transparent 70%),
        radial-gradient(480px 320px at 92% 80%, #d7f6ee 0%, transparent 68%),
        linear-gradient(180deg, #fffdf8 0%, #f4f8ff 100%);
    padding: 2.2rem 0 2.8rem;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.story-mark {
    width: min(220px, 70%);
    height: auto;
    margin-bottom: 0.8rem;
    background: transparent;
}

.story-copy h1 {
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    color: var(--navy);
    max-width: 11ch;
    line-height: 1.05;
}

.story-copy p {
    margin-top: 1rem;
    max-width: 28rem;
    color: #3c4658;
    font-size: 1.25rem;
    font-weight: 700;
}

.story-copy .button { margin-top: 1.4rem; }

.store-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1rem;
}

.store-link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    height: 52px;
    padding: 0 0.95rem 0 0.7rem;
    border: 1px solid #a6a6a6;
    border-radius: 8px;
    background: #000;
    color: #fff !important;
    text-decoration: none;
    line-height: 1;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.store-link svg {
    width: 22px;
    height: 22px;
    flex: none;
}

.store-link span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
}

.store-link small {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 0.92;
}

.store-link strong {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.store-android small {
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.store-android strong { font-weight: 500; letter-spacing: 0; }

.store-amazon svg { width: 34px; height: 18px; }

.store-amazon small {
    font-size: 0.68rem;
    font-weight: 400;
    text-transform: lowercase;
}

.store-amazon strong {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: lowercase;
}

.store-amazon em {
    font-style: normal;
    font-weight: 500;
    font-size: 0.72rem;
    margin-left: 0.15rem;
}

.store-link:hover {
    background: #111;
    border-color: #fff;
    color: #fff !important;
}

.footer-grid .store-links { margin-top: 0.9rem; }

.footer-grid .store-link,
.footer-grid .store-link:hover {
    display: inline-flex;
    margin-top: 0;
    background: #000;
    color: #fff !important;
}

.story-stage {
    position: relative;
    min-height: 520px;
}

.story-stage::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 28px;
    right: 0;
    width: 86%;
    height: 490px;
    border-radius: 250px 250px 46px 46px;
    background: var(--gold);
}

.story-arch {
    position: relative;
    z-index: 1;
    height: 520px;
    margin-right: 28px;
    border: 10px solid white;
    border-radius: 260px 260px 48px 48px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(52, 28, 119, 0.16);
    background: white;
}

.story-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.story-star {
    position: absolute;
    z-index: 2;
    width: 28px;
    height: 28px;
    background: var(--gold);
    clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 35%);
}

.story-star-a { top: 18px; left: 8px; transform: rotate(-12deg); }
.story-star-b { right: 24px; bottom: 36px; width: 18px; height: 18px; background: #ff7a59; }

.banner-grid, .welcome, .program-grid, .why-grid, .class-row {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
}

.banner-copy h1, .banner-copy p, .gallery-block h2 { color: white; }

.banner-copy p { margin-top: 0.8rem; max-width: 34rem; font-weight: 600; }

.banner-art img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 180px 180px 40px 40px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.offer { padding: 2.4rem 0 1rem; }

.ways {
    background: #c5ecff url("../images/ways/sky.jpg") center 40% / cover no-repeat;
    padding: 2.8rem 0 3.4rem;
    overflow: hidden;
}

.ways .kicker { display: block; text-align: center; }

.ways-title {
    text-align: center;
    font-size: clamp(2.3rem, 4.2vw, 3.45rem);
    margin: 0.05rem 0 0.2rem;
    color: #3a1d86;
}

.ways-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: end;
    margin-top: 0.3rem;
}

.ways-row article {
    position: relative;
    min-width: 0;
}

.ways-row img {
    display: block;
    width: 118%;
    max-width: none;
    height: auto;
    margin: 0 -9% -16%;
    position: relative;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 16px 18px rgba(60, 80, 130, 0.16));
}

.ways-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 54% 54% 34px 34px / 22% 22% 34px 34px;
    padding: 24% 1.25rem 4.3rem;
    box-shadow: 0 18px 40px rgba(70, 50, 130, 0.12);
}

.ways-card h3 {
    font-size: clamp(1.55rem, 2vw, 1.95rem);
    margin: 0 0 0.4rem;
    color: #3a1d86;
}

.ways-card p {
    margin: 0;
    color: #5c6578;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.45;
}

.ways-card .plus {
    background: #f5a318;
    box-shadow: 0 8px 16px rgba(245, 163, 24, 0.45);
}

.offer-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin: 0.15rem 0 1.3rem;
}

.class-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.class-row article, .program-grid article {
    background: white;
    border-radius: 28px;
    box-shadow: 0 16px 40px rgba(52, 28, 119, 0.08);
    padding: 0.7rem 0.7rem 1.2rem;
    position: relative;
}

.class-row article {
    padding: 0 0 4.4rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.class-row article:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(52, 28, 119, 0.14);
}

.class-row img, .program-grid img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 8px;
}

.class-row img { border-radius: 28px 28px 0 0; display: block; }

.class-row h2, .class-row p { padding-left: 1.2rem; padding-right: 1.2rem; }

.program-grid img {
    height: auto;
    object-fit: contain;
    background: #f6f3ec;
}

.class-row h2, .program-grid h3, .why h3 {
    font-size: 1.9rem;
    margin: 1rem 0 0.4rem;
}

.class-row p, .program-grid p, .why p { color: var(--muted); font-weight: 600; }

.plus {
    position: absolute;
    right: 1.15rem;
    bottom: 1.15rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold);
    color: white;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 1.8rem;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(253, 181, 16, 0.45);
}

.welcome { padding: 3.2rem 0; align-items: center; }

.welcome .button { margin-top: 1.35rem; }

.welcome img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
}

.programs { background: var(--sky); padding: 3rem 0 3.4rem; }

.program-grid { grid-template-columns: repeat(3, 1fr); margin-top: 1.4rem; align-items: stretch; }

.program-grid ul {
    list-style: none;
    padding: 0.7rem 0 0;
    margin: 0.8rem 0 0;
    border-top: 1px solid #e4e0d8;
    display: flex;
    gap: 1rem;
    color: var(--navy);
    font-weight: 700;
}

.why {
    padding: 3.2rem 0 3.4rem;
    background: linear-gradient(180deg, #f7f4ff 0%, #fff8ea 100%);
}

.why .kicker, .steps .kicker { color: var(--coral); }

.why-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 1.5rem;
    align-items: stretch;
    gap: 1.1rem;
}

.why-grid article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    background: white;
    border-radius: 24px;
    padding: 1.25rem 1.15rem;
    box-shadow: 0 14px 32px rgba(52, 28, 119, 0.08);
}

.why-grid h3 { font-size: 1.45rem; margin-bottom: 0.3rem; }

.why-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: white;
    font-family: var(--display);
    font-size: 1.45rem;
}

.why-icon.gold { background: var(--gold); color: #1b1b1b; }
.why-icon.orange { background: var(--coral); }
.why-icon.teal { background: var(--green); }

.gallery-block {
    background: var(--navy);
    padding: 2.6rem 0 2.2rem;
    margin-top: 2rem;
    overflow: hidden;
}

.gallery-block .wrap {
    width: calc(100% - 2rem);
}

.gallery-block .shot-row {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.gallery-block .kicker, .gallery-block figcaption { color: var(--gold); }

.tutorials { padding: 3rem 0 1.2rem; background: white; }

.tutorials .lede { max-width: 36rem; color: var(--muted); }

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    margin-top: 1.4rem;
}

.tutorial-card h3 {
    margin: 0.75rem 0 0;
    color: var(--navy);
    font-size: 1.25rem;
}

.tutorial-play,
.tutorial-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 22px;
    display: block;
}

.tutorial-play {
    background: var(--navy) center / cover no-repeat;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}

.tutorial-empty {
    display: grid;
    place-items: center;
    width: min(640px, 100%);
    aspect-ratio: 16 / 9;
    margin-top: 1.4rem;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(160deg, #341c77, #5b3cc4);
    color: white;
    text-align: center;
    padding: 1.5rem;
}

.tutorial-empty p { margin: 0.85rem 0 0; font-weight: 700; }

.play-button {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    position: relative;
}

.play-button::before {
    content: "";
    position: absolute;
    left: 29px;
    top: 22px;
    border-style: solid;
    border-width: 15px 0 15px 24px;
    border-color: transparent transparent transparent var(--navy);
}

.steps h3 { color: var(--navy); }

.admin-lede { margin: 0 0 1rem; color: var(--muted); font-weight: 700; max-width: 40rem; }

.form-error {
    background: #fff1f0;
    color: var(--danger);
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    font-weight: 800;
}


@media (max-width: 860px) {
    .play-grid { grid-template-columns: minmax(0, 1fr); }
    .play-lede { max-width: 100%; }
    .play-copy h1 { max-width: none; font-size: clamp(2.45rem, 11vw, 3.7rem); }
    .play-stage { width: 100%; min-height: 92vw; margin-top: 0.2rem; overflow: hidden; }
    .play-lede { width: 100%; }
    .play-hero { padding-bottom: 0.6rem; }
    .play-stage .island { width: 84%; left: 8%; }
    .play-stage .fox { width: 26%; right: 0; top: 6%; }
    .play-stage .math { width: 17%; right: 20%; }
    .play-stage .quran { width: 20%; left: 1%; }
    .play-stage .mosque { width: 16%; left: 26%; }
    .play-stage .trail { width: 22%; right: 8%; }
    .play-stage .spark { right: 1%; width: 12%; }
    .play-stage .isle-a { left: 0; width: 16%; }
    .play-copy .store-link {
        flex: 1 1 calc(50% - 0.4rem);
        height: 48px;
        max-width: calc(50% - 0.25rem);
    }
    .play-copy .store-amazon { flex-basis: 100%; max-width: 220px; }

    .nav-toggle { display: inline-flex; }

    .header-bar { grid-template-columns: 1fr auto; }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 108px;
        background: white;
        box-shadow: var(--shadow);
        padding: 0.8rem 1.2rem 1.1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    body.nav-open .site-nav { display: flex; }

    .features article,
    .features article:nth-child(even) { grid-template-columns: 1fr; }

    .features article:nth-child(even) .feature-copy { order: 0; }

    .feature-stage { min-height: 0; padding: 0.4rem 0 0.2rem; }

    .features-hero { padding: 2.2rem 1.15rem 1.8rem; }

    .hero, .split, .trust, .steps ol, .checkout, .footer-grid, .plan-grid, .method-grid, .photo-row,
    .banner-grid, .welcome, .program-grid, .why-grid, .class-row, .ways-row {
        grid-template-columns: 1fr;
    }

    .ways-row img { width: 100%; margin: 0 0 -12%; }
    .ways-card { border-radius: 48px 48px 28px 28px; padding: 18% 1.2rem 4.2rem; }

    .topbar-inner { flex-wrap: wrap; padding: 0.45rem 0; }
    .topbar p { margin-right: 0; }
    .class-row { margin-top: 1.4rem; }
    .login-gate { grid-template-columns: 1fr; border-radius: 20px; }
    .login-phone { padding: 1rem 1rem 0.85rem; }
    .login-phone .phone { width: min(180px, 62%); margin: 0 auto; }
    .login-card { padding: 1.15rem 1rem 1.1rem; }

    .shot-row { gap: 0.55rem; padding: 0.55rem 0 0.8rem; }
    .shot-row figure { flex-basis: 118px; }
    .shot-row .phone { border-radius: 20px; padding: 4px; }
    .shot-row .phone img { border-radius: 16px; }
    .shot-row figcaption { font-size: 0.78rem; margin-top: 0.3rem; }
    .gallery-block { padding: 1.4rem 0 0.8rem; margin-top: 1rem; }
    .gallery-block h2 { font-size: 1.55rem; }

    .tutorial-grid { grid-template-columns: 1fr; }
    .play-button { width: 58px; height: 58px; }
    .play-button::before { left: 23px; top: 17px; border-width: 12px 0 12px 18px; }

    .story-grid { grid-template-columns: 1fr; }
    .story-stage, .story-arch { min-height: 0; height: 380px; }
    .story-copy h1 { max-width: none; }
    .steps ol::before { display: none; }
    .steps li { text-align: left; }
    .steps li span { margin-left: 0; }

    .hero-art img, .photo-row img { height: 220px; }

    .hero-copy, .page-hero { padding: 1.4rem 1.15rem; }

    .play-board { grid-template-columns: 1fr 1fr; }

    .parent-hero-inner,
    .parent-status { grid-template-columns: 1fr; }
    .parent-status .button { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 0.45rem; }

    .parent-grid,
    .parent-form-split,
    .parent-form-inline { grid-template-columns: 1fr; }

    .parent-toggles { grid-template-columns: 1fr 1fr; }

    .avatar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .video-head-inner { flex-direction: column; align-items: flex-start; }
    .video-grid,
    .video-add { grid-template-columns: 1fr; }
}

body.admin-app {
    margin: 0;
    background: #f4f6f8;
    color: #1c2430;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

body.admin-app h1,
body.admin-app h2,
body.admin-app h3 {
    font-family: inherit;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #172033;
    line-height: 1.25;
}

body.admin-app h1 { font-size: 1.35rem; }

body.admin-app h2 { font-size: 0.95rem; margin: 0 0 0.75rem; }

body.admin-app .skip { border-radius: 4px; }

.admin-frame {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-side {
    background: #1b2430;
    color: #d5dbe3;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0.85rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-brand-block { padding: 0.35rem 0.75rem 1.1rem; }

.admin-brand {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.admin-brand-block p {
    margin: 0.15rem 0 0;
    color: #8b97a8;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-side nav { display: grid; gap: 0.15rem; }

.admin-side nav a {
    color: #d5dbe3;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
}

.admin-side nav a:hover { background: #283140; color: #fff; }

.admin-side nav a.is-current { background: #2e3a4a; color: #fff; }

.admin-site-link {
    margin-top: auto;
    padding: 0.7rem 0.75rem 0.2rem;
    color: #8b97a8;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.admin-site-link:hover { color: #fff; }

.admin-workspace { min-width: 0; }

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e6e9ef;
}

.admin-kicker {
    margin: 0;
    color: #667085;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-top h1 { margin: 0.1rem 0 0; }

.admin-top-end {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-who {
    color: #475467;
    font-size: 0.9rem;
    font-weight: 600;
    word-break: break-all;
}

.admin-logout {
    background: #fff;
    color: #1c2430;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.admin-logout:hover { background: #f4f6f8; }

.admin-main { padding: 1.25rem 1.5rem 2.5rem; }

.admin-lede {
    margin: 0 0 1rem;
    color: #667085;
    font-weight: 400;
    max-width: 42rem;
}

.admin-notice {
    margin: 0 0 1rem;
    padding: 0.65rem 0.8rem;
    background: #eef6f1;
    color: #067647;
    border: 1px solid #c8e6d4;
    border-radius: 6px;
    font-weight: 600;
}

body.admin-app .form-error {
    margin: 0 0 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.stat-grid-small { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat-grid article {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    padding: 0.85rem 0.95rem;
}

.stat-grid strong {
    display: block;
    color: #172033;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-grid span { color: #667085; font-size: 0.8rem; font-weight: 600; }

.admin-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.admin-panel,
.table-wrap {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
}

.admin-panel { padding: 1rem 1.05rem 1.1rem; }

.admin-main > section { margin-bottom: 1rem; }

.admin-main > section > h2 { margin-bottom: 0.55rem; }

.admin-panel form,
.admin-reply { display: grid; gap: 0.65rem; margin-top: 0.85rem; }

.admin-panel label,
.admin-reply label,
.admin-filters label {
    display: grid;
    gap: 0.3rem;
    font-weight: 600;
    color: #344054;
    font-size: 0.9rem;
}

.admin-panel input,
.admin-panel select,
.admin-panel textarea,
.admin-filters input,
.admin-filters select,
.admin-reply textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
    font: inherit;
    color: #1c2430;
    background: #fff;
}

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.admin-filters input { flex: 1 1 220px; }
.admin-filters select { flex: 0 1 160px; }

.db-panel { margin: 1rem 0; }
.db-panel h2 { margin: 0 0 0.75rem; font-size: 1.05rem; }
form.db-record {
    display: grid;
    gap: 0.85rem;
    margin-top: 0;
}
form.db-record > h2,
form.db-record > p { margin: 0; }
form.db-record > .button { justify-self: start; width: auto; }
.db-note { color: #667085; line-height: 1.45; }
.db-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem 1rem;
    align-items: start;
    margin: 0;
}
.db-fields > label { min-width: 0; }
.db-fields > label.is-wide { grid-column: 1 / -1; }
.db-fields small { color: #667085; font-weight: 500; }
.db-guide { display: block; margin: 0; line-height: 1.4; }
.db-checks { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; }
.admin-panel .db-checks label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}
.admin-panel .db-checks input { width: auto; }
.db-cell {
    max-width: 28rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    vertical-align: top;
}
.db-meaning {
    max-width: 34rem;
    white-space: normal;
    line-height: 1.4;
    color: #344054;
}
.db-status { white-space: pre-wrap; }
.db-pending { margin: 0.4rem 0 0.8rem; padding-left: 1.1rem; }
.db-row-actions { white-space: nowrap; }
.db-row-actions form { display: inline; margin-left: 0.55rem; }
.db-row-actions button {
    border: 0;
    background: none;
    color: #b42318;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}
.db-danger {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #f3c3c3;
    border-radius: 8px;
    background: #fff8f7;
}
.db-danger h2 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.db-danger p { margin: 0 0 0.75rem; color: #667085; }
.db-danger form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.db-danger input,
.db-column-add input,
.db-column-add select,
.db-inline input {
    flex: 1 1 12rem;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
    font: inherit;
}
.db-column-add,
.db-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
}
.db-check { display: flex; align-items: center; gap: 0.35rem; font-weight: 600; }
.db-check input { width: auto; flex: 0 0 auto; }

body.admin-app .button,
body.admin-app .button-ghost,
body.admin-app .button-sun {
    min-height: 36px;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: none;
}

body.admin-app .button {
    background: #1b2430;
    color: #fff !important;
}

body.admin-app .button:hover { background: #111820; color: #fff !important; }

body.admin-app .button-ghost,
body.admin-app .button-ghost:hover {
    background: #fff;
    color: #1c2430 !important;
    box-shadow: inset 0 0 0 1px #d0d5dd;
}

body.admin-app .button-sun,
body.admin-app .button-sun:hover {
    background: #b42318;
    color: #fff !important;
}

.table-wrap { overflow-x: auto; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid #eef0f3;
    vertical-align: middle;
}

.admin-table th {
    background: #f7f8fa;
    color: #667085;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-table tr:last-child td { border-bottom: 0; }

.admin-table a {
    color: #1849a9;
    font-weight: 600;
    text-decoration: none;
}

.admin-table a:hover { text-decoration: underline; }

.admin-status {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.admin-status.is-active { background: #e7f6ee; color: #067647; }

.admin-status.is-paused { background: #fef3f2; color: #b42318; }

.chat-log { display: grid; gap: 0.55rem; margin-bottom: 1rem; }

.chat-bubble {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
}

.chat-bubble.is-admin { background: #f4f7fb; }

.chat-bubble p { font-weight: 400; }

.chat-bubble small { color: #667085; font-weight: 600; }

.admin-main .pagination,
.admin-main nav[role="navigation"] { margin-top: 0.9rem; }

body.admin-app .confirm-dialog {
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.16);
}

body.admin-app .confirm-dialog::backdrop { background: rgba(16, 24, 40, 0.45); }

body.admin-app .confirm-dialog h2 { font-size: 1.15rem; }

body.admin-app .confirm-dialog p { font-weight: 400; color: #475467; }

@media (max-width: 980px) {
    .stat-grid,
    .stat-grid-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .admin-frame { grid-template-columns: 1fr; }
    .admin-side {
        position: static;
        height: auto;
        padding-bottom: 0.5rem;
    }
    .admin-side nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-site-link { margin-top: 0.6rem; }
    .admin-top { align-items: flex-start; flex-direction: column; }
    .admin-split,
    .stat-grid,
    .stat-grid-small { grid-template-columns: 1fr; }
}

.admin-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    z-index: 40;
    pointer-events: none;
}

.admin-progress.is-on::after {
    content: "";
    display: block;
    height: 100%;
    width: 40%;
    background: #c4a574;
    animation: admin-bar 0.8s ease infinite;
}

@keyframes admin-bar {
    from { transform: translateX(-120%); }
    to { transform: translateX(320%); }
}

.admin-workspace.is-leaving {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.admin-workspace.is-entering {
    animation: admin-in 0.28s ease;
}

@keyframes admin-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

body.admin-app .admin-side nav a.is-current {
    background: #243044;
    box-shadow: inset 3px 0 0 #c4a574;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 0.9rem;
    padding: 0.3rem;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    width: fit-content;
    max-width: 100%;
}

.admin-tabs a {
    color: #475467;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.4rem 0.7rem;
    border-radius: 7px;
}

.admin-tabs a:hover { background: #f4f6f8; color: #172033; }

.admin-tabs a.is-current {
    background: #1b2430;
    color: #fff;
}

.admin-meta {
    display: block;
    color: #667085;
    font-size: 0.8rem;
    font-weight: 400;
}

.admin-chip {
    display: inline-block;
    margin: 0.1rem 0.25rem 0.1rem 0;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #f4f1ea;
    color: #5c4a32;
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-edit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 0.9rem;
}

.admin-edit .button { justify-self: start; }

.admin-child {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 5.5rem auto auto;
    gap: 0.45rem;
    align-items: center;
    margin-top: 0.55rem;
}

.admin-child span { color: #667085; font-size: 0.82rem; font-weight: 600; }

.admin-compose { max-width: 40rem; }

.admin-main a:not(.button) { color: #1849a9; }

body.admin-app .admin-main .admin-tabs a,
body.admin-app .admin-main .admin-tabs a:hover {
    color: #344054;
    background: transparent;
}

body.admin-app .admin-main .admin-tabs a:hover {
    background: #eef1f4;
    color: #172033;
}

body.admin-app .admin-main .admin-tabs a.is-current,
body.admin-app .admin-main .admin-tabs a.is-current:hover {
    background: #1b2430;
    color: #fff;
}

.button-ghost:hover,
.button-light:hover,
.confirm-actions .button-ghost:hover,
.debug-plan-actions .button-ghost:hover {
    color: var(--navy) !important;
    background: #f4f1fb;
}

.button-sun:hover {
    color: #1b1b1b !important;
    background: #e5a40b;
}

@media (max-width: 860px) {
    body { overflow-x: clip; }

    .wrap { width: min(var(--max), calc(100% - 1.25rem)); }

    .topbar { font-size: 0.82rem; line-height: 1.35; }
    .topbar-inner { align-items: flex-start; gap: 0.35rem 0.75rem; }
    .topbar a, .topbar p { overflow-wrap: anywhere; }

    .brand img, .login-logo { height: auto; max-height: 58px; max-width: min(168px, 46vw); }
    .header-bar {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 72px;
        gap: 0.45rem;
    }
    .brand { min-width: 0; }
    .header-end { flex-shrink: 0; }
    .nav-cta, .nav-toggle { min-height: 40px; padding: 0.4rem 0.7rem; }
    .site-nav { top: 100%; z-index: 30; max-height: calc(100vh - 120px); overflow: auto; }

    .footer-grid .brand img { max-height: 64px; height: auto; }
    .footer-grid a, .footer-note, .copyright { overflow-wrap: anywhere; }
    .copyright { width: min(var(--max), calc(100% - 1.25rem)); }

    .parent-hero h1, .parent-card h2, .parent-link-card strong { overflow-wrap: anywhere; }
    .parent-hero-inner { padding: 0.85rem; border-radius: 16px; }
    .parent-card { padding: 1.05rem 0.9rem; border-radius: 16px; }
    .parent-link-card { flex-direction: column; align-items: flex-start; }
    .parent-toggles { grid-template-columns: 1fr; }
    .parent-row, .parent-card > .parent-row { grid-template-columns: 1fr; }
    .parent-form .button, .parent-status .button { width: 100%; }
    .confirm-actions { flex-wrap: wrap; }
    .confirm-actions .button, .confirm-actions .button-ghost { flex: 1 1 8rem; }

    .login-screen { padding: 1.5rem 0.75rem 2.5rem; }
    .login-card, .form-card { max-width: 100%; }

    body.admin-app { font-size: 14px; }
    .admin-frame { grid-template-columns: 1fr; }
    .admin-side {
        position: sticky;
        top: 0;
        z-index: 20;
        height: auto;
        padding: 0.55rem 0.7rem 0.45rem;
    }
    .admin-brand-block {
        display: flex;
        align-items: baseline;
        gap: 0.55rem;
        padding: 0.15rem 0.35rem 0.4rem;
    }
    .admin-brand-block p { margin: 0; }
    .admin-side nav {
        display: flex;
        grid-template-columns: none;
        gap: 0.3rem;
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }
    .admin-side nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .admin-site-link { margin-top: 0.35rem; padding-top: 0.35rem; }
    .admin-top {
        align-items: stretch;
        flex-direction: column;
        padding: 0.75rem 0.85rem;
    }
    .admin-top-end { width: 100%; justify-content: space-between; }
    .admin-who {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .admin-main { padding: 0.85rem 0.7rem 2rem; }
    .admin-tabs {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .admin-tabs a { flex: 0 0 auto; white-space: nowrap; }
    .admin-filters { flex-direction: column; align-items: stretch; }
    .admin-filters input,
    .admin-filters select,
    .admin-filters .button { width: 100%; flex: 1 1 auto; }
    .admin-edit,
    .admin-child,
    .admin-split,
    .db-fields,
    .stat-grid,
    .stat-grid-small { grid-template-columns: 1fr; }
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-table { min-width: 36rem; }
    .admin-panel .button { width: 100%; }
}
