/* ===== Design tokens ===== */

:root {
    --ink: #10241f;
    --ink-soft: #4b5a55;
    --paper: #ffffff;
    --paper-tint: #f2f7f4;
    --brand-deep: #0e3b32;
    --brand: #1c6e5c;
    --brand-bright: #23896f;
    --gold: #d8a93b;
    --gold-deep: #b8871f;
    --line: #dce3de;
    --font-display: 'Space Grotesk', 'Inter', Arial, sans-serif;
    --font-body: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--brand-deep);
    line-height: 1.15;
    margin: 0;
    text-wrap: balance;
}

a { color: var(--brand); }

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--gold);
    color: var(--brand-deep);
}

.btn-primary:hover { background: var(--gold-deep); }

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover { border-color: #fff; }

.btn-large { padding: 15px 32px; font-size: 1.05rem; }

.btn-small { padding: 7px 16px !important; font-size: 0.85rem; }

.section-head {
    max-width: 620px;
    margin: 0 0 40px;
}

.section-head h2 { font-size: 1.9rem; margin-bottom: 10px; }

.section-head p { color: var(--ink-soft); margin: 0; }

/* ===== Site header / nav ===== */

.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--brand-deep);
    text-decoration: none;
}

.brand-mark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--brand-deep), var(--brand-bright));
    position: relative;
    flex-shrink: 0;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 7px 7px 11px 7px;
    border-radius: 2px;
    background: var(--gold);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.navbar-links a {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.93rem;
    font-weight: 500;
}

.navbar-links a:hover { color: var(--brand-deep); }

.navbar-links a.btn-primary { color: var(--brand-deep); }

.navbar-links a.nav-logout { color: var(--ink-soft); }

.nav-toggle-input { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--brand-deep);
}

/* ===== Hero ===== */

.hero {
    background: var(--brand-deep);
    background-image: radial-gradient(circle at 85% 0%, rgba(35, 137, 111, 0.55), transparent 55%);
    color: #fff;
    padding: 72px 24px 88px;
}

.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.hero-kicker {
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 0 14px;
}

.hero-copy h1 {
    color: #fff;
    font-size: 2.6rem;
    max-width: 15ch;
    margin-bottom: 18px;
}

.hero-lead {
    color: #d7e6df;
    max-width: 46ch;
    margin: 0 0 30px;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin: 0;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats dt {
    font-size: 0.8rem;
    color: #a9c2b8;
    margin-bottom: 4px;
}

.hero-stats dd {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* ---- Hero phone mock ---- */

.hero-visual { display: flex; justify-content: center; }

.phone-mock {
    width: 290px;
    background: #0b2b26;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    padding: 14px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.phone-notch {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 0 auto 12px;
}

.phone-screen {
    background: var(--paper-tint);
    border-radius: 18px;
    padding: 16px;
}

.sms-thread-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sender-badge {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--brand-deep);
    background: #fff;
    border: 1px solid var(--line);
    padding: 3px 9px;
    border-radius: 6px;
}

.thread-status {
    font-size: 0.65rem;
    color: var(--brand);
    font-weight: 600;
}

.sms-bubble {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px 12px 12px 3px;
    padding: 12px 14px;
    font-size: 0.82rem;
    color: var(--ink);
    margin-bottom: 10px;
}

.sms-bubble-alt {
    background: var(--brand-deep);
    color: #eef5f1;
    border-color: var(--brand-deep);
    border-radius: 12px 12px 3px 12px;
}

.sms-meta {
    display: block;
    margin-top: 8px;
    font-size: 0.68rem;
    color: var(--ink-soft);
}

.sms-bubble-alt .sms-meta { color: #b9d3c9; }

.delivery-strip {
    font-size: 0.75rem;
    color: var(--brand-deep);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.delivery-strip .tick { color: var(--brand); }

/* ===== Trust strip ===== */

.trust-strip {
    background: var(--paper-tint);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    text-align: center;
}

.trust-strip p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.trust-strip strong { color: var(--brand-deep); }

/* ===== Two paths ===== */

.paths {
    max-width: 1180px;
    margin: 0 auto;
    padding: 80px 24px 20px;
}

.paths-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.path-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px;
    background: var(--paper);
    box-shadow: 0 1px 2px rgba(14, 59, 50, 0.04), 0 12px 28px rgba(14, 59, 50, 0.06);
}

.path-card h3 { font-size: 1.3rem; margin-bottom: 4px; }

.path-tag {
    color: var(--brand);
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0 0 14px;
}

.path-card > p:not(.path-tag) {
    color: var(--ink-soft);
    margin: 0 0 18px;
}

.path-example {
    background: var(--paper-tint);
    border-radius: 10px;
    padding: 14px 16px;
    border-left: 3px solid var(--gold);
}

.path-example-label {
    display: block;
    font-size: 0.7rem;
    color: var(--brand);
    font-weight: 700;
    margin-bottom: 6px;
}

.path-example p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ink);
}

.path-example code {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0 4px;
    font-size: 0.85em;
}

/* ===== Features (row layout) ===== */

.features {
    max-width: 1180px;
    margin: 0 auto;
    padding: 80px 24px;
}

.feature-rows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 48px;
    border-top: 1px solid var(--line);
}

.feature-row {
    display: flex;
    gap: 18px;
    padding: 28px 4px;
    border-bottom: 1px solid var(--line);
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--paper-tint);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-row h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.feature-row p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

/* ===== Pricing preview ===== */

.pricing-preview {
    padding: 80px 24px;
    background: var(--paper-tint);
    text-align: center;
}

.pricing-preview .section-head {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.pricing-grid {
    max-width: 1180px;
    margin: 0 auto 36px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    text-align: left;
}

.pricing-card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px 22px;
    box-shadow: 0 1px 2px rgba(14, 59, 50, 0.04), 0 14px 30px rgba(14, 59, 50, 0.06);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 22px;
    background: var(--gold);
    color: var(--brand-deep);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.pricing-card h4 {
    font-size: 0.92rem;
    margin-bottom: 12px;
    color: var(--ink-soft);
    font-weight: 600;
}

.pricing-count {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--brand-deep);
    margin: 0 0 18px;
}

.pricing-count span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.pricing-list {
    list-style: none;
    margin: 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.pricing-list li {
    font-size: 0.82rem;
    color: var(--ink-soft);
    padding-left: 20px;
    position: relative;
}

.pricing-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}

.pricing-card-featured {
    background: var(--brand-deep);
    border-color: var(--brand-deep);
    transform: translateY(-6px);
    box-shadow: 0 4px 6px rgba(14, 59, 50, 0.1), 0 20px 40px rgba(14, 59, 50, 0.22);
}

.pricing-card-featured h4,
.pricing-card-featured .pricing-count,
.pricing-card-featured .pricing-count span,
.pricing-card-featured .pricing-list li { color: #cfe1da; }

.pricing-card-featured .pricing-count { color: #fff; }

.pricing-card-featured .pricing-list { border-top-color: rgba(255, 255, 255, 0.18); }

.pricing-card-featured .pricing-list li::before { border-color: var(--gold); }

/* ===== CTA band ===== */

.cta-band {
    max-width: 780px;
    margin: 0 auto;
    padding: 80px 24px;
    text-align: center;
}

.cta-band h2 { font-size: 1.9rem; margin-bottom: 12px; }

.cta-band p {
    color: var(--ink-soft);
    margin: 0 0 26px;
}

/* ===== Footer ===== */

.site-footer {
    background: var(--brand-deep);
    color: #cfe1da;
    padding: 56px 24px 24px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand .navbar-brand { color: #fff; }

.footer-brand p {
    margin: 14px 0 0;
    font-size: 0.88rem;
    color: #a9c2b8;
    max-width: 32ch;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    color: #a9c2b8;
    text-decoration: none;
    font-size: 0.88rem;
    margin-bottom: 10px;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    max-width: 1180px;
    margin: 20px auto 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    color: #8fac9f;
}

/* ===== Responsive ===== */

@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .hero-copy h1 { font-size: 2.1rem; max-width: none; }
    .paths-grid { grid-template-columns: 1fr; }
    .feature-rows { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .nav-toggle { display: flex; }
    .navbar-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-top: 16px;
    }
    .nav-toggle-input:checked ~ .navbar-links { display: flex; }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .hero { padding: 48px 20px 60px; }
}

/* Standalone centred auth wrapper (used by pages without the split panel,
   e.g. setup-admin.php) */
.auth-section {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.auth-section .auth-box {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(14, 59, 50, 0.04), 0 12px 28px rgba(14, 59, 50, 0.06);
}

/* ===== Auth forms (login/register) ===== */

.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 65px);
}

.auth-panel {
    background: var(--brand-deep);
    background-image: radial-gradient(circle at 20% 100%, rgba(35, 137, 111, 0.55), transparent 55%);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 60px;
}

.auth-panel-inner { max-width: 400px; }

.auth-panel h2 {
    color: #fff;
    font-size: 1.9rem;
    margin: 14px 0 26px;
}

.auth-panel-list {
    list-style: none;
    margin: 0 0 34px;
    padding: 26px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-panel-list li {
    padding-left: 24px;
    position: relative;
    color: #d7e6df;
    font-size: 0.92rem;
}

.auth-panel-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 13px;
    height: 8px;
    border-left: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(-45deg);
}

.auth-panel-quote {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 18px 20px;
}

.auth-panel-quote p {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #fff;
}

.auth-panel-quote span {
    font-size: 0.75rem;
    color: #a9c2b8;
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    background: var(--paper);
}

.auth-box {
    width: 100%;
    max-width: 400px;
}

.auth-brand {
    justify-content: center;
    margin-bottom: 30px;
}

.auth-box h1 {
    margin-top: 0;
    text-align: center;
    font-size: 1.7rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin: 8px 0 26px;
}

.auth-box label {
    display: block;
    margin: 14px 0 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}

.auth-box input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.auth-box input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(28, 110, 92, 0.12);
}

.auth-box button {
    width: 100%;
    margin-top: 22px;
    padding: 12px;
    border: none;
    cursor: pointer;
}

.auth-box p {
    text-align: center;
    margin-top: 18px;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

@media (max-width: 860px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-panel { display: none; }
    .auth-form-side { padding: 48px 20px; }
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.setup-warning {
    margin-top: 16px;
    padding: 12px 14px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 6px;
    font-size: 0.85rem;
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

/* ===== Generic page/app layout (contacts, wallet, campaigns, admin, n.k.) ===== */

.page-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.page-header h1 { font-size: 1.6rem; }

.page-sub {
    color: var(--ink-soft);
    margin: 4px 0 0;
    font-size: 0.9rem;
}

.page-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(14, 59, 50, 0.03), 0 8px 20px rgba(14, 59, 50, 0.04);
}

.card + .card { margin-top: 20px; }

.card-title {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.card-sub {
    color: var(--ink-soft);
    font-size: 0.85rem;
    margin: 0 0 18px;
}

/* Form elements outside .auth-box (contacts, wallet, send pages, admin) */
.field { margin-bottom: 16px; }

.field label,
label.field-label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    box-sizing: border-box;
    background: #fff;
    color: var(--ink);
}

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

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(28, 110, 92, 0.12);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 4px 16px;
}

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

.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 20px;
}

.filter-bar .field { min-width: 150px; margin-bottom: 0; }

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--paper-tint);
    font-size: 0.8rem;
    color: var(--brand-deep);
    font-weight: 600;
}

.list-inline-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-danger-ghost {
    background: transparent;
    color: #c0392b;
    border: 1px solid #f2c9c4;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-danger-ghost:hover { background: #fee2e2; }

.btn-ghost-small {
    background: transparent;
    color: var(--brand);
    border: 1px solid var(--line);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-ghost-small:hover { border-color: var(--brand); }

.preview-box {
    background: var(--paper-tint);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.88rem;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.checkbox-row input { width: auto; }

.tabs-nav {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}

.tabs-nav a {
    padding: 10px 16px;
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.tabs-nav a.active,
.tabs-nav a:hover {
    color: var(--brand-deep);
    border-bottom-color: var(--gold);
}

.summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.summary-item {
    background: var(--paper-tint);
    border-radius: 10px;
    padding: 14px 16px;
}

.summary-item .label { font-size: 0.78rem; color: var(--ink-soft); display: block; margin-bottom: 4px; }
.summary-item .value { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--brand-deep); }

.dashboard {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.dashboard-eyebrow {
    margin: 0 0 4px;
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.dashboard-head h1 { font-size: 1.7rem; }

.dashboard-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-outline {
    background: transparent;
    color: var(--brand-deep);
    border: 1px solid var(--line);
}

.btn-outline:hover { border-color: var(--brand); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin: 0 0 34px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(14, 59, 50, 0.03), 0 8px 20px rgba(14, 59, 50, 0.04);
}

.stat-card-accent {
    background: var(--brand-deep);
    border-color: var(--brand-deep);
}

.stat-card-accent .stat-label,
.stat-card-accent .stat-value { color: #fff; }

.stat-card-accent .stat-icon { color: var(--gold); background: rgba(255, 255, 255, 0.1); }

.stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--paper-tint);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.stat-icon svg { width: 18px; height: 18px; }

.stat-icon-success { color: #1c8a5c; }
.stat-icon-danger { color: #c0392b; }

.stat-label {
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-deep);
}

.stat-link {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--gold-deep);
    text-decoration: none;
    font-weight: 600;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.quick-action-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quick-action-card:hover {
    border-color: var(--brand);
    box-shadow: 0 8px 20px rgba(14, 59, 50, 0.08);
}

.quick-action-card h3 {
    font-size: 0.98rem;
    color: var(--brand-deep);
    margin-bottom: 4px;
}

.quick-action-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.dashboard-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.dashboard-section-head h2 { font-size: 1.2rem; }

.section-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--brand);
}

.empty-state {
    text-align: center;
    padding: 46px 20px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: var(--paper-tint);
}

.empty-state p {
    margin: 0 0 16px;
    color: var(--ink-soft);
}

.table-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

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

.data-table th,
.data-table td {
    text-align: left;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
}

.data-table tbody tr:last-child td { border-bottom: none; }

.data-table th {
    background: var(--paper-tint);
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-neutral { background: #f1f5f9; color: #475569; }
