:root {
    --bg: #f5f7fa;
    --bg-strong: #eef3f9;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --surface-muted: #eef2f7;
    --text: #0a1733;
    --text-soft: #5d6a7c;
    --border: #d7e1ec;
    --border-strong: #c4d0de;
    --primary: #0a192f;
    --primary-soft: #0d1c32;
    --secondary: #3a7bd5;
    --secondary-soft: rgba(58, 123, 213, 0.12);
    --success: #1fba72;
    --success-soft: rgba(31, 186, 114, 0.14);
    --warning: #edb434;
    --warning-soft: rgba(237, 180, 52, 0.16);
    --danger: #de5050;
    --danger-soft: rgba(222, 80, 80, 0.14);
    --muted: #8b97a8;
    --shadow: 0 20px 50px rgba(10, 25, 47, 0.08);
    --shadow-soft: 0 8px 24px rgba(10, 25, 47, 0.05);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

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

.shell--public,
.shell--auth {
    background:
        radial-gradient(circle at center, rgba(58, 123, 213, 0.07), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 247, 250, 0.98)),
        radial-gradient(circle, rgba(10, 25, 47, 0.08) 1px, transparent 1px);
    background-size: auto, auto, 30px 30px;
}

.shell--admin {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 250, 1)),
        radial-gradient(circle, rgba(10, 25, 47, 0.05) 1px, transparent 1px);
    background-size: auto, 28px 28px;
}

.icon {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(199, 208, 222, 0.7);
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(18px);
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.04);
}

.topbar--admin {
    justify-content: space-between;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar__menu {
    display: none;
    border: 0;
    background: transparent;
    color: var(--primary);
    padding: 0.4rem;
    border-radius: 999px;
}

.topbar__user {
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 600;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.95rem;
}

.brand__logo,
.preview-tile__image {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    border-radius: 0.9rem;
    border: 1px solid rgba(199, 208, 222, 0.7);
    background: white;
}

.brand__mark,
.preview-tile__placeholder {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, var(--primary), #17345f);
    color: white;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: var(--shadow-soft);
}

.brand--sidebar .brand__mark,
.brand--sidebar .brand__logo {
    width: 3.25rem;
    height: 3.25rem;
}

.brand__name {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.brand__sub {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.86rem;
    color: var(--text-soft);
}

.brand--compact .brand__logo,
.brand--compact .brand__mark {
    width: 2.5rem;
    height: 2.5rem;
}

.ghost-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 0.95rem;
    border-radius: 999px;
    color: var(--text-soft);
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.ghost-link:hover,
.ghost-link--active {
    color: var(--secondary);
    background: rgba(58, 123, 213, 0.08);
}

.public-content,
.auth-content {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.25rem 0 5rem;
}

.public-shell {
    min-height: 100vh;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 2rem 0 1.5rem;
}

.hero__content {
    width: min(900px, 100%);
    margin: 0 auto;
    text-align: center;
}

.hero__copy h1,
.page-header h1,
.auth-card__copy h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
    color: var(--primary);
}

.hero__copy p,
.page-header p,
.auth-card__copy p {
    margin: 1rem auto 0;
    max-width: 760px;
    color: var(--text-soft);
    font-size: 1.1rem;
    line-height: 1.7;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--secondary);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero__airflow {
    position: absolute;
    left: -8%;
    width: 116%;
    height: 180px;
    border-top: 1px solid rgba(58, 123, 213, 0.18);
    border-radius: 50%;
    opacity: 0.7;
}

.hero__airflow--top {
    top: 12%;
    transform: rotate(-2deg);
}

.hero__airflow--bottom {
    top: 45%;
    transform: rotate(2deg);
}

.card {
    position: relative;
    border: 1px solid rgba(207, 216, 229, 0.72);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.card--glass {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
}

.card--dark {
    background: linear-gradient(135deg, var(--primary) 0%, #142844 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 46px rgba(10, 25, 47, 0.16);
}

.card--dark .eyebrow,
.card--dark .summary-list__row,
.card--dark .summary-total span {
    color: rgba(255, 255, 255, 0.72);
}

.card--dark h2,
.card--dark strong {
    color: white;
}

.card__blueprint {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(58, 123, 213, 0.16) 1px, transparent 1px);
    background-size: 14px 14px;
    opacity: 0.18;
    pointer-events: none;
}

.lookup-card {
    margin-top: 2rem;
    padding: 2rem;
}

.lookup-form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
}

.hero__support {
    margin-top: 1.6rem;
    display: grid;
    gap: 1rem;
}

.glass-pill,
.hero-highlight {
    padding: 1rem 1.2rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(204, 213, 225, 0.75);
    box-shadow: var(--shadow-soft);
}

.glass-pill__label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-soft);
    font-size: 0.86rem;
    font-weight: 700;
}

.sample-id-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.chip-button,
.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1rem;
    border: 1px solid rgba(201, 211, 224, 0.85);
    border-radius: 999px;
    background: white;
    color: var(--text-soft);
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.chip-button:hover,
.filter-pill:hover,
.filter-pill--active {
    color: var(--secondary);
    border-color: rgba(58, 123, 213, 0.35);
    transform: translateY(-1px);
}

.hero-highlight strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.45rem;
}

.hero-highlight p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.trust-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.4rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    min-width: 120px;
}

.trust-badge__icon,
.feature-card__icon,
.metric-card__icon {
    width: 3.2rem;
    height: 3.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: var(--surface-muted);
    color: var(--primary);
}

.trust-badge span {
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 700;
}

.feature-grid {
    width: min(var(--container), calc(100% - 2rem));
    margin: 1rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card {
    padding: 1.5rem;
}

.feature-card h2,
.section-title h2,
.summary-card__header h2,
.note-card h3,
.payment-link-card h2,
.auth-card__copy h1 {
    margin: 0.8rem 0 0.4rem;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
}

.feature-card p,
.note-card p,
.empty-state p,
.auth-card__note,
.inline-note {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.header-actions,
.form-actions,
.search-inline,
.status-pair,
.payment-link-card__actions,
.payment-link-card__meta,
.filter-row,
.inline-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 0.95rem;
    padding: 0.9rem 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 12px 24px rgba(10, 25, 47, 0.18);
}

.btn--secondary {
    background: white;
    color: var(--secondary);
    border-color: rgba(58, 123, 213, 0.26);
}

.btn--muted {
    background: var(--surface-muted);
    color: var(--text);
    border-color: rgba(207, 216, 229, 0.82);
}

.btn--block {
    width: 100%;
}

.btn--lg {
    padding-block: 1rem;
}

.btn--icon {
    width: 2.3rem;
    min-width: 2.3rem;
    height: 2.3rem;
    padding: 0;
    border-radius: 0.85rem;
    background: var(--surface-muted);
    color: var(--text-soft);
    border-color: rgba(207, 216, 229, 0.82);
}

.field {
    display: grid;
    gap: 0.5rem;
}

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

.label {
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.label--inverse {
    color: rgba(255, 255, 255, 0.75);
}

.input,
.select,
.textarea {
    width: 100%;
    border: 1px solid rgba(195, 206, 220, 0.95);
    border-radius: 1rem;
    background: white;
    color: var(--text);
    padding: 0.88rem 1rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: rgba(58, 123, 213, 0.8);
    box-shadow: 0 0 0 4px rgba(58, 123, 213, 0.12);
}

.input--lg {
    padding-block: 1rem;
    font-size: 1rem;
}

.input--sm,
.select--sm {
    padding: 0.65rem 0.75rem;
    border-radius: 0.85rem;
}

.input--code,
.code-pill {
    font-family: ui-monospace, "SFMono-Regular", "SF Mono", Consolas, monospace;
}

.input--inverse {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.input--inverse::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.textarea {
    min-height: 110px;
    resize: vertical;
}

.field__icon {
    position: relative;
}

.field__icon .icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.field__icon .input {
    padding-left: 3rem;
}

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    font-weight: 600;
}

.flash--success {
    background: rgba(31, 186, 114, 0.12);
    color: #0f7a47;
    border: 1px solid rgba(31, 186, 114, 0.2);
}

.flash--error {
    background: rgba(222, 80, 80, 0.1);
    color: #b23d3d;
    border: 1px solid rgba(222, 80, 80, 0.16);
}

.stack {
    display: grid;
    gap: 1rem;
}

.stack-sm {
    display: grid;
    gap: 0.75rem;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-title h2 {
    font-size: 1.35rem;
}

.summary-card,
.note-card,
.detail-card,
.payment-card,
.eft-card,
.admin-inline-card,
.auth-card,
.metric-card,
.payment-link-card,
.preview-tile {
    padding: 1.4rem;
}

.summary-card__header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.summary-grid,
.form-grid,
.payment-meta,
.summary-list,
.split-layout,
.triple-grid {
    display: grid;
    gap: 1rem;
}

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

.summary-item {
    display: grid;
    gap: 0.35rem;
}

.summary-item--full {
    grid-column: 1 / -1;
}

.summary-item__label {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.summary-item strong {
    font-size: 1rem;
    line-height: 1.55;
}

.summary-item__value {
    font-size: 1.35rem;
    color: var(--primary);
}

.code-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: var(--surface-muted);
    width: fit-content;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.status-chip--primary,
.status-chip--info {
    color: var(--secondary);
    background: rgba(58, 123, 213, 0.12);
}

.status-chip--success {
    color: #11814d;
    background: var(--success-soft);
}

.status-chip--warning {
    color: #9a6a0f;
    background: var(--warning-soft);
}

.status-chip--danger {
    color: #b83939;
    background: var(--danger-soft);
}

.status-chip--muted {
    color: var(--text-soft);
    background: rgba(139, 151, 168, 0.12);
}

.proposal-shell-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.95fr);
    gap: 1rem;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
}

.timeline__step {
    position: relative;
    text-align: center;
    padding-top: 0.15rem;
}

.timeline__line {
    position: absolute;
    left: -50%;
    top: 1rem;
    width: 100%;
    height: 2px;
    background: rgba(196, 208, 222, 0.9);
}

.timeline__step:first-child .timeline__line {
    display: none;
}

.timeline__step--done .timeline__line,
.timeline__step--current .timeline__line {
    background: rgba(58, 123, 213, 0.55);
}

.timeline__dot {
    position: relative;
    z-index: 1;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(196, 208, 222, 0.9);
    background: white;
    color: var(--muted);
}

.timeline__step--done .timeline__dot {
    background: var(--secondary);
    color: white;
    border-color: transparent;
}

.timeline__step--current .timeline__dot {
    color: var(--secondary);
    border-color: rgba(58, 123, 213, 0.48);
    box-shadow: 0 0 0 6px rgba(58, 123, 213, 0.12);
}

.timeline__content strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.timeline__content span {
    display: block;
    color: var(--text-soft);
    font-size: 0.83rem;
    line-height: 1.45;
}

.table-shell {
    overflow: auto;
    border-radius: 1rem;
}

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

.table th,
.table td {
    padding: 1rem 1.05rem;
    border-bottom: 1px solid rgba(216, 224, 234, 0.9);
    text-align: left;
    vertical-align: middle;
}

.table th {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(245, 247, 250, 0.9);
}

.table tbody tr:hover {
    background: rgba(58, 123, 213, 0.03);
}

.table tbody tr.is-highlight {
    background: rgba(58, 123, 213, 0.08);
}

.table-item-title {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

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

.note-card {
    border-left: 4px solid rgba(197, 208, 220, 0.95);
}

.note-card--accent {
    border-left-color: var(--secondary);
}

.payment-meta {
    grid-template-columns: 1fr;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(205, 214, 226, 0.9);
}

.payment-meta__row,
.summary-list__row,
.summary-total,
.bank-block {
    display: grid;
    gap: 0.45rem;
}

.payment-meta__row {
    grid-template-columns: 1fr auto;
}

.secure-note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.list-stack {
    display: grid;
    gap: 0.75rem;
}

.list-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(214, 223, 234, 0.8);
    background: rgba(248, 251, 255, 0.68);
}

.list-row strong,
.note-snippet strong {
    display: block;
    margin-bottom: 0.18rem;
}

.list-row span,
.list-row__meta span,
.note-snippet span,
.note-snippet p,
.note-snippet__footer {
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.6;
}

.list-row__meta {
    display: grid;
    gap: 0.35rem;
    justify-items: end;
}

.note-snippet {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: rgba(248, 251, 255, 0.85);
    border: 1px solid rgba(214, 223, 234, 0.8);
}

.note-snippet p {
    margin: 0;
}

.note-snippet__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.inline-note {
    padding: 0.85rem 0.95rem;
    border-radius: 0.95rem;
    background: rgba(58, 123, 213, 0.08);
}

.inline-note--danger {
    background: rgba(222, 80, 80, 0.1);
    color: #b23d3d;
}

.empty-state {
    width: min(640px, calc(100% - 2rem));
    margin: 4rem auto;
    padding: 2.2rem;
    text-align: center;
}

.empty-state__icon {
    width: 4rem;
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border-radius: 1.2rem;
    background: rgba(58, 123, 213, 0.1);
    color: var(--secondary);
}

.empty-state h1 {
    margin: 0 0 0.65rem;
    font-size: 1.8rem;
}

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

.auth-content {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 100px);
}

.auth-card {
    width: min(540px, 100%);
    padding: 2rem;
}

.auth-card__copy,
.auth-card__note {
    position: relative;
    z-index: 1;
}

.auth-card__copy p {
    margin-inline: 0;
}

.auth-card__note {
    margin-top: 1rem;
}

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

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100vh;
    padding: 1.5rem;
    border-right: 1px solid rgba(208, 216, 227, 0.85);
    background: rgba(249, 251, 255, 0.9);
    backdrop-filter: blur(16px);
}

.sidebar__nav,
.sidebar__footer {
    display: grid;
    gap: 0.35rem;
}

.sidebar__nav {
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    color: var(--text-soft);
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-link:hover,
.nav-link--active {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

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

.admin-content {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.75rem 0 4rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card__label {
    display: block;
    margin-top: 1.15rem;
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 700;
}

.metric-card__value {
    display: block;
    margin-top: 0.5rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--primary);
}

.metric-card__icon--blue {
    background: rgba(58, 123, 213, 0.08);
    color: var(--secondary);
}

.metric-card__icon--amber {
    background: rgba(237, 180, 52, 0.1);
    color: #b57c0f;
}

.metric-card__icon--indigo {
    background: rgba(114, 123, 241, 0.12);
    color: #4f58d5;
}

.metric-card__icon--green {
    background: rgba(31, 186, 114, 0.12);
    color: #11814d;
}

.toggle-card {
    margin-bottom: 1.25rem;
    padding: 1.2rem;
}

.toggle-card > summary {
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    color: var(--primary);
    padding-bottom: 0.85rem;
}

.toggle-card > summary::-webkit-details-marker {
    display: none;
}

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

.split-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
}

.split-layout--wide {
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
}

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

.search-inline {
    min-width: min(380px, 100%);
}

.search-inline .input {
    min-width: 230px;
}

.proposal-builder {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.9fr);
    gap: 1rem;
}

.proposal-builder__main,
.proposal-builder__side {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.builder-table th,
.builder-table td {
    padding: 0.85rem 0.8rem;
}

.summary-totals {
    position: sticky;
    top: 5.8rem;
}

.summary-list {
    margin: 1rem 0;
}

.summary-list__row {
    grid-template-columns: 1fr auto;
    color: rgba(255, 255, 255, 0.82);
}

.summary-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    grid-template-columns: 1fr auto;
    align-items: center;
}

.summary-total strong {
    font-size: 2rem;
    letter-spacing: -0.05em;
}

.payment-link-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.payment-link-card__meta {
    min-width: 180px;
    justify-content: flex-end;
    text-align: right;
}

.payment-link-card__meta strong {
    display: block;
    font-size: 1.2rem;
}

.preview-tile {
    display: grid;
    place-items: center;
    min-height: 220px;
    background: rgba(248, 251, 255, 0.72);
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-soft);
}

.checkbox-field input {
    width: 1rem;
    height: 1rem;
}

.bank-block {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(248, 251, 255, 0.85);
    border: 1px solid rgba(214, 223, 234, 0.8);
}

.payment-actions {
    display: grid;
    gap: 0.8rem;
}

.print-shell {
    padding: 2rem;
    background: white;
}

.print-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid #dfe6f0;
    border-radius: 20px;
}

.print-header,
.print-footer {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.print-meta {
    display: grid;
    gap: 0.35rem;
    color: var(--text-soft);
}

@media (max-width: 1180px) {
    .proposal-shell-grid,
    .proposal-builder,
    .split-layout,
    .split-layout--wide,
    .triple-grid {
        grid-template-columns: 1fr;
    }

    .summary-totals {
        position: static;
    }

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

@media (max-width: 980px) {
    .admin-app {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: min(82vw, 320px);
        transform: translateX(-105%);
        transition: transform 0.24s ease;
        z-index: 60;
        box-shadow: 0 24px 60px rgba(10, 25, 47, 0.14);
    }

    .admin-app.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .topbar__menu {
        display: inline-flex;
    }

    .metric-grid,
    .feature-grid,
    .timeline {
        grid-template-columns: 1fr;
    }

    .timeline__step {
        padding-left: 3.2rem;
        text-align: left;
        min-height: 3.5rem;
    }

    .timeline__line {
        top: -0.2rem;
        left: 1rem;
        width: 2px;
        height: calc(100% + 0.4rem);
    }

    .timeline__step:first-child .timeline__line {
        display: block;
        top: 1rem;
        height: calc(100% - 1rem);
    }

    .timeline__dot {
        position: absolute;
        left: 0;
        margin: 0;
    }
}

@media (max-width: 760px) {
    .topbar,
    .admin-content,
    .public-content,
    .auth-content {
        width: calc(100% - 1.25rem);
        margin: 0 auto;
        padding-inline: 0;
    }

    .topbar {
        width: 100%;
        padding-inline: 1rem;
    }

    .public-content,
    .admin-content {
        padding-top: 1.25rem;
    }

    .hero__copy h1,
    .page-header h1,
    .auth-card__copy h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .lookup-card,
    .auth-card,
    .summary-card,
    .note-card,
    .detail-card,
    .payment-card,
    .eft-card,
    .admin-inline-card,
    .metric-card,
    .payment-link-card,
    .preview-tile,
    .toggle-card {
        padding: 1.15rem;
    }

    .page-header,
    .section-title,
    .summary-card__header,
    .payment-link-card__header,
    .header-actions,
    .payment-link-card__actions,
    .inline-form {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar__actions {
        flex-direction: row;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .summary-grid,
    .two-column,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .table {
        min-width: 620px;
    }

    .trust-row {
        gap: 0.4rem;
    }
}

@media print {
    body {
        background: white;
    }

    .topbar,
    .btn,
    .flash {
        display: none !important;
    }

    .print-card {
        border: 0;
        box-shadow: none;
        padding: 0;
    }
}
