/* ============================================================
   STALIUM TRANSPORT — Design System CSS
   Dark Theme Premium — Migration depuis TailwindCSS
   ============================================================ */

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

/* --- CSS Variables (Design Tokens) --- */
:root {
    /* Background Colors (Deep Abyss) */
    --bg-primary: #050b14;
    --bg-secondary: #0a1120;
    --bg-card: rgba(10, 17, 32, 0.6);
    --bg-hover: rgba(0, 210, 255, 0.1);
    --bg-active: rgba(0, 210, 255, 0.2);

    /* Border Colors */
    --border-subtle: rgba(0, 210, 255, 0.1);
    --border-light: rgba(0, 210, 255, 0.2);
    --border-blue: rgba(0, 210, 255, 0.4);

    /* Text Colors */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-white: #ffffff;
    --text-dark: #1e293b;

    /* Tech Brand Colors (Neon) */
    --blue-400: #00d2ff;
    --blue-500: #00a8ff;
    --blue-600: #0084ff;
    --blue-700: #005fcc;
    --green-400: #00ff88;
    --green-500: #00d672;
    --green-600: #00a355;
    --emerald-400: #00ffcc;
    --emerald-500: #00d1a6;
    --red-400: #ff3366;
    --red-500: #e60039;
    --red-600: #b3002c;
    --yellow-400: #ffea00;
    --yellow-500: #ccbb00;
    --orange-500: #ff6600;
    --orange-600: #cc5200;
    --purple-500: #b500ff;
    --purple-600: #8c00cc;
    --violet-400: #d400ff;
    --violet-500: #aa00cc;
    --teal-500: #00ffd5;
    --teal-600: #00cca0;
    --cyan-600: #00aaff;
    --sky-600: #0088cc;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --gray-600: #4b5563;
    --gray-700: #1a2235;
    --gray-800: #111827;
    --gray-900: #050b14;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.6);
    --shadow-blue: 0 0 20px rgba(59,130,246,0.3);
    --shadow-blue-lg: 0 0 20px rgba(59,130,246,0.5);

    /* Spacing */
    --sidebar-width: 256px;
    --header-height: 64px;
    --nav-header-height: 80px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-3xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 500ms ease;
    --transition-slowest: 700ms ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::selection {
    background: rgba(59, 130, 246, 0.3);
}

a {
    color: var(--blue-400);
    text-decoration: none;
    transition: color var(--transition-base);
}
a:hover { color: var(--blue-500); }

img { max-width: 100%; display: block; }

/* --- Custom Scrollbar --- */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    color: var(--text-white);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-7xl { font-size: 4.5rem; }

.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-light { font-weight: 300; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-center { text-align: center; }
.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }
.italic { font-style: italic; }

.label-micro {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.label-tiny {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.label-small {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Layout --- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-md { max-width: 28rem; }

.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.8125rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.5;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--blue-500) 0%, #3a7bd5 100%);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    border: 1px solid rgba(0, 210, 255, 0.2);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-400) 0%, #4a8be5 100%);
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.6);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--red-600);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}
.btn-danger:hover {
    background: var(--red-500);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.5);
    color: var(--text-white);
}

.btn-success {
    background: var(--green-600);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}
.btn-success:hover {
    background: var(--green-500);
    color: var(--text-white);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-white);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-full);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
}

.btn-rounded { border-radius: var(--radius-full); }

.btn-glow-blue {
    background: var(--blue-600);
    color: var(--text-white);
    box-shadow: var(--shadow-blue-lg);
}
.btn-glow-blue:hover {
    background: var(--blue-500);
    transform: scale(1.05);
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    transition: all var(--transition-slow);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.01), 0 8px 32px 0 rgba(0,0,0,0.3);
}
.card:hover {
    border-color: var(--border-blue);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.02), 0 8px 32px 0 rgba(0, 210, 255, 0.1);
}

.card-elevated {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-3xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-slower);
}
.card-elevated:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-4px);
}

.card-glass {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
}

.card-stat {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all var(--transition-base);
}
.card-stat:hover {
    border-color: var(--border-blue);
    background: rgba(17, 24, 39, 0.8);
}

/* --- Form Inputs --- */
.input {
    width: 100%;
    background: var(--gray-900);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    color: var(--text-white);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all var(--transition-base);
    outline: none;
}
.input:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.input::placeholder {
    color: var(--slate-600);
}

.textarea {
    width: 100%;
    background: var(--gray-900);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    color: var(--text-white);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all var(--transition-base);
    outline: none;
    resize: vertical;
    min-height: 100px;
}
.textarea:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.select {
    width: 100%;
    background: var(--gray-900);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    color: var(--text-white);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.5rem;
}
.select:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-400);
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

/* --- Badges --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge-blue { background: rgba(59,130,246,0.15); color: var(--blue-400); }
.badge-green { background: rgba(34,197,94,0.15); color: var(--green-400); }
.badge-red { background: rgba(239,68,68,0.15); color: var(--red-400); }
.badge-yellow { background: rgba(234,179,8,0.15); color: var(--yellow-400); }
.badge-orange { background: rgba(249,115,22,0.15); color: var(--orange-500); }
.badge-purple { background: rgba(168,85,247,0.15); color: var(--purple-500); }
.badge-emerald { background: rgba(16,185,129,0.15); color: var(--emerald-400); }
.badge-gray { background: rgba(100,116,139,0.15); color: var(--slate-400); }
.badge-teal { background: rgba(20,184,166,0.15); color: var(--teal-500); }
.badge-cyan { background: rgba(8,145,178,0.15); color: var(--cyan-600); }

/* --- Tables --- */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background: rgba(255,255,255,0.03);
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
    border-bottom: 1px solid var(--border-subtle);
}

tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

tbody tr {
    transition: background var(--transition-fast);
}
tbody tr:hover {
    background: var(--bg-hover);
}
tbody tr:last-child td {
    border-bottom: none;
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    animation: modalIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-close {
    background: none;
    border: none;
    color: var(--slate-400);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: color var(--transition-fast);
}
.modal-close:hover { color: var(--text-white); }

/* --- Alerts --- */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.alert-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.5);
    color: var(--red-400);
}
.alert-success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.5);
    color: var(--green-400);
}
.alert-info {
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.5);
    color: var(--blue-400);
}
.alert-warning {
    background: rgba(234,179,8,0.1);
    border: 1px solid rgba(234,179,8,0.5);
    color: var(--yellow-400);
}

/* --- Dot Indicator --- */
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.dot-green { background: var(--green-500); }
.dot-red { background: var(--red-500); }
.dot-yellow { background: var(--yellow-500); }
.dot-blue { background: var(--blue-500); box-shadow: 0 0 10px var(--blue-500); }
.dot-gray { background: var(--gray-600); }

/* --- Divider --- */
.divider {
    width: 1px;
    height: 2rem;
    background: var(--border-subtle);
    margin: 0 0.5rem;
}

.divider-h {
    height: 1px;
    width: 100%;
    background: var(--border-subtle);
    margin: 1rem 0;
}

/* ===================================================================
   PUBLIC SITE LAYOUT
   =================================================================== */

/* Navbar Public */
.navbar-public {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-header-height);
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .navbar-public { padding: 0 3rem; }
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--blue-500);
    letter-spacing: -0.05em;
    cursor: pointer;
    text-decoration: none;
}
@media (min-width: 1024px) {
    .navbar-brand { font-size: 1.875rem; }
}

.navbar-links {
    display: none;
    align-items: center;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .navbar-links { display: flex; }
}

.navbar-link {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: color var(--transition-base);
    text-decoration: none;
}
.navbar-link:hover, .navbar-link.active {
    color: var(--blue-400);
}

.navbar-login-btn {
    background: var(--blue-600);
    color: var(--text-white);
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 900;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all var(--transition-base);
    text-decoration: none;
    margin-left: 1rem;
    border: none;
    cursor: pointer;
}
.navbar-login-btn:hover {
    background: var(--blue-500);
    color: var(--text-white);
}

/* Hamburger */
.hamburger-btn {
    display: block;
    background: none;
    border: none;
    color: var(--slate-400);
    padding: 0.5rem;
    cursor: pointer;
}
@media (min-width: 1024px) {
    .hamburger-btn { display: none; }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--gray-900);
    padding: 2rem;
    display: none;
    flex-direction: column;
    animation: fadeInZoom 0.3s ease;
    overflow-y: auto;
}
.mobile-menu.active { display: flex; }

@keyframes fadeInZoom {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu-close {
    font-size: 1.875rem;
    color: var(--slate-400);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-link {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: -0.05em;
    padding: 0.625rem 0;
    text-decoration: none;
    transition: color var(--transition-base);
}
.mobile-menu-link:hover { color: var(--blue-500); }

/* Public Footer */
.public-footer {
    background: var(--gray-900);
    border-top: 1px solid var(--gray-800);
    padding: 2rem;
    text-align: center;
    color: var(--slate-500);
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--gray-800);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 138, 0.2);
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--gray-900), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 56rem;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}
@media (min-width: 768px) {
    .hero-title { font-size: 4.5rem; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
}
@media (min-width: 768px) {
    .hero-subtitle { font-size: 1.5rem; }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}
@media (min-width: 640px) {
    .hero-actions { flex-direction: row; }
}

/* Section */
.section {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--slate-400);
    max-width: 42rem;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

/* Glow Effects */
.glow-blob {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}
.glow-blue { background: rgba(37, 99, 235, 0.1); }

/* Feature Cards */
.feature-card {
    padding: 2.5rem;
    background: var(--gray-900);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-3xl);
    transition: all var(--transition-slower);
}
.feature-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-8px);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    margin-bottom: 2rem;
    transition: transform var(--transition-base);
}
.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Team Cards */
.team-card {
    cursor: pointer;
}

.team-photo-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    aspect-ratio: 3/4;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slowest);
}

.team-card:hover .team-photo {
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.8), transparent);
    opacity: 0;
    transition: opacity var(--transition-slower);
    z-index: 1;
}
.team-card:hover .team-overlay { opacity: 1; }

/* ===================================================================
   DASHBOARD LAYOUT
   =================================================================== */

.dashboard-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

@media (min-width: 1024px) {
    .sidebar {
        position: relative;
        transform: translateX(0);
    }
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 45;
    display: none;
}
.sidebar-overlay.active { display: block; }

@media (min-width: 1024px) {
    .sidebar-overlay { display: none !important; }
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--blue-600);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.sidebar-logo-text h1 {
    font-size: 1.125rem;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.sidebar-logo-text p {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--slate-500);
    margin-top: 2px;
}

.sidebar-close {
    display: block;
    background: none;
    border: none;
    color: var(--slate-400);
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: color var(--transition-fast);
}
.sidebar-close:hover { color: var(--text-white); }
@media (min-width: 1024px) {
    .sidebar-close { display: none; }
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 900;
    color: var(--slate-600);
    margin-bottom: 1rem;
    padding: 0 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-base);
    margin-bottom: 2px;
}

.sidebar-link:hover {
    background: var(--bg-hover);
    color: var(--text-white);
}

.sidebar-link.active {
    background: var(--bg-active);
    color: var(--blue-400);
    border-right: 2px solid var(--blue-500);
}

.sidebar-link .icon {
    font-size: 1.125rem;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}
.sidebar-link:hover .icon { opacity: 1; }

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(0,0,0,0.1);
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-xl);
}

.sidebar-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--slate-800);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-secondary);
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-username {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-userrole {
    font-size: 10px;
    color: var(--slate-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.sidebar-logout-btn {
    background: none;
    border: none;
    color: var(--slate-500);
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-fast);
    font-size: 1.125rem;
}
.sidebar-logout-btn:hover { color: var(--red-400); }

/* Dashboard Main Content */
.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Dashboard Header */
.dashboard-header {
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}
@media (min-width: 1024px) {
    .dashboard-header { padding: 0 2rem; }
}

.dashboard-breadcrumb {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (min-width: 1024px) {
    .dashboard-breadcrumb { font-size: 0.875rem; }
}
.dashboard-breadcrumb span { color: var(--text-white); }

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
@media (min-width: 1024px) {
    .dashboard-header-right { gap: 1.5rem; }
}

.hamburger-dashboard {
    display: block;
    background: none;
    border: none;
    color: var(--slate-400);
    padding: 0.5rem;
    cursor: pointer;
}
@media (min-width: 1024px) {
    .hamburger-dashboard { display: none; }
}

/* Notifications Dropdown */
.notif-btn {
    position: relative;
    padding: 0.625rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1.125rem;
    color: var(--text-white);
}
.notif-btn:hover { background: rgba(255,255,255,0.1); }

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    background: var(--red-600);
    border: 2px solid var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 900;
    color: var(--text-white);
}

.notif-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 1rem);
    width: 320px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    z-index: 100;
    overflow: hidden;
    display: none;
}
.notif-dropdown.active { display: block; }

.notif-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.05);
}

.notif-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notif-action-btn {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition-fast);
}
.notif-action-btn.blue { color: var(--blue-400); }
.notif-action-btn.blue:hover { color: var(--blue-500); }
.notif-action-btn.red { color: var(--red-400); }
.notif-action-btn.red:hover { color: var(--red-500); }
.notif-action-btn.green { color: var(--emerald-400); }
.notif-action-btn.green:hover { color: var(--emerald-500); }

.notif-list {
    max-height: 24rem;
    overflow-y: auto;
}

.notif-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.notif-item:hover { background: var(--bg-hover); }
.notif-item.unread { background: rgba(59, 130, 246, 0.05); }
.notif-item.read { opacity: 0.6; }

.notif-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--slate-800);
    color: var(--slate-400);
}

.notif-delete-btn {
    padding: 0.375rem;
    background: rgba(239,68,68,0.1);
    border-radius: var(--radius-lg);
    border: none;
    color: var(--red-500);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.75rem;
}
.notif-delete-btn:hover { background: rgba(239,68,68,0.2); }

/* Server Status */
.server-status {
    display: none;
    align-items: center;
    gap: 0.5rem;
}
@media (min-width: 640px) {
    .server-status { display: flex; }
}

/* Treasury Badge */
.treasury-badge {
    display: none;
    flex-direction: column;
    align-items: flex-end;
}
@media (min-width: 640px) {
    .treasury-badge { display: flex; }
}

.treasury-label {
    font-size: 9px;
    font-weight: 900;
    color: var(--slate-500);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
}
@media (min-width: 1024px) {
    .treasury-label { font-size: 10px; }
}

.treasury-value {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--emerald-400);
    white-space: nowrap;
}
@media (min-width: 1024px) {
    .treasury-value { font-size: 0.875rem; }
}

/* Dashboard Content Area */
.dashboard-content {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-primary);
    padding: 1.5rem;
}
@media (min-width: 1024px) {
    .dashboard-content { padding: 2rem; }
}

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--slate-500);
    font-size: 0.8125rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (min-width: 640px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    transition: all var(--transition-base);
}
.stat-card:hover {
    border-color: var(--border-blue);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-white);
}

.stat-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
    margin-top: 0.25rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state-text {
    font-size: 0.625rem;
    color: var(--slate-600);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fadeIn { animation: fadeIn 0.5s ease; }
.animate-slideUp { animation: slideUp 0.5s ease; }
.animate-pulse { animation: pulse 2s infinite; }

/* --- Responsive Utilities --- */
@media (max-width: 639px) {
    .sm\:hidden { display: none !important; }
}

@media (min-width: 640px) {
    .sm\:flex { display: flex; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:w-half { width: 50%; }
}

@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none !important; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
