/* ==================== GOOGLE FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Brand Colors */
    --primary-maroon: #8b1538;
    --primary-maroon-light: rgba(139, 21, 56, 0.15);
    --primary-maroon-glow: rgba(139, 21, 56, 0.4);
    --primary-blue: #4a7fe8;
    --primary-blue-light: rgba(74, 127, 232, 0.15);

    /* Glass Design Tokens */
    --glass-bg: rgba(255, 255, 255, 0.14);
    --glass-bg-strong: rgba(255, 255, 255, 0.22);
    --glass-bg-subtle: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.28);
    --glass-border-subtle: rgba(255, 255, 255, 0.14);
    --glass-blur: blur(18px);
    --glass-blur-strong: blur(30px);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
    --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.4) inset;

    /* Text */
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #7a7a9a;
    --text-on-glass: #1a1a2e;

    /* Background */
    --bg-gradient: linear-gradient(135deg, #e8d5f0 0%, #c5d8f8 30%, #d4e8ff 55%, #f0d8ec 80%, #dcd5f5 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.16);

    /* Transitions */
    --transition-fast: 0.18s ease;
    --transition-mid: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.07);
        --glass-bg-strong: rgba(255, 255, 255, 0.13);
        --glass-bg-subtle: rgba(255, 255, 255, 0.04);
        --glass-border: rgba(255, 255, 255, 0.15);
        --glass-border-subtle: rgba(255, 255, 255, 0.08);
        --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
        --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.18) inset;

        --text-primary: #f0eeff;
        --text-secondary: #c0b8e8;
        --text-muted: #8880aa;
        --text-on-glass: #f0eeff;

        --bg-gradient: linear-gradient(135deg, #1a0a2e 0%, #0d1b3e 30%, #0a1628 55%, #1e0a28 80%, #150d2e 100%);
    }
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 60px;
    position: relative;
    overflow-x: hidden;
}

/* Animated mesh blobs in background */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
    animation: blobFloat 12s ease-in-out infinite alternate;
}

body::before {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(139, 21, 56, 0.35) 0%, rgba(74, 127, 232, 0.2) 60%, transparent 100%);
    top: -20vw;
    right: -15vw;
}

body::after {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(74, 127, 232, 0.3) 0%, rgba(180, 100, 220, 0.2) 60%, transparent 100%);
    bottom: -10vw;
    left: -10vw;
    animation-delay: -6s;
    animation-duration: 15s;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(3vw, -2vw) scale(1.05);
    }

    66% {
        transform: translate(-2vw, 3vw) scale(0.97);
    }

    100% {
        transform: translate(1vw, -1vw) scale(1.02);
    }
}

/* Everything above bg z-index */
header,
main,
.fullscreen-login,
.success-popup,
.toast-container,
.maintenance-overlay {
    position: relative;
    z-index: 1;
}

/* ==================== LOADING OVERLAY ==================== */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-gradient);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-glass {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 3rem;
    text-align: center;
    box-shadow: var(--glass-shadow);
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--primary-maroon);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.2rem;
}

.loader-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.85;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== SKELETON CARDS ==================== */
.skeleton-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
}

.skeleton-line {
    height: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}

.skeleton-line.wide {
    width: 70%;
}

.skeleton-line.short {
    width: 40%;
}

.skeleton-line.full {
    width: 100%;
}

.skeleton-line.title {
    height: 20px;
    width: 55%;
}

.skeleton-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ==================== MAINTENANCE OVERLAY ==================== */
.maintenance-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-gradient);
    background-attachment: fixed;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 8000;
}

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

.maintenance-glass {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 480px;
    width: 90%;
    box-shadow: var(--glass-shadow);
    animation: slideUpIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.maintenance-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    display: block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }
}

.maintenance-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.maintenance-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.maintenance-badge {
    display: inline-block;
    background: var(--primary-maroon-light);
    color: var(--primary-maroon);
    border: 1px solid var(--primary-maroon-glow);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==================== HEADER ==================== */
.header {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.85rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.header-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.site-title {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.account-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.account-icon:hover {
    background: var(--glass-bg-strong);
    transform: scale(1.08);
    box-shadow: var(--shadow-md);
}

/* ==================== NAVIGATION ==================== */
.nav-tabs {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border-subtle);
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: sticky;
    top: 90px;
    z-index: 400;
    margin: 1rem auto;
    width: max-content;
    max-width: 95%;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 999px;
    /* Perfect pill shape */
    transition: all var(--transition-mid);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    scroll-snap-align: start;
    flex-shrink: 0;
    font-family: inherit;
}

.tab-btn i {
    font-size: 0.85rem;
}

.tab-btn:hover {
    background: var(--glass-bg-strong);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--primary-maroon);
    border: 1px solid rgba(139, 21, 56, 0.25);
    box-shadow: 0 2px 12px rgba(139, 21, 56, 0.15), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    max-width: 1200px;
    padding: 1.75rem 1.5rem;
    margin: 0 auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: tabFadeIn 0.35s ease forwards;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.4rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-title i {
    color: var(--primary-maroon);
}

/* ==================== GLASS MIXIN UTILITY ==================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* ==================== CONTENT CARDS ==================== */
.wide-card-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    max-width: 860px;
    margin: 0 auto;
}

.card,
.wide-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.4rem 1.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-mid), box-shadow var(--transition-mid);
    animation: cardSlideIn 0.45s ease both;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wide-card:nth-child(1) {
    animation-delay: 0.05s;
}

.wide-card:nth-child(2) {
    animation-delay: 0.10s;
}

.wide-card:nth-child(3) {
    animation-delay: 0.15s;
}

.wide-card:nth-child(4) {
    animation-delay: 0.20s;
}

.wide-card:nth-child(5) {
    animation-delay: 0.25s;
}

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

/* Current event card - warm gold tint */
.wide-card.current {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), var(--glass-bg));
}

/* Upcoming event card - cool blue tint */
.wide-card.upcoming {
    border-left: 4px solid var(--primary-blue);
    background: linear-gradient(135deg, rgba(74, 127, 232, 0.08), var(--glass-bg));
}

/* Announcement card - maroon tint */
.wide-card.announcement-card {
    border-left: 4px solid var(--primary-maroon);
    background: linear-gradient(135deg, var(--primary-maroon-light), var(--glass-bg));
}

.wide-card.announcement-card:hover {
    box-shadow: var(--glass-shadow-hover), 0 0 0 1px rgba(139, 21, 56, 0.18);
}

/* ==================== CARD INTERNALS ==================== */
.card-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.wide-card.current .card-label {
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.12);
}

.wide-card.upcoming .card-label {
    color: var(--primary-blue);
    border-color: rgba(74, 127, 232, 0.3);
    background: rgba(74, 127, 232, 0.1);
}

.wide-card.announcement-card .card-label {
    color: var(--primary-maroon);
    border-color: var(--primary-maroon-light);
    background: var(--primary-maroon-light);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.55rem;
    line-height: 1.35;
}

/* FIX: Card description - readable, large, dark text */
.card-description,
.description-preview,
.description-full {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.65;
    margin-bottom: 0.85rem;
    white-space: pre-wrap;
    opacity: 0.88;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.75rem;
}

.card-date i {
    color: var(--primary-maroon);
    font-size: 0.85rem;
}

/* ==================== EXPAND BUTTON ==================== */
.expand-btn {
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    color: var(--primary-maroon);
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.75rem;
    transition: all var(--transition-mid);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.expand-btn:hover {
    background: var(--primary-maroon);
    color: white;
    border-color: var(--primary-maroon);
    transform: translateX(6px);
    box-shadow: 0 4px 16px var(--primary-maroon-glow);
}

.expand-btn i {
    transition: transform var(--transition-fast);
}

.expand-btn:hover i {
    transform: translateX(3px);
}

/* ==================== E-BOARD ==================== */
.eboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.eboard-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 0;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    align-items: center;
    transition: transform var(--transition-mid), box-shadow var(--transition-mid);
    animation: cardSlideIn 0.45s ease both;
}

.eboard-card:hover {
    transform: translateY(-4px) translateX(3px);
    box-shadow: var(--glass-shadow-hover);
}

.eboard-card.sponsor {
    grid-column: span 2;
}

.eboard-icon-container {
    height: 100%;
    min-height: 90px;
    width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
}

.eboard-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.icon-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-stack svg {
    z-index: 1;
}

.custom-icon-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    border-radius: 50%;
}

.eboard-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eboard-info {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.eboard-card.sponsor .eboard-icon {
    background: linear-gradient(135deg, #0d1b46, #1a3080);
}

.eboard-card.president .eboard-icon {
    background: linear-gradient(135deg, #1565c0, #1976d2);
}

.eboard-card.vp .eboard-icon {
    background: linear-gradient(135deg, #1565c0, #2196f3);
}

.eboard-card.secretary .eboard-icon {
    background: linear-gradient(135deg, #546e7a, #78909c);
}

.eboard-card.treasurer .eboard-icon {
    background: linear-gradient(135deg, #2e7d32, #388e3c);
}

.eboard-card.social .eboard-icon {
    background: linear-gradient(135deg, #880e4f, #ad1457);
}

.eboard-position {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
}

.eboard-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

/* ==================== INFO LINKS ==================== */
#infoLinksList {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.4rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--primary-maroon);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-mid);
    animation: cardSlideIn 0.45s ease both;
}

.info-card:hover {
    transform: translateX(8px);
    box-shadow: var(--glass-shadow-hover);
    border-left-width: 6px;
}

.info-card-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-maroon-light);
    border-radius: 14px;
    border: 1px solid var(--primary-maroon-glow);
}

.info-card-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Info grid (old style kept for compatibility) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.info-link {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-mid);
}

.info-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-hover);
}

.info-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--primary-blue-light);
    color: var(--primary-blue);
}

.info-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* ==================== ADMIN PANEL ==================== */
.admin-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.admin-section {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
}

.admin-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border-subtle);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-section-title i {
    color: var(--primary-maroon);
}

/* Maintenance toggle section */
.maintenance-admin-section {
    border: 1px solid rgba(139, 21, 56, 0.3);
    background: linear-gradient(135deg, var(--primary-maroon-light), var(--glass-bg));
}

.maintenance-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
}

.maintenance-toggle-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.maintenance-toggle-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 58px;
    height: 30px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-mid);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition-mid);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

input:checked+.toggle-slider {
    background: var(--primary-maroon);
    border-color: var(--primary-maroon);
}

input:checked+.toggle-slider::before {
    transform: translateX(28px);
}

.maintenance-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0.75rem;
    letter-spacing: 0.04em;
}

.maintenance-status-badge.off {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.maintenance-status-badge.on {
    background: var(--primary-maroon-light);
    color: var(--primary-maroon);
    border: 1px solid var(--primary-maroon-glow);
    animation: pulse 1.5s ease-in-out infinite;
}

/* ==================== ADMIN FORMS ==================== */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.admin-form input,
.admin-form textarea,
.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: all var(--transition-fast);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    -webkit-appearance: none;
    appearance: none;
}

.admin-form input:focus,
.admin-form textarea:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-maroon);
    box-shadow: 0 0 0 3px var(--primary-maroon-light);
}

.admin-form textarea,
.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.admin-form-actions {
    display: flex;
    gap: 0.85rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-maroon), #a31a42);
    color: white;
    border: none;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    font-size: 0.93rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-mid);
    box-shadow: 0 4px 14px var(--primary-maroon-glow);
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-maroon-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--glass-bg-strong);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-mid);
    font-family: inherit;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-maroon), #a31a42);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-mid);
    box-shadow: 0 4px 20px var(--primary-maroon-glow);
    font-family: inherit;
    margin-top: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--primary-maroon-glow);
}

.btn-edit {
    background: rgba(74, 127, 232, 0.12);
    color: var(--primary-blue);
    border: 1px solid rgba(74, 127, 232, 0.25);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.btn-edit:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* ==================== MANAGEMENT LISTS ==================== */
.management-list {
    margin-top: 1.25rem;
    border-top: 1px solid var(--glass-border-subtle);
    padding-top: 1rem;
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
}

.management-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    background: var(--glass-bg-subtle);
    border: 1px solid var(--glass-border-subtle);
    border-radius: 12px;
    margin-bottom: 0.6rem;
    transition: all var(--transition-fast);
    gap: 1rem;
}

.management-item:hover {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

.management-item-content {
    flex: 1;
    min-width: 0;
}

.management-item-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.management-item-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.management-item-actions {
    display: flex;
    gap: 0.45rem;
    flex-shrink: 0;
}

/* ==================== ACCOUNTS ==================== */
.account-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-mid);
}

.account-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-hover);
}

.avatar-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-maroon), #a31a42);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.avatar-circle.moderator {
    background: linear-gradient(135deg, #4a5568, #718096);
}

.account-info {
    flex: 1;
}

.account-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.account-role-badge {
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.role-admin {
    background: var(--primary-maroon-light);
    color: var(--primary-maroon);
    border: 1px solid var(--primary-maroon-glow);
}

.role-moderator {
    background: rgba(74, 127, 232, 0.12);
    color: var(--primary-blue);
    border: 1px solid rgba(74, 127, 232, 0.25);
}

.account-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

/* ==================== LOGIN MODAL ==================== */
.fullscreen-login {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-gradient);
    background-attachment: fixed;
    z-index: 100001;
    /* Must be higher than maintenanceOverlay (99999) */
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.fullscreen-login.active {
    display: flex;
}

.login-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: flex-start;
}

.back-arrow {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-mid);
    box-shadow: var(--glass-shadow);
}

.back-arrow:hover {
    background: var(--glass-bg-strong);
    transform: scale(1.08);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}

.login-box {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: var(--glass-shadow);
    animation: slideUpIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.75rem;
    color: var(--text-primary);
    text-align: center;
}

/* ==================== ERROR & SUCCESS ==================== */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    background: var(--glass-bg-subtle);
    border: 1px dashed var(--glass-border);
    border-radius: 18px;
    font-size: 1rem;
}

/* ==================== SUCCESS POPUP ==================== */
.success-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.success-box {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border: 1px solid var(--glass-border);
    padding: 2.75rem 2.25rem;
    border-radius: 24px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    box-shadow: var(--glass-shadow);
    animation: slideUpIn 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.success-icon {
    font-size: 3.5rem;
    color: #22c55e;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 4px 12px rgba(34, 197, 94, 0.35));
}

.success-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

.success-message {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

.success-subtext {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.btn-refresh {
    background: linear-gradient(135deg, var(--primary-maroon), #a31a42);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all var(--transition-mid);
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 16px var(--primary-maroon-glow);
    font-family: inherit;
}

.btn-refresh:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-maroon-glow);
}

.btn-refresh i {
    animation: spin 3s linear infinite;
    display: inline-block;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200001;
    pointer-events: none;
}

.toast {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.85rem 1.25rem;
    border-radius: 14px;
    font-size: 0.93rem;
    font-weight: 600;
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 240px;
    max-width: 380px;
    pointer-events: auto;
    animation: toastSlideIn 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    border-left: 3px solid #22c55e;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast i {
    font-size: 1.1rem;
    color: #22c55e;
    flex-shrink: 0;
}

.toast.error i {
    color: #ef4444;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateX(60%);
    }
}

/* ==================== BADGE STYLES ==================== */
.badge-incoming {
    background: var(--primary-maroon-light);
    color: var(--primary-maroon);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 0.4rem;
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideUpIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ==================== ROLE BADGES ==================== */
.role-badge.admin {
    background: var(--primary-maroon-light);
    color: var(--primary-maroon);
}

.role-badge.moderator {
    background: rgba(74, 127, 232, 0.12);
    color: var(--primary-blue);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ==================== RESPONSIVE - Tablet (900px) ==================== */
@media (max-width: 900px) {
    .eboard-grid {
        grid-template-columns: 1fr;
    }

    .eboard-card.sponsor {
        grid-column: span 1;
    }

    .admin-panel-grid {
        grid-template-columns: 1fr;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== SIDEBAR CLOSE BUTTON (hidden on desktop) ==================== */
.sidebar-close-btn {
    display: none;
}

/* ==================== SIDEBAR BACKDROP (hidden on desktop) ==================== */
.sidebar-backdrop {
    display: none;
}

/* ==================== RESPONSIVE - Mobile (768px) ==================== */
@media (max-width: 768px) {
    body {
        padding-bottom: 0;
        overflow-x: hidden;
    }

    /* ---- HEADER ---- */
    .header {
        padding: 0.6rem 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        position: sticky;
        top: 0;
        z-index: 500;
        border-radius: 0;
    }

    .header-left {
        padding: 0;
        gap: 0.5rem;
        display: flex;
        align-items: center;
    }

    .header-right {
        position: static;
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }

    .header-logo {
        width: 38px;
        height: 38px;
    }

    .site-title {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 160px;
    }

    /* ---- HAMBURGER BUTTON ---- */
    #hamburgerBtn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.3rem;
        border-radius: 10px;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border-subtle);
        color: var(--text-primary);
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(139, 21, 56, 0.15);
        transition: background 0.2s;
        flex-shrink: 0;
    }

    #hamburgerBtn:active {
        background: var(--glass-bg-strong);
        transform: scale(0.95);
    }

    /* ---- DISABLE OLD SIDEBAR NAVIGATION ---- */
    .nav-tabs {
        display: none !important;
    }

    /* ---- MAIN CONTENT ---- */
    .main-content {
        padding: 1rem 1rem;
        padding-bottom: 80px; /* safe area for iOS Safari */
    }

    .wide-card-list {
        gap: 0.9rem;
        max-width: 100%;
    }

    .card, .wide-card {
        padding: 1.1rem;
        border-radius: 14px;
    }

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

    .card-description,
    .description-preview,
    .description-full {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* ---- HERO ---- */
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.85rem;
    }

    .btn-hero {
        width: 100%;
        min-height: 56px;
        justify-content: center;
        font-size: 1.05rem;
    }

    /* ---- E-BOARD ---- */
    .eboard-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .eboard-card {
        flex-direction: column;
        text-align: center;
        padding-bottom: 1.5rem;
    }

    .eboard-card.sponsor {
        grid-column: span 1;
    }

    .eboard-icon-container {
        width: 100%;
        height: auto;
        padding: 1.5rem 0 0.5rem;
    }

    .eboard-icon {
        width: 72px;
        height: 72px;
        margin: 0 auto;
    }

    /* ---- ADMIN ---- */
    .admin-panel-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-section {
        overflow-y: auto;
        max-height: none;
    }

    .management-list {
        max-height: 300px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-form-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .management-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .management-item-actions {
        align-self: flex-end;
    }

    /* ---- SECTION TITLES ---- */
    .section-title {
        font-size: 1.2rem;
    }

    /* ---- ACCOUNT ICON ---- */
    .account-icon {
        width: 42px;
        height: 42px;
        min-width: 44px;
        min-height: 44px;
        font-size: 1.1rem;
    }

    /* ---- INFO PAGE ---- */
    .info-split-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .info-left-col, .info-right-col {
        width: 100%;
    }

    /* ---- COUNTDOWN ---- */
    .countdown-timer {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .countdown-box span {
        font-size: 2rem;
    }

    /* ---- LOGIN MODAL ---- */
    .fullscreen-login {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .login-container {
        padding: 1rem;
        max-width: 100%;
    }

    .login-box {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-box input {
        font-size: 16px !important;
        min-height: 48px;
        padding: 0.85rem 1rem;
    }

    .btn-login {
        min-height: 50px;
        font-size: 1.05rem;
    }

    /* ---- SUCCESS BOX ---- */
    .success-box {
        padding: 2rem 1.5rem;
        width: 92%;
    }

    /* ---- FOOTER ---- */
    .site-footer {
        padding: 2rem 1rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* ---- ACCOUNT CARDS ---- */
    .account-card {
        flex-wrap: wrap;
    }

    .account-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* ---- SEARCH BAR ---- */
    .section-header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar {
        max-width: 100%;
    }

    /* ---- SCROLL TO TOP (move above bottom edge) ---- */
    .scroll-to-top {
        bottom: 20px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    /* ---- TOAST ---- */
    .toast-container {
        right: 10px;
        left: 10px;
        top: 12px;
    }

    .toast {
        min-width: unset;
        width: 100%;
    }
}

/* ==================== RESPONSIVE - Small Phone (480px) ==================== */
@media (max-width: 480px) {
    .header {
        padding: 0.55rem 0.75rem;
    }

    .site-title {
        font-size: 0.9rem;
    }

    .header-logo {
        width: 36px;
        height: 36px;
    }

    .account-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .tab-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.72rem;
        gap: 0.25rem;
    }

    .tab-btn i {
        font-size: 0.75rem;
    }

    .main-content {
        padding: 0.85rem 0.65rem;
        padding-bottom: 100px;
    }

    .card, .wide-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .card-title {
        font-size: 1rem;
    }

    .eboard-icon-container {
        width: 72px;
    }

    .eboard-icon {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
    }

    .eboard-name {
        font-size: 0.95rem;
    }

    .eboard-position {
        font-size: 0.68rem;
    }

    .admin-form-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .management-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .management-item-actions {
        align-self: flex-end;
    }

    .account-card {
        flex-wrap: wrap;
    }

    .account-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .toast-container {
        right: 10px;
        left: 10px;
        top: 12px;
    }

    .toast {
        min-width: unset;
        width: 100%;
    }

    .loader-glass {
        padding: 2rem 1.5rem;
    }

    .maintenance-toggle-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.2rem;
    }
}

/* ==================== SCROLLBAR STYLING ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==================== PASSWORD DISPLAY ==================== */
.password-display {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: #16a34a;
    font-family: monospace;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

/* ==================== LOGO SECTION (LEGACY) ==================== */
.logo-section {
    display: none;
}

.logo-circle {
    display: none;
}

/* ==================== MAINTENANCE OVERLAY ==================== */
.maintenance-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 99999;
    /* Above everything */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease;
    overflow: hidden;
}

.maintenance-secret-trigger {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 30px;
    z-index: 100000;
    /* Just above overlay but below modal */
    cursor: pointer;
    background: transparent;
    transition: background 0.3s;
}

.maintenance-secret-trigger:hover {
    background: rgba(255, 255, 255, 0.03);
    /* Extremely subtle hint when hovering */
}

.maintenance-content {
    max-width: 500px;
    width: 100%;
    text-align: center;
    padding: 2.5rem;
    background: transparent;
    animation: slideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.maintenance-icon {
    width: 80px;
    height: 80px;
    background-color: #3d1c00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.maintenance-icon i {
    font-size: 2.2rem;
    color: #fca311;
}

.maintenance-content h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.maintenance-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a0a0a0;
    margin-bottom: 2.5rem;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.maintenance-status-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fca311;
    font-size: 0.85rem;
    font-weight: 600;
}

.maintenance-status-dot .dot {
    width: 6px;
    height: 6px;
    background-color: #fca311;
    border-radius: 50%;
}

#maintenanceBadge {
    background-color: #fca311;
    color: #000;
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid #e08b00;
    position: relative;
    z-index: 999;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== UTILITIES ==================== */
.hidden {
    display: none !important;
}

/* ==================== PAGE LOADER ==================== */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-gradient);
    z-index: 200000;
    /* Highest z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    display: none !important;
}

.loader-glass {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    animation: slideUpIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(139, 21, 56, 0.1);
    border-left-color: var(--primary-maroon);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideUpIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== HOME / HERO SECTION ==================== */
.hero-section {
    text-align: center;
    padding: 3rem 1rem 4rem;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur-strong);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    margin-bottom: 2rem;
    box-shadow: var(--glass-shadow);
    color: var(--text-primary);
    animation: slideUpIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.countdown-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border-subtle);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 0 auto 2.5rem;
    max-width: 600px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.countdown-box span {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-maroon);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.countdown-box small {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-mid);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn-hero:hover {
    background: var(--primary-maroon);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--primary-maroon-glow);
    border-color: var(--primary-maroon);
}

/* ==================== SECTION HEADER & SEARCH ==================== */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header-row .section-title {
    margin-bottom: 0;
}

.search-bar {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar input {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: 999px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-maroon);
    background: var(--glass-bg-strong);
    box-shadow: 0 0 0 3px var(--primary-maroon-light);
}

/* ==================== THEME SWITCH ==================== */
.theme-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    width: 54px;
    height: 28px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    border-radius: 34px;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.theme-switch input:checked+.theme-slider {
    background-color: var(--primary-maroon);
    border-color: var(--primary-maroon);
}

.theme-switch input:checked+.theme-slider:before {
    transform: translateX(26px);
}

.sun-icon {
    color: #f59e0b;
    font-size: 12px;
    z-index: 1;
}

.moon-icon {
    color: #f0eeff;
    font-size: 12px;
    z-index: 1;
}

/* ==================== INFO SPLIT LAYOUT ==================== */
.info-split-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.info-left-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-right-col {
    flex: 1;
}

.info-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
}

.info-panel h3 {
    font-size: 1.2rem;
    color: var(--primary-maroon);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-panel p {
    color: var(--text-primary);
    line-height: 1.6;
}

.color-swatches {
    display: flex;
    gap: 1.5rem;
}

.color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.swatch-name {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.maroon-swatch .swatch-name {
    background: var(--primary-maroon);
}

.blue-swatch .swatch-name {
    background: var(--primary-blue);
}

.swatch-hex {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.panel-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur-strong);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
    color: var(--text-primary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-left h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-maroon), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-left p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all var(--transition-mid);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-maroon);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--primary-maroon-glow);
    border-color: var(--primary-maroon);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--glass-border-subtle);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-maroon);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--primary-maroon-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-spring);
    z-index: 900;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--primary-maroon-glow);
}

/* ==================== HOME LATEST ==================== */
.home-latest-container {
    max-width: 860px;
    margin: 0 auto;
}

.home-latest-container>h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-align: left;
}

/* ==================== MOBILE MENU BTN ==================== */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

/* ==================== FULLCALENDAR STYLE OVERRIDES ==================== */
.fc .fc-toolbar-title {
    color: var(--text-primary);
    font-weight: 800;
}

.fc .fc-button-primary {
    background-color: var(--primary-maroon) !important;
    border-color: var(--primary-maroon) !important;
}

.fc .fc-button-primary:hover {
    background-color: var(--primary-maroon) !important;
    opacity: 0.9 !important;
}

.fc-theme-standard .fc-scrollgrid {
    border-color: var(--glass-border) !important;
}

.fc-theme-standard td,
.fc-theme-standard th {
    border-color: var(--glass-border) !important;
}

.fc-day {
    background: var(--glass-bg-subtle);
}

.fc-daygrid-day-number {
    color: var(--text-primary);
}

.fc-col-header-cell-cushion {
    color: var(--text-primary);
}

/* ==================== GLOBAL TOUCH TARGETS ==================== */
button, a, input, select, textarea, [role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* ==================== HAMBURGER BUTTON ==================== */
#hamburgerBtn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    touch-action: manipulation;
    align-items: center;
    justify-content: center;
}

#hamburgerBtn:hover {
    background: var(--glass-bg);
}

#hamburgerBtn:active {
    background: var(--glass-bg-strong);
    transform: scale(0.95);
}

@media (max-width: 900px) {
    #hamburgerBtn {
        display: flex;
    }
}
/* ==================== MOBILE RESPONSIVE DESIGN ==================== */

/* Tablet and below - unified mobile approach */
@media (max-width: 900px) {
    /* Header adjustments */
    .header {
        padding: 0.75rem 1rem !important;
        background: var(--glass-bg-strong) !important;
        backdrop-filter: var(--glass-blur-strong) !important;
        border-bottom: 1px solid var(--glass-border) !important;
    }
    
    .header-left {
        display: flex !important;
    }
    
    .header-logo {
        width: 35px !important;
        height: 35px !important;
    }
    
    .site-title {
        font-size: 0.9rem !important;
    }
    
    /* Main content adjustments */
    .main-content {
        padding: 1rem !important;
    }
    
    /* Home dashboard grid */
    .home-dash-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* E-Board grid */
    .eboard-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .eboard-card.sponsor {
        grid-column: span 1 !important;
    }
    
    /* Card adjustments */
    .wide-card-list {
        gap: 0.75rem !important;
    }
    
    .card, .wide-card {
        padding: 1rem !important;
        border-radius: 12px !important;
    }
    
    .card-title {
        font-size: 1.1rem !important;
    }
    
    .card-description, .description-preview, .description-full {
        font-size: 0.95rem !important;
    }
    
    /* Search bars */
    .search-bar {
        max-width: 100% !important;
    }
    
    .search-bar input {
        font-size: 14px !important;
    }
}

/* Phone specific adjustments */
@media (max-width: 600px) {
    /* Body and base */
    body {
        font-size: 14px;
    }
    
    /* Header */
    .header {
        padding: 0.5rem 0.75rem !important;
        gap: 0.5rem !important;
    }
    
    .header-logo {
        width: 30px !important;
        height: 30px !important;
    }
    
    .site-title {
        font-size: 0.8rem !important;
    }
    
    .account-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
    }
    
    /* Main content */
    .main-content {
        padding: 0.75rem 0.5rem !important;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Home banner */
    .home-banner {
        padding: 1.5rem 1rem !important;
        min-height: 120px !important;
    }
    
    .home-banner-title {
        font-size: 1rem !important;
    }
    
    .home-banner-subtitle {
        font-size: 1.5rem !important;
    }
    
    /* Cards */
    .card, .wide-card {
        padding: 0.875rem !important;
        border-radius: 10px !important;
    }
    
    .card-title {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }
    
    .card-description, .description-preview, .description-full {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    .card-label {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.6rem !important;
    }
    
    /* Buttons */
    .expand-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
    
    /* E-Board cards */
    .eboard-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1rem !important;
    }
    
    .eboard-icon-container {
        width: 100% !important;
        height: 80px !important;
        margin-bottom: 0.5rem !important;
    }
    
    .eboard-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }
    
    .eboard-info {
        padding: 0.5rem 0 !important;
    }
    
    /* Info cards */
    .info-card {
        padding: 0.75rem 1rem !important;
        gap: 0.75rem !important;
    }
    
    .info-card-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }
    
    .info-card-name {
        font-size: 0.95rem !important;
    }
    
    /* Search bars */
    .search-bar {
        padding: 0.5rem 1rem !important;
    }
    
    .search-bar input {
        font-size: 14px !important;
        padding: 0.5rem !important;
    }
    
    /* Store grid */
    .store-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .product-card {
        border-radius: 10px !important;
    }
    
    .product-info {
        padding: 0.75rem !important;
    }
    
    .product-name {
        font-size: 12px !important;
    }
    
    .product-price {
        font-size: 11px !important;
    }
}

/* Small phone adjustments */
@media (max-width: 400px) {
    .store-grid {
        grid-template-columns: 1fr !important;
    }
    
    .main-content {
        padding: 0.5rem !important;
    }
    
    .home-banner {
        padding: 1rem 0.75rem !important;
    }
    
    .card, .wide-card {
        padding: 0.75rem !important;
    }
    
    .section-title {
        font-size: 1.1rem !important;
    }
}

/* User Info Desktop Header */
.desktop-user-info {
    display: none; /* Only flex when logged in on desktop */
    align-items: center;
    gap: 8px;
}

@media (min-width: 901px) {
    .desktop-user-info.active {
        display: flex;
    }
    
    .desktop-user-details {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
    }
    
    .desktop-username {
        color: var(--text-primary);
        font-weight: 600;
        font-size: 13px;
    }
    
    .desktop-logout-icon-btn {
        background: transparent;
        color: var(--text-muted);
        border: none;
        font-size: 14px;
        cursor: pointer;
        margin-left: 4px;
        padding: 3px;
        transition: color 0.2s;
    }

    .desktop-logout-icon-btn:hover {
        color: #ef4444; /* red icon on hover */
    }
    
    .desktop-user-divider {
        color: var(--glass-border);
        margin: 0 4px;
    }
}

