/* ============================================
   Organization Savings App — Redesigned
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary:       #6366f1;
    --primary-dark:  #4f46e5;
    --primary-light: #eef2ff;
    --success:       #10b981;
    --success-light: #ecfdf5;
    --danger:        #f43f5e;
    --danger-light:  #fff1f2;
    --warning:       #f59e0b;
    --warning-light: #fffbeb;
    --purple:        #8b5cf6;
    --purple-light:  #f5f3ff;
    --teal:          #06b6d4;
    --teal-light:    #ecfeff;
    --orange:        #f97316;
    --orange-light:  #fff7ed;
    --bg:            #f7f6ff;
    --card-bg:       #ffffff;
    --text:          #1e293b;
    --text-muted:    #64748b;
    --border:        #e2e8f0;
    --radius:        12px;
    --radius-sm:     8px;
    --shadow:        0 2px 12px rgba(99,102,241,0.08);
    --shadow-md:     0 4px 24px rgba(99,102,241,0.12);
}

body {
    font-family: 'Plus Jakarta Sans', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 15px;
}

/* Bengali text uses Hind Siliguri automatically via unicode-range fallback */
:lang(bn), .bn { font-family: 'Hind Siliguri', sans-serif; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TOPBAR / NAV
   ============================================ */
.topbar {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}

.topbar .container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;         /* allows nav to drop to second row on mobile */
    padding-top: 10px;
    padding-bottom: 10px;
}

.brand {
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.4px;
    flex: 1;
    order: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
    font-family: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 0;
    display: flex;
    gap: 2px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    pointer-events: none;
    z-index: 201;
    background: transparent;
}

.nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    pointer-events: auto;
}

.nav a:hover,
.nav a.active {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.nav-close {
    display: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    order: 3;
}

.user-info span { font-weight: 500; }

.btn-logout {
    color: #fff;
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    transition: background 0.15s;
    white-space: nowrap;
}
.btn-logout:hover { background: rgba(255,255,255,0.2); }

.hamburger {
    display: none;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    order: 4;
    line-height: 1;
}

/* ============================================
   MOBILE NAV
   ============================================ */
@media (max-width: 768px) {
    .topbar .container { padding-top: 12px; padding-bottom: 12px; }

    .brand  { order: 1; flex: 1; }
    .user-info {
        order: 2;
        gap: 6px;
    }
    .user-info span { display: none; }
    .hamburger { display: block; order: 3; }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 270px;
        height: 100vh;
        background: linear-gradient(160deg, #4f46e5 0%, #7c3aed 100%);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 4px;
        padding: 20px 16px 24px;
        z-index: 999;
        box-shadow: -6px 0 32px rgba(79,70,229,0.35);
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
        overflow-y: auto;
        pointer-events: auto;
    }
    .nav.open { transform: translateX(0); }
    .nav a {
        width: 100%;
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        color: rgba(255,255,255,0.85);
    }
    .nav a:hover, .nav a.active { background: rgba(255,255,255,0.18); color: #fff; }

    .nav-close {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    .nav-close-label {
        color: rgba(255,255,255,0.7);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.8px;
        text-transform: uppercase;
    }
    .nav-close-btn {
        background: rgba(255,255,255,0.12);
        border: 1px solid rgba(255,255,255,0.25);
        color: white;
        font-size: 16px;
        cursor: pointer;
        padding: 4px 9px;
        border-radius: 7px;
        line-height: 1;
        transition: background 0.15s;
    }
    .nav-close-btn:hover { background: rgba(255,255,255,0.22); }

    /* overlay behind nav */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 998;
        backdrop-filter: blur(2px);
    }
    .nav-overlay.open { display: block; }
}

/* ============================================
   MARQUEE / TICKER
   ============================================ */
.marquee-bar {
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #0891b2);
    color: rgba(255,255,255,0.92);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 0;
    overflow: hidden;
    position: relative;
}
.marquee-inner {
    display: inline-flex;
    white-space: nowrap;
    animation: marquee-scroll 30s linear infinite;
}
.marquee-bar:hover .marquee-inner { animation-play-state: paused; }
.marquee-inner span { margin-right: 80px; }
.marquee-inner .sep { opacity: 0.5; margin-right: 80px; }

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   WELCOME BANNER (member dashboard)
   ============================================ */
.welcome-banner {
    background: linear-gradient(130deg, #312e81 0%, #6d28d9 40%, #0e7490 100%);
    border-radius: 22px;
    padding: 34px 40px;
    margin-bottom: 28px;
    color: #fff;
    box-shadow: 0 12px 48px rgba(67,56,202,0.38), 0 2px 8px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 180px;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -80px; right: 160px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -60px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(14,116,144,0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.welcome-banner .wb-blob {
    position: absolute;
    top: -20px; left: 35%;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(139,92,246,0.20) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.welcome-left { position: relative; z-index: 1; flex: 1; }

.welcome-greeting {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: rgba(255,255,255,0.88);
    margin-bottom: 20px;
}

.welcome-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.18);
}

/* Meta rows */
.welcome-meta--stack {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.welcome-meta--stack-info {
    margin-top: 8px;
}
.meta-icon-tint {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}
.welcome-meta--stack .welcome-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.welcome-right {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.welcome-avatar-wrap {
    position: relative;
    display: inline-block;
}
.welcome-avatar-wrap::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.1), rgba(255,255,255,0.7));
    animation: spin-ring 8s linear infinite;
}
.welcome-avatar-wrap .avatar,
.welcome-avatar-wrap .avatar--initials {
    width: 130px !important;
    height: 130px !important;
    font-size: 48px !important;
    border: 3px solid rgba(255,255,255,0.85);
    box-shadow: 0 8px 28px rgba(0,0,0,0.30);
    position: relative;
    z-index: 1;
}
@keyframes spin-ring {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .welcome-banner { padding: 26px 24px; min-height: auto; }
    .welcome-greeting { font-size: 18px; }
    .welcome-name { font-size: 26px; letter-spacing: -0.5px; }
    .welcome-avatar-wrap .avatar,
    .welcome-avatar-wrap .avatar--initials { width: 90px !important; height: 90px !important; font-size: 34px !important; }
}
@media (max-width: 400px) {
    .welcome-greeting { font-size: 16px; }
    .welcome-meta--stack .welcome-meta-item { font-size: 12.5px; }
}

/* ============================================
   MONTHLY DEPOSIT NOTICE
   ============================================ */
.deposit-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 24px;
    border: 1.5px solid transparent;
    position: relative;
    overflow: hidden;
}
.deposit-notice::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    border-radius: inherit;
}

/* State colours */
.notice--paid    { background: #f0fdf4; border-color: #86efac; }
.notice--paid    .dn-title { color: #15803d; }
.notice--paid    .dn-sub   { color: #166534; }

.notice--pending { background: #fffbeb; border-color: #fcd34d; }
.notice--pending .dn-title { color: #92400e; }
.notice--pending .dn-sub   { color: #78350f; }

.notice--due     { background: #eff6ff; border-color: #93c5fd; }
.notice--due     .dn-title { color: #1d4ed8; }
.notice--due     .dn-sub   { color: #1e40af; }

.notice--urgent  { background: #fff7ed; border-color: #fb923c; }
.notice--urgent  .dn-title { color: #c2410c; }
.notice--urgent  .dn-sub   { color: #9a3412; }

.notice--overdue { background: #fff1f2; border-color: #fca5a5; }
.notice--overdue .dn-title { color: #b91c1c; }
.notice--overdue .dn-sub   { color: #991b1b; }

.notice--arrears { background: #fefce8; border-color: #fde047; }
.notice--arrears .dn-title { color: #854d0e; }
.notice--arrears .dn-sub   { color: #713f12; }

.dn-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}
.dn-body {
    flex: 1;
    min-width: 0;
}
.dn-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
}
.dn-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
    line-height: 1.5;
}
.dn-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.dn-badge {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 100px;
    white-space: nowrap;
}
.dn-badge--green  { background: #dcfce7; color: #15803d; }
.dn-badge--yellow { background: #fef9c3; color: #92400e; }
.dn-badge--red    { background: #fee2e2; color: #b91c1c; }
.dn-badge--blue   { background: #dbeafe; color: #1d4ed8; }

.dn-days {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.65;
    text-align: right;
}
.dn-month-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.dn-month-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    background: rgba(234,179,8,0.18);
    border: 1px solid rgba(234,179,8,0.40);
    color: #854d0e;
    border-radius: 100px;
    padding: 3px 12px;
}

@media (max-width: 520px) {
    .deposit-notice { flex-wrap: wrap; }
    .dn-meta { flex-direction: row; align-items: center; width: 100%; justify-content: flex-start; }
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content { padding: 28px 20px; min-height: calc(100vh - 140px); }

.page-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-header h1 { font-size: 22px; font-weight: 700; }

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    border: 1px solid;
    font-size: 14px;
    font-weight: 500;
}
.alert-success { background: #dcfce7; border-color: #86efac; color: #166534; }
.alert-error   { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.alert-info    { background: #dbeafe; border-color: #93c5fd; color: #1e40af; }

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    border: 1px solid rgba(226,232,240,0.8);
}
.card h2, .card h3 { margin-bottom: 14px; font-weight: 600; }

/* card header */
.card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.card-header h3 { font-size: 16px; font-weight: 600; }

/* ============================================
   STAT CARDS — colorful
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
    overflow: hidden;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-card .stat-label { color: var(--text-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; }
.stat-card .stat-value { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1.15; font-family: 'Plus Jakarta Sans', sans-serif; }
.stat-card .stat-sub   { font-size: 12.5px; color: var(--text-muted); margin-top: 7px; }

/* old aliases */
.stat-card .label { color: var(--text-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; }
.stat-card .value { font-size: 26px; font-weight: 800; color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif; }

/* color variants */
.stat-card--indigo  { border-top-color: #6366f1; background: linear-gradient(160deg, #fff 60%, #eef2ff); }
.stat-card--green   { border-top-color: #10b981; background: linear-gradient(160deg, #fff 60%, #ecfdf5); }
.stat-card--red     { border-top-color: #f43f5e; background: linear-gradient(160deg, #fff 60%, #fff1f2); }
.stat-card--amber   { border-top-color: #f59e0b; background: linear-gradient(160deg, #fff 60%, #fffbeb); }
.stat-card--purple  { border-top-color: #8b5cf6; background: linear-gradient(160deg, #fff 60%, #f5f3ff); }
.stat-card--teal    { border-top-color: #06b6d4; background: linear-gradient(160deg, #fff 60%, #ecfeff); }
.stat-card--orange  { border-top-color: #f97316; background: linear-gradient(160deg, #fff 60%, #fff7ed); }
.stat-card--blue    { border-top-color: #3b82f6; background: linear-gradient(160deg, #fff 60%, #eff6ff); }

.stat-card--highlight { border-top-color: var(--success); background: linear-gradient(160deg, #fff 50%, #ecfdf5); }
.stat-card--muted     { border-top-color: #94a3b8; background: #f8fafc; }

/* legacy classes */
.stat-card.success { border-top-color: var(--success); }
.stat-card.danger  { border-top-color: var(--danger); }
.stat-card.warning { border-top-color: var(--warning); }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; margin-bottom: 7px;
    font-weight: 500; font-size: 13.5px; color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px; font-family: inherit;
    background: white; color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.form-group input[type="file"] { padding: 8px 12px; background: #f8fafc; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block; padding: 10px 20px;
    background: var(--primary); color: white;
    border: none; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; font-family: inherit;
    cursor: pointer; text-decoration: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(99,102,241,0.35); }
.btn:active { transform: translateY(0); }
.btn-success { background: var(--success); box-shadow: 0 2px 8px rgba(16,185,129,0.25); }
.btn-success:hover { background: #059669; box-shadow: 0 4px 14px rgba(16,185,129,0.35); }
.btn-danger  { background: var(--danger); box-shadow: 0 2px 8px rgba(244,63,94,0.25); }
.btn-danger:hover  { background: #e11d48; box-shadow: 0 4px 14px rgba(244,63,94,0.35); }
.btn-secondary { background: #64748b; box-shadow: none; }
.btn-secondary:hover { background: #475569; }
.btn-sm { padding: 6px 13px; font-size: 12.5px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ============================================
   TABLES
   ============================================ */
.table-wrapper  { overflow-x: auto; }
.table-responsive { overflow-x: auto; }
.table {
    width: 100%; border-collapse: collapse;
    background: white; font-size: 14px;
}
.table th, .table td {
    padding: 13px 15px; text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14.5px;
}
.table th {
    background: #f8fafc;
    font-weight: 700; font-size: 11.5px;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.07em;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #f8fafc; }

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-block; padding: 3px 11px;
    border-radius: 20px; font-size: 11.5px; font-weight: 600;
    letter-spacing: 0.02em;
}
.badge-success  { background: #dcfce7; color: #166534; }
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-info     { background: #dbeafe; color: #1e40af; }

.badge--approved  { background: #dcfce7; color: #166534; }
.badge--pending   { background: #fef3c7; color: #92400e; }
.badge--rejected  { background: #fee2e2; color: #991b1b; }
.badge--active    { background: #dbeafe; color: #1e40af; }
.badge--inactive  { background: #f1f5f9; color: #64748b; }
.badge--completed { background: #dcfce7; color: #166534; }
.badge--cancelled { background: #fee2e2; color: #991b1b; }

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-wrapper {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    padding: 16px;
}
.login-card {
    background: white; padding: 36px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(99,102,241,0.25);
    width: 100%; max-width: 420px;
}
.login-card h1 { text-align: center; margin-bottom: 6px; color: var(--primary); font-size: 28px; font-weight: 800; font-family: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif; }
.login-card .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 28px; font-size: 15px; }

/* ============================================
   FOOTER
   ============================================ */
.footer { margin-top: 56px; }

.footer-top {
    background: linear-gradient(180deg, #faf9ff 0%, #f0eeff 100%);
    border-top: 1px solid #e9e4ff;
    padding: 36px 0 28px;
    text-align: center;
}

/* Brand */
.footer-brand-wrap { margin-bottom: 14px; }
.footer-brand {
    font-size: 22px;
    font-weight: 800;
    color: #4f46e5;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
    font-family: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;
}
.footer-tagline {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.55;
}

/* Badges */
.footer-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
}
.footer-badge {
    background: #ede9fe;
    color: #6d28d9;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Divider */
.footer-divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, #a78bfa, #67e8f9);
    border-radius: 2px;
    margin: 0 auto 22px;
}

/* Quote */
.footer-quote-wrap { max-width: 520px; margin: 0 auto; }
.footer-quote-icon {
    display: block;
    font-size: 32px;
    color: #c4b5fd;
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: 6px;
}
.footer-quote-text {
    font-size: 15px;
    color: #6d28d9;
    font-style: italic;
    line-height: 1.75;
    opacity: 0.82;
    font-family: 'Hind Siliguri', Georgia, serif;
}

/* Bottom bar */
.footer-bottom {
    background: #ede9fe;
    padding: 12px 0;
    border-top: 1px solid #ddd6fe;
}
.footer-bottom-inner {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 24px;
    color: #7c3aed;
    font-size: 12.5px;
    font-weight: 500;
    flex-wrap: wrap;
}
.footer-credit-wrap {
    display: flex;
    justify-content: center;
}

.footer-credit-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 100px;
    border: 1px solid rgba(79, 70, 229, 0.25);
    font-size: 10.5px;
    font-weight: 600;
    color: #4f46e5;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.1), 0 1px 4px rgba(0, 0, 0, 0.05);
}

.footer-credit-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: creditShine 4s ease-in-out infinite;
}

@keyframes creditShine {
    0% {
        left: -80%;
    }
    40% {
        left: 130%;
    }
    100% {
        left: 130%;
    }
}

.footer-credit-heart {
    color: #f43f5e;
    font-size: 15px;
    animation: heartBeat 1.6s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartBeat {
    0%,
    100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.25);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.15);
    }
    56% {
        transform: scale(1);
    }
}

.footer-credit-name {
    font-weight: 800;
    font-size: 12.5px;
    background: linear-gradient(120deg, #4f46e5, #7c3aed, #0891b2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameShimmer 3s linear infinite;
}

@keyframes nameShimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* ============================================
   AVATAR
   ============================================ */
.avatar {
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
}
.avatar--initials {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    vertical-align: middle;
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}
.profile-avatar-card { text-align: center; }
.avatar-preview-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
.avatar-preview-wrap .avatar,
.avatar-preview-wrap .avatar--initials {
    width: 100px !important;
    height: 100px !important;
    font-size: 36px !important;
}
@media (max-width: 700px) {
    .profile-layout { grid-template-columns: 1fr; }
}

/* ============================================
   PAGE TITLE
   ============================================ */
.page-title {
    font-size: 23px;
    font-weight: 800;
    margin-bottom: 22px;
    color: var(--text);
    letter-spacing: -0.3px;
}

/* ============================================
   RESPONSIVE EXTRAS
   ============================================ */
@media (max-width: 768px) {
    .main-content { padding: 20px 14px; }
    .form-row { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .stat-card .stat-value,
    .stat-card .value { font-size: 20px; }
    .table th, .table td { padding: 9px 10px; font-size: 13px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card { padding: 16px; }
}
@media (max-width: 400px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   INVESTMENT LIST (member view)
   ============================================ */
.inv-list { display: flex; flex-direction: column; gap: 12px; }

.inv-item {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    transition: box-shadow 0.15s;
}
.inv-item:hover { box-shadow: var(--shadow); }
.inv-item--active { border-left: 4px solid #6366f1; background: linear-gradient(160deg, #fff 70%, #eef2ff); }

.inv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}
.inv-item-title { font-size: 16px; font-weight: 700; color: var(--text); }
.inv-item-amount { font-size: 18px; font-weight: 800; color: #4f46e5; white-space: nowrap; }
.inv-item-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; margin-bottom: 10px; }
.inv-item-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

/* ============================================
   HELPERS
   ============================================ */
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 22px; }
.mt-4 { margin-top: 30px; }
.mb-2 { margin-bottom: 16px; }
.flex         { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
hr { border: none; border-top: 1px solid var(--border); }
