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

:root {
    color-scheme: dark;
    --bg: #08111e;
    --bg-soft: #0c1728;
    --surface: linear-gradient(180deg, rgba(15, 26, 45, 0.88) 0%, rgba(9, 18, 34, 0.92) 100%);
    --surface-border: rgba(148, 163, 184, 0.18);
    --text: #f7fbff;
    --muted: #bccbdd;
    --nav-bg: rgba(6, 13, 24, 0.72);
    --accent: #62d6ff;
    --accent-alt: #3b82f6;
    --btn-bg: linear-gradient(135deg, #00c2ff 0%, #2563eb 54%, #1d4ed8 100%);
    --btn-text: #ffffff;
    --input-bg: rgba(255, 255, 255, 0.08);
    --input-border: rgba(255, 255, 255, 0.15);
    --hero-overlay: rgba(3, 9, 20, 0.56);
    --hero-shadow: rgba(2, 8, 23, 0.42);
    --text-inverse: #0f172a;
    --surface-shadow:
        0 26px 56px rgba(1, 6, 17, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --surface-shadow-hover:
        0 34px 70px rgba(1, 6, 17, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --body-before:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 26%),
        radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.18), transparent 24%),
        linear-gradient(135deg, #050b16 0%, #09111f 35%, #0b1730 72%, #061021 100%);
}

[data-theme='light'] {
    color-scheme: light;
    --bg: #edf4fb;
    --bg-soft: rgba(255, 255, 255, 0.96);
    --surface: rgba(255, 255, 255, 0.9);
    --surface-border: rgba(15, 23, 42, 0.09);
    --text: #10213a;
    --muted: #5b7188;
    --nav-bg: rgba(255, 255, 255, 0.82);
    --accent: #2563eb;
    --accent-alt: #0ea5e9;
    --btn-bg: linear-gradient(135deg, #10213a 0%, #2563eb 60%, #0ea5e9 100%);
    --btn-text: #ffffff;
    --input-bg: rgba(255, 255, 255, 0.95);
    --input-border: rgba(15, 23, 42, 0.15);
    --hero-overlay: rgba(255, 255, 255, 0.72);
    --hero-shadow: rgba(15, 23, 42, 0.08);
    --text-inverse: #ffffff;
    --body-before:
        radial-gradient(circle at 12% 10%, rgba(14, 165, 233, 0.12), transparent 24%),
        radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.12), transparent 20%),
        linear-gradient(135deg, #f8fbff 0%, #edf4fb 40%, #e4f0ff 100%);
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

body.admin-body {
    min-height: 100vh;
}

/* Modern Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--body-before);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent 28%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 120px);
    opacity: 0.42;
    pointer-events: none;
    z-index: -1;
}

[data-theme='light'] body::after {
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.34), transparent 30%),
        repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.025) 0, rgba(37, 99, 235, 0.025) 1px, transparent 1px, transparent 120px);
    opacity: 0.3;
}

/* Navigation Styling */
.navbar-modern {
    background: var(--nav-bg);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 14px 40px rgba(2, 8, 23, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.public-nav-toggle {
    color: var(--text);
}

.public-nav-toggle .navbar-toggler-icon {
    filter: invert(1);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: transparent;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: none;
}

.site-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.nav-modern {
    color: var(--muted) !important;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    position: relative;
}

.nav-modern:hover {
    color: var(--accent) !important;
}

.nav-modern::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-modern:hover::after {
    width: 100%;
}

.public-nav-dropdown {
    position: relative;
}

.public-nav-link-row,
.public-nav-submenu-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-nav-link-row .nav-link,
.public-nav-submenu-row .dropdown-item {
    flex: 1;
}

.public-nav-dropdown .dropdown-toggle::after {
    margin-left: 0.45rem;
    vertical-align: 0.15rem;
}

.public-nav-submenu > .dropdown-toggle::after {
    float: right;
    margin-top: 0.45rem;
}

.public-nav-dropdown-menu {
    min-width: 240px;
    padding: 12px;
    border: 1px solid var(--surface-border);
    border-radius: 22px;
    background: rgba(6, 13, 24, 0.92);
    backdrop-filter: blur(22px);
    box-shadow: 0 26px 64px rgba(2, 6, 23, 0.34);
}

.public-nav-dropdown-menu .dropdown-item {
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--muted);
    white-space: normal;
}

.public-nav-dropdown-parent {
    font-weight: 700;
}

.public-nav-dropdown-child {
    padding-left: 24px !important;
    font-size: 0.95rem;
}

.public-nav-submenu {
    position: relative;
}

.public-nav-submenu-menu {
    top: -10px !important;
    left: calc(100% - 6px) !important;
    margin-left: 0;
}

@media (min-width: 992px) {
    .public-nav-dropdown:hover > .dropdown-menu,
    .public-nav-dropdown:focus-within > .dropdown-menu {
        display: block;
    }

    .public-nav-submenu:hover > .dropdown-menu,
    .public-nav-submenu:focus-within > .dropdown-menu {
        display: block;
    }
}

.public-nav-dropdown-menu .dropdown-item:hover,
.public-nav-dropdown-menu .dropdown-item:focus {
    background: rgba(37, 99, 235, 0.14);
    color: var(--text);
}

.public-nav-mobile-toggle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.public-nav-mobile-toggle:hover,
.public-nav-mobile-toggle:focus {
    background: rgba(37, 99, 235, 0.14);
    color: var(--text);
}

.public-nav-mobile-toggle i {
    transition: transform 0.2s ease;
}

.public-nav-item.is-open > .public-nav-link-row .public-nav-mobile-toggle i,
.public-nav-submenu.is-open > .public-nav-submenu-row .public-nav-mobile-toggle i {
    transform: rotate(180deg);
}

.public-nav-links {
    margin-top: 16px;
}

.btn-modern {
    background: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    padding: 10px 24px;
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.2);
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(14, 165, 233, 0.28);
    color: var(--btn-text);
}

.public-user-dropdown {
    position: relative;
}

.public-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 45px;
    padding: 8px 14px 8px 10px;
}

.public-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    overflow: hidden;
}

.public-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.public-user-name {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-user-caret {
    font-size: 0.72rem;
    opacity: 0.86;
}

.public-user-menu {
    min-width: 230px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    background: rgba(6, 13, 24, 0.94);
    box-shadow: 0 26px 64px rgba(2, 6, 23, 0.34);
    backdrop-filter: blur(22px);
}

.public-user-hover-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.public-user-hover-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.88), rgba(37, 99, 235, 0.96));
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.public-user-hover-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.public-user-hover-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.public-user-hover-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
}

.public-user-hover-copy strong {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.3;
}

.public-user-hover-copy span {
    color: var(--muted);
    font-size: 0.83rem;
    overflow-wrap: anywhere;
}

.public-user-menu-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.public-user-menu-header strong {
    color: var(--text);
    font-size: 0.96rem;
}

.public-user-menu-header span {
    color: var(--muted);
    font-size: 0.82rem;
}

.public-user-menu-item {
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--muted);
    font-weight: 600;
}

.public-user-menu-item:hover,
.public-user-menu-item:focus {
    background: rgba(37, 99, 235, 0.14);
    color: var(--text);
}

@media (min-width: 992px) {
    .public-user-dropdown:hover > .dropdown-menu,
    .public-user-dropdown:focus-within > .dropdown-menu {
        display: block;
    }

    .public-user-dropdown:hover .public-user-toggle,
    .public-user-dropdown:focus-within .public-user-toggle {
        transform: translateY(-3px);
        box-shadow: 0 20px 38px rgba(14, 165, 233, 0.28);
        color: var(--btn-text);
    }

    .public-user-dropdown:hover .public-user-caret,
    .public-user-dropdown:focus-within .public-user-caret {
        transform: rotate(180deg);
    }
}

.btn-theme {
    width: 45px;
    height: 45px;
    border: 1px solid var(--surface-border);
    color: var(--text);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-theme:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme='light'] .btn-theme:hover {
    background: rgba(37, 99, 235, 0.08);
}

.public-notice-stack {
    display: grid;
    gap: 12px;
}

.public-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid var(--surface-border);
    background: rgba(8, 15, 28, 0.88);
    box-shadow: 0 20px 42px rgba(2, 8, 23, 0.22);
    backdrop-filter: blur(18px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.public-notice.is-closing {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
}

.public-notice-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    flex-shrink: 0;
}

.public-notice-copy {
    min-width: 0;
}

.public-notice-copy strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 750;
}

.public-notice-copy p {
    margin: 0;
    color: #d6e4f2;
    line-height: 1.6;
    font-size: 0.95rem;
}

.public-notice-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #d6e4f2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.public-notice-close:hover,
.public-notice-close:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

.public-notice-success {
    border-color: rgba(74, 222, 128, 0.24);
}

.public-notice-success .public-notice-icon {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.94), rgba(74, 222, 128, 0.76));
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.2);
}

.public-notice-info {
    border-color: rgba(96, 165, 250, 0.24);
}

.public-notice-info .public-notice-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.94), rgba(56, 189, 248, 0.76));
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.18);
}

.public-notice-warning {
    border-color: rgba(251, 191, 36, 0.26);
}

.public-notice-warning .public-notice-icon {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.94), rgba(251, 191, 36, 0.82));
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.18);
}

.public-notice-error {
    border-color: rgba(248, 113, 113, 0.26);
}

.public-notice-error .public-notice-icon {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.94), rgba(248, 113, 113, 0.78));
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.2);
}

/* Hero Section */
.hero-modern {
    position: relative;
    overflow: hidden;
    padding: 44px 0 92px;
}

.hero-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(98, 214, 255, 0.12), transparent 24%),
        radial-gradient(circle at 84% 22%, rgba(37, 99, 235, 0.1), transparent 26%),
        linear-gradient(180deg, rgba(3, 9, 20, 0.08) 0%, rgba(3, 9, 20, 0.26) 100%);
    pointer-events: none;
}

.hero-modern::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,0 600,50 T1200,50 L1200,120 L0,120 Z" fill="%230f1419"/></svg>');
    background-size: cover;
}

[data-theme='light'] .hero-modern::after {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,0 600,50 T1200,50 L1200,120 L0,120 Z" fill="%23ffffff"/></svg>');
    background-size: cover;
}

.hero-grid {
    min-height: calc(100vh - 88px);
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.hero-kicker span {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.85rem;
    color: #e2e8f0;
}

.hero-kicker a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.85rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.hero-kicker a:hover,
.hero-kicker a:focus {
    transform: translateY(-2px);
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(191, 219, 254, 0.34);
    color: #ffffff;
}

[data-theme='light'] .hero-kicker span {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(37, 99, 235, 0.12);
    color: #29415f;
}

[data-theme='light'] .hero-kicker a {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(37, 99, 235, 0.12);
    color: #29415f;
}

[data-theme='light'] .hero-kicker a:hover,
[data-theme='light'] .hero-kicker a:focus {
    background: rgba(219, 234, 254, 0.92);
    border-color: rgba(37, 99, 235, 0.2);
    color: #10213a;
}

.hero-eyebrow {
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 700;
    color: #93c5fd;
}

[data-theme='light'] .hero-eyebrow,
[data-theme='light'] .section-kicker {
    color: #2563eb;
}

.social-icons-hero {
    display: flex;
    gap: 15px;
    margin-top: 28px;
}

.social-icon-link {
    width: 45px;
    height: 45px;
    border: 2px solid var(--surface-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    background: var(--btn-bg);
    border-color: var(--accent-alt);
    transform: translateY(-5px);
}

[data-theme='light'] .social-icon-link {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(37, 99, 235, 0.14);
    box-shadow: 0 12px 24px rgba(148, 163, 184, 0.12);
}

[data-theme='light'] .public-nav-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 26px 54px rgba(148, 163, 184, 0.16);
}

[data-theme='light'] .navbar-modern {
    border-bottom-color: rgba(37, 99, 235, 0.08);
    box-shadow: 0 14px 34px rgba(148, 163, 184, 0.16);
}

[data-theme='light'] .public-nav-dropdown-menu .dropdown-item {
    color: #485c71;
}

[data-theme='light'] .public-nav-dropdown-menu .dropdown-item:hover,
[data-theme='light'] .public-nav-dropdown-menu .dropdown-item:focus {
    background: rgba(37, 99, 235, 0.08);
    color: #10213a;
}

[data-theme='light'] .public-nav-mobile-toggle {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.08);
    color: #526277;
}

[data-theme='light'] .public-nav-mobile-toggle:hover,
[data-theme='light'] .public-nav-mobile-toggle:focus {
    background: rgba(37, 99, 235, 0.08);
    color: #10213a;
}

[data-theme='light'] .public-user-avatar {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

[data-theme='light'] .public-user-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 26px 54px rgba(148, 163, 184, 0.16);
}

[data-theme='light'] .public-user-hover-card,
[data-theme='light'] .public-user-menu-header {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme='light'] .public-user-hover-label {
    color: #2563eb;
}

[data-theme='light'] .public-user-hover-copy strong,
[data-theme='light'] .public-user-menu-header strong {
    color: #10213a;
}

[data-theme='light'] .public-user-hover-copy span,
[data-theme='light'] .public-user-menu-header span,
[data-theme='light'] .public-user-menu-item {
    color: #5b7188;
}

[data-theme='light'] .public-user-menu-item:hover,
[data-theme='light'] .public-user-menu-item:focus {
    background: rgba(37, 99, 235, 0.08);
    color: #10213a;
}

[data-theme='light'] .public-notice {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow:
        0 18px 38px rgba(148, 163, 184, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme='light'] .public-notice-copy p {
    color: #526277;
}

[data-theme='light'] .public-notice-close {
    background: rgba(15, 23, 42, 0.05);
    color: #526277;
}

[data-theme='light'] .public-notice-close:hover,
[data-theme='light'] .public-notice-close:focus {
    background: rgba(37, 99, 235, 0.1);
    color: #10213a;
}

[data-theme='light'] .nav-modern {
    color: #5a6f84 !important;
}

[data-theme='light'] .nav-modern:hover {
    color: #1d4ed8 !important;
}

.hero-title {
    font-size: clamp(3rem, 5.5vw, 5rem);
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--text);
    text-shadow: 0 2px 10px var(--hero-shadow);
    max-width: 12ch;
}

.hero-title-accent {
    display: block;
    color: #bfdbfe;
}

[data-theme='light'] .hero-title {
    color: #081a33;
    text-shadow:
        0 2px 0 rgba(255, 255, 255, 0.82),
        0 14px 32px rgba(148, 163, 184, 0.22);
}

[data-theme='light'] .hero-title-accent {
    color: #0f4cc9;
}

.hero-subtitle {
    font-size: 1.18rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 620px;
}

.hero-support {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.75;
    max-width: 640px;
}

[data-theme='light'] .hero-support {
    color: #5b6b80;
}

.hero-actions {
    margin-bottom: 28px;
    align-items: center;
}

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    min-width: 184px;
    padding: 0.95rem 1.45rem;
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.hero-actions .btn i {
    font-size: 0.95rem;
    opacity: 0.92;
    flex-shrink: 0;
}

.hero-actions .btn .hero-button-label {
    display: inline-flex;
    align-items: center;
}

.hero-actions .btn::after {
    content: '\2192';
    font-size: 0.98rem;
    transition: transform 0.22s ease, opacity 0.22s ease;
    opacity: 0.85;
}

.hero-actions .btn:hover {
    transform: translateY(-3px);
}

.hero-actions .btn:hover::after,
.hero-actions .btn:focus::after {
    transform: translateX(3px);
    opacity: 1;
}

.hero-actions .btn:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.12),
        0 18px 34px rgba(15, 23, 42, 0.16);
}

.hero-actions [data-hero-button="primary"] {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.38);
}

.hero-actions [data-hero-button="primary"]:hover,
.hero-actions [data-hero-button="primary"]:focus {
    background: linear-gradient(135deg, #ffffff 0%, #dbeafe 100%);
    color: #0f172a;
}

.hero-actions [data-hero-button="secondary"] {
    border: 1px solid rgba(125, 211, 252, 0.22);
    box-shadow: 0 18px 34px rgba(14, 165, 233, 0.16);
}

.hero-actions [data-hero-button="helpdesk"] {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.96) 0%, rgba(37, 99, 235, 0.96) 52%, rgba(14, 165, 233, 0.92) 100%);
    color: #ffffff;
    border: 1px solid rgba(125, 211, 252, 0.28);
    box-shadow: 0 20px 38px rgba(14, 165, 233, 0.24);
}

.hero-actions [data-hero-button="helpdesk"]:hover,
.hero-actions [data-hero-button="helpdesk"]:focus {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(9, 114, 224, 0.98) 0%, rgba(29, 78, 216, 0.98) 52%, rgba(8, 145, 178, 0.94) 100%);
    box-shadow: 0 24px 42px rgba(14, 165, 233, 0.3);
}

.hero-actions [data-hero-button="tertiary"] {
    border-width: 1px;
}

[data-theme='light'] .hero-actions .btn:focus-visible {
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.12),
        0 20px 38px rgba(37, 99, 235, 0.18);
}

[data-theme='light'] .hero-actions .btn-light {
    background: linear-gradient(135deg, #10213a 0%, #1d4ed8 100%);
    color: #ffffff;
    border: 1px solid rgba(29, 78, 216, 0.28);
    box-shadow: 0 20px 38px rgba(37, 99, 235, 0.22);
}

[data-theme='light'] .hero-actions .btn-light:hover,
[data-theme='light'] .hero-actions .btn-light:focus {
    background: linear-gradient(135deg, #0f1c30 0%, #1e40af 100%);
    color: #ffffff;
    box-shadow: 0 24px 42px rgba(37, 99, 235, 0.28);
}

[data-theme='light'] .hero-actions .btn-modern {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    color: #163457;
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: 0 18px 34px rgba(148, 163, 184, 0.18);
}

[data-theme='light'] .hero-actions .btn-modern:hover,
[data-theme='light'] .hero-actions .btn-modern:focus {
    background: linear-gradient(135deg, #ffffff 0%, #dbeafe 100%);
    color: #10213a;
    box-shadow: 0 22px 38px rgba(148, 163, 184, 0.22);
}

[data-theme='light'] .hero-actions [data-hero-button="helpdesk"] {
    background: linear-gradient(135deg, #10213a 0%, #1d4ed8 58%, #0ea5e9 100%);
    color: #ffffff;
    border-color: rgba(29, 78, 216, 0.22);
    box-shadow: 0 20px 38px rgba(37, 99, 235, 0.24);
}

[data-theme='light'] .hero-actions [data-hero-button="helpdesk"]:hover,
[data-theme='light'] .hero-actions [data-hero-button="helpdesk"]:focus {
    background: linear-gradient(135deg, #0f1c30 0%, #1e40af 58%, #0284c7 100%);
    color: #ffffff;
    box-shadow: 0 24px 42px rgba(37, 99, 235, 0.3);
}

[data-theme='light'] .hero-actions .btn-outline-light {
    background: rgba(255, 255, 255, 0.72);
    color: #163457;
    border-color: rgba(22, 52, 87, 0.18);
    box-shadow: 0 18px 34px rgba(148, 163, 184, 0.16);
}

[data-theme='light'] .hero-actions .btn-outline-light:hover,
[data-theme='light'] .hero-actions .btn-outline-light:focus {
    background: rgba(219, 234, 254, 0.92);
    color: #10213a;
    border-color: rgba(37, 99, 235, 0.22);
}

@media (max-width: 767.98px) {
    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .public-side-panel {
        display: none;
    }
}

.hero-trust-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 620px;
}

.hero-contributor-cta {
    margin-top: 24px;
    max-width: 620px;
    padding: 22px 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-contributor-label {
    margin-bottom: 10px;
    color: #7dd3fc;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-contributor-cta h3 {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 1.35rem;
}

[data-theme='light'] .hero-contributor-cta {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(37, 99, 235, 0.12);
    box-shadow: 0 18px 38px rgba(148, 163, 184, 0.14);
}

[data-theme='light'] .hero-contributor-label {
    color: #1d4ed8;
}

.hero-trust-item {
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-trust-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.hero-trust-link:hover,
.hero-trust-link:focus {
    transform: translateY(-4px);
    border-color: rgba(125, 211, 252, 0.28);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 18px 34px rgba(2, 8, 23, 0.18);
    color: inherit;
    text-decoration: none;
}

.hero-trust-link:focus-visible {
    outline: 0;
    text-decoration: none;
    box-shadow:
        0 0 0 4px rgba(125, 211, 252, 0.12),
        0 18px 34px rgba(2, 8, 23, 0.18);
}

[data-theme='light'] .hero-trust-item {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(37, 99, 235, 0.1);
    box-shadow: 0 18px 38px rgba(148, 163, 184, 0.14);
}

.hero-trust-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 0.98rem;
}

.hero-trust-item span {
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.6;
}

.hero-trust-item em {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    color: #7dd3fc;
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

[data-theme='light'] .hero-trust-item strong {
    color: #10213a;
}

[data-theme='light'] .hero-trust-item span {
    color: #5a6a7f;
}

[data-theme='light'] .hero-trust-link:hover,
[data-theme='light'] .hero-trust-link:focus {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 22px 40px rgba(148, 163, 184, 0.18);
}

[data-theme='light'] .hero-trust-link:focus-visible {
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.1),
        0 22px 40px rgba(148, 163, 184, 0.18);
}

[data-theme='light'] .hero-trust-item em {
    color: #1554d1;
}

.hero-illustration {
    perspective: 1000px;
    animation: float 3s ease-in-out infinite;
}

.hero-banner-visual {
    position: relative;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%),
        rgba(6, 13, 24, 0.7);
    box-shadow: 0 32px 70px rgba(2, 8, 23, 0.3);
    backdrop-filter: blur(16px);
}

.hero-banner-visual::before {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(98, 214, 255, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(232, 240, 255, 0.78) 100%);
    pointer-events: none;
}

.hero-banner-image {
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
    min-height: 280px;
    max-height: 360px;
    object-fit: contain;
    object-position: center;
    border-radius: 24px;
    filter: drop-shadow(0 24px 38px rgba(15, 23, 42, 0.22));
}

[data-theme='light'] .hero-banner-visual {
    border-color: rgba(37, 99, 235, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(240, 246, 255, 0.86) 100%),
        rgba(255, 255, 255, 0.82);
    box-shadow: 0 26px 56px rgba(148, 163, 184, 0.2);
}

[data-theme='light'] .hero-banner-visual::before {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 244, 255, 0.92) 100%);
}

.hero-panel {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(9, 18, 34, 0.9) 0%, rgba(8, 15, 28, 0.82) 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    padding: 22px;
    margin-top: -72px;
    box-shadow: 0 34px 70px rgba(2, 8, 23, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
}

[data-theme='light'] .hero-panel {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(37, 99, 235, 0.1);
    box-shadow: 0 30px 64px rgba(148, 163, 184, 0.2);
}

.hero-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    color: var(--text);
}

.hero-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.16);
    color: #bfdbfe;
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid rgba(96, 165, 250, 0.28);
}

[data-theme='light'] .hero-panel-badge {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.16);
}

.hero-highlight-card {
    padding: 16px 18px;
    margin-bottom: 14px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(34, 211, 238, 0.08) 100%);
    border: 1px solid rgba(147, 197, 253, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme='light'] .hero-highlight-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(219, 234, 254, 0.88) 100%);
    border-color: rgba(37, 99, 235, 0.12);
}

.hero-highlight-label {
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.68rem;
    color: #93c5fd;
}

[data-theme='light'] .hero-highlight-label {
    color: #2563eb;
}

.hero-highlight-title {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1.12rem;
    line-height: 1.25;
}

.hero-highlight-copy {
    margin-bottom: 0;
    color: #dbeafe;
    font-size: 0.94rem;
    line-height: 1.55;
}

.hero-highlight-action {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    color: #f8fbff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(191, 219, 254, 0.2);
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.hero-highlight-action:hover,
.hero-highlight-action:focus {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(147, 197, 253, 0.34);
    transform: translateY(-1px);
}

[data-theme='light'] .hero-highlight-copy,
[data-theme='light'] .hero-metric-label,
[data-theme='light'] .hero-panel-note,
[data-theme='light'] .hero-panel-links a {
    color: #5a6a7f;
}

[data-theme='light'] .hero-highlight-action {
    color: #163457;
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(37, 99, 235, 0.14);
}

[data-theme='light'] .hero-highlight-action:hover,
[data-theme='light'] .hero-highlight-action:focus {
    color: #10213a;
    background: rgba(219, 234, 254, 0.96);
    border-color: rgba(37, 99, 235, 0.2);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hero-service-links {
    margin-bottom: 2px;
}

.hero-metric-card {
    display: grid;
    gap: 5px;
    padding: 14px 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-metric-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

[data-theme='light'] .hero-metric-card {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(37, 99, 235, 0.1);
}

[data-theme='light'] .hero-metric-icon {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.hero-metric-link {
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.hero-service-link {
    align-content: start;
}

.hero-metric-link:hover,
.hero-metric-link:focus {
    transform: translateY(-3px);
    border-color: rgba(96, 165, 250, 0.34);
    background: rgba(37, 99, 235, 0.12);
    box-shadow: 0 16px 28px rgba(2, 8, 23, 0.16);
}

[data-theme='light'] .hero-metric-link:hover,
[data-theme='light'] .hero-metric-link:focus {
    background: rgba(239, 246, 255, 0.96);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.12);
}

.hero-metric-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.hero-service-title {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
}

.hero-metric-label {
    color: #cbd5e1;
    font-size: 0.84rem;
    line-height: 1.45;
}

.hero-service-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: #7dd3fc;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-service-cta i {
    font-size: 0.76rem;
}

.hero-panel-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    color: #dbeafe;
}

.hero-panel-note i {
    margin-top: 3px;
}

.hero-panel-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.hero-panel-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: #bfdbfe;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.hero-panel-links a i {
    font-size: 0.84rem;
    opacity: 0.92;
}

.hero-panel-links a:hover {
    transform: translateY(-2px);
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(96, 165, 250, 0.28);
    color: var(--text);
}

[data-theme='light'] .hero-panel-links a {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

[data-theme='light'] .hero-panel-links a:hover {
    color: #1d4ed8;
    background: rgba(219, 234, 254, 0.92);
}

[data-theme='light'] .hero-service-title {
    color: #10213a;
}

[data-theme='light'] .hero-service-cta {
    color: #1554d1;
}

@media (max-width: 575.98px) {
    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .upcoming-event-meta {
        grid-template-columns: 1fr;
    }
}


@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.btn-light {
    background: #ffffff;
    color: #2a1f4d;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.btn-outline-light {
    color: var(--text);
    border: 2px solid var(--text);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.section-block {
    padding: 96px 0;
    position: relative;
}

.public-page-layout {
    align-items: start;
}

.public-page-main {
    min-width: 0;
}

.public-page-layout > .col-xl-8 {
    width: 70%;
}

.public-page-layout > .col-xl-4 {
    width: 30%;
}

.public-side-panel {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 108px;
}

.public-side-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 46%),
        linear-gradient(180deg, rgba(14, 24, 42, 0.96), rgba(8, 15, 28, 0.94));
    box-shadow: var(--surface-shadow);
    padding: 18px;
}

.public-side-card-head {
    margin-bottom: 16px;
}

.public-side-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #93c5fd;
    margin-bottom: 10px;
}

.public-side-title {
    font-size: 1rem;
    line-height: 1.3;
    color: var(--text);
    margin: 0;
}

.public-side-links {
    display: grid;
    gap: 10px;
}

.public-side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    color: var(--muted);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.public-side-link:hover,
.public-side-link:focus {
    color: #f8fbff;
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(96, 165, 250, 0.28);
    transform: translateY(-1px);
}

.public-side-link-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
    flex-shrink: 0;
}

.public-side-section-stack {
    display: grid;
    gap: 14px;
}

.public-side-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.public-side-tree,
.public-side-subtree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.public-side-tree {
    display: grid;
    gap: 12px;
}

.public-side-tree-item {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.public-side-tree-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.public-side-tree-link,
.public-side-subtree-link {
    color: var(--text);
    text-decoration: none;
}

.public-side-tree-link {
    font-weight: 700;
}

.public-side-subtree {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding-left: 14px;
}

.public-side-subtree-link {
    color: var(--muted);
    font-size: 0.94rem;
}

.public-side-tree-link:hover,
.public-side-tree-link:focus,
.public-side-subtree-link:hover,
.public-side-subtree-link:focus {
    color: #93c5fd;
}

.public-side-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    font-weight: 700;
    color: #93c5fd;
}

.section-kicker::before {
    content: '';
    width: 34px;
    height: 1px;
    background: rgba(147, 197, 253, 0.9);
}

[data-theme='light'] .section-kicker::before {
    background: rgba(37, 99, 235, 0.45);
}

[data-theme='light'] .section-title {
    color: #10213a;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.04em;
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}

/* Admin Layout */
.admin-shell {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.admin-sidebar {
    width: 290px;
    min-width: 290px;
    padding: 28px 22px;
    background: rgba(8, 13, 22, 0.88);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-height: 100vh;
    align-self: stretch;
}

.admin-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.admin-brand-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: none;
}

.admin-topbar-logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-brand small {
    color: rgba(255, 255, 255, 0.65);
}

.admin-sidebar-toggle {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.admin-sidebar-menu {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
    min-height: 0;
    padding-right: 0;
}

.admin-nav-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-nav-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.admin-nav-section-label {
    margin: 0 12px 4px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.42);
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    transition: 0.2s ease;
}

.admin-nav-link-icon {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.admin-nav-link-text {
    flex: 1;
}

.admin-nav-link:hover,
.admin-nav-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.26) 0%, rgba(14, 165, 233, 0.18) 100%);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.25);
}

.admin-nav-link.is-disabled {
    opacity: 0.64;
    cursor: default;
}

.admin-nav-link.is-disabled:hover {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
}

.admin-sidebar-footer {
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-main {
    flex: 1;
    min-width: 0;
    padding: 30px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.58);
}

.admin-page-title {
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    font-weight: 750;
    color: #fff;
}

.admin-topbar-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-profile {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.18);
    min-width: 0;
}

.admin-user-toggle {
    appearance: none;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

.admin-user-toggle:hover,
.admin-user-toggle:focus {
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(30, 41, 59, 0.72);
}

.admin-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(14, 165, 233, 0.72));
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
    overflow: hidden;
}

.admin-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-user-copy {
    display: grid;
    min-width: 0;
    line-height: 1.25;
}

.admin-user-copy strong {
    color: #f8fafc;
    font-size: 0.95rem;
}

.admin-user-copy span,
.admin-user-copy small {
    color: #bfd1e7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-copy span {
    font-size: 0.84rem;
}

.admin-user-copy small {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-user-session {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-user-session i {
    color: #22c55e;
    font-size: 0.56rem;
}

.admin-user-link {
    color: #8ec5ff;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.admin-user-link:hover,
.admin-user-link:focus {
    color: #dbeafe;
}

.admin-user-caret {
    color: #bfd1e7;
    font-size: 0.82rem;
}

.admin-user-menu {
    min-width: 220px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.26);
}

.admin-user-hover-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-user-hover-avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.94), rgba(14, 165, 233, 0.78));
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.05em;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.admin-user-hover-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-user-hover-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-user-hover-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
}

.admin-user-hover-copy strong {
    color: #f8fafc;
    font-size: 0.98rem;
    line-height: 1.3;
}

.admin-user-hover-copy span,
.admin-user-hover-copy small {
    color: #bfd1e7;
    overflow-wrap: anywhere;
}

.admin-user-hover-copy span {
    font-size: 0.83rem;
}

.admin-user-hover-copy small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-user-menu-item {
    border-radius: 10px;
    padding: 10px 12px;
    color: #dbeafe;
}

.admin-user-menu-item:hover,
.admin-user-menu-item:focus {
    background: rgba(37, 99, 235, 0.16);
    color: #ffffff;
}

@media (min-width: 992px) {
    .admin-user-dropdown:hover > .dropdown-menu,
    .admin-user-dropdown:focus-within > .dropdown-menu {
        display: block;
    }

    .admin-user-dropdown:hover .admin-user-toggle,
    .admin-user-dropdown:focus-within .admin-user-toggle {
        border-color: rgba(96, 165, 250, 0.28);
        background: rgba(30, 41, 59, 0.72);
        transform: translateY(-2px);
        box-shadow: 0 18px 34px rgba(2, 6, 23, 0.18);
    }

    .admin-user-dropdown:hover .admin-user-caret,
    .admin-user-dropdown:focus-within .admin-user-caret {
        transform: rotate(180deg);
    }
}

.admin-theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.42);
    color: #f8fafc;
}

.admin-theme-toggle:hover {
    color: #fff;
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #dbeafe;
    font-size: 0.9rem;
}

.admin-status-pill i {
    color: #22c55e;
    font-size: 0.55rem;
}

.admin-content {
    background: rgba(10, 16, 28, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.admin-notice-stack {
    display: grid;
    gap: 12px;
}

.admin-notice-spacer {
    height: 8px;
}

.admin-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(10, 18, 34, 0.9) 100%);
    box-shadow: 0 22px 44px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(14px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.admin-notice.is-closing {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
}

.admin-notice-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #ffffff;
    flex-shrink: 0;
}

.admin-notice-copy {
    min-width: 0;
}

.admin-notice-copy strong {
    display: block;
    margin-bottom: 4px;
    color: #f8fafc;
    font-size: 0.98rem;
    font-weight: 750;
}

.admin-notice-copy p {
    margin: 0;
    color: #d4e1ef;
    line-height: 1.6;
    font-size: 0.94rem;
}

.admin-notice-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #d4e1ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-notice-close:hover,
.admin-notice-close:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

.admin-notice-success {
    border-color: rgba(74, 222, 128, 0.24);
}

.admin-notice-success .admin-notice-icon {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.94), rgba(74, 222, 128, 0.76));
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.2);
}

.admin-notice-info {
    border-color: rgba(96, 165, 250, 0.24);
}

.admin-notice-info .admin-notice-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.94), rgba(56, 189, 248, 0.76));
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.18);
}

.admin-notice-warning {
    border-color: rgba(251, 191, 36, 0.26);
}

.admin-notice-warning .admin-notice-icon {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.94), rgba(251, 191, 36, 0.82));
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.18);
}

.admin-notice-error {
    border-color: rgba(248, 113, 113, 0.26);
}

.admin-notice-error .admin-notice-icon {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.94), rgba(248, 113, 113, 0.78));
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.2);
}

.admin-content .card {
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 22px;
}

.admin-content h1,
.admin-content h2,
.admin-content h3,
.admin-content h4,
.admin-content h5,
.admin-content h6,
.admin-content .card-title,
.admin-content th,
.admin-content thead th {
    color: #f8fafc;
}

.admin-content .text-muted {
    color: #94a3b8 !important;
}

.admin-content .table {
    color: #e2e8f0;
    margin-bottom: 0;
}

.admin-content .table td,
.admin-content .table tbody th,
.admin-content .table tbody td,
.admin-content .table-striped > tbody > tr > * {
    color: #e5edf7 !important;
}

.admin-content .table td a,
.admin-content .table td button,
.admin-content .table td code,
.admin-content .table td .small,
.admin-content .table td .text-muted {
    color: inherit;
}

.admin-content .table > :not(caption) > * > * {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.admin-content .table-dark,
.admin-content .table-dark > :not(caption) > * > * {
    background: rgba(30, 41, 59, 0.9);
    color: #f8fafc;
}

.admin-content .table-hover > tbody > tr:hover > * {
    color: #ffffff !important;
    background: rgba(51, 65, 85, 0.32);
}

.admin-content .form-control,
.admin-content .form-select {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.22);
    color: #f8fafc;
}

.admin-content .form-control:focus,
.admin-content .form-select:focus {
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18);
}

.admin-content .form-label {
    color: #cbd5e1;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.6);
}

.editor-toolbar-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-right: 8px;
    margin-right: 4px;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
}

.editor-toolbar-group:last-child {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
}

.editor-toolbar .btn {
    min-width: 40px;
}

.rich-editor {
    min-height: 320px;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.88);
    color: #f8fafc;
    line-height: 1.75;
    outline: none;
}

.rich-editor:focus {
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18);
}

.rich-editor.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.18);
}

.rich-editor:empty::before {
    content: attr(data-editor-placeholder);
    color: #94a3b8;
}

.rich-editor h2,
.rich-editor h3,
.rich-editor p,
.rich-editor ul,
.rich-editor ol,
.rich-editor blockquote,
.rich-editor table {
    margin-bottom: 1rem;
}

.rich-editor blockquote {
    padding: 0.75rem 1rem;
    border-left: 4px solid rgba(96, 165, 250, 0.8);
    background: rgba(30, 41, 59, 0.55);
    border-radius: 0 12px 12px 0;
}

.rich-editor table {
    width: 100%;
    border-collapse: collapse;
}

.rich-editor th,
.rich-editor td {
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.rich-editor hr {
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    margin: 1.25rem 0;
}

.editor-textarea {
    min-height: 260px;
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.7;
}

[data-theme='light'] .admin-content .card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.96) 100%);
    border: 1px solid rgba(15, 23, 42, 0.07) !important;
    box-shadow:
        0 18px 36px rgba(148, 163, 184, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

[data-theme='light'] .admin-media-icon {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    border-color: rgba(15, 23, 42, 0.1);
}

[data-theme='light'] .admin-media-badge {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.12);
}

[data-theme='light'] .upcoming-event-meta-item {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(37, 99, 235, 0.1);
}

[data-theme='light'] .upcoming-event-meta-label {
    color: #2563eb;
}

[data-theme='light'] .upcoming-event-meta-value {
    color: #243b53;
}

[data-theme='light'] .event-mode-online {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.18);
}

[data-theme='light'] .event-mode-onsite {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.16);
}

[data-theme='light'] .event-mode-hybrid {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.16);
}

[data-theme='light'] .admin-issuance-table-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.96) 100%);
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 18px 36px rgba(148, 163, 184, 0.14);
}

[data-theme='light'] .admin-issuance-table-card .table {
    color: #1e293b;
}

[data-theme='light'] .admin-issuance-table-card .table > :not(caption) > * > * {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme='light'] .admin-issuance-table-card .table-dark,
[data-theme='light'] .admin-issuance-table-card .table-dark > :not(caption) > * > * {
    background: #dbe7f5;
    color: #10213a;
}

[data-theme='light'] .admin-issuance-table-card .table-striped > tbody > tr:nth-of-type(odd) > * {
    background: rgba(248, 250, 252, 0.96);
}

[data-theme='light'] .admin-issuance-table-card .table-hover > tbody > tr:hover > * {
    color: #0f172a;
    background: rgba(37, 99, 235, 0.08);
}

[data-theme='light'] .admin-content .pagination .page-link {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.12);
    color: #1d4ed8;
}

[data-theme='light'] .admin-content .pagination .page-link:hover,
[data-theme='light'] .admin-content .pagination .page-link:focus {
    background: rgba(219, 234, 254, 0.92);
    color: #10213a;
}

[data-theme='light'] .admin-content .pagination .page-item.disabled .page-link {
    background: rgba(241, 245, 249, 0.92);
    color: rgba(71, 85, 105, 0.62);
}

[data-theme='light'] .admin-list-card {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.08);
    color: #10213a;
}

[data-theme='light'] .admin-list-card:hover,
[data-theme='light'] .admin-list-card.is-active {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
    color: #10213a;
}

[data-theme='light'] .admin-check-card {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme='light'] .admin-helper-panel,
[data-theme='light'] .admin-summary-tile,
[data-theme='light'] .admin-coverage-item {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme='light'] .admin-summary-value {
    color: #10213a;
}

[data-theme='light'] .admin-progress {
    background: rgba(15, 23, 42, 0.08);
}

[data-theme='light'] .admin-permission-hero {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(219, 234, 254, 0.9) 100%);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 28px 60px rgba(148, 163, 184, 0.18);
}

[data-theme='light'] .admin-permission-kicker {
    color: #2563eb;
}

[data-theme='light'] .admin-permission-kicker::before {
    background: rgba(37, 99, 235, 0.45);
}

[data-theme='light'] .admin-permission-hero-title {
    color: #10213a;
}

[data-theme='light'] .admin-permission-hero-text {
    color: #526277;
}

[data-theme='light'] .admin-permission-hero-panel,
[data-theme='light'] .admin-permission-module-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme='light'] .admin-permission-table-card .table-responsive {
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme='light'] .admin-permission-table-card .dataTables_wrapper .dataTables_length,
[data-theme='light'] .admin-permission-table-card .dataTables_wrapper .dataTables_filter,
[data-theme='light'] .admin-permission-table-card .dataTables_wrapper .dataTables_info {
    color: #526277;
}

[data-theme='light'] .admin-permission-table-card .dataTables_wrapper .dataTables_filter input,
[data-theme='light'] .admin-permission-table-card .dataTables_wrapper .dataTables_length select {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 42, 0.12);
    color: #10213a;
}

[data-theme='light'] .admin-permission-table-card .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #526277 !important;
}

[data-theme='light'] .admin-permission-modal .modal-header,
[data-theme='light'] .admin-permission-modal .modal-footer {
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme='light'] .admin-permission-group + .admin-permission-group {
    border-top-color: rgba(15, 23, 42, 0.08);
}

[data-theme='light'] .admin-content h1,
[data-theme='light'] .admin-content h2,
[data-theme='light'] .admin-content h3,
[data-theme='light'] .admin-content h4,
[data-theme='light'] .admin-content h5,
[data-theme='light'] .admin-content h6,
[data-theme='light'] .admin-content .card-title,
[data-theme='light'] .admin-content th,
[data-theme='light'] .admin-content thead th {
    color: #10213a;
}

[data-theme='light'] .admin-content .table {
    color: #1e293b;
}

[data-theme='light'] .admin-content .table td,
[data-theme='light'] .admin-content .table tbody th,
[data-theme='light'] .admin-content .table tbody td,
[data-theme='light'] .admin-content .table-striped > tbody > tr > * {
    color: #1f2937 !important;
}

[data-theme='light'] .admin-content .table > :not(caption) > * > * {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme='light'] .admin-content .table-dark,
[data-theme='light'] .admin-content .table-dark > :not(caption) > * > * {
    background: #dbe7f5;
    color: #10213a;
}

[data-theme='light'] .admin-content .table-hover > tbody > tr:hover > * {
    color: #0f172a !important;
    background: rgba(37, 99, 235, 0.08);
}

[data-theme='light'] .admin-content .form-label {
    color: #334155;
}

[data-theme='light'] .admin-sidebar {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(249, 252, 255, 0.98) 0%, rgba(238, 246, 255, 0.96) 100%);
    border-right-color: rgba(15, 23, 42, 0.08);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.55);
}

[data-theme='light'] .admin-brand {
    color: #10213a;
}

[data-theme='light'] .admin-brand small {
    color: #67809b;
}

[data-theme='light'] .admin-nav-section {
    border-bottom-color: rgba(15, 23, 42, 0.06);
}

[data-theme='light'] .admin-nav-section-label {
    color: rgba(51, 65, 85, 0.52);
}

[data-theme='light'] .admin-nav-link {
    color: #5b7188;
}

[data-theme='light'] .admin-nav-link:hover,
[data-theme='light'] .admin-nav-link.is-active {
    color: #10213a;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(14, 165, 233, 0.08) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(37, 99, 235, 0.16),
        0 10px 22px rgba(148, 163, 184, 0.14);
}

[data-theme='light'] .admin-nav-link.is-disabled {
    color: rgba(91, 113, 136, 0.7);
}

[data-theme='light'] .admin-nav-link.is-disabled:hover {
    color: rgba(91, 113, 136, 0.7);
    background: rgba(255, 255, 255, 0.52);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

[data-theme='light'] .admin-sidebar-footer {
    border-top-color: rgba(15, 23, 42, 0.06);
}

[data-theme='light'] .admin-main {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(243, 248, 255, 0.88) 0%, rgba(234, 243, 252, 0.92) 100%);
}

[data-theme='light'] .admin-eyebrow {
    color: rgba(37, 99, 235, 0.72);
}

[data-theme='light'] .admin-page-title {
    color: #10213a;
}

[data-theme='light'] .admin-content {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(244, 249, 255, 0.94) 100%);
    border-color: rgba(15, 23, 42, 0.07);
    box-shadow:
        0 26px 52px rgba(148, 163, 184, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

[data-theme='light'] .admin-notice {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 249, 255, 0.96) 100%);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow:
        0 18px 38px rgba(148, 163, 184, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

[data-theme='light'] .admin-notice-copy strong {
    color: #10213a;
}

[data-theme='light'] .admin-notice-copy p {
    color: #526277;
}

[data-theme='light'] .admin-notice-close {
    background: rgba(15, 23, 42, 0.05);
    color: #526277;
}

[data-theme='light'] .admin-notice-close:hover,
[data-theme='light'] .admin-notice-close:focus {
    background: rgba(37, 99, 235, 0.1);
    color: #10213a;
}

[data-theme='light'] .admin-content .text-muted {
    color: #64748b !important;
}

[data-theme='light'] .admin-content .form-control,
[data-theme='light'] .admin-content .form-select {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 42, 0.12);
    color: #10213a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

[data-theme='light'] .admin-content .form-control::placeholder {
    color: #8aa0b8;
}

[data-theme='light'] .admin-content .form-control:focus,
[data-theme='light'] .admin-content .form-select:focus {
    background: #ffffff;
    color: #10213a;
    border-color: rgba(37, 99, 235, 0.38);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

[data-theme='light'] .editor-toolbar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.92) 100%);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

[data-theme='light'] .rich-editor {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 251, 255, 0.96) 100%);
    border-color: rgba(15, 23, 42, 0.1);
    color: #1e293b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

[data-theme='light'] .rich-editor blockquote {
    background: rgba(219, 234, 254, 0.42);
    border-left-color: rgba(37, 99, 235, 0.62);
}

[data-theme='light'] .admin-stat-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.95) 100%);
    border: 1px solid rgba(15, 23, 42, 0.07) !important;
    box-shadow:
        0 18px 34px rgba(148, 163, 184, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

[data-theme='light'] .admin-stat-card .text-muted {
    color: #698096 !important;
}

[data-theme='light'] .admin-helper-panel,
[data-theme='light'] .admin-summary-tile,
[data-theme='light'] .admin-coverage-item {
    box-shadow:
        0 14px 28px rgba(148, 163, 184, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

[data-theme='light'] .admin-theme-toggle {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.12);
    color: #10213a;
}

[data-theme='light'] .admin-user-profile {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 28px rgba(148, 163, 184, 0.12);
}

[data-theme='light'] .admin-user-toggle:hover,
[data-theme='light'] .admin-user-toggle:focus {
    background: rgba(239, 246, 255, 0.96);
    border-color: rgba(37, 99, 235, 0.16);
}

[data-theme='light'] .admin-user-copy strong {
    color: #10213a;
}

[data-theme='light'] .admin-user-copy span,
[data-theme='light'] .admin-user-copy small {
    color: #5c6f84;
}

[data-theme='light'] .admin-user-link {
    color: #1d4ed8;
}

[data-theme='light'] .admin-user-link:hover,
[data-theme='light'] .admin-user-link:focus {
    color: #10213a;
}

[data-theme='light'] .admin-user-caret {
    color: #5c6f84;
}

[data-theme='light'] .admin-user-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 36px rgba(148, 163, 184, 0.18);
}

[data-theme='light'] .admin-user-hover-card {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme='light'] .admin-user-hover-label {
    color: #2563eb;
}

[data-theme='light'] .admin-user-hover-copy strong {
    color: #10213a;
}

[data-theme='light'] .admin-user-hover-copy span,
[data-theme='light'] .admin-user-hover-copy small {
    color: #5c6f84;
}

[data-theme='light'] .admin-user-menu-item {
    color: #10213a;
}

[data-theme='light'] .admin-user-menu-item:hover,
[data-theme='light'] .admin-user-menu-item:focus {
    background: rgba(37, 99, 235, 0.08);
    color: #10213a;
}

[data-theme='light'] .editor-toolbar {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.12);
}

[data-theme='light'] .editor-toolbar-group {
    border-right-color: rgba(15, 23, 42, 0.08);
}

[data-theme='light'] .rich-editor {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 42, 0.12);
    color: #10213a;
}

[data-theme='light'] .rich-editor:empty::before {
    color: #64748b;
}

[data-theme='light'] .rich-editor blockquote {
    background: rgba(219, 234, 254, 0.62);
    border-left-color: rgba(37, 99, 235, 0.72);
}

[data-theme='light'] .rich-editor th,
[data-theme='light'] .rich-editor td {
    border-color: rgba(15, 23, 42, 0.12);
}

[data-theme='light'] .rich-editor hr {
    border-top-color: rgba(15, 23, 42, 0.12);
}

.admin-image-preview {
    width: min(100%, 320px);
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table-thumb {
    width: 68px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-media-icon {
    width: 68px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
    font-size: 1.15rem;
}

.admin-media-badge {
    background: rgba(59, 130, 246, 0.16);
    color: #dbeafe;
    border: 1px solid rgba(96, 165, 250, 0.24);
    font-weight: 600;
}

.upcoming-event-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.upcoming-event-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.upcoming-event-meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 13px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.upcoming-event-meta-label {
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.upcoming-event-meta-value {
    color: #e2e8f0;
    font-size: 0.94rem;
    line-height: 1.5;
}

.event-mode-badge {
    white-space: nowrap;
}

.event-mode-online {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.28);
}

.event-mode-onsite {
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
    border-color: rgba(59, 130, 246, 0.28);
}

.event-mode-hybrid {
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.28);
}

.admin-issuance-table-card {
    background: rgba(10, 18, 32, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 24px 44px rgba(2, 8, 23, 0.26);
}

.admin-issuance-table-card .table-responsive {
    border-radius: 18px;
}

.admin-issuance-table-card .table {
    color: #d8e3f3;
    margin-bottom: 0;
}

.admin-issuance-table-card .table > :not(caption) > * > * {
    background: transparent;
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

.admin-issuance-table-card .table-dark,
.admin-issuance-table-card .table-dark > :not(caption) > * > * {
    background: rgba(15, 23, 42, 0.96);
    color: #f8fbff;
}

.admin-issuance-table-card .table-striped > tbody > tr:nth-of-type(odd) > * {
    background: rgba(15, 23, 42, 0.5);
}

.admin-issuance-table-card .table-hover > tbody > tr:hover > * {
    color: #f8fbff;
    background: rgba(30, 64, 175, 0.2);
}

.admin-issuance-table-card a {
    color: #8ec5ff;
}

.admin-issuance-table-card a:hover,
.admin-issuance-table-card a:focus {
    color: #bfdbfe;
}

.admin-content .pagination .page-link {
    background: rgba(15, 23, 42, 0.84);
    border-color: rgba(148, 163, 184, 0.18);
    color: #dbeafe;
}

.admin-content .pagination .page-link:hover,
.admin-content .pagination .page-link:focus {
    background: rgba(30, 64, 175, 0.22);
    color: #ffffff;
}

.admin-content .pagination .page-item.active .page-link {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.admin-content .pagination .page-item.disabled .page-link {
    background: rgba(15, 23, 42, 0.54);
    border-color: rgba(148, 163, 184, 0.12);
    color: rgba(219, 234, 254, 0.48);
}

.admin-stack-list {
    display: grid;
    gap: 12px;
}

.admin-list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.5);
    color: #e2e8f0;
    transition: 0.2s ease;
}

.admin-list-card:hover,
.admin-list-card.is-active {
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(37, 99, 235, 0.14);
    color: #fff;
}

.admin-checkbox-grid {
    display: grid;
    gap: 12px;
}

.admin-check-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.52);
    cursor: pointer;
}

.admin-check-card input {
    margin-top: 3px;
}

.admin-permission-group + .admin-permission-group {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-stat-card {
    overflow: hidden;
}

.admin-stat-card .card-body {
    position: relative;
}

.admin-stat-card .card-body::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -10px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.34) 0%, rgba(59, 130, 246, 0) 72%);
}

.admin-helper-panel {
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.42);
}

.admin-summary-tile {
    height: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.5);
}

.admin-summary-label {
    display: block;
    margin-bottom: 8px;
    color: #94a3b8;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-summary-value {
    font-size: 1.6rem;
    color: #f8fafc;
}

.admin-coverage-list {
    display: grid;
    gap: 14px;
}

.admin-coverage-item {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.46);
}

.admin-progress {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.admin-progress .progress-bar {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
}

.admin-inline-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-permissions-page {
    display: grid;
}

.admin-permission-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
    gap: 20px;
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 64, 175, 0.38) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.24);
}

.admin-permission-hero-copy,
.admin-permission-hero-panel {
    display: grid;
    gap: 14px;
    align-content: start;
}

.admin-permission-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 700;
    color: #93c5fd;
}

.admin-permission-kicker::before {
    content: '';
    width: 24px;
    height: 1px;
    background: rgba(147, 197, 253, 0.75);
}

.admin-permission-hero-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.9rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #f8fafc;
}

.admin-permission-hero-text {
    margin: 0;
    max-width: 60ch;
    color: #cbd5e1;
    line-height: 1.75;
}

.admin-permission-hero-panel {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.admin-permission-hero-metric {
    display: grid;
    gap: 8px;
}

.admin-permission-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.admin-permission-section-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
}

.admin-permission-builder-card,
.admin-permission-modules-card,
.admin-permission-table-card {
    overflow: hidden;
}

.admin-permission-module-list {
    display: grid;
    gap: 14px;
}

.admin-permission-module-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.48);
}

.admin-permission-table-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    margin-bottom: 18px;
}

.admin-permission-table-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-permission-table-card .table-responsive {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.admin-permission-table-card table.dataTable {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.admin-permission-table-card .dataTables_wrapper .dataTables_length,
.admin-permission-table-card .dataTables_wrapper .dataTables_filter,
.admin-permission-table-card .dataTables_wrapper .dataTables_info {
    color: #cbd5e1;
}

.admin-permission-table-card .dataTables_wrapper .dataTables_filter input,
.admin-permission-table-card .dataTables_wrapper .dataTables_length select {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #f8fafc;
    border-radius: 12px;
    min-height: 42px;
}

.admin-permission-table-card .dataTables_wrapper .dataTables_filter input {
    margin-left: 8px;
    padding: 0.45rem 0.85rem;
}

.admin-permission-table-card .dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 0 !important;
    background: transparent !important;
    color: #cbd5e1 !important;
    border-radius: 10px;
    margin-left: 4px;
}

.admin-permission-table-card .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.admin-permission-table-card .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.admin-permission-table-card .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(37, 99, 235, 0.18) !important;
    color: #ffffff !important;
}

.admin-permission-modal .modal-header,
.admin-permission-modal .modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 991.98px) {
    .table-enhancer-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .table-enhancer-meta {
        justify-self: start;
    }

    .admin-shell {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        min-width: 0;
        height: auto;
        position: static;
        min-height: auto;
        padding: 18px;
        gap: 18px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        align-self: auto;
    }

    .admin-sidebar-menu {
        width: 100%;
        margin-top: 4px;
    }

    .admin-sidebar-menu.collapse:not(.show) {
        display: none;
    }

    .admin-sidebar-menu.collapse.show {
        display: flex;
    }

    .admin-nav {
        gap: 14px;
    }

    .admin-nav-section {
        padding-bottom: 14px;
    }

    .admin-sidebar-footer {
        margin-top: 0;
        padding-top: 14px;
    }

    .admin-main {
        padding: 18px;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .admin-topbar-meta {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .admin-user-profile {
        width: 100%;
        justify-content: space-between;
    }

    .admin-user-dropdown {
        width: 100%;
    }

    .admin-content {
        padding: 20px;
        border-radius: 22px;
    }

    .admin-content .table {
        min-width: 640px;
    }

    .admin-content .card-body {
        overflow-x: auto;
    }

    .admin-content .card-body > .d-flex,
    .admin-content .card-body form .d-flex {
        flex-wrap: wrap;
    }

    .admin-content .btn,
    .admin-content .btn-sm {
        white-space: normal;
    }

    .admin-permission-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .admin-permission-section-head,
    .admin-permission-table-head {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-permission-hero-actions,
    .admin-permission-table-meta {
        width: 100%;
    }

    .admin-permission-table-card .dataTables_wrapper .dataTables_length,
    .admin-permission-table-card .dataTables_wrapper .dataTables_filter,
    .admin-permission-table-card .dataTables_wrapper .dataTables_info,
    .admin-permission-table-card .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        text-align: left !important;
        width: 100%;
        margin-bottom: 10px;
    }

    .admin-permission-table-card .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }

    .editor-toolbar {
        padding: 10px;
    }

    .editor-toolbar-group {
        padding-right: 6px;
        margin-right: 0;
    }

    .rich-editor {
        min-height: 260px;
    }
}

@media (max-width: 767.98px) {
    .table-enhancer-toolbar {
        grid-template-columns: 1fr;
    }

    .table-enhancer-toolbar .form-control,
    .table-enhancer-toolbar .form-select,
    .table-enhancer-meta {
        width: 100%;
    }

    .table-responsive table[data-table-stack='true'] {
        min-width: 0;
    }

    .table-responsive table[data-table-stack='true'] thead {
        display: none;
    }

    .table-responsive table[data-table-stack='true'],
    .table-responsive table[data-table-stack='true'] tbody,
    .table-responsive table[data-table-stack='true'] tr,
    .table-responsive table[data-table-stack='true'] td {
        display: block;
        width: 100%;
    }

    .table-responsive table[data-table-stack='true'] tbody {
        display: grid;
        gap: 14px;
    }

    .table-responsive table[data-table-stack='true'] tr {
        border: 1px solid rgba(148, 163, 184, 0.12);
        border-radius: 18px;
        overflow: hidden;
        background: rgba(15, 23, 42, 0.46);
    }

    .table-responsive table[data-table-stack='true'] tr.table-empty-state {
        padding: 0;
    }

    .table-responsive table[data-table-stack='true'] td {
        border: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
        padding: 12px 16px 12px 132px;
        position: relative;
        text-align: left !important;
        min-height: 52px;
        white-space: normal;
    }

    .table-responsive table[data-table-stack='true'] td:last-child {
        border-bottom: 0;
    }

    .table-responsive table[data-table-stack='true'] td::before {
        content: attr(data-cell-label);
        position: absolute;
        left: 16px;
        top: 12px;
        width: 102px;
        color: #94a3b8;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .table-responsive table[data-table-stack='true'] tr.table-empty-state td {
        padding: 16px;
        text-align: center !important;
    }

    .table-responsive table[data-table-stack='true'] tr.table-empty-state td::before {
        display: none;
    }

    .table-responsive table[data-table-stack='true'] td .btn,
    .table-responsive table[data-table-stack='true'] td form {
        margin-top: 4px;
    }

    [data-theme='light'] .table-responsive table[data-table-stack='true'] tr {
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(15, 23, 42, 0.08);
    }

    [data-theme='light'] .table-responsive table[data-table-stack='true'] td {
        border-bottom-color: rgba(15, 23, 42, 0.08);
    }

    [data-theme='light'] .table-responsive table[data-table-stack='true'] td::before {
        color: #64748b;
    }

    .admin-brand {
        gap: 10px;
    }

    .admin-brand-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 18px;
    }

    .admin-page-title {
        font-size: 1.5rem;
    }

    .admin-topbar-meta {
        align-items: stretch;
    }

    .admin-topbar-meta > .btn,
    .admin-topbar-meta > .admin-user-dropdown {
        width: 100%;
    }

    .admin-theme-toggle {
        width: 100%;
        height: 46px;
        justify-content: center;
    }

    .admin-content .card {
        border-radius: 18px;
    }

    .admin-content .card-body {
        padding: 18px;
    }

    .admin-content .card-body > .d-flex.justify-content-between,
    .admin-content .card-body > .d-flex.align-items-center {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
    }

    .admin-nav-link {
        padding: 12px 14px;
    }

    .admin-sidebar-footer .btn {
        min-height: 42px;
    }

    .admin-user-menu {
        width: 100%;
        min-width: 0;
    }

    .rich-editor {
        min-height: 220px;
        padding: 14px;
    }

    .admin-permission-hero-actions .btn,
    .admin-permission-table-meta .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .table-enhancer-toolbar {
        grid-template-columns: 1fr;
    }

    .table-responsive table[data-table-stack='true'] td {
        padding: 38px 14px 12px;
    }

    .table-responsive table[data-table-stack='true'] td::before {
        position: static;
        display: block;
        width: auto;
        margin-bottom: 6px;
    }

    .admin-sidebar {
        padding: 14px;
    }

    .admin-main {
        padding: 14px;
    }

    .admin-content {
        padding: 16px;
        border-radius: 18px;
    }

    .admin-topbar-meta {
        gap: 10px;
    }

    .admin-user-profile {
        padding: 10px 12px;
        gap: 10px;
    }

    .admin-user-avatar {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .admin-user-link {
        font-size: 0.85rem;
    }

    .admin-theme-toggle {
        width: 40px;
        height: 40px;
    }

    .admin-topbar-meta > .btn.admin-theme-toggle {
        width: 100%;
        height: 42px;
    }

    .editor-toolbar .btn {
        min-width: 36px;
        padding: 0.25rem 0.45rem;
    }

    .editor-toolbar-group {
        gap: 6px;
        border-right: 0;
        padding-right: 0;
        width: 100%;
    }

    .admin-content .card-body {
        padding: 16px;
    }
}

/* Features Section */
.features-section {
    background: linear-gradient(180deg, rgba(9, 17, 31, 0.86) 0%, rgba(10, 20, 36, 0.78) 100%);
    position: relative;
    z-index: 1;
}

.service-band {
    background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 24%), linear-gradient(180deg, rgba(6, 13, 24, 0.96) 0%, rgba(7, 15, 28, 0.78) 100%);
}

[data-theme='light'] .service-band,
[data-theme='light'] .news-section {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(236, 245, 255, 0.96) 100%);
}

[data-theme='light'] .features-section {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.06), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.56) 0%, rgba(236, 245, 255, 0.86) 100%);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    padding: 24px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 34%),
        linear-gradient(180deg, rgba(16, 28, 48, 0.9) 0%, rgba(9, 18, 34, 0.94) 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: var(--surface-shadow);
    backdrop-filter: blur(16px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(98, 214, 255, 0.28);
    box-shadow: var(--surface-shadow-hover);
}

[data-theme='light'] .service-card,
[data-theme='light'] .feature-card,
[data-theme='light'] .cta-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 249, 255, 0.94) 100%);
    border-color: rgba(37, 99, 235, 0.12);
    box-shadow:
        0 18px 34px rgba(148, 163, 184, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.service-card i {
    font-size: 1.7rem;
    color: var(--accent);
    margin-bottom: 14px;
}

.service-card h3 {
    color: var(--text);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.service-card p {
    margin-bottom: 0;
    color: #d5dfeb;
    line-height: 1.65;
}

[data-theme='light'] .service-card p {
    color: #59697d;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 26px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    backdrop-filter: blur(18px);
    box-shadow: var(--surface-shadow);
}

.feature-card:hover {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(17, 31, 54, 0.94) 0%, rgba(10, 20, 38, 0.98) 100%);
    border-color: rgba(98, 214, 255, 0.26);
    transform: translateY(-7px);
    box-shadow: var(--surface-shadow-hover);
}

[data-theme='light'] .feature-card {
    color: #15304f;
}

[data-theme='light'] .feature-card:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 245, 255, 0.98) 100%);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 22px 42px rgba(59, 130, 246, 0.12);
}

[data-theme='light'] .service-card:hover,
[data-theme='light'] .cta-card:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(236, 245, 255, 0.96) 100%);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: 0 22px 42px rgba(59, 130, 246, 0.1);
}

.news-section {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 24%), rgba(8, 13, 22, 0.72);
}

.news-card {
    position: relative;
    overflow: hidden;
}

.card-meta {
    letter-spacing: 0.08em;
}

[data-theme='light'] .card-meta {
    color: #54708d;
}

.card-copy {
    line-height: 1.72;
}

[data-theme='light'] .card-copy {
    color: #56687d;
}

[data-theme='light'] .card-text {
    color: #61758a;
}

.card-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

[data-theme='light'] .feature-card h3,
[data-theme='light'] .card-title-link {
    color: #10243d;
}

[data-theme='light'] .card-title,
[data-theme='light'] .service-card h3 {
    color: #10243d;
}

.card-title-link:hover,
.card-title-link:focus {
    color: var(--accent);
}

[data-theme='light'] .card-title-link:hover,
[data-theme='light'] .card-title-link:focus {
    color: #0f4cc9;
}

.card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

[data-theme='light'] .card-link {
    color: #0f4cc9;
    font-weight: 600;
}

.news-card::after {
    content: '';
    position: absolute;
    right: -18px;
    top: -18px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.26) 0%, rgba(96, 165, 250, 0) 72%);
}

[data-theme='light'] .news-card::after {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.16) 0%, rgba(96, 165, 250, 0) 72%);
}

.article-card-media {
    margin: -30px -30px 20px;
    overflow: hidden;
    border-radius: 26px 26px 0 0;
}

[data-theme='light'] .article-card-media {
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.52) 0%, rgba(239, 246, 255, 0.7) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

[data-theme='light'] .feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.92), rgba(239, 246, 255, 0.98));
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

[data-theme='light'] .feature-icon i {
    color: #1d4ed8;
}

.article-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.responsive-media-frame {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
    background: #020617;
    border: 0;
}

.responsive-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #020617;
}

.responsive-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.feature-card:hover .article-card-image {
    transform: scale(1.03);
}

.feature-card:hover .responsive-media-frame {
    transform: scale(1.01);
}

.content-surface-card {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(10, 18, 32, 0.94) 0%, rgba(8, 15, 28, 0.96) 100%);
    border-radius: 30px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: var(--surface-shadow-hover);
}

.avatar-panel {
    background:
        radial-gradient(circle at top right, rgba(98, 214, 255, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(8, 15, 28, 0.96) 0%, rgba(7, 14, 26, 0.92) 100%);
}

.avatar-preview-shell {
    display: inline-flex;
    padding: 12px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.avatar-preview-frame {
    width: 152px;
    height: 152px;
    border-radius: 28px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(14, 165, 233, 0.72));
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22);
}

.avatar-preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-upload-form .form-label {
    color: #dbe7f5;
    font-weight: 600;
    margin-bottom: 0.6rem;
}


.contributor-form-card {
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(98, 214, 255, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(8, 15, 28, 0.96) 0%, rgba(7, 14, 26, 0.92) 100%);
}

.contributor-article-form .form-label {
    color: #dbe7f5;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.contributor-input {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #f8fafc;
    border-radius: 16px;
    min-height: 52px;
    padding: 0.85rem 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.contributor-input:focus {
    background: rgba(15, 23, 42, 0.96);
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18);
}

.contributor-input::placeholder {
    color: #8fa4bc;
}

.contributor-input[readonly] {
    color: #cbd5e1;
    opacity: 1;
}

.contributor-input option {
    color: #f8fafc;
    background: #0f172a;
}

.contributor-help-text {
    color: #94a3b8;
}

.contributor-editor-toolbar {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    padding: 14px;
}

.contributor-editor-toolbar .btn {
    border-color: rgba(148, 163, 184, 0.22);
    color: #dbe7f5;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

.contributor-editor-toolbar .btn:hover,
.contributor-editor-toolbar .btn:focus {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(96, 165, 250, 0.34);
    box-shadow: none;
}

.contributor-rich-editor {
    min-height: 360px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.94);
    border-color: rgba(148, 163, 184, 0.22);
    color: #f8fafc;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.02),
        0 18px 34px rgba(2, 8, 23, 0.14);
}

.contributor-rich-editor:empty::before {
    color: #8fa4bc;
}

[data-theme='light'] .contributor-form-card {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.95) 100%);
    border-color: rgba(37, 99, 235, 0.12);
    box-shadow:
        0 24px 52px rgba(148, 163, 184, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

[data-theme='light'] .contributor-article-form .form-label {
    color: #10213a;
}

[data-theme='light'] .contributor-input {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 42, 0.12);
    color: #10213a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

[data-theme='light'] .contributor-input:focus {
    background: #ffffff;
    color: #10213a;
    border-color: rgba(37, 99, 235, 0.38);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

[data-theme='light'] .contributor-input::placeholder,
[data-theme='light'] .contributor-help-text,
[data-theme='light'] .contributor-rich-editor:empty::before {
    color: #64748b;
}

[data-theme='light'] .contributor-input[readonly] {
    color: #475569;
}

[data-theme='light'] .contributor-input option {
    color: #10213a;
    background: #ffffff;
}

[data-theme='light'] .contributor-editor-toolbar {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.1);
}

[data-theme='light'] .contributor-editor-toolbar .btn {
    color: #163457;
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(15, 23, 42, 0.12);
}

[data-theme='light'] .contributor-editor-toolbar .btn:hover,
[data-theme='light'] .contributor-editor-toolbar .btn:focus {
    color: #10213a;
    background: rgba(219, 234, 254, 0.92);
    border-color: rgba(37, 99, 235, 0.18);
}

[data-theme='light'] .contributor-rich-editor {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 42, 0.12);
    color: #10213a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 18px 34px rgba(148, 163, 184, 0.1);
}

.table-enhancer-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) minmax(160px, 0.9fr) minmax(180px, 1fr) minmax(120px, 0.7fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 1rem;
}

.table-enhancer-group {
    min-width: 0;
}

.table-enhancer-meta {
    justify-self: end;
    color: #94a3b8;
    font-size: 0.9rem;
    white-space: nowrap;
}

.table-enhancer-pagination {
    margin-top: 1rem;
}

.table-enhancer-pagination .pagination {
    margin-bottom: 0.5rem;
}

.table-enhancer-pagination .page-link {
    background: rgba(15, 23, 42, 0.84);
    border-color: rgba(148, 163, 184, 0.22);
    color: #dbe7f5;
}

.table-enhancer-pagination .page-link:hover,
.table-enhancer-pagination .page-link:focus {
    background: rgba(30, 41, 59, 0.96);
    border-color: rgba(96, 165, 250, 0.36);
    color: #ffffff;
    box-shadow: none;
}

.table-enhancer-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    border-color: rgba(125, 211, 252, 0.4);
    color: #ffffff;
}

.table-enhancer-pagination .page-item.disabled .page-link {
    background: rgba(15, 23, 42, 0.56);
    border-color: rgba(148, 163, 184, 0.12);
    color: rgba(219, 231, 245, 0.5);
}

.table-enhancer-toolbar .form-control,
.table-enhancer-toolbar .form-select {
    background: rgba(15, 23, 42, 0.84);
    border-color: rgba(148, 163, 184, 0.22);
    color: #f8fafc;
}

.table-enhancer-toolbar .form-control:focus,
.table-enhancer-toolbar .form-select:focus {
    background: rgba(15, 23, 42, 0.94);
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18);
}

.table-enhancer-toolbar .form-control::placeholder {
    color: #94a3b8;
}

.table-enhancer-toolbar .form-select:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.public-records-table-card {
    overflow: hidden;
}

.public-records-table-card .table {
    color: #d8e3f3;
}

.public-records-table-card .table > :not(caption) > * > * {
    background: transparent;
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

.public-records-table-card .table-dark,
.public-records-table-card .table-dark > :not(caption) > * > * {
    background: rgba(15, 23, 42, 0.96);
    color: #f8fbff;
}

.public-records-table-card .table-striped > tbody > tr:nth-of-type(odd) > * {
    background: rgba(15, 23, 42, 0.52);
}

.public-records-table-card .table-striped > tbody > tr:nth-of-type(even) > * {
    background: rgba(8, 15, 28, 0.42);
}

.public-records-table-card .table-hover > tbody > tr:hover > * {
    color: #ffffff;
    background: rgba(30, 64, 175, 0.22);
}

.public-records-table-card td,
.public-records-table-card td .text-muted,
.public-records-table-card td span,
.public-records-table-card td a {
    color: inherit;
}

.public-records-table-card .about-page-link,
.public-records-table-card td a.text-primary {
    color: #a9c9ef !important;
}

.public-records-table-card .about-page-link:hover,
.public-records-table-card .about-page-link:focus,
.public-records-table-card td a.text-primary:hover,
.public-records-table-card td a.text-primary:focus {
    color: #d7e9ff !important;
}

.content-hero-image {
    max-height: 420px;
    object-fit: cover;
    border-radius: 22px;
}

.formatted-content {
    color: var(--muted);
    line-height: 1.9;
    font-size: 1rem;
}

.formatted-content > *:last-child {
    margin-bottom: 0;
}

.formatted-content h1,
.formatted-content h2,
.formatted-content h3,
.formatted-content h4,
.formatted-content h5,
.formatted-content h6 {
    color: var(--text);
    margin: 1.5rem 0 0.85rem;
    line-height: 1.2;
}

.formatted-content p,
.formatted-content ul,
.formatted-content ol,
.formatted-content blockquote,
.formatted-content table,
.formatted-content hr {
    margin-bottom: 1rem;
}

.formatted-content ul,
.formatted-content ol {
    padding-left: 1.4rem;
}

.formatted-content a {
    color: var(--accent);
}

.formatted-content img,
.formatted-content video,
.formatted-content iframe,
.formatted-content embed,
.formatted-content object {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.2rem auto;
    border-radius: 18px;
}

.formatted-content video,
.formatted-content iframe,
.formatted-content embed,
.formatted-content object {
    width: 100%;
    background: #020617;
}

.formatted-content iframe {
    min-height: 320px;
    border: 0;
}

.formatted-content blockquote {
    padding: 0.85rem 1rem;
    border-left: 4px solid rgba(96, 165, 250, 0.72);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 14px 14px 0;
}

.formatted-content table {
    width: 100%;
    border-collapse: collapse;
}

.formatted-content th,
.formatted-content td {
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.formatted-content th {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.formatted-content hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.formatted-content-compact {
    font-size: 0.95rem;
    line-height: 1.7;
}

.formatted-content-compact h1,
.formatted-content-compact h2,
.formatted-content-compact h3,
.formatted-content-compact h4,
.formatted-content-compact h5,
.formatted-content-compact h6 {
    font-size: 1.05rem;
    margin-top: 1rem;
}

.about-page-list {
    display: grid;
    gap: 0.4rem;
}

.about-page-link {
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.about-page-link:hover {
    color: var(--text);
    transform: translateX(4px);
}

[data-theme='light'] .content-surface-card {
    background: rgba(255, 255, 255, 0.94);
}

[data-theme='light'] .avatar-panel {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.95) 100%);
    border-color: rgba(37, 99, 235, 0.12);
    box-shadow:
        0 24px 52px rgba(148, 163, 184, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

[data-theme='light'] .avatar-preview-shell {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme='light'] .avatar-upload-form .form-label {
    color: #10213a;
}


[data-theme='light'] .table-enhancer-meta {
    color: #64748b;
}

[data-theme='light'] .table-enhancer-toolbar .form-control,
[data-theme='light'] .table-enhancer-toolbar .form-select {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 42, 0.12);
    color: #10213a;
}

[data-theme='light'] .table-enhancer-toolbar .form-control:focus,
[data-theme='light'] .table-enhancer-toolbar .form-select:focus {
    background: rgba(255, 255, 255, 0.98);
    color: #10213a;
    border-color: rgba(37, 99, 235, 0.38);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

[data-theme='light'] .table-enhancer-toolbar .form-control::placeholder {
    color: #64748b;
}

[data-theme='light'] .table-enhancer-pagination .page-link {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 42, 0.12);
    color: #163457;
}

[data-theme='light'] .table-enhancer-pagination .page-link:hover,
[data-theme='light'] .table-enhancer-pagination .page-link:focus {
    background: rgba(219, 234, 254, 0.92);
    border-color: rgba(37, 99, 235, 0.22);
    color: #10213a;
}

[data-theme='light'] .table-enhancer-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #10213a 0%, #2563eb 100%);
    border-color: rgba(37, 99, 235, 0.28);
    color: #ffffff;
}

[data-theme='light'] .table-enhancer-pagination .page-item.disabled .page-link {
    background: rgba(241, 245, 249, 0.88);
    border-color: rgba(148, 163, 184, 0.18);
    color: rgba(100, 116, 139, 0.72);
}

[data-theme='light'] .public-records-table-card .table {
    color: #1e293b;
}

[data-theme='light'] .public-records-table-card .table > :not(caption) > * > * {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme='light'] .public-records-table-card .table-dark,
[data-theme='light'] .public-records-table-card .table-dark > :not(caption) > * > * {
    background: #dbe7f5;
    color: #10213a;
}

[data-theme='light'] .public-records-table-card .table-striped > tbody > tr:nth-of-type(odd) > * {
    background: rgba(248, 250, 252, 0.96);
}

[data-theme='light'] .public-records-table-card .table-striped > tbody > tr:nth-of-type(even) > * {
    background: rgba(255, 255, 255, 0.96);
}

[data-theme='light'] .public-records-table-card .table-hover > tbody > tr:hover > * {
    color: #0f172a;
    background: rgba(37, 99, 235, 0.08);
}

[data-theme='light'] .public-records-table-card .about-page-link,
[data-theme='light'] .public-records-table-card td a.text-primary {
    color: #1d4ed8 !important;
}

[data-theme='light'] .public-side-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98)),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 46%);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow:
        0 26px 52px rgba(148, 163, 184, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme='light'] .public-side-eyebrow {
    color: #2563eb;
}

[data-theme='light'] .public-side-title,
[data-theme='light'] .public-side-tree-link {
    color: #10213a;
}

[data-theme='light'] .public-side-link {
    color: #5b7188;
    background: rgba(248, 250, 252, 0.96);
    border-color: rgba(15, 23, 42, 0.06);
}

[data-theme='light'] .public-side-link:hover,
[data-theme='light'] .public-side-link:focus {
    color: #10213a;
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.16);
}

[data-theme='light'] .public-side-link-icon {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

[data-theme='light'] .public-side-section-title {
    color: #526277;
}

[data-theme='light'] .public-side-tree-item {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme='light'] .public-side-subtree-link,
[data-theme='light'] .public-side-empty {
    color: #5b7188;
}

[data-theme='light'] .public-side-tree-link:hover,
[data-theme='light'] .public-side-tree-link:focus,
[data-theme='light'] .public-side-subtree-link:hover,
[data-theme='light'] .public-side-subtree-link:focus {
    color: #1d4ed8;
}

[data-theme='light'] .formatted-content blockquote {
    background: rgba(219, 234, 254, 0.45);
    border-left-color: rgba(37, 99, 235, 0.72);
}

[data-theme='light'] .formatted-content th,
[data-theme='light'] .formatted-content td {
    border-color: rgba(15, 23, 42, 0.12);
}

[data-theme='light'] .formatted-content th {
    background: rgba(15, 23, 42, 0.04);
}

[data-theme='light'] .formatted-content hr {
    border-top-color: rgba(15, 23, 42, 0.12);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
}

.card-title {
    font-weight: 700;
    font-size: 1.2rem;
}

.card-text {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(42, 31, 77, 0.1) 100%);
    padding-top: 12px;
    padding-bottom: 42px;
}

[data-theme='light'] .cta-section {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(224, 242, 254, 0.52) 100%);
}

.cta-layout {
    padding-top: 6px;
}

.cta-grid {
    margin-top: 6px;
}

.cta-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 26px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(18px);
    box-shadow: var(--surface-shadow);
}

.cta-card:hover {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(17, 31, 54, 0.94) 0%, rgba(10, 20, 38, 0.98) 100%);
    border-color: rgba(98, 214, 255, 0.26);
    transform: translateY(-7px);
    box-shadow: var(--surface-shadow-hover);
}

.cta-icon {
    display: inline-block;
    margin-bottom: 2px;
}

.cta-card .card-title {
    margin-bottom: 4px;
}

.cta-card .card-text {
    margin-bottom: 2px;
}

.cta-card a {
    margin-top: auto;
    padding-top: 8px;
}

.feature-card .card-text,
.cta-card .card-text,
.news-card .card-copy,
.formatted-content,
.formatted-content p,
.formatted-content li,
.formatted-content table,
.formatted-content td,
.formatted-content blockquote,
.text-muted {
    color: #c8d6e5 !important;
}

.feature-card .card-title,
.feature-card h5,
.service-card h3,
.cta-card .card-title,
.content-surface-card h1,
.content-surface-card h2,
.content-surface-card h3,
.content-surface-card h4 {
    color: #f8fbff;
}

.card-title-link:hover,
.card-title-link:focus,
.about-page-link:hover,
.about-page-link:focus {
    color: #9cdcff;
}

.portal-banner {
    padding: 52px 28px;
    border-radius: 36px;
    background: radial-gradient(circle at top right, rgba(98, 214, 255, 0.18), transparent 30%), linear-gradient(135deg, rgba(8, 15, 28, 0.88) 0%, rgba(30, 64, 175, 0.42) 100%);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 34px 70px rgba(2, 8, 23, 0.26);
}

[data-theme='light'] .portal-banner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(219, 234, 254, 0.92) 100%);
    border-color: rgba(37, 99, 235, 0.12);
    box-shadow: 0 24px 52px rgba(148, 163, 184, 0.16);
}

/* Footer Styling */
.footer-modern {
    background: linear-gradient(180deg, rgba(6, 13, 24, 0.94) 0%, rgba(6, 13, 24, 0.82) 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
    z-index: 1;
}

[data-theme='light'] .footer-modern {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(236, 245, 255, 0.88) 100%);
    border-top-color: rgba(37, 99, 235, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

[data-theme='light'] .cta-section + .footer-modern {
    margin-top: 0;
}

.footer-modern a {
    transition: color 0.3s ease;
}

.footer-modern a:hover {
    color: var(--accent) !important;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--surface-border);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.social-link:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    border-color: #7c3aed;
    transform: translateY(-3px);
}

[data-theme='light'] .social-link {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(37, 99, 235, 0.12);
    box-shadow: 0 10px 20px rgba(148, 163, 184, 0.12);
}

[data-theme='light'] .footer-modern .text-muted,
[data-theme='light'] .footer-modern a.text-muted {
    color: #5b7188 !important;
}

[data-theme='light'] .footer-modern hr {
    border-color: rgba(37, 99, 235, 0.08) !important;
}

/* Responsiveness */
@media (max-width: 991.98px) {
    .public-nav-dropdown .dropdown-toggle::after,
    .public-nav-submenu > .dropdown-toggle::after,
    .public-nav-submenu-row .dropdown-toggle::after {
        display: none;
    }

    .public-nav-links {
        margin-top: 20px;
        padding: 16px 0 8px;
    }

    .public-nav-item {
        width: 100%;
    }

    .public-nav-link-row {
        width: 100%;
    }

    .public-nav-link-row .nav-link {
        padding-right: 0;
    }

    .public-nav-dropdown-menu {
        position: static !important;
        min-width: 100%;
        margin-top: 6px;
        box-shadow: none;
        border-radius: 16px;
    }

    .public-nav-item > .public-nav-dropdown-menu,
    .public-nav-submenu > .public-nav-submenu-menu {
        display: none;
    }

    .public-nav-item.is-open > .public-nav-dropdown-menu,
    .public-nav-submenu.is-open > .public-nav-submenu-menu {
        display: block;
    }

    .public-nav-submenu-row {
        align-items: stretch;
    }

    .public-nav-submenu-row .dropdown-item {
        display: flex;
        align-items: center;
    }

    .public-nav-submenu-menu {
        margin-top: 6px;
        padding-left: 10px;
        left: auto !important;
        top: auto !important;
    }

    .public-user-dropdown,
    .public-user-toggle {
        width: 100%;
    }

    .public-user-name {
        max-width: none;
        flex: 1;
        text-align: left;
    }

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

    .hero-panel {
        margin-top: 12px;
    }

    .hero-title {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .public-notice {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 14px 14px 14px 15px;
    }

    .public-notice-close {
        grid-column: 2;
        justify-self: end;
        margin-top: -4px;
    }

    .admin-notice {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 14px 14px 14px 15px;
    }

    .admin-notice-close {
        grid-column: 2;
        justify-self: end;
        margin-top: -4px;
    }

    .cta-layout {
        gap: 26px;
    }

    .cta-grid {
        margin-top: 0;
    }

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

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

    .feature-card,
    .cta-card {
        padding: 20px;
    }

    .hero-modern {
        padding-top: 72px;
    }

    .hero-trust-row {
        grid-template-columns: 1fr;
    }

    .section-block {
        padding: 64px 0;
    }

    .public-side-panel {
        position: static;
    }

    .portal-banner {
        padding: 34px 20px;
        border-radius: 24px;
    }

}

/* Auth Forms */
.auth-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.logo-icon-large {
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--btn-text);
}

.auth-input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-input::placeholder {
    color: var(--muted);
}

.auth-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
    outline: none;
}

.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

/* Utility Classes */
.opacity-50 {
    opacity: 0.5;
}

.text-primary {
    color: #60a5fa;
}

.text-muted {
    color: #9ca3af !important;
}

.text-white {
    color: var(--text) !important;
}

