/* ============================================================
   Gyanirman Payout Console — premium theme
   ============================================================ */

:root {
    /* brand — sampled from the feather mark */
    --brand-950: #072a22;
    --brand-900: #0b3b31;
    --brand-800: #0e4b3d;
    --brand-700: #0f5f4b;
    --brand-600: #12785e;
    --brand-500: #159b76;
    --brand-400: #2fb98f;
    --brand-300: #7ed7c1;
    --brand-200: #bfe0d5;
    --brand-100: #d6efe7;
    --brand-50: #eef8f4;

    --ink: #16211d;
    --ink-soft: #384741;
    --muted: #6c7b74;
    --faint: #9aa8a1;
    --line: #e5eae7;
    --line-soft: #eef2f0;
    --paper: #ffffff;
    --canvas: #f3f6f4;

    --amber: #b7791f;
    --amber-bg: #fbf1dd;
    --green: #0f7a53;
    --green-bg: #dcf1e8;
    --red: #c0392b;
    --red-bg: #fbe4e1;
    --blue: #2563eb;
    --blue-bg: #e5ecfd;

    --r-xs: 7px;
    --r-sm: 10px;
    --r: 14px;
    --r-lg: 18px;
    --r-xl: 26px;

    --sh-xs: 0 1px 2px rgba(12, 32, 26, .05);
    --sh-sm: 0 1px 2px rgba(12, 32, 26, .04), 0 3px 10px -4px rgba(12, 32, 26, .10);
    --sh: 0 2px 6px -2px rgba(12, 32, 26, .08), 0 14px 34px -16px rgba(12, 32, 26, .20);
    --sh-lg: 0 30px 70px -24px rgba(9, 40, 32, .32);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand-600);
    text-decoration: none;
}

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

h1,
h2,
h3 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

code {
    font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
    font-size: .86em;
    background: var(--brand-50);
    color: var(--brand-800);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid var(--brand-100);
}

svg {
    flex: none;
}

.eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-600);
}

.eyebrow-light {
    color: var(--brand-300);
}

/* ---------------- top bar ---------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 62px;
    padding: 0 clamp(16px, 4vw, 34px);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wordmark {
    height: 22px;
    width: auto;
    display: block;
}

.topbar-sep {
    width: 1px;
    height: 22px;
    background: var(--line);
}

.topbar-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--muted);
    text-transform: uppercase;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.userchip {
    display: flex;
    align-items: center;
    gap: 9px;
}

.userchip-name {
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 500;
}

.avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand-800);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
}

/* ---------------- layout ---------------- */
.wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 38px) clamp(16px, 4vw, 34px) 60px;
}

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

.page-head h1 {
    font-family: var(--font-serif);
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 4px;
}

.page-date {
    margin: 0;
    font-size: 13px;
    color: var(--faint);
}

/* ---------------- hero / amount summary ---------------- */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xl);
    padding: clamp(22px, 3.4vw, 34px);
    color: #eaf6f1;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(47, 185, 143, .35), transparent 55%),
        linear-gradient(150deg, var(--brand-900), var(--brand-700) 60%, var(--brand-600));
    box-shadow: var(--sh);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: clamp(18px, 3vw, 40px);
    align-items: center;
}

.hero-feather {
    position: absolute;
    right: -60px;
    top: -40px;
    width: 320px;
    height: 320px;
    background: url('favicon.png') center / contain no-repeat;
    opacity: .1;
    filter: grayscale(1) brightness(2.4);
    transform: rotate(8deg);
    pointer-events: none;
}

.hero-lead {
    position: relative;
}

.hero-amount {
    font-family: var(--font-serif);
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 8px 0 6px;
    color: #fff;
}

.hero-sub {
    margin: 0;
    font-size: 13px;
    color: var(--brand-300);
}

.hero-breakdown {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-stat {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r);
    padding: 13px 14px;
    display: grid;
    gap: 3px;
}

.hero-stat .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-bottom: 3px;
}

.hero-stat-label {
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--brand-300);
}

.hero-stat-val {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.hero-stat-meta {
    font-size: 11.5px;
    color: rgba(234, 246, 241, .7);
}

.dot-sent {
    background: var(--brand-300);
}

.dot-pending {
    background: #f4c56b;
}

.dot-failed {
    background: #f0897d;
}

.hero-bar {
    grid-column: 1 / -1;
    position: relative;
    display: flex;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, .12);
}

.hero-bar .seg {
    height: 100%;
    transition: width .5s cubic-bezier(.2, .7, .3, 1);
}

.seg-sent {
    background: linear-gradient(90deg, var(--brand-400), var(--brand-300));
}

.seg-pending {
    background: #f4c56b;
}

.seg-failed {
    background: #f0897d;
}

/* ---------------- metric cards ---------------- */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 0 22px;
}

.metric {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 16px 18px;
    box-shadow: var(--sh-xs);
    transition: transform .16s ease, box-shadow .16s ease;
}

.metric:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-sm);
}

.metric-head {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
}

.metric-ico {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.metric-ico svg {
    width: 17px;
    height: 17px;
}

.ico-slate {
    background: #eef1f0;
    color: #55635d;
}

.ico-amber {
    background: var(--amber-bg);
    color: var(--amber);
}

.ico-green {
    background: var(--green-bg);
    color: var(--green);
}

.ico-red {
    background: var(--red-bg);
    color: var(--red);
}

.metric-value {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 10px 0 2px;
}

.metric-foot {
    font-size: 12px;
    color: var(--faint);
}

/* ---------------- cards ---------------- */
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(16px, 2.4vw, 24px);
    box-shadow: var(--sh-xs);
    margin-bottom: 18px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.card-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
}

.step {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--brand-900);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-sans);
}

.count-badge {
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    color: var(--brand-700);
    font-size: 12px;
    font-weight: 700;
    padding: 1px 9px;
    border-radius: 999px;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.divider-v {
    width: 1px;
    height: 22px;
    background: var(--line);
    margin: 0 2px;
}

.link-quiet {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
}

.link-quiet:hover {
    color: var(--brand-700);
}

.link-quiet svg {
    width: 15px;
    height: 15px;
}

/* ---------------- buttons ---------------- */
.btn {
    --btn-bg: var(--paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--btn-bg);
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
    transition: transform .12s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 12.5px;
}

.btn-lg {
    padding: 13px 20px;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
    border-color: var(--brand-600);
    color: #fff;
    box-shadow: 0 1px 2px rgba(9, 40, 32, .25), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.btn-primary:hover {
    background: linear-gradient(180deg, var(--brand-400), var(--brand-500));
    box-shadow: 0 6px 18px -6px rgba(18, 120, 94, .55);
}

.btn-ghost {
    background: var(--paper);
    color: var(--ink-soft);
}

.btn-ghost:hover {
    background: var(--brand-50);
    border-color: var(--brand-100);
    color: var(--brand-800);
}

.btn-danger {
    background: var(--paper);
    color: var(--red);
    border-color: #f0cfcb;
}

.btn-danger:hover {
    background: var(--red-bg);
    border-color: #e6b3ad;
}

/* ---------------- switch ---------------- */
.switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}

.switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.switch span {
    position: relative;
    padding-left: 42px;
}

.switch span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 19px;
    border-radius: 999px;
    background: #d8ded9;
    transition: background .18s;
}

.switch span::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--sh-xs);
    transition: left .18s;
}

.switch input:checked+span::before {
    background: var(--brand-500);
}

.switch input:checked+span::after {
    left: 17px;
}

.switch input:focus-visible+span::before {
    outline: 2px solid var(--brand-300);
    outline-offset: 2px;
}

/* ---------------- form controls ---------------- */
input,
select {
    font: inherit;
    font-size: 13.5px;
    color: var(--ink);
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--paper);
    transition: border-color .15s, box-shadow .15s;
}

input::placeholder {
    color: var(--faint);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px var(--brand-50);
}

.filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.input-icon {
    position: relative;
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
}

.input-icon svg {
    position: absolute;
    left: 11px;
    width: 16px;
    height: 16px;
    color: var(--faint);
    pointer-events: none;
}

.input-icon input {
    width: 100%;
    padding-left: 34px;
}

/* ---------------- dropzone ---------------- */
.upload-form {
    display: flex;
    gap: 14px;
    align-items: stretch;
    flex-wrap: wrap;
}

.dropzone {
    flex: 1;
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px dashed var(--brand-200);
    border-radius: var(--r);
    background: var(--brand-50);
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.dropzone:hover,
.dropzone.is-drag {
    background: var(--brand-100);
    border-color: var(--brand-400);
}

.dz-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.dz-ico {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #fff;
    color: var(--brand-600);
    border: 1px solid var(--brand-100);
}

.dz-text {
    font-size: 13px;
    color: var(--ink-soft);
}

.dz-text strong {
    color: var(--brand-800);
    font-weight: 600;
}

.dz-file {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-700);
}

.hint {
    font-size: 12.5px;
    color: var(--muted);
    margin: 14px 0 0;
    line-height: 1.6;
}

/* ---------------- table ---------------- */
.table-scroll {
    overflow-x: auto;
    margin: 0 -4px;
    padding: 0 4px;
}

.grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.grid thead th {
    text-align: left;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--faint);
    padding: 0 14px 10px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.grid tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
}

.grid tbody tr {
    transition: background .12s;
}

.grid tbody tr:hover {
    background: var(--brand-50);
}

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

.grid .num {
    text-align: right;
    white-space: nowrap;
}

.grid .ta-right {
    text-align: right;
}

.grid .ta-mut {
    color: var(--faint);
}

.grid .money {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.grid code {
    background: #f4f6f5;
    border-color: var(--line);
    color: var(--ink-soft);
}

.row-sent td:first-child {
    box-shadow: inset 3px 0 0 var(--brand-400);
}

.row-failed td:first-child {
    box-shadow: inset 3px 0 0 #f0897d;
}

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

.stack .ta-mut {
    font-size: 11.5px;
}

.bene {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bene-av {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--brand-100);
    color: var(--brand-800);
    font-size: 10.5px;
    font-weight: 700;
}

.bene-txt {
    display: grid;
    gap: 1px;
}

.bene-name {
    font-weight: 600;
    color: var(--ink);
}

.bene-note {
    font-size: 11.5px;
    color: var(--faint);
}

.empty {
    text-align: center;
    color: var(--muted);
    padding: 44px 16px !important;
}

.empty svg {
    width: 30px;
    height: 30px;
    color: var(--faint);
    display: block;
    margin: 0 auto 10px;
}

.empty span {
    display: block;
    font-size: 13px;
}

/* ---------------- pills ---------------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: capitalize;
    border: 1px solid transparent;
}

.pill i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .8;
}

.pill-pending {
    background: var(--amber-bg);
    color: var(--amber);
}

.pill-processing {
    background: var(--blue-bg);
    color: var(--blue);
}

.pill-sent {
    background: var(--green-bg);
    color: var(--green);
}

.pill-failed {
    background: var(--red-bg);
    color: var(--red);
}

.pill-skipped {
    background: #edefee;
    color: #5c6a63;
}

/* ---------------- progress ---------------- */
.progress {
    position: relative;
    height: 30px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: var(--r-sm);
    overflow: hidden;
    margin-bottom: 16px;
}

.progress .bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
    transition: width .3s ease;
}

.progress .txt {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-900);
}

/* ---------------- pager ---------------- */
.pager {
    display: flex;
    gap: 6px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pager a {
    min-width: 34px;
    text-align: center;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 600;
}

.pager a:hover {
    background: var(--brand-50);
}

.pager a.active {
    background: var(--brand-900);
    border-color: var(--brand-900);
    color: #fff;
}

/* ---------------- table foot ---------------- */
.table-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}

.table-foot .hint {
    margin: 0;
}

/* ---------------- alerts ---------------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 13px 16px;
    border-radius: var(--r);
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.alert svg {
    width: 17px;
    height: 17px;
    margin-top: 1px;
}

.alert-success {
    background: var(--green-bg);
    color: #0c5f42;
    border-color: #bfe3d3;
}

.alert-warn {
    background: var(--amber-bg);
    color: #8a5a12;
    border-color: #ecd7ab;
}

.alert-error {
    background: var(--red-bg);
    color: #97281c;
    border-color: #ecc3bd;
}

.alert a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.err-list {
    margin: 8px 0 0;
    padding-left: 18px;
}

.err-list li {
    margin: 2px 0;
}

/* ---------------- view nav (Current / Archive) ---------------- */
.viewnav {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--sh-xs);
}

.viewnav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.viewnav-item svg {
    width: 16px;
    height: 16px;
}

.viewnav-item:hover {
    color: var(--brand-800);
    background: var(--brand-50);
}

.viewnav-item.is-active {
    background: var(--brand-900);
    color: #fff;
}

.viewnav-item.is-active:hover {
    background: var(--brand-900);
    color: #fff;
}

.viewnav-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--brand-100);
    color: var(--brand-800);
    font-size: 11px;
    font-weight: 700;
}

.viewnav-item.is-active .viewnav-count {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

/* ---------------- summary strip (archive) ---------------- */
.sumstrip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.sum {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 14px 18px;
    box-shadow: var(--sh-xs);
}

.sum-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 4px;
}

.sum-value {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

/* ---------------- archive cycle separator row ---------------- */
.grid tbody tr.cycle-row:hover {
    background: transparent;
}

.cycle-row td {
    padding: 16px 14px 6px !important;
    border-bottom: none !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-700);
}

.cycle-row svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 5px;
}

/* ============================================================
   Login
   ============================================================ */
body.auth {
    background: var(--brand-950);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

.auth-brand {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 5vw, 60px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #dcefe8;
    background:
        radial-gradient(130% 120% at 0% 0%, rgba(47, 185, 143, .28), transparent 55%),
        linear-gradient(160deg, var(--brand-950), var(--brand-800) 55%, var(--brand-600));
}

.auth-feather {
    position: absolute;
    right: -140px;
    bottom: -120px;
    width: 560px;
    height: 560px;
    background: url('favicon.png') center / contain no-repeat;
    opacity: .12;
    filter: grayscale(1) brightness(2.6);
    transform: rotate(-6deg);
    pointer-events: none;
}

.wordmark-invert {
    filter: brightness(0) invert(1);
    height: 60px;
}

.auth-brand-top {
    position: relative;
}

.auth-brand-body {
    position: relative;
    max-width: 420px;
    margin: auto 0;
}

.auth-brand-body h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 16px;
}

.auth-brand-body p {
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(220, 239, 232, .82);
    margin: 0 0 24px;
}

.auth-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(220, 239, 232, .92);
}

.auth-points svg {
    width: 17px;
    height: 17px;
    color: var(--brand-300);
}

.auth-brand-foot {
    position: relative;
    margin: 0;
    font-size: 12px;
    letter-spacing: .04em;
    color: rgba(220, 239, 232, .55);
    text-transform: uppercase;
}

.auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 5vw, 60px);
    background: var(--canvas);
}

.auth-form {
    width: 100%;
    max-width: 384px;
}

.auth-form h1 {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3.4vw, 30px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 6px 0 6px;
}

.auth-sub {
    margin: 0 0 22px;
    font-size: 13.5px;
    color: var(--muted);
}

.field {
    display: block;
    margin-bottom: 15px;
}

.field>span {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.field input {
    width: 100%;
}

.field-pw {
    position: relative;
    display: block;
}

.field-pw input {
    width: 100%;
    padding-right: 62px;
}

.pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-600);
    padding: 6px 8px;
    border-radius: 6px;
}

.pw-toggle:hover {
    background: var(--brand-50);
}

.auth-form .btn-lg {
    width: 100%;
    margin-top: 6px;
}

.auth-legal {
    margin: 18px 0 0;
    font-size: 11.5px;
    color: var(--faint);
    line-height: 1.5;
}

.auth-form .alert {
    font-size: 12.5px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
    .hero {
        grid-template-columns: 1fr;
    }

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

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

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: 32px;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .auth-brand-body {
        display: none;
    }

    .auth-brand-foot {
        display: none;
    }

    .auth-feather {
        width: 320px;
        height: 320px;
        right: -110px;
        bottom: -90px;
    }
}

@media (max-width: 620px) {

    .topbar-tag,
    .topbar-sep,
    .userchip-name {
        display: none;
    }

    .page-date {
        display: none;
    }

    .hero-breakdown {
        grid-template-columns: 1fr;
    }

    .metrics {
        grid-template-columns: 1fr;
    }

    .sumstrip {
        grid-template-columns: 1fr;
    }

    .viewnav {
        display: flex;
        width: 100%;
    }

    .viewnav-item {
        flex: 1;
        justify-content: center;
    }

    .card-head {
        align-items: flex-start;
    }

    .card-actions {
        width: 100%;
    }

    .card-actions .btn,
    .card-actions .inline-form {
        flex: 1;
    }

    .divider-v {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
/* ---------------- loaders ---------------- */
.spinner {
    display: inline-block;
    width: 34px;
    height: 34px;
    border: 3px solid var(--brand-100);
    border-top-color: var(--brand-500);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 30, 24, .45);
    backdrop-filter: blur(2px);
}

.loader-overlay[hidden] { display: none; }

.loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    padding: 28px 36px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    text-align: center;
}

.loader-sub { font-size: 13px; color: #5c6a63; }

.btn.is-loading { opacity: .75; pointer-events: none; }