:root {
    color-scheme: light;
    --bg: #faf8f3;
    --card: #ffffff;
    --navy: #071526;
    --gold: #b88a3d;
    --ivory: #f2e9da;
    --line: #e8decc;
    --muted: #667085;
    --soft: #f7f1e7;
    --shadow: 0 18px 48px rgba(7, 21, 38, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--navy);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

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

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

.app-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 48px;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
    padding: 12px 0 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-weight: 800;
}

.brand small {
    color: var(--gold);
    font-weight: 700;
}

.topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.topbar nav a,
.nav-action {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--navy);
    font-size: 14px;
    font-weight: 650;
}

.nav-action {
    background: var(--navy);
    color: white;
}

.notice {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid rgba(184, 138, 61, 0.35);
    border-radius: 18px;
    background: #fff8e8;
    font-weight: 700;
}

.hero,
.page-head,
.panel,
.card {
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
    gap: 22px;
    align-items: stretch;
    padding: 34px;
    border-radius: 30px;
    margin-bottom: 22px;
}

.hero.compact {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
}

.page-head {
    padding: 28px;
    border-radius: 26px;
    margin-bottom: 18px;
}

.hero h1,
.page-head h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 66px);
    line-height: 0.98;
    max-width: 900px;
}

.page-head h1 {
    font-size: clamp(30px, 5vw, 54px);
}

.hero p,
.page-head p,
.panel p,
.card p {
    color: var(--muted);
    line-height: 1.62;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--gold) !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 17px;
    background: white;
    color: var(--navy);
    cursor: pointer;
    font-weight: 750;
}

.button.primary {
    border-color: var(--navy);
    background: var(--navy);
    color: white;
}

.hero-card,
.qr-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--soft);
}

.gold-line {
    display: block;
    width: 70px;
    height: 4px;
    border-radius: 999px;
    background: var(--gold);
    margin-bottom: 16px;
}

dl {
    margin: 0;
}

dl div,
.media-row,
.task {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}

dt,
.media-row span,
.task span,
.card span {
    color: var(--muted);
    font-size: 14px;
}

dd {
    margin: 0;
    text-align: right;
    font-weight: 750;
}

.grid {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

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

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

.panel,
.card {
    border-radius: 24px;
    padding: 22px;
}

.card h2,
.card h3,
.panel h2 {
    margin: 0 0 8px;
}

.tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 10px;
    background: var(--ivory);
    color: var(--navy) !important;
    font-weight: 750;
    margin-bottom: 12px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0;
}

.chips span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 10px;
    background: #fff;
}

.filter,
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

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

.quick-grid a,
input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    padding: 13px 14px;
    color: var(--navy);
}

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

.quick-grid a {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    font-weight: 750;
}

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

.task {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
}

.task form,
.task textarea,
.task input,
.task select {
    grid-column: 1 / -1;
}

.qr-box {
    display: grid;
    place-items: center;
    width: 160px;
    aspect-ratio: 1;
    margin: 0 auto 14px;
    border: 10px solid var(--navy);
    background:
        linear-gradient(90deg, var(--navy) 12px, transparent 12px) 0 0 / 32px 32px,
        linear-gradient(var(--navy) 12px, transparent 12px) 0 0 / 32px 32px,
        white;
    color: var(--gold);
    font-weight: 900;
    text-align: center;
}

.amount {
    margin-top: 12px;
    color: var(--gold);
    font-size: clamp(34px, 7vw, 72px);
    font-weight: 900;
}

code {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    border-radius: 14px;
    padding: 10px;
    background: #f2efe8;
    color: #344054;
    font-size: 13px;
}

.bank-panel {
    background: #fffcf5;
}

.legal-text {
    font-size: 18px;
}

[dir="rtl"] body,
[dir="rtl"] .page-head,
[dir="rtl"] .hero {
    text-align: right;
}

@media (max-width: 900px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar nav {
        justify-content: flex-start;
    }

    .hero,
    .hero.compact,
    .grid.two,
    .grid.three,
    .filter,
    .quick-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 24px;
        border-radius: 24px;
    }

    .hero h1,
    .page-head h1 {
        font-size: clamp(32px, 12vw, 48px);
    }

    dl div,
    .media-row {
        align-items: flex-start;
        flex-direction: column;
    }

    dd {
        text-align: left;
    }
}

.brand-logo {
    height: 36px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--muted, #667085);
    font-size: 0.85rem;
    border-top: 1px solid var(--line, #e8decc);
    margin-top: 2rem;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.card-actions .button {
    flex: 1;
    font-size: 13px;
    padding: 8px 12px;
    min-height: 38px;
}

.verified {
    background: #d4edda !important;
    color: #155724 !important;
}

.unverified {
    background: #fff3cd !important;
    color: #856404 !important;
}

.btn-print {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    background: white;
    color: var(--navy);
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
}

@media print {
    .topbar,
    .site-footer,
    .hero,
    .page-head,
    .filter,
    .quick-grid,
    .button,
    .btn-print,
    .card-actions,
    .nav-action,
    .notice,
    form {
        display: none !important;
    }

    .app-shell {
        width: 100%;
        padding: 0;
    }

    .grid {
        display: block;
    }

    .panel, .card {
        border: 1px solid #ccc;
        margin-bottom: 12px;
        page-break-inside: avoid;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}
