/* ==========================================================================
   DigiMTs - Ultra-Modern High-Contrast Glassmorphism Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Emerald Palette */
    --emerald-deep: #031913;
    --emerald-dark: #06261c;
    --emerald-card: rgba(8, 38, 29, 0.92);
    --emerald-main: #059669;
    --emerald-light: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.35);

    /* Gold / Amber Palette */
    --gold-deep: #78350f;
    --gold-main: #d97706;
    --gold-light: #f59e0b;
    --gold-bright: #fbbf24;
    --gold-border: rgba(255, 215, 0, 0.35);
    --gold-border-hover: rgba(255, 215, 0, 0.75);
    --gold-glow: rgba(245, 158, 11, 0.3);

    /* Neutral & High Contrast Text */
    --bg-main: #040e0b;
    --text-light: #ffffff;
    --text-body: #e2e8f0;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.15);

    /* Layout & Radius */
    --radius-squircle: 20px;
    --radius-card: 22px;
    --radius-button: 12px;
    --shadow-luxury: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(5, 150, 105, 0.2);
}

/* ==========================================================================
   CUSTOM LUXURY SCROLLBAR SYSTEM (GLOBAL & MODALS)
   ========================================================================== */
/* Firefox Scrollbar Standard */
html, body, *, *::before, *::after {
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 158, 11, 0.45) rgba(15, 23, 42, 0.7);
}

/* Webkit Scrollbars (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.5), rgba(217, 119, 6, 0.7));
    border-radius: 10px;
    border: 2px solid rgba(15, 23, 42, 0.7);
    transition: all 0.25s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

::-webkit-scrollbar-corner {
    background: rgba(15, 23, 42, 0.9);
}

/* Specific Custom Scrollbars for Modals, Tables & Comboboxes */
.modal-body::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.combobox-dropdown-list::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.modal-body::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.combobox-dropdown-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f59e0b, #d97706);
    border-radius: 6px;
    border: 1px solid rgba(15, 23, 42, 0.8);
}

.modal-body::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover,
.combobox-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #fbbf24;
}

/* Global Reset & High-Contrast Anchors */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 5% 10%, rgba(5, 150, 105, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 95% 20%, rgba(245, 158, 11, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(99, 102, 241, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(3, 25, 19, 0.9) 0%, transparent 100%);
    background-attachment: fixed;
    color: var(--text-body);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

/* Force Default Anchor Contrast Overrides */
a, a:link, a:visited {
    color: inherit;
    text-decoration: none;
}

/* Container Structure */
.app-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ==========================================================================
   Header & Brand Banner
   ========================================================================== */
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(6, 24, 19, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-card);
    padding: 1.25rem 2rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-luxury);
    position: relative;
    overflow: hidden;
}

.portal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #fbbf24, #6366f1, #10b981);
    background-size: 300% 100%;
    animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand-logo-halo {
    position: relative;
}

.brand-logo-halo::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    background: linear-gradient(135deg, #10b981, #f59e0b, #6366f1);
    opacity: 0.6;
    filter: blur(8px);
    z-index: 0;
    animation: pulseAura 4s ease-in-out infinite alternate;
}

@keyframes pulseAura {
    0% { opacity: 0.4; filter: blur(6px); }
    100% { opacity: 0.8; filter: blur(12px); }
}

.brand-logo {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    background: #031913;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-bright);
    overflow: hidden;
}

.brand-logo img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.brand-logo svg {
    width: 32px;
    height: 32px;
    color: var(--gold-bright);
}

.glow-text {
    font-size: 1.65rem;
    background: linear-gradient(135deg, #ffffff 30%, #fbbf24 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.1rem;
}

.brand-title h1 {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ffffff 30%, #fbbf24 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.65rem;
}

.brand-title p {
    color: var(--text-muted) !important;
    font-size: 0.875rem;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.npsn-pill {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 1px 8px;
    border-radius: 6px;
    font-size: 0.725rem;
    font-weight: 700;
}

/* Header Live WITA Clock Badge */
.header-clock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 0.45rem 0.85rem;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.header-clock-badge:hover {
    border-color: rgba(251, 191, 36, 0.6);
    background: rgba(251, 191, 36, 0.1);
    box-shadow: 0 4px 18px rgba(251, 191, 36, 0.25);
}

.header-clock-badge .clock-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.4));
    border: 1px solid rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    flex-shrink: 0;
}

.header-clock-badge .clock-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.header-clock-badge .clock-time {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.925rem;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.header-clock-badge .clock-date {
    font-size: 0.725rem;
    color: #cbd5e1;
    font-weight: 500;
}

/* User Badge Header */
.user-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.user-card-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 16px;
}

.user-avatar-glow {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    font-size: 0.925rem;
    color: #ffffff;
}

.user-subinfo {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.role-pill-vibrant {
    padding: 1px 8px;
    font-size: 0.675rem;
    font-weight: 800;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin     { background: rgba(239, 68, 68, 0.25); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.5); }
.role-guru      { background: rgba(59, 130, 246, 0.25); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.5); }
.role-siswa     { background: rgba(16, 185, 129, 0.25); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.5); }
.role-bendahara { background: rgba(245, 158, 11, 0.25); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.5); }

.nis-nip-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-logout-vibrant {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.btn-logout-vibrant:hover {
    background: rgba(239, 68, 68, 0.35);
    color: #ffffff !important;
    border-color: #f87171;
    transform: translateY(-2px);
}

/* ==========================================================================
   News Ticker Banner
   ========================================================================== */
.news-ticker-banner {
    background: rgba(6, 24, 19, 0.92);
    border: 1px solid var(--gold-border);
    border-radius: 14px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.ticker-badge-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.ticker-items {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.ticker-items::-webkit-scrollbar {
    display: none;
}

.ticker-item, 
.ticker-item:link, 
.ticker-item:visited {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ticker-item:hover .ticker-title {
    color: var(--gold-bright) !important;
    text-decoration: underline !important;
}

.ticker-title {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 0.875rem;
}

.ticker-separator {
    color: rgba(255, 255, 255, 0.3);
    font-weight: bold;
    font-size: 1rem;
}

.ticker-btn-more,
.ticker-btn-more:link,
.ticker-btn-more:visited {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.45);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ticker-btn-more:hover {
    background: rgba(245, 158, 11, 0.35);
    color: #ffffff !important;
    border-color: #fbbf24;
    transform: translateY(-1px);
}

/* ==========================================================================
   Quick Stats Grid Pillars (4 Columns)
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(8, 38, 29, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    backdrop-filter: blur(16px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-card-clickable {
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card-clickable:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.stat-card-clickable.active-filter {
    border-width: 2px !important;
    background: rgba(12, 48, 38, 0.98) !important;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.35) !important;
}

.stat-card-clickable.active-filter::after {
    content: "✓ FILTER AKTIF";
    position: absolute;
    top: -10px;
    right: 14px;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-card:hover {
    transform: translateY(-4px);
}

.card-glow-emerald:hover { border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2); }
.card-glow-amber:hover   { border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2); }
.card-glow-indigo:hover  { border-color: rgba(99, 102, 241, 0.6); box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2); }
.card-glow-rose:hover    { border-color: rgba(244, 63, 94, 0.6); box-shadow: 0 10px 30px rgba(244, 63, 94, 0.2); }

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.grad-emerald { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.grad-amber   { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3); }
.grad-indigo  { background: linear-gradient(135deg, #4f46e5, #6366f1); box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3); }
.grad-rose    { background: linear-gradient(135deg, #e11d48, #f43f5e); box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3); }

/* Redesigned Featured Portal Icons */
.portal-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

.portal-header-icon::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.portal-icon-purple {
    background: linear-gradient(135deg, #6b21a8 0%, #a855f7 50%, #c084fc 100%);
    box-shadow: 0 8px 22px rgba(168, 85, 247, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.portal-icon-blue {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #7dd3fc 100%);
    box-shadow: 0 8px 22px rgba(56, 189, 248, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.portal-icon-emerald {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.stat-card:hover .portal-header-icon {
    transform: scale(1.08) translateY(-2px) rotate(-3deg);
}

.stat-card:hover .portal-icon-purple {
    box-shadow: 0 12px 28px rgba(168, 85, 247, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.stat-card:hover .portal-icon-blue {
    box-shadow: 0 12px 28px rgba(56, 189, 248, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.stat-card:hover .portal-icon-emerald {
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.portal-header-icon svg {
    transition: transform 0.35s ease, filter 0.35s ease;
}

.stat-card:hover .portal-header-icon svg {
    transform: scale(1.12);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.stat-val {
    font-size: 1.45rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.text-emerald-bright { color: #34d399; }
.text-amber-bright   { color: #fbbf24; }
.text-indigo-bright  { color: #818cf8; }
.text-rose-bright    { color: #fb7185; }

.stat-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-desc {
    font-size: 0.68rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.35;
    margin-top: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    letter-spacing: 0.1px;
}

.stat-desc-emerald {
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stat-desc-amber {
    background: rgba(245, 158, 11, 0.14);
    color: #fde047;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.stat-desc-indigo {
    background: rgba(99, 102, 241, 0.14);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.stat-desc-rose {
    background: rgba(244, 63, 94, 0.14);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.3);
}


/* ==========================================================================
   Quick Filter Tabs Bar & Category Navigation
   ========================================================================== */
.portal-nav-bar {
    background: rgba(6, 24, 19, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    backdrop-filter: blur(16px);
}

.nav-bar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}

.filter-tab-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.portal-filter-tab {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1 !important;
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.portal-filter-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

.portal-filter-tab.active {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: #ffffff !important;
    border-color: #34d399 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   Berita Page Category Tabs & Controls (berita.php)
   ========================================================================== */
.news-controls-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.75rem;
    background: rgba(6, 24, 19, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-luxury);
}

.search-filter-form {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    flex: 1;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    min-width: 260px;
}

.form-input-clean {
    background: none;
    border: none;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
}

.form-input-clean:focus {
    outline: none;
}

.form-input-clean::placeholder {
    color: var(--text-muted);
}

.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.cat-tab, 
.cat-tab:link, 
.cat-tab:visited {
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    display: inline-block;
}

.cat-tab:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.cat-tab.active {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: #ffffff !important;
    border-color: #34d399 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
    font-weight: 700;
}

/* Category Badges (Pills) */
.badge-kat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.725rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pengumuman { background: rgba(245, 158, 11, 0.25); color: #fbbf24 !important; border: 1px solid rgba(245, 158, 11, 0.5); }
.badge-akademik   { background: rgba(59, 130, 246, 0.25); color: #60a5fa !important; border: 1px solid rgba(59, 130, 246, 0.5); }
.badge-kegiatan   { background: rgba(168, 85, 247, 0.25); color: #c084fc !important; border: 1px solid rgba(168, 85, 247, 0.5); }
.badge-prestasi   { background: rgba(16, 185, 129, 0.25); color: #34d399 !important; border: 1px solid rgba(16, 185, 129, 0.5); }

.badge-draft {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.5);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.725rem;
    font-weight: 700;
}

/* News Cards (berita.php) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-card {
    background: rgba(8, 38, 29, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(16px);
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-border-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.news-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.news-snippet {
    font-size: 0.875rem;
    color: #cbd5e1 !important;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.news-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-read,
.btn-read:link,
.btn-read:visited {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.45);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.btn-read:hover {
    background: rgba(245, 158, 11, 0.35);
    color: #ffffff !important;
    border-color: #fbbf24;
}

.btn-icon-action {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-action:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-icon-action.danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171 !important;
}

.btn-icon-action.danger:hover {
    background: rgba(239, 68, 68, 0.4);
    color: #ffffff !important;
}

/* ==========================================================================
   Grouped Category Sections & Bento Grid (index.php)
   ========================================================================== */
.category-block {
    margin-bottom: 2.5rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon-squircle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.category-icon-squircle svg {
    width: 24px;
    height: 24px;
}

.category-header h2 {
    font-size: 1.3rem;
    color: #ffffff !important;
    margin: 0;
}

.category-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 2px 0 0 0;
}

.cat-pill-badge {
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-badge-amber   { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.cat-badge-blue    { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.cat-badge-emerald { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.cat-badge-purple  { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.bento-card {
    background: rgba(8, 38, 29, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 60%);
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* Card Specific Vibrant Border Hover Themes */
.card-amber:hover   { border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 15px 35px rgba(245, 158, 11, 0.25); }
.card-gold:hover    { border-color: rgba(251, 191, 36, 0.6); box-shadow: 0 15px 35px rgba(251, 191, 36, 0.25); }
.card-red:hover     { border-color: rgba(239, 68, 68, 0.6); box-shadow: 0 15px 35px rgba(239, 68, 68, 0.25); }
.card-indigo:hover { border-color: rgba(99, 102, 241, 0.6); box-shadow: 0 15px 35px rgba(99, 102, 241, 0.25); }
.card-cyan:hover   { border-color: rgba(6, 182, 212, 0.6); box-shadow: 0 15px 35px rgba(6, 182, 212, 0.25); }
.card-blue:hover   { border-color: rgba(59, 130, 246, 0.6); box-shadow: 0 15px 35px rgba(59, 130, 246, 0.25); }
.card-emerald:hover{ border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 15px 35px rgba(16, 185, 129, 0.25); }
.card-teal:hover   { border-color: rgba(20, 184, 166, 0.6); box-shadow: 0 15px 35px rgba(20, 184, 166, 0.25); }
.card-purple:hover { border-color: rgba(168, 85, 247, 0.6); box-shadow: 0 15px 35px rgba(168, 85, 247, 0.25); }
.card-violet:hover { border-color: rgba(139, 92, 246, 0.6); box-shadow: 0 15px 35px rgba(139, 92, 246, 0.25); }

.bento-top {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.squircle-icon-vibrant {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.card-amber .squircle-icon-vibrant   { background: linear-gradient(135deg, #d97706, #f59e0b); color: #ffffff; }
.card-gold .squircle-icon-vibrant    { background: linear-gradient(135deg, #b45309, #fbbf24); color: #ffffff; }
.card-red .squircle-icon-vibrant     { background: linear-gradient(135deg, #dc2626, #ef4444); color: #ffffff; }
.card-indigo .squircle-icon-vibrant { background: linear-gradient(135deg, #4338ca, #6366f1); color: #ffffff; }
.card-cyan .squircle-icon-vibrant   { background: linear-gradient(135deg, #0891b2, #06b6d4); color: #ffffff; }
.card-blue .squircle-icon-vibrant   { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #ffffff; }
.card-emerald .squircle-icon-vibrant{ background: linear-gradient(135deg, #047857, #10b981); color: #ffffff; }
.card-teal .squircle-icon-vibrant   { background: linear-gradient(135deg, #0f766e, #14b8a6); color: #ffffff; }
.card-purple .squircle-icon-vibrant { background: linear-gradient(135deg, #7e22ce, #a855f7); color: #ffffff; }
.card-violet .squircle-icon-vibrant { background: linear-gradient(135deg, #6d28d9, #8b5cf6); color: #ffffff; }

.squircle-icon-vibrant svg {
    width: 28px;
    height: 28px;
}

.bento-content {
    flex: 1;
}

.bento-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.bento-desc {
    font-size: 0.875rem;
    color: #cbd5e1 !important;
    line-height: 1.5;
}

.bento-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bento-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-action-arrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-bright);
    transition: transform 0.25s ease;
}

.arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.bento-card:hover .arrow-icon {
    transform: translateX(4px);
}

/* Restricted Card Styling */
.bento-restricted {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}

.bento-restricted:hover {
    transform: none;
    box-shadow: none;
}

.restricted-icon {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: transparent !important;
    color: var(--text-dim) !important;
}

.restricted-tag-label {
    font-size: 0.75rem;
    color: #f87171;
    margin-left: 6px;
    font-weight: 600;
}

.tag-restricted {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

.text-muted-card {
    color: var(--text-dim) !important;
}

/* Setup Application Layout (setup_aplikasi.php) */
.setup-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .setup-grid {
        grid-template-columns: 1fr;
    }
}

.setup-preview-card,
.setup-form-card {
    background: rgba(8, 38, 29, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.75rem;
    backdrop-filter: blur(16px);
}

.logo-preview-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-circle-lg {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid var(--gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

.logo-circle-lg img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.preview-school-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #ffffff;
}

.preview-school-npsn {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.preview-details {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.25rem;
    font-size: 0.875rem;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.775rem;
}

.detail-val {
    color: #ffffff;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-bright);
}

.form-input-file {
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    color: #ffffff;
    width: 100%;
    cursor: pointer;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 10000;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #061d16;
    border: 1px solid var(--gold-bright);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    color: #ffffff;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: #ffffff;
}

/* Form Controls, Modals & Utility Cards */
.card {
    background: rgba(8, 38, 29, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    backdrop-filter: blur(16px);
}

.btn-primary {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff !important;
    border: 1px solid #34d399;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-button);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #047857, #059669);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-button);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

/* Flash Alerts */
.flash-alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-button);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.flash-success {
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid var(--emerald-light);
    color: #a7f3d0;
}

.flash-danger {
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid #f87171;
    color: #fecaca;
}

.flash-close {
    background: none;
    border: none;
    color: currentColor;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 2.5rem 0 1.5rem 0;
    color: var(--text-dim);
    font-size: 0.875rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 3.5rem;
}

/* ==========================================================================
   Mobile Responsiveness (Ultra Optimized for Smartphones & Tablets)
   ========================================================================== */
@media (max-width: 900px) {
    .portal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .user-badge-wrapper {
        width: 100%;
        justify-content: space-between;
    }

    .portal-nav-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-tab-group {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .filter-tab-group::-webkit-scrollbar {
        display: none;
    }

    .portal-filter-tab {
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    .app-container {
        padding: 1rem 0.85rem;
    }

    .glow-text {
        font-size: 1.3rem;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .user-card-pill {
        padding: 0.4rem 0.75rem;
    }

    .user-name {
        font-size: 0.85rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
    }

    .stat-card {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .stat-val {
        font-size: 1.2rem;
    }

    .stat-lbl {
        font-size: 0.75rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bento-card {
        padding: 1.25rem;
    }

    .squircle-icon-vibrant {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .squircle-icon-vibrant svg {
        width: 22px;
        height: 22px;
    }

    .bento-title {
        font-size: 1.05rem;
    }

    .bento-desc {
        font-size: 0.8rem;
    }

    .news-ticker-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.85rem 1rem;
    }

    .ticker-btn-more {
        align-self: flex-end;
    }
}

/* ==========================================================================
   Absensi Digital Scanner & Geofencing GPS Styles (absen_siswa.php)
   ========================================================================== */
.absen-main-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .absen-main-grid {
        grid-template-columns: 1fr;
    }
}

.scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 12px;
}

.live-dot-pulse {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #10b981;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.mode-toggle-group {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mode-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-btn.active {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Camera Viewport Container */
.camera-viewport-container {
    position: relative;
    width: 100%;
    height: 320px;
    background: #020c09;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-viewport-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-fallback-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Scanner Overlays */
.scanner-overlay {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scanner-overlay.active {
    display: flex;
}

/* QR Code Laser Frame */
.qr-target-box {
    width: 200px;
    height: 200px;
    border: 2px dashed #fbbf24;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.45);
}

.laser-scanner-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    box-shadow: 0 0 15px #fbbf24;
    position: absolute;
    top: 0;
    animation: laserScan 2.5s ease-in-out infinite alternate;
}

@keyframes laserScan {
    0% { top: 5%; }
    100% { top: 95%; }
}

/* Face Biometric Oval Mesh */
.face-biometric-mesh {
    width: 190px;
    height: 240px;
    position: relative;
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.45);
}

.face-oval {
    width: 100%;
    height: 100%;
    border: 2px solid #34d399;
    border-radius: 50% 50% 45% 45%;
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
    animation: facePulse 2s ease-in-out infinite alternate;
}

@keyframes facePulse {
    0% { border-color: #34d399; box-shadow: 0 0 15px rgba(52, 211, 153, 0.3); }
    100% { border-color: #fbbf24; box-shadow: 0 0 25px rgba(251, 191, 36, 0.6); }
}

.mesh-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #10b981;
    border-style: solid;
}
.mesh-corner.top-left     { top: -5px; left: -5px; border-width: 3px 0 0 3px; }
.mesh-corner.top-right    { top: -5px; right: -5px; border-width: 3px 3px 0 0; }
.mesh-corner.bottom-left  { bottom: -5px; left: -5px; border-width: 0 0 3px 3px; }
.mesh-corner.bottom-right { bottom: -5px; right: -5px; border-width: 0 3px 3px 0; }

.overlay-text {
    margin-top: 14px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.775rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* GPS Geofencing Status Bar */
.gps-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 8px;
}

.gps-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.825rem;
    color: var(--text-muted);
}

.gps-badge-indicator {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.775rem;
    font-weight: 700;
}
.gps-badge-indicator.valid    { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.gps-badge-indicator.invalid  { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }
.gps-badge-indicator.warning  { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.gps-badge-indicator.checking { background: rgba(255, 255, 255, 0.1); color: #cbd5e1; border: 1px solid rgba(255, 255, 255, 0.2); }

/* Tab Presensi Header (Datang vs Pulang) */
.tab-presensi-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tab-presensi-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.tab-presensi-btn.active {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.user-presensi-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 14px;
    margin-top: 1rem;
}

.wa-info-footer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Badges for Data Table */
.time-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: monospace;
}
.time-badge.in  { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.time-badge.out { background: rgba(99, 102, 241, 0.2); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }

.status-pill {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.725rem;
    font-weight: 800;
}
.status-on-time { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.status-late    { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.method-tag {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.725rem;
    font-weight: 700;
}
.method-qr-code { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.method-wajah   { background: rgba(6, 182, 212, 0.2); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.method-manual  { background: rgba(255, 255, 255, 0.1); color: #cbd5e1; border: 1px solid rgba(255, 255, 255, 0.2); }

.wa-status-pill.status-sent {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.725rem;
    font-weight: 700;
}

/* ==========================================================================
   Universal Professional High-Contrast Table & Form System (All Portals)
   ========================================================================== */
.content-card {
    background: rgba(8, 38, 29, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 10px;
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.22);
    background: rgba(4, 18, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    margin-top: 1rem;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .table-responsive {
        overflow-x: auto;
    }
}

/* Universal Table Base */
table,
.data-table,
.luxury-table,
.table-custom {
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
    color: #e2e8f0 !important;
    table-layout: auto;
}

/* Table Header */
table th,
.data-table th,
.luxury-table th {
    padding: 0.8rem 0.9rem;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.76rem;
    color: var(--gold-bright) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #062b20 0%, #031c15 100%);
    border-bottom: 2px solid rgba(245, 158, 11, 0.6);
    white-space: nowrap;
}

/* Table Rows & Animation */
table tbody tr,
.data-table tbody tr,
.luxury-table tbody tr {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

table tbody tr:nth-child(odd),
.data-table tbody tr:nth-child(odd),
.luxury-table tbody tr:nth-child(odd) {
    background: rgba(6, 30, 23, 0.55);
}

table tbody tr:nth-child(even),
.data-table tbody tr:nth-child(even),
.luxury-table tbody tr:nth-child(even) {
    background: rgba(3, 16, 12, 0.75);
}

table tbody tr:hover,
.data-table tbody tr:hover,
.luxury-table tbody tr:hover {
    background: rgba(16, 185, 129, 0.12) !important;
    box-shadow: inset 3px 0 0 #10b981;
}

/* Table Cells & Responsive Text Wrapping */
table td,
.data-table td,
.luxury-table td {
    padding: 0.75rem 0.9rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1 !important;
    word-break: break-word;
    overflow-wrap: break-word;
}

table tbody tr:last-child td,
.data-table tbody tr:last-child td,
.luxury-table tbody tr:last-child td {
    border-bottom: none;
}

/* Universal Status Badges */
.badge,
.status-badge,
.role-pill-vibrant,
.badge-tingkat,
.badge-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 3.5px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.badge-success, .badge-lunas, .badge-hadir, .status-success, .badge-siap {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.35) !important;
}

.badge-warning, .badge-belum-lunas, .badge-izin, .status-warning, .badge-digunakan {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.35) !important;
}

.badge-danger, .badge-alpa, .badge-terlambat, .status-danger, .badge-perbaikan {
    background: rgba(244, 63, 94, 0.15) !important;
    color: #fb7185 !important;
    border: 1px solid rgba(251, 113, 133, 0.35) !important;
}

.badge-info, .badge-sakit, .status-info {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

/* Standardized Table Action Buttons System (Ultra Premium Micro-Pills) */
.btn-action-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-action-icon,
.btn-gold-sm,
.btn-action-verify,
.btn-action-cancel,
.btn-action-reset,
.btn-action-edit,
.btn-reset,
.btn-edit,
.btn-delete,
.btn-danger-sm,
.btn-success-sm {
    height: 27px;
    padding: 0 11px;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    line-height: 1;
    box-sizing: border-box;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
}

.btn-action-icon:active,
.btn-gold-sm:active,
.btn-action-verify:active,
.btn-action-cancel:active,
.btn-action-reset:active,
.btn-action-edit:active {
    transform: translateY(0) scale(0.96) !important;
}

.btn-action-icon svg,
.btn-gold-sm svg,
.btn-action-verify svg,
.btn-action-cancel svg,
.btn-action-reset svg,
.btn-action-edit svg {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Edit / Warning Button Theme (Gold/Amber Glass) */
.btn-edit,
.btn-action-edit {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.32) !important;
}

.btn-edit:hover,
.btn-action-edit:hover {
    background: rgba(245, 158, 11, 0.3) !important;
    color: #ffffff !important;
    border-color: rgba(251, 191, 36, 0.65) !important;
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* Delete / Cancel / Danger Button Theme (Rose/Pink Glass) */
.btn-delete,
.btn-danger-sm,
.btn-action-cancel {
    background: rgba(244, 63, 94, 0.12) !important;
    color: #fb7185 !important;
    border: 1px solid rgba(251, 113, 133, 0.32) !important;
}

.btn-delete:hover,
.btn-danger-sm:hover,
.btn-action-cancel:hover {
    background: rgba(244, 63, 94, 0.3) !important;
    color: #ffffff !important;
    border-color: rgba(251, 113, 133, 0.65) !important;
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
}

/* Verify / Success Button Theme (Emerald/Green Glass) */
.btn-action-verify,
.btn-success-sm {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #34d399 !important;
    border: 1px solid rgba(52, 211, 153, 0.32) !important;
}

.btn-action-verify:hover,
.btn-success-sm:hover {
    background: rgba(16, 185, 129, 0.3) !important;
    color: #ffffff !important;
    border-color: rgba(52, 211, 153, 0.65) !important;
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* Reset / Detail / Info Button Theme (Sky Blue Glass) */
.btn-reset,
.btn-action-reset {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.32) !important;
}

.btn-reset:hover,
.btn-action-reset:hover {
    background: rgba(56, 189, 248, 0.3) !important;
    color: #ffffff !important;
    border-color: rgba(56, 189, 248, 0.65) !important;
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
}

/* Gold / Kwitansi / Print Button Theme (Luxury Amber Gold Gradient) */
.btn-gold-sm,
.btn-action-gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.32)) !important;
    color: #fef08a !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
}

.btn-gold-sm:hover,
.btn-action-gold:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(217, 119, 6, 0.55)) !important;
    color: #ffffff !important;
    border-color: rgba(251, 191, 36, 0.7) !important;
    transform: translateY(-1.5px) scale(1.02);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

/* Common Form Controls & Layouts */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.form-control {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-bright);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

/* Gold Button Variants */
.btn-gold {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff !important;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    padding: 0 14px;
    height: 38px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    box-sizing: border-box;
    vertical-align: middle;
    line-height: 1;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #b45309, #d97706);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

.btn-gold-sm {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #ffffff !important;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 4px 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.775rem;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-gold-sm:hover {
    background: linear-gradient(135deg, #b45309, #d97706);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}

/* Standardized Portal Header Action Buttons */
.portal-header .btn-pay-multi,
.portal-header .btn-excel-export,
.portal-header .btn-tabungan-print,
.portal-header .btn-batch-print,
.portal-header .btn-gold {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    gap: 6px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
    vertical-align: middle !important;
}

.portal-header .btn-pay-multi svg,
.portal-header .btn-excel-export svg,
.portal-header .btn-tabungan-print svg,
.portal-header .btn-batch-print svg,
.portal-header .btn-gold svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}

/* Floating Action Dropdown Menu Container */
.action-dropdown-container {
    position: relative;
    display: inline-block;
}

.action-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: rgba(6, 28, 20, 0.97);
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(245, 158, 11, 0.15);
    z-index: 99999;
    min-width: 175px;
    padding: 6px;
    backdrop-filter: blur(16px);
    display: none;
    flex-direction: column;
    gap: 3px;
    animation: dropdownFade 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.action-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 12px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: #e5e7eb;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

/* Specific Hover Styles for Dropdown Menu Items */
.action-dropdown-item.item-detail:hover {
    background: rgba(56, 189, 248, 0.16) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
}

.action-dropdown-item.item-edit:hover {
    background: rgba(245, 158, 11, 0.16) !important;
    color: #fbbf24 !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
}

.action-dropdown-item.item-status:hover {
    background: rgba(16, 185, 129, 0.16) !important;
    color: #34d399 !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
}

.action-dropdown-item.item-delete:hover {
    background: rgba(244, 63, 94, 0.16) !important;
    color: #fb7185 !important;
    border-color: rgba(251, 113, 133, 0.35) !important;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Keyframes for Import & Export Progress Modal */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ==========================================================================
   Mobile APK-Style Navigation & Anti-Horizontal Overflow System
   ========================================================================== */

/* Global Anti-Overflow Guards */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
}

.app-container {
    width: 100% !important;
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
    overflow-x: hidden;
}

.content-card,
.portal-header,
.card,
.stat-card,
.bento-card,
.setup-preview-card,
.setup-form-card {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Header Mobile Trigger Button */
.btn-mobile-menu-trigger {
    display: none !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.35)) !important;
    border: 1px solid rgba(251, 191, 36, 0.5) !important;
    color: #fef08a !important;
    padding: 0.45rem 0.85rem;
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-mobile-menu-trigger:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.5)) !important;
    border-color: var(--gold-bright) !important;
}

/* Floating Bottom Navigation Bar for Mobile */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(4, 18, 14, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(245, 158, 11, 0.35);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    padding: 0 6px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.85);
    box-sizing: border-box;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #94a3b8;
    text-decoration: none !important;
    background: none;
    border: none;
    cursor: pointer;
    flex: 1;
    height: 100%;
    padding: 4px 0;
    transition: all 0.2s ease;
}

.mobile-nav-item.active,
.mobile-nav-item:active {
    color: #fbbf24 !important;
}

.mobile-nav-item.active .mobile-nav-icon,
.mobile-nav-item:active .mobile-nav-icon {
    transform: translateY(-2px);
    color: #fbbf24;
}

.mobile-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.mobile-nav-icon svg {
    width: 22px;
    height: 22px;
}

.mobile-nav-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Mobile Slide-Over Drawer Menu */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: rgba(6, 26, 19, 0.98);
    border-left: 1px solid var(--gold-border);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.mobile-drawer-backdrop.active .mobile-drawer-panel {
    transform: translateX(0);
}

.mobile-drawer-header {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(3, 19, 14, 0.95);
}

.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.drawer-user-details {
    display: flex;
    flex-direction: column;
}

.drawer-user-name {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
}

.drawer-user-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.drawer-nis-nip {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.drawer-close-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
}

.drawer-section-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.8px;
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    padding-left: 0.5rem;
    text-transform: uppercase;
}

.drawer-section-title:first-child {
    margin-top: 0;
}

.drawer-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    color: #cbd5e1;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.drawer-menu-item:hover,
.drawer-menu-item.active {
    background: rgba(16, 185, 129, 0.18);
    color: #ffffff !important;
    border-color: rgba(52, 211, 153, 0.35);
}

.drawer-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.drawer-icon svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.grad-emerald { background: linear-gradient(135deg, #059669, #10b981); }
.grad-amber   { background: linear-gradient(135deg, #d97706, #f59e0b); }
.grad-cyan    { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.grad-indigo  { background: linear-gradient(135deg, #4f46e5, #6366f1); }
.grad-blue    { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.grad-teal    { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.grad-purple  { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.grad-violet  { background: linear-gradient(135deg, #9333ea, #a855f7); }
.grad-rose    { background: linear-gradient(135deg, #e11d48, #f43f5e); }

.mobile-drawer-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(3, 19, 14, 0.95);
}

.drawer-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.drawer-logout-btn:hover {
    background: rgba(239, 68, 68, 0.35);
    color: #ffffff !important;
}

/* ==========================================================================
   Comprehensive Screen Responsiveness (Screens <= 768px and <= 480px)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        padding-bottom: 85px !important; /* Extra bottom padding so content is never obscured by bottom nav */
    }

    .btn-mobile-menu-trigger {
        display: inline-flex !important;
    }

    /* Permanent Fixed Bottom Navigation Bar for Mobile (Never disappears) */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 64px !important;
        z-index: 999999 !important;
        background: rgba(4, 18, 14, 0.98) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border-top: 1px solid rgba(251, 191, 36, 0.4) !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.95) !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        box-sizing: border-box !important;
    }

    .portal-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 1.1rem;
        border-radius: 18px;
    }

    .brand-wrapper {
        gap: 0.85rem;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .brand-title h1 {
        font-size: 1.25rem;
        word-break: break-word;
    }

    .brand-subtitle {
        font-size: 0.78rem;
        flex-wrap: wrap;
    }

    .user-badge-wrapper {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        padding-top: 0.85rem !important;
        box-sizing: border-box !important;
    }

    /* Logged-in User Profile Card spans 100% full width on mobile top row */
    .user-card-pill {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        order: 1 !important;
        padding: 0.65rem 0.85rem !important;
        border-radius: 14px !important;
        background: rgba(6, 30, 22, 0.95) !important;
        border: 1px solid rgba(52, 211, 153, 0.4) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        box-sizing: border-box !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    }

    .user-avatar-glow {
        width: 40px !important;
        height: 40px !important;
        border-radius: 12px !important;
        font-size: 1.15rem !important;
        flex-shrink: 0 !important;
    }

    .user-info {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .user-name {
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .user-subinfo {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-top: 2px !important;
    }

    /* Action buttons sit side-by-side on the bottom row */
    .btn-mobile-menu-trigger {
        order: 2 !important;
        flex: 1 1 calc(50% - 4px) !important;
        justify-content: center !important;
        padding: 0.55rem 0.75rem !important;
        font-size: 0.82rem !important;
        border-radius: 12px !important;
        text-align: center !important;
    }

    .btn-logout-vibrant {
        order: 3 !important;
        flex: 1 1 calc(50% - 4px) !important;
        justify-content: center !important;
        padding: 0.55rem 0.75rem !important;
        font-size: 0.82rem !important;
        border-radius: 12px !important;
        text-align: center !important;
    }

    .user-badge-wrapper .btn-secondary,
    .user-badge-wrapper a:not(.btn-logout-vibrant) {
        order: 4 !important;
        flex: 1 1 100% !important;
        justify-content: center !important;
        padding: 0.55rem 0.75rem !important;
        font-size: 0.82rem !important;
    }

    /* News Ticker Banner Responsiveness */
    .news-ticker-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 0.85rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .ticker-badge-header {
        align-self: flex-start;
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .ticker-items {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        white-space: normal !important;
    }

    .ticker-item {
        width: 100% !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 0.82rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .ticker-title {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        max-width: 100% !important;
        flex: 1;
        font-size: 0.82rem !important;
    }

    .ticker-separator {
        display: none !important;
    }

    .ticker-btn-more {
        align-self: flex-end;
        font-size: 0.78rem !important;
        color: #fbbf24 !important;
        font-weight: 700;
        margin-top: 2px;
    }

    /* Grids & Cards Layout */
    .form-row,
    .form-grid,
    .setup-grid,
    .absen-main-grid,
    .student-cards-grid,
    .portal-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Absensi Scanner & Action Form Card Mobile Responsiveness */
    .scanner-card, .action-form-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 1rem !important;
        overflow: hidden !important;
    }

    .scanner-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .mode-toggle-group {
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
    }

    .mode-btn {
        flex: 1 !important;
        text-align: center !important;
        padding: 8px 4px !important;
        font-size: 0.8rem !important;
    }

    .camera-viewport-container {
        height: 250px !important;
        max-height: 50vh !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .qr-target-box {
        width: 150px !important;
        height: 150px !important;
    }

    .face-biometric-mesh {
        width: 140px !important;
        height: 180px !important;
    }

    .gps-status-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .gps-info {
        justify-content: center !important;
    }

    .gps-badge-indicator {
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center !important;
        font-size: 0.75rem !important;
    }

    #face_match_status_card {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.75rem !important;
    }

    .tab-presensi-header {
        grid-template-columns: 1fr 1fr !important;
        gap: 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 3px !important;
    }

    .tab-presensi-btn {
        padding: 8px 4px !important;
        font-size: 0.78rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .tab-presensi-btn svg {
        width: 15px !important;
        height: 15px !important;
        flex-shrink: 0 !important;
    }

    .user-presensi-box {
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 10px !important;
    }

    #btn_submit_absen, #btn_instant_absen {
        width: 100% !important;
        box-sizing: border-box !important;
        font-size: 0.92rem !important;
        padding: 0.85rem !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* Ultra-Sleek 2-Column Mobile Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        margin-bottom: 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .stat-card {
        padding: 0.85rem 0.9rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        border-radius: 16px !important;
        background: rgba(6, 26, 20, 0.96) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .stat-card > div:not(.stat-icon-wrapper) {
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .stat-icon-wrapper {
        width: 38px !important;
        height: 38px !important;
        border-radius: 11px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    }

    .stat-icon-wrapper svg {
        width: 20px !important;
        height: 20px !important;
    }

    .stat-val {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .stat-lbl {
        font-size: 0.72rem !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        margin-top: 2px !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    .stat-desc {
        font-size: 0.65rem !important;
        color: #94a3b8 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding-top: 5px !important;
        margin-top: 4px !important;
        width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .content-card {
        padding: 1.15rem !important;
        border-radius: 18px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Tables Anti-Overflow & Mobile Scrollability */
    .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 14px;
        margin-top: 0.75rem;
    }

    table th, table td,
    .data-table th, .data-table td,
    .luxury-table th, .luxury-table td {
        padding: 0.6rem 0.7rem !important;
        font-size: 0.8rem !important;
    }

    .btn-action-wrapper {
        flex-wrap: wrap;
        gap: 4px;
    }

    /* Modals Mobile Sizing */
    .modal-box {
        width: 95vw !important;
        max-width: 100% !important;
        padding: 1.25rem !important;
        max-height: 88vh !important;
        border-radius: 18px;
    }

    /* Prevent iOS input zoom by guaranteeing font-size >= 16px */
    .form-control,
    .form-input,
    select,
    input,
    textarea {
        font-size: 16px !important;
    }

    /* Portal Filter Bar & Category Navigation Mobile Enhancements */
    .portal-nav-bar {
        padding: 0.75rem 1rem !important;
        margin-bottom: 1.25rem !important;
        border-radius: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .filter-tab-group {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 6px !important;
        width: 100% !important;
        padding-bottom: 4px !important;
        scrollbar-width: none !important;
    }

    .filter-tab-group::-webkit-scrollbar {
        display: none !important;
    }

    .portal-filter-tab {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        font-size: 0.78rem !important;
        padding: 0.4rem 0.85rem !important;
        border-radius: 20px !important;
    }

    .category-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 1rem !important;
    }

    .category-header h2 {
        font-size: 1.1rem !important;
        color: #ffffff !important;
        font-weight: 800 !important;
    }

    .category-header p {
        font-size: 0.78rem !important;
        color: #cbd5e1 !important;
    }

    .cat-pill-badge {
        font-size: 0.68rem !important;
        padding: 3px 8px !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .bento-card {
        padding: 1.15rem !important;
        border-radius: 16px !important;
        background: rgba(6, 26, 20, 0.96) !important;
        border: 1px solid rgba(16, 185, 129, 0.3) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
    }

    .bento-top {
        gap: 0.85rem !important;
    }

    .squircle-icon-vibrant {
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
    }

    .squircle-icon-vibrant svg {
        width: 22px !important;
        height: 22px !important;
    }

    .bento-title {
        font-size: 1.05rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
    }

    .bento-desc {
        font-size: 0.8rem !important;
        color: #cbd5e1 !important;
        line-height: 1.4 !important;
    }

    .bento-footer {
        margin-top: 1rem !important;
        padding-top: 0.75rem !important;
        justify-content: flex-end !important;
    }

    .bento-tag {
        display: none !important; /* Hide redundant floating sub-tags on mobile to eliminate visual confusion */
    }

    .btn-action-arrow {
        width: 100% !important;
        justify-content: center !important;
        background: rgba(16, 185, 129, 0.18) !important;
        color: #34d399 !important;
        border: 1px solid rgba(52, 211, 153, 0.4) !important;
        padding: 0.6rem 1rem !important;
        border-radius: 12px !important;
        font-size: 0.85rem !important;
        font-weight: 800 !important;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 1rem 0.65rem;
    }

    .glow-text {
        font-size: 1.2rem;
    }

    .user-name {
        max-width: 120px;
    }

    .bento-card {
        padding: 1rem;
    }
}

/* Global Modal Card Clipping Protection */
.modal-card,
.modal-box {
    overflow: hidden !important;
}

.modal-footer,
.modal-actions,
.dialog-footer,
.modal-card form div[style*="justify-content"],
.modal-box form div[style*="justify-content"],
.modal-overlay form div[style*="justify-content"],
.modal-backdrop form div[style*="justify-content"],
.modal-card div[style*="justify-content: flex-end"],
.modal-card div[style*="justify-content:flex-end"],
.modal-box div[style*="justify-content: flex-end"],
.modal-box div[style*="justify-content:flex-end"] {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
}

.modal-card button,
.modal-box button,
.modal-overlay button,
.modal-backdrop button,
.modal-footer button,
.modal-actions button,
.btn-cancel,
.btn-modal-cancel,
.btn-modal-confirm {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 1.35rem !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    font-family: 'Outfit', -apple-system, sans-serif !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    margin: 0 !important;
}

/* Header Close Button Exception (X button top-right) */
.modal-header .modal-close-btn,
.modal-card .close-btn,
.modal-box .modal-close-btn,
button.modal-close-btn,
.modal-close-btn {
    height: 32px !important;
    width: 32px !important;
    min-height: 32px !important;
    min-width: 32px !important;
    max-height: 32px !important;
    max-width: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.modal-header .modal-close-btn:hover,
button.modal-close-btn:hover {
    background: rgba(244, 63, 94, 0.25) !important;
    color: #ffffff !important;
    border-color: rgba(244, 63, 94, 0.5) !important;
}

/* Modal Cancel / Secondary Button Styling */
.btn-cancel,
.btn-modal-cancel,
.modal-card .btn-danger-sm,
.modal-card .btn-secondary,
.modal-box .btn-danger-sm,
.modal-box .btn-secondary,
.modal-overlay .btn-danger-sm,
.modal-overlay .btn-secondary {
    background: rgba(244, 63, 94, 0.15) !important;
    color: #fda4af !important;
    border: 1px solid rgba(244, 63, 94, 0.4) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.btn-cancel:hover,
.btn-modal-cancel:hover,
.modal-card .btn-danger-sm:hover,
.modal-card .btn-secondary:hover,
.modal-box .btn-danger-sm:hover,
.modal-box .btn-secondary:hover,
.modal-overlay .btn-danger-sm:hover,
.modal-overlay .btn-secondary:hover {
    background: rgba(244, 63, 94, 0.35) !important;
    color: #ffffff !important;
    border-color: rgba(251, 113, 133, 0.8) !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4) !important;
}

/* Modal Primary / Confirm Button Styling */
.btn-modal-confirm,
.modal-card .btn-primary,
.modal-card .btn-gold,
.modal-box .btn-primary,
.modal-box .btn-gold,
.modal-overlay .btn-primary,
.modal-overlay .btn-gold {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    color: #ffffff !important;
    border: 1px solid rgba(251, 191, 36, 0.5) !important;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35) !important;
}

.btn-modal-confirm:hover,
.modal-card .btn-primary:hover,
.modal-card .btn-gold:hover,
.modal-box .btn-primary:hover,
.modal-box .btn-gold:hover,
.modal-overlay .btn-primary:hover,
.modal-overlay .btn-gold:hover {
    background: linear-gradient(135deg, #b45309, #92400e) !important;
    color: #ffffff !important;
    border-color: rgba(251, 191, 36, 0.8) !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5) !important;
}

/* ==========================================================================
   Coming Soon & Disabled Menu Badges Design
   ========================================================================== */
.badge-coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #8b5cf6 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    color: #ffffff !important;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
    line-height: 1.2;
    white-space: nowrap;
}

.bento-card.is-coming-soon {
    position: relative;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.75) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card.is-coming-soon:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.85) !important;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25) !important;
}

.drawer-menu-item.disabled-menu-item {
    opacity: 0.88;
    position: relative;
    cursor: pointer;
}

.drawer-menu-item.disabled-menu-item:hover {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
}

/* Coming Soon Custom Toast/Modal */
.cs-toast-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(3, 14, 11, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.25s ease-out forwards;
}

.cs-toast-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.25);
    border-radius: 24px;
    max-width: 450px;
    width: 100%;
    padding: 2.25rem 2rem 1.75rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: slideUpScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cs-toast-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #ec4899, #8b5cf6, #10b981);
    background-size: 300% 100%;
    animation: gradientShift 3s linear infinite;
}

@keyframes slideUpScale {
    from { opacity: 0; transform: translateY(20px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}




