:root {
    /* Bootstrap 5.3 theme tokens (loaded after bootstrap.min.css) */
    --bs-primary: #800000;
    --bs-primary-rgb: 128, 0, 0;
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);

    --iuea-maroon: #800000;
    --iuea-maroon-dark: #600000;
    --iuea-gray: #333333;
    --iuea-gray-light: #555555;
    --iuea-surface: #f0efef;
    --iuea-white: #ffffff;
    --iuea-gold: #cba052;
    --transition-speed: 0.3s;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shared dashboard design tokens (admin + all role panels) */
    --dash-bg: #f1f5f9;
    --dash-surface: #ffffff;
    --dash-border: #e2e8f0;
    --dash-border-light: #f1f5f9;
    --dash-text-primary: #0f172a;
    --dash-text-secondary: #64748b;
    --dash-text-muted: #94a3b8;
    --dash-text-body: #475569;
    --dash-accent: var(--iuea-maroon);
    --dash-accent-dark: var(--iuea-maroon-dark);
    --dash-accent-bg: #fff1f2;
    --dash-accent-hover-bg: rgba(128, 0, 0, 0.06);
    --dash-topbar-height: 64px;
    --dash-sidebar-width: 260px;
    --dash-sidebar-width-role: 240px;
    --dash-radius: 12px;
    --dash-radius-sm: 8px;
    --dash-radius-nav: 6px;
    --dash-shadow-topbar: 0 1px 3px rgba(15, 23, 42, 0.04);
    --dash-shadow-panel: 0 1px 3px rgba(0, 0, 0, 0.02);
    --dash-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.05);
    --dash-font-heading: 'Plus Jakarta Sans', sans-serif;
    --dash-font-body: 'Inter', sans-serif;
    /* Role accent overrides (maroon default; themes swap --dash-accent*) */
    --dash-accent-dp: #059669;
    --dash-accent-dp-dark: #047857;
    --dash-accent-dp-bg: #d1fae5;
    --dash-accent-co: #9a7229;
    --dash-accent-co-dark: #7d5c1e;
    --dash-accent-co-bg: #fdf6e3;

    /* Responsive layout tokens */
    --public-header-height: 77px;
    --container-inline-padding: 2rem;
    --touch-target-min: 44px;
    --hero-block-height: 400px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--iuea-surface);
    color: var(--iuea-gray);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--iuea-maroon); font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--iuea-gray-light); }

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
    padding-left: max(var(--container-inline-padding), env(safe-area-inset-left, 0px));
    padding-right: max(var(--container-inline-padding), env(safe-area-inset-right, 0px));
}

.page-section {
    display: none;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}
.page-section.active {
    display: block;
    animation: fadeIn var(--transition-speed) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem max(2rem, env(safe-area-inset-right, 0px)) 1rem max(2rem, env(safe-area-inset-left, 0px));
    max-width: 1400px;
    margin: 0 auto;
    gap: 0.75rem;
}

#publicHeader .iuea-navbar {
    --bs-navbar-color: var(--iuea-gray);
    --bs-navbar-hover-color: var(--iuea-maroon);
    --bs-navbar-active-color: var(--iuea-maroon);
    --bs-navbar-toggler-border-color: transparent;
    --bs-navbar-toggler-focus-shadow-width: 0;
    padding: 0;
    background: transparent;
}

#publicHeader .iuea-navbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem max(2rem, env(safe-area-inset-right, 0px)) 1rem max(2rem, env(safe-area-inset-left, 0px));
    gap: 0.75rem;
}

@media (min-width: 992px) {
    #publicHeader .iuea-navbar-inner {
        flex-wrap: nowrap;
    }

    #publicHeader #navLinks.navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 1;
        justify-content: center;
    }

    #publicHeader .nav-links {
        flex-direction: row;
        align-items: center;
    }
}

.logo img {
    height: 55px;
    cursor: pointer;
    display: block;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

#publicHeader .nav-links .nav-link {
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--iuea-gray);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}


.nav-links a:hover, .nav-links a.active-nav,
#publicHeader .nav-links .nav-link:hover,
#publicHeader .nav-links .nav-link.active-nav {
    color: var(--iuea-maroon);
}

/* ── Community dropdown ─────────────────────────────────────────────── */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: var(--iuea-gray);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color var(--transition-speed);
    white-space: nowrap;
    user-select: none;
}

.nav-dropdown-trigger:hover {
    color: var(--iuea-maroon);
}

.nav-dropdown-chevron {
    width: 13px;
    height: 13px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown-chevron {
    transform: rotate(180deg);
}

/* Invisible bridge: fills the gap between trigger and menu so hover stays active */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
    min-width: 160px;
    padding: 0.4rem 0;
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--iuea-gray);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    border-radius: 6px;
    margin: 0 0.3rem;
}

.nav-dropdown-item:hover {
    background: rgba(128, 0, 0, 0.07);
    color: var(--iuea-maroon);
}

.nav-dropdown-item i {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
/* ────────────────────────────────────────────────────────────────────── */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.profile-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    background: var(--iuea-maroon);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background var(--transition-speed);
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-icon:hover {
    background: var(--iuea-maroon-dark);
}

.iuea-navbar-toggler {
    display: none;
    background: none;
    border: none;
    box-shadow: none;
    font-size: 1.5rem;
    color: var(--iuea-maroon);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.iuea-navbar-toggler:focus {
    box-shadow: none;
}

.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.mobile-search-btn,
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    box-shadow: none;
    font-size: 1.5rem;
    color: var(--iuea-maroon);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    padding: 0.35rem;
    -webkit-tap-highlight-color: transparent;
}

.mobile-search-btn:focus-visible,
.mobile-menu-btn:focus-visible {
    outline: 2px solid var(--iuea-maroon);
    outline-offset: 2px;
}

.mobile-only {
    display: none !important;
}

.hidden {
    display: none !important;
}

/* Search Bar */
.public-search-wrap {
    position: sticky;
    top: var(--public-header-height);
    z-index: 999;
    padding: 0.65rem max(2rem, env(safe-area-inset-right, 0px)) 0.65rem max(2rem, env(safe-area-inset-left, 0px));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #fff;
    padding: 0.45rem 0.85rem 0.45rem 0.65rem;
    border-radius: 999px;
    position: relative;
    border: 1px solid rgba(128, 0, 0, 0.12);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.search-container:focus-within {
    border-color: rgba(128, 0, 0, 0.35);
    box-shadow: 0 6px 22px rgba(128, 0, 0, 0.1);
}

.search-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--iuea-maroon);
    flex-shrink: 0;
}

.search-icon-wrap svg {
    width: 18px;
    height: 18px;
}

.search-container input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.45rem 0.25rem;
    font-size: 0.95rem;
    outline: none;
    color: var(--iuea-gray);
    min-width: 0;
}

.search-container input::placeholder {
    color: var(--iuea-gray-light);
}

.search-container input::-webkit-search-cancel-button,
.search-container input::-webkit-search-decoration {
    display: none;
}

.search-clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: var(--iuea-surface);
    color: var(--iuea-gray-light);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition-speed), color var(--transition-speed);
}

.search-clear-btn:hover {
    background: rgba(128, 0, 0, 0.08);
    color: var(--iuea-maroon);
}

.search-clear-btn svg {
    width: 14px;
    height: 14px;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    max-height: 380px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 0;
    padding: 0.35rem 0;
}

.search-results.show { display: block; }

.search-results .search-status,
.search-results .dropdown-item-text.search-status {
    padding: 1rem 1.1rem;
    color: var(--iuea-gray-light);
    font-size: 0.9rem;
    text-align: center;
}

.search-result-item {
    width: 100%;
    padding: 0.85rem 1rem;
    cursor: pointer;
    border: none;
    border-bottom: 1px solid var(--iuea-surface);
    transition: background var(--transition-speed);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: transparent;
    text-align: left;
    font: inherit;
    white-space: normal;
}

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

.search-result-item:hover,
.search-result-item:focus,
.search-result-item.active {
    background: var(--iuea-surface);
    outline: none;
    color: inherit;
}

.search-result-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--iuea-surface);
}

.search-result-body {
    min-width: 0;
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    color: var(--iuea-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-subtitle {
    font-size: 0.82rem;
    color: var(--iuea-gray-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.15rem;
}

.search-result-type {
    font-size: 0.72rem;
    color: var(--iuea-maroon);
    background: rgba(128, 0, 0, 0.08);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

/* Hero Section */
.hero-section,
.page-hero {
    position: relative;
    height: var(--hero-block-height);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 1.5rem 0;
    background: #1a1a1a;
}

.hero-bg-video,
.page-hero .hero-bg-video,
.page-hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: none;
}

.hero-overlay,
.page-hero-overlay {
    display: none;
}

.hero-content,
.page-hero-content {
    position: absolute;
    bottom: 10%;
    left: 5%;
    color: white;
    max-width: 800px;
    z-index: 3;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-hero-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-speed);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    --bs-btn-bg: var(--iuea-maroon);
    --bs-btn-border-color: var(--iuea-maroon);
    --bs-btn-hover-bg: var(--iuea-maroon-dark);
    --bs-btn-hover-border-color: var(--iuea-maroon-dark);
    --bs-btn-active-bg: var(--iuea-maroon-dark);
    --bs-btn-active-border-color: var(--iuea-maroon-dark);
    background-color: var(--iuea-maroon);
    border-color: var(--iuea-maroon);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--iuea-maroon-dark);
    border-color: var(--iuea-maroon-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    --bs-btn-bg: rgba(255, 255, 255, 0.2);
    --bs-btn-border-color: rgba(255, 255, 255, 0.3);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.3);
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.4);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-primary {
    --bs-btn-color: var(--iuea-maroon);
    --bs-btn-border-color: var(--iuea-maroon);
    --bs-btn-hover-bg: var(--iuea-maroon);
    --bs-btn-hover-border-color: var(--iuea-maroon);
    --bs-btn-active-bg: var(--iuea-maroon-dark);
    --bs-btn-active-border-color: var(--iuea-maroon-dark);
}

.btn-gold {
    background: var(--iuea-gold);
    color: white;
}
.btn-gold:hover {
    background: #b58c42;
}

/* Sections */
.tab-section {
    padding: 2.5rem 0;
}

.alt-bg {
    background: white;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.see-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--iuea-maroon);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.55rem 1.35rem;
    border: 2px solid var(--iuea-maroon);
    border-radius: var(--radius-sm);
    transition: background var(--transition-speed), color var(--transition-speed);
}
.see-more-link.btn {
    --bs-btn-padding-x: 1.35rem;
    --bs-btn-padding-y: 0.55rem;
}

.see-more-link:hover {
    background: var(--iuea-maroon);
    color: white;
}

.see-more-link i {
    width: 1rem;
    height: 1rem;
}

.news-all-page .content-grid.row.cols-3 > * {
    width: 100%;
}

@media (min-width: 768px) {
    .news-all-page .content-grid.row.cols-3 > * {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .news-all-page .content-grid.row.cols-3 > * {
        width: 33.33333333%;
    }
}

.news-all-page {
    padding-top: 1.5rem;
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--iuea-maroon);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.news-back-link:hover {
    text-decoration: underline;
}

.news-back-link i {
    width: 1rem;
    height: 1rem;
}

.eyebrow {
    color: var(--iuea-maroon);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.75rem;
}

/* Post Form — compact home layout */
.post-form-section {
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
}

.post-form-wrap {
    max-width: 620px;
    margin: 0 auto;
    background: white;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.post-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.post-form-main-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.post-form textarea {
    flex: 1;
    min-width: 0;
    min-height: 68px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.4;
    resize: none;
    margin-bottom: 0;
    outline: none;
    transition: border-color var(--transition-speed);
}
.post-form textarea:focus { border-color: var(--iuea-maroon); }

.post-form input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
    font-family: inherit;
    font-size: 0.8rem;
    margin-bottom: 0;
    outline: none;
}

.post-image-upload {
    flex: 0 0 68px;
    width: 68px;
    margin-bottom: 0;
}

.post-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    padding: 0.2rem;
    transition: border-color 0.2s, background 0.2s;
    overflow: hidden;
    position: relative;
}
.post-upload-zone:hover,
.post-upload-zone.drag-over {
    border-color: var(--iuea-maroon);
    background: rgba(128, 0, 0, 0.03);
}
.post-upload-zone.has-file {
    border-style: solid;
    border-color: var(--iuea-maroon);
    padding: 0;
}
#newsPostPreviewWrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    color: var(--iuea-gray-light);
    font-size: 0.65rem;
    line-height: 1.15;
    pointer-events: none;
}
#newsPostPreviewWrap i {
    width: 18px;
    height: 18px;
    color: var(--iuea-gray-light);
}
#newsPostPreviewWrap p {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--iuea-gray-light);
}
#newsPostPreviewWrap small { display: none; }
#newsPostImagePreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
.post-upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: var(--iuea-gray-light);
}
.post-url-fallback {
    margin-bottom: 0;
    font-size: 0.75rem;
    color: var(--iuea-gray-light);
}
.post-url-fallback summary {
    cursor: pointer;
    color: var(--iuea-maroon);
    font-weight: 600;
    margin-bottom: 0;
    list-style: none;
}
.post-url-fallback summary::-webkit-details-marker { display: none; }
.post-url-fallback[open] summary { margin-bottom: 0.35rem; }
.post-url-fallback input { margin-bottom: 0; }
.post-form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.15rem;
}
.post-form-submit {
    background-color: var(--iuea-maroon);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: auto;
    font-size: 0.78rem;
    font-weight: 700;
}
.post-form-submit i {
    width: 14px;
    height: 14px;
}
.post-upload-progress { margin-bottom: 0; }

@media (max-width: 480px) {
    .post-form-main-row {
        flex-direction: column;
    }
    .post-image-upload,
    .post-upload-zone {
        width: 100%;
        flex: none;
    }
    .post-upload-zone {
        height: 68px;
    }
    #newsPostPreviewWrap small {
        display: block;
        font-size: 0.68rem;
        color: #aaa;
    }
}
.post-upload-progress-bar {
    background: #f1f5f9;
    border-radius: 99px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}
#newsPostProgressBar {
    background: var(--iuea-maroon);
    height: 100%;
    width: 0%;
    transition: width 0.3s;
    border-radius: 99px;
}
#newsPostProgressLabel { font-size: 0.8rem; color: var(--iuea-gray-light); }

/* Grid loading placeholder */
.grid-loading {
    width: 100%;
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2.5rem 1rem;
    color: var(--iuea-gray-light);
    font-size: 0.95rem;
}

.grid-loading-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(128, 0, 0, 0.15);
    border-top-color: var(--iuea-maroon);
    border-radius: 50%;
    animation: grid-spin 0.7s linear infinite;
}

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

#home .tab-section.alt-bg .content-grid {
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
}

/* Grid & Cards */
.content-grid {
    min-width: 0;
}

/* Legacy CSS grid for dynamic grids without .row (e.g. dashboard saved/followed) */
.content-grid:not(.row):not(.spotlight-grid) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
}

.content-grid:not(.row):not(.spotlight-grid).cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-grid:not(.row):not(.spotlight-grid).cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-grid:not(.row):not(.spotlight-grid).cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Bootstrap row layout — cards are direct children (no col wrappers from JS) */
.content-grid.row {
    display: flex;
    flex-wrap: wrap;
}

.content-grid.row > * {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    margin-top: calc(var(--bs-gutter-y, 0) * 0.5);
    margin-bottom: calc(var(--bs-gutter-y, 0) * 0.5);
}

/* cols-3: col-12 / col-md-6 / col-lg-4 */
.content-grid.row.cols-3 > * {
    width: 100%;
}

@media (min-width: 768px) {
    .content-grid.row.cols-3 > * {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .content-grid.row.cols-3 > * {
        width: 33.33333333%;
    }
}

/* cols-4: col-12 / col-md-6 / col-lg-3 */
.content-grid.row.cols-4 > * {
    width: 100%;
}

@media (min-width: 768px) {
    .content-grid.row.cols-4 > * {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .content-grid.row.cols-4 > * {
        width: 25%;
    }
}

/* cols-2: col-12 / col-md-6 */
.content-grid.row.cols-2 > * {
    width: 100%;
}

@media (min-width: 768px) {
    .content-grid.row.cols-2 > * {
        width: 50%;
    }
}

/* Auto-fill row grids (no cols-*): responsive 1 / 2 / 3+ columns */
.content-grid.row:not(.cols-2):not(.cols-3):not(.cols-4):not(.spotlight-grid) > * {
    width: 100%;
}

@media (min-width: 576px) {
    .content-grid.row:not(.cols-2):not(.cols-3):not(.cols-4):not(.spotlight-grid) > * {
        width: 50%;
    }
}

@media (min-width: 992px) {
    .content-grid.row:not(.cols-2):not(.cols-3):not(.cols-4):not(.spotlight-grid) > * {
        width: 33.33333333%;
    }
}

@media (min-width: 1200px) {
    .content-grid.row:not(.cols-2):not(.cols-3):not(.cols-4):not(.spotlight-grid) > * {
        width: 25%;
    }
}

/* Full-width states: loading, empty messages */
.content-grid.row > .grid-loading,
.content-grid.row > p {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

.content-grid.row > .modern-card,
.content-grid.row > .tier-card,
.content-grid.row > .supporter-card {
    height: 100%;
}

/* Spotlight — hero-sized featured card (full width, same height as page hero) */
.content-grid.spotlight-grid {
    display: block;
    gap: 0;
    margin: 1.5rem 0;
    width: 100%;
}

.content-grid.spotlight-grid > * {
    width: 100%;
    max-width: 100%;
}

.content-grid.spotlight-grid .modern-card {
    position: relative;
    width: 100%;
    height: var(--hero-block-height);
    min-height: var(--hero-block-height);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-md);
    display: block;
}

.content-grid.spotlight-grid .modern-card:hover {
    transform: none;
    box-shadow: var(--shadow-lg);
}

.content-grid.spotlight-grid .modern-card:hover .card-image,
.content-grid.spotlight-grid .modern-card:hover .card-media video {
    transform: scale(1.03);
}

.content-grid.spotlight-grid .card-media {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    z-index: 0;
}

.content-grid.spotlight-grid .card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 42%, rgba(0, 0, 0, 0.08) 100%);
    z-index: 1;
    pointer-events: none;
}

.content-grid.spotlight-grid .card-image,
.content-grid.spotlight-grid .card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-grid.spotlight-grid .card-badge {
    z-index: 3;
    top: 1.25rem;
    left: 1.25rem;
}

.content-grid.spotlight-grid .card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem 2rem 1.5rem;
    background: transparent;
    color: #fff;
    min-height: 45%;
}

.content-grid.spotlight-grid .card-content h3,
.content-grid.spotlight-grid .card-content .card-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.content-grid.spotlight-grid .card-content p,
.content-grid.spotlight-grid .card-content .card-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.75rem;
    max-width: 720px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.content-grid.spotlight-grid .card-stats-row {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.content-grid.spotlight-grid .stat-pill {
    color: rgba(255, 255, 255, 0.9);
}

.content-grid.spotlight-grid .stat-pill .stat-icon {
    color: var(--iuea-gold);
}

.content-grid.spotlight-grid .card-author-row {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.content-grid.spotlight-grid .author-chip {
    color: #fff;
}

.content-grid.spotlight-grid .author-chip:hover {
    background: rgba(255, 255, 255, 0.12);
}

.content-grid.spotlight-grid .author-chip-label {
    color: rgba(255, 255, 255, 0.75);
}

.content-grid.spotlight-grid .card-actions {
    margin-top: 0.75rem;
}

.content-grid.spotlight-grid .card-actions button {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
}

.content-grid.spotlight-grid .card-actions button:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.content-grid.spotlight-grid .card-save-btn {
    z-index: 3;
}

.section-news-grid {
    margin-bottom: 0;
}

.section-news-grid + .section-footer {
    margin-top: 2rem;
}

.modern-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Bootstrap 5 card classes — restore original sharp modern-card look */
.modern-card.card {
    --bs-card-border-width: 0;
    --bs-card-bg: #fff;
    --bs-card-border-radius: var(--radius-lg);
    --bs-card-inner-border-radius: 0;
    --bs-card-box-shadow: none;
    --bs-card-spacer-y: 0;
    --bs-card-spacer-x: 0;
    --bs-card-cap-padding-y: 0;
    --bs-card-cap-padding-x: 0;

    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.modern-card.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.modern-card .card-body .card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--iuea-gray);
    margin-bottom: 0.75rem;
}

.modern-card .card-body .card-text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--iuea-gray-light);
    margin-bottom: 0;
}

.modern-card .card-footer.card-actions {
    background: transparent;
    border: 0;
    padding: 0;
    margin-top: 1rem;
}

/* Bootstrap reboot sets img { height: auto } — keep media filling the card frame */
.modern-card .card-media img,
.modern-card .card-media video,
.modern-card .card-image.card-img-top {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.modern-card .card-badge.badge {
    border-radius: 999px;
}

.card-media {
    position: relative;
    height: 220px;
    overflow: hidden;
    /* Shimmer skeleton while image loads */
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: card-shimmer 1.4s infinite;
}

@keyframes card-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Stop shimmer once image has loaded (opacity set to 1 means image is ready) */
.card-media:has(img[style*="opacity: 1"]),
.card-media:has(video) {
    background: none;
    animation: none;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-card:hover .card-image {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--iuea-maroon);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 2;
}
.card-badge.badge {
    line-height: 1.2;
}

.card-badge.gold {
    background: var(--iuea-gold);
    color: white;
}

.card-badge.badge-campus {
    background: var(--iuea-maroon);
}

.card-badge.badge-innovation {
    background: #d35400;
}

.card-badge.badge-startup {
    background: #0d9488;
}

.card-badge.badge-alumni {
    background: var(--iuea-gold);
    color: #5c3d00;
}

.card-badge.badge-community {
    background: #3b5998;
}

.home-news-card {
    cursor: pointer;
}

.home-news-card .card-badge {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-news-card .card-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

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

.card-content h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--iuea-gray);
    margin-bottom: 0.75rem;
}

.card-content p {
    flex: 1;
    font-size: 0.95rem;
    color: var(--iuea-gray-light);
}

.card-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin: 0.75rem 0 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--iuea-surface);
}

/* Dedicated author attribution row — separate from engagement stats */
.card-author-row {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--iuea-surface);
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--iuea-gray-light);
    font-weight: 500;
}

.stat-icon {
    width: 16px;
    height: 16px;
    color: var(--iuea-maroon);
}

/* Author attribution chip on content cards */
.author-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.5rem 0.35rem 0.35rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: var(--iuea-gray);
    transition: background 0.2s ease;
    max-width: 100%;
    text-align: left;
}

.author-chip:hover {
    background: rgba(128, 0, 0, 0.05);
}

.author-chip:hover .author-chip-name {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(128, 0, 0, 0.45);
}

.author-chip:focus-visible {
    outline: 2px solid var(--iuea-maroon);
    outline-offset: 2px;
    background: rgba(128, 0, 0, 0.04);
}

.author-chip-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    line-height: 1.2;
}

.author-chip-label {
    font-size: 0.62rem;
    font-weight: 600;
    font-variant: small-caps;
    letter-spacing: 0.08em;
    color: var(--iuea-gray-light);
    flex-shrink: 0;
}

.author-chip-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--iuea-maroon), #a01845);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    border: 2px solid #fff;
    box-shadow:
        0 0 0 1.5px rgba(128, 0, 0, 0.18),
        0 2px 8px rgba(128, 0, 0, 0.12);
}

.author-chip-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--iuea-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 12rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.card-actions button {
    flex: 1;
    padding: 0.6rem;
    background: var(--iuea-surface);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background var(--transition-speed);
    color: var(--iuea-gray);
}

.card-actions button:hover {
    background: #e0e0e0;
    color: var(--iuea-maroon);
}

.card-save-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--iuea-maroon);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    transition: background var(--transition-speed), transform 0.2s ease, color var(--transition-speed), box-shadow var(--transition-speed);
    -webkit-tap-highlight-color: transparent;
}

.card-save-btn:hover,
.card-save-btn:focus-visible {
    background: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    color: var(--iuea-maroon-dark);
    outline: none;
}

.card-save-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.25), 0 4px 14px rgba(0, 0, 0, 0.18);
}

.card-save-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
    transition: fill var(--transition-speed), stroke var(--transition-speed);
}

.card-save-btn.saved {
    background: var(--iuea-maroon);
    color: #ffffff;
}

.card-save-btn.saved svg {
    fill: currentColor;
    stroke: currentColor;
}

.card-save-btn.saved:hover,
.card-save-btn.saved:focus-visible {
    background: var(--iuea-maroon-dark);
    color: #ffffff;
}

.ru-saved-grid {
    margin-top: 0;
}

/* Feature Cards */
.feature-card-modern {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    transition: transform var(--transition-speed);
}
.feature-card-modern:hover { transform: translateY(-3px); }
.feature-card-modern .feature-badge { display: inline-block; background: var(--iuea-maroon); color: white; padding: 0.3rem 0.8rem; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 700; width: max-content; }
.feature-card-modern p { font-size: 1.2rem; color: var(--iuea-gray); margin: 0; }
.feature-card-modern .card-actions { justify-content: flex-start; max-width: 300px; }

/* Modals */
.detail-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    padding: 2rem;
    overflow-y: auto;
    opacity: 0;
    transition: opacity var(--transition-speed);
}
.detail-modal.show {
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-container {
    background: white;
    max-width: 1000px;
    margin: 2rem auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-speed);
}
.detail-modal.show .modal-container { transform: translateY(0); }

/* Bootstrap 5 migrated modals */
#authModal,
#cardDetailModal,
#contentCommentModal,
#shareModal,
#authorProfileModal {
    --bs-modal-zindex: 2000;
}

#authModal .modal-dialog { max-width: 380px; }

#authModal .auth-modal-container {
    margin: 0;
    max-width: min(92vw, 380px);
    transform: none;
    border: none;
    padding: 0;
    overflow: hidden;
}

#authModal .modal-body {
    padding: 0;
}

#authModal .auth-modal-header {
    padding: 1.35rem 1.5rem 0.5rem;
    padding-right: 3rem;
}

#authModal .auth-modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--iuea-maroon);
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

#authModal .auth-modal-header p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--iuea-gray-light);
    line-height: 1.45;
}

#authModal .auth-modal-body {
    padding: 0.75rem 1.5rem 0.25rem;
}

#authModal .auth-modal-body .form-group {
    margin-bottom: 0.85rem;
}

#authModal .auth-modal-body .form-group label {
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
}

#authModal .auth-modal-body .form-group input {
    padding: 0.62rem 0.8rem;
    font-size: 0.92rem;
    border-radius: 8px;
}

/* Password show/hide toggle */
.pw-toggle-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pw-toggle-wrap input {
    width: 100%;
    padding-right: 2.6rem !important;
}

.pw-toggle-btn {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--iuea-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    border-radius: 4px;
}

.pw-toggle-btn:hover {
    color: var(--iuea-maroon);
}

.pw-toggle-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.75;
}

#authModal .auth-submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.35rem;
    padding: 0.62rem 1rem;
    font-size: 0.92rem;
    min-height: 42px;
}

#authModal .auth-modal-footer {
    padding: 0.85rem 1.5rem 1.35rem;
    text-align: center;
}

#authModal .auth-modal-footer p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--iuea-gray-light);
    line-height: 1.5;
}

#authModal .auth-modal-footer a {
    color: var(--iuea-maroon);
    font-weight: 600;
    text-decoration: none;
}

#authModal .auth-modal-footer a:hover {
    text-decoration: underline;
}

#authModal.detail-modal {
    padding: 1rem;
}

#authModal.detail-modal.show {
    align-items: center;
}

#authModal .close-modal {
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
}

#cardDetailModal .modal-dialog {
    max-width: min(94vw, 1040px);
}

#cardDetailModal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    overflow: visible;
}

#cardDetailModal .modal-body {
    padding: 0;
    overflow: visible;
}

#cardDetailModal .card-detail-box {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

#contentCommentModal .modal-dialog { max-width: min(95vw, 560px); }
#shareModal .modal-dialog { max-width: min(95vw, 480px); }
#authorProfileModal .modal-dialog { max-width: min(95vw, 400px); }

#contentCommentModal .comment-modal-box,
#shareModal .share-modal-box,
#authorProfileModal .author-profile-modal-box {
    margin: 0;
    transform: none;
}

#contentCommentModal .modal-header.comment-modal-header,
#shareModal .modal-header.share-modal-header {
    padding: 1.5rem 1.75rem 1rem;
}

.auth-modal-container {
    background: white;
    max-width: min(92vw, 380px);
    width: 100%;
    margin: auto;
    border-radius: 14px;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
    padding: 0;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-speed);
    overflow: hidden;
}
.detail-modal.show .auth-modal-container { transform: translateY(0); }

.modal-container > .modal-content,
#detailModal .modal-content,
#endowmentReadMoreModal .modal-content {
    padding: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 100%;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--iuea-surface);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background var(--transition-speed);
    z-index: 10;
    color: var(--iuea-gray);
}
.close-modal:hover { background: #ddd; color: var(--iuea-maroon); }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--iuea-gray); font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.9rem 1rem; border: 1px solid #d1d1d1; border-radius: var(--radius-md); font-family: inherit; font-size: 1rem; transition: border-color var(--transition-speed); background: #fafafa;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--iuea-maroon); background: white; }

.hidden-form {
    display: none; background: white; padding: 1.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-top: 1.5rem; border: 1px solid rgba(0,0,0,0.05);
}
.hidden-form.show { display: block; animation: fadeIn var(--transition-speed); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* Stats & Impact */
.intro-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.intro-stat { text-align: center; background: white; padding: 1.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform var(--transition-speed); border: 1px solid rgba(0,0,0,0.03); }
.intro-stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-icon-wrap { width: 64px; height: 64px; background: rgba(128,0,0,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem auto; color: var(--iuea-maroon); }
.stat-icon-wrap svg { width: 32px; height: 32px; }
.intro-stat .stat-num { display: block; font-size: 2.5rem; font-weight: 800; color: var(--iuea-maroon); line-height: 1.2; margin-bottom: 0.5rem; font-family: var(--font-heading); }
.intro-stat .stat-label { color: var(--iuea-gray-light); font-size: 0.95rem; font-weight: 600; }

/* Tabs */
.innovation-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border: none;
}

.innovation-tabs .nav-item { margin: 0; }

.innovation-tab-btn,
.innovation-tab-btn.nav-link {
    padding: 0.8rem 2rem;
    border: none;
    background: white;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--iuea-gray);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.innovation-tab-btn:hover,
.innovation-tab-btn.nav-link:hover { background: var(--iuea-surface); color: var(--iuea-gray); }

.innovation-tab-btn.nav-link.active,
.innovation-tab-btn.active {
    background: var(--iuea-maroon);
    color: white;
    box-shadow: var(--shadow-md);
}

.endowment-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .endowment-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .endowment-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Endowment / Donations */
.impact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.impact-image { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* Endowment info — two-column about block (#endowmentInfo) */
#endowmentInfo .endowment-info-block {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 0;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    max-height: 380px;
}

#endowmentInfo .endowment-info-media {
    width: 300px;
    min-height: 300px;
    max-height: 300px;
    height: 300px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#endowmentInfo .endowment-info-body {
    padding: 1.5rem 1.75rem;
    min-width: 0;
    max-height: 380px;
    overflow: hidden;
}

#endowmentInfo .endowment-info-title {
    font-size: 1.4rem;
    color: var(--iuea-maroon);
    font-weight: 700;
    margin-bottom: 1rem;
}

#endowmentInfo .endowment-info-body p {
    color: var(--iuea-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

#endowmentInfo .endowment-info-body p:last-of-type {
    margin-bottom: 1rem;
}

#endowmentInfo .endowment-info-link {
    color: var(--iuea-maroon);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

#endowmentInfo .endowment-info-link:hover {
    text-decoration: underline;
}
.tier-card { background: white; padding: 2rem; border-radius: var(--radius-lg); text-align: center; border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--shadow-sm); transition: transform var(--transition-speed); display: flex; flex-direction: column; }
.tier-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--iuea-maroon); }
.tier-icon { width: 60px; height: 60px; background: rgba(128,0,0,0.05); color: var(--iuea-maroon); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem auto; }
.tier-amount { font-size: 2rem; font-weight: 800; color: var(--iuea-maroon); margin: 1rem 0; font-family: var(--font-heading); }
.tier-card p { flex: 1; }
.tier-card button { width: 100%; padding: 0.8rem; background: var(--iuea-surface); border: none; border-radius: var(--radius-md); font-weight: 600; cursor: pointer; transition: background var(--transition-speed); }
.tier-card button:hover { background: var(--iuea-maroon); color: white; }

.supporter-card { background: white; padding: 1.5rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1rem; }
.supporter-header { display: flex; align-items: center; gap: 1rem; }
.supporter-avatar { width: 48px; height: 48px; background: var(--iuea-surface); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--iuea-maroon); }
.supporter-name { font-weight: 700; font-size: 1.1rem; color: var(--iuea-gray); }
.supporter-message { font-style: italic; color: var(--iuea-gray-light); background: var(--iuea-surface); padding: 1rem; border-radius: var(--radius-sm); font-size: 0.95rem; border-left: 4px solid var(--iuea-gold); }

/* Community styling additions */
.badge-community { background: #3b5998; }
.badge-committee { background: #008080; }
.badge-initiative { background: #d35400; }
.badge-report { background: #8e44ad; }

/* Toast notification overlay */
#toast.toast {
    position: fixed;
    bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 0.5rem;
    z-index: 10050;
    min-width: min(92vw, 320px);
    max-width: min(92vw, 480px);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
}
#toast.toast.show {
    display: flex;
    transform: translateX(-50%);
    opacity: 1;
}
#toast.toast.text-bg-primary {
    background-color: var(--iuea-maroon) !important;
}
#toast.toast.text-bg-info {
    background-color: #475569 !important;
}

/* Social Links */
.social-links { display: flex; gap: 0.8rem; margin-top: 1rem; }
.social-links a { color: var(--iuea-gray-light); font-size: 1.2rem; transition: color var(--transition-speed); }
.social-links a:hover { color: var(--iuea-maroon); }

/* Fixed Apply Button */
.fixed-apply-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: auto;
    background-color: #ffd700;
    color: #000000;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fixed-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===================== PREMIUM FOOTER ===================== */
.premium-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 5rem 0 2rem 0;
    margin-top: 4rem;
    font-family: 'Inter', sans-serif;
}

.premium-footer .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 3rem 2.5rem;
    margin-bottom: 4rem;
    align-items: start;
}

.footer-brand img {
    height: 45px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    max-width: 300px;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--iuea-maroon);
    color: white;
    transform: translateY(-2px);
}

.social-icons a[hidden] {
    display: none !important;
}

.social-icons .footer-social-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
}

.premium-footer h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.5px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.85rem;
    transition: color 0.2s;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover { color: var(--iuea-gold); }

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-contact i {
    width: 18px;
    height: 18px;
    color: var(--iuea-maroon);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover { color: white; }

/* Footer responsive */
@media (max-width: 1024px) {
    .premium-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 2rem;
    }

    .premium-footer .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .premium-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Footer responsive rules consolidated in PUBLIC + DASHBOARD RESPONSIVE POLISH block */

/* =============================================================
   SHARED DASHBOARD DESIGN SYSTEM
   -------------------------------------------------------------
   Use these .dash-* classes in ALL role panels (RU, SI, AL, DP).
   Legacy aliases (.admin-*, .rdash-*) remain for existing markup.

   Layout shell:
     .dash-page-wrapper   — full-page dashboard container
     .dash-topbar         — sticky header bar
     .dash-layout         — sidebar + main flex row
     .dash-sidebar        — left navigation column
     .dash-main           — scrollable content area

   Navigation & tabs:
     .dash-nav-btn        — sidebar nav item (add .active when selected)
     .dash-nav-badge      — unread/count pill on nav items
     .dash-tab            — tab pane (add .active to show)

   Content blocks:
     .dash-section-header — page/section title + subtitle
     .dash-stats-grid     — responsive stat card row
     .dash-stat-card      — KPI/metric card (.warning, .gold modifiers)
     .dash-panel          — white content card
     .dash-empty-state    — centered no-data placeholder
     .dash-btn-primary    — primary action button

   Role themes (on page wrapper): .ru-theme (default maroon),
     .al-theme, .dp-theme, .co-theme — swap accent via CSS vars.

   Admin panel: keep .admin-* classes; they alias shared tokens below.
   Role panels: prefer .dash-* on new markup; .rdash-* still works.
   ============================================================= */

/* --- Page wrapper --- */
.dash-page-wrapper,
.admin-page-wrapper {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--dash-bg);
    font-family: var(--dash-font-body);
}

.admin-page-wrapper {
    z-index: 1050;
}

.role-dashboard-wrapper {
    width: 100%;
    min-height: 100vh;
    background: var(--dash-bg);
    font-family: var(--dash-font-body);
    flex-direction: column;
    display: none;
}

.role-dashboard-wrapper.active {
    display: flex;
}

/* --- Topbar base --- */
.dash-topbar,
.admin-topbar,
.rdash-topbar {
    align-items: center;
    background: var(--dash-surface);
    border-bottom: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow-topbar);
    height: var(--dash-topbar-height);
    position: sticky;
    top: 0;
}

.dash-topbar,
.rdash-topbar {
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 100;
}

/* --- Layout --- */
.dash-layout,
.admin-layout,
.rdash-body {
    display: flex;
    min-height: calc(100vh - var(--dash-topbar-height));
}

/* --- Sidebar --- */
.dash-sidebar,
.admin-sidebar {
    width: var(--dash-sidebar-width);
    flex-shrink: 0;
    background: var(--dash-surface);
    border-right: 1px solid var(--dash-border);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: var(--dash-topbar-height);
    height: calc(100vh - var(--dash-topbar-height));
    overflow-y: auto;
}

.dash-sidebar,
.rdash-sidebar {
    width: var(--dash-sidebar-width-role);
    padding: 1.5rem 0.75rem;
    gap: 0.35rem;
}

.admin-sidebar {
    gap: 2rem;
}

.dash-sidebar-label,
.admin-sidebar-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dash-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 0.75rem;
    margin-bottom: 0.25rem;
}

.dash-sidebar-section,
.admin-sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-sidebar-footer {
    margin-top: auto;
}

/* --- Nav buttons --- */
.dash-nav,
.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dash-nav-btn,
.admin-nav-btn,
.rdash-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: var(--dash-radius-nav);
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dash-text-body);
    cursor: pointer;
    transition: all 0.2s;
}

.rdash-nav-btn {
    padding: 0.65rem 0.85rem;
    border-radius: var(--dash-radius-sm);
    font-size: 0.875rem;
    transition: all 0.18s;
}

.dash-nav-btn i,
.admin-nav-btn i,
.rdash-nav-btn i {
    width: 18px;
    height: 18px;
    color: var(--dash-text-muted);
    flex-shrink: 0;
    transition: color 0.2s;
}

.rdash-nav-btn i {
    width: 17px;
    height: 17px;
}

.dash-nav-btn:hover,
.admin-nav-btn:hover,
.rdash-nav-btn:hover {
    background: #f8fafc;
    color: var(--dash-text-primary);
}

.dash-nav-btn:hover i,
.admin-nav-btn:hover i,
.rdash-nav-btn:hover i {
    color: var(--dash-text-body);
}

.dash-nav-btn.active,
.admin-nav-btn.active,
.rdash-nav-btn.active {
    background: var(--dash-accent-bg);
    color: var(--dash-accent);
    font-weight: 600;
}

.dash-nav-btn.active i,
.admin-nav-btn.active i,
.rdash-nav-btn.active i {
    color: var(--dash-accent);
}

.dash-nav-badge,
.rdash-nav-badge {
    margin-left: auto;
    background: var(--dash-accent);
    color: #fff;
    font-size: 0.68rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-weight: 700;
    min-width: 1.1rem;
    text-align: center;
}

.dash-nav-public,
.rdash-nav-public {
    margin-top: auto;
    border-top: 1px solid var(--dash-border-light);
    padding-top: 0.75rem;
    color: var(--dash-text-secondary);
}

.dash-sidebar-signout {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--dash-border);
    color: var(--dash-text-secondary);
}

.dash-sidebar-signout i {
    color: var(--dash-text-muted);
}

.dash-sidebar-signout:hover {
    background: var(--dash-accent-hover-bg);
    color: var(--dash-accent);
}

.dash-sidebar-signout:hover i {
    color: var(--dash-accent);
}

.admin-nav-btn--danger {
    color: var(--dash-text-secondary);
}

.admin-nav-btn--danger i {
    color: var(--dash-text-muted);
}

.admin-nav-btn--danger:hover,
.rdash-nav-btn.admin-nav-btn--danger:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.admin-nav-btn--danger:hover i,
.rdash-nav-btn.admin-nav-btn--danger:hover i {
    color: #dc2626;
}

/* --- Main content --- */
.dash-main,
.admin-main,
.rdash-main {
    flex: 1;
    min-width: 0;
    padding: 2rem 3rem;
}

.rdash-main {
    padding: 2rem 2.5rem;
}

.dash-tab,
.admin-tab-content,
.role-tab {
    display: none;
}

.dash-tab.active,
.admin-tab-content.active,
.role-tab.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.role-tab.active {
    animation-duration: 0.25s;
}

/* --- Section header --- */
.dash-section-header,
.admin-panel-header,
.rdash-section-header {
    margin-bottom: 1.75rem;
}

.rdash-section-header {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--dash-border);
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-panel-header-text {
    flex: 1 1 auto;
    min-width: 0;
}

.dash-section-header h2,
.dash-section-header h3,
.rdash-section-header h2,
.admin-panel-header h3 {
    font-size: 1.5rem;
    color: var(--dash-text-primary);
    margin: 0 0 0.35rem 0;
    font-family: var(--dash-font-heading);
}

.rdash-section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dash-section-header h2 i,
.rdash-section-header h2 i {
    width: 22px;
    height: 22px;
    color: var(--dash-accent);
}

.dash-section-header p,
.rdash-section-header p,
.admin-panel-header p {
    margin: 0;
    color: var(--dash-text-secondary);
    font-size: 0.95rem;
}

.admin-panel-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-panel-header-actions--stacked {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.admin-panel-header-action-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#admin-tab-content .admin-panel-header .btn-primary,
#admin-tab-content .admin-panel-header .btn-secondary {
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    gap: 0.35rem;
    white-space: nowrap;
}

#admin-tab-content .admin-panel-header .btn-primary i,
#admin-tab-content .admin-panel-header .btn-secondary i {
    width: 14px;
    height: 14px;
}

@media (max-width: 900px) {
    #admin-tab-content .admin-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    #admin-tab-content .admin-panel-header-actions,
    #admin-tab-content .admin-panel-header-actions--stacked {
        width: 100%;
        align-items: flex-start;
    }

    #admin-tab-content .admin-panel-header-action-row {
        justify-content: flex-start;
    }
}

.admin-research-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-research-block {
    border: 1px solid var(--dash-border, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.admin-research-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--dash-border, #e2e8f0);
    background: #f8fafc;
}

.admin-research-block-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.admin-research-block-title h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--dash-text-primary, #0f172a);
    font-family: var(--dash-font-heading);
}

.admin-research-block-title i {
    width: 18px;
    height: 18px;
    color: var(--dash-accent, #7f1d1d);
}

.admin-research-block-count {
    font-size: 0.85rem;
    color: var(--dash-text-secondary, #64748b);
}

.admin-empty-state--compact {
    padding: 1.5rem;
    text-align: center;
}

.admin-empty-state--compact p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* --- Stats --- */
.dash-stats-grid,
.admin-stats-grid,
.rdash-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.rdash-stats-row {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

.dash-stat-card,
.admin-stat-card-pro,
.rdash-stat-card {
    background: var(--dash-surface);
    border-radius: var(--dash-radius);
    padding: 1.5rem;
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow-panel);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rdash-stat-card {
    padding: 1.5rem 1.25rem;
    align-items: flex-start;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dash-stat-card:hover,
.admin-stat-card-pro:hover,
.rdash-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--dash-shadow-hover);
    border-color: #cbd5e1;
}

.rdash-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.dash-stat-card.warning,
.admin-stat-card-pro.warning {
    background: #fef2f2;
    border-color: #fecaca;
}

.dash-stat-card i,
.rdash-stat-card i {
    width: 24px;
    height: 24px;
    color: var(--dash-accent);
}

.dash-stat-card.gold i,
.rdash-stat-card.gold i {
    color: var(--iuea-gold);
}

.dash-stat-num,
.rdash-stat-num,
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dash-text-primary);
    line-height: 1;
    font-family: var(--dash-font-heading);
}

.dash-stat-label,
.rdash-stat-card span:last-child {
    font-size: 0.85rem;
    color: var(--dash-text-secondary);
    font-weight: 500;
}

/* --- Panels / cards --- */
.dash-panel,
.admin-panel,
.rdash-panel {
    background: var(--dash-surface);
    border-radius: var(--dash-radius);
    padding: 1.5rem;
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow-panel);
}

.rdash-panel {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.dash-panel.p-0,
.admin-panel.p-0 {
    padding: 0;
    overflow: hidden;
}

.dash-panel h3,
.rdash-panel h3,
.panel-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dash-text-primary);
    margin: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* --- Empty state --- */
.dash-empty-state,
.admin-empty-state,
.rdash-empty-state,
.ru-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--dash-text-secondary);
    gap: 0.75rem;
}

.dash-empty-state,
.rdash-empty-state,
.dash-empty-state--boxed {
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius);
}

.dash-empty-state i,
.rdash-empty-state i,
.ru-empty-state i {
    width: 48px;
    height: 48px;
    color: #cbd5e1;
}

.dash-empty-state h3,
.rdash-empty-state h3,
.ru-empty-state h3 {
    font-size: 1.1rem;
    color: #334155;
    margin: 0;
    font-family: var(--dash-font-heading);
}

.dash-empty-state p,
.rdash-empty-state p,
.ru-empty-state p {
    margin: 0;
    font-size: 0.9rem;
    max-width: 300px;
}

.admin-empty-state .empty-icon {
    width: 64px;
    height: 64px;
    background: var(--dash-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--dash-text-muted);
}

.admin-empty-state .empty-icon i {
    width: 32px;
    height: 32px;
}

/* --- Donor / Partner dashboard (admin layout) --- */
.dp-dashboard-wrapper {
    --dash-accent: var(--iuea-maroon);
    --dash-accent-dark: var(--iuea-maroon-dark);
    --dash-accent-bg: rgba(128, 0, 0, 0.08);
}

.dp-donate-panel .form-row {
    margin-bottom: 1.25rem;
}

.dp-panel-desc {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.dp-dashboard-wrapper .admin-dashboard-grid {
    grid-template-columns: 1.4fr 1fr;
}

@media (max-width: 1024px) {
    .dp-dashboard-wrapper .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Buttons --- */
.dash-btn-primary,
.rdash-btn-primary,
.admin-btn-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--dash-accent);
    color: white;
    border: none;
    border-radius: var(--dash-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.dash-btn-primary,
.rdash-btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.dash-btn-primary:hover,
.rdash-btn-primary:hover {
    background: var(--dash-accent-dark);
    transform: translateY(-1px);
}

.dash-btn-primary i,
.rdash-btn-primary i {
    width: 16px;
    height: 16px;
}

.dash-btn-gold,
.rdash-btn-gold {
    background: var(--iuea-gold) !important;
}

.dash-btn-gold:hover,
.rdash-btn-gold:hover {
    background: #b58c42 !important;
}

.dp-theme {
    --dash-accent: var(--dash-accent-dp);
    --dash-accent-dark: var(--dash-accent-dp-dark);
    --dash-accent-bg: var(--dash-accent-dp-bg);
}

.dp-theme .dash-brand,
.dp-theme .rdash-brand {
    color: var(--dash-accent);
}

.co-theme {
    --dash-accent: var(--dash-accent-co);
    --dash-accent-dark: var(--dash-accent-co-dark);
    --dash-accent-bg: var(--dash-accent-co-bg);
}

.co-theme .dash-brand,
.co-theme .rdash-brand {
    color: var(--dash-accent);
}

/* ===================== COORDINATOR DASHBOARD ===================== */

.coordinator-dash .co-avatar {
    background: var(--dash-accent-bg);
    color: var(--dash-accent);
}

.coordinator-dash .co-welcome-banner {
    background: linear-gradient(135deg, var(--dash-accent) 0%, var(--dash-accent-dark) 100%);
    border-color: transparent;
    color: #fff;
}

.coordinator-dash .co-welcome-banner .admin-welcome-content h2,
.coordinator-dash .co-welcome-banner .date-display {
    color: #fff;
}

.coordinator-dash .co-welcome-banner .admin-welcome-content p,
.coordinator-dash .co-welcome-banner .platform-status {
    color: rgba(255, 255, 255, 0.88);
}

.coordinator-dash .co-status-dot {
    background: #d4a84b;
    box-shadow: 0 0 0 3px rgba(154, 114, 41, 0.35);
}

.coordinator-dash .co-tab {
    display: none;
}

.coordinator-dash .co-tab.active {
    display: block;
}

/* ---- Innovation Admin tab visibility ---- */
#innovation-admin-dashboard .ia-tab {
    display: none;
}

#innovation-admin-dashboard .ia-tab.active {
    display: block;
}

/* small danger button in tables */
.btn-danger-sm {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border-color: #fecaca !important;
    width: 34px;
    padding: 0 !important;
    justify-content: center;
}
.btn-danger-sm:hover {
    background: #fecaca !important;
}

.coordinator-dash .co-stats-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin-bottom: 1.5rem;
}

.coordinator-dash .co-stat-card {
    border-top: 3px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.coordinator-dash .co-stat-card--innovation { border-top-color: #f59e0b; }
.coordinator-dash .co-stat-card--alumni { border-top-color: #3b82f6; }
.coordinator-dash .co-stat-card--donations { border-top-color: #ec4899; }
.coordinator-dash .co-stat-card--community { border-top-color: #14b8a6; }
.coordinator-dash .co-stat-card--research { border-top-color: var(--dash-accent); }

.coordinator-dash .co-icon-innovation { background: #fef3c7; color: #d97706; }
.coordinator-dash .co-icon-alumni { background: #dbeafe; color: #2563eb; }
.coordinator-dash .co-icon-donations { background: #fce7f3; color: #db2777; }
.coordinator-dash .co-icon-community { background: #ccfbf1; color: #0d9488; }
.coordinator-dash .co-icon-research { background: var(--dash-accent-bg); color: var(--dash-accent); }

.coordinator-dash .co-overview-summary .co-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0.25rem 0;
}

.coordinator-dash .co-summary-metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.coordinator-dash .co-summary-label {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.coordinator-dash .co-summary-metric strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dash-accent);
    font-family: var(--dash-font-heading);
}

.coordinator-dash .co-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.coordinator-dash .co-filter-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius-sm);
    font-size: 0.875rem;
    color: var(--dash-text-body);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.65rem center;
    appearance: none;
    cursor: pointer;
    min-width: 140px;
}

.coordinator-dash .co-filter-select:focus {
    outline: none;
    border-color: var(--dash-accent);
    box-shadow: 0 0 0 3px rgba(154, 114, 41, 0.15);
}

.coordinator-dash .co-submissions-panel {
    position: relative;
    min-height: 200px;
}

.coordinator-dash .co-loading-state,
.coordinator-dash .co-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #64748b;
}

.coordinator-dash .co-loading-state[hidden],
.coordinator-dash .co-empty-state[hidden] {
    display: none;
}

.coordinator-dash .co-loading-state i,
.coordinator-dash .co-empty-state i {
    width: 40px;
    height: 40px;
    color: #94a3b8;
}

.coordinator-dash .co-empty-state h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #334155;
    font-family: var(--dash-font-heading);
}

.coordinator-dash .co-empty-state p {
    margin: 0;
    max-width: 320px;
    font-size: 0.9rem;
}

.coordinator-dash .co-submissions-table .co-row-actions {
    flex-wrap: wrap;
    gap: 0.35rem;
}

.coordinator-dash .co-submissions-table .btn-approve,
.coordinator-dash .co-submissions-table .btn-reject {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
}

.coordinator-dash .co-detail-modal-box {
    width: min(95vw, 640px);
    max-width: 640px;
}

.coordinator-dash .co-detail-body {
    padding: 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 50vh;
    overflow-y: auto;
}

.coordinator-dash .co-detail-field {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
}

.coordinator-dash .co-detail-field dt {
    margin: 0;
    font-weight: 600;
    color: #64748b;
}

.coordinator-dash .co-detail-field dd {
    margin: 0;
    color: #0f172a;
}

.coordinator-dash .co-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    padding: 0 2rem 1rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}

.coordinator-dash .co-detail-meta-item {
    font-size: 0.8125rem;
    color: #64748b;
}

.coordinator-dash .co-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.coordinator-dash .co-detail-actions .btn-approve,
.coordinator-dash .co-detail-actions .btn-reject {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.coordinator-dash .admin-panel-header code {
    font-size: 0.8rem;
    background: var(--dash-accent-bg);
    color: var(--dash-accent-dark);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .coordinator-dash .co-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .coordinator-dash .co-summary-row {
        gap: 1.25rem;
    }

    .coordinator-dash .co-submissions-table .co-row-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Shared responsive --- */
@media (max-width: 768px) {
    .dash-main,
    .admin-main,
    .rdash-main {
        padding: 1.25rem 1rem;
    }

    .rdash-main {
        padding: 1.25rem;
    }

    .dash-sidebar,
    .rdash-sidebar {
        display: none;
    }

    .dash-stats-grid,
    .rdash-stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .dash-topbar,
    .rdash-topbar {
        padding: 0 1rem;
    }

    .stat-value,
    .dash-stat-num,
    .rdash-stat-num {
        font-size: 1.5rem;
    }
}

/* ===================== ADMIN DASHBOARD ===================== */

/* TOP NAVBAR — admin uses 3-column grid; base styles from .dash-topbar */
.admin-topbar {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 420px) 1fr;
    gap: 1rem;
    padding: 0 1.5rem;
    z-index: 1010;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    justify-self: start;
    min-width: 0;
    padding-left: 1rem;
}

.admin-topbar-center {
    display: flex;
    justify-content: center;
    justify-self: center;
    width: 100%;
    min-width: 0;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 0.625rem;
    min-width: 0;
}

.admin-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0.3125rem 0.625rem;
    margin-left: 0;
    margin-right: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.admin-logo:hover {
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9);
}

.admin-logo img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

.admin-logo-text {
    display: none !important;
}

.admin-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 420px;
    height: 40px;
    padding: 0 0.875rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.admin-search-wrap:focus-within {
    border-color: rgba(128, 0, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.08);
    background: white;
}

.admin-search-wrap i {
    flex-shrink: 0;
    color: #94a3b8;
    width: 16px;
    height: 16px;
}

.admin-search-wrap input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.875rem;
    color: #333;
}

.admin-search-wrap input::placeholder {
    color: #94a3b8;
}

.admin-search-shortcut {
    flex-shrink: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.125rem 0.375rem;
    font-size: 0.6875rem;
    color: #94a3b8;
    font-weight: 600;
    line-height: 1.4;
}

.admin-btn-create {
    height: 36px;
    padding: 0 0.875rem;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-family: inherit;
    white-space: nowrap;
}

.admin-btn-create:hover {
    box-shadow: 0 2px 8px rgba(128, 0, 0, 0.25);
}

.admin-btn-create i {
    width: 16px;
    height: 16px;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.admin-icon-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.admin-icon-btn:hover {
    background: #f8fafc;
    color: #333;
    border-color: #cbd5e1;
}

.admin-icon-btn--notify {
    position: relative;
}

.admin-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    line-height: 1;
}

/* --- Notifications --- */
.notify-wrap {
    position: relative;
}

.notify-btn.dropdown-toggle::after {
    display: none;
}

.notify-dropdown.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: min(380px, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    z-index: 1200;
    overflow: hidden;
    padding: 0;
    margin: 0;
    inset: auto !important;
    transform: none !important;
}

.rdash-notify-wrap {
    display: flex;
    align-items: center;
}

.rdash-notify-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.rdash-notify-btn:hover {
    background: #f8fafc;
    color: var(--dash-accent);
    border-color: #cbd5e1;
}

.rdash-notify-btn .notify-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    line-height: 1;
}

.notify-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(380px, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    z-index: 1200;
    overflow: hidden;
}

@media (max-width: 600px) {
    .notify-dropdown,
    .notify-dropdown.dropdown-menu {
        position: fixed !important;
        top: calc(var(--dash-topbar-height) + 10px) !important;
        left: 1rem !important;
        right: 1rem !important;
        width: calc(100vw - 2rem) !important;
        max-width: 100vw !important;
    }
}

.notify-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #eef2f7;
    background: #fafafa;
}

.notify-dropdown-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.notify-mark-all {
    border: none;
    background: transparent;
    color: var(--iuea-maroon);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.notify-mark-all:hover {
    background: rgba(128, 0, 32, 0.06);
}

.notify-dropdown-list {
    max-height: 360px;
    overflow-y: auto;
}

.notify-item {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: #fff;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s;
}

.notify-item:hover {
    background: #f8fafc;
}

.notify-item.unread {
    background: #fff7ed;
}

.notify-item.unread:hover {
    background: #ffedd5;
}

.notify-item-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.notify-item-title strong {
    font-size: 0.875rem;
    color: #0f172a;
    line-height: 1.35;
}

.notify-item-time {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: #94a3b8;
    white-space: nowrap;
}

.notify-item-body {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.45;
}

.notify-item-type {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.notify-dropdown-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    color: #94a3b8;
    text-align: center;
}

.notify-dropdown-empty i {
    width: 28px;
    height: 28px;
}

.notify-dropdown-empty p {
    margin: 0;
    font-size: 0.875rem;
}

.admin-topbar-divider {
    width: 1px;
    height: 28px;
    background: #e2e8f0;
    flex-shrink: 0;
    margin: 0 0.25rem;
}

.admin-divider {
    width: 1px;
    height: 28px;
    background: #e2e8f0;
    flex-shrink: 0;
}

.admin-user-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.admin-user-menu {
    user-select: none;
    cursor: pointer;
}

.admin-user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fafafa;
}

.admin-user-menu-toggle::after {
    display: none;
}

.admin-user-menu .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.admin-user-menu .dropdown-menu .dropdown-item i {
    width: 16px;
    height: 16px;
}

.admin-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--iuea-maroon);
    border: 1px solid #e2e8f0;
}

.admin-avatar i {
    width: 16px;
    height: 16px;
}

.admin-user-info {
    display: none !important;
}

.admin-user-name,
#adminUserName {
    font-weight: 600;
    font-size: 0.8125rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    line-height: 1.25;
}

.admin-role-badge,
#adminRoleBadge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--dash-accent);
    background: var(--dash-accent-hover-bg);
    border-radius: 4px;
    padding: 0.125rem 0.375rem;
    text-transform: capitalize;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .admin-topbar {
        grid-template-columns: auto 1fr auto;
    }

    .admin-search-shortcut {
        display: none;
    }
}

@media (max-width: 900px) {
    .admin-topbar-center {
        display: none;
    }

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

    .admin-topbar-right {
        justify-self: end;
    }
}

@media (max-width: 640px) {
    .admin-topbar {
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .admin-topbar-left {
        padding-left: 0.75rem;
    }

    .admin-logo {
        margin-left: 0;
        margin-right: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .admin-logo img {
        height: 40px;
    }

    .admin-btn-create span {
        display: none;
    }

    .admin-btn-create {
        width: 36px;
        padding: 0;
    }

    .admin-user-info {
        display: none;
    }

    .admin-user-menu {
        padding: 0.25rem;
        border-radius: 50%;
    }

    .admin-topbar-divider {
        display: none;
    }
}


/* LAYOUT, SIDEBAR, NAV, MAIN — see shared .dash-* foundation above */

.nav-badge {
    margin-left: auto;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-weight: 700;
}

.nav-badge-unread {
    background: var(--dash-accent);
    color: #fff;
}

/* MAIN CONTENT — shared .dash-main; admin-specific below */

.admin-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* WELCOME BANNER */
.admin-welcome-banner {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    background-image: linear-gradient(to right, #ffffff, #fafafa);
}

.admin-welcome-content h2 {
    font-size: 1.75rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.admin-welcome-content p {
    color: #64748b;
    max-width: 600px;
    margin-bottom: 1.5rem;
}
.admin-welcome-actions {
    display: flex;
    gap: 1rem;
}

.admin-welcome-status {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.date-display {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
}

.platform-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #059669;
    font-weight: 500;
    background: #d1fae5;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* STATS GRID — shared .dash-stats-grid / .dash-stat-card */

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

.stat-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.stat-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-icon-wrap i { width: 18px; height: 18px; }

.bg-blue { background: #eff6ff; color: #3b82f6; }
.bg-purple { background: #f5f3ff; color: #8b5cf6; }
.bg-gold { background: #fefce8; color: #eab308; }
.bg-orange { background: #fff7ed; color: #f97316; }
.bg-teal { background: #f0fdfa; color: #14b8a6; }
.bg-green { background: #f0fdf4; color: #22c55e; }
.bg-maroon { background: #fff1f2; color: #e11d48; }
.bg-red { background: #fee2e2; color: #ef4444; }

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dash-text-primary);
    line-height: 1;
    font-family: var(--dash-font-heading);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}
.stat-trend i { width: 14px; height: 14px; }
.stat-trend.positive { color: #10b981; }
.stat-trend.negative { color: #ef4444; }

/* ANALYTICS TAB */
.admin-analytics-kpi {
    margin-bottom: 2rem;
}

.admin-analytics-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-analytics-primary,
.admin-analytics-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.analytics-chart-container {
    position: relative;
    height: 280px;
    width: 100%;
}

.analytics-chart-container--sm {
    height: 220px;
}

.analytics-panel-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.analytics-pipeline-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.analytics-pipeline-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

.analytics-pipeline-legend-item span:first-child {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.admin-system-panel .panel-header {
    margin-bottom: 1rem;
}

.admin-system-info {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.admin-system-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}

.admin-system-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.admin-system-info-row dt {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.admin-system-info-row dd {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
}

.admin-system-info-mono {
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 0.78rem !important;
    color: #475569 !important;
    word-break: break-all;
}

.analytics-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.analytics-status-dot--online {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.analytics-status-dot--offline {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

#analytics-health-card.health-ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

#analytics-health-card.health-warn {
    background: #fef2f2;
    border-color: #fecaca;
}

@media (max-width: 1200px) {
    .admin-analytics-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-analytics-kpi {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}


/* GRIDS & PANELS — shared .dash-panel / .panel-header */

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

.admin-chart-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-sidebar-panels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* LIVE FEED */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.activity-icon i { width: 14px; height: 14px; }

.activity-details p {
    margin: 0;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.4;
}
.activity-details span {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* FEATURED CONTENT */
.featured-content-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
    cursor: pointer;
}
.featured-item:hover { background: #f8fafc; }

.featured-info h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #0f172a;
    line-height: 1.2;
}
.featured-info span {
    font-size: 0.75rem;
    color: #64748b;
}

/* Admin content cache refresh (subtle, no full wipe) */
#adminContentArea.admin-content-refreshing,
#heroVideosList.admin-content-refreshing {
    opacity: 0.65;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* =========================================================
   PREMIUM USER DIRECTORY TABLE
   ========================================================= */
.user-dir-wrapper {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    background: #ffffff;
}

.admin-table-modern {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

/* Header */
.admin-table-modern thead tr {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1.5px solid #e2e8f0;
}

.admin-table-modern th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-bottom: none;
    white-space: nowrap;
}

/* Body rows */
.admin-table-modern tbody tr {
    transition: background 0.15s ease, box-shadow 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}
.admin-table-modern tbody tr:last-child {
    border-bottom: none;
}
.admin-table-modern tbody tr:hover {
    background: #f8faff;
    box-shadow: inset 3px 0 0 #6366f1;
}

.admin-table-modern td {
    padding: 1.1rem 1.5rem;
    font-size: 0.92rem;
    color: #334155;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── User Cell ── */
.ud-user-cell {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.ud-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    letter-spacing: 0;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}

.ud-avatar-wrap {
    flex-shrink: 0;
    position: relative;
    width: 40px;
    height: 40px;
}

.ud-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    background: #e2e8f0;
}

.ud-user-info {
    min-width: 0;
    overflow: hidden;
}
.ud-user-name {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ud-user-email {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

/* ── Role Select ── */
.role-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.45rem 2.25rem 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 0.9em;
    transition: all 0.2s;
    max-width: 170px;
    width: 100%;
}
.role-select:hover {
    border-color: #6366f1;
    background-color: #ffffff;
}
.role-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
    background-color: #ffffff;
}

/* ── Status Badge ── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-badge.active  { background: #dcfce7; color: #15803d; }
.status-badge.active::before  { background: #22c55e; }
.status-badge.inactive { background: #f1f5f9; color: #64748b; }
.status-badge.inactive::before { background: #cbd5e1; }
.status-badge.pending  { background: #fef9c3; color: #a16207; }
.status-badge.approved { background: #dcfce7; color: #15803d; }
.status-badge.rejected { background: #fee2e2; color: #dc2626; }

/* ── Action Buttons ── */
.ud-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.btn-deactivate {
    padding: 0.38rem 0.9rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid transparent;
    white-space: nowrap;
}
.btn-deactivate.active  { background: #fff1f2; color: #e11d48; border-color: #fecdd3; }
.btn-deactivate.active:hover  { background: #ffe4e6; border-color: #fda4af; }
.btn-deactivate.inactive { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.btn-deactivate.inactive:hover { background: #dcfce7; border-color: #86efac; }

.ud-icon-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1.5px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.ud-icon-btn svg { width: 16px; height: 16px; }
.ud-icon-btn.edit {
    color: #6366f1;
    border-color: #e0e7ff;
    background: #eef2ff;
}
.ud-icon-btn.edit:hover {
    background: #e0e7ff;
    border-color: #a5b4fc;
    transform: scale(1.08);
}
.ud-icon-btn.delete {
    color: #e11d48;
    border-color: #fee2e2;
    background: #fff1f2;
}
.ud-icon-btn.delete:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    transform: scale(1.08);
}

/* ── Zebra strip ── */
.admin-table-modern tbody tr:nth-child(even) {
    background: #fafbff;
}
.admin-table-modern tbody tr:nth-child(even):hover {
    background: #f0f4ff;
}

/* Hover background for the icon button */
.hover-bg-light:hover {
    background-color: #fee2e2 !important;
}
.hover-bg-light-blue:hover {
    background-color: #e0f2fe !important;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.user-cell .avatar {
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}
.pagination-controls button {
    border: 1px solid #e2e8f0;
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
}
.pagination-controls button:disabled { opacity: 0.5; cursor: not-allowed; }
.pagination-controls button:hover:not(:disabled) { background: #f1f5f9; }

/* FORMS & INPUTS */
.admin-select {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    color: #334155;
    outline: none;
}

.admin-select-sm {
    padding: 0.25rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    font-size: 0.8rem;
    color: #64748b;
}

/* KANBAN */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
}

.kanban-column {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    min-height: 600px;
    max-height: 70vh;
}

.kanban-column--approved .kanban-header .badge {
    background: #d1fae5;
    color: #059669;
}

.kanban-column--rejected .kanban-header .badge {
    background: #fee2e2;
    color: #dc2626;
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.kanban-header h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kanban-header .badge {
    background: #cbd5e1;
    color: #334155;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 0.25rem;
}

.kanban-cards::-webkit-scrollbar {
    width: 6px;
}

.kanban-cards::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.kanban-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Kanban cards */
.kanban-card {
    background: white;
    border-radius: 8px;
    padding: 0.85rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    transition: box-shadow 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.kanban-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.06);
}

.kanban-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.kanban-type-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.kanban-card-title {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9rem;
    line-height: 1.3;
}

.kanban-card-excerpt {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kanban-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.72rem;
    color: #94a3b8;
}

.kanban-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.kanban-card-meta i {
    width: 12px;
    height: 12px;
}

.kanban-card-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.6rem;
    margin-top: 0.1rem;
}

.kanban-card-actions .admin-table-action-btn {
    min-width: auto;
    width: auto;
    flex: 1;
    padding: 0.3rem 0.45rem;
    font-size: 0.72rem;
    min-height: 1.75rem;
}

.kanban-card-actions .btn-approve,
.kanban-card-actions .btn-reject {
    flex: 1;
    min-width: 0;
}

.kanban-card-actions--pending {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.kanban-card-actions--pending .admin-table-action-btn {
    grid-column: 1 / -1;
}

.create-modal-box.kanban-preview-box {
    max-width: 640px;
    width: min(95vw, 640px);
}

.kanban-preview-body {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.kanban-preview-image-wrap {
    width: 100%;
    max-height: 360px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.kanban-preview-image {
    display: block;
    max-width: 100%;
    max-height: 360px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.kanban-preview-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kanban-preview-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.kanban-preview-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.kanban-preview-author-row {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.kanban-preview-author-row i {
    width: 0.95rem;
    height: 0.95rem;
}

.kanban-preview-excerpt {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Legacy pending-item aliases (used elsewhere) */
.pending-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s;
}
.pending-item:hover { transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

.pending-item-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.pending-item-info { flex: 1; }
.pending-item-title { font-weight: 600; color: #0f172a; font-size: 0.95rem; margin-bottom: 0.25rem; }
.pending-item-meta { font-size: 0.8rem; color: #64748b; line-height: 1.4; }

.pending-item-type {
    align-self: flex-start;
    background: #f1f5f9;
    color: #475569;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pending-item-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.75rem;
}

.btn-approve, .btn-reject {
    padding: 0.4rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: all 0.2s;
}

.btn-approve { background: #d1fae5; color: #059669; }
.btn-approve:hover { background: #10b981; color: white; }
.btn-reject { background: #fee2e2; color: #e11d48; }
.btn-reject:hover { background: #ef4444; color: white; }

/* UTILITIES */
.mb-4 { margin-bottom: 1rem; }
.mt-3 { margin-top: 0.75rem; }
.text-maroon { color: var(--iuea-maroon); }
.font-bold { font-weight: 700; }

/* UTILITIES — empty state base in shared .dash-empty-state */

/* Hero Videos admin settings */
.hero-video-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #fff;
}

.hero-video-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-video-card-title {
    margin: 0;
    font-size: 1.1rem;
    color: #0f172a;
}

.hero-video-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hero-upload-btn,
.hero-remove-btn {
    padding: 0.55rem 1rem;
    min-height: 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all var(--transition-speed);
    line-height: 1.2;
}

.hero-upload-btn {
    background: #fff;
    color: var(--iuea-maroon);
    border: 1.5px solid var(--iuea-maroon);
}

.hero-upload-btn:hover:not(:disabled) {
    background: var(--iuea-maroon);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.hero-upload-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.hero-upload-btn i {
    width: 16px;
    height: 16px;
}

.hero-remove-btn {
    background: #fff;
    color: #dc2626;
    border: 1.5px solid #fecaca;
}

.hero-remove-btn:hover {
    background: #fef2f2;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.hero-remove-btn i {
    width: 16px;
    height: 16px;
}

.hero-video-hint {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
}

.hero-video-status {
    margin: 0;
    font-size: 0.85rem;
    color: #334155;
    min-height: 1.25rem;
}

.hero-video-preview-empty {
    padding: 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    color: #64748b;
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.hero-video-preview video {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    margin-top: 0.5rem;
    display: block;
}

/* Admin table action buttons (visible on light backgrounds) */
.admin-table-actions {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
}

.admin-table-action-btn {
    box-sizing: border-box;
    padding: 0.35rem 0.5rem;
    min-width: 5.5rem;
    width: 5.5rem;
    min-height: 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.78rem;
    line-height: 1.2;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all var(--transition-speed);
    background: #fff;
    color: var(--iuea-maroon);
    border: 1.5px solid var(--iuea-maroon);
}

.admin-table-action-btn:hover:not(:disabled) {
    background: var(--iuea-maroon);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.admin-table-action-btn i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ===================== ROLE DASHBOARDS ===================== */
/* Layout, nav, panels, stats, empty states: shared .dash-* foundation above.
   Legacy .rdash-* classes alias the same tokens. Role-specific UI below. */

.dash-brand,
.rdash-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dash-accent);
    font-family: var(--dash-font-heading);
}

.dash-brand i,
.rdash-brand i {
    width: 24px;
    height: 24px;
}

.rdash-body {
    flex: 1;
}

.rdash-user-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.rdash-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: var(--dash-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.rdash-logout-btn:hover {
    background: #fecaca;
}

.rdash-logout-btn i {
    width: 14px;
    height: 14px;
}

/* --- Registered User: Shared Stories --- */
.ru-stories-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ru-story-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.ru-story-main {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
}

.ru-story-thumb {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f1f5f9;
}

.ru-story-body {
    flex: 1;
    min-width: 0;
}

.ru-story-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.ru-story-title-row h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.ru-story-desc {
    margin: 0 0 0.75rem 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ru-story-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: #94a3b8;
}

.ru-story-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ru-story-meta i { width: 14px; height: 14px; }

.ru-story-comments-wrap {
    border-top: 1px solid #f1f5f9;
    padding: 1rem 1.25rem 1.25rem;
    background: #fafafa;
}

.ru-story-comments-wrap h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.ru-story-comments-wrap h4 i { width: 16px; height: 16px; color: var(--dash-accent); }

.ru-story-comments {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ru-story-comment {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
}

.ru-story-comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
}

.ru-story-comment-meta strong { color: #334155; }
.ru-story-comment-meta span { color: #94a3b8; white-space: nowrap; }

.ru-story-comment p {
    margin: 0;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.45;
}

.ru-story-comment-replies {
    list-style: none;
    margin: 0.65rem 0 0 0;
    padding: 0 0 0 0.85rem;
    border-left: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ru-story-comment-reply {
    background: #f8fafc;
}

.ru-story-no-comments {
    margin: 0;
    font-size: 0.88rem;
    color: #94a3b8;
    font-style: italic;
}

@media (max-width: 640px) {
    .ru-story-main { flex-direction: column; }
    .ru-story-thumb { width: 100%; height: 160px; }
    .ru-story-title-row { flex-direction: column; align-items: flex-start; }
}

/* ===================== INNOVATION ADMIN — PREMIUM SECTION STYLES ===================== */

/* Section Hero (top banner for each tab) */
.ia-section-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}

.ia-section-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    opacity: 0.06;
    pointer-events: none;
    border-radius: 16px;
}

.ia-section-hero--innovations {
    background: linear-gradient(135deg, #800000 0%, #b91c1c 100%);
}

.ia-section-hero--startups {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
}

.ia-section-hero--requests {
    background: linear-gradient(135deg, #0e7490 0%, #0284c7 100%);
}

.ia-section-hero-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.ia-section-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.25);
}

.ia-section-hero-icon i {
    width: 26px;
    height: 26px;
    color: #fff;
}

.ia-section-hero-title {
    margin: 0 0 0.2rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.ia-section-hero-sub {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.4;
}

.ia-section-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Filter select */
.ia-filter-select {
    padding: 0.55rem 1rem;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    backdrop-filter: blur(6px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.8)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    padding-right: 2.2rem;
    transition: border-color 0.2s, background 0.2s;
}
.ia-filter-select option {
    background: #1e293b;
    color: #fff;
}
.ia-filter-select:focus {
    border-color: rgba(255,255,255,0.65);
    background-color: rgba(255,255,255,0.2);
}

/* Refresh button */
.ia-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.2rem;
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(6px);
    white-space: nowrap;
}
.ia-refresh-btn:hover {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.55);
    transform: translateY(-1px);
}
.ia-refresh-btn i {
    width: 15px;
    height: 15px;
}

/* Table wrapper */
.ia-table-wrap {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}

/* Premium table */
.ia-table {
    width: 100%;
    border-collapse: collapse;
}

.ia-table thead tr {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.ia-table th {
    padding: 0.9rem 1.25rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    white-space: nowrap;
}

.ia-table td {
    padding: 1rem 1.25rem;
    font-size: 0.88rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.ia-table tbody tr {
    transition: background 0.15s;
}

.ia-table tbody tr:last-child td {
    border-bottom: none;
}

.ia-table tbody tr:hover td {
    background: #f8fafc;
}

/* Loading state */
.ia-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 4rem 1rem;
    color: #94a3b8;
}
.ia-loading-state[hidden] { display: none !important; }

.ia-loading-state i {
    width: 36px;
    height: 36px;
    color: #800000;
    animation: ia-spin 1s linear infinite;
}

.ia-loading-state p {
    margin: 0;
    font-size: 0.9rem;
}

@keyframes ia-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Empty state */
.ia-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 4rem 1.5rem;
    text-align: center;
}
.ia-empty-state[hidden] { display: none !important; }
.ia-table[hidden]        { display: none !important; }

.ia-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.ia-empty-icon i {
    width: 28px;
    height: 28px;
    color: #94a3b8;
}

.ia-empty-state h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
}

.ia-empty-state p {
    margin: 0;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Action buttons inside .ia-table */
.ia-table .admin-table-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

.ia-table .btn-approve {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    background: #d1fae5;
    color: #059669;
    border: none;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.ia-table .btn-approve:hover {
    background: #10b981;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(16,185,129,0.3);
}

.ia-table .btn-reject {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    background: #fee2e2;
    color: #e11d48;
    border: none;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.ia-table .btn-reject:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(239,68,68,0.3);
}

.ia-table .btn-danger-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    background: #fff0f0;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.ia-table .btn-danger-sm:hover {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
    transform: scale(1.08);
}
.ia-table .btn-danger-sm i {
    width: 13px;
    height: 13px;
}

.ia-table .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.ia-table .btn-secondary:hover {
    background: #334155;
    color: #fff;
    border-color: #334155;
}

/* Row animation when loaded */
.ia-table tbody tr {
    animation: ia-row-in 0.25s ease both;
}

@keyframes ia-row-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .ia-section-hero {
        padding: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .ia-section-hero-title { font-size: 1.15rem; }
    .ia-table th, .ia-table td { padding: 0.75rem; }
    .ia-section-hero-actions { width: 100%; }
    .ia-filter-select { flex: 1; }
    .ia-refresh-btn { flex: 1; justify-content: center; }
}

/* ===================== REGISTERED USER DASHBOARD (admin layout) ===================== */

.ru-dashboard {
    font-family: 'Inter', sans-serif;
}

.ru-dashboard .admin-main .role-tab {
    animation: fadeIn 0.3s ease;
}

.ru-dashboard .admin-panel-header .btn-primary {
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
}

.ru-dashboard .admin-panel-header .btn-primary i {
    width: 16px;
    height: 16px;
}

.ru-dashboard .ru-stats-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.ru-dashboard .stat-trend:not(.positive):not(.negative) {
    color: #64748b;
}

.ru-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ru-quick-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.ru-quick-action:hover {
    background: #fff;
    border-color: #cbd5e1;
    transform: translateX(4px);
}

.ru-quick-action strong {
    display: block;
    font-size: 0.9375rem;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.ru-quick-action span {
    display: block;
    font-size: 0.8125rem;
    color: #64748b;
}

.ru-quick-action-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ru-quick-action-icon i {
    width: 18px;
    height: 18px;
    color: white;
}

.ru-quick-action-arrow {
    margin-left: auto;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    flex-shrink: 0;
}

.ru-dashboard .ru-story-card {
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.ru-dashboard .ru-story-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}


.ru-dashboard .admin-panel .form-group {
    margin-bottom: 1.25rem;
}

.ru-dashboard .admin-panel .form-group:last-child {
    margin-bottom: 0;
}

.ru-dashboard .admin-panel .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.ru-dashboard .admin-panel .form-group input {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ru-dashboard .admin-panel .form-group input:focus {
    outline: none;
    border-color: rgba(128, 0, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.08);
}

@media (max-width: 1100px) {
    .ru-dashboard .admin-welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .ru-dashboard .admin-welcome-status {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .ru-dashboard .admin-sidebar {
        display: none;
    }

    .ru-dashboard .admin-main {
        padding: 1.25rem;
    }

    .ru-dashboard .admin-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

/* Role theme accents — driven by --dash-accent* vars on .al-theme / .dp-theme */

/* =============================================
   CREATE CONTENT MODAL
   ============================================= */
.create-modal-box {
    background: #fff;
    border-radius: 16px;
    width: min(95vw, 900px);
    max-width: 900px;
    max-height: 90vh;
    margin: auto;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.create-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.75rem 2rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.create-modal-header h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--iuea-maroon);
    margin: 0 0 0.25rem;
}
.create-modal-header p {
    color: var(--iuea-gray-light);
    font-size: 0.87rem;
    margin: 0;
}

.create-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.75rem 2rem;
    flex: 1;
}

.create-modal-fields { display: flex; flex-direction: column; gap: 1rem; }
.create-modal-fields .form-group { margin: 0; }
.create-modal-fields input,
.create-modal-fields textarea,
.create-modal-fields select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--iuea-dark);
    background: #fafafa;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.create-modal-fields input:focus,
.create-modal-fields textarea:focus,
.create-modal-fields select:focus {
    outline: none;
    border-color: var(--iuea-maroon);
    background: #fff;
}
.create-modal-fields textarea { resize: vertical; }
.create-modal-fields label { font-size: 0.82rem; font-weight: 600; color: var(--iuea-dark); display: block; margin-bottom: 0.35rem; }

.create-modal-media { display: flex; flex-direction: column; gap: 0.75rem; }

/* Upload Zone */
.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    padding: 1rem;
    transition: border-color 0.2s, background 0.2s;
    overflow: hidden;
    position: relative;
}
.upload-zone:hover {
    border-color: var(--iuea-maroon);
    background: rgba(128,0,0,0.03);
}
.upload-zone.drag-over {
    border-color: var(--iuea-maroon);
    background: rgba(128,0,0,0.06);
    transform: scale(1.01);
}
.upload-zone.has-file {
    border-style: solid;
    border-color: var(--iuea-maroon);
    padding: 0;
}
.upload-zone-video { height: 120px; }

.upload-zone-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 1.5rem;
}
.btn-text-sm {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0;
}
.btn-text-sm:hover { text-decoration: underline; }

.create-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border-top: 1px solid #f1f5f9;
}

/* Responsive modal */
@media (max-width: 700px) {
    .create-modal-body { grid-template-columns: 1fr; }
    .create-modal-box { max-height: 95vh; }
}

/* =============================================
   CONTENT COMMENTS MODAL
   ============================================= */
.comment-modal-box {
    background: #fff;
    border-radius: 16px;
    width: min(95vw, 560px);
    max-height: 90vh;
    margin: auto;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transform: translateY(20px);
    transition: transform var(--transition-speed);
}

#contentCommentModal.show .comment-modal-box { transform: translateY(0); }

.comment-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.comment-modal-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--iuea-maroon);
    margin: 0 0 0.35rem;
}

.comment-modal-header h2 i { width: 1.15rem; height: 1.15rem; }

.comment-modal-header p {
    color: var(--iuea-gray);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comment-modal-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.comment-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.75rem;
    min-height: 180px;
    max-height: min(50vh, 420px);
}

.comment-loading,
.comment-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--iuea-gray-light);
    font-size: 0.9rem;
}

.comment-empty i {
    width: 2rem;
    height: 2rem;
    color: rgba(128, 0, 0, 0.35);
}

.comment-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.comment-item-avatar,
.comment-avatar {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--iuea-maroon), var(--iuea-maroon-dark, #5c0000));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.comment-item-body { flex: 1; min-width: 0; }

.comment-item-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    margin-bottom: 0.25rem;
}

.comment-item-author {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--iuea-dark);
}

.comment-item-date {
    font-size: 0.78rem;
    color: var(--iuea-gray-light);
}

.comment-item-message {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--iuea-gray);
    word-break: break-word;
    white-space: pre-wrap;
}

.comment-item-reply {
    padding: 0.65rem 0;
}

.comment-item-reply .comment-item-avatar {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.75rem;
}

.comment-replies {
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid #e2e8f0;
}

.comment-reply-btn {
    margin-top: 0.35rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--iuea-maroon);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s;
}

.comment-reply-btn:hover {
    color: var(--iuea-maroon-dark, #5c0000);
    text-decoration: underline;
}

.comment-reply-form {
    margin-top: 0.65rem;
}

.comment-reply-form textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.45;
    resize: vertical;
    min-height: 3.25rem;
    max-height: 8rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.comment-reply-form textarea:focus {
    outline: none;
    border-color: var(--iuea-maroon);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.comment-reply-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.comment-reply-form-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-reply-cancel {
    padding: 0.45rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.comment-reply-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.comment-reply-post {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.8rem !important;
}

.comment-reply-post:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.comment-login-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.75rem;
    border-top: 1px solid #f1f5f9;
    background: var(--iuea-surface, #fafafa);
    text-align: center;
}

.comment-login-prompt i {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--iuea-maroon);
}

.comment-login-prompt p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--iuea-gray);
}

.comment-form {
    padding: 1rem 1.75rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    background: #fff;
    flex-shrink: 0;
}

.comment-form-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--iuea-dark);
}

.comment-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 4.5rem;
    max-height: 10rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--iuea-maroon);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
}

.comment-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.65rem;
}

.comment-char-count {
    font-size: 0.78rem;
    color: var(--iuea-gray-light);
}

.comment-char-count.near-limit { color: #b45309; }
.comment-char-count.at-limit { color: #dc2626; font-weight: 600; }

#contentCommentPostBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =============================================
   CARD DETAIL MODAL
   ============================================= */
.modern-card[data-content-type][data-content-id] {
    cursor: pointer;
}

.modern-card[data-content-type][data-content-id] :is(a, button, input, textarea, select, video, audio, .card-badge, .author-chip, .social-links) {
    cursor: auto;
}

.card-detail-box {
    width: min(94vw, 1040px);
    max-height: min(88vh, 720px);
    margin: auto;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1fr);
    flex-shrink: 0;
    transform: translateY(20px) scale(0.98);
    transition: transform var(--transition-speed);
}

#cardDetailModal.show .card-detail-box {
    transform: translateY(0) scale(1);
}

.card-detail-media {
    min-height: 520px;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(145deg, var(--iuea-maroon-dark), var(--iuea-maroon));
    display: flex;
}

.card-detail-media-el {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    display: block;
}

.card-detail-media-empty {
    width: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
}

.card-detail-media-empty i {
    width: 3rem;
    height: 3rem;
}

.card-detail-content {
    position: relative;
    padding: 3rem 3rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    overflow-y: auto;
}

.card-detail-close {
    top: 1.15rem;
    right: 1.15rem;
}

.card-detail-badge {
    align-self: flex-start;
    max-width: calc(100% - 3rem);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(128, 0, 0, 0.08);
    color: var(--iuea-maroon);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.card-detail-content h2 {
    margin: 0;
    color: var(--iuea-dark);
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.card-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.card-detail-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: var(--iuea-surface, #f8f9fa);
    color: var(--iuea-gray);
    font-size: 0.78rem;
    font-weight: 600;
}

.card-detail-description {
    margin: 0;
    color: var(--iuea-gray);
    font-size: 1rem;
    line-height: 1.75;
    white-space: normal;
}

.card-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: auto;
}

.card-detail-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 0.9rem;
    border: 1.5px solid #eceff3;
    border-radius: 14px;
    background: #fff;
    color: var(--iuea-gray);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.card-detail-actions button:hover {
    border-color: var(--iuea-maroon);
    background: rgba(128, 0, 0, 0.05);
    color: var(--iuea-maroon);
    transform: translateY(-1px);
}

.card-detail-actions button i {
    width: 1rem;
    height: 1rem;
}

.card-detail-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eef1f5;
}

.card-detail-share > span {
    color: var(--iuea-gray-light);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card-detail-share-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.card-detail-share-btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.card-detail-share-btn .share-platform-icon {
    width: 38px;
    height: 38px;
}

.card-detail-share-btn:hover .share-platform-icon {
    background: var(--iuea-maroon);
    color: #fff;
}

.card-detail-share-btn.share-fb:hover .share-platform-icon { background: #1877F2; }
.card-detail-share-btn.share-x:hover .share-platform-icon { background: #000; }
.card-detail-share-btn.share-wa:hover .share-platform-icon { background: #25D366; }
.card-detail-share-btn.share-li:hover .share-platform-icon { background: #0A66C2; }
.card-detail-share-btn.share-tg:hover .share-platform-icon { background: #26A5E4; }
.card-detail-share-btn.share-copy:hover .share-platform-icon { background: var(--iuea-maroon); }

@media (max-width: 820px) {
    .card-detail-box {
        grid-template-columns: 1fr;
        max-height: 92vh;
        width: min(94vw, 560px);
        border-radius: 18px;
    }

    .card-detail-media,
    .card-detail-media-el,
    .card-detail-media-empty {
        min-height: 260px;
        max-height: 34vh;
    }

    .card-detail-content {
        padding: 2rem 1.35rem 1.35rem;
    }

    .card-detail-content h2 {
        font-size: 1.55rem;
    }
}

/* --- Mobile phone: full-width bottom-sheet card popup --- */
@media (max-width: 600px) {
    /* Align modal to bottom of screen */
    #cardDetailModal .modal-dialog {
        margin: 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    #cardDetailModal .modal-content {
        border-radius: 0 !important;
    }

    /* Box: stack image on top, content below, limited to 90vh total */
    #cardDetailModal .card-detail-box {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        max-height: 90vh !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto 1fr !important;
        display: grid !important;
        overflow: hidden;
    }

    /* Image banner: compact, fixed height at top */
    .card-detail-media {
        display: flex !important;
        min-height: 200px !important;
        max-height: 200px !important;
        height: 200px !important;
        width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
    }

    .card-detail-media-el {
        width: 100% !important;
        height: 200px !important;
        min-height: 200px !important;
        object-fit: cover !important;
        border-radius: 0 !important;
    }

    .card-detail-media-empty {
        min-height: 200px !important;
        max-height: 200px !important;
    }

    /* Content: scrollable below the image */
    .card-detail-content {
        padding: 1.25rem 1.1rem 1.5rem !important;
        overflow-y: auto !important;
        max-height: calc(90vh - 200px) !important;
        gap: 0.75rem !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Pull-handle at the very top of the content area */
    .card-detail-content::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #d1d5db;
        border-radius: 999px;
        margin: -0.25rem auto 0.4rem;
        flex-shrink: 0;
    }

    .card-detail-content h2 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
        letter-spacing: -0.02em !important;
    }

    .card-detail-badge {
        font-size: 0.7rem !important;
    }

    .card-detail-description {
        font-size: 0.9rem !important;
        line-height: 1.65 !important;
    }

    .card-detail-actions {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }

    .card-detail-actions button {
        padding: 0.65rem 0.5rem !important;
        font-size: 0.82rem !important;
        border-radius: 10px !important;
    }

    /* Close button sits over the image */
    .card-detail-close {
        top: 0.85rem !important;
        right: 0.85rem !important;
        z-index: 30 !important;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(4px) !important;
    }
}

/* =============================================
   SHARE MODAL
   ============================================= */
.share-modal-box {
    background: #fff;
    border-radius: 16px;
    width: min(95vw, 480px);
    margin: auto;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transform: translateY(20px);
    transition: transform var(--transition-speed);
}

#shareModal.show .share-modal-box { transform: translateY(0); }

.share-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.share-modal-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--iuea-maroon);
    margin: 0 0 0.35rem;
}

.share-modal-header h2 i { width: 1.15rem; height: 1.15rem; }

.share-modal-header p {
    color: var(--iuea-gray);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.share-modal-body {
    padding: 1.25rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* =============================================
   AUTHOR PROFILE MODAL
   ============================================= */
.author-profile-modal-box {
    background: #fff;
    border-radius: 18px;
    width: min(95vw, 400px);
    margin: auto;
    overflow: hidden;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transform: translateY(20px);
    transition: transform var(--transition-speed);
}

#authorProfileModal.show .author-profile-modal-box { transform: translateY(0); }

.author-profile-hero {
    position: relative;
    padding: 2.25rem 1.5rem 1.5rem;
    background: linear-gradient(155deg, var(--iuea-maroon-dark) 0%, var(--iuea-maroon) 42%, #9b1a3a 100%);
    color: #fff;
    text-align: center;
}

.author-profile-close {
    top: 0.85rem;
    right: 0.85rem;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
}

.author-profile-close:hover {
    background: rgba(255, 255, 255, 0.26);
    color: #fff;
}

.author-profile-avatar {
    width: 5.25rem;
    height: 5.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.25rem auto 0.9rem;
    background: linear-gradient(145deg, #fff 0%, #f5e8ec 100%);
    color: var(--iuea-maroon);
    font-size: 1.6rem;
    font-weight: 700;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.85),
        0 12px 28px rgba(0, 0, 0, 0.22);
}

.author-profile-name {
    margin: 0 0 0.45rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.author-profile-role-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.author-profile-stats-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.15rem;
}

.author-profile-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    line-height: 1.2;
}

.author-profile-stat-pill > i {
    width: 0.9rem;
    height: 0.9rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.author-profile-body {
    padding: 1.35rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.author-profile-bio {
    margin: 0;
    padding: 0.9rem 1rem;
    background: var(--iuea-surface, #f8f9fa);
    border: none;
    border-left: 3px solid var(--iuea-maroon);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--iuea-gray);
    font-size: 0.9rem;
    line-height: 1.55;
    font-style: normal;
}

.author-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.author-profile-primary-actions {
    display: flex;
    gap: 0.65rem;
    width: 100%;
}

.author-profile-follow-btn,
.author-profile-message-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.9rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: background var(--transition-speed), color var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.author-profile-follow-btn {
    background: #fff;
    color: var(--iuea-maroon);
    border: 2px solid var(--iuea-maroon);
}

.author-profile-follow-btn:hover {
    background: rgba(128, 0, 0, 0.06);
}

.author-profile-follow-btn.is-following {
    background: rgba(128, 0, 0, 0.08);
    color: var(--iuea-maroon);
    border-color: rgba(128, 0, 0, 0.35);
}

.author-profile-follow-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.author-profile-message-btn {
    background: var(--iuea-maroon);
    color: #fff;
    border: 2px solid var(--iuea-maroon);
    box-shadow: 0 4px 14px rgba(128, 0, 0, 0.22);
}

.author-profile-message-btn:hover {
    background: #6b0000;
    border-color: #6b0000;
    box-shadow: 0 6px 18px rgba(128, 0, 0, 0.28);
}

.author-profile-stories-link {
    align-self: center;
    background: none;
    border: none;
    padding: 0.25rem 0;
    color: var(--iuea-gray);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    transition: color var(--transition-speed);
}

.author-profile-stories-link:hover {
    color: var(--iuea-maroon);
}

.share-link-preview {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--iuea-surface, #f8f9fa);
    border: 1px solid #e8ecf0;
    border-radius: var(--radius-md);
    padding: 0.65rem 0.85rem;
}

.share-link-preview > i {
    width: 1rem;
    height: 1rem;
    color: var(--iuea-maroon);
    flex-shrink: 0;
}

.share-link-preview input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.82rem;
    color: var(--iuea-gray);
    font-family: inherit;
    min-width: 0;
    outline: none;
}

.share-copy-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(128, 0, 0, 0.08);
    color: var(--iuea-maroon);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition-speed), color var(--transition-speed);
}

.share-copy-inline:hover {
    background: var(--iuea-maroon);
    color: #fff;
}

.share-copy-inline i { width: 1rem; height: 1rem; }

.share-platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.share-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.85rem 0.5rem;
    border: 1.5px solid #eef1f5;
    border-radius: var(--radius-md);
    background: #fff;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-family: inherit;
}

.share-platform-btn:hover {
    border-color: var(--iuea-maroon);
    background: rgba(128, 0, 0, 0.04);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.share-platform-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 0, 0, 0.07);
    color: var(--iuea-maroon);
    transition: background var(--transition-speed), color var(--transition-speed);
}

.share-platform-btn:hover .share-platform-icon {
    background: var(--iuea-maroon);
    color: #fff;
}

.share-platform-icon svg,
.share-platform-icon i {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    display: block;
}

.share-platform-icon .share-brand-svg {
    fill: currentColor;
}

.share-platform-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--iuea-gray);
    text-align: center;
    line-height: 1.2;
}

.share-platform-btn.share-fb:hover .share-platform-icon { background: #1877F2; }
.share-platform-btn.share-x:hover .share-platform-icon { background: #000; }
.share-platform-btn.share-wa:hover .share-platform-icon { background: #25D366; }
.share-platform-btn.share-li:hover .share-platform-icon { background: #0A66C2; }
.share-platform-btn.share-tg:hover .share-platform-icon { background: #26A5E4; }
.share-platform-btn.share-copy:hover .share-platform-icon { background: var(--iuea-maroon); }

.modern-card.share-highlight {
    outline: 2px solid var(--iuea-maroon);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(128, 0, 0, 0.12);
    transition: outline 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 600px) {
    .detail-modal { padding: 0.75rem; }
    .comment-modal-box {
        width: 100%;
        max-height: 92vh;
        border-radius: 14px;
    }
    .comment-modal-header,
    .comment-list,
    .comment-form,
    .comment-login-prompt {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }
    .comment-list { max-height: min(45vh, 360px); }
    .share-modal-box {
        width: 100%;
        border-radius: 14px;
    }
    .share-modal-header,
    .share-modal-body {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }
    .share-platforms {
        grid-template-columns: repeat(2, 1fr);
    }
    .author-profile-modal-box {
        width: 100%;
        border-radius: 14px;
    }
    .author-profile-hero {
        padding: 2rem 1.1rem 1.25rem;
    }
    .author-profile-body {
        padding: 1.15rem 1.1rem 1.25rem;
    }
    .author-chip-name {
        max-width: 9rem;
    }
    .card-author-row {
        margin-top: 0.65rem;
        padding-top: 0.65rem;
    }
}

/* =================== MESSAGING UI =================== */
.msg-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    min-height: 520px;
    max-height: calc(100vh - 220px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.admin-page-wrapper .msg-layout-admin,
.admin-page-wrapper .msg-layout-ru,
.admin-page-wrapper .msg-layout-dp {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    min-height: 520px;
    max-height: calc(100vh - 220px);
    width: 100%;
}

.admin-page-wrapper .msg-sidebar,
.admin-page-wrapper .msg-main {
    min-width: 0;
}

#admin-dashboard #admin-tab-messages .msg-conversation-list .msg-conv-item,
#registered-user-dashboard #ru-tab-messages .msg-conversation-list .msg-conv-item,
#donor-partner-dashboard #dp-tab-messages .msg-conversation-list .msg-conv-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
}

#admin-dashboard #admin-tab-messages .msg-conversation-list .msg-conv-item .msg-avatar,
#registered-user-dashboard #ru-tab-messages .msg-conversation-list .msg-conv-item .msg-avatar,
#donor-partner-dashboard #dp-tab-messages .msg-conversation-list .msg-conv-item .msg-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#admin-dashboard #admin-tab-messages .msg-conversation-list .msg-conv-item .msg-conv-body,
#registered-user-dashboard #ru-tab-messages .msg-conversation-list .msg-conv-item .msg-conv-body,
#donor-partner-dashboard #dp-tab-messages .msg-conversation-list .msg-conv-item .msg-conv-body {
    flex: 1;
    min-width: 0;
}

.msg-sidebar {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e2e8f0;
    background: #f8fafc;
    min-height: 0;
}

.msg-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.msg-search-wrap i {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    flex-shrink: 0;
}

.msg-search-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.875rem;
    background: transparent;
    color: #0f172a;
}

.msg-search-wrap input::placeholder { color: #94a3b8; }

.msg-conversation-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.35rem 0;
}

.msg-conv-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f1f5f9;
}

.msg-conv-item:hover { background: #f1f5f9; }
.msg-conv-item.active { background: #fff1f2; border-left: 3px solid var(--iuea-maroon); padding-left: calc(1rem - 3px); }

.msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--iuea-maroon), #a83232);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    text-transform: uppercase;
}

.msg-conv-body { flex: 1; min-width: 0; }

.msg-conv-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.msg-conv-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    flex-shrink: 0;
}

.msg-conv-name-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.msg-conv-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-conv-role {
    font-size: 0.68rem;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-conv-time {
    font-size: 0.7rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.msg-conv-preview {
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.msg-conv-preview.unread { color: #0f172a; font-weight: 600; }

.msg-conv-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--iuea-maroon);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
}

.msg-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    position: relative;
}

.msg-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 3rem 2rem;
    color: #64748b;
    text-align: center;
}

.msg-empty-state i {
    width: 48px;
    height: 48px;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.msg-empty-state h3 {
    font-size: 1.1rem;
    color: #334155;
    margin: 0;
}

.msg-empty-state p {
    font-size: 0.875rem;
    margin: 0;
    max-width: 280px;
}

.msg-thread {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.msg-thread-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fafbfc;
}

.msg-thread-header .msg-avatar { width: 36px; height: 36px; font-size: 0.8rem; }

.msg-thread-meta h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #0f172a;
}

.msg-thread-meta span {
    font-size: 0.75rem;
    color: #64748b;
}

.msg-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.msg-bubble-row {
    display: flex;
    flex-direction: column;
    max-width: 72%;
}

.msg-bubble-row.sent { align-self: flex-end; align-items: flex-end; }
.msg-bubble-row.received { align-self: flex-start; align-items: flex-start; }

.msg-bubble {
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.45;
    word-break: break-word;
}

.msg-bubble-row.sent .msg-bubble {
    background: var(--iuea-maroon);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.msg-bubble-row.received .msg-bubble {
    background: #f1f5f9;
    color: #0f172a;
    border-bottom-left-radius: 4px;
}

.msg-bubble-time {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 0.2rem;
    padding: 0 0.25rem;
}

.msg-compose {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.msg-compose textarea {
    flex: 1;
    resize: none;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.4;
    max-height: 120px;
    outline: none;
    transition: border-color 0.15s;
}

.msg-compose textarea:focus {
    border-color: var(--iuea-maroon);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.08);
}

.msg-send-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: var(--iuea-maroon);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
}

.msg-send-btn:hover { background: #6b0000; }
.msg-send-btn:active { transform: scale(0.96); }
.msg-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.msg-send-btn i { width: 18px; height: 18px; }

.msg-loading,
.msg-list-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

.msg-list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 2.5rem 1.5rem;
}

.msg-list-empty i {
    width: 32px;
    height: 32px;
    color: #cbd5e1;
    margin-bottom: 0.25rem;
}

.msg-list-empty strong {
    color: #475569;
    font-size: 0.9rem;
}

.msg-list-empty span {
    font-size: 0.8rem;
    color: #94a3b8;
}

.msg-thread[hidden],
.msg-empty-state[hidden] {
    display: none !important;
}

.msg-date-divider {
    align-self: center;
    font-size: 0.7rem;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    margin: 0.5rem 0;
}

@media (max-width: 720px) {
    #admin-dashboard .msg-layout-admin,
    #registered-user-dashboard .msg-layout-ru,
    #donor-partner-dashboard .msg-layout-dp {
        grid-template-columns: 1fr;
        max-height: none;
    }
    #admin-dashboard .msg-layout-admin .msg-sidebar,
    #registered-user-dashboard .msg-layout-ru .msg-sidebar,
    #donor-partner-dashboard .msg-layout-dp .msg-sidebar {
        max-height: 240px;
    }
}

/* Mini chat — floating direct message window */
.mini-chat-modal {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2600;
    width: min(380px, calc(100vw - 2rem));
    pointer-events: none;
}

.mini-chat-modal:not([hidden]) {
    pointer-events: auto;
}

.mini-chat-panel {
    display: flex;
    flex-direction: column;
    height: 460px;
    max-height: calc(100vh - 3rem);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    animation: miniChatSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes miniChatSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.mini-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, var(--iuea-maroon), #6b0000);
    color: #fff;
    flex-shrink: 0;
}

.mini-chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.mini-chat-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.mini-chat-header-meta {
    min-width: 0;
}

.mini-chat-header-meta h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-chat-header-meta span {
    font-size: 0.72rem;
    opacity: 0.85;
}

.mini-chat-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.mini-chat-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.mini-chat-close i {
    width: 18px;
    height: 18px;
}

.mini-chat-messages {
    flex: 1;
    min-height: 0;
    padding: 1rem;
    background: #f8fafc;
}

.mini-chat-compose {
    flex-shrink: 0;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

@media (max-width: 480px) {
    .mini-chat-modal {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
    }

    .mini-chat-panel {
        height: min(70vh, 520px);
        border-radius: 16px 16px 0 0;
    }
}

/* =================== ADMIN PLATFORM SETTINGS =================== */
#admin-dashboard .admin-settings-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: -0.25rem -0.25rem 1.5rem;
    padding: 0.25rem 0.25rem 1rem;
    background: linear-gradient(to bottom, var(--dash-bg, #f1f5f9) 75%, transparent);
    backdrop-filter: blur(6px);
}

#admin-dashboard .admin-settings-sticky-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--dash-border);
}

#admin-dashboard .admin-settings-sticky-text h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    color: var(--dash-text-primary);
    font-family: var(--dash-font-heading);
}

#admin-dashboard .admin-settings-sticky-text h3 i {
    width: 22px;
    height: 22px;
    color: var(--iuea-maroon);
}

#admin-dashboard .admin-settings-sticky-text p {
    margin: 0;
    color: var(--dash-text-secondary);
    font-size: 0.95rem;
}

#admin-dashboard .admin-settings-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

#admin-dashboard .admin-settings-dirty-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    font-size: 0.75rem;
    font-weight: 600;
}

#admin-dashboard .admin-settings-dirty-badge i {
    width: 12px;
    height: 12px;
}

#admin-dashboard .btn-settings-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--dash-border);
    background: var(--dash-surface);
    color: var(--dash-text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

#admin-dashboard .btn-settings-secondary:hover:not(:disabled) {
    border-color: #cbd5e1;
    background: #f8fafc;
}

#admin-dashboard .btn-settings-secondary:disabled,
#admin-dashboard #adminSettingsSaveBtn.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

#admin-dashboard #adminSettingsSaveBtn.is-loading i {
    animation: admin-settings-spin 0.8s linear infinite;
}

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

#admin-dashboard .admin-settings-body {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

#admin-dashboard .admin-settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: sticky;
    top: 7.5rem;
}

#admin-dashboard .admin-settings-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--dash-text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

#admin-dashboard .admin-settings-nav-btn i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

#admin-dashboard .admin-settings-nav-btn:hover {
    background: var(--dash-surface);
    color: var(--dash-text-primary);
}

#admin-dashboard .admin-settings-nav-btn.active {
    background: var(--dash-surface);
    color: var(--iuea-maroon);
    border-color: rgba(128, 0, 0, 0.15);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#admin-dashboard .admin-settings-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

#admin-dashboard .admin-settings-section[hidden] {
    display: none !important;
}

#admin-dashboard .admin-settings-skeleton[hidden],
#admin-dashboard .admin-settings-body[hidden],
#admin-dashboard .admin-settings-error[hidden] {
    display: none !important;
}

#admin-dashboard .admin-settings-section.active {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#admin-dashboard .admin-settings-section {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
}

#admin-dashboard .admin-settings-skeleton {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem;
}

#admin-dashboard .admin-settings-skeleton-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#admin-dashboard .admin-settings-skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#admin-dashboard .admin-settings-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

#admin-dashboard .skeleton-line {
    border-radius: 8px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: admin-settings-shimmer 1.2s ease-in-out infinite;
}

#admin-dashboard .skeleton-nav-item { height: 40px; }
#admin-dashboard .skeleton-title { height: 28px; width: 45%; }
#admin-dashboard .skeleton-subtitle { height: 16px; width: 70%; }
#admin-dashboard .skeleton-field { height: 72px; }

@keyframes admin-settings-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

#admin-dashboard .admin-settings-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#admin-dashboard .admin-settings-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--dash-border);
}

#admin-dashboard .admin-settings-panel-icon {
    flex-shrink: 0;
}

#admin-dashboard .admin-settings-panel-head h4 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dash-text-primary);
}

#admin-dashboard .admin-settings-panel-head p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--dash-text-secondary);
    line-height: 1.45;
}

#admin-dashboard .admin-settings-fields {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

#admin-dashboard .admin-settings-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.25rem;
}

#admin-dashboard .admin-form-field--full {
    grid-column: 1 / -1;
}

#admin-dashboard .admin-form-field label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

#admin-dashboard .admin-form-field label i {
    width: 14px;
    height: 14px;
    color: var(--dash-text-secondary);
}

#admin-dashboard .admin-form-field .required {
    color: var(--iuea-maroon);
}

#admin-dashboard .admin-form-field input[type="text"],
#admin-dashboard .admin-form-field input[type="email"],
#admin-dashboard .admin-form-field input[type="tel"],
#admin-dashboard .admin-form-field input[type="url"],
#admin-dashboard .admin-form-field input[type="number"],
#admin-dashboard .admin-form-field textarea,
#admin-dashboard .admin-select-full {
    width: 100%;
    padding: 0.65rem 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#admin-dashboard .admin-form-field textarea {
    resize: vertical;
    min-height: 72px;
}

#admin-dashboard .admin-form-field input:focus,
#admin-dashboard .admin-form-field textarea:focus,
#admin-dashboard .admin-select-full:focus {
    outline: none;
    border-color: rgba(128, 0, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.08);
}

#admin-dashboard .admin-form-field.has-error input,
#admin-dashboard .admin-form-field.has-error textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

#admin-dashboard .field-help {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
}

#admin-dashboard .field-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #e74c3c;
    min-height: 1rem;
}

#admin-dashboard .admin-color-field {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

#admin-dashboard .admin-color-picker {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

#admin-dashboard .admin-color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    flex-shrink: 0;
}

#admin-dashboard .admin-color-hex {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    text-transform: lowercase;
}

#admin-dashboard .admin-branding-preview {
    margin-top: 0.25rem;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

#admin-dashboard .admin-branding-preview--site {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

#admin-dashboard .admin-branding-preview-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    background: #fff;
    border-bottom: 2px solid var(--iuea-maroon);
}

#admin-dashboard .admin-branding-preview-logo-wrap {
    display: flex;
    align-items: center;
    min-width: 36px;
}

#admin-dashboard .admin-branding-preview-logo {
    height: 28px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
}

#admin-dashboard .admin-branding-preview-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f1f5f9;
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
}

#admin-dashboard .admin-branding-preview-nav {
    display: flex;
    gap: 0.65rem;
    flex: 1;
    font-size: 0.72rem;
    color: #64748b;
}

#admin-dashboard .admin-branding-preview-signin {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--iuea-maroon);
}

#admin-dashboard .admin-branding-preview-hero {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem 1.1rem;
}

#admin-dashboard .admin-branding-preview-bar {
    height: 6px;
    background: var(--iuea-maroon);
}

#admin-dashboard .admin-branding-preview-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

#admin-dashboard .admin-branding-preview-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

#admin-dashboard .admin-branding-preview-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

#admin-dashboard .admin-branding-preview-tagline {
    font-size: 0.82rem;
    color: #64748b;
}

#admin-dashboard .admin-branding-preview-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

#admin-dashboard .admin-branding-preview-btn {
    border-radius: 6px;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: default;
    border: 2px solid transparent;
}

#admin-dashboard .admin-branding-preview-btn--primary {
    background: var(--iuea-maroon);
    color: #fff;
}

#admin-dashboard .admin-branding-preview-btn--accent {
    background: transparent;
    color: var(--iuea-gold);
    border-color: var(--iuea-gold);
}

#admin-dashboard .admin-logo-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.65rem;
    padding: 0.65rem 0.85rem;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
    background: #fafbfc;
}

#admin-dashboard .admin-logo-preview img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

#admin-dashboard .admin-logo-preview-label {
    font-size: 0.8rem;
    color: #94a3b8;
}

#admin-dashboard .field-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0.15rem;
    color: #94a3b8;
    cursor: help;
}

#admin-dashboard .field-tooltip i {
    width: 14px;
    height: 14px;
}

#admin-dashboard .field-tooltip::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    width: max-content;
    max-width: 220px;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    background: #1e293b;
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s, visibility 0.15s;
    z-index: 30;
}

#admin-dashboard .field-tooltip:hover::after,
#admin-dashboard .field-tooltip:focus-within::after {
    opacity: 1;
    visibility: visible;
}

#admin-dashboard .field-help-inline {
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.8rem;
}

.maintenance-banner {
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(90deg, #fff7ed, #ffedd5);
    border-bottom: 1px solid #fed7aa !important;
    color: #9a3412;
    font-size: 0.9rem;
}

.maintenance-banner[hidden] {
    display: none !important;
}

.maintenance-banner i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.maintenance-banner strong {
    display: block;
    margin-bottom: 0.15rem;
}

.offline-banner {
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(90deg, #fef2f2, #fee2e2);
    border-bottom: 1px solid #fecaca !important;
    color: #991b1b;
    font-size: 0.9rem;
}

.offline-banner[hidden] {
    display: none !important;
}

.offline-banner i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.offline-banner strong {
    display: block;
    margin-bottom: 0.15rem;
}

.offline-cache-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

.offline-cache-indicator[hidden] {
    display: none !important;
}

body.app-offline #admin-dashboard .admin-table-action-btn:not([data-offline-allowed]),
body.app-offline #adminSettingsSaveBtn,
body.app-offline #adminSettingsResetBtn,
body.app-offline .hero-upload-btn,
body.app-offline .hero-remove-btn,
body.app-offline #createModal .btn-primary {
    opacity: 0.55;
    pointer-events: none;
    cursor: not-allowed;
}

body.app-offline .offline-admin-notice {
    display: flex;
}

.premium-footer .footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.premium-footer .footer-contact a:hover {
    color: var(--iuea-gold);
}

#admin-dashboard .admin-settings-toggles {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

#admin-dashboard .admin-settings-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fafbfc;
    transition: border-color 0.2s, background 0.2s;
}

#admin-dashboard .admin-settings-toggle:hover {
    border-color: #cbd5e1;
    background: #fff;
}

#admin-dashboard .admin-settings-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#admin-dashboard .admin-settings-toggle-ui {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: background 0.2s;
}

#admin-dashboard .admin-settings-toggle-ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s;
}

#admin-dashboard .admin-settings-toggle input:checked + .admin-settings-toggle-ui {
    background: var(--iuea-maroon);
}

#admin-dashboard .admin-settings-toggle input:checked + .admin-settings-toggle-ui::after {
    transform: translateX(18px);
}

#admin-dashboard .admin-settings-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

#admin-dashboard .admin-settings-toggle-text strong {
    font-size: 0.9rem;
    color: #1e293b;
}

#admin-dashboard .admin-settings-toggle-text small {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

#admin-dashboard .admin-settings-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

#admin-dashboard .admin-settings-warning i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

#admin-dashboard .admin-settings-warning strong {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 0.15rem;
}

#admin-dashboard .admin-settings-warning p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #b91c1c;
}

#admin-dashboard .admin-settings-session-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    background: #f8fafc;
}

#admin-dashboard .admin-settings-session-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

#admin-dashboard .admin-settings-session-label {
    color: #64748b;
    font-weight: 500;
}

#admin-dashboard .admin-settings-session-value {
    color: #1e293b;
    font-weight: 600;
    text-align: right;
}

#admin-dashboard .admin-settings-session-active {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #15803d;
}

#admin-dashboard .admin-settings-session-active i {
    width: 8px;
    height: 8px;
    fill: currentColor;
    color: #22c55e;
}

#admin-dashboard .admin-settings-security-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

#admin-dashboard .admin-settings-meta {
    margin: 0;
    font-size: 0.82rem;
    color: #94a3b8;
    text-align: right;
}

@media (max-width: 1100px) {
    #admin-dashboard .admin-settings-body,
    #admin-dashboard .admin-settings-skeleton {
        grid-template-columns: 1fr;
    }

    #admin-dashboard .admin-settings-nav {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
        gap: 0.5rem;
    }

    #admin-dashboard .admin-settings-nav-btn {
        width: auto;
        white-space: nowrap;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    #admin-dashboard .admin-settings-fields-grid,
    #admin-dashboard .admin-settings-skeleton-grid {
        grid-template-columns: 1fr;
    }

    #admin-dashboard .admin-settings-sticky-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    #admin-dashboard .admin-settings-sticky-inner .admin-panel-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    #admin-dashboard .admin-branding-preview-header {
        flex-wrap: wrap;
    }

    #admin-dashboard .admin-branding-preview-nav {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
    }

    #admin-dashboard .admin-branding-preview-body {
        flex-direction: column;
        align-items: flex-start;
    }

    #admin-dashboard .admin-settings-session-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    #admin-dashboard .admin-settings-session-value {
        text-align: left;
    }
}

/* =============================================================
   PUBLIC + DASHBOARD RESPONSIVE POLISH
   Breakpoints: 1200 / 960 / 768 / 600 (320px–1024px+)
   ============================================================= */

/* --- 1200px: large tablet / small desktop --- */
@media (max-width: 1200px) {
    :root {
        --container-inline-padding: 1.5rem;
    }

    h1 { font-size: clamp(1.85rem, 4vw, 2.5rem); }
    h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }

    .content-grid {
        gap: 1.5rem;
    }
}

/* --- 991px: mobile nav drawer (matches .mobile-menu-btn + #navLinks.open) --- */
@media (max-width: 991.98px) {
    #publicHeader nav {
        flex-wrap: wrap;
        position: relative;
    }

    #publicHeader .mobile-header-actions {
        display: flex;
        order: 2;
        margin-left: auto;
    }

    #publicHeader .mobile-search-btn,
    #publicHeader .mobile-menu-btn {
        display: inline-flex;
    }
    
    .public-search-wrap {
        display: none;
    }
    
    .public-search-wrap.show-mobile {
        display: block;
    }

    #publicHeader .nav-actions {
        order: 3;
    }

    #publicHeader .logo {
        order: 1;
    }

    #publicHeader #navLinks.nav-links {
        order: 4;
        flex-basis: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding: 0.75rem max(1.25rem, env(safe-area-inset-right, 0px)) max(1.5rem, env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    #publicHeader #navLinks.nav-links.open {
        display: flex;
        position: fixed;
        top: calc(var(--public-header-height) + env(safe-area-inset-top, 0px));
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    }

    #publicHeader .iuea-navbar-toggler {
        display: flex;
        order: 2;
        margin-left: auto;
    }

    #publicHeader .nav-actions {
        order: 3;
    }

    #publicHeader .logo {
        order: 1;
    }

    #publicHeader #navLinks.nav-links {
        order: 4;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding: 0.75rem max(1.25rem, env(safe-area-inset-right, 0px)) max(1.5rem, env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    #publicHeader #navLinks.navbar-collapse.collapsing {
        transition: none;
        height: auto !important;
    }

    #publicHeader #navLinks.navbar-collapse:not(.show) {
        display: none;
    }

    #publicHeader #navLinks.navbar-collapse.show {
        display: flex;
        position: fixed;
        top: calc(var(--public-header-height) + env(safe-area-inset-top, 0px));
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1001;
        box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    }

    #publicHeader .nav-links a,
    #publicHeader .nav-links .nav-link {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
        min-height: var(--touch-target-min);
        border-radius: var(--radius-md);
    }

    #publicHeader .nav-links a:hover,
    #publicHeader .nav-links a.active-nav,
    #publicHeader .nav-links .nav-link:hover,
    #publicHeader .nav-links .nav-link.active-nav {
        background: rgba(128, 0, 0, 0.06);
    }

    #publicHeader .mobile-only {
        display: flex !important;
    }

    #publicHeader .profile-icon {
        padding: 0.5rem 0.75rem;
        min-height: var(--touch-target-min);
    }

    #publicHeader .profile-icon span {
        max-width: 7rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.nav-open {
        overflow: hidden;
    }

    /* ── Community dropdown: mobile flat layout ── */
    #publicHeader .nav-dropdown {
        flex-direction: column;
        align-items: stretch;
        position: static;
    }

    #publicHeader .nav-dropdown::after {
        display: none;
    }

    #publicHeader .nav-dropdown-trigger {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
        min-height: var(--touch-target-min);
        border-radius: var(--radius-md);
        color: var(--iuea-gray);
    }

    #publicHeader .nav-dropdown-trigger:hover {
        background: rgba(128, 0, 0, 0.06);
        color: var(--iuea-maroon);
    }

    #publicHeader .nav-dropdown-chevron {
        display: none;
    }

    #publicHeader .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: transparent;
        padding: 0;
        min-width: 0;
    }

    #publicHeader .nav-dropdown-item {
        font-size: 0.9rem;
        padding: 0.65rem 1rem 0.65rem 2.2rem;
        border-radius: var(--radius-md);
        margin: 0;
        color: var(--iuea-gray-light);
    }

    #publicHeader .nav-dropdown-item:hover {
        background: rgba(128, 0, 0, 0.06);
        color: var(--iuea-maroon);
    }
    /* ─────────────────────────────────────────── */
}

/* --- 960px: tablet / mobile nav drawer --- */
@media (max-width: 960px) {
    .content-grid.cols-3,
    .content-grid.cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-grid.spotlight-grid {
        margin: 1rem 0;
    }

    :root {
        --hero-block-height: clamp(220px, 38vw, 340px);
    }

    .hero-section,
    .page-hero {
        height: var(--hero-block-height);
        margin: 1rem 0;
    }

    nav {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    #publicHeader .iuea-navbar-inner {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .logo img {
        height: 48px;
    }

    .public-search-wrap {
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .search-container {
        border-radius: var(--radius-lg);
    }

    .page-hero-title {
        font-size: clamp(1.75rem, 5.5vw, 3rem);
    }

    .page-hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }

    .impact-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .alt-bg {
        padding: 2rem 1.5rem;
    }

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

/* --- 768px: phone landscape / compact tablet --- */
@media (max-width: 768px) {
    :root {
        --public-header-height: 64px;
        --container-inline-padding: 1rem;
    }

    h3 { font-size: clamp(1.05rem, 3.5vw, 1.25rem); }

    .page-section > div:first-child h1,
    .page-section > div:first-child p {
        font-size: clamp(1.35rem, 5.5vw, 2rem) !important;
    }

    .page-section > div:first-child p {
        font-size: clamp(0.92rem, 3.2vw, 1.05rem) !important;
    }

    .tab-section {
        padding: 1.75rem 0;
    }

    #endowmentInfo .endowment-info-block {
        grid-template-columns: 1fr;
        max-height: none;
    }

    #endowmentInfo .endowment-info-media {
        width: 100%;
        min-height: 220px;
        max-height: 220px;
        height: 220px;
    }

    #endowmentInfo .endowment-info-body {
        padding: 1.25rem 1.25rem;
        max-height: none;
    }

    :root {
        --hero-block-height: clamp(200px, 48vw, 280px);
    }

    .hero-section,
    .page-hero {
        height: var(--hero-block-height);
        border-radius: var(--radius-md);
    }

    .content-grid.spotlight-grid .modern-card {
        border-radius: var(--radius-md);
    }

    .content-grid.spotlight-grid .card-content {
        padding: 1.25rem 1rem 1rem;
    }

    .content-grid.spotlight-grid .card-content h3,
    .content-grid.spotlight-grid .card-content .card-title {
        font-size: clamp(1.35rem, 5.5vw, 2rem);
    }

    .page-hero-content,
    .hero-content {
        left: 4%;
        right: 4%;
        max-width: none;
        bottom: 8%;
    }

    .hero-actions {
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .btn-primary,
    .btn-secondary {
        min-height: var(--touch-target-min);
        padding: 0.7rem 1.25rem;
        font-size: 0.92rem;
    }

    .innovation-tabs {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .innovation-tab-btn {
        padding: 0.65rem 1.15rem;
        font-size: 0.9rem;
        min-height: var(--touch-target-min);
    }

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

    .detail-modal,
    .detail-modal.show {
        padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px)) max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
        align-items: flex-end;
    }

    #contentCommentModal,
    #contentCommentModal.show,
    #shareModal,
    #shareModal.show {
        align-items: center !important;
        justify-content: center !important;
    }

    .modal-container {
        grid-template-columns: 1fr;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .modal-image {
        min-height: 200px;
        max-height: 34vh;
        height: auto;
    }

    .modal-content {
        padding: 1.5rem 1.25rem;
    }

    .auth-modal-container {
        margin: auto 0 0;
        border-radius: 16px 16px 0 0;
        max-width: 100%;
    }

    #authModal .auth-modal-header {
        padding: 1.25rem 1.25rem 0.35rem;
        padding-right: 2.75rem;
    }

    #authModal .auth-modal-body {
        padding: 0.65rem 1.25rem 0.15rem;
    }

    #authModal .auth-modal-footer {
        padding: 0.75rem 1.25rem 1.25rem;
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
    }

    .close-modal {
        width: var(--touch-target-min);
        height: var(--touch-target-min);
        top: 0.85rem;
        right: 0.85rem;
    }

    .fixed-apply-btn {
        /* Centered floating pill on mobile */
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        bottom: max(1.25rem, env(safe-area-inset-bottom, 0px)) !important;
        width: auto !important;
        max-width: calc(100vw - 3rem) !important;
        border-radius: 999px !important;
        justify-content: center !important;
        padding: 0.8rem 1.75rem !important;
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        min-height: 48px !important;
        white-space: nowrap !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22) !important;
    }

    .toast-container {
        left: max(1rem, env(safe-area-inset-left, 0px));
        right: max(1rem, env(safe-area-inset-right, 0px));
        bottom: max(5.5rem, calc(1rem + env(safe-area-inset-bottom, 0px)));
    }



    .premium-footer {
        display: none !important;
    }

    .premium-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
        margin-bottom: 2.5rem;
    }

    .premium-footer .footer-brand {
        grid-column: 1 / -1;
    }

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

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .search-clear-btn {
        width: var(--touch-target-min);
        height: var(--touch-target-min);
    }

    .search-result-item {
        min-height: var(--touch-target-min);
    }

    .see-more-link {
        min-height: var(--touch-target-min);
        padding: 0.65rem 1.25rem;
    }

    .offline-banner,
    .maintenance-banner {
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }

    /* iOS: 16px inputs prevent focus zoom */
    input,
    select,
    textarea,
    .search-container input,
    .form-group input,
    .form-group textarea,
    .form-group select,
    .post-form input,
    .post-form textarea,
    .create-modal-fields input,
    .create-modal-fields textarea,
    .create-modal-fields select {
        font-size: 16px;
    }

    .admin-table-modern {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #admin-dashboard .admin-settings-nav {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
        gap: 0.5rem;
        padding-bottom: 0.35rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(128, 0, 0, 0.25) transparent;
    }

    #admin-dashboard .admin-settings-nav::-webkit-scrollbar {
        height: 4px;
    }

    #admin-dashboard .admin-settings-nav::-webkit-scrollbar-thumb {
        background: rgba(128, 0, 0, 0.25);
        border-radius: 999px;
    }

    #admin-dashboard .admin-settings-nav-btn {
        scroll-snap-align: start;
    }
}

/* --- 600px: narrow phone --- */
@media (max-width: 600px) {
    :root {
        --container-inline-padding: 0.875rem;
    }

    .content-grid:not(.row),
    .content-grid:not(.row).cols-2,
    .content-grid:not(.row).cols-3,
    .content-grid:not(.row).cols-4 {
        gap: 1.25rem;
    }

    .content-grid:not(.row).cols-2,
    .content-grid:not(.row).cols-3,
    .content-grid:not(.row).cols-4 {
        grid-template-columns: 1fr;
    }

    .card-content {
        padding: 1rem;
    }

    .card-media {
        height: 190px;
    }

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

    .card-detail-actions {
        grid-template-columns: 1fr;
    }

    .card-detail-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .card-detail-share-actions {
        justify-content: flex-start;
    }

    .create-modal-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .create-modal-footer .btn-primary,
    .create-modal-footer .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .profile-icon span {
        display: none;
    }

    .profile-icon {
        width: var(--touch-target-min);
        height: var(--touch-target-min);
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .fixed-apply-btn {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        bottom: max(1rem, env(safe-area-inset-bottom, 0px)) !important;
        max-width: calc(100vw - 2rem) !important;
        border-radius: 999px !important;
        padding: 0.75rem 1.5rem !important;
    }

    .toast-container {
        bottom: max(5rem, calc(0.875rem + env(safe-area-inset-bottom, 0px)));
    }
}

/* Keep #endowmentInfo two-column on tablet/desktop (768px+) */
@media (min-width: 768px) {
    #endowmentInfo .endowment-info-block {
        display: grid;
        grid-template-columns: 300px minmax(0, 1fr);
        align-items: start;
        max-height: 380px;
    }

    #endowmentInfo .endowment-info-media {
        width: 300px;
        min-height: 300px;
        max-height: 300px;
        height: 300px;
    }

    #endowmentInfo .endowment-info-body {
        max-height: 380px;
        overflow: hidden;
    }
}

/* =============================================================
   BOOTSTRAP 5 — dashboard integration (admin + role panels)
   Additive utilities in index.html; scoped overrides below.
   ============================================================= */

.admin-page-wrapper .admin-layout.container-fluid {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.admin-page-wrapper .admin-layout > .row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    min-height: calc(100vh - var(--dash-topbar-height));
}

.admin-page-wrapper .admin-sidebar.col-auto {
    flex: 0 0 var(--dash-sidebar-width);
    max-width: var(--dash-sidebar-width);
}

.ru-dashboard .admin-sidebar.col-auto {
    flex: 0 0 var(--dash-sidebar-width-role);
    max-width: var(--dash-sidebar-width-role);
}

.admin-page-wrapper .admin-main.col {
    flex: 1 1 0;
    min-width: 0;
}

/* Sidebar nav-pills — preserve IUEA dash look */
.admin-page-wrapper .admin-nav.nav-pills {
    gap: 0.25rem;
}

.admin-page-wrapper .admin-nav.nav-pills .nav-link.admin-nav-btn {
    border-radius: var(--dash-radius-nav);
    color: var(--dash-text-body);
    padding: 0.6rem 0.75rem;
}

.admin-page-wrapper .admin-nav.nav-pills .nav-link.admin-nav-btn.rdash-nav-btn {
    padding: 0.65rem 0.85rem;
    border-radius: var(--dash-radius-sm);
}

.admin-page-wrapper .admin-nav.nav-pills .nav-link.admin-nav-btn:hover,
.admin-page-wrapper .admin-nav.nav-pills .nav-link.admin-nav-btn:focus {
    background: #f8fafc;
    color: var(--dash-text-primary);
}

.admin-page-wrapper .admin-nav.nav-pills .nav-link.admin-nav-btn.active {
    background: var(--dash-accent-bg);
    color: var(--dash-accent);
}

.admin-page-wrapper .admin-nav.nav-pills .nav-link.admin-nav-btn.active i {
    color: var(--dash-accent);
}

.admin-page-wrapper .admin-nav.nav-pills .nav-link.admin-nav-btn--danger:hover,
.admin-page-wrapper .admin-nav.nav-pills .nav-link.admin-nav-btn--danger:focus {
    background: #fef2f2;
    color: #b91c1c;
}

/* Stat cards + Bootstrap card */
.admin-page-wrapper .admin-stat-card-pro.card {
    border-color: var(--dash-border);
    box-shadow: var(--dash-shadow-panel);
}

.admin-page-wrapper .admin-stat-card-pro.card.card-body {
    padding: 1.5rem;
}

.admin-page-wrapper .admin-stat-card-pro.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--dash-shadow-hover);
    border-color: #cbd5e1;
}

.admin-page-wrapper .admin-stat-card-pro.warning.card {
    background: #fef2f2;
    border-color: #fecaca;
}

/* Content panels as Bootstrap cards */
.admin-page-wrapper .admin-panel.card {
    border-color: var(--dash-border);
    box-shadow: var(--dash-shadow-panel);
    border-radius: var(--dash-radius);
}

.admin-page-wrapper .admin-panel.card.p-0 {
    overflow: hidden;
}

/* Dashboard grid with Bootstrap row */
.admin-page-wrapper .admin-dashboard-grid.row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .admin-page-wrapper .admin-dashboard-grid.row > .col-lg-8,
    .admin-page-wrapper .admin-dashboard-grid.row > .col-lg-4 {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Tables — static HTML has .table; JS-injected tables use .admin-table-modern only */
.admin-page-wrapper .table.admin-table-modern {
    margin-bottom: 0;
    --bs-table-hover-bg: #f8fafc;
    --bs-table-striped-bg: #fafbfc;
}

.admin-page-wrapper .admin-table-modern:not(.table) {
    width: 100%;
    border-collapse: collapse;
}

.admin-page-wrapper .admin-table-modern:not(.table) tbody tr:nth-of-type(odd) > * {
    background-color: #fafbfc;
}

.admin-page-wrapper .admin-table-modern:not(.table) tbody tr:hover > * {
    background-color: #f8fafc;
}

/* Badges — merge Bootstrap with existing status tokens */
.admin-page-wrapper .admin-role-badge.badge {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: capitalize;
    border-radius: 4px;
    padding: 0.125rem 0.375rem;
}

.admin-page-wrapper .nav-badge.badge {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 1.1rem;
    text-align: center;
}

.admin-page-wrapper .nav-badge-unread.badge {
    background-color: var(--dash-accent) !important;
}

.admin-page-wrapper .status-badge.badge {
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-page-wrapper .status-badge.badge.bg-success,
.admin-page-wrapper .status-badge.active:not(.badge) {
    background: #d1fae5 !important;
    color: #059669 !important;
}

.admin-page-wrapper .status-badge.pending {
    background: #fefce8;
    color: #ca8a04;
}

.admin-page-wrapper .status-badge.approved {
    background: #d1fae5;
    color: #059669;
}

.admin-page-wrapper .status-badge.rejected {
    background: #fee2e2;
    color: #dc2626;
}

.admin-page-wrapper .status-badge.inactive {
    background: #f1f5f9;
    color: #64748b;
}

/* Notification empty states */
.admin-page-wrapper .notify-dropdown-empty.alert {
    text-align: center;
    padding: 1.5rem 1rem;
}

.admin-page-wrapper .notify-dropdown-empty.alert i {
    display: block;
    margin: 0 auto 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--dash-text-muted);
}

.admin-page-wrapper .notify-dropdown-empty.alert p {
    margin: 0;
    color: var(--dash-text-secondary);
    font-size: 0.875rem;
}

.admin-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dash-text-primary);
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
    border-radius: var(--dash-radius);
    transition: background-color var(--transition-speed);
}
.admin-mobile-menu-toggle:hover {
    background-color: var(--dash-bg-subtle);
}

@media (max-width: 991px) {
    .admin-mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .admin-topbar-left {
        display: flex;
        align-items: center;
    }

    /* Strip transform from admin dashboards — transform creates a stacking context
       that causes position:fixed children (like the off-canvas sidebar) to scroll
       with the page instead of staying fixed to the viewport. */
    .admin-page-wrapper.active {
        transform: none !important;
        animation: fadeInOpacity 0.3s ease forwards !important;
    }

    .admin-page-wrapper .admin-layout > .row {
        flex-wrap: wrap;
    }

    /* Off-canvas sidebar for admin dashboard */
    .admin-page-wrapper .admin-sidebar,
    .admin-page-wrapper .admin-sidebar.col-auto {
        position: fixed;
        top: var(--dash-topbar-height);
        left: -300px;
        width: 280px;
        height: calc(100vh - var(--dash-topbar-height));
        z-index: 1040;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: var(--iuea-maroon) !important;
        border-right: none;
        border-bottom: none;
        box-shadow: 4px 0 24px rgba(0,0,0,0.3);
        flex: none;
        max-width: none;
        overflow-y: auto;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    
    .admin-page-wrapper .admin-sidebar.open {
        left: 0;
    }
    
    /* Make text and icons white on the maroon background */
    .admin-page-wrapper .admin-sidebar .admin-sidebar-label {
        color: rgba(255, 255, 255, 0.7) !important;
    }
    
    .admin-page-wrapper .admin-sidebar .admin-nav-btn {
        color: #fff !important;
    }
    
    .admin-page-wrapper .admin-sidebar .admin-nav-btn i {
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .admin-page-wrapper .admin-sidebar .admin-nav-btn:hover,
    .admin-page-wrapper .admin-sidebar .admin-nav-btn:focus,
    .admin-page-wrapper .admin-sidebar .admin-nav-btn.active {
        background-color: rgba(255, 255, 255, 0.15) !important;
        color: #fff !important;
    }
    
    /* Ensure content adjusts underneath */
    .admin-page-wrapper .admin-main.col {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 100%;
        max-width: 100%;
        flex: 1 0 100%;
    }
}

/* --------------------------------------------------------------------------
   Bootstrap 5 overrides — IUEA brand
   -------------------------------------------------------------------------- */
.btn.btn-primary,
.btn-primary {
    --bs-btn-bg: var(--iuea-maroon);
    --bs-btn-border-color: var(--iuea-maroon);
    --bs-btn-hover-bg: var(--iuea-maroon-dark);
    --bs-btn-hover-border-color: var(--iuea-maroon-dark);
    --bs-btn-active-bg: var(--iuea-maroon-dark);
    --bs-btn-active-border-color: var(--iuea-maroon-dark);
    --bs-btn-disabled-bg: var(--iuea-maroon);
    --bs-btn-disabled-border-color: var(--iuea-maroon);
    background-color: var(--iuea-maroon);
    border-color: var(--iuea-maroon);
    color: #fff;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active,
.btn.btn-primary.active,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--iuea-maroon-dark);
    border-color: var(--iuea-maroon-dark);
    color: #fff;
}

.btn.btn-secondary,
.btn-secondary {
    --bs-btn-bg: rgba(255, 255, 255, 0.2);
    --bs-btn-border-color: rgba(255, 255, 255, 0.3);
    --bs-btn-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--iuea-maroon);
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--iuea-gray);
    font-size: 0.9rem;
}

/* Search wrappers — keep pill layout, suppress Bootstrap input chrome */
.search-container .form-control,
.admin-search-wrap .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.search-container .form-control:focus,
.admin-search-wrap .form-control:focus {
    border: none;
    box-shadow: none;
    background: transparent;
}

/* Admin settings — Bootstrap + existing admin-form-field */
#admin-dashboard .admin-form-field .form-control,
#admin-dashboard .admin-form-field .form-select {
    font-size: 0.9rem;
}

#admin-dashboard .admin-form-field .form-label {
    margin-bottom: 0.35rem;
}

/* Modal / public forms — Bootstrap spacing inside legacy wrappers */
.form-group .form-label {
    display: block;
    margin-bottom: 0.5rem;
}

.create-modal-fields .form-group.mb-3 {
    margin-bottom: 1rem;
}

.post-form textarea.form-control {
    resize: vertical;
    min-height: 2.75rem;
}

.comment-reply-form .form-control {
    margin-bottom: 0.5rem;
}

.btn-outline-secondary {
    --bs-btn-color: var(--iuea-gray);
    --bs-btn-border-color: #dee2e6;
    --bs-btn-hover-bg: #f8f9fa;
    --bs-btn-hover-border-color: #dee2e6;
    --bs-btn-hover-color: var(--iuea-gray);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS OVERRIDES
   ========================================================================== */
@media (max-width: 992px) {
    /* Typography & Hero */
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.5rem !important; }
    .page-hero-title { font-size: 2.2rem !important; }
    .page-hero, .hero-section { height: 320px !important; }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    .hero-actions button {
        width: 100%;
        justify-content: center;
    }

    /* Layout Grids */
    .content-grid:not(.row):not(.spotlight-grid).cols-3,
    .content-grid:not(.row):not(.spotlight-grid).cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    
    .tab-section {
        padding: 1.5rem 0 !important;
    }
}

@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 1.75rem !important; }
    .page-hero-title { font-size: 1.8rem !important; }

    /* Layout Grids (Stacking) */
    .content-grid:not(.row):not(.spotlight-grid).cols-2,
    .content-grid:not(.row):not(.spotlight-grid).cols-3,
    .content-grid:not(.row):not(.spotlight-grid).cols-4,
    .content-grid.spotlight-grid {
        grid-template-columns: 1fr !important;
    }

    .news-all-page .content-grid.row.cols-3 > * {
        width: 100% !important;
    }

    /* Post Form adjustments */
    .post-form-main-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    .post-image-upload {
        width: 100% !important;
        flex: none !important;
    }
    .post-upload-zone {
        width: 100% !important;
        height: auto !important;
        padding: 1rem;
    }
    
    .search-container {
        max-width: 100%;
    }
}

/* ==========================================================================
   ROBUST MOBILE NAVIGATION OVERRIDE
   ========================================================================== */
@media (max-width: 992px) {
    #publicHeader .nav-actions {
        display: none !important;
    }
    #publicHeader .mobile-menu-btn {
        display: flex !important;
        margin-left: auto !important;
    }
    #publicHeader .nav-links {
        display: none !important;
    }
    #publicHeader .nav-links.open {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: var(--public-header-height) !important;
        left: 0 !important;
        right: 0 !important;
        height: calc(100vh - var(--public-header-height)) !important;
        background: #ffffff !important;
        padding: 1rem 1.5rem !important;
        overflow-y: auto !important;
        z-index: 10000 !important;
        gap: 0.25rem !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    }
    #publicHeader .nav-links a {
        display: flex !important;
        padding: 0.85rem 1rem !important;
        width: 100% !important;
        border-radius: 8px !important;
        font-size: 1.05rem !important;
        font-weight: 600 !important;
        border: none !important;
        color: var(--iuea-gray) !important;
        background: transparent !important;
        align-items: center !important;
        gap: 0.75rem !important;
        text-decoration: none !important;
    }
    #publicHeader .nav-links a:hover,
    #publicHeader .nav-links a.active-nav {
        background: #f1f5f9 !important;
        color: var(--iuea-maroon) !important;
    }
    #publicHeader .mobile-only {
        display: flex !important;
        margin-top: 1rem !important;
        border-top: 1px solid #e2e8f0 !important;
        padding-top: 1rem !important;
    }
}

/* ==========================================================================
   USER DASHBOARD MOBILE OVERRIDES
   ========================================================================== */
.ru-mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .ru-mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        justify-content: space-around;
        padding: 0.5rem 0.25rem calc(0.5rem + env(safe-area-inset-bottom, 0px)) 0.25rem;
    }

    .ru-mob-nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        background: none;
        border: none;
        color: #64748b;
        font-size: 0.65rem;
        font-weight: 500;
        padding: 0.25rem;
        flex: 1;
        cursor: pointer;
        position: relative;
    }

    .ru-mob-nav-btn i {
        width: 20px;
        height: 20px;
        margin-bottom: 0.15rem;
    }

    .ru-mob-nav-btn.active {
        color: var(--iuea-maroon);
    }

    .ru-mob-nav-btn.active i {
        stroke-width: 2.5;
    }

    .ru-mob-nav-badge {
        position: absolute;
        top: 0;
        right: calc(50% - 15px);
        background: #ef4444;
        color: white;
        font-size: 0.6rem;
        font-weight: bold;
        min-width: 14px;
        height: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        padding: 0 3px;
    }

    .ru-dashboard.active {
        transform: none !important;
        animation: fadeInOpacity 0.3s ease forwards !important;
    }

    .ru-dashboard .admin-mobile-menu-toggle {
        display: none !important;
    }

    .ru-dashboard .admin-main {
        padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    .ru-dashboard .admin-topbar {
        position: sticky;
        top: 0;
    }

    /* Messaging on mobile */
    .ru-dashboard .msg-layout {
        display: flex;
        flex-direction: column;
        height: calc(100vh - var(--dash-topbar-height) - 4rem - env(safe-area-inset-bottom, 0px) - 2rem);
        max-height: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin: -1.25rem;
        width: calc(100% + 2.5rem);
    }
    
    .ru-dashboard .msg-sidebar {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        flex-shrink: 0;
        max-height: 30vh !important;
    }

    .ru-dashboard .msg-main {
        flex: 1;
        min-height: 0;
    }

    .ru-dashboard .msg-empty-state {
        padding: 2rem 1rem;
    }
}

@keyframes fadeInOpacity {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 767px) {
    footer {
        display: none !important;
    }
}

/* =================== PROFILE DROPDOWN =================== */
.global-profile-dropdown {
    position: fixed;
    z-index: 1060;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    width: 270px;
    display: none;
    overflow: hidden;
    font-family: var(--dash-font-body, 'Inter', sans-serif);
    animation: fadeIn 0.2s ease;
}

.pd-header {
    padding: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
}

.pd-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--iuea-maroon);
    flex-shrink: 0;
}
.pd-avatar i { width: 24px; height: 24px; }

.pd-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pd-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-role {
    font-size: 0.7rem;
    background: rgba(128,0,0,0.1);
    color: var(--iuea-maroon);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
    margin-top: 0.2rem;
}

.pd-links {
    padding: 0.5rem;
}

.pd-links button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.pd-links button:hover {
    background: #fef2f2;
}

.pd-links button i {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   CONFERENCE HUB PAGE
   ========================================================================== */

/* ── Hero Banner ─────────────────────────────────────────── */
.conf-hero-banner {
    background: linear-gradient(135deg, var(--iuea-maroon) 0%, var(--iuea-maroon-dark) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0.5rem 0 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.conf-hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.conf-hero-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem 2.5rem;
}

.conf-hero-left {
    flex: 1;
    min-width: 0;
}

.conf-hero-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.15);
}

.conf-hero-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.conf-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.75rem;
    max-width: 520px;
    line-height: 1.65;
}

.conf-hero-btns {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.conf-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--iuea-gold);
    color: var(--iuea-maroon-dark);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-decoration: none;
}

.conf-btn-primary i { width: 16px; height: 16px; }

.conf-btn-primary:hover {
    background: #b58c42;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.conf-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all var(--transition-speed);
    backdrop-filter: blur(4px);
}

.conf-btn-ghost i { width: 16px; height: 16px; }

.conf-btn-ghost:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* ── Hero Stats ─────────────────────────────────────────── */
.conf-hero-stats {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.conf-stat-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    text-align: center;
    min-width: 100px;
    backdrop-filter: blur(4px);
    transition: background var(--transition-speed);
}

.conf-stat-box:hover {
    background: rgba(255,255,255,0.14);
}

.conf-stat-box i {
    width: 22px;
    height: 22px;
    color: var(--iuea-gold);
    display: block;
    margin: 0 auto 0.5rem;
}

.conf-stat-num {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    font-family: var(--font-heading);
}

.conf-stat-lbl {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
    margin-top: 0.35rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Featured Conference Card ─────────────────────────── */
.conf-featured-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(128,0,0,0.08);
    overflow: hidden;
    display: flex;
    transition: box-shadow var(--transition-speed);
}

.conf-featured-card:hover {
    box-shadow: var(--shadow-lg);
}

.conf-featured-accent {
    width: 6px;
    background: linear-gradient(180deg, var(--iuea-maroon) 0%, var(--iuea-gold) 100%);
    flex-shrink: 0;
}

.conf-featured-body {
    flex: 1;
    padding: 2rem;
    min-width: 0;
}

.conf-featured-meta-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.conf-badge-next {
    background: rgba(128,0,0,0.08);
    color: var(--iuea-maroon);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(128,0,0,0.15);
}

.conf-badge-status {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}

.conf-badge-status.open {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    border: 1px solid rgba(5,150,105,0.2);
}

.conf-badge-status.closed {
    background: rgba(100,116,139,0.08);
    color: var(--iuea-gray-light);
    border: 1px solid rgba(100,116,139,0.15);
}

.conf-featured-body h3 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--iuea-maroon);
    margin-bottom: 0.65rem;
    line-height: 1.3;
}

.conf-featured-body p {
    color: var(--iuea-gray-light);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.conf-meta-pills {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.conf-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--iuea-surface);
    color: var(--iuea-gray);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.06);
}

.conf-meta-pill i {
    width: 14px;
    height: 14px;
    color: var(--iuea-maroon);
}

.conf-featured-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.conf-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--iuea-maroon);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.6rem 1.35rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.conf-visit-btn:hover {
    background: var(--iuea-maroon-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.conf-visit-btn i { width: 15px; height: 15px; }

/* ── Timer ─────────────────────────────────────────── */
.conf-timer-panel {
    background: linear-gradient(135deg, var(--iuea-maroon) 0%, var(--iuea-maroon-dark) 100%);
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    min-width: 240px;
    flex-shrink: 0;
}

.conf-timer-lbl {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

.conf-timer-boxes {
    display: flex;
    gap: 0.5rem;
}

.conf-timer-box {
    background: rgba(0,0,0,0.25);
    border-radius: var(--radius-md);
    padding: 0.85rem 0.65rem;
    text-align: center;
    min-width: 55px;
    border: 1px solid rgba(255,255,255,0.08);
}

.conf-timer-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--iuea-gold);
    line-height: 1;
    font-family: var(--font-heading);
}

.conf-timer-unit {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-top: 0.3rem;
    letter-spacing: 0.5px;
}

/* ── Upcoming Grid ───────────────────────────────── */
.conf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.conf-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}

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

.conf-card-top {
    height: 5px;
    background: linear-gradient(90deg, var(--iuea-maroon), var(--iuea-gold), var(--iuea-maroon));
}

.conf-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.conf-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.conf-year-chip {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--iuea-maroon);
    background: rgba(128,0,0,0.07);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(128,0,0,0.12);
}

.conf-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--iuea-gray);
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.conf-card-body p {
    font-size: 0.88rem;
    color: var(--iuea-gray-light);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.conf-card-meta {
    font-size: 0.82rem;
    color: var(--iuea-gray-light);
    margin-bottom: 1.1rem;
}

.conf-card-meta div {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.conf-card-meta i {
    width: 13px;
    height: 13px;
    color: var(--iuea-maroon);
    flex-shrink: 0;
}

.conf-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--iuea-maroon);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.55rem 1.1rem;
    border: 1.5px solid var(--iuea-maroon);
    border-radius: var(--radius-sm);
    transition: all var(--transition-speed);
    align-self: flex-start;
}

.conf-card-link:hover {
    background: var(--iuea-maroon);
    color: #ffffff;
}

.conf-card-link i { width: 13px; height: 13px; }

/* ── Timeline ─────────────────────────────────────── */
.conf-timeline {
    position: relative;
    padding-left: 2.5rem;
}

.conf-timeline::before {
    content: '';
    position: absolute;
    left: 0.55rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(180deg, var(--iuea-maroon), rgba(128,0,0,0.15));
    border-radius: 2px;
}

.conf-tl-item {
    position: relative;
    margin-bottom: 2rem;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: box-shadow var(--transition-speed), transform var(--transition-speed);
}

.conf-tl-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.conf-tl-item::before {
    content: '';
    position: absolute;
    left: -2.1rem;
    top: 1.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--iuea-maroon);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px var(--iuea-maroon);
}

.conf-tl-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
}

.conf-tl-year {
    background: var(--iuea-maroon);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.conf-tl-date {
    font-size: 0.82rem;
    color: var(--iuea-gray-light);
    font-weight: 500;
}

.conf-tl-item h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--iuea-gray);
    margin-bottom: 0.5rem;
}

.conf-tl-item p {
    font-size: 0.88rem;
    color: var(--iuea-gray-light);
    line-height: 1.55;
    margin-bottom: 0.85rem;
}

.conf-tl-item a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--iuea-maroon);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.conf-tl-item a:hover {
    color: var(--iuea-maroon-dark);
    text-decoration: underline;
}

.conf-tl-item a i { width: 13px; height: 13px; }

/* ── Empty / No-data states ──────────────────────── */
.conf-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--iuea-gray-light);
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(0,0,0,0.1);
}

.conf-empty i {
    width: 40px;
    height: 40px;
    color: rgba(128,0,0,0.2);
    display: block;
    margin: 0 auto 0.75rem;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
    .conf-hero-inner {
        flex-direction: column;
        padding: 2rem 1.5rem;
    }

    .conf-hero-stats {
        width: 100%;
        justify-content: center;
    }

    .conf-hero-title {
        font-size: 1.75rem;
    }

    .conf-featured-card {
        flex-direction: column;
    }

    .conf-timer-panel {
        min-width: unset;
        width: 100%;
        padding: 1.5rem;
    }

    .conf-timer-boxes {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .conf-hero-stats {
        gap: 0.6rem;
    }

    .conf-stat-box {
        padding: 1rem;
        min-width: 80px;
    }

    .conf-stat-num {
        font-size: 1.4rem;
    }
}

edia (max-width: 768px) {
    .conference-featured-card {
        flex-direction: column;
    }
    
    .cfc-timer-side {
        padding: 2rem;
    }
    
    .conference-hero h1 {
        font-size: 2.5rem;
    }
    
    .conference-hero-actions {
        flex-direction: column;
    }
    
    .conference-featured-wrapper {
        margin-top: -3rem;
    }
}

/* ==========================================================================
   SPORTS PAGE STYLES
   ========================================================================== */

/* ==========================================================================
   PREMIUM SPORTS PAGE STYLES
   ========================================================================== */

/* Main Container & Base */
.sports-section {
    max-width: 1300px;
    margin: 0 auto;
}

.sports-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.sports-section-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: var(--iuea-text-dark);
}

.sports-live-dot {
    width: 12px;
    height: 12px;
    background: #ff3b30;
    border-radius: 50%;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

/* Cinematic Hero Banner */
.sports-hero-premium {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.sports-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.sports-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sports-hero-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, var(--iuea-body-bg) 0%, rgba(74, 0, 10, 0.7) 50%, rgba(26, 0, 4, 0.8) 100%);
    mix-blend-mode: multiply;
}

.sports-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.sports-hero-badge-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--iuea-gold);
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.sports-hero-headline {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #ffffff, #dcdcdc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.sports-hero-sub-premium {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.sports-hero-action-bar {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
}

.sports-hero-action-bar button {
    background: transparent;
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.sports-hero-action-bar button:hover {
    background: rgba(255,255,255,0.15);
    color: var(--iuea-gold);
}

/* Match Center Broadcast Style */
.match-center-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.match-card {
    background: #111;
    border-radius: 16px;
    padding: 2rem;
    color: white;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--iuea-maroon);
}

.match-card.upcoming-fixture::before {
    background: var(--iuea-gold);
}

.match-header {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--iuea-gray-light);
    margin-bottom: 2rem;
    text-align: center;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 30%;
}

.team-logo {
    width: 70px;
    height: 70px;
    background: var(--iuea-maroon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.team-logo i {
    width: 32px;
    height: 32px;
    color: white;
}

.team-name {
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

.match-score {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    display: flex;
    gap: 1rem;
}

.score-win { color: var(--iuea-gold); }
.score-lose { color: #888; }

.match-vs {
    font-size: 2rem;
    font-weight: 800;
    color: #555;
    font-style: italic;
}

.match-footer {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #333;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Bento Box Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-tall {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bento-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
    transition: background 0.4s ease;
}

.bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    color: white;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.bento-icon {
    color: var(--iuea-gold);
    width: 32px;
    height: 32px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.bento-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.bento-content p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Hover States */
.bento-item:hover .bento-bg {
    transform: scale(1.05);
}

.bento-item:hover .bento-overlay {
    background: linear-gradient(to top, rgba(74, 0, 10, 0.9) 0%, rgba(74, 0, 10, 0.4) 60%, rgba(0,0,0,0.1) 100%);
}

.bento-item:hover .bento-content {
    transform: translateY(0);
}

.bento-item:hover .bento-content p {
    opacity: 1;
}

/* Athlete Spotlight Glassmorphism */
.athlete-spotlight-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
}

.athlete-image {
    width: 60%;
    height: 500px;
}

.athlete-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.athlete-glass-card {
    position: absolute;
    right: 3rem;
    width: 45%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    color: white;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.spotlight-badge {
    display: inline-block;
    background: var(--iuea-gold);
    color: var(--iuea-maroon);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.athlete-glass-card h3 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
    letter-spacing: -1px;
}

.athlete-glass-card h4 {
    font-size: 1.1rem;
    color: var(--iuea-gold);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.athlete-glass-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
}

.athlete-stats {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
}

.a-stat {
    display: flex;
    flex-direction: column;
}

.a-stat strong {
    font-size: 1.8rem;
    font-weight: 800;
}

.a-stat span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1100px) {
    .match-center-board {
        grid-template-columns: 1fr;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-large {
        grid-column: span 2;
    }
    
    .bento-wide {
        grid-column: span 2;
    }
    
    .athlete-glass-card {
        right: 1.5rem;
        width: 55%;
    }
}

@media (max-width: 768px) {
    .sports-hero-headline {
        font-size: 3.5rem;
    }
    
    .sports-hero-action-bar {
        width: 90%;
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .sports-hero-action-bar button {
        white-space: nowrap;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }
    
    .bento-large, .bento-tall, .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .athlete-spotlight-wrapper {
        flex-direction: column;
        background: transparent;
    }
    
    .athlete-image {
        width: 100%;
        height: 300px;
        border-radius: 20px;
    }
    
    .athlete-glass-card {
        position: relative;
        right: 0;
        width: 100%;
        margin-top: -2rem;
        backdrop-filter: blur(30px);
        background: rgba(42, 0, 6, 0.85); /* fallback */
    }
}

/* ====== EDIT USER MODAL ====== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.15s ease;
}

.modal-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(135deg, #800000 0%, #a62121 100%);
}

.modal-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
}

.modal-card-title-wrap h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.modal-card-title-wrap i {
    width: 20px;
    height: 20px;
    color: #fff;
}

.modal-close-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.15s;
}

.modal-close-btn:hover { background: rgba(255,255,255,0.3); }
.modal-close-btn i { width: 16px; height: 16px; }

.modal-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: #fafafa;
}

/* Avatar row inside modal */
.edit-user-avatar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.25rem;
}

.edit-user-big-avatar {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
    font-size: 1.3rem !important;
    flex-shrink: 0;
}

.edit-user-modal-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
}

.edit-user-modal-email {
    font-size: 0.82rem;
    color: #64748b;
}

/* Form fields */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
}

.form-optional {
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.78rem;
}

.admin-input {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    outline: none;
}

.admin-input:focus {
    border-color: #800000;
    box-shadow: 0 0 0 3px rgba(128,0,0,0.08);
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrap .admin-input {
    padding-right: 2.8rem;
}

.toggle-pass-btn {
    position: absolute;
    right: 0.6rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    padding: 0.2rem;
    transition: color 0.15s;
}

.toggle-pass-btn:hover { color: #800000; }
.toggle-pass-btn i { width: 18px; height: 18px; }

/* Error banner */
.edit-user-error {
    padding: 0.6rem 0.9rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Cancel button */
.btn-outline {
    padding: 0.55rem 1.2rem;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #374151;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.btn-outline:hover {
    border-color: #800000;
    color: #800000;
    background: #fff5f5;
}
