@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-ui: "Space Grotesk", -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

    --cream: #FAF9F5;
    --ivory: #F2EFE8;
    --card:  #FFFFFF;
    --input: #FFFFFF;
    --paper: #FFFFFF;
    --bark:  #1A1611;
    --moss:  #1E6B4A;
    --terra: #1E6B4A;
    --gold:  #1E6B4A;
    --gold-bright: #2E8B62;
    --orange:      #B4532B;
    --orange-bright: #C96A3A;
    --danger:  #E53E3E;
    --warning: #D97706;
    --green:   #276749;
    --sand:  #E1DDD2;
    --ink:   #1A1611;
    --ash:   #878279;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.07);
    --radius: 2px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; padding-top: 76px; }
img { max-width: 100%; display: block; }
a { color: var(--terra); transition: color 0.2s; text-decoration: underline;
    text-underline-offset: 3px; text-decoration-thickness: 1px;
    text-decoration-color: transparent; }
a:hover { text-decoration-color: var(--terra); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0 0 0.5em; line-height: 1.2; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

/* Header */
.site-header {
    background: #FFFFFF;
    border-bottom: 3px double var(--ink);
    padding: 10px 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 76px;
}
.site-header .inner {
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.header-left { display: flex; align-items: center; gap: 2px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 56px; width: 84px; object-fit: contain; display: block; }
.brand .word {
    display: flex; flex-direction: column; line-height: 1;
}
.brand .word b {
    font-family: var(--font-display);
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 600;
}
.brand .word span {
    font-size: 0.46rem;
    color: var(--ash);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-top: 3px;
    font-family: var(--font-ui);
}
nav.main {
    display: flex; align-items: center; gap: 24px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
}
nav.main a {
    color: var(--ink); text-decoration: none;
    text-transform: uppercase; letter-spacing: 0.09em;
}
nav.main a:hover { color: var(--moss); }
nav.main a.btn { color: #fff; text-transform: none; letter-spacing: normal; }
nav.main a.btn:hover { color: #fff; }
nav.main a.btn.secondary { color: var(--bark); text-transform: none; letter-spacing: normal; }
nav.main a.btn.secondary:hover { color: var(--bark); }
nav.main .who { color: var(--ash); font-size: 0.8rem; letter-spacing: 0.04em; }
.ticket-link { display: flex; align-items: center; gap: 5px; }
.ticket-link svg { display: none; flex-shrink: 0; }

:root { --announce-h: 44px; }
body.has-announce-bar main { padding-top: calc(76px + var(--announce-h)); }
body.has-announce-bar .sidebar { top: calc(76px + var(--announce-h)); }

.announce-bar {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 99;
    height: var(--announce-h);
    color: #fff;
    background: var(--ink);
    overflow: hidden;
}
.announce-bar-writer {
    background: var(--moss);
}
.announce-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 48px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.announce-bar-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    opacity: 0.95;
}
.announce-bar-track {
    flex: 1;
    min-width: 0;
    position: relative;
    height: 1.4em;
    overflow: hidden;
}
.announce-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}
.announce-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.announce-title { font-weight: 600; }
.announce-sep { opacity: 0.55; }
.announce-message { opacity: 0.92; }
.announce-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.announce-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.announce-dot.active {
    background: #fff;
    transform: scale(1.2);
}
.announce-dismiss {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
.announce-dismiss:hover { background: rgba(255, 255, 255, 0.22); }

@media (max-width: 768px) {
    .announce-bar-inner { padding: 0 44px 0 14px; gap: 8px; }
    .announce-slide { font-size: 0.82rem; }
    .announce-dots { display: none; }
}

/* Layout */
.wrap { max-width: 1080px; margin: 0 auto; padding: 32px 24px; }
@media (min-width: 769px) {
    .sidebar ~ main .wrap { max-width: 100%; }
}
.wrap.narrow { max-width: 720px; }
.section { padding: 80px 0; }
.section.alt { background: var(--ivory); }
.section + .section:not(.alt) { border-top: 1px solid var(--sand); }
.section.alt + .section.alt { border-top: 1px solid var(--sand); }
.muted { color: var(--ash); }
.lead { font-size: 1.1rem; color: var(--ink); }

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.3em;
}
.section-sub {
    text-align: center;
    color: var(--ash);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 48px;
    font-family: var(--font-ui);
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--ink);
    padding: 10px 22px;
    font-family: var(--font-ui);
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    line-height: 1.3;
    transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: #332D24; border-color: #332D24; color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--sand); }
.btn.secondary:hover { background: var(--ivory); color: var(--ink); border-color: var(--ink); }
.btn.accent { background: var(--moss); border-color: var(--moss); }
.btn.accent:hover { background: #175A3E; border-color: #175A3E; }
.btn.danger { background: #B4402A; border-color: #B4402A; }
.btn.danger:hover { background: #983522; border-color: #983522; }
.btn.green { background: var(--moss); border-color: var(--moss); }
.btn.green:hover { background: #175A3E; border-color: #175A3E; }
.btn.small { padding: 6px 12px; font-size: 0.8rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* Pagination */
.pager {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin: 22px 0 4px; flex-wrap: wrap;
    font-family: var(--font-ui);
}
.pager-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 12px;
    border: 1px solid var(--sand); border-radius: var(--radius);
    background: var(--paper); color: var(--bark);
    font-size: 0.88rem; font-weight: 500; text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}
.pager-link:hover { border-color: var(--bark); background: var(--sand); color: var(--bark); }
.pager-current { background: var(--bark); border-color: var(--bark); color: #fff; cursor: default; }
.pager-current:hover { background: var(--bark); color: #fff; }
.pager-ellipsis { color: var(--ash); padding: 0 4px; user-select: none; }
.pager-note { text-align: center; color: var(--ash); font-size: 0.8rem; font-family: var(--font-ui); margin: 10px 0 0; }

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}
.card .meta { color: var(--ash); font-size: 0.85rem; font-family: var(--font-ui); }

/* Forms */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form .row.full { grid-template-columns: 1fr; }
@media (max-width: 640px) { form .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--ash);
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}
.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=number],
.field input[type=date],
.field select,
.field textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--input);
    border: 1px solid #33415E;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--bark);
    box-shadow: 0 0 0 3px rgba(42,61,48,0.1);
}
.field textarea { min-height: 120px; resize: vertical; }
.announce-form input[type=text],
.announce-form input[type=datetime-local],
.announce-form select,
.announce-form textarea {
    background: #fff;
}
.field .hint { font-size: 0.82rem; color: var(--ash); margin-top: 4px; }
.client-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--paper);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    max-height: 220px; overflow: auto;
    z-index: 60;
    display: none;
}
.client-suggest a {
    display: block;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--ivory);
    cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.client-suggest a:last-child { border-bottom: none; }
.client-suggest a:hover, .client-suggest a.active { background: var(--ivory); }
.client-suggest .meta { font-size: 0.78rem; color: var(--ash); }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; }

/* Tables */
table.data {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper);
    border: 1px solid var(--sand);
    font-family: var(--font-ui);
    font-size: 0.92rem;
}
table.data th, table.data td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--sand);
}
table.data th { background: none; color: var(--ink); border-bottom: 2px solid var(--ink); font-weight: 500; font-size: 0.75rem; font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 0.09em; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(30,107,74,0.05); }
@media (max-width: 768px) {
    .data { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Status pills */
.pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: var(--radius);
    font-size: 0.72rem;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    border: 1px solid;
}
.pill.pending        { color: #7a5b16; border-color: #d6c171; background: #fbf3d6; }
.pill.pending_review { color: #7a5b16; border-color: #d6c171; background: #fbf3d6; }
.pill.pending_final  { color: #5a3a8a; border-color: #c1b1dd; background: #efeaf7; }
.pill.pending_release { color: #2d6a4f; border-color: #7ec9a6; background: #d8f3e4; }
.pill.open           { color: #1d4a78; border-color: #95b8d6; background: #e7f0f7; }
.pill.pending_payment { color: #b8530a; border-color: #e8a75c; background: #fef1e0; }
.pill.assigned  { color: #2f4f3c; border-color: #a4bea7; background: #e6efe5; }
.pill.progress  { color: #2f4f3c; border-color: #a4bea7; background: #e6efe5; }
.pill.review    { color: #5a3a8a; border-color: #c1b1dd; background: #efeaf7; }
.pill.revision  { color: #8A6418; border-color: #D4B87A; background: #F6EFDD; }
.pill.done      { color: #27543a; border-color: #8ec39a; background: #dff1e3; }
.pill.cancelled { color: #7a2a1c; border-color: #d2a59b; background: #f6e3df; }
.pill.rejected  { color: #7a2a1c; border-color: #d2a59b; background: #f6e3df; }
.pill.banned    { color: #5a1a1a; border-color: #b08080; background: #f0e0e0; }
.pill.closed    { color: #444; border-color: #aaa; background: #eee; }
.pill.active    { color: #27543a; border-color: #8ec39a; background: #dff1e3; }

/* Flash */
.flash {
    padding: 10px 14px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-family: var(--font-ui);
    font-size: 0.92rem;
    border: 1px solid;
}
.flash.success { background: #2DA44E; border-color: #1A7F37; color: #fff; }
.flash.error   { background: #C0392B; border-color: #A93226; color: #fff; }
.flash.info    { background: var(--moss); border-color: #175A3E; color: #fff; }

.time-red      { color: var(--danger); }
.time-orange   { color: var(--warning); }
.time-green    { color: var(--green); }

/* Hero */
.hero {
    padding: 56px 0 80px;
    background: var(--paper);
    border-bottom: 1px solid var(--sand);
    position: relative;
}
.hero .wrap { max-width: none; }
.hero-badge {
    display: inline-block;
    background: rgba(240,101,0,0.12);
    color: var(--orange);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 3.2rem;
    max-width: 800px;
    line-height: 1.15;
    margin-bottom: 0.4em;
}
.hero h1 em { color: var(--orange-bright); font-style: normal; }
.hero p.lead {
    max-width: 620px;
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--ash);
    margin-bottom: 32px;
}
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero .btn.accent {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}
.hero .btn.accent:hover {
    background: #1b5e20;
    border-color: #1b5e20;
    color: #fff;
}
.hero .btn.secondary {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.hero .btn.secondary:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.hero-trust {
    display: flex; gap: 24px; flex-wrap: wrap;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    color: var(--moss);
}
.hero-trust span { display: flex; align-items: center; gap: 6px; }

/* Stats bar */
.stats-bar {
    background: var(--bark);
    padding: 0;
}
.stats-bar .wrap { padding: 0 24px; }
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.stat {
    text-align: center;
    padding: 36px 20px;
    border-right: 1px solid rgba(255,255,255,0.12);
}
.stat:last-child { border-right: none; }
.stat-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-ui);
    line-height: 1.1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-ui);
}

/* Section titles */
.sec-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.25em;
}
.sec-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    margin: 14px auto 0;
}
.sec-sub {
    text-align: center;
    color: #1A1A1A;
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 52px;
    font-family: var(--font-ui);
    line-height: 1.5;
}

/* Steps / How it works */
.order-steps-hiw {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.order-step-hiw {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--sand);
    border-radius: 14px;
    padding: 28px 32px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.order-step-hiw:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.order-step-hiw-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-ui);
    flex-shrink: 0;
    margin-top: 2px;
}

.order-step-hiw-body {
    flex: 1;
}

.order-step-hiw-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--moss);
    font-weight: 600;
    font-family: var(--font-ui);
}

.order-step-hiw-body h3 {
    margin: 4px 0 8px;
    font-size: 1.2rem;
}

.order-step-hiw-body > p {
    margin: 0 0 14px;
    font-size: 0.92rem;
    color: #1A1A1A;
    line-height: 1.55;
}

.order-step-hiw-summary {
    background: var(--cream);
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.summary-row {
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-size: 0.85rem;
}

.summary-field {
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--bark);
    min-width: 85px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
}

.summary-value {
    color: #1A1A1A;
    font-family: var(--font-ui);
}

@media (max-width: 600px) {
    .order-step-hiw {
        flex-direction: column;
        padding: 22px 20px;
    }
    .order-step-hiw-summary {
        padding: 12px 14px;
    }
    .summary-row {
        flex-direction: column;
        gap: 2px;
    }
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
    background: var(--card);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(42,61,48,0.07);
    color: var(--bark);
    margin-bottom: 20px;
}
.step-num {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bark);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-ui);
    display: flex;
    align-items: center;
    justify-content: center;
}
.step h3 { margin-bottom: 0.5em; font-size: 1.15rem; }
.step p { color: var(--ash); font-size: 0.95rem; line-height: 1.55; margin: 0; }

/* Cover grid */
.cover-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 860px) { .cover-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cover-grid { grid-template-columns: 1fr; } }
.cover-card {
    background: var(--card);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cover-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cover-card h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.cover-card p { color: #1A1A1A; font-size: 0.92rem; line-height: 1.55; margin: 0; }

.cover-grid .cover-card:nth-child(n+4) { display: none; }
.cover-grid.expanded .cover-card { display: block; }
.load-more-wrap { text-align: center; margin-top: 28px; }
.load-more {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bark);
    background: #fff;
    border: 1px solid var(--sand);
    border-radius: 999px;
    padding: 12px 26px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.load-more:hover { border-color: var(--moss); box-shadow: var(--shadow-sm); }
.lm-count { color: var(--ash); font-weight: 500; }

/* Benefits */
.why-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 56px;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
}
@media (max-width: 860px) {
    .why-grid { grid-template-columns: 1fr; gap: 36px; justify-items: center; }
}
.why-seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.seal { width: 300px; max-width: 100%; }
.seal-svg { display: block; width: 100%; height: auto; }
.seal-text {
    font-family: var(--font-ui);
    font-size: 10.5px;
    letter-spacing: 0.5px;
    fill: var(--orange);
    font-weight: 600;
}
.seal-spin {
    transform-box: view-box;
    transform-origin: 110px 110px;
    animation: sealspin 36s linear infinite;
}
@keyframes sealspin { to { transform: rotate(360deg); } }
.seal-check { filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2)); }
.seal-caption {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: #1A1A1A;
    text-align: center;
    max-width: 280px;
    margin: 0;
}
.benefits {
    list-style: none;
    margin: 0;
    padding: 0;
}
.benefit {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 20px 4px;
    border-bottom: 1px solid var(--sand);
}
.benefit:last-child { border-bottom: none; }
.benefit-num {
    font-family: Georgia, serif;
    font-size: 1.9rem;
    line-height: 1;
    color: var(--orange);
    font-weight: 700;
    min-width: 54px;
    flex-shrink: 0;
    margin-top: 2px;
}
.benefit h3 { font-size: 1.05rem; margin-bottom: 0.25em; }
.benefit p { color: #1A1A1A; font-size: 0.92rem; line-height: 1.5; margin: 0; }

/* Testimonials */
.testimonials-slider {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}
.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; animation: tsFade 0.55s ease; }
@keyframes tsFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: var(--sand);
    transition: background 0.2s, transform 0.2s;
}
.testimonial-dot.active { background: var(--orange); transform: scale(1.2); }
.testimonial {
    background: var(--card);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}
.testimonial-stars {
    color: var(--orange-bright);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
/* Ratings */
.rating-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.rating-stars .star { color: #D8DEE7; font-size: 1rem; line-height: 1; }
.rating-stars .star.filled { color: var(--gold-bright); }
.rating-picker { display: flex; align-items: center; gap: 4px; }
.rating-picker .star {
    background: none;
    border: none;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    color: #D8DEE7;
    padding: 2px;
    transition: color 0.12s, transform 0.12s;
    font-family: Georgia, serif;
}
.rating-picker .star:hover { transform: scale(1.15); }
.rating-picker .star.filled { color: var(--gold-bright); }
.rating-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #33415E; border-radius: var(--radius); font-family: inherit; font-size: 0.93rem; background: var(--cream); }
.testimonial blockquote {
    margin: 0 0 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink);
    flex: 1;
}
.testimonial blockquote::before { content: '\201C'; }
.testimonial blockquote::after { content: '\201D'; }
.testimonial-author strong {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.88rem;
    color: var(--bark);
}
.testimonial-author span {
    display: block;
    font-size: 0.8rem;
    color: var(--ash);
    font-family: var(--font-ui);
}

/* Final CTA */
.final-cta {
    text-align: center;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA section */
.cta-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.cta-section-bg {
    position: absolute;
    inset: 0;
    background: #031F45;
    z-index: 0;
}

.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    color: #fff;
    margin: 0 0 12px;
    font-family: Georgia, serif;
}

.cta-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin: 0 auto 32px;
    font-family: var(--font-ui);
    line-height: 1.6;
}

.cta-btn-primary {
    background: #fff !important;
    color: var(--bark) !important;
    border: none !important;
    font-weight: 600;
    padding: 14px 36px !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.cta-btn-secondary {
    background: transparent !important;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,0.4) !important;
    font-weight: 500;
    padding: 14px 36px !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    transition: background 0.2s, border-color 0.2s !important;
}

.cta-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

@media (max-width: 600px) {
    .cta-section { padding: 56px 0; }
    .cta-title { font-size: 1.5rem; }
    .cta-sub { font-size: 0.95rem; }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--sand);
    background: var(--paper);
    padding: 28px 0;
    margin-top: 0;
    color: var(--ash);
    font-family: var(--font-ui);
    font-size: 0.85rem;
}
.site-footer .inner {
    max-width: 1080px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

.site-footer--full {
    padding: 48px 0 36px;
    border-top: 1px solid #222;
    background: #000;
    margin-top: 0;
}

.site-footer--full .footer-col h4 { color: #fff; }
.site-footer--full .footer-col ul li a { color: #C7D0DC; }
.site-footer--full .footer-col ul li a:hover { color: #fff; }
.site-footer--full .footer-brand .footer-logo { color: #fff; }
.site-footer--full .footer-desc { color: #C7D0DC; }
.site-footer--full .footer-copy { color: #A9B4C2; opacity: 1; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

.footer-col h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--bark);
    margin: 0 0 14px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul li a {
    color: var(--ash);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--bark);
    text-decoration: underline;
}

.footer-brand .footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bark);
    font-family: Georgia, serif;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--ash);
    margin: 0 0 16px;
    max-width: 280px;
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--ash);
    opacity: 0.6;
    margin: 0;
}

/* Dashboard */
.dash-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
}
@media (max-width: 760px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-side {
    background: var(--card);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 16px;
    height: fit-content;
}
.dash-side a {
    display: block;
    padding: 8px 10px;
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.92rem;
}
.dash-side a:hover { background: var(--sand); }
.dash-side a.active { background: var(--bark); color: #fff; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--paper); border: 1px solid var(--sand); border-bottom: 3px double var(--ink); border-radius: var(--radius); padding: 16px 18px; }
.kpi .label { color: var(--ash); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-ui); font-weight: 500; }
.kpi .val { font-size: 1.8rem; color: var(--ink); margin-top: 6px; font-family: var(--font-display); font-weight: 600; }
.kpi--blue, .kpi--green, .kpi--gold, .kpi--teal, .kpi--purple, .kpi--red { background: var(--paper); border: 1px solid var(--sand); border-bottom: 3px double var(--ink); }
.kpi--green { border-bottom-color: var(--moss); }
.kpi--red { border-bottom-color: #B4402A; }

/* Auth pages */
.auth-card {
    max-width: 440px;
    margin: 48px auto;
    background: var(--card);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 36px;
}
.auth-card h1 { font-size: 1.6rem; }
.auth-card .alt { margin-top: 14px; font-size: 0.92rem; color: var(--ash); text-align: center; font-family: var(--font-ui); }

/* Order page */
.order-page { padding-bottom: 24px; }
.order-header { text-align: center; margin-bottom: 32px; }
.order-header h1 { font-size: 2.2rem; margin-bottom: 0.3em; }
.order-header h1::after {
    content: ''; display: block; width: 48px; height: 3px;
    background: var(--orange); border-radius: 2px; margin: 12px auto 0;
}
.order-header .lead { color: var(--ash); max-width: 560px; margin: 0 auto; }

.order-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 860px) { .order-layout { grid-template-columns: 1fr; } }

.order-main { display: flex; flex-direction: column; gap: 20px; }

.order-section {
    background: var(--paper); border: 1px solid var(--sand);
    border-radius: var(--radius); overflow: hidden;
}

.order-section-head {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 24px; background: rgba(26,22,17,0.03);
    border-bottom: 1px solid var(--sand);
}
.order-section-head h3 { margin: 0; font-size: 1.05rem; }
.section-desc { margin: 2px 0 0; font-size: 0.85rem; color: var(--ash); font-family: var(--font-ui); }

.order-section-icon {
    flex-shrink: 0; width: 42px; height: 42px;
    border-radius: 50%; background: rgba(240,101,0,0.13);
    display: flex; align-items: center; justify-content: center;
    color: var(--orange);
}

.order-section-body { padding: 20px 24px; }

/* Step indicator */
.order-steps {
    display: flex; justify-content: center; gap: 0;
    margin-bottom: 28px; font-family: var(--font-ui);
}
.order-step {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 22px; font-size: 0.9rem; color: var(--ash);
    background: var(--paper); border: 1px solid var(--sand);
    text-decoration: none; transition: all 0.2s; cursor: default;
    border-right: 0;
}
.order-step:first-child { border-radius: 6px 0 0 6px; }
.order-step:last-child  { border-radius: 0 6px 6px 0; border-right: 1px solid var(--sand); }
.order-step.active { color: #fff; font-weight: 600; background: var(--bark); }
.order-step.done   { color: var(--orange); cursor: pointer; }
.order-step.done:hover { background: rgba(26,22,17,0.05); }
.step-dot {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    font-size: 0.75rem; font-weight: 700;
    background: var(--sand); color: var(--ash);
    flex-shrink: 0; line-height: 1;
}
.order-step.active .step-dot { background: var(--orange-bright); color: var(--bark); }
.order-step.done .step-dot   { background: var(--orange); color: #fff; }

/* Review grid */
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .review-grid { grid-template-columns: 1fr; } }
.review-item {
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px 14px; background: rgba(3,31,69,0.025);
    border-radius: var(--radius);
}
.review-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ash); font-family: var(--font-ui); font-weight: 500; }
.review-value { font-size: 0.95rem; color: var(--ink); }
.review-item-wide { grid-column: 1 / -1; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

/* Upload zone */
.upload-zone {
    position: relative; margin-top: 4px;
}
.upload-zone input[type=file] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2;
}
.upload-label {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 32px 20px; border: 2px dashed var(--sand); border-radius: var(--radius);
    background: rgba(42,61,48,0.015); cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.upload-zone input[type=file]:hover + .upload-label,
.upload-zone input[type=file]:focus + .upload-label {
    border-color: var(--bark); background: rgba(42,61,48,0.03);
}
.upload-text { font-size: 0.95rem; color: var(--ink); font-family: var(--font-ui); }
.upload-link { color: var(--bark); text-decoration: underline; text-underline-offset: 2px; }
.upload-hint { font-size: 0.8rem; color: var(--ash); font-family: var(--font-ui); }
.file-attached {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; background: rgba(90,122,94,0.07);
    border: 1px solid var(--moss); border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 0.9rem; color: var(--ink); margin-bottom: 8px;
}
.file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.file-item {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px; background: var(--paper);
    border: 1px solid var(--sand); border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 0.88rem;
}
.file-item-name { color: var(--ink); font-weight: 500; }
.file-item-size { color: var(--ash); font-size: 0.82rem; }
.file-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--font-ui);
    font-size: 0.88rem; color: var(--terra);
    text-decoration: underline; text-underline-offset: 2px; text-decoration-color: transparent; transition: text-decoration-color 0.2s;
}
.file-link:hover { text-decoration-color: var(--terra); }

/* Sidebar */
.order-sidebar { position: sticky; top: 100px; }
.sidebar-card {
    background: var(--paper); border: 1px solid var(--sand);
    border-radius: var(--radius); padding: 24px;
}
.sidebar-card h3 { font-size: 1.1rem; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--sand); }

.price-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 0; font-family: var(--font-ui);
    font-size: 0.9rem; color: var(--ink);
}
.price-row .price-val { color: var(--ash); font-size: 0.88rem; }
.price-divider { height: 1px; background: var(--sand); margin: 8px 0; }
.price-total { font-weight: 600; font-size: 1.05rem; }
.price-total .price-val { color: var(--orange); font-size: 1.1rem; font-weight: 700; }
.price-note { font-size: 0.8rem; color: var(--ash); margin: 12px 0 0; font-family: var(--font-ui); }

.sidebar-alert {
    display: flex; align-items: center; gap: 8px;
    background: var(--moss); border-radius: var(--radius);
    padding: 10px 12px; margin: 14px 0;
    font-family: var(--font-ui);
    font-size: 0.85rem; color: #fff;
}

.btn-submit {
    width: 100%; margin-top: 14px; padding: 12px 20px;
    font-size: 1rem; text-align: center;
}
.order-sidebar .btn-submit { background: var(--moss); border-color: var(--moss); }
.order-sidebar .btn-submit:hover { background: #175A3E; border-color: #175A3E; }
.btn-cancel {
    display: block; width: 100%; margin-top: 8px; padding: 10px 20px;
    text-align: center; font-family: var(--font-ui);
    color: var(--ash); background: transparent; border: 1px solid var(--sand);
    border-radius: var(--radius); font-size: 0.9rem; cursor: pointer;
    transition: all 0.2s;
}
.btn-cancel:hover { background: var(--sand); color: var(--ink); }

/* Writer sidebar */
.sidebar {
    position: fixed; top: 76px; left: 0; bottom: 0;
    width: 240px; background: var(--ivory);
    border-right: 1px solid var(--sand);
    transform: translateX(-100%);
    transition: transform 0.25s, width 0.25s;
    z-index: 99; overflow-y: auto;
}
@media (min-width: 769px) {
    .sidebar { transform: translateX(0); width: 240px; }
    .sidebar-open .sidebar { width: 54px; }
    .sidebar-open .sidebar .sl-text,
    .sidebar-open .sidebar .sb-badge { display: none; }
    .sidebar-open .sidebar .sidebar-link { justify-content: center; padding: 13px 0; }
    .sidebar-open .sidebar .sidebar-link svg { margin: 0; }
    .hamburger-menu { display: none !important; }
    .mobile-menu { display: none !important; }
}
@media (max-width: 768px) {
    .sidebar-open .sidebar { transform: translateX(0); }
}
.sidebar-nav { padding: 12px 0; }
.sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 22px; font-size: 0.9rem; color: var(--ink);
    font-family: var(--font-ui);
    text-decoration: none; border-left: 3px solid transparent;
    transition: all 0.15s;
}
.sidebar-link:hover { background: #332D24; color: #fff; border-left-color: var(--moss); }
.sidebar-link.active { background: var(--ink); border-left-color: var(--moss); color: #fff; font-weight: 600; }
.sb-badge { font-size:0.65rem; background:#C0392B; color:#fff; border-radius:8px; padding:1px 6px; line-height:1.4; margin-left:auto; font-weight:600; }
.ticket-badge { font-size:0.6rem; background:#C0392B; color:#fff; border-radius:8px; padding:1px 5px; line-height:1.3; margin-left:3px; font-weight:700; vertical-align:super; }

/* Notification bell */
.ntfy-menu { position: relative; display: flex; align-items: center; }
.ntfy-btn {
    display: flex; align-items: center; cursor: pointer; border: none;
    background: none; padding: 6px; border-radius: var(--radius);
    color: var(--ink); position: relative;
}
.ntfy-btn:hover { background: var(--sand); }
.ntfy-badge {
    position: absolute; top: 0; right: -2px;
    font-size:0.6rem; background:#C0392B; color:#fff;
    border-radius:8px; min-width:16px; height:16px;
    padding:0 4px; line-height:16px; font-weight:700;
    text-align:center;
}
.ntfy-dropdown {
    position: absolute; top: 100%; right: 0; margin-top: 6px;
    background: var(--paper); border: 1px solid var(--sand);
    border-radius: var(--radius); box-shadow: var(--shadow-md);
    min-width: 300px; max-width: 360px; display: none; z-index: 200;
}
.ntfy-dropdown.open { display: block; }
.ntfy-head {
    padding: 10px 14px; font-size: 0.85rem; font-weight: 600;
    font-family: var(--font-ui);
    border-bottom: 1px solid var(--sand); color: var(--ink);
}
.ntfy-empty { padding: 20px 14px; text-align: center; color: var(--ash); font-size: 0.85rem; }
.ntfy-list {
    max-height: calc(3 * 5.25rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.ntfy-list::-webkit-scrollbar { width: 6px; }
.ntfy-list::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 3px; }
.ntfy-item {
    display: flex; flex-direction: column; gap: 2px;
    min-height: 5.25rem; box-sizing: border-box;
    padding: 10px 14px; text-decoration: none;
    border-bottom: 1px solid var(--sand); transition: background 0.15s;
}
.ntfy-item:hover { background: rgba(42,61,48,0.035); }
.ntfy-sender { font-size: 0.78rem; font-weight: 600; color: var(--bark); font-family: var(--font-ui); }
.ntfy-role { font-weight: 400; color: var(--ash); font-size: 0.72rem; text-transform: capitalize; }
.ntfy-title { font-size: 0.82rem; color: var(--ink); }
.ntfy-preview { font-size: 0.78rem; color: var(--ash); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntfy-time { font-size: 0.7rem; color: var(--ash); }
.ntfy-dismiss {
    display: block; width: 100%; border: none; background: none;
    padding: 10px 14px; font-size: 0.82rem; font-family: var(--font-ui);
    color: var(--bark); cursor: pointer; text-align: center; font-weight: 600;
}
.ntfy-dismiss:hover { background: rgba(42,61,48,0.035); }

/* Main content shifts when sidebar opens */
main { transition: margin-left 0.25s; }
@media (min-width: 769px) {
    .sidebar ~ main { margin-left: 240px; }
    .sidebar-open .sidebar ~ main { margin-left: 54px; }
}
@media (max-width: 768px) {
    .sidebar-open main { margin-left: 0; }
}
/* Hamburger */
.hamburger {
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 32px; height: 32px; padding: 6px;
    background: none; border: 1px solid var(--sand); border-radius: 4px;
    cursor: pointer; flex-shrink: 0;
}
.hamburger span { display: block; height: 2px; background: var(--ink); border-radius: 1px; transition: transform 0.25s, opacity 0.25s; }
.hamburger:hover { background: var(--sand); }
.sidebar-open .hamburger span:nth-child(1),
.menu-open .hamburger-menu span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sidebar-open .hamburger span:nth-child(2),
.menu-open .hamburger-menu span:nth-child(2) { opacity: 0; }
.sidebar-open .hamburger span:nth-child(3),
.menu-open .hamburger-menu span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Public mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 3px double var(--ink);
    flex-direction: column;
    padding: 6px 16px 16px;
    z-index: 90;
    font-family: var(--font-ui);
}
.menu-open .mobile-menu { display: flex; }
.mobile-menu a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--sand);
    color: var(--ink); text-decoration: none;
    font-size: 0.95rem;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .btn {
    justify-content: center;
    margin-top: 10px;
    padding: 12px 20px;
    color: #fff;
    text-transform: none; letter-spacing: normal;
}

/* Mobile */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .site-header { height: 60px; padding: 8px 0 5px; }
    main { padding-top: 60px; }
    .announce-bar { top: 60px; }
    .sidebar { top: 60px; }
    .mobile-menu { top: 60px; }
    body.has-announce-bar main { padding-top: calc(60px + var(--announce-h)); }
    body.has-announce-bar .sidebar { top: calc(60px + var(--announce-h)); }
    .brand .word b { font-size: 1.05rem; }
    .brand .word span { font-size: 0.4rem; letter-spacing: 0.16em; margin-top: 2px; }
    .brand img { height: 40px; width: 60px; }
    nav.main.public-nav { display: none; }
    body.logged-in .brand .word { display: none; }
    .ticket-link { padding: 6px; position: relative; }
    .ticket-text { display: none; }
    .ticket-link svg { display: block; }
    .ticket-link .ticket-badge { position: absolute; top: -3px; right: -5px; margin-left: 0; }
    .ntfy-dropdown { position: fixed; left: 12px; right: 12px; top: 68px; min-width: 0; max-width: none; width: auto; max-height: calc(100vh - 84px); overflow-y: auto; }
    .site-header .inner { padding: 0 16px; gap: 12px; }
    nav.main { gap: 12px; font-size: 0.85rem; }
    .wrap { padding: 20px 16px; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }
    .lead { font-size: 1rem; }

    .sidebar { width: 100%; max-width: 280px; }
    .sidebar-open .sidebar { box-shadow: 4px 0 20px rgba(0,0,0,0.12); }

    .data { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    .kpis { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .kpi { padding: 14px; }
    .card { padding: 18px; }
    .split { flex-direction: column; }
    .split .btn { width: 100%; text-align: center; }
    .right { text-align: left; }
    .flash { font-size: 0.85rem; padding: 10px 12px; }
    .order-page { padding-bottom: 16px; }
    .order-section-head { padding: 16px 18px; }
    .order-section-body { padding: 16px 18px; }
    .order-section-icon { width: 36px; height: 36px; }
    .review-item { padding: 8px 12px; }
    .order-header { margin-bottom: 20px; }
    .order-header h1 { font-size: 1.6rem; }

    .profile-grid, .profile-forms { display: grid; grid-template-columns: 1fr; gap: 16px; }
    .profile-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 18px; gap: 8px; }
    .profile-head h1 { font-size: 1.1rem; }
    .profile-head .btn { margin-left: 0; width: 100%; text-align: center; margin-top: 6px; }
    .profile-avatar { width: 48px; height: 48px; font-size: 1.1rem; }
    .profile-section { padding: 18px; }
    .profile-page { padding-bottom: 40px; }
    .profile-card { border-radius: 8px; }
    .profile-back { margin-left: 0; }
    .profile-page .btn[type=submit] { width: 100%; padding: 12px 20px !important; }

    .steps { grid-template-columns: 1fr; }
    .step { padding: 24px 18px; }
    .cover-grid { grid-template-columns: 1fr; gap: 12px; }
    .cover-card { padding: 18px; }
    .benefits { grid-template-columns: 1fr; }
    .testimonials { grid-template-columns: 1fr; }
    .testimonial { padding: 18px; }
    .section { padding: 48px 0; }
    .sec-title { font-size: 1.5rem; }
    .sec-sub { font-size: 0.95rem; margin-bottom: 32px; }
    .final-cta { flex-direction: column; align-items: stretch; text-align: center; }
    .final-cta .btn { width: 100%; text-align: center; }

    .site-header .inner nav.main .btn { padding: 6px 10px; font-size: 0.8rem; }
    .user-menu-btn { padding: 2px 4px; }

    .order-steps { flex-direction: column; gap: 6px; font-size: 0.85rem; margin-bottom: 20px; }
    .order-step { width: 100%; justify-content: center; padding: 10px 12px; border-right: 1px solid var(--sand); border-radius: var(--radius) !important; }
}

.dash-content { min-height: 300px; }

/* User dropdown */
.user-menu { position: relative; display: flex; align-items: center; }
.user-menu-btn {
    display: flex; align-items: center; gap: 4px;
    cursor: pointer; border: none; background: none;
    padding: 4px 8px; border-radius: var(--radius);
    font-family: var(--font-ui);
    color: var(--ink);
}
.user-menu-btn:hover { background: var(--sand); }
.user-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--bark); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; font-weight: 700; line-height: 1;
}
.user-dropdown {
    position: absolute; top: 100%; right: 0; margin-top: 6px;
    background: var(--paper); border: 1px solid var(--sand);
    border-radius: var(--radius); box-shadow: var(--shadow-md);
    min-width: 180px; display: none; z-index: 200;
}
.user-dropdown.open { display: block; }
.user-dropdown a {
    display: block; padding: 10px 16px; font-size: 0.88rem;
    font-family: var(--font-ui);
    color: var(--ink); text-decoration: none;
}
.user-dropdown a:hover { background: rgba(42,61,48,0.04); }
.user-dropdown hr { margin: 0; border: none; border-top: 1px solid var(--sand); }
.user-dropdown .user-card {
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--sand);
    background: var(--bark);
    border-radius: var(--radius) var(--radius) 0 0;
}
.user-dropdown .user-card-name {
    font-weight: 700; font-size: 0.92rem; color: #fff;
    font-family: var(--font-ui);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-dropdown .user-card-id {
    font-size: 0.85rem; color: var(--sand); margin-top: 2px;
}

/* Profile page */
.profile-page { padding-bottom: 60px; }
.profile-card {
    background: var(--card); border: 1px solid var(--sand);
    border-radius: 12px; overflow: hidden;
}
.profile-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--bark); color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin: 0 auto;
    box-shadow: 0 2px 8px rgba(42,61,48,0.15);
}
.profile-head h1 { margin: 0; }
.profile-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.writer-takes-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--ivory);
    border: 1px solid var(--sand);
    font-family: var(--font-ui);
}
.writer-takes-badge--advanced {
    color: var(--moss);
    background: #E7EFE9;
    border-color: #C4D8C8;
}
.writer-takes-badge--expert {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
    box-shadow: none;
}
.writer-capacity-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.profile-head .muted { margin: 2px 0 0; }

.profile-bio {
    margin: 8px 0 0;
    font-size: 0.92rem;
    color: var(--ash);
    line-height: 1.55;
    max-width: none;
}

.profile-bio-block {
    padding: 20px 32px;
    border-top: 1px solid var(--sand);
}

.profile-bio-block h3 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--ash);
    margin: 0 0 8px;
}

.profile-bio-block p {
    margin: 0;
    line-height: 1.65;
    color: var(--ink);
}

.order-view-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.order-view-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--sand);
    background: var(--paper);
    color: var(--bark);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.order-view-tab:hover {
    border-color: #A9C8EA;
    background: #EEF4FC;
    color: var(--ink);
}
.order-view-tab.active {
    background: var(--bark);
    border-color: var(--bark);
    color: #fff;
}
.order-view-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0,0,0,0.08);
}
.order-view-tab.active .order-view-tab-count {
    background: rgba(255,255,255,0.22);
}
.kpi-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.12s, box-shadow 0.12s;
}
.kpi-link:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 769px) {
    .profile-back { margin-left: auto; }
    .profile-page .profile-head { background: none; }
    .profile-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 32px; }
    .profile-avatar { width: 72px; height: 72px; font-size: 1.6rem; font-weight: 700; }
    .profile-head h1 { font-size: 1.4rem; }
    .profile-name-row { justify-content: center; }
    .profile-bio { max-width: none; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (min-width: 769px) {
    .profile-forms { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:24px; align-items:start; }
}
.profile-page .profile-section {
    background: none; border: 0; border-radius: 0; padding: 24px 0;
}
.profile-section {
    background: var(--card); border: 1px solid var(--sand);
    border-radius: var(--radius); padding: 24px;
}
.profile-section h3 { font-size: 1rem; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--sand); }
.field-pseudo {
    display: block; width: 100%; padding: 10px 14px;
    background: var(--input); border: 1px solid var(--sand);
    border-radius: var(--radius); font-size: 0.92rem;
    color: var(--ash); font-family: var(--font-ui);
}

/* Misc */
.split { display: flex; gap: 10px; flex-wrap: wrap; }
.right { text-align: right; }
.sr { position: absolute; left: -9999px; }

/* Responsive hero */
@media (max-width: 760px) {
    .hero { padding: 60px 0 48px; }
    .hero h1 { font-size: 2rem; }
    .hero p.lead { font-size: 1.05rem; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat { border: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
    .stat:nth-child(1),
    .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.12); }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(3),
    .stat:nth-child(4) { border-bottom: none; }
}

/* Ticket conversation */
.ticket-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: var(--card);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.ticket-head h2 {
    font-size: 1.2rem;
    line-height: 1.3;
}
.ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
}
.ticket-meta .meta-item {
    font-size: 0.8rem;
    font-family: var(--font-ui);
    color: var(--ash);
}
.ticket-meta .meta-item strong {
    color: var(--ink);
    font-weight: 600;
}
.ticket-conv {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 4px;
}
.msg {
    max-width: 78%;
    padding: 16px 20px;
    border-radius: 10px;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.msg + .msg {
    margin-top: 4px;
}
.msg-admin {
    align-self: flex-end;
    background: var(--bark);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.msg-admin .muted { color: rgba(255,255,255,0.55); }
.msg-admin .msg-body { color: #fff; }
.msg-admin .file-link {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
.msg-admin .file-link:hover {
    background: rgba(255,255,255,0.2);
}
.msg-user {
    align-self: flex-start;
    background: var(--paper);
    border: 1px solid var(--sand);
    border-bottom-left-radius: 4px;
}
.msg-label {
    display: inline-block;
    font-size: 0.7rem;
    font-family: var(--font-ui);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1px 8px;
    border-radius: 3px;
    margin-right: 6px;
}
.msg-label.admin {
    background: var(--bark);
    color: #fff;
}
.msg-label.you {
    background: var(--moss);
    color: #fff;
}
.msg-label.user {
    background: var(--sand);
    color: var(--ink);
}
.msg-meta {
    font-size: 0.78rem;
    font-family: var(--font-ui);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.msg-body {
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--ink);
    word-wrap: break-word;
}
.msg-body p { margin: 0 0 8px; }
.msg-body p:last-child { margin-bottom: 0; }
.msg-timestamp {
    font-size: 0.7rem;
    font-family: var(--font-ui);
    color: var(--ash);
    display: block;
    margin-top: 8px;
    opacity: 0.7;
}
.msg-admin .msg-timestamp {
    color: rgba(255,255,255,0.5);
}

@media (max-width: 600px) {
    .msg { max-width: 92%; }
    .ticket-head { flex-wrap: wrap; }
}

/* Ticket form */
.ticket-form {
    background: var(--card);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-top: 24px;
    box-shadow: var(--shadow-sm);
}
.ticket-form h3 {
    margin: 0 0 20px;
    font-size: 1.15rem;
}
.ticket-form .field {
    margin-bottom: 18px;
}
.ticket-form .field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ash);
    margin-bottom: 6px;
    font-family: var(--font-ui);
}
.ticket-form input[type="text"],
.ticket-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #33415E;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ticket-form input[type="text"]:focus,
.ticket-form textarea:focus {
    outline: none;
    border-color: var(--moss);
    box-shadow: 0 0 0 3px rgba(90,122,94,0.15);
    background: var(--paper);
}
.ticket-form .field-hint {
    font-size: 0.78rem;
    color: var(--ash);
    margin: 4px 0 0;
    font-family: var(--font-ui);
}
.ticket-form .btn {
    margin-top: 4px;
}

/* Reply form */
.reply-form {
    background: var(--card);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
}
.reply-form h3 {
    margin: 0 0 16px;
    font-size: 1rem;
    color: var(--ink);
}
.reply-form .field {
    margin-bottom: 14px;
}
.reply-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #33415E;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.93rem;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    resize: vertical;
}
.reply-form textarea:focus {
    outline: none;
    border-color: var(--moss);
    box-shadow: 0 0 0 3px rgba(90,122,94,0.15);
    background: var(--paper);
}
.reply-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.reply-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* File upload widget */
.file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
}
.file-upload input[type="file"] {
    display: none;
}
.file-upload .file-name {
    font-size: 0.82rem;
    color: var(--ash);
    font-family: var(--font-ui);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.file-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-family: var(--font-ui);
    color: var(--moss);
    text-decoration: none;
    margin-top: 8px;
    padding: 4px 10px;
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    background: var(--cream);
    transition: background 0.15s;
}
.file-link:hover {
    background: var(--sand);
}

/* Order sections */
.order-section {
    background: var(--paper);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    margin-top: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.order-section .section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--font-ui);
    color: var(--ink);
    background: var(--cream);
    border-bottom: 1px solid var(--sand);
}
.order-section .section-body {
    padding: 20px;
}
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}
.spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.spec-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ash);
    font-family: var(--font-ui);
}
.spec-val {
    font-size: 0.93rem;
    color: var(--ink);
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Submission cards */
.submit-card {
    flex: 1;
    min-width: 240px;
    background: var(--paper);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 16px;
}
.order-page .field input[type=text],
.order-page .field input[type=email],
.order-page .field input[type=number],
.order-page .field input[type=date],
.order-page .field select,
.order-page .field textarea {
    background: #fff;
}
.payment-form {
    background: #EAF2FB;
    border: 1px solid #D3E2F3;
    border-radius: var(--radius);
    padding: 20px 24px;
}

/* Order conversation */
.order-conv {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.omsg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 10px;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.omsg-self {
    align-self: flex-end;
    background: var(--ink);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.omsg-self .omsg-body { color: #fff; }
.omsg-self .file-link {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
.omsg-self .file-link:hover { background: rgba(255,255,255,0.2); }
.omsg-other {
    align-self: flex-start;
    background: var(--paper);
    border: 1px solid var(--sand);
    border-bottom-left-radius: 4px;
}
.omsg-writer { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.omsg-writer .omsg-body { color: #fff; }
.omsg-writer .file-link { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); color: #fff; }
.omsg-writer .file-link:hover { background: rgba(255,255,255,0.2); }
.omsg-client { align-self: flex-start; background: var(--paper); border: 1px solid var(--sand); border-bottom-left-radius: 4px; }
.omsg-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.omsg-label {
    display: inline-block;
    font-size: 0.7rem;
    font-family: var(--font-ui);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1px 8px;
    border-radius: 3px;
}
.omsg-label.self { background: rgba(255,255,255,0.2); color: #fff; }
.omsg-label.other { background: var(--sand); color: var(--ink); }
.omsg-label.writer { background: rgba(255,255,255,0.2); color: #fff; }
.omsg-label.client { background: var(--sand); color: var(--ink); }
.omsg-time {
    font-size: 0.7rem;
    font-family: var(--font-ui);
    color: var(--ash);
}
.omsg-self .omsg-time { color: rgba(255,255,255,0.55); }
.omsg-writer .omsg-time { color: rgba(255,255,255,0.55); }
.omsg-vis {
    display: inline-block;
    font-size: 0.65rem;
    font-family: var(--font-ui);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1px 6px;
    border-radius: 3px;
    line-height: 1.3;
}
.omsg-vis.vis-writer { background: #E7EFE9; color: var(--moss); }
.omsg-vis.vis-client { background: var(--ivory); color: var(--ink); }
.omsg-body {
    font-size: 0.93rem;
    line-height: 1.55;
    color: var(--ink);
    word-wrap: break-word;
}
.omsg-body p { margin: 0 0 6px; }
.omsg-body p:last-child { margin-bottom: 0; }
.omsg .file-link { margin-top: 6px; }

.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.45);
    overflow-y: auto;
}
.payment-modal-panel {
    background: var(--paper);
    width: min(1100px, calc(100vw - 32px));
    max-width: 1100px;
    margin: 8vh auto;
    padding: 28px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    position: relative;
}
.payment-modal-table { white-space: nowrap; }
.payment-modal-table td:nth-child(2),
.payment-modal-table td:nth-child(9) { white-space: normal; min-width: 120px; max-width: 220px; }
.payment-order-fine { color: #da3215; }
.payment-order-net { color: var(--moss); }
.payment-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--ash);
    cursor: pointer;
    padding: 4px 8px;
}
.payment-modal-close:hover { color: var(--ink); }

.claim-modal-panel {
    background: var(--paper);
    max-width: 420px;
    width: calc(100vw - 32px);
    margin: 12vh auto;
    padding: 36px 32px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    position: relative;
    text-align: center;
    animation: claim-modal-in 0.22s ease-out;
}
@keyframes claim-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.claim-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
}
.claim-modal-icon--busy {
    background: #fef3e2;
    color: #b45309;
}
.claim-modal-icon--busy::before { content: '!'; }
.claim-modal-icon--blocked {
    background: #fdecea;
    color: #da3215;
}
.claim-modal-icon--blocked::before { content: '×'; font-size: 1.75rem; font-weight: 400; }
.claim-modal-title {
    margin: 0 0 10px;
    font-size: 1.15rem;
    color: var(--ink);
}
.claim-modal-message {
    margin: 0 0 26px;
    color: var(--bark);
    line-height: 1.55;
    font-size: 0.95rem;
}
.claim-modal-actions {
    display: flex;
    justify-content: center;
}
.claim-modal-btn {
    min-width: 130px;
}
.claim-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--ash);
    cursor: pointer;
    padding: 4px 8px;
}
.claim-modal-close:hover { color: var(--ink); }

.writer-fines-card {
    background: #EEF3FA;
    border-color: #C9D8EC;
}
.writer-fines-card .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 420px;
    margin-bottom: 0;
}
.writer-fines-card .kpi {
    background: var(--paper);
    border: 1px solid var(--sand);
    border-bottom: 3px double var(--ink);
}
.writer-fines-card .kpi--red { background: var(--paper); border-bottom-color: #B4402A; }
.writer-fines-card .kpi--orange { background: var(--paper); border-bottom-color: #B4532B; }
.writer-fines-card table.data {
    background: rgba(255, 255, 255, 0.7);
    border-color: #C9D8EC;
}

@media (max-width: 600px) {
    .omsg { max-width: 92%; }
    .specs-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Modern Auth Pages ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 76px);
    background: var(--cream);
    padding: 32px 16px;
}

.auth-card-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}
.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--paper);
    border: 1px solid var(--sand);
    border-radius: 12px;
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
    animation: authFadeIn 0.4s ease;
}
@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.auth-heading {
    text-align: center;
    margin-bottom: 28px;
}
.auth-heading h1 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}
.auth-heading .muted {
    font-size: 0.92rem;
}

/* Auth form enhancements */
.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 540px) {
    .auth-form .form-row { grid-template-columns: 1fr; }
}
.auth-form .field {
    margin-bottom: 16px;
}
.auth-form .field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    color: var(--ink);
    font-family: var(--font-ui);
    font-weight: 600;
}
.auth-form .field input[type=text],
.auth-form .field input[type=email],
.auth-form .field input[type=password],
.auth-form .field textarea {
    width: 100%;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #33415E;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-form .field input:focus,
.auth-form .field textarea:focus {
    outline: none;
    border-color: var(--bark);
    box-shadow: 0 0 0 3px rgba(3,31,69,0.12);
}
.auth-form .field textarea { min-height: 100px; resize: vertical; }
.auth-form .field input::placeholder,
.auth-form .field textarea::placeholder {
    color: var(--ash);
    opacity: 0.6;
}

/* Submit button */
.auth-form .btn-submit {
    width: 100%;
    padding: 13px 20px;
    font-size: 1rem;
    margin-top: 4px;
    border-radius: 8px;
    gap: 8px;
}

/* Auth alternate link */
.auth-alt {
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--ash);
    text-align: center;
    font-family: var(--font-ui);
}

/* Drag over state */
.upload-zone.drag-over .upload-label {
    border-color: var(--bark);
    background: rgba(42,61,48,0.05);
}

/* Flash with icon */
.flash.error {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* Responsive auth card */
@media (max-width: 540px) {
    .auth-card { padding: 28px 20px; border-radius: 8px; }
    .auth-card-wrap { padding: 16px 12px; }
    .auth-form .btn-submit { font-size: 0.95rem; }
}

/* ── Modern auth page (register split-layout) ── */
.auth-page--modern {
    display: flex;
    gap: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--cream);
    align-items: stretch;
}

.auth-page--modern .auth-card-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
}

.auth-page--modern .auth-card {
    max-width: 520px;
    padding: 0;
    border: none;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: authFadeIn 0.45s ease;
}

.auth-card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--bark), #092855, var(--moss));
    border-radius: 0;
}

.auth-card .auth-heading {
    padding: 32px 36px 0;
    margin-bottom: 0;
}

.auth-card .auth-heading .muted {
    color: var(--ash);
    font-family: var(--font-ui);
    font-weight: 400;
}

.auth-card .auth-form {
    padding: 24px 36px 32px;
}

/* Brand panel */
.auth-brand {
    width: 420px;
    min-width: 420px;
    background: linear-gradient(135deg, #031F45 0%, #092855 40%, #0D5ED8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 300px 300px at 80% 80%, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 340px;
}

.brand-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.12);
    font-size: 0.78rem;
    font-family: var(--font-ui);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.08);
}

.auth-brand h2 {
    font-family: Georgia, serif;
    font-size: 1.8rem;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.3;
}

.auth-brand > .auth-brand-inner > p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0 0 32px;
    font-family: var(--font-ui);
}

.brand-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 36px;
}

.brand-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: Georgia, serif;
    color: #fff;
}

.stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.6;
    font-family: var(--font-ui);
}

.brand-testimonial {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}

.brand-testimonial svg {
    color: #fff;
    margin-bottom: 8px;
}

.brand-testimonial p {
    font-size: 0.88rem;
    line-height: 1.6;
    opacity: 0.8;
    font-style: italic;
    margin: 0 0 10px;
    font-family: Georgia, serif;
}

.brand-attribution {
    font-size: 0.78rem;
    opacity: 0.5;
    font-family: var(--font-ui);
}

/* Enhanced upload zone */
.upload-zone {
    border-radius: 12px;
}

.upload-zone .upload-label {
    border-radius: 12px;
    border: 2px dashed var(--sand);
    padding: 28px 20px;
    transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.upload-zone:hover .upload-label {
    border-color: var(--bark);
    background: rgba(3,31,69,0.04);
    transform: translateY(-1px);
}

/* Enhanced submit button */
.auth-form .btn-submit {
    background: var(--ink);
    border: 1px solid var(--ink);
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background 0.15s, border-color 0.15s;
}

.auth-form .btn-submit:hover {
    background: #332D24;
    border-color: #332D24;
    transform: none;
    box-shadow: none;
}

.auth-form .btn-submit:active {
    transform: translateY(0);
}

/* Brand panel responsive */
@media (max-width: 860px) {
    .auth-page--modern {
        flex-direction: column;
    }
    .auth-brand {
        width: 100%;
        min-width: unset;
        padding: 36px 28px;
    }
    .auth-brand-inner {
        max-width: 100%;
        text-align: center;
    }
    .brand-stats {
        justify-content: center;
    }
    .auth-page--modern .auth-card-wrap {
        padding: 24px 16px;
    }
    .auth-card .auth-heading {
        padding: 28px 24px 0;
    }
    .auth-card .auth-form {
        padding: 20px 24px 28px;
    }
}

@media (max-width: 480px) {
    .brand-stats {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .auth-brand {
        padding: 28px 20px;
    }
    .auth-brand h2 {
        font-size: 1.4rem;
    }
}

/* Smooth flash transition */
.flash {
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== Auth shell (login / register / reset) ===== */
body.auth-body {
    display: block;
    background: var(--cream);
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

/* Left brand panel — black so the logo and text pop */
.auth-brand-panel {
    width: 44%;
    min-width: 420px;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 48px 56px;
}

.auth-brand-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.auth-brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.auth-brand-lockup:hover { text-decoration: none; }
.auth-brand-lockup img {
    height: 56px;
    width: auto;
    display: block;
}
.auth-brand-word b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}
.auth-brand-word span {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}
.auth-home-link {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.35);
    padding-bottom: 2px;
    white-space: nowrap;
}
.auth-home-link:hover {
    color: var(--terra);
    text-decoration: none;
}

.auth-brand-mid {
    margin: auto 0;
    padding: 56px 0 44px;
}
.auth-brand-mid h1 {
    font-family: Georgia, serif;
    font-size: clamp(1.7rem, 2.6vw, 2.15rem);
    line-height: 1.25;
    color: #fff;
    margin: 0 0 16px;
}
.auth-brand-sub {
    font-family: var(--font-ui);
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin: 0;
    max-width: 440px;
}

.auth-brand-art {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin-top: 44px;
    overflow: visible;
}

/* keep the decorative art readable on the black panel */
.auth-brand-panel .auth-brand-art [stroke="var(--bark)"] { stroke: rgba(255,255,255,0.75); }
.auth-brand-panel .auth-brand-art [fill="var(--bark)"] { fill: rgba(255,255,255,0.55); }

.auth-brand-foot {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 24px;
}
.auth-brand-foot p {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
    margin: 0;
    max-width: 420px;
}

/* Right form panel */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 28px;
    background: var(--cream);
}
.auth-form-box {
    width: 100%;
    max-width: 440px;
    background: var(--paper);
    border: 1px solid var(--sand);
    border-radius: 10px;
    padding: 40px 40px 34px;
    box-shadow: var(--shadow-lg);
    animation: authFadeIn 0.3s ease;
    position: relative;
}
.auth-form-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 10px 10px 0 0;
    background: var(--bark);
}
.auth-form-box--wide {
    max-width: 640px;
}

.auth-title {
    font-family: Georgia, serif;
    font-size: 1.6rem;
    margin: 0 0 8px;
}
.auth-sub {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--ash);
    margin: 0 0 26px;
}
.auth-heading .auth-title { margin: 0 0 8px; }

/* Divider + Google button shared across auth screens */
.auth-divider {
    text-align: center;
    margin: 22px 0 16px;
    position: relative;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--sand);
}
.auth-divider span {
    background: var(--paper);
    padding: 0 14px;
    position: relative;
    color: var(--ash);
    font-size: 0.8rem;
    font-family: var(--font-ui);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--sand);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.btn-google:hover {
    border-color: #A9BBD6;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    text-decoration: none;
}

/* Compact brand strip + form on small screens */
@media (max-width: 920px) {
    .auth-shell { flex-direction: column; }
    .auth-brand-panel {
        width: 100%;
        min-width: 0;
        padding: 28px 24px;
    }
    .auth-brand-mid { padding: 40px 0 28px; }
    .auth-brand-mid h1 { font-size: 1.5rem; }
    .auth-form-panel { padding: 36px 18px; }
}

@media (max-width: 520px) {
    .auth-brand-panel { padding: 24px 20px; }
    .auth-form-box { padding: 30px 22px 26px; }
}
