/* ==========================================================================
   JUCOBA — Jupiter Community Bank  ·  v2 "Luxe"
   Brand: primary #E60000 (red) · secondary white · accent gold #F5CC29.
   Type: Geist. Rule motif: thin red lines. Generous whitespace, soft
   drop shadows, scroll-reveal animations.

   Mobile-first: base rules target the smallest supported width (360px).
   Breakpoints: 480 / 768 / 1024 / 1280. Anything gated behind
   `min-width: 1024px` reproduces the pre-rewrite desktop appearance
   exactly — that tier must never visually change.
   ========================================================================== */

:root {
    --red: #E60000;
    --red-deep: #B30000;
    --red-tint: #FDEBEB;
    --gold: #F5CC29;
    --gold-soft: #FDF6DC;
    --ink: #221A16;
    --muted: #6E635C;
    --line: #EAE4DE;
    --paper: #FFFFFF;
    --sand: #FAF7F2;
    --ok: #1B8A4C;
    --radius: 16px;
    --shadow: 0 14px 40px rgba(34, 26, 22, .07);
    --shadow-lift: 0 22px 50px rgba(34, 26, 22, .12);
    --font: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1160px, 90%); margin-inline: auto; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.18rem; }

.eyebrow {
    display: inline-block;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: .9rem;
}

.lead { color: var(--muted); font-size: 1.08rem; max-width: 58ch; }

/* --- Rule motif: thin red lines ---------------------------------------- */
.bands { height: 2px; background: var(--red); border: 0; }
.bands--thin { width: 64px; margin: 1.1rem 0 1.8rem; }
.bands--top { height: 2px; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .9rem 1.9rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font: inherit;
    font-size: .93rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--red);
    color: #fff;
    font-weight: 400;            /* thin white type on red */
    letter-spacing: .05em;
}
.btn-primary:hover { background: var(--red-deep); box-shadow: 0 12px 26px rgba(230, 0, 0, .3); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline--light { border-color: rgba(255,255,255,.45); background: transparent; color: #fff; }
.btn-outline--light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { filter: brightness(1.04); box-shadow: 0 12px 26px rgba(245, 204, 41, .35); }
.btn-ghost { background: transparent; color: var(--red); padding-inline: .6rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: .75rem 1.15rem; font-size: .85rem; min-height: 44px; }

/* Desktop reverts to the compact size — no fat-finger risk with a mouse */
@media (min-width: 768px) {
    .btn-sm { padding-block: .5rem; min-height: auto; }
}

/* --- Header ------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 0;
}
.nav-logo img { height: 42px; width: auto; }
.nav-links {
    /* Mobile base: collapsible dropdown */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 5%;
    display: none;
    list-style: none;
}
.nav-links.open { display: flex; }
.nav-links a {
    text-decoration: none;
    font-weight: 500;
    font-size: .94rem;
    color: var(--ink);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--red); border-bottom-color: var(--red); }
.lang-switch {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    font-size: .8rem;
}
.lang-switch a { padding: .3rem .75rem; text-decoration: none; color: var(--muted); border: 0 !important; }
.lang-switch a.active { background: var(--ink); color: #fff !important; }
.nav-toggle {
    display: flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; margin-inline-end: -.5rem;
    background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink);
}

@media (min-width: 768px) {
    .nav-toggle { display: none; }
    .nav-links {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 1.9rem;
        background: none;
        border-bottom: 0;
        padding: 0;
        display: flex;
    }
}

/* --- Hero: full-bleed photo --------------------------------------------- */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    color: #fff;
    /* Portrait/mobile base: a left-to-right scrim loses the subject off-canvas,
       so a vertical scrim + repositioned focal point reads better here. */
    background:
        linear-gradient(180deg, rgba(15, 10, 8, .35) 0%, rgba(15, 10, 8, .82) 78%),
        var(--ink) url('../images/hero.jpg') 70% center / cover no-repeat;
    padding: 7rem 0 4.5rem;
}
.hero-inner { max-width: 680px; }
.hero .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .03em;
    padding: .42rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(6px);
    margin-bottom: 1.6rem;
}
.hero .badge-pill i { color: var(--gold); }
.hero h1 { color: #fff; margin-bottom: 1.3rem; }
.hero h1 span { color: var(--gold); }
.hero .lead { color: rgba(255, 255, 255, .82); }
.hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }

/* Desktop: left-to-right scrim, dark enough for text on the left, image visible throughout */
@media (min-width: 768px) {
    .hero {
        background:
            linear-gradient(90deg, rgba(15, 10, 8, .78) 0%, rgba(15, 10, 8, .62) 55%, rgba(15, 10, 8, .22) 100%),
            var(--ink) url('../images/hero.jpg') center / cover no-repeat;
    }
}

.hero-stats {
    width: 100%;
    margin-top: 4.5rem;
}
.hero-stats .bands { width: 100%; opacity: .9; margin-bottom: 2rem; }
.hero-stats .counters {
    display: flex;
    gap: clamp(2rem, 6vw, 5rem);
    flex-wrap: wrap;
}
.counter b {
    display: block;
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: #fff;
}
.counter small { color: rgba(255, 255, 255, .72); font-size: .85rem; letter-spacing: .02em; }
.counter .plus { color: var(--gold); }

/* Hero entrance animation */
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero .badge-pill, .hero h1, .hero .lead, .hero .actions, .hero .hero-stats { animation: heroUp .8s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { animation-delay: .08s; }
.hero .lead { animation-delay: .16s; }
.hero .actions { animation-delay: .24s; }
.hero .hero-stats { animation-delay: .38s; }

/* --- Inner page hero (photo header) -------------------------------------- */
.page-hero {
    position: relative;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(20, 13, 10, .68), rgba(20, 13, 10, .55)),
        var(--ink) url('../images/hero.jpg') center / cover no-repeat;
    padding: 7.5rem 0 5.5rem;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255, 255, 255, .82); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .bands--thin { background: var(--red); }

/* --- Sections ------------------------------------------------------------ */
.section { padding: 4.5rem 0; }
.section--sand { background: var(--sand); }
.section-head { max-width: 640px; margin-bottom: 3.4rem; }

.grid-2, .grid-3, .grid-4 { display: grid; grid-template-columns: 1fr; gap: 1.8rem; }
@media (min-width: 480px) {
    .choice-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .section { padding: 6.5rem 0; }
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.4rem 2.1rem;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--red-tint);
    color: var(--red);
    border-radius: 14px;
    font-size: 1.35rem;
    margin-bottom: 1.3rem;
}

/* Steps */
.step-num {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1.3rem;
}

/* Circles pricing */
.circle-card { position: relative; }
.circle-card .price { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: .5rem 0; }
.circle-card .price small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.circle-card.gold { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-soft), #fff 58%); }
.badge {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .24rem .7rem;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
}

/* Certificates */
.cert-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .cert-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cert-grid { grid-template-columns: 1fr 1fr 1fr; } }
.cert {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.cert img { width: 100%; height: 360px; object-fit: cover; object-position: top; }
.cert figcaption { padding: 1.1rem 1.4rem; font-size: .88rem; color: var(--muted); border-top: 2px solid var(--red); }

/* --- Forms ---------------------------------------------------------------- */
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .4rem; }
.hint { font-size: .78rem; color: var(--muted); }
.field .hint { margin-top: .35rem; display: block; }
.input, select.input, textarea.input {
    width: 100%;
    padding: .8rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font: inherit;
    font-size: 16px; /* never smaller: prevents iOS Safari auto-zoom on focus */
    background: #fff;
    color: var(--ink);
}
.input:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
textarea.input { resize: vertical; min-height: 96px; }
.field-error { color: var(--red-deep); font-size: .8rem; margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }

.choice-grid { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.choice {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 44px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: .75rem 1rem;
    cursor: pointer;
    font-size: .92rem;
    background: #fff;
    transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--red); }
.choice input { accent-color: var(--red); }
.choice.selected { border-color: var(--red); background: var(--red-tint); }

/* Stepper */
.stepper { display: none; gap: .45rem; margin-bottom: 2.2rem; }
@media (min-width: 480px) { .stepper { display: flex; } }
.stepper .dot { flex: 1; height: 4px; border-radius: 999px; background: var(--line); transition: background .25s; }
.stepper .dot.done { background: var(--gold); }
.stepper .dot.now { background: var(--red); }
.step-title { display: flex; align-items: baseline; gap: .7rem; margin-bottom: 1.6rem; }
.step-title .n { color: var(--red); font-weight: 800; }

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1.3rem;
    box-shadow: var(--shadow);
}
@media (min-width: 768px) { .panel { padding: 2.6rem 2.4rem; } }
.panel-narrow { max-width: 760px; margin-inline: auto; }

/* Registration stepper nav: sticky bottom bar by default so Next/Back are
   always reachable without scrolling a long step. */
.form-nav {
    display: flex;
    justify-content: space-between;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    margin-top: 0;
    padding: .85rem 5%;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(34, 26, 22, .08);
}
.form-nav .btn { min-height: 44px; }
/* Compensates for the fixed bar so step content never sits underneath it */
form:has(.form-nav) { padding-bottom: 5rem; }

/* Desktop: nav sits inline with the panel instead of pinned to the viewport */
@media (min-width: 768px) {
    .form-nav {
        position: static;
        margin-top: 2rem;
        padding: 0;
        background: none;
        backdrop-filter: none;
        border-top: 0;
        box-shadow: none;
    }
    form:has(.form-nav) { padding-bottom: 0; }
}

/* Payment */
.amount-box {
    background: var(--sand);
    border: 1px solid var(--line);
    border-top: 2px solid var(--red);
    border-radius: 12px;
    padding: 1.3rem 1.5rem;
    margin-bottom: 1.5rem;
}
.amount-box .row { display: flex; justify-content: space-between; font-size: .92rem; color: var(--muted); padding: .22rem 0; }
.amount-box .row.total { color: var(--ink); font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--line); margin-top: .55rem; padding-top: .65rem; }
.ref-chip {
    display: inline-block;
    font-weight: 800;
    letter-spacing: .06em;
    background: var(--ink);
    color: var(--gold);
    border-radius: 12px;
    padding: .55rem 1.1rem;
    font-size: 1.1rem;
}
.pay-status { display: flex; align-items: center; gap: .7rem; padding: 1.05rem 1.2rem; border-radius: 12px; font-weight: 600; }
.pay-status.waiting { background: var(--gold-soft); }
.pay-status.ok { background: #E7F6ED; color: var(--ok); }
.pay-status.fail { background: var(--red-tint); color: var(--red-deep); }
.spinner {
    width: 18px; height: 18px;
    border: 3px solid rgba(0,0,0,.15);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Alerts */
.alert { padding: 1rem 1.3rem; border-radius: 12px; margin-bottom: 1.3rem; font-size: .92rem; }
.alert-error { background: var(--red-tint); color: var(--red-deep); }
.alert-success { background: #E7F6ED; color: var(--ok); }
.alert-warning { background: var(--gold-soft); color: #8a6d00; }

/* Dual date input */
.date-input-row { display: flex; gap: .5rem; align-items: stretch; }
.date-input-row .input { flex: 1; }
.date-input-btn { flex-shrink: 0; padding-inline: 1rem; }
.date-input-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    border: 0;
    padding: 0;
}

/* --- WhatsApp float ------------------------------------------------------- */
.wa-float {
    position: fixed;
    right: 1.4rem;
    /* Base clears the sticky mobile .form-nav bar on the registration page */
    bottom: 5.5rem;
    z-index: 60;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
    transition: transform .15s;
}
.wa-float:hover { transform: scale(1.07); }
/* Desktop: no sticky form-nav bar to clear */
@media (min-width: 768px) { .wa-float { bottom: 1.4rem; } }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #CFC6BF; margin-top: 6rem; border-top: 2px solid var(--red); }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.6rem;
    padding: 4rem 0 2.6rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; letter-spacing: .04em; }
.site-footer a { color: #CFC6BF; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; display: grid; gap: .6rem; }
.footer-logo img { height: 44px; width: auto; background: #fff; border-radius: 10px; padding: 5px 9px; margin-bottom: 1.1rem; }
.socials { display: flex; gap: .8rem; margin-top: 1.2rem; }
.socials a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: border-color .15s, color .15s;
}
.socials a:hover { border-color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 1.3rem 0;
    font-size: .82rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Legal pages ----------------------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { margin: 2.2rem 0 .9rem; font-size: 1.3rem; }
.prose p, .prose li { color: #443B34; margin-bottom: .85rem; }
.prose ul { padding-left: 1.2rem; }

/* --- Scroll reveal --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Alpine */
[x-cloak] { display: none !important; }

/* Reduced motion: kill effects, never hide content */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Admin
   ========================================================================== */
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; background: var(--sand); }
.admin-side { background: var(--ink); color: #CFC6BF; padding: 1.5rem 1rem; display: flex; flex-direction: row; align-items: center; overflow-x: auto; }
.admin-side .brand { display: flex; align-items: center; gap: .6rem; margin: 0 1rem 0 0; color: #fff; font-weight: 700; }
.admin-side .brand img { height: 30px; background: #fff; border-radius: 6px; padding: 2px 5px; }
.admin-side nav { display: flex; gap: .35rem; }
.admin-side nav a {
    display: flex; align-items: center; gap: .7rem;
    padding: .65rem .85rem;
    border-radius: 10px;
    text-decoration: none;
    color: #CFC6BF;
    font-size: .92rem;
}
.admin-side nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-side nav a.active { background: var(--red); color: #fff; }
.admin-side form { margin: 0 0 0 auto; }
.admin-main { padding: 1.4rem; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-bottom: 1.8rem; }
@media (min-width: 1024px) {
    .admin-shell { grid-template-columns: 232px 1fr; }
    .admin-side { flex-direction: column; align-items: stretch; overflow-x: visible; padding: 1.5rem 1rem; }
    .admin-side .brand { margin: 0 0 2rem; }
    .admin-side nav { display: grid; gap: .35rem; }
    .admin-side form { margin-top: auto; }
    .admin-main { padding: 2.4rem; }
    .stat-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow);
}
.stat small { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.stat b { display: block; font-size: 1.75rem; font-weight: 800; margin-top: .25rem; }
.stat.red b { color: var(--red); }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
table.admin { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
table.admin th, table.admin td { text-align: left; padding: .85rem 1.05rem; border-bottom: 1px solid var(--line); }
table.admin th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--sand); }
table.admin tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: .16rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.pill.paid, .pill.completed { background: #E7F6ED; color: var(--ok); }
.pill.pending_payment, .pill.pending { background: var(--gold-soft); color: #8a6d00; }
.pill.failed, .pill.cancelled, .pill.voided, .pill.expired { background: var(--red-tint); color: var(--red-deep); }
.pagination { display: flex; gap: .35rem; margin-top: 1.1rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .38rem .75rem; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; font-size: .85rem; background: #fff; }
.pagination .active span { background: var(--red); color: #fff; border-color: var(--red); }

.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--sand); padding: 1rem; }
.login-card { width: min(400px, 100%); }
.dl { display: grid; grid-template-columns: 1fr; gap: .45rem 1.1rem; font-size: .92rem; }
.dl dt { margin-top: .5rem; color: var(--muted); }
.dl dd { font-weight: 500; }
@media (min-width: 768px) {
    .dl { grid-template-columns: 190px 1fr; }
    .dl dt { margin-top: 0; }
}

/* Admin: fixed-height chart wrapper so Chart.js maintainAspectRatio:false
   has a stable box instead of collapsing to 0 height. */
.chart-wrap { position: relative; height: 260px; }
@media (min-width: 768px) { .chart-wrap { height: 320px; } }
.chart-wrap canvas { width: 100% !important; height: 100% !important; }
