/*
 * My Daily Contribution — design system converted from src/styles.css
 * (Tailwind v4 theme) to plain CSS.
 *
 * Brand: deep contribution green + gold coin yellow, warm ivory surfaces.
 * Fonts: Sora for display/headings, Manrope for body (Google Fonts).
 */

:root {
    --radius: 0.75rem;

    /* Warm ivory surfaces */
    --background: #faf7f0;
    --background: oklch(0.985 0.007 105);
    --foreground: #1d3a2a;
    --foreground: oklch(0.23 0.04 152);

    --card: #ffffff;
    --card: oklch(1 0 0);
    --card-foreground: #1d3a2a;
    --card-foreground: oklch(0.23 0.04 152);

    /* Deep contribution green */
    --primary: #17804b;
    --primary: oklch(0.5 0.14 152);
    --primary-foreground: #fdfaf3;
    --primary-foreground: oklch(0.99 0.005 105);

    /* Gold coin yellow */
    --gold: #e3b93c;
    --gold: oklch(0.82 0.15 85);
    --gold-soft: #f7ecc8;
    --gold-soft: oklch(0.96 0.06 90);
    --secondary: var(--gold);
    --secondary-foreground: #4a3417;
    --secondary-foreground: oklch(0.26 0.07 85);

    --muted: #f0ecdf;
    --muted: oklch(0.95 0.012 120);
    --muted-foreground: #5a6e62;
    --muted-foreground: oklch(0.48 0.03 150);

    --accent: #e7e5cf;
    --accent: oklch(0.93 0.05 130);
    --accent-foreground: #24462f;
    --accent-foreground: oklch(0.3 0.08 152);

    --brand-deep: #143726;
    --brand-deep: oklch(0.32 0.1 152);
    --brand-soft: #f1f0e2;
    --brand-soft: oklch(0.96 0.035 135);

    --success: #2f8f5b;
    --success: oklch(0.58 0.14 152);
    --warning: #d9a62e;
    --warning: oklch(0.75 0.14 80);
    --danger: #c25039;
    --danger: oklch(0.58 0.2 27);

    --border: #e4e0d4;
    --border: oklch(0.9 0.018 120);

    --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
    --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-color: var(--border);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 247, 240, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

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

.logo .emblem {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.logo .wordmark {
    line-height: 1.2;
}

.logo .wordmark .name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--foreground);
}

.logo .wordmark .motto {
    margin-top: 2px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-nav a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted-foreground);
    transition: color 0.15s ease;
}

.site-nav a:hover {
    color: var(--primary);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--radius) - 2px);
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    border: 1px solid transparent;
    transition: filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-outline {
    border-color: var(--border);
    color: var(--foreground);
    background: var(--card);
}

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

.btn-gold {
    background: linear-gradient(120deg, #ecc84a 0%, #dcaf27 100%);
    background: linear-gradient(120deg, oklch(0.85 0.14 85) 0%, oklch(0.78 0.16 75) 100%);
    color: var(--secondary-foreground);
}

/* ---------- Hero ---------- */

.hero {
    background: linear-gradient(135deg, #faf7f0 0%, #f0ecdb 55%, #e4e2c4 100%);
    background: linear-gradient(135deg, oklch(0.985 0.007 105) 0%, oklch(0.95 0.04 130) 55%, oklch(0.9 0.07 120) 100%);
    border-bottom: 1px solid var(--border);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.eyebrow {
    display: inline-block;
    background: var(--gold-soft);
    color: var(--secondary-foreground);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.hero h1 {
    margin-top: 18px;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
}

.hero .lead {
    margin-top: 18px;
    font-size: 1.08rem;
    color: var(--muted-foreground);
    max-width: 34rem;
}

.hero .cta {
    margin-top: 30px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px -12px rgba(20, 55, 38, 0.35);
    box-shadow: 0 10px 30px -12px oklch(0.32 0.1 152 / 35%);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Stats strip ---------- */

.stats {
    background: linear-gradient(120deg, #17804b 0%, #143726 100%);
    background: linear-gradient(120deg, oklch(0.5 0.14 152) 0%, oklch(0.38 0.11 152) 100%);
    color: var(--primary-foreground);
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 36px;
    padding-bottom: 36px;
}

.stat {
    text-align: center;
}

.stat .value {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--gold);
}

.stat .label {
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.85;
}

/* ---------- Sections ---------- */

section {
    padding: 72px 0;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
}

.section-head p {
    margin-top: 10px;
    color: var(--muted-foreground);
    max-width: 40rem;
}

.alt {
    background: var(--brand-soft);
}

/* ---------- Steps ---------- */

.steps {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: 0 2px 12px -4px rgba(29, 58, 42, 0.12);
    box-shadow: 0 2px 12px -4px oklch(0.23 0.04 152 / 12%);
}

.step .number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    background: linear-gradient(120deg, #ecc84a 0%, #dcaf27 100%);
    background: linear-gradient(120deg, oklch(0.85 0.14 85) 0%, oklch(0.78 0.16 75) 100%);
    color: var(--secondary-foreground);
}

.step h3 {
    margin-top: 16px;
    font-size: 1.02rem;
    font-weight: 700;
}

.step p {
    margin-top: 8px;
    font-size: 0.92rem;
    color: var(--muted-foreground);
}

/* ---------- Plan ---------- */

.plan-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.plan-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.plan-item .label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.plan-item .value {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.plan-item.highlight {
    background: var(--brand-deep);
    border-color: var(--brand-deep);
}

.plan-item.highlight .label {
    color: rgba(253, 250, 243, 0.75);
}

.plan-item.highlight .value {
    color: var(--gold);
}

/* ---------- Payments ---------- */

.payment-cards {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.payment-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
}

.payment-card .icon {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    color: var(--primary);
}

.payment-card h3 {
    margin-top: 16px;
    font-size: 1.05rem;
    font-weight: 700;
}

.payment-card p {
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

/* ---------- FAQ ---------- */

.faq-list {
    margin-top: 40px;
    max-width: 46rem;
}

details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 22px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.98rem;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    float: right;
    color: var(--primary);
    font-weight: 800;
}

details[open] summary::after {
    content: "\2013";
}

details .answer {
    padding: 0 22px 18px;
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

/* ---------- Contact ---------- */

.contact-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.contact-card .kind {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
}

.contact-card .detail {
    margin-top: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.98rem;
    word-break: break-word;
}

.contact-card a .detail:hover,
.contact-card .detail a:hover {
    color: var(--primary);
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--brand-deep);
    color: rgba(253, 250, 243, 0.85);
    padding: 44px 0;
    margin-top: 72px;
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fdfaf3;
}

.site-footer .brand .emblem {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.site-footer .brand .name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.25;
}

.site-footer .brand .motto {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.75;
}

.site-footer .copyright {
    font-size: 0.85rem;
    opacity: 0.75;
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
    .hero .container {
        grid-template-columns: 1fr;
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .steps,
    .plan-grid,
    .payment-cards,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats .container {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 26px;
    }
}

@media (max-width: 640px) {
    .site-nav {
        display: none;
    }

    .steps,
    .plan-grid,
    .payment-cards,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Dashboard ---------- */

.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.dash-sidebar {
    background: linear-gradient(180deg, #17402c 0%, #0d2418 100%);
    background: linear-gradient(180deg, oklch(0.32 0.1 152) 0%, oklch(0.22 0.06 152) 100%);
    color: #f0efe4;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.dash-sidebar .logo {
    padding: 0 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}

.dash-sidebar .logo .wordmark .name {
    color: #fdfaf3;
}

.dash-sidebar .logo .wordmark .motto {
    color: rgba(253, 250, 243, 0.65);
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(253, 250, 243, 0.75);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.dash-nav-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.dash-nav-item.active {
    background: linear-gradient(120deg, #ecc84a 0%, #d3a820 100%);
    background: linear-gradient(120deg, oklch(0.85 0.14 85) 0%, oklch(0.78 0.16 75) 100%);
    color: #4a3417;
    color: oklch(0.26 0.07 85);
}

.dash-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

.dash-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 28px;
    border-bottom: 1px solid var(--border);
    background: rgba(250, 247, 240, 0.92);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 30;
}

.dash-header .titles h1 {
    font-size: 1.25rem;
    font-weight: 800;
}

.dash-header .titles p {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.dash-header .actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 12px;
    width: 230px;
    color: var(--muted-foreground);
}

.dash-search input {
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 0.88rem;
    width: 100%;
    color: var(--foreground);
}

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    cursor: pointer;
}

.icon-btn:hover {
    color: var(--primary);
}

.icon-btn .dot {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    border: 2px solid var(--card);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--primary), var(--brand-deep));
    color: var(--primary-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.78rem;
}

.dash-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.kpi {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: 0 2px 12px -4px rgba(29, 58, 42, 0.12);
    box-shadow: 0 2px 12px -4px oklch(0.23 0.04 152 / 12%);
}

.kpi .label {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted-foreground);
}

.kpi .value {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
}

.kpi .change {
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--success);
}

.kpi .change.neutral {
    color: var(--muted-foreground);
}

.panel-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
}

.panel h3 {
    font-size: 1.02rem;
    font-weight: 700;
}

.panel .sub {
    margin-top: 3px;
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-top: 24px;
}

.bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.bar-area {
    height: 170px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

.bar .amount {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--muted-foreground);
}

.bar .fill {
    width: 58%;
    max-width: 46px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, #23955c 0%, #17804b 100%);
    background: linear-gradient(180deg, oklch(0.62 0.14 152) 0%, oklch(0.5 0.14 152) 100%);
    transition: filter 0.15s ease;
}

.bar .fill:hover {
    filter: brightness(1.1);
}

.bar.highlight .fill {
    background: linear-gradient(180deg, #ecc84a 0%, #d3a820 100%);
    background: linear-gradient(180deg, oklch(0.85 0.14 85) 0%, oklch(0.78 0.16 75) 100%);
}

.bar.highlight .amount {
    color: var(--secondary-foreground);
}

.bar .day {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.progress-track {
    height: 10px;
    border-radius: 999px;
    background: var(--muted);
    margin-top: 22px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
}

.progress-note {
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted-foreground);
}

.cycle-facts {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.cycle-fact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
}

.cycle-fact .k {
    color: var(--muted-foreground);
    font-weight: 600;
}

.cycle-fact .v {
    font-weight: 700;
    font-family: var(--font-display);
}

.table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th {
    text-align: left;
    padding: 10px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-foreground);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

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

tbody tr:hover td {
    background: var(--brand-soft);
}

.row-num {
    color: var(--muted-foreground);
    font-size: 0.82rem;
}

.member {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.mini-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    font-weight: 800;
    font-family: var(--font-display);
    flex-shrink: 0;
}

.amount {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.status.paid,
.status.received {
    background: #e0f2e8;
    background: oklch(0.94 0.04 152);
    color: #1c7a4a;
    color: oklch(0.45 0.12 152);
}

.status.processing,
.status.pending {
    background: var(--gold-soft);
    color: var(--secondary-foreground);
}

@media (max-width: 1024px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 860px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        position: static;
        height: auto;
    }

    .dash-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .dash-nav-item {
        padding: 8px 10px;
    }

    .dash-nav-item span {
        font-size: 0.82rem;
    }

    .dash-search {
        display: none;
    }

    .dash-content {
        padding: 18px;
    }
}

/* ---------- Auth pages (login/register) ---------- */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: linear-gradient(135deg, #faf7f0 0%, #f0ecdb 55%, #e4e2c4 100%);
    background: linear-gradient(135deg, oklch(0.985 0.007 105) 0%, oklch(0.95 0.04 130) 55%, oklch(0.9 0.07 120) 100%);
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px -12px rgba(20, 55, 38, 0.25);
    box-shadow: 0 10px 30px -12px oklch(0.32 0.1 152 / 25%);
    padding: 36px 32px;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.auth-brand .name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
}

.auth-brand .motto {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.auth-card h1 {
    font-size: 1.4rem;
    text-align: center;
}

.auth-sub {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin-top: 6px;
}

.field {
    margin-top: 16px;
}

.field > label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 11px 14px;
    font: inherit;
    font-size: 0.92rem;
    color: var(--foreground);
    background: var(--background);
}

.field input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
    border-color: var(--primary);
}

.field .hint {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 5px;
}

.field .error {
    font-size: 0.75rem;
    color: var(--danger);
    font-weight: 600;
    margin-top: 5px;
}

.field.invalid input {
    border-color: var(--danger);
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    font-size: 0.82rem;
    gap: 10px;
}

.auth-row a {
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.checkbox {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.82rem;
    color: var(--muted-foreground);
    cursor: pointer;
}

.checkbox input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-submit {
    width: 100%;
    margin-top: 22px;
}

.auth-alt {
    text-align: center;
    margin-top: 18px;
    font-size: 0.88rem;
    color: var(--muted-foreground);
}

.auth-alt a {
    color: var(--primary);
    font-weight: 700;
}

.auth-back {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.auth-back:hover {
    color: var(--primary);
}

/* ---------- Member pages (contribute, history, position, admin) ---------- */

.alert-success {
    background: #e0f2e8;
    background: oklch(0.94 0.04 152);
    border: 1px solid #bfe5d0;
    color: #1c7a4a;
    color: oklch(0.45 0.12 152);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.9rem;
    margin-top: 16px;
}

.alert-success strong {
    font-family: var(--font-display);
}

.method-options {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.method-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 13px 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.method-option:hover {
    border-color: var(--primary);
}

.method-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--brand-soft);
}

.method-option input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.method-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
}

.method-hint {
    display: block;
    font-size: 0.78rem;
    color: var(--muted-foreground);
    margin-top: 2px;
}

.position-big {
    text-align: center;
    padding: 18px 0 6px;
}

.position-big .pos {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.position-big .of {
    display: block;
    margin-top: 8px;
    color: var(--muted-foreground);
    font-weight: 600;
    font-size: 0.9rem;
}

.status.active,
.status.paid,
.status.received {
    background: #e0f2e8;
    background: oklch(0.94 0.04 152);
    color: #1c7a4a;
    color: oklch(0.45 0.12 152);
}

.status.missed,
.status.suspended {
    background: #fdeceb;
    color: var(--danger);
}

.kpi .change.down {
    color: var(--danger);
}

.table-btn {
    display: inline-block;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted-foreground);
    cursor: pointer;
}

.table-btn:hover {
    color: var(--danger);
    border-color: var(--danger);
}

img.emblem {
    border-radius: 50%;
    object-fit: cover;
}
