/* =============================================================================
   web warrior — design tokens (single source of truth for the ui)
   identity: "armor & brass" — deep armor blue, steel-white ground, one brass
   accent. signature device: the blade cut (one clipped corner + brass edge).
   mobile-first for low-end android; admin + user share these tokens.
============================================================================= */

:root {
    /* color */
    --ink:        #131f35;   /* deep armor blue — primary text */
    --ink-2:      #55617c;   /* muted text */
    --bg:         #eef1f6;   /* steel white ground */
    --surface:    #ffffff;
    --line:       #dbe1ec;
    --brand:      #16337f;   /* warrior blue */
    --brand-2:    #0e2257;   /* pressed / deep */
    --brass:      #c9a227;   /* the one accent — earned, not everywhere */
    --brass-soft: #f6efd8;
    --good:       #148a5b;
    --bad:        #c93b3b;
    --warn:       #b57d10;

    /* type — system stack keeps first paint instant on low-end devices */
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
    --fs-xs: 0.75rem;   /* 12 */
    --fs-sm: 0.8125rem; /* 13 */
    --fs-md: 0.9375rem; /* 15 */
    --fs-lg: 1.125rem;  /* 18 */
    --fs-xl: 1.5rem;    /* 24 */
    --fs-2xl: 1.875rem; /* 30 */

    /* space (4px grid) */
    --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
    --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;

    /* shape */
    --radius: 14px;
    --radius-sm: 10px;
    --cut: 12px;                       /* the blade cut size */
    --shadow: 0 1px 2px rgba(19, 31, 53, 0.06), 0 6px 20px rgba(19, 31, 53, 0.07);

    /* motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 150ms;
    --t-med: 260ms;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =============================================================================
   web warrior — base components (module 1). pages extend these; no page ever
   ships a 400-line inline <style> block again (legacy bug #5).
============================================================================= */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--fs-md);
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
}

/* app frame — phone-first, calm gutters on desktop */
.frame {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: var(--sp-4);
}

/* the blade cut — signature device. use sparingly: hero card + primary cta. */
.cut {
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--sp-5);
}

.card--hero {
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    position: relative;
}

.card--hero::after {              /* brass edge along the cut */
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: calc(var(--cut) * 2.4);
    height: 3px;
    background: var(--brass);
}

.eyebrow {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brass);
}

.title {
    margin: var(--sp-1) 0 0;
    font-size: var(--fs-2xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.subtle { color: var(--ink-2); font-size: var(--fs-sm); }

.card--hero .subtle { color: rgba(255, 255, 255, 0.72); }

.stack   { display: flex; flex-direction: column; gap: var(--sp-4); }
.row     { display: flex; align-items: center; gap: var(--sp-3); }
.row--between { justify-content: space-between; }

.kv { display: flex; justify-content: space-between; align-items: baseline; padding: var(--sp-2) 0; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv-label { color: var(--ink-2); font-size: var(--fs-sm); }
.kv-value { font-weight: 700; font-variant-numeric: tabular-nums; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    width: 100%;
    min-height: 48px;                 /* thumb-safe on small phones */
    padding: var(--sp-3) var(--sp-5);
    border: 0;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.btn:active { transform: translateY(1px) scale(0.995); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-2); }

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: 700;
    background: var(--brass-soft);
    color: #7d6410;
}

.badge--good { background: #e2f4ec; color: var(--good); }
.badge--bad  { background: #fbe7e7; color: var(--bad); }

.icon { width: 20px; height: 20px; flex: none; }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}

/* rtl (urdu) — layout flips at the token level (§4A.5) */
[dir="rtl"] .card--hero::after { right: auto; left: 0; }
[dir="rtl"] .cut {
    clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
}

/* error pages */
.center-page {
    flex: 1;
    display: grid;
    place-items: center;
    text-align: center;
    padding: var(--sp-8) var(--sp-4);
}

/* --- forms + auth (module 2) ------------------------------------------------ */

.stack-sm { display: flex; flex-direction: column; gap: var(--sp-4); }

.auth { justify-content: center; flex: 1; }

.auth-head { text-align: center; padding: var(--sp-6) 0 var(--sp-2); }

.mark {
    width: 44px; height: 44px;
    color: var(--brand);
    margin-bottom: var(--sp-3);
}

.field { display: flex; flex-direction: column; gap: 6px; }

.label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--ink-2);
}

.input {
    width: 100%;
    min-height: 48px;
    padding: var(--sp-3) var(--sp-4);
    font: inherit;
    color: var(--ink);
    background: #fbfcfe;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(22, 51, 127, 0.12);
}

.input--bad { border-color: var(--bad); background: #fffafa; }

.input-wrap { position: relative; display: flex; align-items: stretch; }

.input-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 var(--sp-3);
    font-weight: 700;
    color: var(--ink-2);
    background: #f1f4f9;
    border: 1px solid var(--line);
    border-inline-end: 0;
    border-start-start-radius: var(--radius-sm);
    border-end-start-radius: var(--radius-sm);
}

.input--prefixed {
    border-start-start-radius: 0;
    border-end-start-radius: 0;
}

.field-error { margin: 0; font-size: var(--fs-sm); color: var(--bad); }

.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-4);
    margin-bottom: var(--sp-4);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.alert--good { background: #e2f4ec; color: #0f6b47; }
.alert--bad  { background: #fbe7e7; color: #962c2c; }

.invite {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-wrap: wrap;
    padding: var(--sp-3);
    background: var(--brass-soft);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
}

.switch { text-align: center; font-size: var(--fs-sm); color: var(--ink-2); }
.switch a { color: var(--brand); font-weight: 700; text-decoration: none; }
.switch a:hover { text-decoration: underline; }

.code-row {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin: var(--sp-3) 0;
}

.code {
    flex: 1;
    padding: var(--sp-3);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: var(--fs-lg);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    background: #f1f4f9;
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
}

.btn--inline { width: auto; min-height: 44px; padding: var(--sp-2) var(--sp-4); }

/* --- app shell (module 3) --------------------------------------------------- */

.appbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(238, 241, 246, 0.92);
    backdrop-filter: saturate(1.6) blur(10px);
    border-bottom: 1px solid var(--line);
}

.appbar-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    padding-top: max(var(--sp-3), env(safe-area-inset-top));
}

.logo { width: 28px; height: 28px; color: var(--brand); border-radius: 6px; }

.appbar-title { flex: 1; font-weight: 800; letter-spacing: -0.01em; }

.appbar-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    color: var(--ink);
    border-radius: 999px;
    text-decoration: none;
}
.appbar-action:hover { background: rgba(19, 31, 53, 0.06); }

.frame--app { min-height: auto; padding-bottom: var(--sp-6); }

.has-tabbar { padding-bottom: 76px; }

/* bottom navigation */
.tabbar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 480px;
    margin: 0 auto;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 0 7px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink-2);
    text-decoration: none;
}
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tab-icon { width: 22px; height: 22px; }

.tab--on { color: var(--brand); }
.tab--on .tab-icon { stroke-width: 2; }

/* notice */
.notice {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    background: var(--brass-soft);
    border-radius: var(--radius-sm);
    color: #7d6410;
}
.notice-text { margin: 0; font-size: var(--fs-sm); font-weight: 600; }

/* wallet */
.wallet-amount {
    margin: var(--sp-1) 0 var(--sp-4);
    font-size: 2.125rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.wallet-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
    padding-top: var(--sp-3);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.wallet-split strong { display: block; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.wallet-label { font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.72); }

/* quick actions */
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }

.action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: var(--sp-3) 2px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    transition: transform var(--t-fast) var(--ease);
}
.action:active { transform: translateY(1px); }

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    color: var(--brand);
    background: #eaeff9;
    border-radius: 12px;
}
.action-icon svg { width: 21px; height: 21px; }
.action-label { font-size: 11.5px; font-weight: 600; text-align: center; }

/* banner carousel — css scroll-snap, no library */
.carousel { position: relative; }

.carousel-track {
    display: flex;
    gap: var(--sp-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }

.slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    border-radius: var(--radius);
    overflow: hidden;
    background: #e6eaf2;
    aspect-ratio: 16 / 7;
}
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dots { display: flex; justify-content: center; gap: 6px; margin-top: var(--sp-2); }
.dot { width: 6px; height: 6px; border-radius: 999px; background: var(--line); transition: width var(--t-fast) var(--ease); }
.dot--on { width: 18px; background: var(--brand); }

/* team levels */
.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); margin-top: var(--sp-3); }
.level {
    text-align: center;
    padding: var(--sp-3) var(--sp-1);
    background: #f4f7fc;
    border-radius: var(--radius-sm);
}
.level-count { display: block; font-size: var(--fs-xl); font-weight: 800; font-variant-numeric: tabular-nums; }
.level-label { font-size: var(--fs-xs); color: var(--ink-2); }

/* link rows */
.links { list-style: none; margin: var(--sp-2) 0 0; padding: 0; }
.links li + li { border-top: 1px solid var(--line); }

.link-row {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) 0;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}
.link-row span { flex: 1; }
.link-row .icon { color: var(--brand); }
.chev { width: 18px; height: 18px; color: var(--ink-2); flex: none; }
[dir="rtl"] .chev { transform: scaleX(-1); }

.link { color: var(--brand); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }

/* empty state */
.empty { text-align: center; display: grid; gap: var(--sp-3); justify-items: center; }
.empty-icon { width: 44px; height: 44px; color: var(--ink-2); opacity: 0.7; }

/* --- plans, recharge, records (module 4) ------------------------------------ */

.title--sm { font-size: var(--fs-xl); }

.balance-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-3) var(--sp-4);
    background: #eaeff9;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    color: var(--ink-2);
}
.balance-strip strong { font-size: var(--fs-lg); color: var(--ink); font-variant-numeric: tabular-nums; }

/* plan card */
.plan { display: block; padding: 0; overflow: hidden; color: inherit; text-decoration: none; }
.plan-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; }
.plan-body { padding: var(--sp-5); }
.plan-name { margin: 0; font-size: var(--fs-lg); font-weight: 800; letter-spacing: -0.01em; }

.plan-price {
    margin: var(--sp-1) 0 var(--sp-4);
    font-size: var(--fs-2xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
}

.plan-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-2);
    padding: var(--sp-3) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.plan-facts strong { display: block; font-variant-numeric: tabular-nums; }
.fact-label { font-size: var(--fs-xs); color: var(--ink-2); }

.plan-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-3); }
.tag {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: 600;
    background: #eef2f9;
    color: var(--ink-2);
}
.tag--lock { background: var(--brass-soft); color: #7d6410; }

/* recharge */
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }

.preset {
    min-height: 46px;
    padding: var(--sp-2);
    font: inherit;
    font-weight: 700;
    color: var(--ink);
    background: #f4f7fc;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}
.preset--on { background: var(--brand); border-color: var(--brand); color: #fff; }

.methods { display: flex; flex-direction: column; gap: var(--sp-2); }

.method {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.method:has(input:checked) { border-color: var(--brand); background: #f5f8ff; }
.method input { width: 18px; height: 18px; accent-color: var(--brand); }
.method-body { display: flex; flex-direction: column; }

.instructions { margin: var(--sp-2) 0; white-space: pre-line; font-size: var(--fs-sm); }

.wallet-amount--ink { color: var(--ink); }

/* records */
.segmented {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #e7ebf3;
    border-radius: 999px;
}
.segment {
    flex: 1;
    padding: 8px 4px;
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: 700;
    text-align: center;
    color: var(--ink-2);
    text-decoration: none;
}
.segment--on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }

.ledger { list-style: none; margin: 0; padding: 0; }
.ledger-row {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) 0;
}
.ledger-row + .ledger-row { border-top: 1px solid var(--line); }

.serial {
    width: 26px;
    flex: none;
    font-size: var(--fs-xs);
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}
.ledger-main { flex: 1; display: flex; flex-direction: column; font-size: var(--fs-sm); }
.ledger-amount { font-weight: 800; font-variant-numeric: tabular-nums; }
.is-credit { color: var(--good); }
.is-debit  { color: var(--ink); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }

/* --- income (module 5) ------------------------------------------------------ */

.wallet-split--3 { grid-template-columns: repeat(3, 1fr); }
.wallet-split--3 strong { font-size: var(--fs-base); }

.link-card {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    color: inherit;
    text-decoration: none;
}

.progress {
    display: block;
    height: 6px;
    margin-top: var(--sp-3);
    background: #e7ebf3;
    border-radius: 999px;
    overflow: hidden;
}
.progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--brass));
    border-radius: 999px;
    transition: width var(--t-slow) var(--ease);
}

/* --- withdrawal (module 7) -------------------------------------------------- */

.inline-form { display: flex; gap: 6px; flex: none; }

.hint { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--ink-2); }

/* --- rewards (module 8) ------------------------------------------------------ */

.mission { display: grid; gap: var(--sp-2); }
.mission .btn { margin-top: var(--sp-2); }
.mission--done { opacity: 0.62; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.code-row .input { flex: 1; text-transform: uppercase; letter-spacing: 0.06em; }

/* ==========================================================================
   SPIN & WIN — member side. Appended to app.css.
   Class names go through cls() at render time, so these selectors are what the
   anti-inspect map rewrites against.
   ========================================================================== */

.sw { display: grid; gap: 14px; }

.sw-shut { padding: 46px 24px; text-align: center; }
.sw-shut-ic {
    display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 14px;
    border-radius: 24px; color: #fff; background: var(--brand); box-shadow: 0 10px 24px rgba(19,31,53,.28);
}
.sw-shut h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.sw-shut p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }

.sw-stage { padding: 22px 18px 24px; text-align: center; }
.sw-count { margin-bottom: 6px; }
.sw-count b { font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1; }
.sw-count span { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }

.sw-msg { margin: 14px 0 0; font-size: 13.5px; font-weight: 800; color: var(--ink); min-height: 20px; }

.sw-buy { margin-top: 14px; }
.sw-buy button {
    width: 100%; padding: 14px; border: 0; border-radius: 16px; cursor: pointer;
    font: inherit; font-size: 13.5px; font-weight: 800; color: var(--brand);
    background: rgba(201,162,39,.16);
}

.sw-odds, .sw-how, .sw-hist { padding: 18px; }
.sw-odd, .sw-howrow, .sw-histrow {
    display: flex; align-items: center; gap: 10px; padding: 10px 0;
    border-bottom: 1px solid rgba(19,31,53,.07);
}
.sw-odd:last-child, .sw-howrow:last-child, .sw-histrow:last-child { border-bottom: 0; }
.sw-swatch { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 5px; }
.sw-oddname, .sw-histprize { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-oddpc { flex: 0 0 auto; font-size: 12.5px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.sw-howrow span { flex: 1 1 auto; font-size: 13px; font-weight: 600; color: var(--muted); }
.sw-howrow b { font-size: 14px; font-weight: 800; color: var(--ink); }
.sw-histwhen { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--muted); }
.sw-histrow b { flex: 0 0 auto; font-size: 13px; font-weight: 800; color: var(--ok); }

/* ==========================================================================
   DAILY CHECK-IN — member side. Appended to app.css.
   ========================================================================== */

.ci { display: grid; gap: 14px; }

.ci-shut { padding: 40px 24px; text-align: center; }
.ci-shut-ic { display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 14px; border-radius: 22px; color: #fff; background: var(--brand); }
.ci-shut h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.5; }

.ci-hero { padding: 24px 18px; text-align: center; }
.ci-streak b { font-size: 42px; font-weight: 800; color: var(--ink); line-height: 1; }
.ci-streak span { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.ci-msg { margin: 14px 0 16px; font-size: 14px; font-weight: 700; color: var(--ink); }
.ci-msg em { display: block; margin-top: 3px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ok); }
.ci-go {
    width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 16px; border: 0; border-radius: 16px; cursor: pointer; font: inherit;
    font-size: 15px; font-weight: 800; color: #fff; background: var(--brand);
}
.ci-go.is-done { opacity: .5; cursor: default; }

.ci-ladder, .ci-cal, .ci-hist { padding: 18px; }
.ci-rungs { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; margin-top: 10px; }
.ci-rung { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 6px; border-radius: 14px; background: rgba(19,31,53,.05); }
.ci-rung.is-past { background: rgba(33,153,106,.16); }
.ci-rung.is-now { background: var(--brand); color: #fff; }
.ci-rungno { font-size: 10px; font-weight: 800; opacity: .7; }
.ci-rung b { font-size: 12.5px; font-weight: 800; }

.ci-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
.ci-dow { text-align: center; font-size: 9.5px; font-weight: 800; color: var(--muted); }
.ci-cell { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ci-cell.is-got { color: #fff; background: var(--ok); }
.ci-cell.is-mark { box-shadow: inset 0 0 0 2px var(--accent, #c9a227); }
.ci-cell.is-today { font-weight: 800; color: var(--ink); }

.ci-histrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(19,31,53,.07); font-size: 12.5px; }
.ci-histrow:last-child { border-bottom: 0; }
.ci-histrow span:first-child { flex: 1 1 auto; font-weight: 700; color: var(--ink); }
.ci-histday { font-size: 11px; font-weight: 700; color: var(--muted); }
.ci-histrow b { font-weight: 800; color: var(--ok); }

/* ==========================================================================
   POST REWARD — member side. Appended to app.css.
   ========================================================================== */

.pr { display: grid; gap: 14px; }
.pr-shut { padding: 40px 24px; text-align: center; }
.pr-shut-ic { display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 14px; border-radius: 22px; color: #fff; background: var(--brand); }
.pr-shut h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.5; }

.pr-hero { padding: 22px 18px; text-align: center; }
.pr-amount { display: block; margin: 6px 0 8px; font-size: 32px; font-weight: 800; color: var(--ink); }
.pr-hero p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.pr-form { padding: 18px; display: grid; gap: 12px; }
.pr-drop { display: block; position: relative; padding: 22px 14px; text-align: center; border-radius: 16px; border: 2px dashed rgba(19,31,53,.18); cursor: pointer; }
.pr-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pr-drop span { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--muted); }

.pr-hist { padding: 18px; }
.pr-histrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(19,31,53,.07); font-size: 12.5px; }
.pr-histrow span:first-child { flex: 1 1 auto; font-weight: 700; color: var(--ink); }
.pr-tag { padding: 3px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; }
.pr-tag.is-pending { color: #a06f06; background: rgba(240,192,90,.26); }
.pr-tag.is-approved { color: #21996a; background: rgba(95,211,160,.24); }
.pr-tag.is-rejected { color: #c2436a; background: rgba(242,127,164,.24); }
.pr-histrow b { font-weight: 800; color: var(--ok); }
.pr-why { margin: 0 0 8px; font-size: 11px; color: var(--muted); }
