/*!
 * ALIF Nigeria - Master Application Styling
 */
:root {
    --ink: #0f172a;
    --green: #16a34a;
    --green2: #15803d;
    --green-light: #dcfce7;
    --gold: #f59e0b;
    --gold-light: #fffbeb;
    --cream: #f8fafc;
    --muted: #475569;
    --line: #e2e8f0;
    --white: #ffffff;
    --danger: #ef4444;
    --success: #10b981;
    --shadow: 0 20px 50px rgba(6, 78, 59, 0.12);
    --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
    position: relative;
    min-height: 100vh;
}

/* Background Watermark with Official App Logo (PNG) */
.app-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(580px, 80vw);
    height: min(580px, 80vw);
    background-image: url('../images/background.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    opacity: 0.035;
    pointer-events: none;
    z-index: 0;
    user-select: none;
    -webkit-user-select: none;
}

/* Ensure admin dashboard content stays cleanly above watermark */
.dash-wrapper,
.dash-layout,
.dash-sidebar,
.table-panel,
.modal-box {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .app-watermark {
        width: min(340px, 85vw);
        height: min(340px, 85vw);
        opacity: 0.04;
    }
}

@media print {
    .app-watermark {
        position: fixed !important;
        opacity: 0.035 !important;
        width: 450px !important;
        height: 450px !important;
    }
}

button, input, select, textarea { font: inherit; }
button, a { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.wrap {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

/* Top bar */
.topbar {
    background: linear-gradient(90deg, #064e3b 0%, #065f46 55%, #0f172a 100%);
    color: #e2e8f0;
    font-size: 0.82rem;
    padding: 9px 0;
}
.topbar .wrap {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.topbar-contact {
    display: flex;
    align-items: center;
    gap: 15px;
}
.topbar-contact a:hover {
    color: var(--gold);
}
.topbar-socials {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
}
.topbar-socials a {
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    vertical-align: middle;
}
.topbar-socials a:hover {
    color: #ffffff;
    background: var(--gold);
    transform: translateY(-1px);
}
.topbar-socials a svg {
    display: block;
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}
.navinner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 850;
    letter-spacing: 0.03em;
}
.logo-img {
    height: 46px;
    width: 46px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 12px rgba(23, 77, 53, 0.2);
}
.brand-text small {
    display: block;
    font-size: 0.68rem;
    color: var(--muted);
    font-weight: 650;
    letter-spacing: 0.11em;
}

.navlinks {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.92rem;
    font-weight: 650;
}
.navlinks a {
    transition: color 0.2s;
}
.navlinks a:hover {
    color: var(--green2);
}
.navlinks a.active-link {
    color: var(--green);
    font-weight: 850;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 4px;
}

.navactions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lang-select {
    border: 1px solid var(--line);
    background: white;
    border-radius: 10px;
    padding: 8px 12px;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 700;
}

/* Buttons */
.btn {
    border: 0;
    border-radius: 12px;
    padding: 11px 18px;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn-primary {
    background: linear-gradient(135deg, #16a34a, #059669);
    color: white;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.28);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #15803d, #047857);
    color: white;
}
.btn-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.30);
}
.btn-gold:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
}
.btn-outline {
    border: 1.5px solid #cbd6cc;
    background: transparent;
    color: var(--ink);
}
.btn-outline:hover {
    border-color: var(--green);
    color: var(--green);
}
.btn-sm {
    padding: 7px 12px;
    font-size: 0.82rem;
    border-radius: 8px;
}
.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    background: #b72b22;
    color: white;
}
.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover {
    background: #1e7e4a;
    color: white;
}
.btn-warning {
    background: #f59e0b;
    color: #ffffff;
}
.btn-warning:hover {
    background: #d97706;
    color: #ffffff;
}
.btn-info {
    background: #0284c7;
    color: #ffffff;
}
.btn-info:hover {
    background: #0369a1;
    color: #ffffff;
}

/* Unified Micro Action Buttons (.btn-action / .btn-xs) */
.btn-xs,
.btn-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 9px !important;
    font-size: 0.74rem !important;
    font-weight: 650 !important;
    line-height: 26px !important;
    border-radius: 6px !important;
    gap: 4px !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    border: 1px solid transparent !important;
    transition: all 0.15s ease-in-out !important;
    text-decoration: none !important;
    cursor: pointer !important;
    user-select: none !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}
.btn-xs:hover,
.btn-action:hover {
    transform: translateY(-1px) !important;
}

/* Square Icon-Only Buttons */
.btn-xs.btn-icon,
.btn-action.btn-icon {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 0.82rem !important;
}

/* Dedicated Variants for Unified Action Buttons */
.btn-action-outline,
.btn-outline.btn-xs {
    background: #ffffff !important;
    color: #374151 !important;
    border-color: #d1d5db !important;
}
.btn-action-outline:hover,
.btn-outline.btn-xs:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
    border-color: #9ca3af !important;
}

.btn-action-primary,
.btn-primary.btn-xs {
    background: #28a745 !important;
    color: #ffffff !important;
    border-color: #28a745 !important;
}
.btn-action-primary:hover,
.btn-primary.btn-xs:hover {
    background: #113a28 !important;
    border-color: #113a28 !important;
    color: #ffffff !important;
}

.btn-action-gold,
.btn-gold.btn-xs {
    background: #fef3c7 !important;
    color: #92400e !important;
    border-color: #fcd34d !important;
}
.btn-action-gold:hover,
.btn-gold.btn-xs:hover {
    background: #fde68a !important;
    color: #78350f !important;
    border-color: #f59e0b !important;
}

.btn-action-success,
.btn-success.btn-xs {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border-color: #a7f3d0 !important;
    font-weight: 700 !important;
}
.btn-action-success:hover,
.btn-success.btn-xs:hover {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}

.btn-action-warning,
.btn-warning.btn-xs {
    background: #fff7ed !important;
    color: #c2410c !important;
    border-color: #fed7aa !important;
}
.btn-action-warning:hover,
.btn-warning.btn-xs:hover {
    background: #ea580c !important;
    color: #ffffff !important;
    border-color: #ea580c !important;
}

.btn-action-info,
.btn-info.btn-xs {
    background: #f0f9ff !important;
    color: #0369a1 !important;
    border-color: #bae6fd !important;
}
.btn-action-info:hover,
.btn-info.btn-xs:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

.btn-action-danger,
.btn-danger.btn-xs {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border-color: #fecaca !important;
}
.btn-action-danger:hover,
.btn-danger.btn-xs:hover {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
}

/* Action Button Row Container in Data Tables */
.table-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    vertical-align: middle !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.6rem;
    color: var(--ink);
}

/* Hero Section */
.hero {
    background: radial-gradient(ellipse at 85% 15%, rgba(245, 158, 11, 0.28) 0%, transparent 45%),
                radial-gradient(ellipse at 15% 85%, rgba(52, 211, 153, 0.25) 0%, transparent 50%),
                linear-gradient(125deg, #064e3b 0%, #059669 52%, #16a34a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    padding: 80px 0 85px;
    position: relative;
    z-index: 1;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--gold);
}
.eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--gold);
}
h1 {
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 18px 0 20px;
    font-weight: 900;
}
.hero p {
    color: #d5e2d9;
    font-size: 1.1rem;
    max-width: 580px;
}
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.hero-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    color: #d5e2d9;
    font-size: 0.88rem;
}

/* Hero Art & Floating Cards */
.hero-art {
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-card {
    position: relative;
    width: min(350px, 92%);
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(14px);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    text-align: center;
}
.hero-card .crest {
    width: 74px;
    height: 74px;
    margin: 0 auto 14px;
    border: 2px solid var(--gold);
    border-radius: 20px;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.hero-card .crest img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-card h3 {
    font-size: 1.05rem;
    margin: 0;
    color: #ffffff;
}
.hero-card .sub {
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    margin: 4px 0 20px;
    font-weight: 700;
}
.mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.mini-stat {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.mini-stat b {
    display: block;
    font-size: 1.4rem;
    color: var(--gold);
}
.mini-stat span {
    font-size: 0.76rem;
    color: #d5e2d9;
}
.floating {
    position: absolute;
    background: white;
    color: var(--ink);
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    font-size: 0.82rem;
    font-weight: 750;
    z-index: 3;
}
.floating strong {
    color: var(--green2);
    display: block;
    font-size: 0.95rem;
}
.float-one { top: 20px; right: -5px; }
.float-two { bottom: 25px; left: -10px; }

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: -35px;
    position: relative;
    z-index: 10;
}
.stat-box {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.stat-box .ico {
    width: 42px;
    height: 42px;
    background: var(--green-light);
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--green);
    font-size: 1.2rem;
    font-weight: bold;
}
.stat-box strong {
    display: block;
    font-size: 2rem;
    letter-spacing: -0.04em;
    margin: 12px 0 2px;
    color: var(--ink);
    font-weight: 850;
}
.stat-box span {
    font-size: 0.86rem;
    color: var(--muted);
    font-weight: 600;
}

/* Sections */
.section {
    padding: 80px 0;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 36px;
}
.kicker {
    color: var(--green2);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 850;
}
.section h2 {
    font-size: clamp(2rem, 3.2vw, 2.9rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
    margin: 8px 0 0;
    font-weight: 850;
}
.section-head p {
    color: var(--muted);
    max-width: 480px;
    margin: 0;
    font-size: 1rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.card-header-banner {
    height: 140px;
    padding: 20px;
    background: linear-gradient(135deg, #059669, #10b981);
    display: flex;
    align-items: flex-end;
    position: relative;
}
.card-header-banner.gold {
    background: linear-gradient(135deg, #d97706, #fbbf24);
}
.card-header-banner.dark {
    background: linear-gradient(135deg, #064e3b, #0f766e);
}
.card-tag {
    background: rgba(255, 255, 255, 0.92);
    color: var(--green);
    border-radius: 100px;
    padding: 6px 12px;
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.04em;
}
.card-body {
    padding: 24px;
}
.card-body h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 800;
}
.card-body p {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0 0 20px;
    line-height: 1.5;
}
.card-link {
    color: var(--green2);
    font-weight: 800;
    font-size: 0.92rem;
}

/* About Grid */
.about {
    background: #edf1e9;
}
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}
.about-visual {
    min-height: 380px;
    border-radius: 24px;
    background: linear-gradient(145deg, #143c2a, #225a3e);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    box-shadow: var(--shadow);
}
.checklist {
    display: grid;
    gap: 14px;
    margin: 26px 0;
}
.check-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.check-item i {
    font-style: normal;
    background: #d9e8dc;
    color: var(--green);
    height: 28px;
    width: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 900;
    flex-shrink: 0;
}
.check-item span {
    color: #34443a;
    font-weight: 600;
}

/* Donate Section */
.donate-section {
    background: #28a745
    color: white;
}
.donate-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 45px;
    align-items: flex-start;
}
.donate-form {
    background: white;
    color: var(--ink);
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.donate-form h3 {
    margin: 0 0 6px;
    font-size: 1.45rem;
    font-weight: 850;
}
.donate-form p {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0 0 20px;
}
.amount-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px 0 16px;
}
.amount-btn {
    border: 1.5px solid var(--line);
    background: white;
    border-radius: 10px;
    padding: 12px 6px;
    font-weight: 800;
    color: var(--ink);
    transition: all 0.2s;
}
.amount-btn.active, .amount-btn:hover {
    border-color: var(--green);
    background: var(--green-light);
    color: var(--green);
}

/* Fields & Forms */
.form-field {
    display: grid;
    gap: 6px;
    margin: 14px 0;
}
.form-field label {
    font-size: 0.84rem;
    font-weight: 750;
    color: var(--ink);
}
.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid #d8e0d8;
    border-radius: 10px;
    background: white;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    border-color: var(--green2);
    box-shadow: 0 0 0 3px rgba(36, 106, 73, 0.15);
}

/* Modals */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 19, 12, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-backdrop.open {
    display: flex;
}
.modal-box {
    background: white;
    border-radius: 22px;
    padding: 30px;
    width: min(620px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    position: relative;
}
.modal-box.modal-lg {
    width: min(850px, 100%);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.modal-header h2 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 850;
}
.modal-close {
    border: 0;
    background: #edf1e9;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    display: grid;
    place-items: center;
    color: var(--ink);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

/* Dashboard Portal */
.dash-wrapper {
    padding: 35px 0 60px;
}
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
    flex-wrap: wrap;
}
.dash-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}
.dash-main {
    min-width: 0;
    max-width: 100%;
    width: 100%;
}
.dash-tab-content {
    min-width: 0;
    max-width: 100%;
    width: 100%;
}
.dash-sidebar {
    background: var(--ink);
    color: white;
    padding: 22px;
    border-radius: 20px;
    align-self: flex-start;
}
.dash-sidebar h3 {
    font-size: 0.85rem;
    color: var(--gold);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.dash-sidebar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: #d3dfd6;
    padding: 12px 14px;
    border-radius: 12px;
    margin: 4px 0;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.2s;
}
.dash-sidebar-btn.active, .dash-sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}
.dash-grid-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.dash-tile {
    background: white;
    border: 1px solid var(--line);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}
.dash-tile span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 650;
}
.dash-tile strong {
    display: block;
    font-size: 1.85rem;
    margin-top: 6px;
    color: var(--ink);
    font-weight: 850;
}

/* Tables */
.table-panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
}
.table-panel-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #ffffff;
}
.table-panel-header h3 {
    margin: 0;
    font-size: 1.22rem;
    font-weight: 850;
    color: var(--ink);
}
.table-panel-header small {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 3px;
}

/* Modern Unified Table Filter Bar */
.table-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 20px;
    background: #fbfdfb;
    border-bottom: 1px solid var(--line);
}
.table-filter-bar .filter-search {
    flex: 1 1 260px;
    min-width: 220px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    font-size: 0.84rem;
    background: #ffffff;
    color: var(--ink);
    box-sizing: border-box;
    transition: all 0.15s ease;
}
.table-filter-bar .filter-search:focus {
    border-color: var(--green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(23, 77, 53, 0.1);
}
.table-filter-bar .filter-select {
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    font-size: 0.83rem;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}
.table-filter-bar .filter-select:focus {
    border-color: var(--green);
    outline: none;
}
.table-filter-bar .btn-filter {
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    background: #ffffff;
    color: var(--ink);
    border: 1.5px solid var(--line);
    cursor: pointer;
    transition: all 0.15s ease;
}
.table-filter-bar .btn-filter:hover {
    border-color: var(--green);
    color: var(--green);
    background: #f4fbf7;
}

.table-responsive {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 650px;
    background: #ffffff;
}
.data-table th, .data-table td {
    padding: 11px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.data-table th {
    background: #f7faf8;
    color: #4b6354;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 750;
    border-bottom: 1.5px solid #dbe6dd;
}
.data-table tbody tr:hover {
    background: #fbfdfb;
}

/* Responsive Bordered Section & Both-Axis Scroll Container */
.table-panel-bordered {
    border: 2px solid #ccd9d1;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(16, 37, 28, 0.06);
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s ease;
}
.table-panel-bordered:focus-within,
.table-panel-bordered:hover {
    border-color: #9cb8a7;
}

.table-scroll-both {
    width: 100%;
    max-width: 100%;
    max-height: 560px;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.table-scroll-both thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fafbfa;
    border-bottom: 2px solid #ccd9d1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

/* Custom Sleek Scrollbars for Both Axes */
.table-scroll-both::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.table-scroll-both::-webkit-scrollbar-track {
    background: #f4f7f5;
    border-radius: 4px;
}
.table-scroll-both::-webkit-scrollbar-thumb {
    background: #b5c7bc;
    border-radius: 4px;
}
.table-scroll-both::-webkit-scrollbar-thumb:hover {
    background: #28a745;
}

/* Table Specific Layouts for Expenditures & Audit */
.expenditures-data-table {
    min-width: 1050px;
    width: 100%;
}
.expenditures-data-table td, 
.expenditures-data-table th {
    white-space: nowrap;
}
.expenditures-data-table td:nth-child(3),
.expenditures-data-table td:nth-child(4),
.expenditures-data-table td:nth-child(6) {
    white-space: normal;
    min-width: 160px;
}

.audit-data-table {
    min-width: 950px;
    width: 100%;
}
.audit-data-table td, 
.audit-data-table th {
    white-space: nowrap;
}
.audit-data-table td:nth-child(5) {
    white-space: normal;
    min-width: 280px;
    max-width: 440px;
    word-break: break-word;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.2;
    border: 1px solid transparent;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge-pending { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.badge-approved { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.badge-rejected { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.badge-suspended { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }
.badge-info { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.badge-gold { background: #fef9c3; color: #854d0e; border-color: #fef08a; }

/* Footer */
.footer {
    background: linear-gradient(180deg, #064e3b 0%, #022c22 100%);
    color: #e2e8f0;
    padding: 60px 0 25px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer p, .footer a {
    color: #aebfb3;
    font-size: 0.90rem;
}
.footer h4 {
    color: white;
    margin: 6px 0 16px;
    font-size: 1.05rem;
}
.footer-links {
    display: grid;
    gap: 10px;
}
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    color: #94a89a;
    font-size: 0.82rem;
}

/* Table Responsiveness & Utilities */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}
.data-table {
    min-width: 600px;
}

/* Reusable Responsive Grids */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.donate-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 45px;
    align-items: flex-start;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 45px;
    align-items: flex-start;
}
.dash-2col {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: flex-start;
}
.projects-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.acronym-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.amount-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.amount-btn {
    width: 100%;
    padding: 10px 6px;
    font-size: 0.90rem;
    text-align: center;
    border-radius: 10px;
}

/* Responsiveness Across Breakpoints */
@media (max-width: 960px) {
    .navinner {
        position: relative;
    }
    .navlinks {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 20px 24px;
        border-bottom: 2px solid var(--gold);
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        border-radius: 0 0 16px 16px;
    }
    .navlinks.open { display: flex; }
    .navlinks a {
        padding: 10px 14px;
        border-radius: 8px;
        font-size: 0.98rem;
    }
    .navlinks a:hover {
        background: #f7f9f7;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 10px;
        border: 1.5px solid var(--line);
        background: #ffffff;
        cursor: pointer;
        font-size: 1.4rem;
        color: var(--green);
    }
    
    .hero-grid { grid-template-columns: 1fr; gap: 20px; padding: 45px 0 55px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
    .cards-grid { grid-template-columns: 1fr; }
    .about-grid, .donate-grid, .contact-grid, .projects-bottom-grid, .dash-2col { grid-template-columns: 1fr; gap: 30px; }
    .acronym-grid { grid-template-columns: repeat(2, 1fr); }
    .docs-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    
    .dash-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .dash-sidebar {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 8px;
        padding: 12px 14px;
        -webkit-overflow-scrolling: touch;
        background: #0f271d;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 16px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
        scrollbar-width: thin;
        scrollbar-color: var(--gold) #0f271d;
    }
    .dash-sidebar::-webkit-scrollbar {
        height: 5px;
    }
    .dash-sidebar::-webkit-scrollbar-thumb {
        background: var(--gold);
        border-radius: 99px;
    }
    .dash-sidebar h3 { display: none; }
    .dash-sidebar-btn {
        flex: 0 0 auto;
        width: auto !important;
        max-width: max-content;
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 0.83rem;
        font-weight: 600;
        border-radius: 99px;
        color: #f0f5f2;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        margin: 0;
        text-align: center;
        transition: all 0.2s ease;
    }
    .dash-sidebar-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
    }
    .dash-sidebar-btn.active {
        background: var(--green) !important;
        color: #ffffff !important;
        border-color: var(--gold) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }
    
    .dash-grid-stats { grid-template-columns: repeat(2, 1fr); }
    .form-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .topbar .wrap {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-align: center;
        padding: 6px 12px;
    }
    .topbar-info, .topbar-contact {
        justify-content: center;
        flex-wrap: wrap;
        font-size: 0.76rem;
    }
    .grid-2col, .grid-3col, .grid-4col {
        grid-template-columns: 1fr;
    }
    .modal-box {
        width: 95vw;
        padding: 20px 16px;
    }
    .table-panel-bordered {
        border-width: 1.5px;
        border-radius: 14px;
    }
    .table-scroll-both {
        max-height: 440px;
    }
}

@media (max-width: 600px) {
    .stats-bar { grid-template-columns: 1fr; }
    .dash-grid-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; text-align: center; }
    .topbar { font-size: 0.74rem; }
    .acronym-grid, .docs-grid { grid-template-columns: 1fr; }
    .amount-pills { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .wrap { width: 94%; }
    .brand { gap: 8px; }
    .logo-img { width: 38px; height: 38px; border-radius: 8px; }
    .brand-text { font-size: 0.95rem; }
    .brand-text small { font-size: 0.60rem; letter-spacing: 0.06em; }
    .navactions { gap: 6px; }
    .lang-select { padding: 6px 8px; font-size: 0.78rem; }
    h1 { font-size: 2.1rem; }
    .section { padding: 40px 0; }
    .table-scroll-both {
        max-height: 380px;
    }
    
    .modal-backdrop {
        padding: 10px;
    }
    .modal-box {
        padding: 20px 14px;
        border-radius: 16px;
        width: 100%;
    }
    .modal-header h2 {
        font-size: 1.25rem;
    }
    .btn {
        padding: 10px 14px;
        font-size: 0.88rem;
    }
}

/* Registration Area of Interest Category Selector */
.reg-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
@media (max-width: 640px) {
    .reg-type-selector {
        grid-template-columns: 1fr;
    }
}
.reg-type-card {
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.reg-type-card:hover {
    border-color: var(--green);
    background: #f7faf8;
}
.reg-type-card.active {
    border-color: var(--green);
    background: #edf7f0;
    box-shadow: 0 4px 12px rgba(23, 77, 53, 0.12);
}
.reg-type-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.reg-type-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--green);
}
.reg-type-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 100px;
    text-transform: uppercase;
}
.reg-type-badge.fee {
    background: #fff3cd;
    color: #856404;
}
.reg-type-badge.free {
    background: #d4edda;
    color: #155724;
}
.reg-type-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.35;
}

/* Social Media Badges & Links */
.footer-social-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e4eee7;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.footer-social-pill:hover {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.contact-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.contact-social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    background: white;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    transition: all 0.2s ease;
    text-align: center;
}
.contact-social-card:hover {
    border-color: var(--green);
    color: var(--green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.contact-social-card .icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    margin-bottom: 6px;
    background: var(--cream);
    color: var(--green);
}

/* ==========================================================================
   Global Interactive Action Loader & Button Loading States
   ========================================================================== */
.global-action-indicator {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-24px);
    background: #28a745;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32), 0 3px 8px rgba(0, 0, 0, 0.16);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    z-index: 9999999;
    font-size: 0.88rem;
    font-weight: 650;
    letter-spacing: 0.2px;
    border: 1.5px solid #d8b75c;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.global-action-indicator.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.action-spinner {
    width: 17px;
    height: 17px;
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    border-top-color: #d8b75c;
    border-radius: 50%;
    display: inline-block;
    animation: alifSpin 0.7s infinite linear;
    flex-shrink: 0;
}

.btn-loading {
    position: relative !important;
    pointer-events: none !important;
    opacity: 0.8 !important;
    cursor: wait !important;
    filter: brightness(0.95);
}

.btn-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: currentColor;
    border-radius: 50%;
    vertical-align: -1px;
    margin-right: 5px;
    animation: alifSpin 0.65s infinite linear;
    flex-shrink: 0;
}

@keyframes alifSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   ADMIN TABLE PAGINATION & RECORD COUNT BAR
   ========================================== */
.admin-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fbf9;
    border-top: 1px solid var(--line, #e5e7eb);
    border-radius: 0 0 12px 12px;
    font-size: 0.84rem;
    color: var(--muted, #6b7280);
}

.admin-pagination-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-pagination-info strong {
    color: var(--green, #28a745);
    font-weight: 700;
}

.admin-per-page-wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted, #6b7280);
}

.admin-per-page-select {
    padding: 3px 8px;
    border-radius: 6px;
    border: 1.5px solid var(--line, #d1d5db);
    background: #ffffff;
    color: var(--green, #28a745);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
}

.admin-per-page-select:focus {
    border-color: var(--gold, #d8b75c);
}

.admin-pagination-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.pg-btn {
    min-width: 32px;
    height: 30px;
    padding: 0 9px;
    border-radius: 7px;
    border: 1.5px solid var(--line, #d1d5db);
    background: #ffffff;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pg-btn:hover:not(:disabled):not(.active) {
    border-color: var(--green, #28a745);
    color: var(--green, #28a745);
    background: #eef5f0;
}

.pg-btn.active {
    background: var(--green, #28a745);
    border-color: var(--green, #28a745);
    color: #ffffff;
    font-weight: 700;
}

.pg-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f3f4f6;
}

.pg-ellipsis {
    padding: 0 4px;
    color: var(--muted, #9ca3af);
    font-weight: 700;
}



