

@layer base {
body {
    font-family: 'Inter', 'Nunito', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, .h1, .h2, .h3 {
    font-family: 'Nunito', sans-serif;
    color: var(--text-main);
}

h1 { font-size: 28px; font-weight: 600; line-height: 1.2; margin-bottom: 1rem; }
@media (min-width: 768px) { h1 { font-size: 44px; margin-bottom: 1.5rem; } }

h2 { font-size: 24px; font-weight: 600; line-height: 1.3; margin-bottom: 1rem; }
@media (min-width: 768px) { h2 { font-size: 32px; margin-bottom: 1.25rem; } }

h3 { font-size: 20px; font-weight: 500; line-height: 1.4; margin-bottom: 0.75rem; }
@media (min-width: 768px) { h3 { font-size: 24px; margin-bottom: 1rem; } }

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
@media (min-width: 1024px) {
    .app-container { flex-direction: row; height: 100vh; overflow: hidden; }
}

.main-content {
    flex: 1;
    padding: 0 1.25rem 1.25rem 1.25rem;
    overflow-y: auto;
    width: 100%;
    padding-bottom: calc(85px + 1.25rem) !important;
}
@media (min-width: 1024px) {
    .main-content { padding: 0 2.5rem 2.5rem 2.5rem; height: 100%; padding-bottom: 2.5rem !important; }
}
.main-content::-webkit-scrollbar { width: 6px; }
.main-content::-webkit-scrollbar-track { background: transparent; }
.main-content::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 10px; }

table { width: 100%; border-collapse: collapse; background: var(--surface); }
th {
    background: var(--bg-main); padding: 1rem 1.5rem; text-align: left;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--text-muted);
}
td { padding: 1.25rem 1.5rem; font-size: 0.9375rem; border: none !important; background-color: transparent !important; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(188, 194, 240, 0.1); }
.data-table { width: 100%; border-collapse: collapse; }
.table-container {
    overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-light);
    -webkit-overflow-scrolling: touch; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}
}

@layer components {
/* ═══════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════ */
.sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    bottom: 0;
    width: 280px;
    background-color: var(--sidebar-bg);
    padding: 0 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2000;
    height: 100vh;
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar.open { left: 0; }
@media (min-width: 1024px) {
    .sidebar { position: relative; left: 0; width: var(--sidebar-width); height: 100%; flex-shrink: 0; transition: none; }
    .public-view .sidebar { display: none; }
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }

.sidebar-logo {
    padding: 0 1rem;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--sidebar-active);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-nav { flex: 1; }

.nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 1rem 0.75rem;
    font-weight: 700;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    color: var(--sidebar-text);
    border-radius: var(--radius-md);
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--sidebar-active);
    transform: translateX(4px);
}

.nav-item.active {
    background: var(--primary);
    color: var(--sidebar-active);
    box-shadow: 0 10px 15px -3px rgba(85, 107, 141, 0.3);
}

.nav-icon {
    width: 22px;
    height: 22px;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-item.active .nav-icon { opacity: 1; }

.stat-icon { width: 22px; height: 22px; margin-right: 0; }
.stat-icon * {
    fill: none !important;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.6s ease;
}
.stat-card:hover .stat-icon * { stroke-dashoffset: 100; animation: dashDraw 0.8s ease forwards; }

.nav-icon *, .btn-icon * {
    fill: none !important;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nav-icon * {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.4s ease;
}
.nav-item:hover .nav-icon * { stroke-dashoffset: 100; animation: dashDraw 1s ease forwards; }
.nav-item.active .nav-icon { color: #15803d; animation: navIconPulse 2.5s infinite cubic-bezier(0.66, 0, 0, 1); }

.nav-badge {
    margin-left: 0.625rem; position: relative; top: -5px; left: -10px;
    background: var(--danger); color: var(--surface);
    font-size: 0.65rem; font-weight: 800; min-width: 18px; height: 18px;
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
    padding: 0 6px; box-shadow: 0 4px 12px rgba(244, 63, 94, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    pointer-events: none; flex-shrink: 0;
}
.nav-item:hover .nav-badge { transform: scale(1.15); background: #fb7185; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

.public-header:not(.scrolled) #mobile-menu-toggle {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    min-height: unset !important;
}

#mobile-menu-toggle svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
}

.public-header.scrolled #mobile-menu-toggle {
    color: var(--text-main);
}

@media (min-width: 1024px) {
    .public-header:not(.scrolled) #mobile-menu-toggle,
    .public-header.scrolled #mobile-menu-toggle {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════
   TOP HEADER
   ═══════════════════════════════════════════ */

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin: 0 -1.25rem 0 -1.25rem;
    padding: 0.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
@media (min-width: 768px) { .top-header { margin-bottom: 0; } }
@media (min-width: 1024px) {
    .top-header { margin: 0 -2.5rem 0 -2.5rem; padding: 0.75rem 2.5rem; }
}
@media (max-width: 1023px) {
    .top-header:not(.public-header) { display: none !important; }
}

.top-header h1 {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: -0.04em;
    color: var(--text-main);
    margin-bottom: 0;
}
@media (min-width: 768px) { .top-header h1 { font-size: 1rem; } }

#theme-toggle-btn { transition: all 0.2s ease; }
#theme-toggle-btn:hover { color: #38bdf8; background: rgba(56, 189, 248, 0.1); }
[data-theme="dark"] #theme-toggle-btn { color: var(--text-muted); }
[data-theme="dark"] #theme-toggle-btn:hover { color: #fbbf24; background: rgba(251, 191, 36, 0.1); }

/* ═══════════════════════════════════════════
   USER PROFILE
   ═══════════════════════════════════════════ */
.user-profile { display: flex; align-items: center; gap: 0.75rem; }
.user-profile-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary); color: var(--surface);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; cursor: pointer;
    border: 2px solid var(--border-glass); transition: all 0.2s;
}
.user-profile-avatar:focus { outline: none; }
.user-profile-avatar:hover { transform: scale(1.05); box-shadow: 0 0 0 3px var(--primary-light); }
.user-profile-avatar:active { transform: scale(1); }
.user-profile-name { font-size: 0.85rem; font-weight: 600; }
.user-profile-text-right { text-align: right; }
.user-profile-logout-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    color: var(--text-muted); transition: all 0.2s;
}
.user-profile-logout-btn:hover { color: var(--danger); background: rgba(248, 113, 113, 0.1); }

#user-menu-dropdown.user-menu-dropdown {
    position: absolute; top: calc(100% + 2px); right: 0;
    min-width: 220px; z-index: 9999; padding: 0.5rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-premium);
    display: none;
}
#user-menu-dropdown.user-menu-dropdown.show {
    display: block;
}
.user-menu-dropdown::before {
    content: ''; position: absolute; top: -6px; right: 14px;
    width: 10px; height: 10px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
    z-index: -1;
}

.user-menu-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.625rem 0.75rem; border-radius: 8px;
    color: var(--text-main); font-size: 0.9rem; font-weight: 500;
    transition: all 0.15s;
}
.user-menu-item:hover { background: var(--surface-alt); color: var(--primary); }
.user-menu-item-danger:hover { background: rgba(239, 68, 68, 0.08); color: var(--danger); }
.user-menu-profile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
}
.user-menu-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary); color: var(--surface);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
    flex-shrink: 0;
}
.user-menu-name {
    font-weight: 600; font-size: 0.9rem;
    color: var(--text-main);
}
.user-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

/* ═══════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════ */
.card {
    background: var(--surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card:hover { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); }
.card:hover::before { opacity: 1; }
.card.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.9375rem;
    gap: 10px;
    white-space: nowrap;
    min-height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--surface);
    box-shadow: 0 4px 14px 0 rgba(74, 144, 226, 0.3);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 20px 0 rgba(74, 144, 226, 0.4); filter: brightness(1.1); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-primary-invert { border: 2px solid transparent !important; }
.btn-primary-invert:hover {
    background: var(--surface) !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px 0 rgba(74, 144, 226, 0.4) !important;
}

.btn-secondary { background: var(--surface); color: var(--text-main); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface-alt); border-color: var(--primary); }

.btn-cancel { background: var(--surface); color: var(--primary); border: 2px solid var(--primary); }
.btn-cancel:hover { background: var(--primary); color: var(--surface); transform: translateY(-2px); }

.btn-glass {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.5); }

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(85, 107, 141, 0.06);
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent; cursor: pointer; margin-left: 0.25rem;
}
.btn-action:hover { background: rgba(74, 144, 226, 0.12); color: var(--primary); transform: translateY(-2px); }
.btn-action.edit:hover { background: rgba(107, 199, 184, 0.15); color: var(--secondary); }
.btn-action.delete:hover, .btn-action-danger:hover {
    background: rgba(239, 68, 68, 0.12) !important;
    color: var(--danger) !important; transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.15);
}
.btn-action svg { width: 16px; height: 16px; margin: 0; display: block; }

.btn-accent { background: var(--accent); color: var(--text-main); }
.btn-accent:hover { background: var(--primary); color: var(--surface); transform: translateY(-2px); }

.btn-action-hub {
    background: rgba(85, 107, 141, 0.06);
    color: var(--text-muted); border: 1px solid transparent;
    min-width: 160px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-action-hub:hover { background: var(--primary) !important; color: white !important; border-color: var(--primary) !important; transform: translateY(-2px); box-shadow: var(--shadow-premium); }
.btn-action-hub svg { width: 18px; height: 18px; margin-right: 0.5rem; }

.btn, .form-control, select, input { min-height: 48px; font-size: 16px; }
@media (min-width: 768px) { .btn, .form-control, select, input { min-height: 44px; font-size: 0.9375rem; } }

/* ═══════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════ */
.badge { padding: 0.375rem 0.875rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.025em; }
.badge-success { background: var(--secondary); color: var(--primary); }
.badge-danger { background: var(--accent); color: var(--bg-main); }
.badge-warning { background: var(--accent); color: var(--bg-main); }
.badge-info { background: rgba(74, 144, 226, 0.1); color: var(--primary); }

/* ═══════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════ */
.form-group { margin-bottom: 2rem; }
.form-label { display: block; margin-bottom: 0.625rem; font-weight: 600; font-size: 0.875rem; color: var(--text-main); }
.form-control {
    width: 100%; padding: 0.875rem 1.25rem;
    background: var(--surface); border: 1px solid var(--border-light);
    border-radius: var(--radius-md); font-size: 1rem; color: var(--text-main);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(85, 107, 141, 0.1), inset 0 2px 4px 0 rgba(0, 0, 0, 0.05); }

/* ═══════════════════════════════════════════
   TAB NAVIGATION
   ═══════════════════════════════════════════ */
.tabs-nav {
    display: inline-flex; background: rgba(85, 107, 141, 0.05);
    padding: 6px; border-radius: 14px; gap: 4px;
    border: 1px solid var(--border); margin-bottom: 3rem; position: relative;
}
.tab-link {
    padding: 10px 24px; color: var(--text-muted); font-weight: 600;
    text-decoration: none; border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; font-size: 0.9375rem;
    display: flex; align-items: center; gap: 10px;
}
.tab-link:hover { color: var(--primary); background: rgba(255, 255, 255, 0.5); }
.tab-link.active { background: var(--surface); color: var(--primary); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInTab 0.4s ease; }

/* ═══════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════ */
.modal-overlay { align-items: flex-end !important; padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 768px) { .modal-overlay { align-items: center !important; padding-bottom: 0; } }
.modal-content {
    margin: 0 !important; max-width: 100% !important; width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    animation: slideUpModal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    border-bottom: none !important;
}
@media (min-width: 768px) { .modal-content { margin: 2rem !important; max-width: 600px !important; width: 100% !important; border-radius: var(--radius-lg) !important; animation: fadeInSlide 0.5s ease forwards !important; } }

/* ═══════════════════════════════════════════
   SPLASH SCREEN (#id)
   ═══════════════════════════════════════════ */
#splash-screen {
    position: fixed; inset: 0; z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    background: #fff; transition: opacity 0.5s ease;
}
.splash-content { text-align: center; }
.splash-logo { width: 150px; height: auto; animation: splashPulse 1.5s ease-in-out infinite; }

/* ═══════════════════════════════════════════
   MOBILE BOTTOM NAV
   ═══════════════════════════════════════════ */
.mobile-bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 64px;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(164, 194, 192, 0.3); z-index: 2001;
    box-shadow: 0 -10px 25px -5px rgba(18, 22, 59, 0.05);
    padding-bottom: env(safe-area-inset-bottom); width: 100vw;
}
.mobile-bottom-nav-inner { display: flex; justify-content: space-evenly; align-items: center; height: 100%; width: 100%; }
.nav-bottom-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--secondary); font-size: 0.65rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em; gap: 4px;
    flex: 1; height: 100%; transition: all 0.2s ease;
    text-decoration: none; text-align: center;
}
.nav-bottom-item svg, .nav-bottom-item .nav-icon { width: 24px !important; height: 24px !important; margin: 0 auto !important; display: block !important; opacity: 0.8; transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-bottom-item.active { color: var(--primary); }
.nav-bottom-item.active svg, .nav-bottom-item.active .nav-icon { opacity: 1; transform: translateY(-2px); stroke-width: 2.5; }
@media (max-width: 1023px) { .mobile-bottom-nav { display: flex !important; } }

/* ═══════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════ */
#toast-container {
    position: fixed; top: 2rem; right: 2rem; z-index: 9999;
    display: flex; flex-direction: column; gap: 0.75rem; pointer-events: none;
}
.toast {
    min-width: 320px; max-width: 450px; padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); border-radius: var(--radius-md);
    box-shadow: 0 10px 15px -3px rgba(18, 22, 59, 0.1), 0 4px 6px -2px rgba(18, 22, 59, 0.05);
    display: flex; align-items: center; gap: 1rem; pointer-events: auto;
    animation: toastIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border-left: 4px solid var(--primary); position: relative; overflow: hidden;
}
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-success { border-left-color: var(--success); }
.toast-content { flex: 1; }
.toast-message { font-size: 0.9rem; font-weight: 500; color: var(--text-main); }
.toast-close { cursor: pointer; opacity: 0.5; transition: opacity 0.2s; font-size: 1.2rem; line-height: 1; }
.toast-close:hover { opacity: 1; }
@media (min-width: 768px) { #toast-container { top: 2rem; right: 2rem; left: auto; } .toast { min-width: 320px; } }

/* ═══════════════════════════════════════════
   PUBLIC / LANDING HEADER
   ═══════════════════════════════════════════ */
.public-header {
    position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important;
    z-index: 9999 !important; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 0.4rem 0 !important; margin: 0 !important;
    background: transparent !important; backdrop-filter: none !important;
    border: none !important;
}
.public-header.scrolled {
    background: rgba(247, 245, 242, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 0.3rem 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}
.landing-link {
    font-weight: 600; color: var(--text-muted); font-size: 1rem;
    transition: all 0.3s ease; position: relative; padding: 0.3rem 0;
    display: inline-block; white-space: nowrap;
}
.landing-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 2px; background: var(--primary); transition: width 0.3s ease;
}
.landing-link:hover { color: var(--primary); text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); }
.landing-link:hover::after { width: 100%; }
.public-header:not(.scrolled) .landing-link { color: rgba(255, 255, 255, 0.95); text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); }
.public-header:not(.scrolled) .landing-link::after { background: #fff; }
.public-header:not(.scrolled) .landing-link:hover { color: #fff; }
.public-header.scrolled .landing-link { color: var(--text-main) !important; font-weight: 700; text-shadow: none !important; }
.public-header.scrolled .landing-link::after { background: var(--primary) !important; }
.public-header.scrolled .landing-link:hover { color: var(--primary) !important; }
.desktop-landing-menu { display: none !important; gap: 2.5rem !important; align-items: center; }
@media (min-width: 1024px) { .desktop-landing-menu { display: flex !important; } }
.nav-login-btn { padding: 10px 24px !important; border-radius: 10px !important; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); font-weight: 600; box-shadow: none !important; white-space: nowrap; font-size: 0.85rem; }
@media (max-width: 767px) { .nav-login-btn { padding: 6px 14px !important; font-size: 0.75rem; } }

/* ═══════════════════════════════════════════
   HEADER CONTAINER
   ═══════════════════════════════════════════ */
.header-container-full { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.header-nav-logo { display: flex; align-items: center; }
.header-nav-logo-img { height: 40px; }
@media (max-width: 768px) { .landing-nav-logo img { height: 32px !important; } }

/* ═══════════════════════════════════════════
   AVATAR
   ═══════════════════════════════════════════ */
.avatar-circle { border-radius: 50%; overflow: hidden; }
[data-theme="dark"] .avatar-circle { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4); }

/* ═══════════════════════════════════════════
   SWITCH / TOGGLE UI
   ═══════════════════════════════════════════ */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background-color: #CBD5E1; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }

/* ═══════════════════════════════════════════
   FAB / ACCESSIBILITY FAB
   ═══════════════════════════════════════════ */
.a11y-fab-container { position: fixed; bottom: 80px; right: 1rem; z-index: 1000; }
@media (min-width: 768px) { .a11y-fab-container { right: 2rem; bottom: 100px; } }
.fab { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--surface); color: var(--primary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; z-index: 1002; position: relative; box-shadow: var(--shadow-soft); }
.fab:hover { transform: scale(1.1); box-shadow: var(--shadow-premium); }
.fab.small { width: 38px; height: 38px; }
.fab.shadow-premium { box-shadow: var(--shadow-premium); }
.a11y-tooltip { position: absolute; right: 54px; top: 50%; transform: translateY(-50%) translateX(10px); background: rgba(30, 41, 59, 0.9); backdrop-filter: blur(4px); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.a11y-fab-container:hover .a11y-tooltip { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }

/* Premium Popover Tooltips */
.custom-tooltip {
    position: fixed;
    z-index: 99999;
    background: rgba(18, 22, 59, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-tooltip.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(18, 22, 59, 0.9) transparent transparent transparent;
}

.custom-tooltip.tooltip-bottom::after {
    top: auto;
    bottom: 100%;
    border-color: transparent transparent rgba(18, 22, 59, 0.9) transparent;
}
.a11y-panel { position: absolute; bottom: 60px; right: 0; width: 280px; padding: 1.5rem; display: none; flex-direction: column; gap: 1.25rem; background: #fff; border-radius: 14px; box-shadow: var(--shadow-premium); border: 1px solid rgba(0,0,0,0.05); }
.a11y-panel.show { display: flex; animation: slideUp 0.3s ease forwards; }
.a11y-panel h5 { margin-bottom: 0.5rem; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.a11y-option { display: flex; justify-content: space-between; align-items: center; }
.a11y-option span { font-weight: 500; font-size: 0.9rem; }

/* ═══════════════════════════════════════════
   SPLASH SCREEN (class-based)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) { .splash-screen { display: none !important; } }
.splash-screen { position: fixed; inset: 0; background-color: #fff; display: flex; align-items: center; justify-content: center; z-index: 10000; transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.splash-screen.fade-out { opacity: 0; pointer-events: none; }

/* ═══════════════════════════════════════════
   USER / HEADER UTILITIES
   ═══════════════════════════════════════════ */
.main-content-public { margin-left: 0; width: 100%; padding: 0; }
.public-view .app-container { height: auto !important; overflow: visible !important; }
.public-view .main-content { height: auto !important; overflow-y: visible !important; }
.user-profile-container { position: relative; }
.public-header.scrolled .landing-nav-logo img { filter: brightness(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); height: 38px !important; }
.public-header:not(.scrolled) .landing-nav-logo img { filter: brightness(0) invert(1) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4)); height: 38px !important; }

/* ═══════════════════════════════════════════
   LANDING / PUBLIC FOOTER
   ═══════════════════════════════════════════ */
.section-alt { background-color: var(--surface-alt); }
.footer-v2 { padding: 100px 0 50px; background: #0f172a; color: #fff; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 4rem; text-align: center; }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr; gap: 5rem; text-align: left; } }
.footer-logo-v2 { font-size: 2rem; font-weight: 800; margin-bottom: 1.5rem; }
.footer-logo-v2 img { transition: transform 0.4s ease; }
.footer-logo-v2:hover img { transform: scale(1.05); }
.f-nav strong,
.f-newsletter strong { display: block; margin-bottom: 2rem; font-size: 1.1rem; }
.f-nav a { display: block; color: rgba(255, 255, 255, 0.6); margin-bottom: 1rem; transition: color 0.3s ease; }
.f-nav a:hover { color: #fff; }
.sub-group { display: flex; background: rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 6px; }
.sub-group input { background: transparent; border: none; padding: 10px 15px; flex: 1; color: #fff; outline: none; }
.footer-bottom-v2 { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 2rem; text-align: center; color: rgba(255, 255, 255, 0.4); font-size: 0.85rem; }

/* ═══════════════════════════════════════════
   DARK MODE OVERRIDES
   ═══════════════════════════════════════════ */
[data-theme="dark"] .card { background: var(--surface) !important; border-color: var(--border); box-shadow: var(--shadow-premium) !important; }
[data-theme="dark"] .card.glass { background: rgba(30, 41, 59, 0.8) !important; backdrop-filter: blur(16px); }
[data-theme="dark"] .top-header { background: rgba(30, 41, 59, 0.85) !important; border-bottom-color: var(--border); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4); color: var(--text-main); }
[data-theme="dark"] .form-control { background: var(--surface); border-color: var(--border); color: var(--text-main); }
[data-theme="dark"] .form-control::placeholder { color: #94a3b8; opacity: 1; }
[data-theme="dark"] .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1); }
[data-theme="dark"] .form-label { color: var(--text-muted); }
[data-theme="dark"] table { background: var(--surface); }
[data-theme="dark"] th { background: var(--surface-alt); color: var(--text-muted); }
[data-theme="dark"] tr:hover td { background: rgba(56, 189, 248, 0.05); }
[data-theme="dark"] .btn-glass { background: rgba(30, 41, 59, 0.6); border-color: rgba(255, 255, 255, 0.1); color: var(--text-main); }
[data-theme="dark"] .btn-glass:hover { background: rgba(30, 41, 59, 0.9); border-color: var(--primary); }
[data-theme="dark"] .btn-cancel { background: transparent; color: var(--primary); border-color: var(--primary); }
[data-theme="dark"] .btn-cancel:hover { background: var(--primary); color: #fff; }
[data-theme="dark"] .btn-secondary { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .pagination-btn { background: rgba(30, 41, 59, 0.6); color: var(--text-main); }
[data-theme="dark"] .pagination-btn:hover { background: var(--primary); color: white; }
[data-theme="dark"] .pagination-btn.active { background: var(--primary); color: white; }
[data-theme="dark"] .sidebar { border-right: 1px solid rgba(51, 65, 85, 0.6); }
[data-theme="dark"] .nav-item:hover { background: rgba(56, 189, 248, 0.08); }
[data-theme="dark"] .nav-item.active { background: linear-gradient(135deg, #1e3a5f, #1e293b); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); color: #ffffff; }
[data-theme="dark"] .nav-item.active .nav-icon { color: #22c55e; animation: navIconPulse 2.5s infinite cubic-bezier(0.66, 0, 0, 1); }
[data-theme="dark"] .nav-label { color: rgba(148, 163, 184, 0.5); }
[data-theme="dark"] .sidebar-logo { border-bottom: 1px solid rgba(51, 65, 85, 0.5); padding-bottom: 1rem; margin-bottom: 0.5rem; }
[data-theme="dark"] #user-menu-dropdown.user-menu-dropdown { background: var(--surface); border-color: var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
[data-theme="dark"] #topbar-logout-btn { color: var(--text-muted); }
[data-theme="dark"] #topbar-logout-btn:hover { color: var(--danger); background: rgba(248, 113, 113, 0.1); }
[data-theme="dark"] .mobile-bottom-nav { background: rgba(15, 23, 42, 0.95); border-top-color: rgba(51, 65, 85, 0.5); box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.3); }
[data-theme="dark"] .nav-bottom-item { color: var(--text-muted); }
[data-theme="dark"] .nav-bottom-item svg { opacity: 0.7; }
[data-theme="dark"] .nav-bottom-item.active { color: var(--primary); }
[data-theme="dark"] .nav-bottom-item.active svg { opacity: 1; }
[data-theme="dark"] #mobile-menu-toggle { background: rgba(30, 41, 59, 0.5); border-color: rgba(71, 85, 105, 0.5); color: var(--text-main); }
[data-theme="dark"] .public-header.scrolled { background: rgba(15, 23, 42, 0.98) !important; border-bottom-color: rgba(255, 255, 255, 0.08) !important; }
[data-theme="dark"] .public-header.scrolled .landing-link { color: var(--text-main) !important; }
[data-theme="dark"] .toast { background: rgba(30, 41, 59, 0.9); backdrop-filter: blur(16px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); }
[data-theme="dark"] .modal-content.card { background: var(--surface) !important; border-color: var(--border) !important; }
[data-theme="dark"] .table-container::-webkit-scrollbar { height: 8px; }
[data-theme="dark"] .table-container::-webkit-scrollbar-track { background: #1e293b; border-radius: 8px; }
[data-theme="dark"] .table-container::-webkit-scrollbar-thumb { background: #475569; border-radius: 8px; border: 2px solid #1e293b; }
[data-theme="dark"] .table-container::-webkit-scrollbar-thumb:hover { background: #64748b; }
[data-theme="dark"] .table-container { scrollbar-width: thin; scrollbar-color: #475569 #1e293b; }
[data-theme="dark"] .btn-action-hub { background: rgba(56, 189, 248, 0.06); color: var(--text-muted); }
[data-theme="dark"] .tab-link.active { background: var(--surface); color: var(--primary); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
[data-theme="dark"] .tabs-nav { background: rgba(30, 41, 59, 0.6); border-color: var(--border); }
/* GDPR Export Filter Styles */
.gdpr-filter-details {
    margin: 0.5rem 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
}
.gdpr-filter-summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.gdpr-filter-summary::-webkit-details-marker {
    display: none;
}
.gdpr-filter-body {
    padding: 0.75rem 0 0 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.gdpr-filter-body label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}
.gdpr-filter-body #gdpr-since {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--bg-main);
    color: var(--text-main);
}

