:root {
    --bg: #f4efe8;
    --surface: #fffaf5;
    --surface-strong: #1f1611;
    --surface-soft: #eaded0;
    --text: #2a1e16;
    --text-muted: #6d5a4a;
    --line: #d9c5b0;
    --accent: #d96b2b;
    --accent-strong: #a54818;
    --accent-soft: #ffe4d4;
    --success: #1e7b55;
    --shadow: 0 16px 40px rgba(73, 38, 16, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --sidebar-width: 280px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(217, 107, 43, 0.16), transparent 28%),
        linear-gradient(180deg, #f9f3ec 0%, var(--bg) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    background: rgba(255, 250, 245, 0.9);
    backdrop-filter: blur(14px);
    border-right: 1px solid rgba(217, 197, 176, 0.7);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--surface-strong);
    color: #fff;
    border-radius: 14px;
    font-weight: 700;
}

.brand small,
.eyebrow {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav {
    display: grid;
    gap: 10px;
}

.nav-link {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
    background: var(--accent-soft);
}

.side-card,
.panel,
.result-card,
.stat-card,
.plan-card,
.auth-card {
    background: var(--surface);
    border: 1px solid rgba(217, 197, 176, 0.65);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.side-card,
.panel,
.result-card,
.auth-card {
    padding: var(--space-3);
}

.side-card p,
.page-head p,
.hero-copy p {
    color: var(--text-muted);
    line-height: 1.6;
}

.content {
    margin-left: calc(var(--sidebar-width) + 8px);
    padding: var(--space-4);
}

.content-public {
    margin-left: 0;
    padding: var(--space-3);
}

.content-public:has(.landing-shell) {
    padding: 0;
}

.flash {
    max-width: 1240px;
    margin: 0 auto 20px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.flash-success {
    background: rgba(30, 123, 85, 0.12);
    color: #13553b;
}

.flash-error {
    background: rgba(165, 72, 24, 0.12);
    color: #7c3210;
}

.context-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.context-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(31, 22, 17, 0.07);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.context-pill-accent {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: var(--space-4);
    align-items: center;
    min-height: 100vh;
    max-width: 1240px;
    margin: 0 auto;
}

.landing-shell {
    min-height: 100vh;
    padding: 28px 28px 0;
    background:
        linear-gradient(90deg, rgba(214, 176, 81, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(214, 176, 81, 0.06) 1px, transparent 1px),
        radial-gradient(circle at top right, rgba(216, 178, 84, 0.16), transparent 24%),
        linear-gradient(180deg, #171513 0%, #11100f 100%);
    background-size: 72px 72px, 72px 72px, auto, auto;
    color: #f3eadf;
}

.landing-topbar,
.landing-hero,
.landing-offer-grid,
.landing-section {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

.landing-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0 30px;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.landing-brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(180deg, #f1d57a 0%, #ba8f2d 100%);
    color: #1a1511;
    box-shadow: 0 12px 28px rgba(186, 143, 45, 0.25);
    font-size: 1.35rem;
    font-weight: 700;
}

.landing-brand strong,
.landing-brand small,
.landing-nav a,
.landing-kicker,
.landing-result-copy,
.landing-proofbar span,
.landing-offer-card p {
    color: inherit;
}

.landing-brand strong {
    display: block;
    font-size: 1.25rem;
}

.landing-brand small,
.landing-nav a,
.landing-kicker,
.landing-result-copy,
.landing-proofbar span,
.landing-stat span,
.landing-offer-card p {
    color: rgba(243, 234, 223, 0.74);
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.landing-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    transition: 0.2s ease;
}

.landing-nav a:hover {
    color: #f1d57a;
}

.landing-nav-cta {
    border: 1px solid rgba(214, 176, 81, 0.5);
    color: #f1d57a;
    background: rgba(214, 176, 81, 0.08);
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 32px;
    align-items: stretch;
    padding: 18px 0 40px;
}

.landing-copy,
.landing-showcase {
    position: relative;
}

.landing-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 42px 46px;
    border: 1px solid rgba(214, 176, 81, 0.22);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 42%),
        linear-gradient(180deg, rgba(36, 32, 28, 0.96) 0%, rgba(18, 17, 15, 0.98) 100%);
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

.landing-copy::after {
    content: "";
    position: absolute;
    inset: auto -16% -26% auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 176, 81, 0.22), transparent 68%);
    pointer-events: none;
}

.landing-kicker {
    display: inline-block;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-copy h1 {
    margin: 0;
    max-width: 650px;
    font-size: 5rem;
    line-height: 0.98;
    letter-spacing: 0;
    color: #fff8ef;
}

.landing-lead {
    max-width: 620px;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.65;
    color: rgba(243, 234, 223, 0.82);
}

.landing-actions {
    gap: 14px;
}

.landing-button-primary {
    background: linear-gradient(180deg, #f1d57a 0%, #c49332 100%);
    color: #171411;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(196, 147, 50, 0.22);
}

.landing-button-primary:hover {
    background: linear-gradient(180deg, #f7df92 0%, #ca9834 100%);
}

.landing-button-secondary {
    border-color: rgba(214, 176, 81, 0.34);
    background: rgba(255, 255, 255, 0.03);
    color: #fff8ef;
}

.landing-button-secondary:hover {
    background: rgba(214, 176, 81, 0.12);
}

.landing-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.landing-stat,
.landing-proofbar,
.landing-offer-card,
.landing-result-card {
    border: 1px solid rgba(214, 176, 81, 0.22);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.26);
}

.landing-stat {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
}

.landing-stat strong {
    display: block;
    margin-bottom: 8px;
    color: #f1d57a;
    font-size: 1.2rem;
}

.landing-showcase {
    display: grid;
    gap: 18px;
}

.landing-result-card {
    padding: 30px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(241, 213, 122, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(38, 34, 29, 0.98) 0%, rgba(17, 16, 14, 0.98) 100%);
    border-color: rgba(214, 176, 81, 0.34);
}

.landing-result-head,
.landing-result-total,
.landing-proofbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.landing-result-head {
    align-items: flex-start;
}

.landing-result-head strong {
    color: #f1d57a;
}

.landing-result-card h2 {
    margin: 18px 0 12px;
    font-size: 4.8rem;
    line-height: 0.95;
    color: #f1d57a;
}

.landing-result-copy {
    margin: 0 0 18px;
    line-height: 1.6;
}

.landing-summary-list li {
    border-bottom-color: rgba(214, 176, 81, 0.18);
}

.landing-summary-list li span {
    color: rgba(243, 234, 223, 0.78);
}

.landing-result-total {
    align-items: end;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid rgba(214, 176, 81, 0.28);
    border-radius: 16px;
    background: rgba(214, 176, 81, 0.08);
}

.landing-result-total span {
    color: rgba(243, 234, 223, 0.7);
}

.landing-result-total strong {
    color: #f1d57a;
    font-size: 1.8rem;
}

.landing-proofbar {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

.landing-proofbar article {
    flex: 1;
}

.landing-proofbar strong {
    display: block;
    margin-bottom: 8px;
    color: #fff8ef;
}

.landing-offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 14px 0 40px;
}

.landing-section {
    padding: 26px 0;
}

.landing-section-story {
    padding-top: 10px;
}

.landing-section-surface {
    padding: 34px;
    border: 1px solid rgba(214, 176, 81, 0.18);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 38%),
        linear-gradient(180deg, rgba(30, 27, 24, 0.98) 0%, rgba(17, 16, 14, 0.99) 100%);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.landing-section-head {
    max-width: 820px;
    margin-bottom: 28px;
}

.landing-section-head h2,
.landing-offer-card h2,
.landing-cta-card h2 {
    margin: 10px 0 0;
    color: #fff8ef;
    font-size: 3.1rem;
    line-height: 1.05;
    letter-spacing: 0;
}

.landing-grid-three,
.landing-split-grid {
    display: grid;
    gap: 18px;
}

.landing-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-split-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.landing-story-card,
.landing-step-card,
.landing-benefit-card,
.landing-cta-card {
    border: 1px solid rgba(214, 176, 81, 0.22);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(31, 28, 24, 0.96) 0%, rgba(18, 17, 15, 0.98) 100%);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.26);
}

.landing-story-card,
.landing-cta-card {
    padding: 28px 30px;
}

.landing-story-card,
.landing-cta-card,
.landing-offer-card,
.landing-step-card,
.landing-benefit-card {
    backdrop-filter: blur(6px);
}

.landing-story-card p,
.landing-step-card p,
.landing-offer-card p,
.landing-cta-card p {
    margin: 0;
    color: rgba(243, 234, 223, 0.78);
    line-height: 1.7;
}

.landing-story-highlight {
    padding: 18px 20px;
    border-left: 4px solid #f1d57a;
    border-radius: 12px;
    background: rgba(214, 176, 81, 0.08);
    color: #fff8ef !important;
    font-weight: 700;
}

.landing-story-card {
    display: grid;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.landing-story-card::after {
    content: "";
    position: absolute;
    inset: auto -10% -25% auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 176, 81, 0.16), transparent 72%);
    pointer-events: none;
}

.landing-step-card,
.landing-benefit-card {
    padding: 24px;
}

.landing-step-card {
    position: relative;
    overflow: hidden;
}

.landing-step-card::after,
.landing-benefit-card::after {
    content: "";
    position: absolute;
    inset: auto -12% -22% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 176, 81, 0.1), transparent 72%);
    pointer-events: none;
}

.landing-step-number {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: linear-gradient(180deg, #f1d57a 0%, #ba8f2d 100%);
    color: #171411;
    font-weight: 700;
}

.landing-step-card strong,
.landing-benefit-card strong {
    display: block;
    margin-bottom: 0;
    color: #fff8ef;
    font-size: 1.22rem;
}

.landing-benefit-card {
    min-height: 104px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.landing-check {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(241, 213, 122, 0.14);
    color: #f1d57a;
    font-weight: 700;
}

.landing-price {
    margin: 16px 0 14px;
    color: #f1d57a;
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 0.95;
}

.landing-price span {
    display: inline-block;
    margin-left: 8px;
    font-size: 1.05rem;
    color: rgba(243, 234, 223, 0.72);
    font-weight: 400;
}

.landing-section-cta {
    padding-bottom: 54px;
}

.landing-cta-card {
    text-align: center;
}

.landing-cta-card p {
    max-width: 760px;
    margin: 18px auto 0;
}

.landing-cta-card .landing-actions {
    justify-content: center;
    margin-top: 26px;
}

.landing-offer-card .button {
    margin-top: 24px;
}

.landing-offer-card {
    min-height: 220px;
    padding: 30px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(31, 28, 24, 0.98) 0%, rgba(18, 17, 15, 0.98) 100%);
}

.landing-offer-card strong {
    display: block;
    margin: 12px 0 14px;
    color: #fff8ef;
    font-size: clamp(1.7rem, 2.2vw, 2.4rem);
    line-height: 1.02;
}

.landing-offer-card-accent {
    background:
        radial-gradient(circle at top right, rgba(241, 213, 122, 0.22), transparent 38%),
        linear-gradient(180deg, rgba(37, 32, 28, 0.98) 0%, rgba(18, 17, 15, 0.98) 100%);
    border-color: rgba(241, 213, 122, 0.42);
}

.landing-student-card {
    opacity: 0.86;
}

.hero-copy h1,
.auth-card h1,
.page-head h1 {
    margin: 10px 0 12px;
    font-size: clamp(2rem, 4vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero-actions,
.head-actions,
.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: 0.2s ease;
}

.button:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

.button-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.button-block {
    width: 100%;
}

.button-small {
    min-height: 40px;
    padding: 0 16px;
}

.plan-grid,
.stats-grid,
.split-grid,
.calculator-grid {
    display: grid;
    gap: var(--space-3);
}

.plan-grid,
.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calculator-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    align-items: start;
}

.page-head,
.panel-head,
.list-row,
.usage-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-2);
}

.page-head {
    align-items: end;
    margin-bottom: var(--space-3);
}

.panel-head {
    align-items: center;
    margin-bottom: var(--space-2);
}

.material-picker {
    display: grid;
    gap: 12px;
    margin-bottom: 10px;
}

.material-search-results {
    display: grid;
    gap: 8px;
}

.material-search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(217, 197, 176, 0.8);
    border-radius: 16px;
    background: rgba(255, 250, 245, 0.72);
}

.material-search-result strong {
    display: block;
}

.material-search-result small {
    color: var(--text-muted);
}

.selected-materials {
    margin-top: 6px;
}

.panel h2,
.result-card h2 {
    margin: 0;
    font-size: 1.35rem;
}

.section-tip,
.field-help,
.result-note {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.stat-card {
    padding: var(--space-3);
}

.stat-card span {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.stat-card strong {
    font-size: 1.8rem;
}

.summary-list {
    display: grid;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: var(--space-2) 0 0;
}

.summary-list li,
.list-row {
    align-items: center;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-2);
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(217, 197, 176, 0.6);
}

.summary-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.list-table {
    display: grid;
    gap: 12px;
}

.list-row {
    padding: 14px 0;
    border-bottom: 1px solid rgba(217, 197, 176, 0.55);
}

.list-row:last-child {
    border-bottom: 0;
}

.row-end {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.table-actions form,
.row-end form {
    margin: 0;
}

.table-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent-strong);
    cursor: pointer;
    text-decoration: underline;
}

.table-link-danger {
    color: #a53030;
}

.status-pill {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(30, 123, 85, 0.12);
    color: var(--success);
    font-size: 0.85rem;
}

.status-pill-off {
    background: rgba(124, 50, 16, 0.12);
    color: #7c3210;
}

.form-grid {
    display: grid;
    gap: var(--space-2);
}

.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-width {
    grid-column: 1 / -1;
}

label span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fffdfb;
    color: var(--text);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 12px 0;
}

.toggle-row input {
    width: 22px;
    min-height: 22px;
}

.mini-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.mini-toggle input {
    width: 18px;
    min-height: 18px;
}

.usage-row {
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(217, 197, 176, 0.55);
    transition: 0.2s ease;
}

.usage-row:last-child {
    border-bottom: 0;
}

.usage-row-active {
    border-radius: 18px;
    padding-inline: 10px;
    background: rgba(255, 228, 212, 0.34);
    opacity: 1;
}

.usage-row-idle {
    opacity: 0.72;
}

.usage-row-hidden {
    display: none;
}

.usage-main {
    display: grid;
    gap: 4px;
}

.usage-main small {
    color: var(--text-muted);
}

.usage-subtotal {
    font-weight: 600;
}

.usage-subtotal-active {
    color: var(--accent-strong);
}

.usage-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.usage-label,
.usage-unit {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.usage-remove {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(165, 48, 48, 0.22);
    border-radius: 999px;
    background: rgba(165, 48, 48, 0.08);
    color: #8b3434;
    cursor: pointer;
}

.usage-remove:hover {
    background: rgba(165, 48, 48, 0.16);
}

.stepper {
    display: inline-grid;
    grid-template-columns: 42px minmax(76px, 90px) 42px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fffdfb;
    overflow: hidden;
}

.stepper-button {
    min-height: 48px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 1.35rem;
    cursor: pointer;
}

.stepper-button:hover {
    background: var(--accent-soft);
}

.stepper-input {
    min-height: 48px;
    padding: 8px 10px;
    border: 0;
    border-left: 1px solid rgba(217, 197, 176, 0.7);
    border-right: 1px solid rgba(217, 197, 176, 0.7);
    border-radius: 0;
    text-align: center;
}

.stepper-input:focus {
    outline: none;
    background: #fff8f1;
}

.result-card h2 {
    margin-top: 12px;
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    line-height: 1;
}

.standout,
.sticky-card {
    background: linear-gradient(180deg, #fffaf5 0%, #fbe8d8 100%);
}

.preset-box {
    padding: 18px;
    border: 1px dashed rgba(217, 197, 176, 0.9);
    border-radius: 20px;
    background: rgba(255, 250, 245, 0.72);
}

.result-actions {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.empty-state {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px dashed rgba(217, 197, 176, 0.9);
    border-radius: 20px;
    background: rgba(255, 250, 245, 0.72);
}

.empty-state.compact {
    padding: 12px 14px;
}

.empty-state p,
.info-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-subsection {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.info-card {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(217, 197, 176, 0.7);
    background: rgba(255, 250, 245, 0.72);
}

.info-card strong {
    display: block;
    margin-bottom: 8px;
}

.sticky-card {
    position: sticky;
    top: 24px;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(217, 197, 176, 0.55);
}

.data-table th {
    color: var(--text-muted);
    font-weight: 600;
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: var(--space-3);
}

.auth-card {
    width: min(100%, 520px);
}

@media (max-width: 1080px) {
    .sidebar {
        position: static;
        width: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(217, 197, 176, 0.7);
    }

    .content {
        margin-left: 0;
    }

    .hero,
    .split-grid,
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero,
    .landing-offer-grid,
    .landing-stats,
    .landing-grid-three,
    .landing-split-grid {
        grid-template-columns: 1fr;
    }

    .landing-topbar,
    .landing-result-head,
    .landing-result-total,
    .landing-proofbar {
        flex-direction: column;
    }

    .sticky-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .content,
    .content-public,
    .sidebar {
        padding: 20px;
    }

    .page-head,
    .panel-head,
    .usage-row,
    .stacked-mobile,
    .list-row {
        flex-direction: column;
        align-items: stretch;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .auth-card h1,
    .page-head h1 {
        font-size: clamp(1.8rem, 10vw, 3rem);
    }

    .landing-shell {
        padding: 16px 16px 0;
    }

    .landing-topbar,
    .landing-hero,
    .landing-offer-grid,
    .landing-section {
        width: 100%;
    }

    .landing-copy,
    .landing-result-card,
    .landing-offer-card,
    .landing-section-surface,
    .landing-story-card,
    .landing-step-card,
    .landing-benefit-card,
    .landing-cta-card {
        padding: 22px;
        border-radius: 24px;
    }

    .landing-copy h1 {
        max-width: none;
        font-size: 3rem;
        line-height: 1.02;
    }

    .landing-lead {
        font-size: 1rem;
    }

    .landing-nav {
        gap: 14px;
    }

    .landing-section-head h2,
    .landing-offer-card h2,
    .landing-cta-card h2 {
        font-size: 2.15rem;
        line-height: 1.08;
    }

    .landing-price {
        font-size: 3.05rem;
    }

    .landing-result-card h2 {
        font-size: 3.4rem;
    }

    .landing-result-total {
        align-items: flex-start;
    }

    .landing-result-total strong {
        font-size: 1.5rem;
    }

    .button,
    .button-secondary {
        width: 100%;
    }

    .usage-controls {
        width: 100%;
        justify-content: space-between;
    }

    .material-search-result {
        align-items: flex-start;
        flex-direction: column;
    }

    .stepper {
        grid-template-columns: 40px minmax(68px, 84px) 40px;
    }

    .row-end {
        justify-content: flex-start;
    }
}
