/* ==========================================================================
   iBee Homework Solutions
   Palette taken from the logo. Fredoka (rounded, like the wordmark) for
   headings; Atkinson Hyperlegible (built for readability) for body text.
   ========================================================================== */

:root {
    --navy: #1F193D;
    --navy-2: #2C2556;
    --honey: #F3AF2A;
    --honey-deep: #D9831A;
    --lilac: #CFC7F0;
    --lilac-soft: #EFECFB;
    --brown: #7A4416;
    --ink: #1F193D;
    --ink-soft: #4A4566;
    --paper: #FFFFFF;
    --line: #E3E0EE;

    --font-head: "Fredoka", "Nunito", "Trebuchet MS", system-ui, sans-serif;
    --font-body: "Atkinson Hyperlegible", "Segoe UI", Verdana, system-ui, sans-serif;

    --wrap: 1180px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 .6em;
    letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

a { color: var(--navy); text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--honey-deep); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 100;
    background: var(--honey); color: var(--navy); padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: var(--font-head); font-weight: 600; font-size: 1rem;
    padding: .7rem 1.3rem; border-radius: 999px; border: 2px solid transparent;
    text-decoration: none; cursor: pointer; white-space: nowrap; background: transparent;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { font-size: 1.075rem; padding: .85rem 1.6rem; }
.btn-honey { background: var(--honey); color: var(--navy); }
.btn-honey:hover { background: #FFC24A; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: rgba(31,25,61,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.text-link { font-weight: 700; }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; max-width: 1300px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.55rem; }
.brand-tag { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brown); margin-top: .25rem; }

.site-nav { display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; flex: 1; justify-content: center; }
.nav-list > li { position: relative; }

.nav-link {
    display: inline-flex; align-items: center; gap: .3rem;
    font: inherit; font-size: .9rem; font-weight: 700; color: var(--ink); white-space: nowrap;
    padding: .5rem .45rem; border-radius: 8px;
    background: none; border: 0; cursor: pointer; text-decoration: none;
}
.nav-link:hover { background: var(--lilac-soft); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--honey); border-radius: 0; }
.caret { width: 10px; height: 8px; transition: transform .15s; }
.sub-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }

.sub-menu {
    list-style: none; margin: 0; padding: .5rem;
    position: absolute; left: 0; top: calc(100% + 6px); min-width: 230px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 14px 30px -12px rgba(31,25,61,.3);
    display: none;
}
.has-sub.open > .sub-menu { display: block; }
.sub-menu a { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--ink); text-decoration: none; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--lilac-soft); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }

.nav-toggle {
    display: none; margin-left: auto;
    align-items: center; gap: .5rem;
    font: inherit; font-weight: 700; color: var(--navy);
    background: none; border: 2px solid var(--line); border-radius: 999px; padding: .45rem .9rem; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

@media (max-width: 1260px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: .75rem var(--gutter) 1.25rem;
        max-height: calc(100vh - 72px); overflow-y: auto;
    }
    .site-nav.open { display: flex; }
    .nav-list { flex-direction: column; align-items: stretch; }
    .nav-link { width: 100%; justify-content: space-between; padding: .8rem .5rem; font-size: 1.05rem; }
    .nav-link[aria-current="page"] { box-shadow: inset 4px 0 0 var(--honey); }
    .sub-menu { position: static; box-shadow: none; border: 0; padding: 0 0 .5rem .75rem; min-width: 0; }
    .nav-actions { flex-direction: column; align-items: stretch; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
    .nav-actions .btn { width: 100%; }
}

/* ---------- Hero ---------- */

.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); max-width: 15ch; }
.hero .lead { font-size: 1.15rem; color: #DCD8EE; max-width: 52ch; margin-bottom: 1.75rem; }
.hero-facts {
    list-style: none; padding: 0; margin: 2rem 0 0;
    display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: #C9C3E4; font-size: .95rem;
}
.hero-facts li { display: flex; align-items: center; gap: .5rem; }
.hero-facts li::before {
    content: ""; width: 10px; height: 11px; background: var(--honey);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* The honeycomb: pointy-top hexagons, second row offset by half a cell */
.comb { --hw: 158px; --hh: calc(var(--hw) * 1.1547); --gap: 8px; }
.comb-row { display: flex; gap: var(--gap); }
.comb-row + .comb-row {
    margin-top: calc(var(--hh) * -0.25 + var(--gap) * 0.866);
    margin-left: calc(var(--hw) / 2 + var(--gap) / 2);
}
.cell {
    width: var(--hw); height: var(--hh); flex: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    padding: 0 1.1rem; gap: .35rem;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    background: #fff; color: var(--navy); text-decoration: none;
    transition: background-color .15s;
}
.cell:hover { background: var(--honey); }
.cell:focus-visible { outline: none; background: var(--honey); }
.cell-honey { background: var(--honey); }
.cell-honey:hover { background: #FFC24A; }
.cell-lilac { background: var(--lilac); }
.cell-name { font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; line-height: 1.15; }
.cell-note { font-size: .78rem; line-height: 1.3; color: var(--ink-soft); }

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .comb { --hw: 150px; justify-self: center; }
}

/* Small screens: the comb becomes a list of rows with a hexagon marker */
@media (max-width: 600px) {
    .comb { display: grid; gap: .6rem; justify-self: stretch; }
    .comb-row { display: contents; }
    .cell {
        width: auto; height: auto; clip-path: none; border-radius: 12px;
        flex-direction: column; align-items: flex-start; text-align: left;
        padding: .85rem 1rem .85rem 3rem; position: relative; gap: .1rem;
    }
    .cell::before {
        content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 18px; height: 20px;
        background: var(--honey); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    }
    .cell-honey::before { background: var(--navy); }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* How it works: numbered hexagons joined by the bee's dotted flight path */
.steps {
    list-style: none; padding: 0; margin: 2.25rem 0 0; counter-reset: step;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative;
}
.steps::before {
    content: ""; position: absolute; top: 24px; left: 24px; right: calc((100% - 6rem) / 4 - 24px);
    border-top: 3px dotted var(--navy); opacity: .35;
}
.steps li { counter-increment: step; position: relative; }
.steps li::before {
    content: counter(step);
    display: grid; place-items: center; width: 48px; height: 54px; margin-bottom: 1rem;
    font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
    background: var(--honey); color: var(--navy); position: relative;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.steps h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.steps p { color: var(--ink-soft); margin: 0; }

@media (max-width: 860px) {
    .steps { grid-template-columns: 1fr; gap: 1.5rem; }
    .steps::before { top: 24px; bottom: 24px; left: 23px; right: auto; border-top: 0; border-left: 3px dotted var(--navy); }
    .steps li { padding-left: 4.25rem; }
    .steps li::before { position: absolute; left: 0; top: 0; }
}

/* Credit transfer */
.transfer { background: var(--lilac-soft); }
.transfer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.transfer-copy p { max-width: 54ch; }
.tick-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.tick-list li { padding-left: 1.75rem; position: relative; margin-bottom: .45rem; }
.tick-list li::before {
    content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 13px; background: var(--honey-deep);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.price-line { margin-bottom: 1rem; }
.fine-print { font-size: .88rem; color: var(--ink-soft); margin-top: 1.25rem; }

.roadmap { margin: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 1.25rem; box-shadow: 0 24px 40px -28px rgba(31,25,61,.45); }
.roadmap figcaption { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; margin-bottom: .75rem; }
.roadmap-scroll { overflow-x: auto; }
.roadmap table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 460px; }
.roadmap th { text-align: left; font-size: .8rem; color: var(--ink-soft); font-weight: 700; padding: .5rem .5rem; border-bottom: 2px solid var(--line); }
.roadmap td { padding: .65rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.roadmap td:last-child, .roadmap th:last-child { text-align: right; }
.roadmap-total { display: flex; gap: 1.5rem; justify-content: flex-end; margin: .9rem 0 0; font-size: .95rem; color: var(--ink-soft); }
.roadmap-total strong { color: var(--navy); font-family: var(--font-head); font-size: 1.2rem; margin-left: .3rem; }

.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.tag-done { background: #E4F3E8; color: #1D6B36; }
.tag-verified { background: var(--navy); color: #fff; }
.tag-probable { background: #FDEBC4; color: var(--brown); }
.tag-confirm { background: var(--lilac); color: var(--navy); }

@media (max-width: 920px) {
    .transfer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Certifications and nursing */
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pair-block { padding-right: clamp(1.5rem, 4vw, 3.5rem); }
.pair-block + .pair-block { padding-right: 0; padding-left: clamp(1.5rem, 4vw, 3.5rem); border-left: 2px solid var(--line); }
.pair-block > p { color: var(--ink-soft); max-width: 46ch; }
.link-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.link-list li { border-top: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: .7rem 0; font-weight: 700; text-decoration: none; }
.link-list a:hover { color: var(--honey-deep); }

@media (max-width: 760px) {
    .pair-grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
    .pair-block, .pair-block + .pair-block { padding: 0; border-left: 0; }
}

/* Prices */
.prices { padding-top: 0; }
.price-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 1.5rem 0 1.25rem; border-top: 3px solid var(--navy); }
.price-list > div { padding: 1.25rem 1.25rem 1.25rem 0; }
.price-list > div + div { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.price-list dt { font-weight: 700; color: var(--ink-soft); font-size: .95rem; margin-bottom: .4rem; }
.price-list dd { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.price-list dd strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; color: var(--navy); margin-bottom: .35rem; }

@media (max-width: 900px) {
    .price-list { grid-template-columns: 1fr 1fr; }
    .price-list > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .price-list > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
    .price-list { grid-template-columns: 1fr; }
    .price-list > div, .price-list > div + div { padding: 1.1rem 0; border-left: 0; }
    .price-list > div + div { border-top: 1px solid var(--line); }
}

/* Closing call to action */
.cta-band { background: var(--honey); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.cta-inner h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: .3rem; }
.cta-inner p { margin: 0; color: var(--navy); }

/* Placeholder pages */
.placeholder { padding-block: clamp(4rem, 10vw, 7rem); }
.placeholder h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.placeholder p { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 1.75rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: #C9C3E4; font-size: .95rem; padding-top: clamp(3rem, 6vw, 4rem); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
.brand-on-dark { color: #fff; margin-bottom: 1rem; }
.brand-on-dark .brand-tag { color: var(--honey); }
.footer-brand p { max-width: 32ch; }
.footer-col h2 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--honey); margin-bottom: .8rem; letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.contact-list { word-break: break-word; }
.contact-list address { font-style: normal; }
.footer-base {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
    margin-top: 2.5rem; padding-block: 1.25rem 5.5rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem;
}
.footer-base p { margin: 0; }

@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp chat button ---------- */

.chat-float {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--navy); color: #fff; text-decoration: none;
    font-family: var(--font-head); font-weight: 600;
    padding: .75rem 1.1rem; border-radius: 999px;
    box-shadow: 0 10px 24px -8px rgba(31,25,61,.55);
    border: 2px solid var(--honey);
}
.chat-float svg { width: 20px; height: 20px; color: var(--honey); }
.chat-float:hover { background: var(--navy-2); }
@media (max-width: 480px) {
    .chat-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .chat-float { padding: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* ==========================================================================
   Step 2: forms, sign-in pages, account dashboard, admin
   ========================================================================== */

.btn-sm { font-size: .9rem; padding: .45rem .9rem; }
.btn-block { width: 100%; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--navy); text-decoration: underline; cursor: pointer; }
.inline-form { display: inline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Alerts */
.alert { padding: .85rem 1rem; border-radius: 10px; margin-bottom: 1.25rem; font-size: .97rem; }
.alert-ok { background: #E4F3E8; color: #1D5A31; border-left: 4px solid #2E8B4E; }
.alert-warn { background: #FDF1D6; color: var(--brown); border-left: 4px solid var(--honey-deep); }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; min-width: 0; align-content: start; }
.field label.check { font-weight: 400; font-size: .95rem; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 700; font-size: .95rem; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .9rem; }
.optional { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; color: var(--ink);
    padding: .7rem .85rem; border: 2px solid var(--line); border-radius: 10px; background: #fff;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(243,175,42,.45); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.field-hint { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.field-error { font-size: .88rem; color: #B3261E; font-weight: 700; margin: 0; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .field-pair { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--navy); flex: none; }
.code-input { font-size: 1.4rem !important; letter-spacing: .3em; max-width: 12rem; }

/* Sign-in pages: honeycomb-tinted backdrop, white card */
.auth {
    min-height: calc(100vh - 72px); display: grid; place-items: start center;
    padding: clamp(2rem, 6vw, 4rem) var(--gutter);
    background:
        radial-gradient(circle at 15% 20%, rgba(243,175,42,.18) 0 120px, transparent 121px),
        var(--lilac-soft);
}
.auth-card {
    width: 100%; max-width: 460px; background: #fff; border-radius: 18px; border: 1px solid var(--line);
    padding: clamp(1.5rem, 5vw, 2.5rem); box-shadow: 0 24px 50px -30px rgba(31,25,61,.5);
}
.auth-card h1 { font-size: 1.9rem; margin-bottom: .3rem; }
.auth-sub { color: var(--ink-soft); margin-bottom: 1.5rem; }
.auth-foot { margin: 1.25rem 0 0; font-size: .95rem; text-align: center; }
.recovery { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.recovery summary { cursor: pointer; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }

/* Account shell */
.app-shell {
    display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem);
    padding-block: clamp(1.5rem, 4vw, 3rem) 5rem; align-items: start;
}
.app-side { position: sticky; top: 88px; display: grid; gap: 1.25rem; }
.app-user { margin: 0; display: grid; gap: .1rem; }
.app-user strong { font-family: var(--font-head); font-size: 1.15rem; }
.app-user span { font-size: .85rem; color: var(--ink-soft); }
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.side-nav a { display: block; padding: .5rem .75rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; }
.side-nav a:hover { background: var(--lilac-soft); }
.side-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.side-nav-extra { border-top: 1px solid var(--line); padding-top: .75rem; }

.panel-title { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.panel-sub { font-size: 1.25rem; margin-top: 2.5rem; }
.panel-block { padding: 1.5rem 0; border-top: 1px solid var(--line); max-width: 760px; }
.panel-block h2 { font-size: 1.3rem; margin-bottom: .25rem; }

.empty {
    background: var(--lilac-soft); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.25rem);
    max-width: 760px; position: relative; overflow: hidden;
}
.empty::after {
    content: ""; position: absolute; right: -28px; bottom: -34px; width: 130px; height: 150px; background: var(--honey); opacity: .35;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.empty h2 { font-size: 1.3rem; }
.empty p { max-width: 50ch; color: var(--ink-soft); }

.quick-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; max-width: 760px; border-top: 1px solid var(--line); }
.quick-links li { border-bottom: 1px solid var(--line); }
.quick-links li:nth-child(odd) { border-right: 1px solid var(--line); }
.quick-links a { display: grid; gap: .15rem; padding: 1rem 1rem 1rem 0; text-decoration: none; color: var(--ink); }
.quick-links li:nth-child(even) a { padding-left: 1rem; }
.quick-links span { font-size: .9rem; color: var(--ink-soft); }
.quick-links a:hover strong { color: var(--honey-deep); }

.state { padding-left: 1.5rem; position: relative; }
.state::before { content: ""; position: absolute; left: 0; top: .35em; width: 12px; height: 13px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.state-on::before { background: #2E8B4E; }
.state-off::before { background: #B3261E; }
.inline-fields { grid-template-columns: minmax(0, 18rem) auto; align-items: end; margin-top: 1rem; }
@media (max-width: 560px) { .inline-fields { grid-template-columns: minmax(0, 1fr); } }
.setup-steps { padding-left: 1.25rem; display: grid; gap: .75rem; }
.qr { background: #fff; display: inline-block; padding: .5rem; border: 1px solid var(--line); border-radius: 10px; margin: .75rem 0 .5rem; }
.qr svg { width: 180px; height: 180px; }
.secret { font-size: .95rem; background: var(--lilac-soft); padding: .15rem .4rem; border-radius: 6px; word-break: break-all; }
.codes { background: #FDF1D6; border-radius: 12px; padding: 1rem 1.25rem; margin: 1rem 0; }
.codes ul { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; grid-template-columns: repeat(2, max-content); gap: .35rem 2rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; }

.stat-row { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 1.5rem; border-top: 3px solid var(--navy); max-width: 760px; }
.stat-row > div { padding: 1rem 2rem 1rem 0; }
.stat-row > div + div { padding-left: 2rem; border-left: 1px solid var(--line); }
.stat-row dt { font-size: .9rem; color: var(--ink-soft); font-weight: 700; }
.stat-row dd { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 2rem; }

.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.data-table th { text-align: left; font-size: .82rem; color: var(--ink-soft); padding: .5rem; border-bottom: 2px solid var(--line); }
.data-table td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); }

@media (max-width: 860px) {
    .app-shell { grid-template-columns: minmax(0, 1fr); }
    .app-side { position: static; }
    .side-nav { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .5rem; }
    .side-nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .85rem; }
    .side-nav-extra { border-top: 0; padding-top: 0; }
    .quick-links { grid-template-columns: minmax(0, 1fr); }
    .quick-links li:nth-child(odd) { border-right: 0; }
    .quick-links li:nth-child(even) a { padding-left: 0; }
}

/* ==========================================================================
   Step 3: pricing page, calculator, admin catalog
   ========================================================================== */

[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page-head { background: var(--navy); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem) clamp(5rem, 9vw, 6.5rem); }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: .4rem; }
.lead-dark { color: #DCD8EE; font-size: 1.12rem; max-width: 56ch; margin: 0; }

/* Calculator overlaps the navy header band */
.calc-section { padding-top: 0; }
.calc-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(1.25rem, 3vw, 2rem);
    margin-top: calc(-1 * clamp(3.5rem, 7vw, 4.5rem)); align-items: start;
}
.calc {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: clamp(1.25rem, 4vw, 2rem); box-shadow: 0 24px 50px -32px rgba(31,25,61,.5);
}
.calc-title { font-size: 1.35rem; margin: 0; }
.check-note { display: block; font-size: .85rem; color: var(--ink-soft); }

.stepper { display: flex; align-items: stretch; max-width: 12rem; }
.stepper input { text-align: center; border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn {
    flex: none; width: 2.75rem; font: inherit; font-size: 1.3rem; font-weight: 700; color: var(--navy);
    background: var(--lilac-soft); border: 2px solid var(--line); cursor: pointer;
}
.step-btn:first-child { border-radius: 10px 0 0 10px; }
.step-btn:last-child { border-radius: 0 10px 10px 0; }
.step-btn:hover { background: var(--lilac); }

.coupon-row { display: flex; gap: .5rem; }
.coupon-row input { text-transform: uppercase; }
.field-hint.is-good { color: #1D6B36; font-weight: 700; }
.field-hint.is-bad { color: #B3261E; font-weight: 700; }

.summary {
    position: sticky; top: 88px;
    background: var(--navy); color: #fff; border-radius: 18px; padding: 1.5rem;
    box-shadow: 0 24px 50px -28px rgba(31,25,61,.7);
    transition: opacity .15s;
}
.summary.is-loading { opacity: .75; }
.summary-title { font-size: 1.3rem; margin-bottom: .75rem; }
.summary-applied { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.summary-applied li { font-size: .8rem; background: rgba(255,255,255,.1); border-radius: 999px; padding: .15rem .6rem; color: #DCD8EE; }
.summary-lines { width: 100%; border-collapse: collapse; font-size: .95rem; }
.summary-lines td { padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #DCD8EE; }
.summary-lines td:last-child { text-align: right; white-space: nowrap; color: #fff; }
.summary-lines .is-discount td { color: var(--honey); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 1rem 0 .5rem; }
.summary-total span { font-weight: 700; }
.summary-total strong { font-family: var(--font-head); font-size: 2.3rem; font-weight: 600; color: var(--honey); }
.summary-due, .summary-note { font-size: .9rem; color: #C9C3E4; margin: 0 0 .35rem; }
.summary .btn-block { margin-top: 1rem; }
.summary .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.summary .btn-outline:hover { background: rgba(255,255,255,.1); }
.summary-error { background: #FBE3E1; color: #8C1D18; border-radius: 10px; padding: .6rem .8rem; font-size: .92rem; margin-top: 1rem; }
.summary-secure { font-size: .8rem; color: #A9A2CC; margin: 1rem 0 0; text-align: center; }

@media (max-width: 880px) {
    .calc-grid { grid-template-columns: minmax(0, 1fr); }
    .summary { position: static; }
}

/* Price matrix: the honey diagonal marks the base price */
.matrix-intro { color: var(--ink-soft); max-width: 70ch; }
.matrix { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 560px; font-variant-numeric: tabular-nums; }
.matrix th, .matrix td { padding: .65rem .8rem; text-align: right; border-bottom: 1px solid var(--line); }
.matrix thead th { font-size: .85rem; color: var(--ink-soft); border-bottom: 2px solid var(--navy); }
.matrix thead th:first-child, .matrix tbody th { text-align: left; }
.matrix tbody th { font-weight: 700; white-space: nowrap; }
.matrix tbody tr:first-child td:nth-child(2) { background: var(--honey); font-weight: 700; border-radius: 8px; }
.matrix tbody tr:hover td, .matrix tbody tr:hover th { background: var(--lilac-soft); }
.matrix-compact th, .matrix-compact td { padding: .4rem .6rem; font-size: .9rem; }

.other-prices { padding-top: 0; }
.price-group { margin-top: 2rem; }
.price-group h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.price-rows { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--navy); }
.price-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.pr-name { font-weight: 700; }
.pr-note { display: block; font-weight: 400; font-size: .88rem; color: var(--ink-soft); }
.pr-price { white-space: nowrap; font-family: var(--font-head); font-weight: 600; }
@media (max-width: 520px) {
    .price-rows li { flex-direction: column; gap: .2rem; }
}

/* Admin */
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.panel-head .panel-title { margin: 0; }
.panel-lead { color: var(--ink-soft); max-width: 70ch; }
.edit-table input:not([type="checkbox"]) {
    width: 100%; font: inherit; padding: .4rem .55rem; border: 2px solid var(--line); border-radius: 8px;
}
.edit-table input:focus { outline: none; border-color: var(--navy); }
.edit-table input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--navy); }
input.num { max-width: 7rem; }
.edit-table td:first-child { min-width: 14rem; }

/* ==========================================================================
   Step 4: start page, order form, order pages
   ========================================================================== */

.page-head-short { padding-bottom: clamp(5rem, 9vw, 6rem); }
.crumb { margin: 0 0 .5rem; font-size: .92rem; }
.crumb a { color: var(--honey); }

/* Start page */
.start-section { padding-top: 0; }
.start-grid {
    margin-top: calc(-1 * clamp(3.5rem, 7vw, 4rem));
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.25rem;
}
.start-block { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem 1.25rem .5rem; box-shadow: 0 18px 40px -32px rgba(31,25,61,.5); }
.start-block h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.start-list { list-style: none; margin: 0; padding: 0; }
.start-list li + li { border-top: 1px solid var(--line); }
.start-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .75rem 0; text-decoration: none; color: var(--ink); }
.start-list a:hover .sl-name { color: var(--honey-deep); }
.sl-name { font-weight: 700; }
.sl-meta { font-size: .85rem; color: var(--ink-soft); white-space: nowrap; }

/* Order form */
.order-form { gap: 0; }
.form-step { padding: 1.5rem 0; border-top: 1px solid var(--line); display: grid; gap: 1.1rem; }
.form-step:first-of-type { border-top: 0; padding-top: 0; }
.step-title { display: flex; align-items: center; gap: .65rem; font-size: 1.25rem; margin: 0; }
.step-title > span:first-child {
    display: grid; place-items: center; width: 32px; height: 36px; flex: none;
    background: var(--honey); color: var(--navy); font-size: 1rem;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.note-box { background: var(--lilac-soft); border-left: 4px solid var(--navy); border-radius: 8px; padding: .75rem 1rem; margin: 0; font-size: .95rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.detail-grid .field-wide, .detail-grid fieldset.field { grid-column: 1 / -1; }
@media (max-width: 560px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .4rem 1rem; }

.drop {
    display: grid; gap: .2rem; justify-items: start; cursor: pointer;
    border: 2px dashed var(--lilac); border-radius: 14px; padding: 1.1rem 1.2rem; background: var(--lilac-soft);
}
.drop:hover, .drop:focus-within { border-color: var(--navy); }
.drop-main { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.drop-sub { font-size: .88rem; color: var(--ink-soft); font-weight: 400; }
.drop input { font-size: .9rem; margin-top: .5rem; max-width: 100%; }
.file-list { list-style: none; margin: .25rem 0 0; padding: 0; font-size: .9rem; display: grid; gap: .2rem; }
.file-list .is-bad { color: #B3261E; font-weight: 700; }
.integrity { background: #FDF1D6; border-radius: 10px; padding: .85rem 1rem; margin: 1.25rem 0 .5rem; }
.order-form .coupon-field { margin-top: 1.25rem; }
.order-form > .btn-lg { margin-top: 1.5rem; justify-self: start; }
.summary-steps { padding-left: 1.25rem; color: #DCD8EE; display: grid; gap: .4rem; margin: 0 0 1.25rem; }

/* Order list */
.tabs { display: flex; gap: .4rem; margin: 1rem 0 1.25rem; }
.tabs a { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; }
.tabs a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.order-list { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--line); max-width: 860px; }
.order-list li { border-bottom: 1px solid var(--line); }
.order-list a { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; text-decoration: none; color: var(--ink); }
.order-list a:hover strong { color: var(--honey-deep); }
.ol-main { display: grid; gap: .15rem; min-width: 0; }
.ol-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-main span { font-size: .87rem; color: var(--ink-soft); }
.ol-side { display: grid; justify-items: end; gap: .25rem; flex: none; }
.ol-price { font-family: var(--font-head); font-weight: 600; }
.panel-sub.flush { margin: 0; }

.status { display: inline-block; font-size: .8rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; background: var(--lilac); color: var(--navy); white-space: nowrap; }
.status-awaiting_payment, .status-quoted, .status-on_hold { background: #FDEBC4; color: var(--brown); }
.status-paid, .status-assigned, .status-in_progress, .status-quality_review, .status-revision_requested { background: var(--navy); color: #fff; }
.status-delivered, .status-completed { background: #E4F3E8; color: #1D6B36; }
.status-cancelled, .status-refunded, .status-refund_requested, .status-disputed { background: #EEE; color: #555; }

/* Order page */
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.order-head .panel-title { margin-bottom: .25rem; }
.order-no { margin: 0; font-size: .9rem; color: var(--ink-soft); font-weight: 700; }
.status-text { color: var(--ink-soft); margin-bottom: 1.25rem; }
.pay-box {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    background: #FDF1D6; border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; max-width: 980px;
}
.pay-box div { display: grid; gap: .2rem; max-width: 60ch; }
.pay-box span { font-size: .9rem; color: var(--brown); }
.pay-box .btn[disabled] { opacity: .55; cursor: not-allowed; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; max-width: 980px; align-items: start; }
@media (max-width: 980px) { .order-grid { grid-template-columns: minmax(0, 1fr); } }
.answers { margin: 0; display: grid; gap: 0; }
.answers > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.answers dt { font-weight: 700; color: var(--ink-soft); font-size: .92rem; }
.answers dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .answers > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; } }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.files li { display: grid; gap: .1rem; }
.files a { font-weight: 700; overflow-wrap: anywhere; }
.files span { font-size: .85rem; color: var(--ink-soft); }
.price-card, .timeline-card { background: var(--lilac-soft); border-radius: 14px; padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.price-card h2, .timeline-card h2 { font-size: 1.1rem; margin-bottom: .5rem; }
.price-lines { width: 100%; border-collapse: collapse; font-size: .92rem; }
.price-lines td { padding: .35rem 0; border-bottom: 1px solid var(--line); }
.price-lines td:last-child { text-align: right; white-space: nowrap; }
.price-lines .total td { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; border-bottom: 0; padding-top: .6rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.timeline li { display: grid; gap: .1rem; padding-left: 1rem; border-left: 3px solid var(--honey); }
.tl-time { font-size: .8rem; color: var(--ink-soft); }
.tl-body { display: grid; font-size: .92rem; }
.link-button.danger { color: #B3261E; }

/* Admin filters and pagination */
.filter-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin: 1rem 0 1.25rem; }
.filter-bar .field { min-width: 11rem; }
.filter-bar input, .filter-bar select { padding: .5rem .7rem; }
.pagination { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 1rem 0; }
.pagination li a, .pagination li span { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; }
.pagination .disabled span { color: #AAA; }

/* ==========================================================================
   Step 5: payments
   ========================================================================== */

.pay-box-live { align-items: flex-start; background: #fff; border: 2px solid var(--honey); }
.pay-info { display: grid; gap: .35rem; }
.pay-info strong { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; }
.pay-info > span { color: var(--ink-soft) !important; }
.pay-choice { border: 0; padding: 0; margin: .5rem 0 0; display: grid; gap: .35rem; }
.pay-action { width: min(100%, 320px); display: grid; gap: .5rem; }
.pay-note { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.pay-error { background: #FBE3E1; color: #8C1D18; border-radius: 8px; padding: .5rem .7rem; font-size: .9rem; margin: 0; }
#paypal-buttons { min-height: 50px; }
#paypal-buttons.is-busy { opacity: .5; pointer-events: none; }
.pay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .92rem; }
.pay-list li { display: grid; }
.pay-list span { font-size: .82rem; color: var(--ink-soft); }
.refund-box { margin-bottom: 1rem; }
.refund-box summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: .4rem 0; }
.refund-box .form { margin-top: .75rem; }
.mode-note { font-size: .92rem; color: var(--ink-soft); }

/* Printable receipt */
.receipt-page { background: var(--lilac-soft); }
.receipt { max-width: 760px; margin: 2rem auto; background: #fff; border-radius: 16px; padding: clamp(1.5rem, 5vw, 3rem); }
.receipt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 3px solid var(--navy); padding-bottom: 1rem; }
.receipt-meta { text-align: right; }
.receipt-meta h1 { font-size: 1.8rem; margin: 0; }
.receipt-meta p { margin: .25rem 0 0; color: var(--ink-soft); font-size: .92rem; }
.receipt-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
.receipt-parties h2 { font-family: var(--font-body); font-size: .85rem; color: var(--ink-soft); margin-bottom: .25rem; }
.receipt-parties p { margin: 0; }
.receipt-table { width: 100%; border-collapse: collapse; }
.receipt-table th { text-align: left; font-size: .85rem; color: var(--ink-soft); border-bottom: 2px solid var(--line); padding: .5rem 0; }
.receipt-table td { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.receipt-table td:last-child, .receipt-table th:last-child { text-align: right; white-space: nowrap; }
.receipt-table .sub td { font-weight: 700; }
.receipt-table .paid td { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; border-bottom: 3px solid var(--navy); }
.receipt-foot { font-size: .85rem; color: var(--ink-soft); margin-top: 1rem; }
.receipt-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
@media print {
    .no-print { display: none !important; }
    .receipt-page { background: #fff; }
    .receipt { margin: 0; padding: 0; border-radius: 0; }
}

/* ==========================================================================
   Step 6: messages, delivery, notifications
   ========================================================================== */

.badge { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .4rem; margin-left: .45rem;
    border-radius: 999px; background: var(--honey); color: var(--navy); font-size: .75rem; font-weight: 700; }
.side-nav a[aria-current="page"] .badge { background: #fff; }

.thread { padding: 1.5rem 0; border-top: 1px solid var(--line); max-width: 760px; }
.thread h2 { font-size: 1.3rem; }
.msgs { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; }
.msg { max-width: 88%; padding: .75rem 1rem; border-radius: 14px; background: var(--lilac-soft); }
.msg-mine { justify-self: end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.msg-theirs { justify-self: start; border-bottom-left-radius: 4px; }
.msg-theirs.msg-staff, .msg-theirs.msg-worker { background: #FFF6E0; border: 1px solid #F6DFA6; }
.msg-meta { display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; font-size: .82rem; margin: 0 0 .3rem; }
.msg-mine .msg-meta { color: #C9C3E4; }
.msg-meta time { opacity: .8; }
.msg-body { overflow-wrap: anywhere; }
.msg-files { list-style: none; margin: .5rem 0 0; padding: 0; font-size: .88rem; }
.msg-files span { opacity: .75; font-size: .8rem; }
.msg-mine a { color: var(--honey); }
.msg-held, .msg-blocked { opacity: .8; border: 2px dashed var(--honey-deep); }
.msg-flag { font-size: .82rem; margin: .5rem 0 0; font-style: italic; }
.msg-form { gap: .6rem; }
.msg-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.file-pick { font-size: .9rem; font-weight: 700; color: var(--navy); cursor: pointer; }
.file-pick input { display: block; font-weight: 400; margin-top: .25rem; max-width: 260px; }

.deliver-box {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
    background: #E4F3E8; border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; max-width: 980px;
}
.deliver-box > div:first-child { display: grid; gap: .2rem; }
.deliver-box span { font-size: .92rem; color: #1D5A31; }
.deliver-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.files li.file-delivery { background: #E4F3E8; border-radius: 10px; padding: .5rem .7rem; }
.deliver-form { background: #FFF6E0; border-radius: 14px; padding: 1.25rem; border-top: 0; margin-bottom: 1rem; }

.note-list { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--line); max-width: 760px; }
.note-list li { border-bottom: 1px solid var(--line); }
.note-list a { display: grid; gap: .15rem; padding: .85rem .75rem; text-decoration: none; color: var(--ink); }
.note-list span { color: var(--ink-soft); font-size: .92rem; }
.note-list time { font-size: .8rem; color: var(--ink-soft); }
.note-list .is-unread a { background: #FFF6E0; border-left: 4px solid var(--honey); }
.held .msg-meta { color: var(--ink-soft); }

/* ==========================================================================
   Step 7: order management, expert portal, people, payouts
   ========================================================================== */

.mgmt-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1rem; display: grid; gap: .75rem; }
.mgmt-card h2 { font-size: 1.05rem; margin: 0; }
.mgmt-card .field input, .mgmt-card .field select, .mgmt-card .field textarea { padding: .5rem .65rem; }
.mgmt-honey { border: 2px solid var(--honey); background: #FFFBF0; }
.mt { margin-top: .5rem; }

.todo { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.todo a { display: inline-block; padding: .55rem .9rem; border-radius: 10px; background: #FFF6E0; border: 1px solid #F6DFA6; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; }
.todo strong { font-family: var(--font-head); font-size: 1.1rem; margin-right: .2rem; }
.todo .is-late a { background: #FBE3E1; border-color: #F2B8B5; }

.work-list .due { font-size: .85rem; color: var(--ink-soft); }
.work-list .is-late .due { color: #B3261E; font-weight: 700; }
.work-list .is-late { border-left: 4px solid #B3261E; padding-left: .75rem; }

.avail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.pay-tag { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; background: var(--honey); color: var(--navy); border-radius: 999px; padding: .2rem .8rem; white-space: nowrap; }
td.neg { color: #B3261E; }

/* ==========================================================================
   Step 8: support
   ========================================================================== */

.contact-ways { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .85rem; }
.contact-ways li { display: grid; gap: .1rem; color: #DCD8EE; }
.contact-ways span { font-size: .8rem; color: #A9A2CC; font-weight: 700; }
.contact-ways a:not(.btn), .on-dark { color: var(--honey); }
.ticket-msgs { margin-top: 1rem; }
.msg-internal { background: #FFF6E0 !important; color: var(--ink) !important; border: 2px dashed var(--honey-deep); }
.msg-internal .msg-meta { color: var(--brown) !important; }
.prio { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: var(--lilac-soft); }
.prio-high { background: #FDEBC4; color: var(--brown); }
.prio-urgent { background: #B3261E; color: #fff; }
.ticket-table tr.sla-soon td:last-child { color: var(--honey-deep); font-weight: 700; }
.ticket-table tr.sla-late td { background: #FDF0EF; }
.ticket-table tr.sla-late td:last-child { color: #B3261E; font-weight: 700; }

/* ==========================================================================
   Step 9: content pages, FAQ, reviews
   ========================================================================== */

.page-head-text { padding-bottom: clamp(2.5rem, 6vw, 3.5rem); }
.page-meta { color: #A9A2CC; font-size: .88rem; margin: .75rem 0 0; }
.page-meta:empty { display: none; }
.lead-dark a { color: var(--honey); }

.svc-section { padding-top: 0; }
.svc-list { list-style: none; margin: calc(-1 * clamp(3.5rem, 7vw, 4.5rem)) 0 0; padding: 0; display: grid; gap: .75rem; }
.svc-list li {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.25rem;
    box-shadow: 0 16px 36px -30px rgba(31,25,61,.6);
}
.svc-list h2 { font-size: 1.2rem; margin: 0 0 .2rem; }
.svc-list p { margin: 0; color: var(--ink-soft); font-size: .95rem; max-width: 60ch; }
.svc-side { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.svc-price { font-family: var(--font-head); font-weight: 600; }

.prose-section { padding-top: clamp(2rem, 5vw, 3rem); }
.prose-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .prose-wrap { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 70ch; font-size: 1.06rem; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .6rem; }
.prose h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .5rem .6rem; text-align: left; }
.prose th { border-bottom: 2px solid var(--navy); }
.prose blockquote { margin: 1rem 0; padding: .75rem 1rem; background: var(--lilac-soft); border-left: 4px solid var(--navy); border-radius: 6px; }
.prose code { background: var(--lilac-soft); padding: .05rem .3rem; border-radius: 4px; }
.cta-card { position: sticky; top: 92px; background: var(--lilac-soft); border-radius: 16px; padding: 1.25rem; display: grid; gap: .6rem; }
.cta-card h2 { font-size: 1.15rem; margin: 0; }
.cta-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) { .cta-card { position: static; } }

.article-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.article-list a { display: grid; gap: .35rem; height: 100%; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); border-top: 4px solid var(--honey); }
.article-list a:hover strong { color: var(--honey-deep); }
.article-list strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.article-list span { color: var(--ink-soft); font-size: .93rem; }
.article-list time { font-size: .82rem; color: var(--ink-soft); }

.faq-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.faq-nav { position: sticky; top: 92px; display: grid; gap: .2rem; }
.faq-nav a { padding: .4rem .6rem; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .95rem; }
.faq-nav a:hover { background: var(--lilac-soft); }
@media (max-width: 820px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } .faq-nav { position: static; display: flex; flex-wrap: wrap; } }
.faq-group { font-size: 1.35rem; margin: 2rem 0 .5rem; scroll-margin-top: 90px; }
.faq-group:first-child { margin-top: 0; }
.faq { border-bottom: 1px solid var(--line); max-width: 760px; }
.faq summary { cursor: pointer; padding: .9rem 2rem .9rem 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .7rem; font-size: 1.3rem; color: var(--honey-deep); }
.faq[open] summary::after { content: "−"; }
.faq .prose { padding-bottom: 1rem; font-size: 1rem; }
.admin-faq form { padding-bottom: 1rem; }

.rating-big { font-size: 1.05rem; color: #DCD8EE; margin-top: .75rem; }
.rating-big strong { font-family: var(--font-head); font-size: 2rem; color: var(--honey); margin-right: .3rem; }
.review { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.stars { color: var(--honey); font-size: 1.15rem; letter-spacing: .1em; margin: 0 0 .35rem; }
.stars span { color: var(--line); }
.review-meta { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.verified { color: #1D6B36; font-weight: 700; }
.review-reply { background: var(--lilac-soft); border-radius: 8px; padding: .6rem .8rem; font-size: .95rem; margin-top: .6rem; }

.star-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; }
.star-pick legend { width: 100%; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { font-size: 2rem; color: var(--line); cursor: pointer; line-height: 1; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: var(--honey); }
.star-pick input:focus-visible + label { outline: 3px solid var(--honey-deep); border-radius: 4px; }
textarea.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92rem; line-height: 1.5; }

/* ==========================================================================
   Step 10: credit transfer roadmaps
   ========================================================================== */

.eq { display: inline-block; font-size: .76rem; font-weight: 700; padding: .12rem .55rem; border-radius: 999px; white-space: nowrap; }
.eq-verified { background: var(--navy); color: #fff; }
.eq-probable { background: #FDEBC4; color: var(--brown); }
.eq-confirm { background: var(--lilac); color: var(--navy); }
.eq-historical { background: #EEE; color: #555; }
.eq-unavailable { background: #FBE3E1; color: #8C1D18; }
.label-key { margin: 0; display: grid; gap: .5rem; }
.label-key > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .75rem; align-items: baseline; font-size: .92rem; }
.label-key dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) { .label-key > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; } }

.rm-disclaimer { background: #FFF6E0; border-left: 4px solid var(--honey-deep); border-radius: 8px; padding: .8rem 1rem; margin: 1rem 0 1.5rem; max-width: 900px; }
.rm-cat { font-size: 1.2rem; margin: 2rem 0 .5rem; }
.rm-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
.rm-table th { text-align: left; font-size: .8rem; color: var(--ink-soft); border-bottom: 2px solid var(--navy); padding: .45rem .5rem; }
.rm-table td { border-bottom: 1px solid var(--line); padding: .6rem .5rem; vertical-align: top; }
.rm-table tr.is-done td { background: #F3FAF5; }
.rm-note { font-size: .82rem; color: var(--ink-soft); }
.rm-seq { font-size: .75rem; font-weight: 700; color: var(--brown); margin-left: .3rem; }
.tick { width: 1.8rem; height: 1.8rem; border-radius: 6px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; color: #1D6B36; }
.tick.is-on { background: #E4F3E8; border-color: #2E8B4E; }

.rm-builder { display: grid; gap: .75rem; }
.rm-row { border: 1px solid var(--line); border-radius: 12px; padding: .75rem .9rem; margin: 0; border-left: 5px solid var(--lilac); }
.rm-row-completed { border-left-color: #2E8B4E; }
.rm-row-planned { border-left-color: var(--honey); }
.rm-new { border-style: dashed; }
.rm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem .75rem; }
.rm-grid .rm-wide { grid-column: span 2; }
.rm-grid .field label { font-size: .8rem; }
.rm-grid .field input, .rm-grid .field select { padding: .4rem .55rem; font-size: .92rem; }
.rm-flags { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .5rem; font-size: .88rem; }
@media (max-width: 700px) { .rm-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.answers.small > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; font-size: .9rem; }
.roadmap-print .rm-table { min-width: 0; font-size: .85rem; }
.check-band { padding: 0 0 1rem; }
.check-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--lilac-soft); border-radius: 14px; padding: 1rem 1.25rem; }
.check-inner p { margin: 0; }

/* ==========================================================================
   Step 11: sessions, study plans, certifications
   ========================================================================== */

.session-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.session { border: 1px solid var(--line); border-left: 5px solid var(--honey); border-radius: 12px; padding: .75rem 1rem; margin-bottom: .6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.session p { margin: .25rem 0 0; }
.session-completed { border-left-color: #2E8B4E; }
.session-cancelled, .session-no_show { border-left-color: var(--line); opacity: .75; }
.session-link a { font-weight: 700; overflow-wrap: anywhere; }
.session-note { font-size: .92rem; background: var(--lilac-soft); border-radius: 8px; padding: .5rem .7rem; }
.session-change summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: .92rem; }
.session .form { display: grid; gap: .5rem; width: 100%; }

.avail-rows { display: grid; gap: .5rem; margin-bottom: .75rem; }
.avail-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.avail-row select, .avail-row input { font: inherit; padding: .45rem .6rem; border: 2px solid var(--line); border-radius: 8px; }

.rm-grid .rm-full { grid-column: 1 / -1; }
.rm-grid textarea { font: inherit; padding: .4rem .55rem; border: 2px solid var(--line); border-radius: 8px; width: 100%; }

.plan-card { display: grid; grid-template-columns: minmax(0, 1fr) 180px auto; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; margin-bottom: .75rem; text-decoration: none; color: var(--ink); max-width: 860px; }
.plan-card > span:first-child { display: grid; gap: .15rem; }
@media (max-width: 600px) { .plan-card { grid-template-columns: minmax(0, 1fr); } }
.progress { display: block; height: 10px; background: var(--lilac-soft); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--honey); border-radius: 999px; }
.progress.big { height: 14px; width: min(100%, 420px); }
.plan-top { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.plan-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; max-width: 820px; }
.plan-items li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: start; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; }
.plan-items li.is-done { background: #F3FAF5; }
.plan-items li.is-done strong { text-decoration: line-through; text-decoration-color: rgba(31,25,61,.35); }
.plan-items p { margin: .3rem 0 0; font-size: .94rem; color: var(--ink-soft); }

/* Pagination */
.pager { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: 1.25rem 0; }
.pager a, .pager-off { display: inline-block; padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; text-decoration: none; }
.pager a:hover { background: var(--lilac-soft); }
.pager-off { color: #AAA; }
.pager-info { font-size: .9rem; color: var(--ink-soft); }
