/* ================================================================
   StokvelHut — Production Design System v3.0
   Fintech-grade UI: trust, clarity, mobile-first
   ================================================================ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
    /* Brand */
    --sh-navy:         #1a3c5e;
    --sh-navy-dark:    #0f2540;
    --sh-navy-mid:     #245283;
    --sh-navy-light:   #e8f0f8;
    --sh-navy-50:      #f0f5fb;
    --sh-gold:         #c9982a;
    --sh-gold-dark:    #a07820;
    --sh-gold-light:   #fdf5e0;

    /* Legacy aliases */
    --sh-primary:  #1a3c5e;
    --sh-primary2: #0f2540;
    --sh-accent:   #c9982a;

    /* Status */
    --sh-green:        #15803d;
    --sh-green-mid:    #1e6b3e;
    --sh-green-light:  #f0fdf4;
    --sh-green-border: #86efac;
    --sh-amber:        #d97706;
    --sh-amber-light:  #fffbeb;
    --sh-amber-border: #fcd34d;
    --sh-red:          #dc2626;
    --sh-red-light:    #fef2f2;
    --sh-red-border:   #fca5a5;
    --sh-blue:         #1d4ed8;
    --sh-blue-light:   #eff6ff;

    /* Surfaces */
    --sh-bg:           #f1f5f9;
    --sh-surface:      #ffffff;
    --sh-surface-2:    #f8fafc;

    /* Text */
    --sh-text:         #0f172a;
    --sh-text-2:       #334155;
    --sh-muted:        #64748b;

    /* Borders */
    --sh-border:       #e2e8f0;
    --sh-border-2:     #cbd5e1;

    /* Shadows */
    --sh-shadow-xs:    0 1px 2px 0 rgba(0,0,0,.05);
    --sh-shadow-sm:    0 1px 3px 0 rgba(0,0,0,.08), 0 1px 2px -1px rgba(0,0,0,.06);
    --sh-shadow-md:    0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.08);
    --sh-shadow-lg:    0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.07);

    /* Shape */
    --sh-radius-xs:  0.25rem;
    --sh-radius-sm:  0.4375rem;
    --sh-radius:     0.75rem;
    --sh-radius-lg:  1rem;
    --sh-radius-xl:  1.5rem;

    /* Transition */
    --sh-transition: 150ms cubic-bezier(.4,0,.2,1);
    /* Legacy alias */
    --sh-dark: #0f2540;
}

/* ── Reset / Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--sh-bg);
    color: var(--sh-text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: .9375rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── Typography ───────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { color: var(--sh-text); font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
.page-title   { font-size: 1.5rem; font-weight: 800; color: var(--sh-navy); margin-bottom: .25rem; }
.page-subtitle { color: var(--sh-muted); font-size: .9375rem; margin-bottom: 1.5rem; }
.section-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sh-muted); }

/* ── Navbar ────────────────────────────────────────────────────── */
.sh-navbar {
    background: var(--sh-navy) !important;
    border-bottom: 3px solid var(--sh-gold);
    padding: .6rem 0;
    box-shadow: var(--sh-shadow-md);
}
.sh-navbar .navbar-brand {
    font-size: 1.0625rem; font-weight: 800; color: #fff !important;
    letter-spacing: -.01em; gap: .625rem; display: flex; align-items: center;
}
.sh-navbar .nav-link {
    color: rgba(255,255,255,.8) !important; font-size: .875rem; font-weight: 500;
    padding: .375rem .875rem; border-radius: var(--sh-radius-sm);
    transition: background var(--sh-transition), color var(--sh-transition);
}
.sh-navbar .nav-link:hover, .sh-navbar .nav-link.sh-active {
    background: rgba(255,255,255,.1); color: #fff !important;
}
.sh-navbar .nav-link.sh-active { color: var(--sh-gold) !important; }
.sh-navbar .nav-link.nav-admin { color: var(--sh-gold) !important; font-weight: 600; }
.sh-user-chip {
    display: inline-flex; align-items: center; gap: .375rem;
    background: rgba(255,255,255,.1); color: rgba(255,255,255,.9) !important;
    border-radius: 2rem; padding: .3125rem .875rem; font-size: .8125rem; font-weight: 500;
}
.sh-navbar .navbar-toggler { border-color: rgba(255,255,255,.25); padding: .375rem .5rem; }
.sh-navbar .navbar-toggler-icon { filter: brightness(0) invert(1); width: 1.125rem; height: 1.125rem; }

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
    background: var(--sh-surface); border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius); box-shadow: var(--sh-shadow-sm);
    transition: box-shadow var(--sh-transition);
}
.card:hover { box-shadow: var(--sh-shadow-md); }
.card-header {
    border-radius: var(--sh-radius) var(--sh-radius) 0 0 !important;
    border-bottom: 1px solid var(--sh-border); padding: .9375rem 1.375rem;
    font-weight: 700; font-size: .9375rem; background: var(--sh-surface-2); color: var(--sh-text);
}
.sh-card-navy  { background: var(--sh-navy)  !important; color: #fff !important; border-bottom: none !important; }
.sh-card-gold  { background: var(--sh-gold)  !important; color: #fff !important; border-bottom: none !important; }
.sh-card-green { background: var(--sh-green) !important; color: #fff !important; border-bottom: none !important; }
.sh-card-red   { background: var(--sh-red)   !important; color: #fff !important; border-bottom: none !important; }
.sh-card-amber { background: var(--sh-amber) !important; color: #fff !important; border-bottom: none !important; }
.sh-card-light { background: var(--sh-surface-2) !important; border-bottom: 1px solid var(--sh-border) !important; }
/* Legacy aliases */
.bg-primary { background: var(--sh-navy) !important; }
.card-header.bg-primary { background: var(--sh-navy) !important; border-bottom: none !important; }
.card-body  { padding: 1.5rem 1.375rem; }
.card-footer { background: var(--sh-surface-2); border-top: 1px solid var(--sh-border); padding: .875rem 1.375rem; border-radius: 0 0 var(--sh-radius) var(--sh-radius); }

/* ── Stat Cards ─────────────────────────────────────────────────── */
.sh-stat {
    background: var(--sh-surface); border: 1px solid var(--sh-border); border-radius: var(--sh-radius);
    padding: 1.25rem 1.375rem; box-shadow: var(--sh-shadow-sm); position: relative; overflow: hidden; height: 100%;
}
.sh-stat::after {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    border-radius: var(--sh-radius) 0 0 var(--sh-radius);
}
.sh-stat.s-navy::after  { background: var(--sh-navy); }
.sh-stat.s-gold::after  { background: var(--sh-gold); }
.sh-stat.s-green::after { background: var(--sh-green); }
.sh-stat.s-red::after   { background: var(--sh-red); }
.sh-stat.s-amber::after { background: var(--sh-amber); }
.sh-stat .stat-icon   { font-size: 1.5rem; float: right; opacity: .3; margin-top: .125rem; }
.sh-stat .stat-value  { font-size: 1.625rem; font-weight: 800; color: var(--sh-text); line-height: 1.2; margin-bottom: .25rem; }
.sh-stat .stat-label  { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--sh-muted); }
/* Legacy stat-card */
.stat-card { text-align: center; padding: 1.25rem 1rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; color: var(--sh-navy); }
.stat-card .stat-label { font-size: .8rem; color: var(--sh-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
    font-weight: 600; border-radius: var(--sh-radius-sm);
    transition: all var(--sh-transition); letter-spacing: .01em;
    display: inline-flex; align-items: center; gap: .375rem;
}
.btn-primary   { background: var(--sh-navy)  !important; border-color: var(--sh-navy)  !important; color: #fff !important; }
.btn-primary:hover, .btn-primary:focus { background: var(--sh-navy-dark) !important; border-color: var(--sh-navy-dark) !important; box-shadow: 0 0 0 .2rem rgba(26,60,94,.25) !important; }
.btn-gold      { background: var(--sh-gold)  !important; border-color: var(--sh-gold)  !important; color: #fff !important; }
.btn-gold:hover, .btn-gold:focus { background: var(--sh-gold-dark) !important; border-color: var(--sh-gold-dark) !important; box-shadow: 0 0 0 .2rem rgba(201,152,42,.25) !important; }
.btn-success   { background: var(--sh-green) !important; border-color: var(--sh-green) !important; color: #fff !important; }
.btn-success:hover, .btn-success:focus { background: #145f35 !important; border-color: #145f35 !important; }
.btn-warning   { background: var(--sh-amber) !important; border-color: var(--sh-amber) !important; color: #fff !important; }
.btn-warning:hover { background: #b45309 !important; border-color: #b45309 !important; color: #fff !important; }
.btn-danger    { background: var(--sh-red)   !important; border-color: var(--sh-red)   !important; color: #fff !important; }
.btn-secondary { background: var(--sh-text-2) !important; border-color: var(--sh-text-2) !important; color: #fff !important; }
.btn-dark      { background: var(--sh-navy-dark) !important; border-color: var(--sh-navy-dark) !important; color: #fff !important; }
.btn-info      { background: var(--sh-blue) !important; border-color: var(--sh-blue) !important; color: #fff !important; }
.btn-outline-primary  { border-color: var(--sh-navy)  !important; color: var(--sh-navy)  !important; background: transparent !important; }
.btn-outline-primary:hover  { background: var(--sh-navy)  !important; color: #fff !important; }
.btn-outline-secondary { border-color: var(--sh-border-2) !important; color: var(--sh-text-2) !important; background: transparent !important; }
.btn-outline-secondary:hover { background: var(--sh-surface-2) !important; }
.btn-outline-success  { border-color: var(--sh-green) !important; color: var(--sh-green) !important; background: transparent !important; }
.btn-outline-success:hover  { background: var(--sh-green) !important; color: #fff !important; }
.btn-outline-danger   { border-color: var(--sh-red)   !important; color: var(--sh-red)   !important; background: transparent !important; }
.btn-outline-danger:hover   { background: var(--sh-red)   !important; color: #fff !important; }
.btn-outline-warning  { border-color: var(--sh-amber) !important; color: var(--sh-amber) !important; background: transparent !important; }
.btn-outline-warning:hover  { background: var(--sh-amber) !important; color: #fff !important; }
.btn-outline-info     { border-color: var(--sh-blue)  !important; color: var(--sh-blue)  !important; background: transparent !important; }
.btn-outline-info:hover     { background: var(--sh-blue)  !important; color: #fff !important; }
.btn-lg { padding: .75rem 1.5rem; font-size: 1rem; border-radius: var(--sh-radius-sm); }
.btn-sm { padding: .3125rem .75rem; font-size: .8125rem; }
.btn .spinner-border { width: .9rem; height: .9rem; border-width: .15em; }

/* ── Forms ──────────────────────────────────────────────────────── */
.form-control, .form-select {
    border-color: var(--sh-border-2); border-radius: var(--sh-radius-sm);
    font-size: .9375rem; padding: .5625rem .875rem; color: var(--sh-text);
    background-color: var(--sh-surface);
    transition: border-color var(--sh-transition), box-shadow var(--sh-transition);
}
.form-control:focus, .form-select:focus { border-color: var(--sh-navy); box-shadow: 0 0 0 .1875rem rgba(26,60,94,.18); outline: none; }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--sh-red); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 .1875rem rgba(220,38,38,.18); }
.form-label { font-weight: 600; font-size: .875rem; color: var(--sh-text-2); margin-bottom: .3125rem; }
.form-text  { font-size: .8125rem; color: var(--sh-muted); margin-top: .3125rem; }
.form-control-lg { font-size: 1.0625rem; padding: .6875rem 1rem; }
.input-group .btn-outline-secondary { border-color: var(--sh-border-2); color: var(--sh-muted); background: var(--sh-surface); }
.input-group .btn-outline-secondary:hover { background: var(--sh-surface-2); }
.input-group-text { background: var(--sh-surface-2); border-color: var(--sh-border-2); color: var(--sh-muted); font-size: .9rem; }
.currency-tag { background: var(--sh-navy-light); border-color: var(--sh-border-2); color: var(--sh-navy); font-weight: 700; font-size: .875rem; }
.pin-toggle { cursor: pointer; border-left: none; background: #fff; }
.pin-toggle:hover { background: var(--sh-surface-2); }

/* ── Tables ─────────────────────────────────────────────────────── */
.table-wrapper { border-radius: var(--sh-radius); overflow: hidden; border: 1px solid var(--sh-border); box-shadow: var(--sh-shadow-sm); }
.table { margin-bottom: 0; background: var(--sh-surface); font-size: .9rem; border-collapse: collapse; }
.table thead th { background: var(--sh-navy); color: rgba(255,255,255,.9); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; border: none; padding: .8125rem 1rem; white-space: nowrap; }
.table tbody td { padding: .8125rem 1rem; border-bottom: 1px solid var(--sh-border); vertical-align: middle; color: var(--sh-text-2); }
.table tbody tr:last-child td { border-bottom: none; }
.table-hover tbody tr:hover { background: var(--sh-navy-50); }

/* ── Badges ─────────────────────────────────────────────────────── */
.badge { font-size: .6875rem; font-weight: 700; padding: .3em .65em; letter-spacing: .02em; border-radius: var(--sh-radius-xs); }
.badge-active   { background: var(--sh-green-light);  color: var(--sh-green); }
.badge-pending  { background: var(--sh-amber-light);  color: var(--sh-amber); }
.badge-inactive { background: var(--sh-surface-2); color: var(--sh-muted); border: 1px solid var(--sh-border); }
.badge-admin    { background: var(--sh-red-light);    color: var(--sh-red); }
.badge-approver { background: var(--sh-gold-light);   color: var(--sh-gold-dark); }
.badge-member   { background: var(--sh-blue-light);   color: var(--sh-blue); }

/* ── Alerts ─────────────────────────────────────────────────────── */
.alert { border-radius: var(--sh-radius-sm); border: 1px solid transparent; padding: .875rem 1.125rem; }
.alert-success { background: var(--sh-green-light); color: var(--sh-green); border-color: var(--sh-green-border); }
.alert-danger  { background: var(--sh-red-light);   color: var(--sh-red);   border-color: var(--sh-red-border); }
.alert-warning { background: var(--sh-amber-light); color: var(--sh-amber); border-color: var(--sh-amber-border); }
.alert-info    { background: var(--sh-blue-light);  color: var(--sh-blue);  border-color: #93c5fd; }

/* ── Breadcrumb ─────────────────────────────────────────────────── */
.breadcrumb { background: transparent; padding: 0; font-size: .8125rem; margin-bottom: 1.25rem; }
.breadcrumb-item a { color: var(--sh-navy); text-decoration: none; font-weight: 500; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--sh-muted); content: '/'; }
.breadcrumb-item.active { color: var(--sh-muted); }

/* ── Page Header ────────────────────────────────────────────────── */
.sh-page-header { margin-bottom: 1.75rem; }
.sh-page-header h2, .sh-page-header h3 { margin-bottom: .25rem; }

/* ── Empty State ────────────────────────────────────────────────── */
.sh-empty { text-align: center; padding: 4rem 2rem; background: var(--sh-surface); border: 1px dashed var(--sh-border-2); border-radius: var(--sh-radius); }
.sh-empty-icon { font-size: 3.25rem; display: block; margin-bottom: 1rem; opacity: .35; }
.sh-empty p { color: var(--sh-muted); font-size: .9375rem; max-width: 28rem; margin: 0 auto .875rem; }
/* Legacy alias */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--sh-muted); }
.empty-state .empty-icon { font-size: 3.5rem; display: block; margin-bottom: .75rem; }

/* ── Payment Method Grid ────────────────────────────────────────── */
.pm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .625rem;
}
@media (max-width: 380px) {
    .pm-grid { grid-template-columns: 1fr; }
}
.payment-card-label {
    cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .375rem;
    border: 2px solid var(--sh-border-2); border-radius: var(--sh-radius);
    padding: 1.125rem .75rem;
    background: var(--sh-surface);
    transition: all var(--sh-transition);
    width: 100%; text-align: center;
    position: relative;
    user-select: none;
    min-height: 5.5rem;
}
.payment-card-label:hover {
    border-color: var(--sh-navy); background: var(--sh-navy-50);
    transform: translateY(-1px); box-shadow: var(--sh-shadow-sm);
}
.btn-check:checked + .payment-card-label {
    border-color: var(--sh-navy) !important;
    background: var(--sh-navy-light) !important;
    box-shadow: 0 0 0 .1875rem rgba(26,60,94,.18);
}
.btn-check:checked + .payment-card-label::after {
    content: '\F26B';
    font-family: 'bootstrap-icons';
    position: absolute; top: .4rem; right: .5rem;
    font-size: .8125rem; color: var(--sh-navy); line-height: 1;
}
.payment-card-label .pm-logo  { width: 44px; height: 44px; object-fit: contain; }
.payment-card-label .pm-icon  { font-size: 2rem; color: var(--sh-navy); line-height: 1; }
.payment-card-label .pm-name  { font-weight: 700; font-size: .875rem; color: var(--sh-text); line-height: 1.2; }
.payment-card-label .pm-desc  { font-size: .7rem; color: var(--sh-muted); line-height: 1.35; }
.pm-popular-badge {
    position: absolute; top: -.5625rem; left: 50%; transform: translateX(-50%);
    background: var(--sh-gold); color: #fff;
    font-size: .5875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
    padding: .1875rem .5625rem; border-radius: 2rem; white-space: nowrap;
    pointer-events: none;
}
/* Pill aliases kept for any other views */
.pm-pill-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.pm-pill-label {
    cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
    border: 1.5px solid var(--sh-border-2); border-radius: 2rem;
    padding: .3rem .75rem .3rem .45rem; background: var(--sh-surface);
    font-size: .8125rem; font-weight: 600; color: var(--sh-text);
    transition: all var(--sh-transition); white-space: nowrap; user-select: none;
}
.pm-pill-label:hover { border-color: var(--sh-navy); background: var(--sh-navy-50); }
.btn-check:checked + .pm-pill-label { border-color: var(--sh-navy) !important; background: var(--sh-navy-light) !important; color: var(--sh-navy); box-shadow: 0 0 0 .15rem rgba(26,60,94,.18); }
.pm-pill-logo { width: 24px; height: 24px; object-fit: contain; border-radius: .25rem; }

/* ── Stokvel Type Cards ─────────────────────────────────────────── */
.type-card {
    border: 1px solid var(--sh-border); border-radius: var(--sh-radius); padding: 1.75rem 1.25rem;
    background: var(--sh-surface); cursor: pointer; transition: all .2s ease; text-align: center;
    display: block; text-decoration: none !important; color: var(--sh-text) !important; box-shadow: var(--sh-shadow-sm);
}
.type-card:hover { border-color: var(--sh-navy); background: var(--sh-navy-50); transform: translateY(-3px); box-shadow: var(--sh-shadow-md); }
.type-card .type-icon { font-size: 2.5rem; display: block; margin-bottom: .75rem; }
.type-card .type-name { font-weight: 700; font-size: 1rem; margin-bottom: .25rem; color: var(--sh-navy); }
.type-card .type-desc { font-size: .8125rem; color: var(--sh-muted); }
/* Legacy alias */
.stokvel-type-card { transition: transform .15s ease, box-shadow .15s ease; cursor: pointer; }
.stokvel-type-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,.12) !important; }

/* ── Summary DL ─────────────────────────────────────────────────── */
.sh-summary dt { font-size: .7875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--sh-muted); padding-top: .125rem; }
.sh-summary dd { font-weight: 600; color: var(--sh-text); margin-bottom: .875rem; font-size: .9375rem; }

/* ── Confirm Box ─────────────────────────────────────────────────  */
.sh-confirm-box { background: var(--sh-navy-50); border: 1px solid var(--sh-navy-light); border-radius: var(--sh-radius); padding: 1.25rem 1.375rem; margin-bottom: 1.5rem; }
.sh-confirm-box .amount-row { font-size: 1.75rem; font-weight: 800; color: var(--sh-navy); line-height: 1.2; }
/* Confirm box sub-components (used by JoinConfirm, CreateStokvelConfirm) */
.sh-confirm-header {
    background: var(--sh-navy); color: #fff;
    padding: .9375rem 1.375rem;
    font-weight: 700; font-size: .9375rem;
    border-radius: var(--sh-radius) var(--sh-radius) 0 0;
    margin: -1.25rem -1.375rem 1.25rem;
}
.sh-confirm-body { /* semantic wrapper — no extra chrome needed */ }
.sh-summary-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: .4375rem 0; border-bottom: 1px solid var(--sh-border); gap: 1rem;
}
.sh-summary-row:last-child { border-bottom: none; }
.sh-summary-label { font-size: .8125rem; color: var(--sh-muted); font-weight: 500; flex-shrink: 0; }
.sh-summary-value { font-weight: 600; color: var(--sh-text); text-align: right; }

/* ── Result Page ────────────────────────────────────────────────── */
.sh-result-wrap { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 1rem; }
.sh-result-icon { width: 5.5rem; height: 5.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 1.5rem; animation: sh-pop .35s cubic-bezier(.34,1.56,.64,1) both; }
.sh-result-icon.success { background: var(--sh-green-light); color: var(--sh-green); }
.sh-result-icon.pending { background: #fff8e6;               color: #e6a817; }
.sh-result-icon.error,
.sh-result-icon.failure { background: var(--sh-red-light);   color: var(--sh-red); }
@keyframes sh-pop { 0% { opacity:0; transform:scale(.5); } 100% { opacity:1; transform:scale(1); } }

/* ── Hero ───────────────────────────────────────────────────────── */
.sh-hero {
    background: linear-gradient(135deg, var(--sh-navy-dark) 0%, var(--sh-navy) 55%, var(--sh-navy-mid) 100%);
    color: #fff; padding: 5rem 0 4.5rem; position: relative; overflow: hidden;
}
.sh-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle at 80% 20%, rgba(201,152,42,.12) 0%, transparent 50%),
                      radial-gradient(circle at 15% 75%, rgba(255,255,255,.04) 0%, transparent 40%);
}
.sh-hero .hero-badge { display: inline-block; background: rgba(201,152,42,.2); border: 1px solid rgba(201,152,42,.5); color: #f9d77a; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: .3125rem 1rem; border-radius: 2rem; margin-bottom: 1.125rem; }
.sh-hero .hero-title { font-size: 2.875rem; font-weight: 900; line-height: 1.1; color: #fff; letter-spacing: -.03em; margin-bottom: 1rem; }
.sh-hero .hero-title .gold-word { color: #f9d77a; }
.sh-hero .hero-subtitle { font-size: 1.125rem; color: rgba(255,255,255,.75); max-width: 34rem; line-height: 1.6; margin-bottom: 2.25rem; }
.sh-hero .hero-actions { display: flex; flex-wrap: wrap; gap: .875rem; }
.sh-hero .btn-hero-primary { background: var(--sh-gold) !important; border-color: var(--sh-gold) !important; color: #fff !important; font-size: 1rem; padding: .8125rem 1.75rem; border-radius: var(--sh-radius-sm); font-weight: 700; box-shadow: 0 4px 14px rgba(201,152,42,.4); }
.sh-hero .btn-hero-primary:hover { background: var(--sh-gold-dark) !important; border-color: var(--sh-gold-dark) !important; }
.sh-hero .btn-hero-outline, .btn-hero-outline { background: rgba(255,255,255,.1) !important; border: 2px solid rgba(255,255,255,.35) !important; color: #fff !important; font-size: 1rem; padding: .75rem 1.625rem; border-radius: var(--sh-radius-sm); font-weight: 700; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sh-hero .btn-hero-outline:hover, .btn-hero-outline:hover { background: rgba(255,255,255,.18) !important; border-color: rgba(255,255,255,.6) !important; }
.hero-trust-bar { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2.5rem; }
.hero-trust-item { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: rgba(255,255,255,.65); font-weight: 500; }
.hero-trust-item i { color: var(--sh-gold); font-size: .875rem; }

/* ── Feature Cards ──────────────────────────────────────────────── */
.feature-card { background: var(--sh-surface); border: 1px solid var(--sh-border); border-radius: var(--sh-radius); padding: 1.875rem 1.5rem; box-shadow: var(--sh-shadow-sm); height: 100%; transition: all .2s ease; }
.feature-card:hover { box-shadow: var(--sh-shadow-md); transform: translateY(-2px); }
.feature-icon-wrap { width: 3rem; height: 3rem; border-radius: var(--sh-radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.375rem; margin-bottom: 1rem; }
.fi-navy  { background: var(--sh-navy-light);  color: var(--sh-navy); }
.fi-gold  { background: var(--sh-gold-light);  color: var(--sh-gold-dark); }
.fi-green { background: var(--sh-green-light); color: var(--sh-green); }
.fi-amber { background: var(--sh-amber-light); color: var(--sh-amber); }

/* ── How It Works ───────────────────────────────────────────────── */
.how-step { text-align: center; padding: 1rem .5rem; }
.how-step .step-num { width: 3rem; height: 3rem; border-radius: 50%; background: var(--sh-navy); color: #fff; font-weight: 800; font-size: 1.125rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: .875rem; box-shadow: 0 4px 12px rgba(26,60,94,.3); }
.how-step h6 { font-size: .9375rem; font-weight: 700; color: var(--sh-navy); margin-bottom: .375rem; }
.how-step p  { font-size: .8375rem; color: var(--sh-muted); margin: 0; }

/* ── Action Quick Tiles ─────────────────────────────────────────── */
.action-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; }
.action-tile {
    background: var(--sh-surface); border: 1px solid var(--sh-border); border-radius: var(--sh-radius);
    padding: 1.125rem .875rem; text-align: center; text-decoration: none !important; color: var(--sh-text) !important;
    transition: all var(--sh-transition); box-shadow: var(--sh-shadow-xs); display: flex; flex-direction: column; align-items: center; gap: .4rem;
}
.action-tile:hover { border-color: var(--sh-navy); background: var(--sh-navy-50); color: var(--sh-navy) !important; transform: translateY(-2px); box-shadow: var(--sh-shadow-sm); }
.action-tile .at-icon  { font-size: 1.625rem; }
.action-tile .at-label { font-size: .7875rem; font-weight: 600; line-height: 1.3; }

/* ── Stokvel Member Card ────────────────────────────────────────── */
.stokvel-card { background: var(--sh-surface); border: 1px solid var(--sh-border); border-radius: var(--sh-radius); box-shadow: var(--sh-shadow-sm); transition: box-shadow .2s ease; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.stokvel-card:hover { box-shadow: var(--sh-shadow-md); }
.stokvel-card .sc-header { background: linear-gradient(135deg, var(--sh-navy), var(--sh-navy-mid)); color: #fff; padding: 1.125rem 1.25rem .875rem; position: relative; }
.stokvel-card .sc-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--sh-gold); }
.stokvel-card .sc-name { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.3; }
.stokvel-card .sc-type { font-size: .75rem; color: rgba(255,255,255,.65); font-weight: 500; margin-top: .1875rem; }
.stokvel-card .sc-body { padding: 1.125rem 1.25rem; flex: 1; }
.stokvel-card .sc-meta { display: flex; flex-direction: column; gap: .4375rem; font-size: .85rem; color: var(--sh-text-2); }
.stokvel-card .sc-meta-item { display: flex; justify-content: space-between; align-items: center; padding-bottom: .4375rem; border-bottom: 1px solid var(--sh-border); }
.stokvel-card .sc-meta-item:last-child { border-bottom: none; padding-bottom: 0; }
.stokvel-card .sc-meta-key { color: var(--sh-muted); font-size: .8125rem; }
.stokvel-card .sc-meta-val { font-weight: 700; color: var(--sh-text); }
.stokvel-card .sc-footer { padding: .875rem 1.25rem; border-top: 1px solid var(--sh-border); background: var(--sh-surface-2); display: flex; flex-wrap: wrap; gap: .5rem; }

/* ── Warning / Danger Box ────────────────────────────────────────── */
.sh-warning-box { background: #fef9ec; border: 1px solid var(--sh-amber-border); border-left: 4px solid var(--sh-amber); border-radius: var(--sh-radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.25rem; color: var(--sh-text-2); font-size: .9rem; }
.sh-danger-box  { background: var(--sh-red-light); border: 1px solid var(--sh-red-border); border-left: 4px solid var(--sh-red); border-radius: var(--sh-radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.25rem; color: var(--sh-text-2); font-size: .9rem; }

/* ── Admin Action Bar ───────────────────────────────────────────── */
.sh-admin-actions { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1.125rem 0; border-top: 1px solid var(--sh-border); border-bottom: 1px solid var(--sh-border); margin: 1.25rem 0 1.75rem; }

/* ── Footer ─────────────────────────────────────────────────────── */
.sh-footer { background: var(--sh-navy-dark); color: rgba(255,255,255,.55); padding: 2rem 0 1.5rem; margin-top: auto; }
.sh-footer .footer-brand { color: rgba(255,255,255,.95); font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: .625rem; text-decoration: none; margin-bottom: .5rem; }
.sh-footer a { color: var(--sh-gold); text-decoration: none; font-size: .8125rem; }
.sh-footer a:hover { text-decoration: underline; }
.sh-footer hr { border-color: rgba(255,255,255,.1); margin: 1.25rem 0 1rem; }
.sh-footer .footer-copy { font-size: .8rem; }
/* Legacy footer */
footer { background: var(--sh-navy-dark); color: rgba(255,255,255,.55); }
footer a { color: var(--sh-gold); text-decoration: none; }

/* ── Divider ─────────────────────────────────────────────────────── */
.sh-divider { border: none; border-top: 1px solid var(--sh-border); margin: 1.5rem 0; }

/* ── Misc ────────────────────────────────────────────────────────── */
.text-navy    { color: var(--sh-navy)  !important; }
.text-gold    { color: var(--sh-gold)  !important; }
.text-green   { color: var(--sh-green) !important; }
.bg-navy      { background: var(--sh-navy)       !important; }
.bg-navy-light { background: var(--sh-navy-light) !important; }
.fw-800       { font-weight: 800 !important; }
.lh-1         { line-height: 1 !important; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .sh-hero .hero-title { font-size: 2rem; }
    .sh-hero { padding: 3.5rem 0 3rem; }
    .sh-stat .stat-value { font-size: 1.375rem; }
    .card-body { padding: 1.25rem 1.125rem; }
    .table { font-size: .85rem; }
    .table thead th { font-size: .68rem; }
    .action-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
    .sh-hero .hero-title { font-size: 1.75rem; }
    .hero-trust-bar { display: none; }
    .action-grid { grid-template-columns: repeat(2, 1fr); }
}
