/* ====================================================
   Bonataon — Custom CSS Architecture
   Complements Tailwind CDN with Dual Dark/Light Themes
   Clean Specificity (No !important in component rules)
   ==================================================== */

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* ====================================================
   1. THEME SYSTEM: DARK MODE (Default Canvas)
   ==================================================== */
html.dark, html.dark body {
    background-color: #030712; /* bg-gray-950 */
    color: #f3f4f6;
}

/* Glass Sidebar in Dark Mode */
html.dark .glass-sidebar {
    background: linear-gradient(180deg, rgba(10, 15, 30, 0.97) 0%, rgba(3, 7, 18, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5);
}

/* Glass Topbar in Dark Mode */
html.dark .glass-topbar {
    background: linear-gradient(90deg, rgba(10, 15, 30, 0.97) 0%, rgba(3, 7, 18, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Global Event Countdown Strip in Dark Mode */
html.dark .glass-countdown {
    background: linear-gradient(90deg, #090d1a 0%, #151838 50%, #090d1a 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.25);
    color: #cbd5e1;
}
html.dark .countdown-strip-title {
    color: #ffffff;
}
html.dark .countdown-strip-date {
    color: #a5b4fc; /* Luminous Indigo-300 */
    font-weight: 500;
}
html.dark #topbarCountdown {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(129, 140, 248, 0.4);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}
html.dark .topcd-num {
    color: #ffffff;
}
html.dark .topcd-unit {
    color: #a5b4fc;
}
html.dark .topcd-sep {
    color: #64748b;
}
html.dark .topcd-sec {
    color: #34d399; /* Vivid Emerald-400 */
}
html.dark .topcd-sec-unit {
    color: #10b981;
}
html.dark .countdown-strip-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
    border: 1px solid rgba(129, 140, 248, 0.4);
    color: #e0e7ff;
}
html.dark .countdown-strip-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.45) 0%, rgba(168, 85, 247, 0.45) 100%);
    color: #ffffff;
}

/* Glass Dropdowns & Pills in Dark Mode */
html.dark .glass-card-dropdown {
    background: rgba(14, 22, 38, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
html.dark .glass-pill {
    background-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}
html.dark .glass-pill:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Sidebar Navigation Items in Dark Mode */
html.dark .sidebar-item {
    color: #cbd5e1;
}
html.dark .sidebar-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(3px);
}
html.dark .sidebar-item:hover .sidebar-icon {
    color: #818cf8;
    transform: scale(1.1);
}
html.dark .sidebar-active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(168, 85, 247, 0.20) 100%);
    border: 1px solid rgba(129, 140, 248, 0.45);
    box-shadow: 0 4px 18px -2px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    font-weight: 600;
}
html.dark .sidebar-active::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #818cf8, #c084fc);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.8);
}
html.dark .sidebar-active .sidebar-icon {
    color: #818cf8;
    filter: drop-shadow(0 0 8px rgba(129, 140, 248, 0.6));
}
html.dark .sidebar-icon {
    color: #94a3b8;
}

/* ====================================================
   2. THEME SYSTEM: LIGHT MODE (Crisp Canvas & Cards)
   ==================================================== */
html.light, html.light body {
    background-color: #f1f5f9; /* Slate-100 */
    color: #0f172a;
}
html.light main,
html.light .bg-slate-50,
html.light .bg-slate-100 {
    background-color: #f1f5f9;
    color: #0f172a;
}

/* Glass Sidebar in Light Mode */
html.light .glass-sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.04);
}

/* Glass Topbar in Light Mode */
html.light .glass-topbar {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Public Navbar in Light Mode */
html.light #public-navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
html.light #public-navbar a.text-white,
html.light #public-navbar span.text-white {
    color: #0f172a;
}
html.light #public-navbar a.text-gray-300,
html.light #public-navbar a.text-gray-400,
html.light #public-navbar a.text-slate-600 {
    color: #475569;
}
html.light #public-navbar a.text-gray-300:hover,
html.light #public-navbar a.text-gray-400:hover,
html.light #public-navbar a.text-slate-600:hover {
    color: #4f46e5;
    background-color: rgba(99, 102, 241, 0.08);
}
html.light #public-navbar button {
    border-color: #e2e8f0;
}

/* Mobile Hamburger Button in Light Mode */
html.light #public-mobile-menu-btn {
    background-color: #eef2ff !important;
    color: #4f46e5 !important;
    border: 1px solid #c7d2fe !important;
}
html.light #public-mobile-menu-btn:hover {
    background-color: #e0e7ff !important;
    color: #3730a3 !important;
}

/* Public Mobile Menu Drawer in Light Mode */
html.light #public-mobile-menu {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}
html.light #public-mobile-menu a {
    color: #1e293b !important;
}
html.light #public-mobile-menu a span {
    color: #1e293b !important;
}
html.light #public-mobile-menu a:hover {
    background-color: #f1f5f9 !important;
    color: #4338ca !important;
}
html.light #public-mobile-menu a:hover span {
    color: #4338ca !important;
}
html.light #public-mobile-menu a:active {
    background-color: #e0e7ff !important;
    color: #3730a3 !important;
}

/* Icon Badges in Public Mobile Menu (Light Mode) */
html.light #public-mobile-menu .bg-indigo-500\/20 {
    background-color: #eef2ff !important;
    border-color: #c7d2fe !important;
    color: #4f46e5 !important;
}
html.light #public-mobile-menu .bg-emerald-500\/20 {
    background-color: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #059669 !important;
}
html.light #public-mobile-menu .bg-amber-500\/20 {
    background-color: #fffbeb !important;
    border-color: #fde68a !important;
    color: #d97706 !important;
}
html.light #public-mobile-menu .bg-pink-500\/20 {
    background-color: #fdf2f8 !important;
    border-color: #fbcfe8 !important;
    color: #db2777 !important;
}
html.light #public-mobile-menu .bg-rose-500\/20 {
    background-color: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #e11d48 !important;
}
html.light #public-mobile-menu .bg-cyan-500\/20 {
    background-color: #ecfeff !important;
    border-color: #a5f3fc !important;
    color: #0891b2 !important;
}

/* Divider & Secondary Action Buttons in Public Mobile Menu (Light Mode) */
html.light #public-mobile-menu .border-t {
    border-top-color: #e2e8f0 !important;
}
html.light #public-mobile-menu a[href*="/login"] {
    background-color: #f8fafc !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}
html.light #public-mobile-menu a[href*="/login"] span {
    color: #1e293b !important;
}
html.light #public-mobile-menu a[href*="/login"]:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

/* Global Event Countdown Strip in Light Mode */
html.light .glass-countdown {
    background: linear-gradient(90deg, #ffffff 0%, #eff6ff 50%, #ffffff 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #c7d2fe;
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.06);
    color: #1e293b;
}
html.light .countdown-strip-title {
    color: #0f172a;
}
html.light .countdown-strip-date {
    color: #3730a3; /* Deep Indigo-800 */
    font-weight: 700;
}
html.light #topbarCountdown {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
html.light .topcd-num {
    color: #0f172a;
    font-weight: 800;
}
html.light .topcd-unit {
    color: #4f46e5;
    font-weight: 700;
}
html.light .topcd-sep {
    color: #64748b;
    font-weight: 700;
}
html.light .topcd-sec {
    color: #059669; /* Rich Emerald-600 */
    font-weight: 800;
}
html.light .topcd-sec-unit {
    color: #059669;
    font-weight: 700;
}
html.light .countdown-strip-btn {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #a5b4fc;
    color: #312e81;
}
html.light .countdown-strip-btn:hover {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border-color: #4338ca;
}

/* Glass Dropdowns & Pills in Light Mode */
html.light .glass-card-dropdown {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    color: #0f172a;
}
html.light .glass-card-dropdown p.text-white,
html.light .glass-card-dropdown span.text-white {
    color: #0f172a;
}
html.light .glass-pill {
    background-color: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #334155;
}
html.light .glass-pill:hover {
    background-color: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
    color: #0f172a;
}

/* Sidebar Navigation Items in Light Mode */
html.light .sidebar-item {
    color: #475569;
}
html.light .sidebar-item:hover {
    color: #0f172a;
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.15);
    transform: translateX(3px);
}
html.light .sidebar-item:hover .sidebar-icon {
    color: #4f46e5;
}
html.light .sidebar-active {
    color: #4338ca;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.10) 100%);
    border: 1px solid rgba(99, 102, 241, 0.30);
    box-shadow: 0 4px 15px -2px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-weight: 600;
}
html.light .sidebar-active::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #6366f1, #a855f7);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.6);
}
html.light .sidebar-active .sidebar-icon {
    color: #4f46e5;
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.4));
}
html.light .sidebar-icon {
    color: #64748b;
}

/* ====================================================
   3. LIGHT MODE: MAIN ARENA & CARD ARCHITECTURE
   ==================================================== */

/* All Cards Pop Out on Slate-100 Canvas */
html.light .glass-card,
html.light .stat-card,
html.light .chart-card,
html.light .table-container,
html.light a[class*="via-slate-900"],
html.light div[class*="via-slate-900"],
html.light button[class*="via-slate-900"],
html.light a[class*="via-gray-900"],
html.light div[class*="via-gray-900"],
html.light button[class*="via-gray-900"],
html.light div[class*="from-gray-900"],
html.light div[class*="from-slate-900"],
html.light div[class*="from-indigo-950"],
html.light div[class*="from-rose-950"],
html.light div[class*="from-amber-950"],
html.light div[class*="from-emerald-950"],
html.light div[class*="from-cyan-950"],
html.light div[class*="from-purple-950"],
html.light div[class*="from-sky-950"],
html.light button[class*="from-emerald-950"],
html.light button[class*="from-rose-950"],
html.light button[class*="from-cyan-950"],
html.light button[class*="from-purple-950"],
html.light button[class*="from-amber-950"],
html.light .bg-gray-900,
html.light .bg-gray-950,
html.light .bg-slate-900,
html.light .bg-slate-950,
html.light .bg-navy-900,
html.light .bg-navy-950 {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

/* Hover state for interactive cards */
html.light a[class*="via-slate-900"]:hover,
html.light .stat-card:hover,
html.light .glass-card.hover\:border-indigo-400\/40:hover {
    border-color: #94a3b8;
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.10), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
}

/* Event Countdown Banner in Main Arena */
html.light .border-indigo-500\/30[class*="from-gray-900"],
html.light div:has(> div > #dashboardCountdown),
html.light div:has(> div > #adminDashboardCountdown) {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 50%, #eff6ff 100%);
    border: 1px solid #c7d2fe;
    box-shadow: 0 6px 24px -4px rgba(99, 102, 241, 0.12);
}

/* Countdown 4-box Digits in Main Arena & Tickets */
html.light #dashboardCountdown > div,
html.light #adminDashboardCountdown > div,
html.light #ticketsPageCountdown > div,
html.light #ticketCountdown > div {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}
html.light #dashboardCountdown span[id^="cd-"],
html.light #adminDashboardCountdown span[id^="acd-"],
html.light #ticketsPageCountdown span[id^="tp-"],
html.light #ticketCountdown span[id^="tcd-"] {
    color: #1e1b4b;
}
html.light #dashboardCountdown #cd-seconds,
html.light #adminDashboardCountdown #acd-seconds,
html.light #ticketsPageCountdown #tp-seconds,
html.light #ticketCountdown #tcd-seconds {
    color: #059669;
}
html.light #dashboardCountdown span.text-indigo-300\/80,
html.light #adminDashboardCountdown span.text-indigo-300\/80,
html.light #ticketsPageCountdown span.text-indigo-300\/80,
html.light #ticketCountdown span.text-indigo-300\/80 {
    color: #4f46e5;
}
html.light #dashboardCountdown span.text-emerald-300\/80,
html.light #adminDashboardCountdown span.text-emerald-300\/80,
html.light #ticketsPageCountdown span.text-emerald-300\/80,
html.light #ticketCountdown span.text-emerald-300\/80 {
    color: #059669;
}

/* Quick Action Tiles & Translucent Overlays in Light Mode */
html.light .bg-white\/3,
html.light .bg-white\/5,
html.light .bg-white\/6,
html.light .bg-white\/10 {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}
html.light .hover\:bg-white\/6:hover,
html.light .hover\:bg-white\/10:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

/* Secondary Button in Light Mode */
html.light .btn-secondary {
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
html.light .btn-secondary:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Ensure Primary Buttons Keep Vibrant Text & Contrast */
html.light .btn-primary,
html.light .btn-primary * {
    color: #ffffff;
}
html.light .btn-danger,
html.light .btn-danger * {
    color: #dc2626;
}
html.light .btn-success,
html.light .btn-success * {
    color: #059669;
}

/* Headings & Page Titles in Light Mode */
html.light h1,
html.light h2,
html.light h3,
html.light h4,
html.light h5,
html.light h6,
html.light .page-title,
html.light .countdown-card-title {
    color: #0f172a;
}
html.light .page-subtitle {
    color: #64748b;
}
html.light .countdown-card-date,
html.light .countdown-card-date span {
    color: #3730a3;
    font-weight: 700;
}
html.light .countdown-card-loc,
html.light .countdown-card-loc span {
    color: #475569;
}

/* Typography Visibility inside Cards */
html.light .glass-card h1,
html.light .glass-card h2,
html.light .glass-card h3,
html.light .glass-card h4,
html.light .glass-card h5,
html.light [class*="via-slate-900"] h4,
html.light [class*="via-gray-900"] h4,
html.light [class*="from-gray-900"] h3,
html.light [class*="from-gray-900"] h4,
html.light .stat-card h4,
html.light .chart-card h3 {
    color: #0f172a;
}

/* Stat card values & bold headers */
html.light [class*="via-slate-900"] .text-xl,
html.light [class*="via-slate-900"] .text-2xl,
html.light [class*="via-slate-900"] .text-3xl,
html.light [class*="via-slate-900"] .sm\:text-5xl,
html.light [class*="via-slate-900"] .sm\:text-\[25px\],
html.light .stat-card .text-2xl,
html.light .glass-card strong.text-white,
html.light .glass-card span.text-white:not(.btn-primary):not(.btn-primary *):not(.badge):not(.badge *),
html.light .glass-card div.text-white:not(.btn-primary):not(.btn-primary *):not(.badge):not(.badge *):not([class*="bg-gradient"]) {
    color: #0f172a;
}

/* Stat card action prompts and icons */
html.light [class*="via-slate-900"] .text-gray-400,
html.light [class*="via-slate-900"] span.text-\[11px\],
html.light [class*="via-slate-900"] i.fa-arrow-right {
    color: #64748b;
}
html.light [class*="via-slate-900"]:hover .text-gray-400,
html.light [class*="via-slate-900"]:hover span.text-\[11px\],
html.light [class*="via-slate-900"]:hover i.fa-arrow-right {
    color: #4f46e5;
}

/* Text Muted Levels */
html.light .text-gray-100:not(.badge):not(.badge *),
html.light .text-gray-200:not(.badge):not(.badge *) {
    color: #0f172a;
}
html.light .text-gray-300:not(.badge):not(.badge *) {
    color: #334155;
}
html.light .text-gray-400:not(.badge):not(.badge *) {
    color: #64748b;
}
html.light .text-gray-500:not(.badge):not(.badge *) {
    color: #64748b;
}

/* Colored text accents on light backgrounds */
html.light .text-indigo-300, html.light .text-indigo-400 { color: #4338ca; }
html.light .text-rose-300, html.light .text-rose-400 { color: #be123c; }
html.light .text-amber-300, html.light .text-amber-400 { color: #b45309; }
html.light .text-emerald-100, html.light .text-emerald-200, html.light .text-emerald-300, html.light .text-emerald-400 { color: #047857; }
html.light .text-cyan-300, html.light .text-cyan-400 { color: #0e7490; }
html.light .text-purple-300, html.light .text-purple-400 { color: #6d28d9; }
html.light .text-sky-300, html.light .text-sky-400 { color: #0369a1; }

/* Stat card icon wrappers keep white icons */
html.light [class*="from-rose-500"] i,
html.light [class*="from-indigo-500"] i,
html.light [class*="from-emerald-500"] i,
html.light [class*="from-cyan-500"] i,
html.light [class*="from-amber-500"] i,
html.light [class*="from-purple-500"] i,
html.light [class*="from-sky-500"] i {
    color: #ffffff;
}

/* Translucent border overrides for Light Mode */
html.light .border-white\/5,
html.light .border-white\/8,
html.light .border-white\/10,
html.light .border-white\/15,
html.light .border-white\/20,
html.light .border-white\/\[0\.08\] {
    border-color: #e2e8f0;
}

/* Progress bar in Light Mode */
html.light .progress-bar {
    background-color: #e2e8f0;
}

/* Tables in Light Mode */
html.light .data-table thead th {
    background: #f8fafc;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}
html.light .data-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}
html.light .data-table tbody tr:hover {
    background: #f8fafc;
}
html.light .data-table tbody td {
    color: #1e293b;
}

/* Form Controls, Selects, and Search Inputs in Light Mode */
html.light .form-control,
html.light .form-input,
html.light .form-select,
html.light select,
html.light input[class*="bg-black"],
html.light textarea[class*="bg-black"],
html.light select[class*="bg-black"] {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
html.light .form-control:focus,
html.light .form-input:focus,
html.light .form-select:focus,
html.light select:focus,
html.light input[class*="bg-black"]:focus,
html.light textarea[class*="bg-black"]:focus,
html.light select[class*="bg-black"]:focus {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
    color: #0f172a !important;
}
html.light input::placeholder,
html.light textarea::placeholder {
    color: #94a3b8 !important;
}
html.light .form-label {
    color: #334155 !important;
}

/* Light Mode Select Options - Crisp White Background with Dark Slate Text */
html.light select option,
html.light .form-control option,
html.light .form-input option,
html.light .form-select option {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
}
html.light select option:checked,
html.light .form-control option:checked,
html.light .form-select option:checked {
    background: #e0e7ff !important;
    background-color: #e0e7ff !important;
    color: #4338ca !important;
    font-weight: 600;
}
html.light select option:hover,
html.light .form-control option:hover,
html.light .form-select option:hover {
    background: #f1f5f9 !important;
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Modals in Light Mode */
html.light .modal-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    color: #0f172a;
}

/* Registration Notice Banner */
html.light .border-amber-500\/30 {
    background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 50%, #ffffff 100%);
    border-color: #fde68a;
}
html.light .border-amber-500\/30 h4 {
    color: #92400e;
}
html.light .border-amber-500\/30 p {
    color: #78350f;
}

/* ====================================================
   4. BASE COMPONENTS & REUSABLE ELEMENTS
   ==================================================== */

/* Sidebar Base */
.sidebar-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2px;
    border: 1px solid transparent;
}
.sidebar-icon {
    transition: all 0.2s ease;
    font-size: 13.5px;
    flex-shrink: 0;
}

/* Stat Cards Base */
.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s ease;
}
.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Chart Cards Base */
.chart-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 20px;
}

/* Buttons Base */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary-sm:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(239, 68, 68, 0.2);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }

.btn-success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(16, 185, 129, 0.2);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-success:hover { background: rgba(16, 185, 129, 0.25); }

/* Form Controls Base (Dark Canvas Default) */
.form-control,
.form-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #f8fafc;
    font-size: 13px;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}
.form-control:focus,
.form-input:focus {
    border-color: rgba(99, 102, 241, 0.8);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.25);
    color: #ffffff;
}
.form-control::placeholder,
.form-input::placeholder { color: #64748b; }
.form-control option,
.form-input option { background: #ffffff; color: #0f172a; }
html.dark .form-control option,
html.dark .form-input option { background: #0f172a; color: #f8fafc; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 6px;
}

/* Tables Base */
.table-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.data-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.data-table tbody td {
    padding: 12px 16px;
    font-size: 13px;
    color: #d1d5db;
    vertical-align: middle;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
}
.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-danger  { background: rgba(239, 68, 68, 0.15);  color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-info    { background: rgba(59, 130, 246, 0.15);  color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.badge-secondary { background: rgba(107, 114, 128, 0.15); color: #9ca3af; border: 1px solid rgba(107, 114, 128, 0.2); }
.badge-purple  { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.2); }

/* Progress Bar */
.progress-bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 99px;
    overflow: hidden;
    height: 8px;
}
.progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-backdrop.hidden,
div.modal-backdrop.hidden {
    display: none !important;
}
.modal-box {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

html.light .modal-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
}

html.light .modal-box h3,
html.light .modal-box h4 {
    color: #0f172a !important;
}

html.light .modal-box p {
    color: #475569 !important;
}

html.light #delete-modal-target-box {
    background: #fef3c7 !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}


/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.page-title { font-size: 22px; font-weight: 700; color: #f9fafb; }
.page-subtitle { font-size: 13px; color: #6b7280; margin-top: 2px; }

/* Notification animations */
@keyframes slideIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }

/* Glassmorphism Card Base */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient Text — Batak Gold-Red Identity */
.gradient-text {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 45%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 24px rgba(245, 158, 11, 0.3));
}

/* Entrance Animations */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes goldPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); }
    50%       { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}
.hero-anim-1 { animation: fadeSlideDown 0.7s cubic-bezier(0.23, 1, 0.32, 1) both; }
.hero-anim-2 { animation: fadeSlideUp 0.7s 0.15s cubic-bezier(0.23, 1, 0.32, 1) both; }
.hero-anim-3 { animation: fadeSlideUp 0.7s 0.28s cubic-bezier(0.23, 1, 0.32, 1) both; }
.hero-anim-4 { animation: fadeSlideUp 0.7s 0.40s cubic-bezier(0.23, 1, 0.32, 1) both; }
.hero-anim-5 { animation: scaleIn    0.7s 0.52s cubic-bezier(0.23, 1, 0.32, 1) both; }
.hero-anim-6 { animation: fadeSlideUp 0.7s 0.65s cubic-bezier(0.23, 1, 0.32, 1) both; }

/* Amount Colors */
.amount-credit { color: #34d399; }
.amount-debit  { color: #f87171; }

/* Quick Amount Buttons */
.amount-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.amount-btn:hover, .amount-btn.active {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
    color: #ffffff;
}

/* ====================================================
   5. PUBLIC LANDING & PORTAL GLASS ARCHITECTURE
   ==================================================== */
/* Subtle Sharp Grid Canvas */
.landing-grid-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 85%);
}
html.dark .landing-grid-bg {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}
html.light .landing-grid-bg {
    background-image: 
        linear-gradient(to right, rgba(99, 102, 241, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
}

/* Landing Hero Container */
.landing-hero {
    position: relative;
    overflow: hidden;
}
html.dark .landing-hero {
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(198, 40, 40, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(180, 83, 9, 0.10) 0%, transparent 55%),
        radial-gradient(circle at 20% 60%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        #030712;
}
html.light .landing-hero {
    background:
        radial-gradient(ellipse 70% 45% at 50% -5%, rgba(198, 40, 40, 0.08) 0%, transparent 65%),
        radial-gradient(ellipse 50% 35% at 80% 80%, rgba(180, 83, 9, 0.06) 0%, transparent 55%),
        #f8fafc;
}

/* Batak Gorga SVG Ornament Divider */
.batak-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 auto;
    max-width: 400px;
}
.batak-divider::before,
.batak-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.5), transparent);
}
.batak-divider span {
    font-size: 18px;
    color: #f59e0b;
    letter-spacing: 4px;
    opacity: 0.8;
}

/* Landing Section Dividers */
html.dark .landing-section-divider {
    border-color: rgba(255, 255, 255, 0.08);
}
html.light .landing-section-divider {
    border-color: rgba(226, 232, 240, 0.9);
}

/* Crisp High-Definition Glass Card (Dark Mode) */
html.dark .landing-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.82) 100%);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html.dark .landing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 20px 40px -12px rgba(198, 40, 40, 0.18), 0 0 0 1px rgba(245, 158, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

/* Crisp High-Definition Glass Card (Light Mode) */
html.light .landing-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(203, 213, 225, 0.90);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html.light .landing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 35px -10px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Typography inside Landing Cards */
html.dark .landing-card-title {
    color: #ffffff;
}
html.light .landing-card-title {
    color: #0f172a;
}
html.dark .landing-card-subtitle {
    color: #94a3b8;
}
html.light .landing-card-subtitle {
    color: #475569;
}

/* Countdown Event Hero Box */
html.dark .landing-event-box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 20, 10, 0.80) 50%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.30);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.65), 0 0 30px rgba(198, 40, 40, 0.08), inset 0 1px 0 rgba(245, 158, 11, 0.15);
}
html.light .landing-event-box {
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 50%, #ffffff 100%);
    border: 1px solid #fcd34d;
    box-shadow: 0 15px 35px -5px rgba(180, 83, 9, 0.10), 0 0 0 1px rgba(245, 158, 11, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* === WIDGET CEK TIKET PUBLIK === */
.ticket-checker-box {
    border-radius: 20px;
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
}
html.dark .ticket-checker-box {
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.12) 0%, rgba(30, 41, 59, 0.70) 100%);
    border: 1px solid rgba(198, 40, 40, 0.35);
    box-shadow: 0 12px 30px -8px rgba(198, 40, 40, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
html.light .ticket-checker-box {
    background: linear-gradient(135deg, #fff7f7 0%, #ffffff 100%);
    border: 1px solid rgba(198, 40, 40, 0.25);
    box-shadow: 0 8px 25px -5px rgba(198, 40, 40, 0.10);
}
.ticket-checker-input {
    width: 100%;
    padding: 13px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.25s;
}
html.dark .ticket-checker-input {
    background: rgba(15, 23, 42, 0.80);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
html.dark .ticket-checker-input:focus {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}
html.dark .ticket-checker-input::placeholder { color: #64748b; }
html.light .ticket-checker-input {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #0f172a;
}
html.light .ticket-checker-input:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

/* === RUNDOWN ACARA SECTION === */
.rundown-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid;
    transition: all 0.2s;
}
html.dark .rundown-item  { border-color: rgba(255, 255, 255, 0.06); }
html.light .rundown-item { border-color: rgba(15, 23, 42, 0.06); }
.rundown-item:last-child  { border-bottom: none; }
.rundown-time {
    min-width: 70px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.4;
    padding-top: 2px;
}
html.dark .rundown-time  { color: #f59e0b; }
html.light .rundown-time { color: #b45309; }
.rundown-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
    border: 2px solid;
}
html.dark .rundown-dot  { background: rgba(245,158,11,0.2); border-color: #f59e0b; }
html.light .rundown-dot { background: rgba(180,83,9,0.15);  border-color: #b45309; }
.rundown-dot.highlight {
    animation: goldPulse 2s infinite;
}
html.dark .rundown-dot.highlight  { background: #f59e0b; border-color: #fbbf24; }
html.light .rundown-dot.highlight { background: #b45309; border-color: #d97706; }

/* Batak Quote Banner */
.batak-quote-banner {
    border-radius: 20px;
    padding: 18px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
html.dark .batak-quote-banner {
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.08) 0%, rgba(120, 53, 15, 0.12) 50%, rgba(198, 40, 40, 0.08) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
}
html.light .batak-quote-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fff7f0 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Countdown Timer Unit Pills */
html.dark .landing-timer-pill {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(129, 140, 248, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
html.light .landing-timer-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
html.dark .landing-timer-val {
    color: #ffffff;
}
html.light .landing-timer-val {
    color: #0f172a;
}
html.dark .landing-timer-lbl {
    color: #818cf8;
}
html.light .landing-timer-lbl {
    color: #4f46e5;
}

/* Progress bar inside Landing */
html.dark .landing-progress-track {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
html.light .landing-progress-track {
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
}

/* Landing Product Cards & Stock Badge (Dual-Theme Contrast) */
.landing-product-stock {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3.5px 9px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    letter-spacing: 0.01em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* In Stock (> 5): High definition dark glass with sharp white text */
html.dark .landing-product-stock.in-stock {
    background: rgba(15, 23, 42, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
html.light .landing-product-stock.in-stock {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

/* Low Stock (1 - 5): Vibrant Amber warning pill */
html.dark .landing-product-stock.low-stock,
html.light .landing-product-stock.low-stock {
    background: #d97706;
    border: 1px solid #fde68a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

/* Out of Stock (0): Bold Crimson/Rose danger pill */
html.dark .landing-product-stock.out-of-stock,
html.light .landing-product-stock.out-of-stock {
    background: #e11d48;
    border: 1px solid #fecdd3;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

/* Landing Card Bottom Stock Text */
html.dark .landing-card-stock {
    color: #94a3b8;
}
html.light .landing-card-stock {
    color: #475569;
    font-weight: 700;
}

/* Public Navbar in Dark Mode Explicit definition */
html.dark #public-navbar {
    background-color: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
html.dark #public-navbar a.text-white,
html.dark #public-navbar span.text-white {
    color: #ffffff;
}
html.dark #public-navbar a.text-gray-400 {
    color: #94a3b8;
}
html.dark #public-navbar a.text-gray-400:hover {
    color: #ffffff;
}

/* Public Footer Explicit definitions */
html.dark #public-footer {
    background-color: #030712;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
html.light #public-footer {
    background-color: #ffffff;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    color: #334155;
}
html.light #public-footer h4 {
    color: #0f172a;
}
html.light #public-footer p,
html.light #public-footer span,
html.light #public-footer a,
html.light #public-footer li {
    color: #475569;
}
html.light #public-footer a:hover {
    color: #4f46e5;
}

/* ====================================================
   6. TRANSPARENCY PORTAL & SUMMARY STAT CARDS ARCHITECTURE
   ==================================================== */
/* Grand Overview Hero Card */
.transparency-hero-card {
    border-radius: 24px;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html.dark .transparency-hero-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.90) 0%, rgba(30, 41, 59, 0.75) 50%, rgba(15, 23, 42, 0.92) 100%);
    border: 1px solid rgba(129, 140, 248, 0.30);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
html.light .transparency-hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 50%, #eff6ff 100%);
    border: 1px solid #c7d2fe;
    box-shadow: 0 12px 30px -5px rgba(99, 102, 241, 0.10), inset 0 1px 0 rgba(255, 255, 255, 1);
}
html.dark .transparency-hero-balance {
    color: #ffffff;
}
html.light .transparency-hero-balance {
    color: #0f172a;
}
html.dark .transparency-hero-num {
    color: #f8fafc;
}
html.light .transparency-hero-num {
    color: #0f172a;
}

/* Base Transparency Stat Card */
.transparency-stat-card {
    border-radius: 20px;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Dark Mode: Transparency Stat Cards */
html.dark .transparency-stat-card {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
html.dark .transparency-stat-title {
    color: #cbd5e1;
}
html.dark .transparency-stat-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}
html.dark .transparency-stat-card:hover .transparency-stat-footer {
    color: #f8fafc;
}

/* Category: 1. Total Pemasukan (Dark) */
html.dark .transparency-stat-income {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.40) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
}
html.dark .transparency-stat-income:hover {
    border-color: rgba(52, 211, 153, 0.8);
    box-shadow: 0 16px 35px -8px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(52, 211, 153, 0.3);
}
html.dark .transparency-stat-income .transparency-stat-val {
    color: #34d399; /* Vivid Emerald-400 */
}
html.dark .transparency-stat-income .transparency-stat-badge {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

/* Category: 2. Total Pengeluaran (Dark) */
html.dark .transparency-stat-expense {
    background: linear-gradient(135deg, rgba(136, 19, 55, 0.40) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(244, 63, 94, 0.35);
}
html.dark .transparency-stat-expense:hover {
    border-color: rgba(251, 113, 133, 0.8);
    box-shadow: 0 16px 35px -8px rgba(244, 63, 94, 0.35), inset 0 1px 0 rgba(251, 113, 133, 0.3);
}
html.dark .transparency-stat-expense .transparency-stat-val {
    color: #fb7185; /* Vivid Rose-400 */
}
html.dark .transparency-stat-expense .transparency-stat-badge {
    background: rgba(244, 63, 94, 0.18);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fda4af;
}

/* Category: 3. Kas Tersedia (Dark) */
html.dark .transparency-stat-balance {
    background: linear-gradient(135deg, rgba(22, 78, 99, 0.40) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(6, 182, 212, 0.35);
}
html.dark .transparency-stat-balance:hover {
    border-color: rgba(34, 211, 238, 0.8);
    box-shadow: 0 16px 35px -8px rgba(6, 182, 212, 0.35), inset 0 1px 0 rgba(34, 211, 238, 0.3);
}
html.dark .transparency-stat-balance .transparency-stat-val {
    color: #22d3ee; /* Vivid Cyan-400 */
}
html.dark .transparency-stat-balance .transparency-stat-badge {
    background: rgba(6, 182, 212, 0.18);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #67e8f9;
}

/* Category: 4. Penjualan Toko (Dark) */
html.dark .transparency-stat-sales {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.40) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
}
html.dark .transparency-stat-sales:hover {
    border-color: rgba(192, 132, 252, 0.8);
    box-shadow: 0 16px 35px -8px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(192, 132, 252, 0.3);
}
html.dark .transparency-stat-sales .transparency-stat-val {
    color: #c084fc; /* Vivid Purple-400 */
}
html.dark .transparency-stat-sales .transparency-stat-badge {
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #d8b4fe;
}

/* Category: 5. Iuran Anggota (Dark) */
html.dark .transparency-stat-dues {
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.40) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
}
html.dark .transparency-stat-dues:hover {
    border-color: rgba(251, 191, 36, 0.8);
    box-shadow: 0 16px 35px -8px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(251, 191, 36, 0.3);
}
html.dark .transparency-stat-dues .transparency-stat-val {
    color: #fbbf24; /* Vivid Amber-400 */
}
html.dark .transparency-stat-dues .transparency-stat-badge {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fde68a;
}

/* ====================================================
   Light Mode: Transparency Stat Cards (Clean, Pure & Bold)
   ==================================================== */
html.light .transparency-stat-card {
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
html.light .transparency-stat-title {
    color: #0f172a; /* Slate-900 jet black */
}
html.light .transparency-stat-footer {
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    color: #64748b;
}
html.light .transparency-stat-card:hover .transparency-stat-footer {
    color: #0f172a;
}

/* Category: 1. Total Pemasukan (Light) */
html.light .transparency-stat-income {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 1px solid #a7f3d0;
}
html.light .transparency-stat-income:hover {
    border-color: #34d399;
    box-shadow: 0 12px 28px -6px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(255, 255, 255, 1);
}
html.light .transparency-stat-income .transparency-stat-val {
    color: #047857; /* Deep, bold Emerald-700 */
}
html.light .transparency-stat-income .transparency-stat-badge {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

/* Category: 2. Total Pengeluaran (Light) */
html.light .transparency-stat-expense {
    background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
    border: 1px solid #fecdd3;
}
html.light .transparency-stat-expense:hover {
    border-color: #fb7185;
    box-shadow: 0 12px 28px -6px rgba(244, 63, 94, 0.18), inset 0 1px 0 rgba(255, 255, 255, 1);
}
html.light .transparency-stat-expense .transparency-stat-val {
    color: #be123c; /* Deep, bold Rose-700 */
}
html.light .transparency-stat-expense .transparency-stat-badge {
    background: #ffe4e6;
    border: 1px solid #fda4af;
    color: #9f1239;
}

/* Category: 3. Kas Tersedia (Light) */
html.light .transparency-stat-balance {
    background: linear-gradient(135deg, #ffffff 0%, #ecfeff 100%);
    border: 1px solid #a5f3fc;
}
html.light .transparency-stat-balance:hover {
    border-color: #22d3ee;
    box-shadow: 0 12px 28px -6px rgba(6, 182, 212, 0.18), inset 0 1px 0 rgba(255, 255, 255, 1);
}
html.light .transparency-stat-balance .transparency-stat-val {
    color: #0e7490; /* Deep, bold Cyan-700 */
}
html.light .transparency-stat-balance .transparency-stat-badge {
    background: #cffafe;
    border: 1px solid #67e8f9;
    color: #155e75;
}

/* Category: 4. Penjualan Toko (Light) */
html.light .transparency-stat-sales {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
    border: 1px solid #e9d5ff;
}
html.light .transparency-stat-sales:hover {
    border-color: #c084fc;
    box-shadow: 0 12px 28px -6px rgba(168, 85, 247, 0.18), inset 0 1px 0 rgba(255, 255, 255, 1);
}
html.light .transparency-stat-sales .transparency-stat-val {
    color: #7e22ce; /* Deep, bold Purple-700 */
}
html.light .transparency-stat-sales .transparency-stat-badge {
    background: #f3e8ff;
    border: 1px solid #d8b4fe;
    color: #581c87;
}

/* Category: 5. Iuran Anggota (Light) */
html.light .transparency-stat-dues {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
    border: 1px solid #fde68a;
}
html.light .transparency-stat-dues:hover {
    border-color: #fbbf24;
    box-shadow: 0 12px 28px -6px rgba(245, 158, 11, 0.18), inset 0 1px 0 rgba(255, 255, 255, 1);
}
html.light .transparency-stat-dues .transparency-stat-val {
    color: #b45309; /* Deep, bold Amber-700 */
}
html.light .transparency-stat-dues .transparency-stat-badge {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

/* ====================================================
   7. TRANSPARENCY DATA TABLES HIGH-CONTRAST ARCHITECTURE
   ==================================================== */
/* Table Header Cells */
.data-table thead th {
    padding: 13px 16px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
}
html.dark .data-table thead th {
    background: rgba(15, 23, 42, 0.95);
    color: #f1f5f9;
    border-bottom: 2px solid rgba(255, 255, 255, 0.14);
}
html.light .data-table thead th {
    background: #f1f5f9;
    color: #0f172a;
    border-bottom: 2px solid #cbd5e1;
}

/* Table Row & Cell Base */
.data-table tbody tr {
    transition: background 0.15s ease-in-out;
}
html.dark .data-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
html.light .data-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}
html.dark .data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}
html.light .data-table tbody tr:hover {
    background: #f8fafc;
}
.data-table tbody td {
    padding: 13px 16px;
    vertical-align: middle;
}

/* Transaction Code Badges */
.tx-badge-code {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
html.dark .tx-badge-income {
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(129, 140, 248, 0.40);
    color: #c7d2fe;
}
html.light .tx-badge-income {
    background: #e0e7ff;
    border: 1px solid #a5b4fc;
    color: #312e81;
}
html.dark .tx-badge-expense {
    background: rgba(244, 63, 94, 0.18);
    border: 1px solid rgba(251, 113, 133, 0.40);
    color: #fecdd3;
}
html.light .tx-badge-expense {
    background: #ffe4e6;
    border: 1px solid #fecdd3;
    color: #881337;
}
html.dark .tx-badge-locked {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}
html.light .tx-badge-locked {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
}

/* Cell: Sumber / Pembayar & Penerima / Vendor (High Definition & Bold) */
.table-cell-title {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
html.dark .table-cell-title {
    color: #ffffff;
}
html.light .table-cell-title {
    color: #0f172a;
}

/* Cell: Keterangan / Peruntukan */
.table-cell-desc {
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
}
html.dark .table-cell-desc {
    color: #cbd5e1;
}
html.light .table-cell-desc {
    color: #334155;
}

/* Cell: Nominal Pemasukan (+Rp ...) */
.table-amount-credit {
    font-size: 14.5px;
    font-weight: 900;
    letter-spacing: -0.02em;
}
html.dark .table-amount-credit {
    color: #34d399; /* Vivid Emerald-400 */
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.25);
}
html.light .table-amount-credit {
    color: #047857; /* Deep Emerald-700 */
}

/* Cell: Nominal Pengeluaran (-Rp ...) */
.table-amount-debit {
    font-size: 14.5px;
    font-weight: 900;
    letter-spacing: -0.02em;
}
html.dark .table-amount-debit {
    color: #fb7185; /* Vivid Rose-400 */
    text-shadow: 0 0 10px rgba(251, 113, 133, 0.25);
}
html.light .table-amount-debit {
    color: #be123c; /* Deep Rose-700 */
}

/* Cell: Tanggal */
.table-cell-date {
    font-size: 12.5px;
    font-weight: 600;
}
html.dark .table-cell-date {
    color: #cbd5e1;
}
html.light .table-cell-date {
    color: #475569;
}

/* Badges inside tables */
.data-table .badge {
    font-weight: 700;
    font-size: 11.5px;
    padding: 3.5px 9px;
    border-radius: 99px;
}
html.dark .data-table .badge-success {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.40);
    color: #6ee7b7;
}
html.light .data-table .badge-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}
html.dark .data-table .badge-warning {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.40);
    color: #fde68a;
}
html.light .data-table .badge-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}
html.dark .data-table .badge-info {
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.40);
    color: #93c5fd;
}
html.light .data-table .badge-info {
    background: #dbeafe;
    border: 1px solid #93c5fd;
    color: #1e40af;
}
html.dark .data-table .badge-purple {
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.40);
    color: #d8b4fe;
}
html.light .data-table .badge-purple {
    background: #f3e8ff;
    border: 1px solid #d8b4fe;
    color: #581c87;
}
html.dark .data-table .badge-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
}
html.light .data-table .badge-secondary {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
}

/* Section Card Headers (Pemasukan & Pengeluaran) */
html.dark #section-incomes {
    border-color: rgba(16, 185, 129, 0.30);
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.15) 0%, rgba(15, 23, 42, 0.85) 100%);
}
html.light #section-incomes {
    border-color: #a7f3d0;
    background: #ffffff;
    box-shadow: 0 4px 20px -2px rgba(16, 185, 129, 0.08);
}
html.dark #section-expenses {
    border-color: rgba(244, 63, 94, 0.30);
    background: linear-gradient(135deg, rgba(136, 19, 55, 0.15) 0%, rgba(15, 23, 42, 0.85) 100%);
}
html.light #section-expenses {
    border-color: #fecdd3;
    background: #ffffff;
    box-shadow: 0 4px 20px -2px rgba(244, 63, 94, 0.08);
}

/* ====================================================
   5. PUBLIC FOOTER (Glassmorphism & Dual-Theme Responsive)
   ==================================================== */
#public-footer {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

html.dark #public-footer {
    background: rgba(10, 15, 29, 0.94);
    border-top-color: rgba(255, 255, 255, 0.10);
}
html.light #public-footer {
    background: rgba(248, 250, 252, 0.96);
    border-top-color: #e2e8f0;
}

html.dark .public-footer-border {
    border-color: rgba(255, 255, 255, 0.08);
}
html.light .public-footer-border {
    border-color: #e2e8f0;
}

html.dark .public-footer-title {
    color: #ffffff;
}
html.light .public-footer-title {
    color: #0f172a;
}

html.dark .public-footer-heading {
    color: #f1f5f9;
}
html.light .public-footer-heading {
    color: #1e293b;
}

html.dark .public-footer-text {
    color: #94a3b8;
}
html.light .public-footer-text {
    color: #475569;
}

html.dark .public-footer-subtext {
    color: #64748b;
}
html.light .public-footer-subtext {
    color: #64748b;
}

html.dark .public-footer-link {
    color: #94a3b8;
    transition: color 0.2s ease;
}
html.dark .public-footer-link:hover {
    color: #ffffff;
}

html.light .public-footer-link {
    color: #475569;
    transition: color 0.2s ease;
}
html.light .public-footer-link:hover {
    color: #0f172a;
}

html.dark .public-footer-card-border {
    border-color: rgba(255, 255, 255, 0.12);
}
html.light .public-footer-card-border {
    border-color: #cbd5e1;
}

html.dark .public-footer-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #cbd5e1;
}
html.light .public-footer-badge {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

html.dark .public-footer-help-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.60) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
}
html.dark .public-footer-help-card:hover {
    border-color: rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(15, 23, 42, 0.80) 100%);
    box-shadow: 0 8px 25px -4px rgba(16, 185, 129, 0.15);
}
html.light .public-footer-help-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, #ffffff 100%);
    border: 1px solid #a7f3d0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}
html.light .public-footer-help-card:hover {
    border-color: #34d399;
    box-shadow: 0 8px 20px -2px rgba(16, 185, 129, 0.15);
}

html.dark .public-footer-status-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
html.light .public-footer-status-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

html.dark .public-footer-version-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #94a3b8;
}
html.light .public-footer-version-badge {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
}

html.dark .public-footer-social-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}
html.dark .public-footer-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

html.light .public-footer-social-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
html.light .public-footer-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ====================================================
   PUBLIC DONATION FORM (Dual-Theme Contrast Architecture)
   ==================================================== */
/* Hero Goal Banner */
html.dark .donate-hero-banner {
    background: linear-gradient(135deg, rgba(80, 7, 36, 0.40) 0%, rgba(30, 27, 75, 0.45) 50%, rgba(59, 7, 100, 0.40) 100%);
    border: 1px solid rgba(244, 63, 94, 0.30);
}
html.light .donate-hero-banner {
    background: linear-gradient(135deg, #ffffff 0%, #fff1f2 50%, #f5f3ff 100%);
    border: 1.5px solid #fecdd3;
    box-shadow: 0 10px 30px -5px rgba(244, 63, 94, 0.10);
}

/* Donate Stat Pill inside Goal Banner */
html.dark .donate-stat-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
html.light .donate-stat-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

/* Amount Buttons */
.amount-btn {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
html.dark .amount-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
html.dark .amount-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(129, 140, 248, 0.50);
}
html.dark .amount-btn.active-amount {
    background: #4f46e5;
    border-color: #818cf8;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.45);
}

html.light .amount-btn {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.05);
}
html.light .amount-btn:hover {
    background: #eef2ff;
    border-color: #6366f1;
    color: #4338ca;
}
html.light .amount-btn.active-amount {
    background: #4f46e5;
    border-color: #4338ca;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
}

/* Payment Method Selection Cards */
.payment-method-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
html.dark .payment-method-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
html.dark .payment-method-card .donate-method-title {
    color: #ffffff;
}
html.dark .payment-method-card .donate-method-desc {
    color: #94a3b8;
}
html.dark .payment-method-card.active-method {
    background: rgba(99, 102, 241, 0.15);
    border: 1.5px solid #6366f1;
    box-shadow: 0 6px 20px -2px rgba(99, 102, 241, 0.35);
}

html.light .payment-method-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
html.light .payment-method-card .donate-method-title {
    color: #0f172a;
}
html.light .payment-method-card .donate-method-desc {
    color: #64748b;
}
html.light .payment-method-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}
html.light .payment-method-card.active-method {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    border: 2px solid #4f46e5;
    box-shadow: 0 6px 20px -2px rgba(79, 70, 229, 0.18);
}
html.light .payment-method-card.active-method .donate-method-title {
    color: #1e1b4b;
}

/* Anonymous Checkbox Box */
html.dark .anon-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
html.light .anon-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}

/* Manual Transfer Panel & Bank Account Box */
html.dark #manual-transfer-panel {
    background: rgba(120, 53, 15, 0.20);
    border: 1px solid rgba(245, 158, 11, 0.35);
}
html.light #manual-transfer-panel {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
}
html.dark .manual-rekening-box {
    background: rgba(0, 0, 0, 0.50);
    border: 1px solid rgba(245, 158, 11, 0.30);
}
html.light .manual-rekening-box {
    background: #ffffff;
    border: 1.5px solid #fcd34d;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}
html.dark .manual-rekening-num {
    color: #ffffff;
}
html.light .manual-rekening-num {
    color: #0f172a;
}

/* Prayer Wall (Tembok Doa) Items */
html.dark .prayer-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
html.light .prayer-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
html.dark .prayer-donor-name {
    color: #ffffff;
}
html.light .prayer-donor-name {
    color: #0f172a;
}
html.dark .prayer-msg {
    background: rgba(0, 0, 0, 0.30);
    color: #cbd5e1;
}
html.light .prayer-msg {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

/* ====================================================
   MEMBER TRANSACTION VERIFICATION CARD & ALERT
   ==================================================== */
/* Card Base */
html.dark .member-verify-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.40) 0%, rgba(15, 23, 42, 0.70) 50%, rgba(59, 7, 100, 0.40) 100%);
    border: 1px solid rgba(99, 102, 241, 0.30);
}
html.light .member-verify-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
}
html.dark .member-verify-title {
    color: #ffffff;
}
html.light .member-verify-title {
    color: #0f172a;
}
html.dark .member-verify-desc {
    color: #94a3b8;
}
html.light .member-verify-desc {
    color: #475569;
}

/* Sample Code Chip & ID Badge */
html.dark .member-verify-chip {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(129, 140, 248, 0.30);
    color: #c7d2fe;
}
html.light .member-verify-chip {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #3730a3;
    font-weight: 700;
}

/* Verified Emerald Alert Banner (High Contrast) */
html.dark .member-verify-alert {
    background: rgba(6, 78, 59, 0.30);
    border: 1.5px solid rgba(16, 185, 129, 0.40);
    color: #6ee7b7;
}
html.dark .member-verify-alert strong,
html.dark .member-verify-alert .member-verify-code {
    color: #a7f3d0;
    font-weight: 800;
}
html.dark .member-verify-alert i.fa-circle-check {
    color: #34d399;
}
html.dark .member-verify-reset-btn {
    color: #34d399;
    font-weight: 600;
}
html.dark .member-verify-reset-btn:hover {
    color: #ffffff;
}

/* Light Mode: Crisp Emerald Green with Deep Forest Typography */
html.light .member-verify-alert {
    background: #ecfdf5;
    border: 1.5px solid #6ee7b7;
    color: #065f46; /* Deep Emerald-800: sharp & crisp */
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}
html.light .member-verify-alert strong {
    color: #064e3b; /* Deep Emerald-900 */
    font-weight: 800;
}
html.light .member-verify-alert .member-verify-code {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #064e3b;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 6px;
}
html.light .member-verify-alert i.fa-circle-check {
    color: #059669; /* Vivid Emerald-600 */
}
html.light .member-verify-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}
html.light .member-verify-reset-btn:hover {
    background: #059669;
    border-color: #047857;
    color: #ffffff;
}

/* Error Banner */
html.dark .member-verify-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1.5px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}
html.light .member-verify-error {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.06);
}
html.light .member-verify-error i {
    color: #dc2626;
}

/* ====================================================
   TRANSPARENCY PAGE HEADER META PILLS & BADGE
   ==================================================== */
html.dark .transparency-meta-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}
html.dark .transparency-meta-date {
    color: #f1f5f9;
    font-weight: 700;
}
html.light .transparency-meta-pill {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #475569;
    box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.06);
}
html.light .transparency-meta-date {
    color: #0f172a; /* Jet black bold contrast */
    font-weight: 800;
}

html.dark .transparency-audit-badge {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}
html.light .transparency-audit-badge {
    background: #ecfdf5;
    border: 1.5px solid #6ee7b7;
    color: #065f46;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

/* ====================================================
   LOGIN PAGE - THEME LIGHT & DARK OPTIMIZATIONS
   ==================================================== */
/* Unified, harmonious background across the entire screen */
html.light,
html.light body,
html.light .auth-body {
    background-color: #f8fafc;
    color: #000000;
}
html.light .login-panel-left {
    background-color: #f8fafc;
    border-right: 1px solid #e2e8f0;
}
html.light .login-panel-right {
    background-color: #f8fafc;
}
html.light .auth-footer {
    background-color: #f8fafc;
    border: none;
    color: #000000;
}
html.light .auth-footer-brand {
    color: #000000;
}

/* Left Panel Elements in Light Mode */
html.light .login-brand-title {
    color: #000000;
    font-weight: 800;
}
html.light .login-brand-desc {
    color: #000000;
    font-weight: 500;
}
html.light .login-feature-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}
html.light .login-feature-icon-box {
    background-color: #e0e7ff;
    color: #4338ca;
}
html.light .login-feature-icon-box svg {
    color: #4338ca;
    stroke: #4338ca;
}
html.light .login-feature-title {
    color: #000000;
    font-weight: 700;
}
html.light .login-feature-desc {
    color: #000000;
    font-weight: 500;
}

/* Right Panel (Form Login) - No Box Container, Seamless */
html.light .login-title {
    color: #000000;
    font-weight: 800;
}
html.light .login-subtitle {
    color: #000000;
    font-weight: 500;
}
html.light .login-mobile-brand {
    color: #000000;
    font-weight: 800;
}

/* Form Labels */
html.light .login-label {
    color: #000000;
    font-weight: 700;
}

/* Form Input Fields */
html.light .login-input {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #000000;
    font-weight: 600;
}
html.light .login-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
    color: #000000;
}
html.light .login-input::placeholder {
    color: #64748b;
    font-weight: 400;
}

/* Input Icons & Password Eye Button - Guaranteed 100% Solid Black Visibility */
html.light .login-input-icon,
html.light .login-svg-icon {
    color: #000000;
    stroke: #000000;
}
html.light .login-eye-btn {
    color: #000000;
}
html.light .login-eye-btn svg {
    color: #000000;
    stroke: #000000;
}
html.light .login-eye-btn:hover svg {
    color: #4f46e5;
    stroke: #4f46e5;
}

/* Remember Me & Links */
html.light .login-remember-text {
    color: #000000;
    font-weight: 700;
}
html.light .login-forgot-link {
    color: #000000;
    font-weight: 700;
    text-decoration: underline;
}
html.light .login-forgot-link:hover {
    color: #4338ca;
}

/* Divider Line & Text */
html.light .login-divider-line {
    border-color: #cbd5e1;
}
html.light .login-divider-text {
    background-color: #f8fafc;
    color: #000000;
    font-weight: 700;
}

/* Google Sign-in Button */
html.light .login-google-btn {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #000000;
    font-weight: 700;
    box-shadow: none;
}
html.light .login-google-btn span {
    color: #000000;
    font-weight: 700;
}
html.light .login-google-btn:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

/* Register Link */
html.light .login-register-text {
    color: #000000;
    font-weight: 500;
}
html.light .login-register-link {
    color: #000000;
    font-weight: 800;
    text-decoration: underline;
}
html.light .login-register-link:hover {
    color: #4338ca;
}

/* Demo Accounts - No Outer Box, Seamless Flat Layout */
html.light .login-demo-box {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
html.light .login-demo-title {
    color: #000000;
    font-weight: 800;
}
html.light .login-demo-btn {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}
html.light .login-demo-btn:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}
html.light .login-demo-role {
    color: #000000;
    font-weight: 800;
}
html.light .login-demo-email {
    color: #000000;
    font-weight: 600;
}

/* ====================================================
   DARK MODE EQUIVALENTS
   ==================================================== */
html.dark,
html.dark body,
html.dark .auth-body {
    background-color: #0a192f;
    color: #f9fafb;
}
html.dark .login-panel-left {
    background-color: #0a192f;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}
html.dark .login-panel-right {
    background-color: #0a192f;
}
html.dark .login-bg-grid,
html.dark .login-glow-1,
html.dark .login-glow-2 {
    display: none;
}
html.dark .login-brand-title {
    color: #ffffff;
}
html.dark .login-brand-desc {
    color: #94a3b8;
}
html.dark .login-feature-card {
    background-color: rgba(17, 34, 64, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}
html.dark .login-feature-icon-box {
    background-color: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}
html.dark .login-feature-icon-box svg {
    color: #818cf8;
    stroke: #818cf8;
}
html.dark .login-feature-title {
    color: #ffffff;
}
html.dark .login-feature-desc {
    color: #94a3b8;
}
html.dark .login-title {
    color: #ffffff;
}
html.dark .login-subtitle {
    color: #94a3b8;
}
html.dark .login-mobile-brand {
    color: #ffffff;
}
html.dark .login-label {
    color: #e2e8f0;
}
html.dark .login-input {
    background-color: #112240;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
html.dark .login-input:focus {
    background-color: #162a50;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
    color: #ffffff;
}
html.dark .login-input::placeholder {
    color: #64748b;
}
html.dark .login-svg-icon {
    color: #94a3af;
    stroke: #94a3af;
}
html.dark .login-eye-btn {
    color: #94a3af;
}
html.dark .login-eye-btn:hover svg {
    color: #ffffff;
    stroke: #ffffff;
}
html.dark .login-remember-text {
    color: #94a3af;
}
html.dark .login-forgot-link {
    color: #818cf8;
}
html.dark .login-forgot-link:hover {
    color: #a5b4fc;
}
html.dark .login-divider-line {
    border-color: rgba(255, 255, 255, 0.1);
}
html.dark .login-divider-text {
    background-color: #0a192f;
    color: #94a3af;
}
html.dark .login-google-btn {
    background-color: #ffffff;
    color: #1f2937;
}
html.dark .login-google-btn span {
    color: #1f2937;
}
html.dark .login-google-btn:hover {
    background-color: #f1f5f9;
}
html.dark .login-register-text {
    color: #94a3af;
}
html.dark .login-register-link {
    color: #818cf8;
}
html.dark .login-register-link:hover {
    color: #a5b4fc;
}
html.dark .login-demo-box {
    background: transparent;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
html.dark .login-demo-title {
    color: #8892b0;
    font-weight: 600;
}
html.dark .login-demo-btn {
    background-color: rgba(17, 34, 64, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
html.dark .login-demo-btn:hover {
    background-color: rgba(17, 34, 64, 0.95);
    border-color: rgba(99, 102, 241, 0.35);
}
html.dark .login-demo-btn.login-demo-admin {
    background: linear-gradient(to bottom right, rgba(99, 102, 241, 0.25), rgba(17, 34, 64, 0.8));
}
html.dark .login-demo-btn.login-demo-bendahara {
    background: linear-gradient(to bottom right, rgba(16, 185, 129, 0.25), rgba(17, 34, 64, 0.8));
}
html.dark .login-demo-btn.login-demo-ketua {
    background: linear-gradient(to bottom right, rgba(245, 158, 11, 0.25), rgba(17, 34, 64, 0.8));
}
html.dark .login-demo-btn.login-demo-koordinator {
    background: linear-gradient(to bottom right, rgba(234, 179, 8, 0.25), rgba(17, 34, 64, 0.8));
}
html.dark .login-demo-btn.login-demo-anggota {
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.25), rgba(17, 34, 64, 0.8));
}
html.dark .login-demo-role {
    color: #ffffff;
    font-weight: 600;
}
html.dark .login-demo-email {
    color: #8892b0;
}
html.dark .login-demo-btn:hover .login-demo-email {
    color: #ccd6f6;
}
html.dark .auth-footer {
    background-color: #0a192f;
    border: none;
    color: #64748b;
}
html.dark .auth-footer-brand {
    color: #94a3af;
}

/* ====================================================
   REGISTER PAGE - THEME LIGHT & DARK OPTIMIZATIONS
   ==================================================== */
/* Register Header */
html.light .register-title {
    color: #000000;
    font-weight: 800;
}
html.light .register-subtitle {
    color: #000000;
    font-weight: 600;
}

/* Register Card Container */
html.light .register-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Badge Info Box */
html.light .register-badge-info {
    background-color: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #000000;
}
html.light .register-badge-icon {
    background-color: #e0e7ff;
    color: #3730a3;
}
html.light .register-badge-icon svg {
    color: #3730a3;
    stroke: #3730a3;
}
html.light .register-badge-text {
    color: #000000;
}
html.light .register-badge-highlight {
    color: #3730a3;
    font-weight: 800;
}

/* Form Labels - Solid Black & Bold */
html.light .register-label {
    color: #000000;
    font-weight: 700;
}

/* Form Inputs & Selects - Solid Black Text */
html.light .register-input {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #000000;
    font-weight: 600;
}
html.light .register-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
    color: #000000;
}
html.light .register-input::placeholder {
    color: #64748b;
    font-weight: 400;
}
html.light select.register-input option {
    background-color: #ffffff;
    color: #000000;
}

/* Help & Optional Text */
html.light .register-help-text {
    color: #000000;
    font-weight: 600;
}
html.light .register-optional-text {
    color: #000000;
    font-weight: 600;
}

/* Input Icons & Password Eye Button - Guaranteed 100% Solid Black Visibility */
html.light .register-input-icon,
html.light .register-svg-icon {
    color: #000000;
    stroke: #000000;
}
html.light .register-eye-btn {
    color: #000000;
}
html.light .register-eye-btn svg {
    color: #000000;
    stroke: #000000;
}
html.light .register-eye-btn:hover svg {
    color: #4f46e5;
    stroke: #4f46e5;
}

/* Back to Login Footer */
html.light .register-login-text {
    color: #000000;
    font-weight: 600;
}
html.light .register-login-link {
    color: #000000;
    font-weight: 800;
    text-decoration: underline;
}
html.light .register-login-link:hover {
    color: #4338ca;
}

/* Dark mode equivalents for Register */
html.dark .register-title {
    color: #ffffff;
}
html.dark .register-subtitle {
    color: #9ca3af;
}
html.dark .register-card {
    background-color: #112240;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
html.dark .register-badge-info {
    background-color: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}
html.dark .register-badge-icon {
    background-color: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}
html.dark .register-badge-icon svg {
    color: #818cf8;
    stroke: #818cf8;
}
html.dark .register-badge-text {
    color: #c7d2fe;
}
html.dark .register-badge-highlight {
    color: #e0e7ff;
}
html.dark .register-label {
    color: #e2e8f0;
}
html.dark .register-input {
    background-color: #0a192f;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
html.dark select.register-input option {
    background-color: #0a192f;
    color: #ffffff;
}
html.dark .register-help-text {
    color: #9ca3af;
}
html.dark .register-optional-text {
    color: #9ca3af;
}
html.dark .register-input-icon,
html.dark .register-svg-icon {
    color: #9ca3af;
    stroke: #9ca3af;
}
html.dark .register-eye-btn {
    color: #9ca3af;
}
html.dark .register-eye-btn:hover svg {
    color: #ffffff;
    stroke: #ffffff;
}
html.dark .register-login-text {
    color: #9ca3af;
}
html.dark .register-login-link {
    color: #818cf8;
}

/* ====================================================
   5.8 SPONSORS PAGE (Light / Dark Mode Enhancements)
   ==================================================== */
html.light .sponsor-hero-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04) !important;
}

html.light .sponsor-card-tier50 {
    background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%) !important;
    border: 2px solid #f59e0b !important;
    box-shadow: 0 12px 30px -8px rgba(245, 158, 11, 0.22), 0 4px 12px -2px rgba(15, 23, 42, 0.06) !important;
}

html.light .sponsor-card-tier25 {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
}

html.light .sponsor-card-tier25:hover {
    border-color: #94a3b8 !important;
    box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.12) !important;
    transform: translateY(-3px);
}

html.light .sponsor-logo-box {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

html.light .sponsor-nominal-badge {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

html.light .sponsor-desc-text {
    color: #334155 !important;
    line-height: 1.6 !important;
}

html.light .sponsor-title-text {
    color: #0f172a !important;
}

/* Ensure no text truncation on sponsor elements */
.sponsor-card-tier50 *,
.sponsor-card-tier25 * {
    text-overflow: clip !important;
}

/* Dark mode overrides for consistency */
html.dark .sponsor-hero-card {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html.dark .sponsor-card-tier50 {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    border: 2px solid #f59e0b !important;
}

html.dark .sponsor-card-tier25 {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html.dark .sponsor-card-tier25:hover {
    border-color: rgba(245, 158, 11, 0.5) !important;
}

html.dark .sponsor-logo-box {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html.dark .sponsor-nominal-badge {
    background-color: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

/* ====================================================
   5.9 DUES MODAL (Kelola Jenis & Nominal Scroll & Contrast)
   ==================================================== */
html.light .type-modal-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
}

html.light .type-modal-card h3 {
    color: #0f172a !important;
}

html.light .type-modal-card label {
    color: #334155 !important;
}

html.light .type-item-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

html.light .type-item-card:hover {
    border-color: #cbd5e1 !important;
    background: #f1f5f9 !important;
}

html.light .type-item-card p.text-white {
    color: #0f172a !important;
}

html.light .type-modal-card .border-white\/10 {
    border-color: #e2e8f0 !important;
}

html.light .type-modal-card .border-white\/5 {
    border-color: #f1f5f9 !important;
}

html.light .type-modal-card .bg-white\/5 {
    background-color: #f8fafc !important;
}

#confirm-delete-type-modal {
    z-index: 99999 !important;
}

html.light #confirm-delete-type-modal > div {
    background: #ffffff !important;
    border-color: #fecdd3 !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
}

html.light #confirm-delete-type-modal h3 {
    color: #0f172a !important;
}

html.light #confirm-delete-type-modal p {
    color: #475569 !important;
}

html.light #confirm-delete-type-modal #confirm-delete-type-target-name {
    color: #92400e !important;
}

html.light #confirm-delete-type-modal .bg-white\/5 {
    background-color: #fef3c7 !important;
    border-color: #fde68a !important;
}

/* Public Cart Confirmation Modal (Light Mode) */
html.light #remove-cart-modal {
    background-color: rgba(15, 23, 42, 0.5) !important;
}
html.light #remove-cart-modal > div {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
}
html.light #remove-cart-modal h3 {
    color: #0f172a !important;
}
html.light #remove-cart-modal p {
    color: #475569 !important;
}
html.light #remove-cart-modal #modal-item-name {
    color: #0f172a !important;
}
html.light #remove-cart-modal #modal-item-meta {
    color: #4f46e5 !important;
}
html.light #remove-cart-modal #modal-item-img-wrap {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}
html.light #remove-cart-modal button[onclick*="closeRemoveModal"] {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}
html.light #remove-cart-modal button[onclick*="closeRemoveModal"]:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html.light #remove-cart-modal #btn-confirm-delete {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25) !important;
}
html.light #remove-cart-modal #btn-confirm-delete:hover {
    background-color: #b91c1c !important;
}


/* Remove spinner / stepper navigation arrows on number inputs globally */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
input[type="number"] {
    -moz-appearance: textfield !important;
}

/* ====================================================
   5.10 DESKTOP COLLAPSIBLE SIDEBAR
   ==================================================== */
@media (min-width: 1024px) {
    html.sidebar-is-collapsed #sidebar {
        width: 74px !important;
        min-width: 74px !important;
    }

    html.sidebar-is-collapsed #sidebar .sidebar-logo-text,
    html.sidebar-is-collapsed #sidebar .sidebar-user-info,
    html.sidebar-is-collapsed #sidebar .sidebar-group-header,
    html.sidebar-is-collapsed #sidebar .sidebar-text,
    html.sidebar-is-collapsed #sidebar .sidebar-search-container,
    html.sidebar-is-collapsed #sidebar .sidebar-badge-full {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    html.sidebar-is-collapsed #sidebar .sidebar-group-divider {
        display: block !important;
    }

    html.sidebar-is-collapsed #sidebar .sidebar-logo-container {
        margin: 0 auto !important;
    }

    html.sidebar-is-collapsed #sidebar .sidebar-collapse-btn {
        display: none !important;
    }

    html.sidebar-is-collapsed #sidebar .sidebar-user-card {
        padding: 6px !important;
        justify-content: center !important;
    }

    html.sidebar-is-collapsed #sidebar .sidebar-item {
        justify-content: center !important;
        padding: 10px 0 !important;
        gap: 0 !important;
        position: relative !important;
    }

    html.sidebar-is-collapsed #sidebar .sidebar-item:hover {
        transform: none !important;
    }

    html.sidebar-is-collapsed #sidebar .sidebar-item .sidebar-icon {
        font-size: 16px !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    /* Active Indicator in collapsed mode */
    html.sidebar-is-collapsed #sidebar .sidebar-active::before {
        left: 3px !important;
        height: 20px !important;
        width: 3px !important;
    }

    /* Floating Tooltip popup on hover in collapsed mode */
    html.sidebar-is-collapsed #sidebar .sidebar-item[data-title]::after {
        content: attr(data-title);
        position: absolute;
        left: calc(100% + 12px);
        top: 50%;
        transform: translateY(-50%) scale(0.95);
        background: #0f172a;
        color: #ffffff;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
        transition: opacity 0.15s ease, transform 0.15s ease;
        z-index: 1000;
    }

    html.light.sidebar-is-collapsed #sidebar .sidebar-item[data-title]::after {
        background: #1e293b;
        color: #f8fafc;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    }

    html.sidebar-is-collapsed #sidebar .sidebar-item[data-title]:hover::after {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    /* Tooltip arrow pointer */
    html.sidebar-is-collapsed #sidebar .sidebar-item[data-title]::before {
        content: '';
        position: absolute;
        left: calc(100% + 6px);
        top: 50%;
        transform: translateY(-50%) scale(0.95);
        border-width: 5px 6px 5px 0;
        border-style: solid;
        border-color: transparent #0f172a transparent transparent;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.15s ease, transform 0.15s ease;
        z-index: 1000;
    }

    html.light.sidebar-is-collapsed #sidebar .sidebar-item[data-title]::before {
        border-color: transparent #1e293b transparent transparent;
    }

    html.sidebar-is-collapsed #sidebar .sidebar-item[data-title]:hover::before {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    /* Active badge indicator dot in collapsed mode */
    html.sidebar-is-collapsed #sidebar .sidebar-badge-dot {
        display: block !important;
    }
}

/* ====================================================
   6. PRINT RULES (Clean print media isolation)
   ==================================================== */
@media print {
    html body header,
    html body nav,
    html body footer,
    html body aside,
    html body #app-topbar,
    html body #app-footer,
    html body #public-navbar,
    html body #public-footer,
    html body #sidebar,
    html body #sidebar-overlay,
    html body .sidebar-backdrop,
    html body #global-nav-cart-btn,
    html body .no-print,
    html body div.no-print,
    html body div.no-print *,
    html body .no-print *,
    header.flex,
    header[class],
    nav[class],
    footer[class],
    aside[class],
    marquee,
    .topbar,
    .no-print,
    .no-print * {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        overflow: hidden !important;
        opacity: 0 !important;
    }
}

/* ====================================================
   7. UNIVERSAL MOBILE SCREEN FITTING & BOX WRAPPING
   ==================================================== */
@media screen and (max-width: 640px) {
    /* Prevent viewport overflow across all elements */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

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

    /* All Cards & Containers: Auto-fit within mobile screen */
    .glass-card,
    .landing-card,
    .chart-card,
    .stat-card,
    .senior-card,
    .theme-card,
    .member-verify-card,
    .transparency-stat-card,
    .fund-tab-card,
    .ticket-checker-box,
    .ticket-print-item,
    .landing-event-box,
    .batak-quote-banner,
    .section-toggle-card,
    .donate-hero-banner,
    .summary-card,
    .card,
    [class*="glass-card"]:not(.glass-card-dropdown) {
        max-width: 100% !important;
        width: 100% !important;
        padding: 14px 14px !important;
        border-radius: 16px !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }

    /* Floating Dropdown Menus in Header: Preserve geometry & prevent squishing/clipping on mobile */
    .glass-card-dropdown {
        width: auto !important;
        max-width: calc(100vw - 16px) !important;
        padding: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    #profile-menu {
        width: 16rem !important; /* 256px */
        max-width: calc(100vw - 16px) !important;
        padding: 0 !important;
    }

    /* Official Electronic Receipt Card Mobile Proportional Fitting */
    #printable-receipt {
        padding: 18px 16px !important;
        border-radius: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images inside cards: Never exceed card boundary */
    .glass-card img,
    .landing-card img,
    .stat-card img,
    .ticket-print-item img,
    .card img {
        max-width: 100% !important;
        height: auto;
    }

    /* Page Header: Clean vertical stack on mobile */
    .page-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
        width: 100% !important;
    }
    .page-title {
        font-size: 17px !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
    }
    .page-subtitle {
        font-size: 11.5px !important;
        line-height: 1.4 !important;
    }

    /* Form Fields & Inputs: 100% Full Width inside their box */
    .form-input,
    .form-select,
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="url"],
    input[type="search"],
    select,
    textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 13px !important;
    }

    /* Table containment: Never stretch parent box */
    .table-container,
    .table-responsive,
    .data-table-container,
    div.overflow-x-auto {
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Grid & Flex items safety wrap */
    .grid {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Stats numbers and values text wrap */
    .stat-value,
    .amount-credit,
    .amount-debit,
    .landing-card-title,
    .transparency-stat-val {
        word-break: normal !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }

    .landing-card-title,
    .transparency-stat-val {
        font-size: clamp(1.15rem, 5.5vw, 1.5rem) !important;
        line-height: 1.25 !important;
    }

    /* Modals & Dialogs mobile fitting */
    .modal-dialog,
    .modal-content {
        max-width: calc(100vw - 24px) !important;
        margin: 12px auto !important;
        padding: 16px !important;
        border-radius: 16px !important;
    }
}

/* ====================================================
   LIGHTBOX THEATER MODE (Dual Theme Safety Isolation)
   ==================================================== */
#lightbox-modal {
    background-color: rgba(2, 6, 23, 0.97) !important;
}
#lightbox-modal * {
    box-sizing: border-box;
}
#lightbox-modal #lb-download-btn,
#lightbox-modal button {
    color: #ffffff !important;
}
#lightbox-modal #lb-counter {
    color: #a5b4fc !important;
    background-color: rgba(30, 41, 59, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}
#lightbox-modal #lb-title {
    color: #ffffff !important;
}

/* ====================================================
   MOBILE PULL-TO-REFRESH (Tarik / Usap ke Bawah)
   ==================================================== */
.b-ptr-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    pointer-events: none;
    transform: translateY(-80px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.b-ptr-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    user-select: none;
    -webkit-user-select: none;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

/* Dark theme */
html.dark .b-ptr-pill {
    background-color: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.7), 0 0 15px rgba(99, 102, 241, 0.3);
    color: #f1f5f9;
}
html.dark .b-ptr-arrow,
html.dark .b-ptr-spinner {
    color: #818cf8;
}

/* Light theme */
html:not(.dark) .b-ptr-pill,
html.light .b-ptr-pill {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    color: #0f172a;
}
html:not(.dark) .b-ptr-arrow,
html:not(.dark) .b-ptr-spinner,
html.light .b-ptr-arrow,
html.light .b-ptr-spinner {
    color: #4f46e5;
}

.b-ptr-spinner-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.b-ptr-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.15s ease;
}

.b-ptr-spinner {
    width: 16px;
    height: 16px;
    animation: bPtrSpin 0.75s linear infinite;
}

@keyframes bPtrSpin {
    100% {
        transform: rotate(360deg);
    }
}

