/* admin-common.css — Crimson Wings admin theme */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --cr: #970a16;
    --cr-dark: #7a0811;
    --or: #f47614;
    --gold: #fabe09;
    --green: #2a7a2a;
    --red: #c0392b;
    --ink: #1a1a1a;
    --ink-soft: #4a4a4a;
    --muted: #8a8580;
    --line: #ece7e0;
    --bg: #f6f3ee;
    --white: #fff;
    --sidebar-w: 250px;
    --radius: 14px;
    --shadow-sm: 0 2px 12px rgba(0,0,0,.04);
    --shadow-md: 0 8px 28px rgba(0,0,0,.06);
}

html, body { height: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   LAYOUT
   ============================================================ */
.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    background: linear-gradient(180deg, #0f1a2c 0%, #1a0a14 100%);
    color: #fff;
    padding: 22px 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar::-webkit-scrollbar { width: 6px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-brand img { height: 36px; width: auto; }
.admin-brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .3px;
}
.admin-brand-name .cr { color: #ff4a5e; }
.admin-brand-name .or { color: #ffa34a; }
.admin-brand-sub {
    font-size: .58rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    margin-top: 3px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 500;
    color: rgba(255,255,255,.72);
    transition: all .2s;
    border: 1px solid transparent;
}
.admin-nav-item .ai {
    width: 20px;
    display: inline-flex;
    justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
}
.admin-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav-item.active {
    background: linear-gradient(135deg, rgba(244,118,20,.18), rgba(151,10,22,.15));
    color: #fff;
    border-color: rgba(244,118,20,.3);
}

.admin-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .3px;
    transition: .2s;
    margin-top: auto;
}
.admin-logout:hover {
    background: rgba(151,10,22,.55);
    border-color: rgba(151,10,22,.85);
}

.admin-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 22px 28px 40px;
    min-width: 0;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.admin-topbar h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
}
.admin-topbar p { font-size: .88rem; color: var(--muted); margin-top: 2px; }

.admin-me {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,.04);
}
.admin-me-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--or), var(--cr));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.admin-me-meta { line-height: 1.15; }
.admin-me-name { font-size: .82rem; font-weight: 600; }
.admin-me-mail { font-size: .68rem; color: var(--muted); }

/* ============================================================
   CARDS + PANELS
   ============================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,.03);
    overflow: hidden;
    margin-bottom: 18px;
}
.card-head {
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.card-head h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
}
.card-head p { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.card-body { padding: 18px 20px; }

/* KPI grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.kpi {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,.03);
    position: relative;
    overflow: hidden;
    transition: .25s;
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--or), var(--cr));
    opacity: 0;
    transition: .3s;
}
.kpi:hover::before { opacity: 1; }
.kpi .k-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    margin-bottom: 10px;
}
.k-icon.or { background: rgba(244,118,20,.12); color: var(--or); }
.k-icon.cr { background: rgba(151,10,22,.08); color: var(--cr); }
.k-icon.gr { background: #e6f7e6; color: var(--green); }
.k-icon.go { background: rgba(250,190,9,.14); color: #b58b00; }
.k-icon.bl { background: #e8f0fe; color: #1a4480; }

.kpi .k-val {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
}
.kpi .k-lbl {
    font-size: .7rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .7px;
    text-transform: uppercase;
    margin-top: 4px;
}
.kpi .k-sub {
    font-size: .72rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; }
table.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}
table.tbl th, table.tbl td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}
table.tbl th {
    background: #faf8f5;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
table.tbl tr:hover td { background: #fdfbf8; }
table.tbl td.r { text-align: right; }
table.tbl td.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .8rem;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ============================================================
   BUTTONS + FORMS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    border: none;
    transition: .2s;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, var(--or), var(--cr));
    color: #fff;
    box-shadow: 0 4px 14px rgba(244,118,20,.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(244,118,20,.4); }
.btn-ghost {
    background: #fff;
    color: var(--cr);
    border: 1.5px solid var(--cr);
}
.btn-ghost:hover { background: var(--cr); color: #fff; }
.btn-gray {
    background: #f0ede8;
    color: var(--ink-soft);
    border: 1px solid rgba(0,0,0,.05);
}
.btn-gray:hover { background: #e8e3dc; }
.btn-danger {
    background: #fdecea;
    color: var(--red);
    border: 1px solid #f5c6c6;
}
.btn-danger:hover { background: #fbd6d1; }
.btn-sm { padding: 6px 12px; font-size: .68rem; }

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: end;
    padding: 14px 20px;
    background: #faf8f5;
    border-bottom: 1px solid var(--line);
}
.filter-bar .field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 130px;
}
.filter-bar .field label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}
.filter-bar input[type=text],
.filter-bar input[type=date],
.filter-bar select {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: .82rem;
    font-family: inherit;
    background: #fff;
    outline: none;
    transition: .15s;
}
.filter-bar input:focus, .filter-bar select:focus {
    border-color: var(--or);
    box-shadow: 0 0 0 3px rgba(244,118,20,.08);
}
.filter-bar .spacer { flex: 1; }

/* Form */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }
.field-vert {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field-vert label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}
.field-vert input,
.field-vert select,
.field-vert textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-size: .88rem;
    font-family: inherit;
    background: #fff;
    outline: none;
    transition: .15s;
    width: 100%;
}
.field-vert input:focus,
.field-vert select:focus,
.field-vert textarea:focus {
    border-color: var(--or);
    box-shadow: 0 0 0 3px rgba(244,118,20,.08);
}
.field-vert textarea { min-height: 80px; resize: vertical; }

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: .85rem;
    margin-bottom: 16px;
    border: 1px solid;
}
.alert-ok { background: #e6f7e6; color: #1b5e20; border-color: #c8e6c9; }
.alert-err { background: #fdecea; color: #8b1a1a; border-color: #f5c6c6; }
.alert-info { background: #e8f0fe; color: #1a4480; border-color: #c5d5f5; }

/* Empty state */
.empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: .9rem;
}
.empty .em { font-size: 2.4rem; display: block; margin-bottom: 8px; opacity: .6; }

/* Login screen */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #0a1628 0%, #2a0a14 100%);
}
.login-box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 22px;
    padding: 40px 34px;
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.login-box h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}
.login-box .sub { font-size: .85rem; color: var(--muted); margin-bottom: 26px; }
.login-box .brand-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}
.login-box .brand-mini img { height: 40px; }
.login-box .brand-mini .bm-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 700;
}
.login-box .brand-mini .bm-name .cr { color: var(--cr); }
.login-box .brand-mini .bm-name .or { color: var(--or); }

/* Admin footer */
.admin-foot {
    margin-top: 30px;
    padding: 16px 0;
    text-align: center;
    font-size: .76rem;
    color: var(--muted);
}

/* Mobile */
.admin-hamburger {
    display: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    margin-bottom: 12px;
}
@media (max-width: 900px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform .3s;
        width: 240px;
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; padding: 16px 14px 40px; }
    .admin-hamburger { display: inline-flex; }
    .admin-topbar h1 { font-size: 1.5rem; }
    .admin-me-meta { display: none; }
}

/* ============================================================
   ANALYTICS — added styles
   ============================================================ */

/* Analytics hero */
.an-hero {
    background: linear-gradient(135deg, #0f1a2c 0%, #2a0a14 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 26px 30px;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}
.an-hero::before {
    content: '';
    position: absolute;
    top: -140px; right: -140px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(244,118,20,.28) 0%, transparent 70%);
    pointer-events: none;
}
.an-hero::after {
    content: '';
    position: absolute;
    bottom: -140px; left: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(151,10,22,.25) 0%, transparent 70%);
    pointer-events: none;
}
.an-hero-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}
.an-hero-head h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
}
.an-hero-head p {
    font-size: .9rem;
    color: rgba(255,255,255,.65);
    margin-top: 4px;
    max-width: 560px;
}
.an-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(244,118,20,.15);
    border: 1px solid rgba(244,118,20,.35);
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #ffb26b;
}
.an-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-top: 22px;
    position: relative;
}
.an-hero-stat {
    padding: 14px 16px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    transition: .25s;
}
.an-hero-stat:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(244,118,20,.3);
    transform: translateY(-2px);
}
.an-hero-stat .lbl {
    font-size: .62rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    font-weight: 700;
}
.an-hero-stat .v {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-top: 4px;
}
.an-hero-stat .v small {
    font-size: .7rem;
    font-weight: 500;
    color: rgba(255,255,255,.6);
    margin-left: 4px;
}
.an-hero-stat .delta {
    font-size: .68rem;
    font-weight: 700;
    color: #ffb26b;
    margin-top: 4px;
    letter-spacing: .3px;
}
.an-hero-stat .delta.pos { color: #6ee7a4; }
.an-hero-stat .delta.neg { color: #ff8080; }
.an-hero-stat .delta.muted { color: rgba(255,255,255,.5); }

/* Grid layout */
.an-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 22px;
    margin-bottom: 22px;
}
.an-grid.three {
    grid-template-columns: repeat(3, 1fr);
}
.an-grid.full {
    grid-template-columns: 1fr;
}
@media (max-width: 1100px) {
    .an-grid,
    .an-grid.three { grid-template-columns: 1fr; }
}

/* Bar chart */
.an-chart-bars {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    align-items: end;
    height: 220px;
    padding: 14px 4px 0;
    border-bottom: 1px dashed var(--line);
}
.an-chart-bars.twelve { grid-template-columns: repeat(12, 1fr); }
.an-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}
.an-bar {
    width: 100%;
    max-width: 56px;
    background: linear-gradient(180deg, #f47614 0%, #970a16 100%);
    border-radius: 8px 8px 3px 3px;
    min-height: 4px;
    position: relative;
    transition: .3s;
    box-shadow: 0 4px 14px rgba(244,118,20,.22);
}
.an-bar:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}
.an-bar .bar-value {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .68rem;
    font-weight: 700;
    color: var(--cr);
    white-space: nowrap;
    opacity: 0;
    transition: .2s;
}
.an-bar:hover .bar-value { opacity: 1; }
.an-bar-col .bar-label {
    margin-top: 10px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .4px;
}
.an-bar-col .bar-count {
    font-size: .62rem;
    color: var(--muted);
    font-weight: 500;
}

/* Donut */
.an-donut-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    padding: 6px 0;
}
.an-donut-svg {
    position: relative;
    flex-shrink: 0;
}
.an-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.an-donut-center .dc-label {
    font-size: .6rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}
.an-donut-center .dc-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cr);
    line-height: 1.05;
    margin-top: 2px;
}
.an-donut-center .dc-sub {
    font-size: .64rem;
    color: var(--muted);
    margin-top: 1px;
}
.an-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
}
.an-donut-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
}
.an-donut-legend-item .dot {
    width: 10px; height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}
.an-donut-legend-item .lg-name {
    color: var(--ink);
    font-weight: 600;
    flex: 1;
}
.an-donut-legend-item .lg-amt {
    color: var(--muted);
    font-weight: 600;
    font-size: .78rem;
}

/* Progress bars */
.an-progress-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
}
.an-progress-item:last-child { border-bottom: none; }
.an-progress-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.an-progress-top .lp-name {
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
}
.an-progress-top .lp-val {
    font-size: .78rem;
    color: var(--muted);
    font-weight: 600;
}
.an-progress-track {
    height: 8px;
    background: #f0ede8;
    border-radius: 50px;
    overflow: hidden;
}
.an-progress-fill {
    height: 100%;
    border-radius: 50px;
    transition: width .9s cubic-bezier(.22,1,.36,1);
    background: linear-gradient(90deg, #f47614, #970a16);
}
.an-progress-fill.green { background: linear-gradient(90deg, #42c9a5, #2a7a2a); }
.an-progress-fill.blue  { background: linear-gradient(90deg, #4a90e2, #1a4480); }
.an-progress-fill.gold  { background: linear-gradient(90deg, #fabe09, #b58b00); }

/* Top lists */
.an-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.an-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    transition: .15s;
    font-size: .85rem;
}
.an-list-row:hover { background: #fdfbf8; }
.an-list-row .rank {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #f0ede8;
    color: var(--muted);
    font-weight: 700;
    font-size: .68rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.an-list-row:nth-child(1) .rank { background: linear-gradient(135deg, #fabe09, #f47614); color: #fff; }
.an-list-row:nth-child(2) .rank { background: linear-gradient(135deg, #c5c5c5, #8a8580); color: #fff; }
.an-list-row:nth-child(3) .rank { background: linear-gradient(135deg, #d97a3a, #a04a1a); color: #fff; }
.an-list-row .lbl {
    flex: 1;
    min-width: 0;
    color: var(--ink);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.an-list-row .sub {
    font-size: .68rem;
    color: var(--muted);
    font-weight: 500;
    margin-top: 1px;
}
.an-list-row .val {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--cr);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Empty state inside cards */
.an-empty {
    text-align: center;
    padding: 26px 16px;
    color: var(--muted);
    font-size: .85rem;
}
.an-empty .em {
    font-size: 2rem;
    display: block;
    margin-bottom: 6px;
    opacity: .5;
}

/* Two-col KPIs inside cards */
.an-mini-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.an-mini-kpi {
    padding: 14px 16px;
    background: #faf8f5;
    border-radius: 12px;
    border: 1px solid var(--line);
}
.an-mini-kpi .lbl {
    font-size: .62rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}
.an-mini-kpi .v {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
    margin-top: 4px;
}
.an-mini-kpi .v.orange { color: var(--or); }
.an-mini-kpi .v.crimson { color: var(--cr); }
.an-mini-kpi .v.green { color: var(--green); }
.an-mini-kpi .sub {
    font-size: .68rem;
    color: var(--muted);
    margin-top: 3px;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .an-hero { padding: 20px 18px; }
    .an-chart-bars { height: 170px; }
    .an-chart-bars.twelve { grid-template-columns: repeat(6, 1fr); }
    .an-chart-bars.twelve .an-bar-col:nth-child(n+7) { display: none; }
    .an-mini-kpis { grid-template-columns: 1fr; }
}