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

:root {
    --site-bg: #f4f6f8;
    --site-surface: #ffffff;
    --site-surface-soft: #f8fafc;
    --site-border: #dde3ea;
    --site-text-soft: #6b7280;
    --site-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    --site-radius: 1rem;
    --site-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-bs-theme="dark"] {
    --site-bg: #1e2128;
    --site-surface: #262a33;
    --site-surface-soft: #2d323d;
    --site-border: #3d4350;
    --site-text-soft: #a8b3c4;
    --site-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

html,
body {
    min-height: 100%;
    font-family: var(--site-font) !important;
}

body {
    min-height: 100vh;
    background: var(--site-bg);
}

.cookie-consent {
    display: none;
}

html.show-cookie-banner .cookie-consent {
    display: block !important;
}


::selection {
    background: rgba(13, 110, 253, 0.18);
}

a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
}

.app-navbar,
.admin-navbar {
    background: rgba(var(--bs-body-bg-rgb), 0.94);
    backdrop-filter: blur(10px);
}

.brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: #0d6efd;
    color: #fff;
    flex-shrink: 0;
}

.auth-shell,
.dashboard-shell,
.admin-shell {
    padding: 2rem 0;
}

.auth-page,
.dashboard-page,
.admin-page {
    background: var(--site-bg);
}

.auth-card,
.panel-card,
.site-card,
.table-card {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
}

.site-muted,
.small-label {
    color: var(--site-text-soft);
}

.small-label {
    font-size: 0.875rem;
}

.page-title {
    letter-spacing: -0.02em;
}

.dashboard-sidebar {
    position: sticky;
    top: 5.75rem;
}

.dashboard-sidebar .nav-link {
    border-radius: 0.8rem;
    color: inherit;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    background: var(--site-surface-soft);
}

.dashboard-stat,
.dashboard-activity,
.dashboard-info,
.admin-metric {
    background: var(--site-surface-soft);
    border: 1px solid var(--site-border);
    border-radius: 0.95rem;
}

.form-control,
.form-select,
.btn,
.modal-content,
.table {
    border-radius: 0.85rem;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    color: var(--site-text-soft);
    font-weight: 600;
    border-bottom-color: var(--site-border);
}

.table tbody td {
    border-top-color: var(--site-border);
}

.toast-container .toast,
.cookie-consent .card {
    border-radius: 0.9rem;
}

.cookie-consent .card {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    box-shadow: var(--site-shadow);
}

.alert {
    border-radius: 0.85rem;
}

.offcanvas-lg {
    background: var(--site-bg);
}

.profile-photo-frame,
.photo-crop-preview {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--site-surface-soft);
    border: 1px solid var(--site-border);
    position: relative;
}

.profile-photo-image,
.photo-crop-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    display: block;
    transform-origin: center center;
}

.profile-photo-frame {
    box-shadow: var(--site-shadow);
}

.profile-photo-frame {
    padding: 0;
}

.profile-photo-frame .profile-photo-image,
.photo-crop-preview img {
    position: absolute;
    inset: 0;
}

.profile-photo-frame .profile-photo-image {
    width: 100%;
    height: 100%;
}

.profile-photo-actions .btn,
.photo-controls .form-range {
    width: 100%;
}
.app-navbar,
.admin-navbar {
    background: rgba(var(--bs-body-bg-rgb), 0.94);
    backdrop-filter: blur(10px);
}

.brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: #0d6efd;
    color: #fff;
    flex-shrink: 0;
}

.auth-shell,
.dashboard-shell,
.admin-shell {
    padding: 2rem 0;
}

.auth-page,
.dashboard-page,
.admin-page {
    background: var(--site-bg);
}

.auth-card,
.panel-card,
.site-card,
.table-card {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
}

.site-muted,
.small-label {
    color: var(--site-text-soft);
}

.small-label {
    font-size: 0.875rem;
}

.page-title {
    letter-spacing: -0.02em;
}

.dashboard-sidebar {
    position: sticky;
    top: 5.75rem;
}

.dashboard-sidebar .nav-link {
    border-radius: 0.8rem;
    color: inherit;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    background: var(--site-surface-soft);
}

.dashboard-stat,
.dashboard-activity,
.dashboard-info,
.admin-metric {
    background: var(--site-surface-soft);
    border: 1px solid var(--site-border);
    border-radius: 0.95rem;
}

.form-control,
.form-select,
.btn,
.modal-content,
.table {
    border-radius: 0.85rem;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    color: var(--site-text-soft);
    font-weight: 600;
    border-bottom-color: var(--site-border);
}

.table tbody td {
    border-top-color: var(--site-border);
}

.toast-container .toast,
.cookie-consent .card {
    border-radius: 0.9rem;
}

.cookie-consent .card {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    box-shadow: var(--site-shadow);
}

.alert {
    border-radius: 0.85rem;
}

.offcanvas-lg {
    background: var(--site-bg);
}:root {
    --site-bg: #f6f7f9;
    --site-surface: #ffffff;
    --site-surface-2: #f1f3f5;
    --site-border: #dde1e6;
    --site-text-soft: #6c757d;
    --site-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --site-radius: 1rem;
}

[data-bs-theme="dark"] {
    --site-bg: #1e2128;
    --site-surface: #262a33;
    --site-surface-2: #2d323d;
    --site-border: #3d4350;
    --site-text-soft: #a8b3c4;
    --site-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

html, body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: var(--site-bg);
}

a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
}

.app-navbar,
.admin-navbar {
    background: rgba(var(--bs-body-bg-rgb), 0.94);
    backdrop-filter: blur(12px);
}

.brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: #0d6efd;
    color: #fff;
}

.site-card,
.auth-card,
.panel-card,
.soft-card,
.table-card {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
}

.site-muted {
    color: var(--site-text-soft);
}

.dashboard-sidebar {
    position: sticky;
    top: 5.75rem;
}

.dashboard-sidebar .nav-link {
    border-radius: 0.8rem;
    color: inherit;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    background: var(--site-surface-2);
}

.dashboard-stat,
.dashboard-activity,
.dashboard-info,
.admin-metric {
    background: var(--site-surface-2);
    border: 1px solid var(--site-border);
    border-radius: 1rem;
}

.auth-shell,
.admin-shell,
.dashboard-shell {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.auth-page,
.admin-page,
.dashboard-page {
    background: var(--site-bg);
}

.toast-container .toast {
    border-radius: 0.9rem;
}

.cookie-consent .card {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    box-shadow: var(--site-shadow);
}

.form-control,
.form-select,
.btn,
.table,
.modal-content {
    border-radius: 0.85rem;
}

.table thead th {
    color: var(--site-text-soft);
    font-weight: 600;
    border-bottom-color: var(--site-border);
}

.table tbody td {
    border-top-color: var(--site-border);
}

.page-title {
    letter-spacing: -0.02em;
}

.small-label {
    color: var(--site-text-soft);
    font-size: 0.875rem;
}

/* --- Admin Dashboard Top Navbar & Headers --- */
.top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--site-surface) !important;
    border: 1px solid var(--site-border) !important;
    border-radius: var(--site-radius) !important;
    padding: 0.75rem 1.25rem !important;
    margin-bottom: 2rem !important;
    box-shadow: var(--site-shadow) !important;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--site-bg) !important;
    border: 1px solid var(--site-border) !important;
    color: var(--site-text) !important;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: var(--site-surface-2) !important;
    transform: scale(1.05);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--site-bg) !important;
    border: 1px solid var(--site-border) !important;
    border-radius: 50px;
    padding: 0.2rem 0.75rem 0.2rem 0.2rem;
}

.user-avatar {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d6efd !important;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--site-text) !important;
}

/* Custom Table Header override for dark/light themes */
.table thead th {
    background: var(--site-surface-2) !important;
    color: var(--site-text-soft) !important;
    border-bottom: 1px solid var(--site-border) !important;
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px !important;
}
.table tbody td {
    padding: 12px 16px !important;
    border-top: 1px solid var(--site-border) !important;
}

/* Survey Top Banner */
.survey-top-banner {
    background: #e0e7ff;
    border-bottom: 1px solid #c7d2fe;
    color: #3730a3;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.survey-top-banner a {
    color: #312e81;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid #818cf8;
    transition: all 0.2s ease;
}
.survey-top-banner a:hover {
    color: #1e1b4b;
    border-bottom-color: #312e81;
}

[data-bs-theme="dark"] .survey-top-banner {
    background: #1e1b4b;
    border-bottom: 1px solid #312e81;
    color: #c7d2fe;
}
[data-bs-theme="dark"] .survey-top-banner a {
    color: #818cf8;
    border-bottom-color: #4f46e5;
}
[data-bs-theme="dark"] .survey-top-banner a:hover {
    color: #a5b4fc;
    border-bottom-color: #818cf8;
}

/* Navbar Survey Link Highlight */
.nav-link-survey {
    color: #0d6efd !important;
}
[data-bs-theme="dark"] .nav-link-survey {
    color: #3b82f6 !important;
}

/* Theme adapting card button */
.btn-theme-card {
    color: var(--bs-body-color) !important;
    background: var(--site-surface) !important;
    border: 1px solid var(--site-border) !important;
    transition: all 0.2s ease-in-out;
}
.btn-theme-card:hover {
    color: var(--bs-body-color) !important;
    background: var(--site-surface-2) !important;
    border-color: var(--site-border) !important;
    transform: translateY(-1px);
    box-shadow: var(--site-shadow);
}

/* Clickable site-card hover rules */
a.site-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
}
a.site-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--site-shadow), 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}
[data-bs-theme="dark"] a.site-card:hover {
    box-shadow: var(--site-shadow), 0 12px 24px rgba(0, 0, 0, 0.24) !important;
}
a.site-card:hover .card-title {
    color: var(--bs-primary) !important;
}

/* Accessibility: Tap Target Spacing */
footer ul.list-unstyled li a {
    display: inline-block;
    padding: 6px 0;
}

/* ═══════════════════════════════════════════
   SINAV NAVBAR  —  comprehensive styles
   ═══════════════════════════════════════════ */

/* ── CSS tokens ── */
:root {
    --snav-h: 64px;
    --snav-bg: rgba(255, 255, 255, 0.88);
    --snav-bg-scrolled: rgba(255, 255, 255, 0.97);
    --snav-border: rgba(0, 0, 0, 0.07);
    --snav-text: #1a202c;
    --snav-muted: #6b7280;
    --snav-accent: #F2B24C;
    --snav-blue: #3b82f6;
    --snav-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --snav-menu-bg: #ffffff;
    --snav-menu-border: rgba(0, 0, 0, 0.07);
    --snav-item-hover: rgba(59, 130, 246, 0.06);
    --snav-radius: 14px;
}
[data-bs-theme="dark"] {
    --snav-bg: rgba(30, 33, 40, 0.88);
    --snav-bg-scrolled: rgba(30, 33, 40, 0.97);
    --snav-border: rgba(255, 255, 255, 0.07);
    --snav-text: #e2e8f0;
    --snav-muted: #a8b3c4;
    --snav-menu-bg: #262a33;
    --snav-menu-border: rgba(255, 255, 255, 0.08);
    --snav-item-hover: rgba(59, 130, 246, 0.1);
}

/* ── Shell ── */
.sinav-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--snav-h);
    background: var(--snav-bg);
    border-bottom: 1px solid var(--snav-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}
.sinav-navbar--scrolled {
    background: var(--snav-bg-scrolled);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.sinav-navbar__inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 8px;
}

/* ── Brand ── */
.sinav-navbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 8px;
}
.sinav-navbar__brand-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}
.sinav-navbar__brand-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--snav-text);
    letter-spacing: -0.3px;
    line-height: 1;
}
.sinav-navbar__brand-name strong {
    color: var(--snav-blue);
    font-weight: 800;
}

/* ── Desktop nav links ── */
.sinav-navbar__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.snl-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--snav-muted);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, transform 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}
.snl-link:hover {
    color: var(--snav-text);
    background: var(--snav-item-hover);
    transform: translateY(-1px);
}
.snl-link i { font-size: 0.85rem; }

.snl-live-badge {
    display: inline-flex;
    align-items: center;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 100px;
    animation: liveGlow 2s ease-in-out infinite;
}
@keyframes liveGlow {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50%       { opacity: 0.8; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0); }
}

/* ── Categories dropdown ── */
.snl-dropdown-wrap { position: relative; }

.snl-chevron {
    font-size: 0.65rem !important;
    transition: transform 0.2s ease;
    margin-left: 2px;
}
.snl-dropdown-toggle[aria-expanded="true"] .snl-chevron { transform: rotate(180deg); }
.snl-dropdown-toggle[aria-expanded="true"] {
    color: var(--snav-text);
    background: var(--snav-item-hover);
}

.snl-megamenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--snav-menu-bg);
    border: 1px solid var(--snav-menu-border);
    border-radius: var(--snav-radius);
    box-shadow: var(--snav-shadow);
    padding: 20px;
    display: none;
    min-width: 380px;
    flex-direction: row;
    gap: 0;
    z-index: 200;
    animation: menuIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.snl-megamenu.snl-dropdown--open { display: flex; }

@keyframes menuIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0)   scale(1); }
}

.snl-mega-col { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.snl-mega-divider {
    width: 1px;
    background: var(--snav-menu-border);
    margin: 0 20px;
    align-self: stretch;
}

.snl-mega-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--snav-blue);
    padding: 0 8px 8px;
    border-bottom: 1px solid var(--snav-menu-border);
    margin-bottom: 6px;
}
.snl-mega-heading--yellow { color: var(--snav-accent); }

.snl-mega-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--snav-muted);
    text-decoration: none;
    transition: color 0.15s, background 0.15s, transform 0.15s;
}
.snl-mega-item:hover {
    color: var(--snav-text);
    background: var(--snav-item-hover);
    transform: translateX(2px);
}
.snl-item-arrow { font-size: 0.7rem; opacity: 0.5; }

/* ── Right actions ── */
.sinav-navbar__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.sinav-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--snav-border);
    background: transparent;
    color: var(--snav-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
}
.sinav-action-btn:hover {
    color: var(--snav-text);
    background: var(--snav-item-hover);
    border-color: var(--snav-blue);
    transform: scale(1.06);
}

/* ── Auth buttons ── */
.sinav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.sinav-btn--ghost {
    background: transparent;
    border-color: var(--snav-border);
    color: var(--snav-muted);
}
.sinav-btn--ghost:hover {
    border-color: var(--snav-blue);
    color: var(--snav-blue);
    background: var(--snav-item-hover);
}
.sinav-btn--primary {
    background: var(--snav-blue);
    border-color: var(--snav-blue);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}
.sinav-btn--primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
    color: #fff;
}

/* ── Avatar button & dropdown ── */
.snl-avatar-wrap { position: relative; }

.snl-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--snav-border);
    background: transparent;
    cursor: pointer;
    padding: 2px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.snl-avatar-btn:hover,
.snl-avatar-btn[aria-expanded="true"] {
    border-color: var(--snav-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    transform: scale(1.05);
}
.snl-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.snl-avatar-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 230px;
    background: var(--snav-menu-bg);
    border: 1px solid var(--snav-menu-border);
    border-radius: var(--snav-radius);
    box-shadow: var(--snav-shadow);
    padding: 8px;
    display: none;
    z-index: 200;
    animation: menuIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.snl-avatar-menu--open { display: block; }

.snl-avatar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 4px;
}
.snl-avatar-header-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--snav-border);
}
.snl-avatar-header-img img { width: 100%; height: 100%; object-fit: cover; }
.snl-avatar-name  { font-weight: 700; font-size: 0.875rem; color: var(--snav-text); line-height: 1.3; }
.snl-avatar-email { font-size: 0.72rem; color: var(--snav-muted); margin-top: 1px; word-break: break-all; }

.snl-avatar-divider {
    height: 1px;
    background: var(--snav-menu-border);
    margin: 4px 0;
}

.snl-avatar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 9px;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--snav-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.snl-avatar-item:hover { background: var(--snav-item-hover); color: var(--snav-text); }
.snl-avatar-item--danger { color: #ef4444; }
.snl-avatar-item--danger:hover { background: rgba(239, 68, 68, 0.08); color: #ef4444; }

.snl-avatar-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.snl-avatar-item-icon--blue { background: rgba(59, 130, 246, 0.1); color: var(--snav-blue); }
.snl-avatar-item-icon--red  { background: rgba(239, 68, 68, 0.1);  color: #ef4444; }

/* ── Hamburger ── */
.sinav-hamburger {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--snav-border);
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    transition: background 0.2s;
}
.sinav-hamburger:hover { background: var(--snav-item-hover); }
.sinav-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--snav-muted);
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}
.sinav-hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sinav-hamburger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.sinav-hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ── */
.sinav-mobile-drawer {
    position: fixed;
    inset: var(--snav-h) 0 0 0;
    background: var(--snav-menu-bg);
    z-index: 1029;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.sinav-mobile-drawer--open { transform: translateX(0); }

.sinav-mobile-drawer__inner { padding: 20px 16px 40px; }

.sinav-drawer-backdrop {
    position: fixed;
    inset: var(--snav-h) 0 0 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1028;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}
.sinav-drawer-backdrop--visible { opacity: 1; pointer-events: auto; }

.sinav-mobile-nav { display: flex; flex-direction: column; gap: 2px; }

.sinav-mobile-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--snav-muted);
    padding: 16px 12px 6px;
    opacity: 0.7;
}

.sinav-mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--snav-text);
    text-decoration: none;
    transition: background 0.15s;
}
.sinav-mobile-link:hover { background: var(--snav-item-hover); color: var(--snav-text); }
.sinav-mobile-link--sub {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--snav-muted);
    padding: 9px 14px;
}
.sinav-mobile-link i { font-size: 0.85rem; width: 16px; text-align: center; opacity: 0.7; }

.sinav-mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--snav-menu-border);
}

/* ==========================================
   Mobil Bottom Navigation (Sınav101 Modern & Functional BNav)
   ========================================== */
@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .s101-bottom-nav-wrapper,
    .s101-bottom-nav-wrapper.is-hidden {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1040 !important;
        padding: 0 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        pointer-events: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        transition: none !important;
    }
}

@media (min-width: 992px) {
    .s101-bottom-nav-wrapper,
    .s101-bnav-drawer,
    .s101-bnav-backdrop {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

.s101-bottom-nav {
    pointer-events: auto;
    max-width: 500px;
    margin: 0 auto;
    height: 64px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 6px;
}

[data-bs-theme="dark"] .s101-bottom-nav {
    background: rgba(30, 34, 43, 0.88);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.s101-bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none !important;
    background: none;
    border: none;
    padding: 6px 0;
    color: var(--site-text-soft, #64748b);
    transition: color 0.2s ease, transform 0.15s ease;
    cursor: pointer !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.s101-bnav-item:active {
    transform: scale(0.92);
}

.s101-bnav-icon-wrap {
    font-size: 1.15rem;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.s101-bnav-icon-wrap svg,
.s101-bnav-icon-wrap i {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
    font-size: 1.15rem;
}

.s101-fab-core svg,
.s101-fab-core i {
    width: 1.25rem;
    height: 1.25rem;
    fill: #ffffff;
    font-size: 1.25rem;
}

.s101-bnav-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: -0.1px;
    line-height: 1;
    transition: color 0.2s ease;
}

/* Aktif Durum Stilleri */
.s101-bnav-item.is-active {
    color: #0d6efd;
}

[data-bs-theme="dark"] .s101-bnav-item.is-active {
    color: #3b82f6;
}

.s101-bnav-item.is-active .s101-bnav-icon-wrap {
    transform: translateY(-2px) scale(1.15);
}

.s101-bnav-item.is-active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 14px;
    height: 3px;
    background: #0d6efd;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(13, 110, 253, 0.6);
}

[data-bs-theme="dark"] .s101-bnav-item.is-active::after {
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
}

/* ── Floating Action Button (FAB - Orta Soru Arenası Butonu) ── */
.s101-bnav-item.s101-bnav-fab {
    position: relative;
    margin-top: -24px;
    flex: 0 0 54px;
    height: 54px;
    padding: 0;
    overflow: visible;
}

.s101-bnav-item.s101-bnav-fab::after {
    display: none;
}

.s101-fab-core {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.45);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    border: 3px solid var(--site-surface, #ffffff);
}

[data-bs-theme="dark"] .s101-fab-core {
    border-color: #262a33;
    box-shadow: 0 8px 22px rgba(13, 110, 253, 0.6);
}

.s101-bnav-fab:hover .s101-fab-core,
.s101-bnav-fab.is-active .s101-fab-core {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.6);
}

/* Halo / Pulse Efekti */
.s101-fab-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    opacity: 0.35;
    animation: s101FabPulse 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    z-index: -1;
}

@keyframes s101FabPulse {
    0% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

/* Canlı Rozeti */
.s101-fab-live-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 8px;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    line-height: 1.2;
    pointer-events: none;
    border: 1.5px solid var(--site-surface, #fff);
}
[data-bs-theme="dark"] .s101-fab-live-badge {
    border-color: #262a33;
}

/* ── Bottom Nav Offcanvas Drawer ── */
.s101-bnav-drawer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 85vh !important;
    background: var(--site-surface, #ffffff) !important;
    z-index: 99999 !important;
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
    transform: translateY(105%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.3) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

[data-bs-theme="dark"] .s101-bnav-drawer {
    background: #1e293b !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
}

.s101-bnav-drawer.is-open {
    transform: translateY(0) !important;
}

.s101-bnav-drawer__header {
    padding: 16px 20px !important;
    border-bottom: 1px solid var(--site-border, #e2e8f0) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.s101-bnav-drawer__body {
    padding: 16px 20px 30px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.s101-bnav-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 99990 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

.s101-bnav-backdrop.is-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

