﻿/* =========================================================
   MAIN.CSS
   Тёмная фиолетовая тема / glassmorphism / дипломный проект
   ========================================================= */

/* =========================
   1. ROOT / THEME TOKENS
   ========================= */
:root {
    --bg-0: #06060a;
    --bg-1: #0b0b12;
    --bg-2: #10101a;
    --bg-3: #161624;
    --bg-4: #1d1d30;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-2: rgba(255, 255, 255, 0.075);
    --surface-3: rgba(255, 255, 255, 0.11);
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text-main: #f5f3ff;
    --text-soft: #cfc7e9;
    --text-muted: #968fb4;
    --text-dim: #76708f;
    --accent: #8b5cf6;
    --accent-2: #a855f7;
    --accent-3: #6d28d9;
    --accent-4: #c084fc;
    --cyan: #67e8f9;
    --pink: #f472b6;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #fb7185;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.42);
    --glow-accent: 0 0 0 1px rgba(139, 92, 246, 0.18), 0 0 22px rgba(139, 92, 246, 0.24);
    --glow-cyan: 0 0 0 1px rgba(103, 232, 249, 0.12), 0 0 22px rgba(103, 232, 249, 0.18);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --container: 1280px;
    --blur: 18px;
    --blur-strong: 28px;
    --transition-fast: 0.18s ease;
    --transition: 0.28s ease;
    --transition-slow: 0.45s ease;
}

/* =========================
   2. RESET
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

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

body {
    font-family: "Segoe UI", "Inter", "Arial", sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at 12% 16%, rgba(139, 92, 246, 0.22), transparent 24%), radial-gradient(circle at 84% 18%, rgba(168, 85, 247, 0.18), transparent 22%), radial-gradient(circle at 72% 82%, rgba(103, 232, 249, 0.08), transparent 18%), radial-gradient(circle at 18% 88%, rgba(244, 114, 182, 0.08), transparent 16%), linear-gradient(145deg, #040407 0%, #0a0a12 30%, #0e0d18 58%, #09090f 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    line-height: 1.55;
}

    /* Декоративный живой фон */
    body::before,
    body::after {
        content: "";
        position: fixed;
        inset: auto;
        pointer-events: none;
        z-index: -1;
        border-radius: 50%;
        filter: blur(90px);
        opacity: 0.75;
    }

    body::before {
        width: 520px;
        height: 520px;
        top: -140px;
        left: -120px;
        background: radial-gradient(circle, rgba(139, 92, 246, 0.26) 0%, rgba(139, 92, 246, 0.12) 35%, transparent 72%);
        animation: floatGlow1 18s ease-in-out infinite;
    }

    body::after {
        width: 620px;
        height: 620px;
        right: -180px;
        top: 18%;
        background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(103, 232, 249, 0.10) 28%, transparent 72%);
        animation: floatGlow2 22s ease-in-out infinite;
    }

@keyframes floatGlow1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, 60px) scale(1.08);
    }
}

@keyframes floatGlow2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50px, 40px) scale(1.06);
    }
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button,
input,
select,
textarea {
    font: inherit;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* =========================
   3. SCROLLBAR
   ========================= */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.75), rgba(168, 85, 247, 0.55));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, rgba(192, 132, 252, 0.88), rgba(139, 92, 246, 0.72));
    }

/* =========================
   4. LAYOUT
   ========================= */
.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.page-shell {
    min-height: 100vh;
    position: relative;
    padding-bottom: 32px;
}

.section {
    margin: 28px 0;
}

    .section + .section {
        margin-top: 36px;
    }

.grid {
    display: grid;
    gap: 20px;
}

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

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

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

.stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.row {
    display: flex;
    gap: 16px;
    align-items: center;
}

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

.wrap {
    flex-wrap: wrap;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   5. TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

.page-title,
.hero-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    max-width: 10ch;
}

.title-gradient {
    background: linear-gradient(90deg, #f5f3ff 0%, #d8b4fe 28%, #a78bfa 54%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

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

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

.text-dim {
    color: var(--text-dim);
}

.text-xs {
    font-size: 0.78rem;
}

.text-sm {
    font-size: 0.9rem;
}

.text-md {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.12rem;
}

.text-xl {
    font-size: 1.32rem;
}

.text-center {
    text-align: center;
}

/* =========================
   6. GLASS / PANELS / CARDS
   ========================= */
.glass,
.panel,
.card,
.sidebar,
.navbar,
.modal,
.table-wrap,
.form-shell,
.hero,
.stat-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    overflow: hidden;
}

    .glass::before,
    .panel::before,
    .card::before,
    .sidebar::before,
    .navbar::before,
    .modal::before,
    .table-wrap::before,
    .form-shell::before,
    .hero::before,
    .stat-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), transparent 24%, transparent 72%, rgba(255, 255, 255, 0.04));
        pointer-events: none;
    }

.panel,
.card,
.stat-card,
.form-shell,
.table-wrap {
    padding: 22px;
}

.card-hover {
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

    .card-hover:hover {
        transform: translateY(-5px);
        border-color: rgba(192, 132, 252, 0.34);
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36), 0 0 28px rgba(139, 92, 246, 0.18);
    }

.card-accent {
    box-shadow: var(--shadow-md), var(--glow-accent);
}

.card-cyan {
    box-shadow: var(--shadow-md), var(--glow-cyan);
}

/* =========================
   7. HERO
   ========================= */
.hero {
    padding: 34px;
    min-height: 260px;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 28px;
    align-items: center;
    border-radius: var(--radius-xl);
}

    .hero::after {
        content: "";
        position: absolute;
        inset: auto -60px -90px auto;
        width: 340px;
        height: 340px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 68%);
        filter: blur(16px);
        pointer-events: none;
    }

.hero-subtitle {
    color: var(--text-soft);
    max-width: 62ch;
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.hero-side {
    display: grid;
    gap: 16px;
}

/* =========================
   8. NAVBAR / HEADER
   ========================= */
.navbar {
    position: sticky;
    top: 14px;
    z-index: 40;
    margin: 18px auto 24px;
    width: min(var(--container), calc(100% - 32px));
    padding: 14px 18px;
    border-radius: 22px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(168, 85, 247, 0.85));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(139, 92, 246, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text-soft);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--text-main);
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.08);
    }

/* =========================
   9. SIDEBAR
   ========================= */
.sidebar {
    padding: 18px;
    height: 100%;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--text-soft);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

    .sidebar-link:hover,
    .sidebar-link.active {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(192, 132, 252, 0.22);
        color: var(--text-main);
        box-shadow: 0 10px 24px rgba(139, 92, 246, 0.12);
    }

/* =========================
   10. BUTTONS
   ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
    user-select: none;
}

    .btn:active {
        transform: translateY(1px) scale(0.995);
    }

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.30), 0 0 20px rgba(168, 85, 247, 0.18);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 36px rgba(139, 92, 246, 0.38), 0 0 28px rgba(192, 132, 252, 0.24);
    }

.btn-secondary {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border);
}

    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.10);
        border-color: var(--border-strong);
    }

.btn-ghost {
    color: var(--text-soft);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
}

    .btn-ghost:hover {
        color: var(--text-main);
        background: rgba(255, 255, 255, 0.05);
    }

.btn-danger {
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.92), rgba(244, 63, 94, 0.88));
    color: #fff;
    box-shadow: 0 12px 26px rgba(244, 63, 94, 0.26);
}

.btn-sm {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.92rem;
}

.btn-lg {
    min-height: 54px;
    padding: 14px 22px;
    border-radius: 16px;
    font-size: 1rem;
}

/* =========================
   11. BADGES / STATUS
   ========================= */
.badge,
.chip,
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-soft);
    font-size: 0.86rem;
    font-weight: 600;
}

.badge-accent {
    color: #f3e8ff;
    background: rgba(139, 92, 246, 0.17);
    border-color: rgba(192, 132, 252, 0.28);
}

.badge-cyan {
    color: #dcfefe;
    background: rgba(103, 232, 249, 0.10);
    border-color: rgba(103, 232, 249, 0.18);
}

.badge-success {
    color: #dcfce7;
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.2);
}

.badge-warning {
    color: #fef3c7;
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.22);
}

.badge-danger {
    color: #ffe4e6;
    background: rgba(251, 113, 133, 0.12);
    border-color: rgba(251, 113, 133, 0.20);
}

/* =========================
   12. STATS
   ========================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    padding: 20px;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-value {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.stat-note {
    color: var(--text-dim);
    font-size: 0.88rem;
}

/* =========================
   13. FORMS
   ========================= */
.form-shell {
    padding: 24px;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .field.full {
        grid-column: 1 / -1;
    }

.label {
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 600;
}

.input,
.select,
.textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="search"],
select,
textarea {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    outline: none;
    padding: 12px 14px;
    color: var(--text-main);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.045));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

textarea,
.textarea {
    min-height: 130px;
    resize: vertical;
    padding-top: 14px;
}

    .input::placeholder,
    .textarea::placeholder,
    input::placeholder,
    textarea::placeholder {
        color: var(--text-dim);
    }

    .input:focus,
    .select:focus,
    .textarea:focus,
    input:focus,
    select:focus,
    textarea:focus {
        border-color: rgba(192, 132, 252, 0.38);
        box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14), 0 0 24px rgba(139, 92, 246, 0.12);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.05));
    }

.field-hint {
    color: var(--text-dim);
    font-size: 0.82rem;
}

.validation-error,
.field-validation-error,
.text-danger {
    color: #fda4af;
    font-size: 0.85rem;
}

/* Checkboxes / radios */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--accent);
}

/* =========================
   14. TABLES
   ========================= */
.table-wrap {
    padding: 14px;
    overflow: hidden;
}

.table-scroll {
    overflow: auto;
    border-radius: 16px;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 780px;
}

    .table thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        text-align: left;
        padding: 14px 16px;
        color: var(--text-soft);
        font-weight: 700;
        font-size: 0.92rem;
        background: rgba(255, 255, 255, 0.06);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .table tbody td {
        padding: 14px 16px;
        color: var(--text-soft);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(255, 255, 255, 0.02);
    }

    .table tbody tr {
        transition: background var(--transition-fast), transform var(--transition-fast);
    }

        .table tbody tr:hover td {
            background: rgba(255, 255, 255, 0.05);
        }

        .table tbody tr:last-child td:first-child {
            border-bottom-left-radius: 14px;
        }

        .table tbody tr:last-child td:last-child {
            border-bottom-right-radius: 14px;
        }

/* =========================
   15. LIST / ITEM CARDS
   ========================= */
.list {
    display: grid;
    gap: 16px;
}

.list-item {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.035));
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

    .list-item:hover {
        transform: translateY(-4px);
        border-color: rgba(192, 132, 252, 0.24);
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32), 0 0 24px rgba(139, 92, 246, 0.16);
    }

.list-item-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.list-item-title {
    font-size: 1.12rem;
    font-weight: 700;
}

.list-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* =========================
   16. MAP BLOCK
   ========================= */
.map-shell {
    position: relative;
    min-height: 520px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    box-shadow: var(--shadow-lg);
}

    .map-shell::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 18%), radial-gradient(circle at 85% 10%, rgba(139, 92, 246, 0.14), transparent 22%);
        z-index: 1;
    }

.map-canvas,
#map {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border-radius: inherit;
}

.map-toolbar {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

    .map-toolbar > * {
        pointer-events: auto;
    }

.map-panel {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(10, 10, 18, 0.58);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
}

/* =========================
   17. FILTER CHIPS
   ========================= */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.05);
    color: var(--text-soft);
    cursor: pointer;
    transition: all var(--transition-fast);
}

    .filter-chip:hover,
    .filter-chip.active {
        color: var(--text-main);
        border-color: rgba(192, 132, 252, 0.28);
        background: rgba(139, 92, 246, 0.15);
        box-shadow: 0 10px 22px rgba(139, 92, 246, 0.12);
    }

/* =========================
   18. MODALS / DRAWERS
   ========================= */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(3, 3, 8, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal {
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 110;
    width: min(720px, calc(100% - 24px));
    padding: 24px;
    border-radius: 28px;
}

.modal-header,
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.modal-body {
    margin: 18px 0;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(460px, 100%);
    height: 100vh;
    z-index: 110;
    padding: 22px;
    border-left: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(18,18,28,0.94), rgba(10,10,16,0.96));
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(var(--blur-strong));
    -webkit-backdrop-filter: blur(var(--blur-strong));
    overflow-y: auto;
}

/* =========================
   19. ALERTS / EMPTY STATES
   ========================= */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
}

.alert-info {
    border-color: rgba(103, 232, 249, 0.18);
    background: rgba(103, 232, 249, 0.06);
}

.alert-success {
    border-color: rgba(52, 211, 153, 0.18);
    background: rgba(52, 211, 153, 0.06);
}

.alert-warning {
    border-color: rgba(251, 191, 36, 0.20);
    background: rgba(251, 191, 36, 0.07);
}

.alert-danger {
    border-color: rgba(251, 113, 133, 0.20);
    background: rgba(251, 113, 133, 0.07);
}

.empty-state {
    padding: 34px 22px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.035);
}

/* =========================
   20. TABS
   ========================= */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tab {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: var(--text-soft);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

    .tab:hover,
    .tab.active {
        color: var(--text-main);
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(192, 132, 252, 0.18);
    }

/* =========================
   21. PAGINATION
   ========================= */
.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-link {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--text-soft);
    background: rgba(255,255,255,0.04);
    transition: all var(--transition-fast);
}

    .page-link:hover,
    .page-link.active {
        color: #fff;
        background: linear-gradient(135deg, var(--accent), var(--accent-2));
        border-color: transparent;
        box-shadow: 0 10px 24px rgba(139, 92, 246, 0.18);
    }

/* =========================
   22. DROPDOWNS / MENUS
   ========================= */
.dropdown-menu {
    min-width: 220px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(24,24,36,0.95), rgba(12,12,20,0.96));
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-soft);
    transition: all var(--transition-fast);
}

    .dropdown-item:hover {
        color: var(--text-main);
        background: rgba(255, 255, 255, 0.06);
    }

/* =========================
   23. FOOTER
   ========================= */
.footer {
    margin-top: 40px;
    padding: 26px 0 12px;
    color: var(--text-dim);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* =========================
   24. HELPERS
   ========================= */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.radius-sm {
    border-radius: var(--radius-sm);
}

.radius-md {
    border-radius: var(--radius-md);
}

.radius-lg {
    border-radius: var(--radius-lg);
}

.radius-xl {
    border-radius: var(--radius-xl);
}

.border {
    border: 1px solid var(--border);
}

.border-strong {
    border: 1px solid var(--border-strong);
}

.glow-accent {
    box-shadow: var(--shadow-md), var(--glow-accent);
}

.glow-cyan {
    box-shadow: var(--shadow-md), var(--glow-cyan);
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 12px;
}

.mt-3 {
    margin-top: 18px;
}

.mt-4 {
    margin-top: 24px;
}

.mt-5 {
    margin-top: 32px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 12px;
}

.mb-3 {
    margin-bottom: 18px;
}

.mb-4 {
    margin-bottom: 24px;
}

.mb-5 {
    margin-bottom: 32px;
}

.p-0 {
    padding: 0;
}

.p-1 {
    padding: 8px;
}

.p-2 {
    padding: 12px;
}

.p-3 {
    padding: 18px;
}

.p-4 {
    padding: 24px;
}

.p-5 {
    padding: 32px;
}

.hidden {
    display: none !important;
}

/* =========================
   25. ANIMATIONS
   ========================= */
.fade-in {
    animation: fadeInUp 0.55s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shine {
    position: relative;
    overflow: hidden;
}

    .shine::after {
        content: "";
        position: absolute;
        top: -120%;
        left: -30%;
        width: 40%;
        height: 300%;
        background: linear-gradient( 90deg, transparent, rgba(255,255,255,0.18), transparent );
        transform: rotate(20deg);
        transition: transform 0.9s ease;
        pointer-events: none;
    }

    .shine:hover::after {
        transform: translateX(320%) rotate(20deg);
    }

/* =========================
   26. AUTH PAGES
   ========================= */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: stretch;
    padding: 18px;
}

.auth-cover,
.auth-card {
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.auth-cover {
    background: radial-gradient(circle at 20% 18%, rgba(139,92,246,0.30), transparent 24%), radial-gradient(circle at 80% 24%, rgba(168,85,247,0.22), transparent 26%), radial-gradient(circle at 68% 80%, rgba(103,232,249,0.10), transparent 18%), linear-gradient(145deg, #0b0b12 0%, #111122 48%, #0a0a10 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.auth-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.045));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(var(--blur-strong));
    -webkit-backdrop-filter: blur(var(--blur-strong));
    padding: 34px;
    display: flex;
    align-items: center;
}

.auth-card-inner {
    width: min(460px, 100%);
    margin: 0 auto;
}

/* =========================
   27. DASHBOARD LAYOUT
   ========================= */
.dashboard-shell {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.dashboard-main {
    min-width: 0;
}

/* =========================
   28. RESPONSIVE
   ========================= */
@media (max-width: 1200px) {
    .grid-4,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 992px) {
    .dashboard-shell,
    .auth-shell,
    .grid-3,
    .grid-2,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        top: 10px;
    }

    .navbar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .hero {
        padding: 24px;
        min-height: auto;
    }

    .auth-cover {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(var(--container), calc(100% - 20px));
    }

    .panel,
    .card,
    .stat-card,
    .form-shell,
    .table-wrap,
    .hero,
    .sidebar,
    .modal {
        padding: 18px;
        border-radius: 20px;
    }

    .grid-4,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
    }

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

    .row,
    .row-between {
        flex-wrap: wrap;
    }

    .map-shell,
    .map-canvas,
    #map {
        min-height: 380px;
    }
}

@media (max-width: 576px) {
    .btn,
    .btn-lg,
    .btn-sm {
        width: 100%;
    }

    .hero-actions,
    .pagination,
    .filters,
    .tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .navbar {
        width: calc(100% - 16px);
        margin-top: 10px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .auth-shell {
        padding: 10px;
    }

    .auth-card,
    .auth-cover {
        border-radius: 22px;
    }
}
