/* Altruis Charity Portal — Design System */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-subtle: #f1f5f9;
    --border-light: #e2e8f0;
    --border-focus: #0d9488;

    --primary-color: #0d9488;
    --primary-hover: #0f766e;
    --primary-light: #5eead4;
    --secondary-color: #6366f1;
    --secondary-hover: #4f46e5;
    --neutral-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --primary-wash: rgba(13, 148, 136, 0.08);
    --secondary-wash: rgba(99, 102, 241, 0.08);

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 3px rgba(31, 28, 26, 0.04);
    --shadow-sm: 0 4px 12px rgba(31, 28, 26, 0.06);
    --shadow-md: 0 8px 24px rgba(31, 28, 26, 0.08);
    --shadow-lg: 0 16px 48px rgba(31, 28, 26, 0.12);
    --shadow-primary: 0 8px 24px rgba(13, 148, 136, 0.25);

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 260px;
    --navbar-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-light);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 1rem;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--neutral-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

a { transition: color var(--transition), opacity var(--transition); }

/* ─── Top Bar ─── */
.site-topbar {
    background: linear-gradient(90deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8rem;
    padding: 0.5rem 0;
}

.site-topbar a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.site-topbar a:hover { color: #fff; }

/* ─── Navigation ─── */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 0.6rem 0;
    min-height: var(--navbar-height);
    box-shadow: var(--shadow-xs);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.navbar-custom .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-color);
    background: var(--primary-wash);
}

.navbar-toggler {
    border: 1px solid var(--border-light);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
}

.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--primary-wash); }

/* ─── Hero ─── */
.altruis-hero {
    background-image:
        linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(13, 148, 136, 0.45) 55%, rgba(20, 184, 166, 0.25) 100%),
        url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1600&q=80");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 72vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 5rem 0 4rem;
}

.altruis-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bg-light), transparent);
    pointer-events: none;
}

.altruis-hero .container { position: relative; z-index: 1; }

.altruis-hero h1 {
    color: #ffffff !important;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.12;
}

.altruis-hero p.lead {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 1.5rem;
    max-width: 540px;
}

/* ─── Page Hero (inner pages) ─── */
.page-hero {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #115e59 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12), transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.35), transparent 50%);
    pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
    color: #fff !important;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-hero .breadcrumb-nav {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1rem;
}

.page-hero .breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.page-hero .breadcrumb-nav a:hover { color: #fff; }

/* ─── Section Headers ─── */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
    margin: 0;
}

/* ─── Cards ─── */
.premium-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.premium-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(13, 148, 136, 0.25);
}

.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
    height: 100%;
}

.stat-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: rgba(61, 140, 64, 0.15);
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.stat-card .stat-icon.green { background: var(--primary-wash); color: var(--primary-color); }
.stat-card .stat-icon.orange { background: var(--secondary-wash); color: var(--secondary-color); }
.stat-card .stat-icon.dark { background: rgba(31, 28, 26, 0.08); color: var(--neutral-dark); }

.stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--neutral-dark);
    line-height: 1.2;
    margin: 0.25rem 0;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
}

.campaign-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.campaign-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.campaign-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.campaign-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ─── Colors & Text ─── */
.text-primary-accent { color: var(--primary-color) !important; }
.text-success-accent { color: #27ae60 !important; }
.text-secondary-accent { color: var(--secondary-color) !important; }

/* ─── Badges ─── */
.badge-wash {
    background: var(--primary-wash);
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-wash-hero {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-dense {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    letter-spacing: 0.03em;
}

.badge-verified {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.badge-tax {
    background-color: rgba(61, 140, 64, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(61, 140, 64, 0.2);
}

/* ─── Buttons ─── */
.btn-primary-accent {
    background: var(--primary-color);
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.7rem 1.75rem;
    font-size: 0.9rem;
    box-shadow: var(--shadow-primary);
    transition: all var(--transition);
}

.btn-primary-accent:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(61, 140, 64, 0.3);
}

.btn-secondary-accent {
    background: var(--secondary-color);
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.7rem 1.75rem;
    transition: all var(--transition);
}

.btn-secondary-accent:hover {
    background: var(--secondary-hover);
    transform: translateY(-1px);
}

.btn-outline-light-theme {
    background: var(--bg-white);
    border: 1.5px solid var(--border-light);
    color: var(--neutral-dark);
    border-radius: var(--radius-pill);
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    transition: all var(--transition);
    font-weight: 600;
}

.btn-outline-light-theme:hover {
    background: var(--primary-color);
    color: #ffffff !important;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-sidebar-toggle {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-dark);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-sidebar-toggle:hover {
    background: var(--primary-wash);
    color: var(--primary-color);
    border-color: rgba(61, 140, 64, 0.2);
}

/* ─── Progress ─── */
.progress-custom {
    background: var(--bg-subtle);
    height: 8px;
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.progress-bar-custom {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-pill);
    transition: width 0.8s ease;
}

/* ─── Dashboard Layout ─── */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - var(--navbar-height));
    position: relative;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(31, 28, 26, 0.5);
    z-index: 1040;
    opacity: 0;
    transition: opacity var(--transition);
    backdrop-filter: blur(2px);
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
    padding: 1.25rem 0.85rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: var(--navbar-height);
    height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
    z-index: 1045;
    transition: transform var(--transition);
}

.sidebar-profile {
    text-align: center;
    padding: 0.5rem 0.5rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1rem;
}

.sidebar-profile .profile-avatar {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
    margin: 0 auto 0.75rem;
}

.sidebar-profile h5 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.sidebar-profile small {
    font-size: 0.75rem;
    color: var(--text-light);
}

.sidebar-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-subtle);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
}

.sidebar-close:hover {
    background: var(--primary-wash);
    color: var(--primary-color);
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 0.2rem;
    transition: all var(--transition);
    font-weight: 600;
    font-size: 0.85rem;
}

.sidebar-nav-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav-link:hover {
    background: var(--primary-wash);
    color: var(--primary-color);
}

.sidebar-nav-link.active {
    background: var(--primary-wash);
    color: var(--primary-color);
    box-shadow: inset 3px 0 0 var(--primary-color);
}

.sidebar-nav-link.vip-link { color: #b45309; }
.sidebar-nav-link.vip-link:hover,
.sidebar-nav-link.vip-link.active {
    background: rgba(251, 191, 36, 0.12);
    color: #b45309;
}

.main-content {
    flex: 1;
    padding: 1.5rem 1.75rem 2.5rem;
    overflow-y: auto;
    min-width: 0;
    background: var(--bg-light);
}

.dashboard-page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.dashboard-page-header h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    margin: 0;
}

.dashboard-page-header .page-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-subtle);
    color: var(--text-muted);
}

.dashboard-badge.admin {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

.dashboard-badge.user {
    background: rgba(39, 174, 96, 0.08);
    color: #27ae60;
}

/* ─── Tables ─── */
.table-premium {
    margin: 0;
}

.table-premium thead th {
    background: var(--bg-subtle);
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-light);
    padding: 0.85rem 1rem;
    white-space: nowrap;
}

.table-premium tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    font-size: 0.875rem;
    border-color: var(--border-light);
    color: var(--text-muted);
}

.table-premium tbody tr {
    transition: background var(--transition);
}

.table-premium tbody tr:hover {
    background: rgba(61, 140, 64, 0.03);
}

.table-responsive-premium {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

/* ─── Forms ─── */
.form-light-theme {
    background: var(--bg-white) !important;
    border: 1.5px solid var(--border-light) !important;
    color: var(--neutral-dark) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.6rem 0.9rem !important;
    font-size: 0.875rem !important;
    transition: border-color var(--transition), box-shadow var(--transition) !important;
}

.form-light-theme:focus {
    border-color: var(--border-focus) !important;
    box-shadow: 0 0 0 3px var(--primary-wash) !important;
    outline: none !important;
}

.form-label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--neutral-dark);
    margin-bottom: 0.4rem;
}

/* ─── Modals ─── */
.modal-premium .modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-premium .modal-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 1.25rem 1.5rem;
}

.modal-premium .modal-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--neutral-dark);
}

.modal-premium .modal-body {
    padding: 1.5rem;
}

.modal-premium .modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
    background: var(--bg-light);
}

.modal-premium .btn-close:focus {
    box-shadow: 0 0 0 3px var(--primary-wash);
}

.modal-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(39, 174, 96, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: #27ae60;
}

/* ─── Login Page ─── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        linear-gradient(135deg, rgba(31, 28, 26, 0.92) 0%, rgba(45, 74, 46, 0.88) 100%),
        url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-card-header {
    background: linear-gradient(135deg, var(--primary-color), #2d6b30);
    color: #fff;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
}

.login-card-header h2 {
    color: #fff !important;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.login-card-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin: 0;
}

.login-card-body { padding: 1.75rem 2rem 2rem; }

.login-credentials {
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.login-credentials code {
    background: var(--bg-white);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--primary-color);
}

/* ─── Footer ─── */
.site-footer {
    background: linear-gradient(180deg, #115e59 0%, #0f172a 100%);
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 1.5rem;
}

.site-footer h5, .site-footer h6 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition);
}

.site-footer a:hover { color: #fff; }

.site-footer .footer-links li {
    margin-bottom: 0.5rem;
    list-style: none;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

.site-footer .social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.site-footer .social-link:hover {
    background: var(--primary-color);
    color: #fff !important;
}

/* ─── Badges & Feed ─── */
.badge-item {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.badge-item:hover { border-color: var(--primary-color); }

.badge-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    display: inline-block;
}

.badge-icon.locked { color: #cbd5e1; opacity: 0.5; }

.feed-item {
    display: flex;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-light);
    gap: 1rem;
}

.feed-item:last-child { border-bottom: none; }

.feed-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-wash);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.timeline-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border: 2px solid var(--bg-white);
    box-shadow: 0 0 0 3px var(--primary-wash);
    border-radius: 50%;
}

.list-dense-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

/* ─── Feature Components ─── */
.time-bomb-banner {
    display: none !important;
}

.time-bomb-clock {
    display: none;
}

.impact-slider-container {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-xs);
}

.impact-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: var(--radius-pill);
    background: var(--bg-subtle);
    outline: none;
    margin: 1.5rem 0;
}

.impact-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    transition: transform var(--transition);
}

.impact-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }

.sponsor-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    background: white;
    box-shadow: var(--shadow-xs);
}

.sponsor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.sponsor-img { height: 180px; width: 100%; object-fit: cover; }

.leaderboard-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    gap: 0.75rem;
}

.leaderboard-rank {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bg-subtle);
    width: 32px;
    flex-shrink: 0;
}

.leaderboard-bar-bg {
    flex-grow: 1;
    height: 28px;
    background: var(--bg-subtle);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.leaderboard-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    padding-right: 10px;
    justify-content: flex-end;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    transition: width 1.5s ease-out;
}

.globe-container {
    width: 100%;
    height: 400px;
    background: radial-gradient(circle at center, #2d4a2e 0%, #1f1c1a 100%);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe-pulse {
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 0 0 rgba(241, 143, 1, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(241, 143, 1, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(241, 143, 1, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(241, 143, 1, 0); }
}

.vip-card {
    background: linear-gradient(135deg, #1f1c1a 0%, #2d4a2e 100%);
    color: white;
    border: 1px solid rgba(61, 140, 64, 0.2);
    border-radius: var(--radius-lg);
}

.vip-badge {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.task-item {
    border-left: 4px solid var(--secondary-color);
    background: var(--bg-white);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 0.85rem;
    border: 1px solid var(--border-light);
    border-left-width: 4px;
    transition: all var(--transition);
}

.task-item:hover {
    background: var(--primary-wash);
    border-left-width: 6px;
}

.video-thumbnail {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail::after {
    content: '\f144';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition);
}

.video-thumbnail:hover::after {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ─── Accordion ─── */
.accordion-premium .accordion-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md) !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
    background: var(--bg-white);
}

.accordion-premium .accordion-button {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--neutral-dark);
    background: var(--bg-white);
    box-shadow: none !important;
    padding: 1rem 1.25rem;
}

.accordion-premium .accordion-button:not(.collapsed) {
    background: var(--primary-wash);
    color: var(--primary-color);
}

.accordion-premium .accordion-body {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0 1.25rem 1rem;
}

/* ─── Spacing Compactors ─── */
.py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.py-4 { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.my-5 { margin-top: 2rem !important; margin-bottom: 2rem !important; }
.my-4 { margin-top: 1.25rem !important; margin-bottom: 1.25rem !important; }
.mb-5 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }

.g-5, .gx-5, .gy-5 { --bs-gutter-x: 1.25rem !important; --bs-gutter-y: 1.25rem !important; }
.g-4, .gx-4, .gy-4 { --bs-gutter-x: 1rem !important; --bs-gutter-y: 1rem !important; }
.g-3, .gx-3, .gy-3 { --bs-gutter-x: 0.75rem !important; --bs-gutter-y: 0.75rem !important; }

.card-img-top { height: 180px !important; object-fit: cover; }

.altruis-hero .avatar-stack-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

.altruis-hero .premium-card {
    border-radius: var(--radius-lg);
}

.circle-progress-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

/* ─── Responsive ─── */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
        padding-top: 3.5rem;
    }

    .sidebar.open { transform: translateX(0); }

    .main-content { padding: 1.25rem 1rem 2rem; }

    .altruis-hero {
        min-height: auto;
        padding: 4rem 0 3rem;
    }

    .globe-container { height: 280px; }
}

@media (max-width: 767.98px) {
    .dashboard-page-header { flex-direction: column; }

    .stat-card .stat-value { font-size: 1.5rem; }

    .login-card-body { padding: 1.25rem 1.5rem 1.5rem; }

    .table-premium thead { display: none; }

    .table-premium tbody tr {
        display: block;
        border-bottom: 1px solid var(--border-light);
        padding: 0.75rem 0;
    }

    .table-premium tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.35rem 1rem;
        border: none;
    }

    .table-premium tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 0.7rem;
        text-transform: uppercase;
        color: var(--text-light);
        margin-right: 1rem;
    }
}

@media (max-width: 575.98px) {
    .btn-primary-accent,
    .btn-outline-light-theme {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        font-size: 0.85rem;
    }
}
