:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-2: #f9fbff;
    --surface-blue: #f6f9ff;
    --surface-green: #f6fbf8;
    --surface-warm: #fffaf5;
    --surface-lilac: #fbf8ff;
    --text: #10213a;
    --muted: #607086;
    --line: #d8e1f0;
    --primary: #0b4dcc;
    --primary-2: #093a99;
    --accent: #ff7a18;
    --success: #0b8f5b;
    --danger: #c43a31;
    --shadow: 0 18px 40px rgba(14, 34, 73, 0.10);
    --shadow-soft: 0 8px 24px rgba(14, 34, 73, 0.06);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

body.admin-page {
    font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", sans-serif;
    color: var(--text);
    background:
        radial-gradient(ellipse at 20% 0%, rgba(11, 77, 204, 0.06), transparent 50%),
        radial-gradient(ellipse at 80% 0%, rgba(255, 122, 24, 0.04), transparent 40%),
        linear-gradient(180deg, #edf2f8 0%, #f5f7fb 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.admin-page .container {
    max-width: 1400px;
}

.admin-page .panel,
.admin-page .admin-card,
.admin-page .summary-card,
.admin-page .security-card {
    border-radius: 22px;
    border: 1px solid rgba(216, 225, 240, 0.7);
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
    box-shadow: 0 4px 20px rgba(14, 34, 73, 0.05);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.admin-page .admin-card:hover,
.admin-page .summary-card:hover {
    box-shadow: 0 12px 32px rgba(14, 34, 73, 0.09);
    transform: translateY(-2px);
}

.admin-page .panel {
    padding: 26px 28px;
}

.admin-page .admin-card,
.admin-page .summary-card,
.admin-page .security-card {
    padding: 22px;
}

.admin-page .panel-title {
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #0f172a;
    font-weight: 800;
}

.admin-page .panel-subtitle {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin-top: 4px;
}

.admin-page .summary-label,
.admin-page .small-copy,
.admin-page .admin-sidebar-stat,
.admin-page .admin-footer {
    color: #607086;
}

.admin-page .summary-value {
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: rgba(8, 17, 29, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.admin-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
}

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

.admin-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #e0e8f4;
}

.admin-nav-links a {
    opacity: 0.85;
    transition: all 0.2s ease;
}

.admin-nav-links a:hover {
    opacity: 1;
    color: #ffffff;
}

.admin-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #e0e8f4;
}

.admin-layout {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: 72px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(175deg, #0a1628 0%, #122240 50%, #162d4e 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 20px 50px rgba(8, 14, 28, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.admin-sidebar-brand,
.admin-sidebar-card,
.admin-shortcuts {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    padding: 14px;
    color: #dde6f4;
}

.admin-sidebar-brand strong,
.admin-sidebar-card strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.admin-sidebar-brand small,
.admin-sidebar-card p {
    color: #9bb0d0;
    font-size: 12.5px;
    line-height: 1.5;
}

.admin-nav-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-nav-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-nav-label {
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: #6b84a8;
    padding: 6px 6px 2px;
    margin-top: 2px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #cdd8ea;
    border: 1px solid transparent;
    background: transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

.admin-shortcut-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-shortcut-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #dde6f4;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s ease;
}

.admin-nav-link:hover,
.admin-shortcut-link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(2px);
}

.admin-nav-link.active,
.admin-shortcut-link.active {
    background: linear-gradient(135deg, rgba(11, 77, 204, 0.28), rgba(56, 152, 236, 0.18));
    border-color: rgba(100, 180, 255, 0.25);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(11, 77, 204, 0.15);
}

.admin-nav-link:hover,
.admin-shortcut-link:hover {
    box-shadow: 0 4px 12px rgba(5, 17, 31, 0.12);
}

.admin-sidebar-stat {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    color: #9bb0d0;
    padding: 6px 0;
}

.admin-sidebar-stat+.admin-sidebar-stat {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.admin-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(11, 77, 204, 0.25), rgba(56, 152, 236, 0.2));
    border: 1px solid rgba(100, 180, 255, 0.2);
    color: #8ec5ff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-footer {
    margin-top: 28px;
    border-top: 1px solid rgba(12, 18, 28, 0.06);
    background: rgba(247, 250, 252, 0.96);
}

.admin-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0 18px;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: #94a3b8;
    flex-wrap: wrap;
}

.admin-page .eyebrow {
    letter-spacing: 0.14em;
}

/* ── Link Icons & Arrows ──────────────────────────────────── */
.admin-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex: 0 0 20px;
}

.admin-link-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.8;
}

.admin-nav-link.active .admin-link-icon svg,
.admin-shortcut-link.active .admin-link-icon svg {
    opacity: 1;
}

.admin-link-text {
    flex: 1 1 auto;
    min-width: 0;
}

.admin-link-arrow {
    opacity: 0.35;
    font-size: 14px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-nav-link:hover .admin-link-arrow,
.admin-shortcut-link:hover .admin-link-arrow,
.admin-nav-link.active .admin-link-arrow,
.admin-shortcut-link.active .admin-link-arrow {
    opacity: 0.7;
    transform: translateX(2px);
}

.admin-matrix {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.admin-matrix th,
.admin-matrix td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    padding: 14px 12px;
    text-align: left;
    vertical-align: top;
}

.admin-matrix th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.admin-matrix td {
    font-size: 14px;
    color: #0f172a;
}

.admin-matrix tbody tr:hover {
    background: rgba(13, 79, 95, 0.03);
}

@media (max-width: 1200px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        top: 0;
        max-height: none;
    }
}

@media (max-width: 900px) {
    .admin-nav-links {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .admin-topbar-inner {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
        padding: 12px 0 !important;
    }

    .admin-topbar-meta {
        justify-content: center !important;
        width: 100% !important;
    }

    body.admin-page .admin-topbar-inner .brand {
        justify-content: center !important;
        text-align: center !important;
        min-width: 0 !important;
    }

    .admin-footer-inner {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    background:
        radial-gradient(circle at top left, rgba(11, 77, 204, 0.10), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 122, 24, 0.10), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
    color: var(--text);
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(10, 24, 52, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 240px;
    padding-left: 15px;
}

.brand-logo-icon {
    height: 42px;
    width: 42px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.header-logo {
    height: 42px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    padding-left: 15px;
    border-radius: 10px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #2d6dff, #0b4dcc);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 12px 20px rgba(11, 77, 204, 0.3);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.brand-copy strong {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.brand-copy small {
    color: rgba(255, 255, 255, 0.72);
    margin-top: 2px;
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #eef4ff;
    font-size: 14px;
    font-weight: 600;
    flex-wrap: wrap;
}

.nav-links a {
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #eef4ff;
    font-weight: 600;
}

.dropdown-arrow {
    display: inline-block;
    width: 10px;
    height: 6px;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #0a1834;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    min-width: 220px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    padding: 8px 0;
    z-index: 100;
    max-height: 380px;
    overflow-y: auto;
    margin-top: 8px;
}

.dropdown-menu-right {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #eef4ff;
    font-size: 13px;
    opacity: 0.85;
    text-decoration: none;
    transition: background 0.15s ease, opacity 0.15s ease;
    text-align: left;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
    color: #fff;
    transform: none;
}

.dropdown-logout-btn {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 10px 16px;
    font-size: 13px;
    color: #ff5c5c;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.85;
    transition: background 0.15s ease, opacity 0.15s ease, color 0.15s ease;
}

.dropdown-logout-btn:hover {
    background: rgba(255, 92, 92, 0.08);
    color: #ff7878;
    opacity: 1;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-pill {
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
}

.btn,
.search-button,
.swap-button,
.vote-button,
.action-button {
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.search-button:hover,
.swap-button:hover,
.vote-button:hover,
.action-button:hover {
    transform: translateY(-1px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ff9a45);
    color: #fff;
    box-shadow: 0 12px 24px rgba(255, 122, 24, 0.24);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.hero-section {
    padding: 42px 0 28px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
    gap: 30px;
    align-items: stretch;
}

.hero-content {
    padding: 22px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(11, 77, 204, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-content h1 {
    font-size: clamp(31px, 4vw, 48px);
    line-height: 1.08;
    margin-bottom: 16px;
    color: var(--text);
    letter-spacing: -0.03em;
    max-width: 14ch;
}

.hero-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 60ch;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-point {
    padding: 10px 13px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
}

.route-search-box {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
    padding: 24px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(216, 225, 240, 0.8);
    box-shadow: var(--shadow);
}

.search-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 13px;
    background: #fff;
    color: var(--text);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(11, 77, 204, 0.55);
    box-shadow: 0 0 0 4px rgba(11, 77, 204, 0.12);
}

.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
    align-items: end;
}

.swap-button {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--text);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: var(--shadow-soft);
}

.search-button {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #2c74ff);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 14px 24px rgba(11, 77, 204, 0.28);
}

.features-section {
    padding: 24px 0 70px;
}

.section-title {
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.12;
    margin-bottom: 22px;
    color: var(--text);
    text-align: center;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.city-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9ff 100%);
    border: 1px solid rgba(216, 225, 240, 0.9);
    box-shadow: var(--shadow-soft);
}

.city-card:nth-child(3n+1) {
    background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
}

.city-card:nth-child(3n+2) {
    background: linear-gradient(180deg, #fcfff9 0%, #f6fbf8 100%);
}

.city-card:nth-child(3n+3) {
    background: linear-gradient(180deg, #fffcf8 0%, #fff8f2 100%);
}

.city-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.city-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.city-copy {
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 16px;
    font-size: 14px;
}

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

.timetable-card {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(216, 225, 240, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    box-shadow: var(--shadow-soft);
}

.timetable-card-head {
    padding: 16px 18px;
    color: #fff;
}

.timetable-card-head small {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: 700;
}

.timetable-card-head h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.timetable-first .timetable-card-head {
    background: linear-gradient(135deg, #08b46a, #0dc87b);
}

.timetable-last .timetable-card-head {
    background: linear-gradient(135deg, #0b4dcc, #1b64f2);
}

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

.timetable-table thead th {
    background: #43474f;
    color: #fff;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.timetable-table tbody td {
    padding: 11px 16px;
    border-top: 1px solid rgba(216, 225, 240, 0.9);
    color: var(--text);
    font-size: 14px;
    background: #fff;
}

.timetable-table tbody tr:nth-child(even) td {
    background: #fafcff;
}

.line-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.line-pill {
    width: 56px;
    min-height: 96px;
    border-radius: 16px;
    background: var(--line-color, var(--primary));
    color: #fff;
    display: grid;
    place-items: center;
    padding: 10px 8px;
    box-shadow: 0 14px 22px rgba(14, 34, 73, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.line-pill span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.line-board-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.line-board {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(216, 225, 240, 0.9);
    border-top: 5px solid var(--line-color, var(--primary));
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--shadow-soft);
}

.line-board-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.line-board-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}



/* =========================================================
   METRO LINE BOARD
========================================================= */

.line-board {
    position: relative;
    overflow: hidden;
}

/* =========================================================
   LINE TRACK
========================================================= */

.line-track {
    position: relative;
    display: flex;
    align-items: center;
    /* width: max-content; */
    min-width: 100%;
    padding:
        120px 110px 48px 26px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    gap: 0;
}

/* =========================================================
   METRO LINE
========================================================= */

.line-track::before {
    content: "";
    position: absolute;
    left: 26px;
    right: 110px;
    top: 129px;
    height: 4px;
    background: var(--line-color);
    border-radius: 999px;
    z-index: 1;
}

/* =========================================================
   STATION SLOT
========================================================= */

.line-stop {
    position: relative;
    flex: 0 0 60px;
    width: 60px;
    min-width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

/* First station */

.line-stop:first-child {
    margin-left: 0;
}

/* Last station extra visibility */

.line-stop:last-child {
    margin-right: 80px;
}

/* =========================================================
   STATION DOT
========================================================= */

.line-stop-dot {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--line-color);
    box-sizing: border-box;
    z-index: 3;
}

/* Interchange */

.line-stop.interchange .line-stop-dot {
    background: var(--line-color);
    border-color: #ff8800;
}

/* =========================================================
   STATION LABEL
========================================================= */

.line-stop-name {
    position: absolute;
    left: 50%;
    bottom: 22px;
    width: 110px;
    transform:
        translateX(10px) rotate(-42deg);
    transform-origin: bottom left;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: #0f172a;
    white-space: nowrap;
    text-align: left;
    pointer-events: none;
    z-index: 4;
}

/* =========================================================
   SCROLLBAR
========================================================= */

.line-track::-webkit-scrollbar {
    height: 8px;
}

.line-track::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
}

.line-track::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .line-track {
        padding:
            118px 90px 40px 18px;
    }

    .line-track::before {
        left: 18px;
        right: 90px;
        top: 127px;
    }

    .line-stop {
        flex: 0 0 52px;

        width: 52px;
        min-width: 52px;
    }

    .line-stop:last-child {
        margin-right: 65px;
    }

    .line-stop-dot {
        width: 16px;
        height: 16px;
    }

    .line-stop-name {
        width: 92px;
        bottom: 18px;
        font-size: 11px;
        transform:
            translateX(8px) rotate(-48deg);
    }
}


.feature-card,
.panel,
.summary-card,
.timeline-card,
.stats-card,
.info-card,
.review-card,
.facility-card,
.feedback-card,
.auth-card,
.admin-card {
    border: 1px solid rgba(216, 225, 240, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.feature-card,
.summary-card,
.info-card,
.auth-card,
.admin-card {
    padding: 18px;
}

.feature-card {
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9ff 100%);
}

.feature-card:nth-child(3n+1) {
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9ff 100%);
}

.feature-card:nth-child(3n+2) {
    background: linear-gradient(180deg, #fcfff9 0%, #f6fbf8 100%);
}

.feature-card:nth-child(3n+3) {
    background: linear-gradient(180deg, #fffaf6 0%, #fff6ee 100%);
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 17px;
    color: var(--text);
    font-weight: 700;
}

.feature-card p,
.summary-note,
.muted {
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.site-footer {
    margin-top: 50px;
    padding: 24px 0 30px;
    border-top: 1px solid rgba(216, 225, 240, 0.8);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 247, 251, 0.96));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
    color: var(--muted);
}

.footer-grid strong {
    color: var(--text);
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
}

.footer-grid p {
    max-width: 54ch;
    line-height: 1.7;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(216, 225, 240, 0.8);
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
}

.page-shell {
    padding: 28px 0 72px;
}

.result-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
    gap: 22px;
    align-items: start;
}

.panel {
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.panel-subtitle {
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.6;
    font-size: 14px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
}

.action-button.primary {
    background: linear-gradient(135deg, var(--primary), #2c74ff);
    color: #fff;
    border-color: transparent;
}

.action-button.accent {
    background: linear-gradient(135deg, var(--accent), #ff9a45);
    color: #fff;
    border-color: transparent;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.summary-card {
    padding: 16px;
}

.summary-card:nth-child(4n+1) {
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9ff 100%);
}

.summary-card:nth-child(4n+2) {
    background: linear-gradient(180deg, #fcfff9 0%, #f6fbf8 100%);
}

.summary-card:nth-child(4n+3) {
    background: linear-gradient(180deg, #fffaf6 0%, #fff6ee 100%);
}

.summary-card:nth-child(4n+4) {
    background: linear-gradient(180deg, #fbf8ff 0%, #f6f0ff 100%);
}

.summary-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
}

.summary-small {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.timeline-card {
    padding: 16px;
    border-left: 6px solid var(--primary);
    background: linear-gradient(180deg, #fcfdff 0%, #f7faff 100%);
}

.timeline-card.interchange {
    border-left-color: var(--accent);
    background: linear-gradient(180deg, #fffaf5 0%, #fff7ef 100%);
}

.timeline-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.station-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.station-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.line-chip,
.facility-chip,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.line-chip {
    color: #fff;
}

.line-chip.neutral {
    background: #64748b;
}

.facility-chip {
    background: rgba(11, 77, 204, 0.08);
    color: var(--primary);
}

.badge {
    background: rgba(11, 77, 204, 0.08);
    color: var(--primary);
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.timeline-note {
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 14px;
    background: #fff8ea;
    color: #8a5b14;
    font-weight: 600;
    font-size: 14px;
}

.section-block {
    margin-top: 22px;
}

.section-block h3,
.section-block h4 {
    color: var(--text);
    margin-bottom: 14px;
    font-size: 17px;
    font-weight: 700;
}

.station-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.stats-card {
    padding: 18px;
}

.stats-value {
    font-size: 21px;
    font-weight: 700;
    color: var(--text);
}

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

.station-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 8px;
}

.station-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(11, 77, 204, 0.08);
    border: 1px solid rgba(11, 77, 204, 0.12);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

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

.station-section-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.station-entry-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: var(--shadow-soft);
}

.station-entry-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.station-entry-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.station-direction {
    margin-top: 10px;
    color: var(--muted);
    font-weight: 600;
}

.station-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(11, 143, 91, 0.12);
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
}

.parking-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.parking-table-wrap {
    overflow: auto;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.parking-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: #ffffff;
}

.parking-table th,
.parking-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.parking-table th {
    background: #f8fbff;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.section-band {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(11, 77, 204, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.nearby-card {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.nearby-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.nearby-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
    font-size: 13px;
}

.editor-form {
    width: 100%;
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.editor-grid .form-group {
    margin-bottom: 0;
}

.vote-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vote-button {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
}

.vote-button.active-like {
    background: rgba(11, 143, 91, 0.10);
    border-color: rgba(11, 143, 91, 0.24);
    color: var(--success);
}

.vote-button.active-dislike {
    background: rgba(196, 58, 49, 0.10);
    border-color: rgba(196, 58, 49, 0.24);
    color: var(--danger);
}

.review-card,
.feedback-card {
    padding: 16px;
}

.review-card {
    background: linear-gradient(180deg, #fcfbff 0%, #f7f4ff 100%);
}

.feedback-card {
    background: linear-gradient(180deg, #fffdf8 0%, #fff8ef 100%);
}

.review-head,
.feedback-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}

.review-name {
    font-weight: 700;
    color: var(--text);
}

.review-rating {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
}

.review-body,
.feedback-body {
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.facility-card {
    padding: 14px;
    background: linear-gradient(180deg, #fbfcff 0%, #f6fbf8 100%);
}

.facility-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 14px;
}

.facility-state {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.facility-state.available {
    background: rgba(11, 143, 91, 0.12);
    color: var(--success);
}

.facility-state.unavailable {
    background: rgba(196, 58, 49, 0.12);
    color: var(--danger);
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.note-box {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(11, 77, 204, 0.07);
    color: var(--text);
    border: 1px solid rgba(11, 77, 204, 0.12);
    font-size: 14px;
}

.muted-card {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    border: 1px dashed var(--line);
    color: var(--muted);
    font-size: 14px;
}

.auth-layout {
    min-height: calc(100vh - 110px);
    display: grid;
    place-items: center;
    padding: 30px 0 60px;
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
    gap: 22px;
    align-items: stretch;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.auth-hero {
    max-width: none;
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(11, 77, 204, 0.12), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.auth-hero h1 {
    font-size: clamp(30px, 3.8vw, 46px);
    line-height: 1.08;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}

.auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.auth-feature {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.auth-feature strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 14px;
}

.auth-feature p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
    border: 1px solid var(--line);
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--primary), #2c74ff);
    color: #fff;
    border-color: transparent;
}

.admin-shell {
    padding: 26px 0 72px;
}

.admin-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: 92px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, #0d1f3f 0%, #10284f 100%);
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(6, 15, 36, 0.24);
}

.admin-sidebar .eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.admin-sidebar-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
}

.admin-sidebar-brand strong {
    font-size: 18px;
    letter-spacing: -0.02em;
}

.admin-sidebar-brand small {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
}

.admin-nav-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.admin-nav-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.58);
    margin-bottom: 2px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 14px;
    color: #eef4ff;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.admin-nav-link.active {
    background: rgba(255, 255, 255, 0.14);
}

.admin-sidebar-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-sidebar-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.admin-sidebar-card p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.6;
}

.admin-sidebar-stat {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
}

.admin-sidebar-stat:last-child {
    border-bottom: none;
}

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

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.admin-card {
    padding: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #f5f9ff 100%);
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-item {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.admin-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.admin-item p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.conversation-thread {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.conversation-message {
    border: 1px solid rgba(30, 58, 138, 0.12);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.conversation-message.user {
    background: rgba(244, 248, 255, 0.96);
}

.conversation-message.admin {
    background: rgba(239, 250, 242, 0.96);
    border-color: rgba(31, 132, 73, 0.16);
}

.conversation-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--muted);
}

.conversation-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(30, 58, 138, 0.08);
    color: var(--primary);
}

.conversation-message.admin .conversation-role {
    background: rgba(31, 132, 73, 0.12);
    color: #1f8449;
}

.conversation-body {
    color: var(--text);
    line-height: 1.6;
}

.feedback-reply-form {
    margin-top: 16px;
    padding-top: 6px;
}

.status-pill {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
}

.status-pill.open,
.status-pill.under_review {
    background: rgba(255, 122, 24, 0.12);
    color: #b86212;
}

.status-pill.resolved {
    background: rgba(11, 143, 91, 0.12);
    color: var(--success);
}

.route-map-view {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.small-copy {
    font-size: 13px;
    color: var(--muted);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.security-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--shadow-soft);
}

.compact-station-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.compact-station-subtitle {
    font-size: 12px;
    color: var(--muted);
    word-break: break-word;
}

.inline-kbd {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    background: #eef3ff;
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
}

body.route-page {
    background:
        radial-gradient(circle at top right, rgba(11, 77, 204, 0.12), transparent 24%),
        radial-gradient(circle at top left, rgba(255, 122, 24, 0.08), transparent 20%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

body.route-page .container {
    max-width: 1400px;
}

body.route-page .panel {
    padding: 24px 26px;
}

body.route-page .route-hero {
    display: grid;
    gap: 20px;
}

body.route-page .route-hero-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

body.route-page .route-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(11, 77, 204, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

body.route-page .route-title {
    font-size: clamp(28px, 3.8vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--text);
    margin-bottom: 12px;
}

body.route-page .route-subtitle {
    max-width: 70ch;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

body.route-page .route-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body.route-page .route-quick-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.route-page .route-fact {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(216, 225, 240, 0.9);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: var(--shadow-soft);
}

body.route-page .route-fact-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

body.route-page .route-fact-value {
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

body.route-page .route-fact-note {
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

body.route-page .result-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
    gap: 22px;
    align-items: start;
}

body.route-page .route-main,
body.route-page .route-sidebar {
    min-width: 0;
}

body.route-page .route-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body.route-page .route-sidebar .panel {
    position: sticky;
    top: 94px;
}

body.route-page .route-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
}

body.route-page .route-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

body.route-page .route-legend-line,
body.route-page .route-legend-dot,
body.route-page .route-help-bullet {
    display: inline-block;
    background: var(--line-color, var(--primary));
}

body.route-page .route-legend-line {
    width: 18px;
    height: 3px;
    border-radius: 999px;
}

body.route-page .route-legend-dot,
body.route-page .route-help-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

body.route-page .route-sections {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body.route-page .route-section {
    position: relative;
    padding-left: 22px;
}

body.route-page .route-section::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 46px;
    bottom: 16px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--line-color, var(--primary)) 0%, rgba(100, 112, 134, 0.16) 100%);
}

body.route-page .route-section-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

body.route-page .route-line-label {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: var(--line-color, var(--primary));
}

body.route-page .route-line-subtitle {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

body.route-page .route-stops {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.route-page .route-stop {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

body.route-page .route-stop-rail {
    position: relative;
    display: flex;
    justify-content: center;
}

body.route-page .route-stop-rail::before {
    content: "";
    position: absolute;
    top: -2px;
    bottom: -14px;
    width: 3px;
    border-radius: 999px;
    background: rgba(100, 112, 134, 0.18);
}

body.route-page .route-stop:first-child .route-stop-rail::before {
    top: 18px;
}

body.route-page .route-stop:last-child .route-stop-rail::before {
    bottom: 18px;
}

body.route-page .route-stop-dot {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 4px solid var(--line-color, var(--primary));
    background: #ffffff;
    box-shadow: 0 0 0 6px rgba(11, 77, 204, 0.06);
    margin-top: 4px;
}

body.route-page .route-stop.is-change .route-stop-dot {
    background: var(--line-color, var(--primary));
    box-shadow: 0 0 0 6px rgba(11, 77, 204, 0.10);
}

body.route-page .route-stop-content {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(216, 225, 240, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--shadow-soft);
}

body.route-page .route-stop-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

body.route-page .route-stop-title {
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

body.route-page .route-stop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

body.route-page .route-meta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(11, 77, 204, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

body.route-page .route-meta-pill.ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
}

body.route-page .route-stop-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body.route-page .station-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, var(--primary), #2d6dff);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 24px rgba(11, 77, 204, 0.24);
}

body.route-page .station-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(11, 77, 204, 0.28);
}

body.route-page .station-cta.accent {
    background: linear-gradient(135deg, var(--accent), #ff9d4d);
    box-shadow: 0 12px 24px rgba(255, 122, 24, 0.22);
}

body.route-page .station-cta.ghost {
    background: transparent;
    color: var(--primary);
    border-color: rgba(11, 77, 204, 0.16);
    box-shadow: none;
}

body.route-page .route-stop-desc {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

body.route-page .route-change-note {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 122, 24, 0.20);
    background: rgba(255, 122, 24, 0.08);
    color: #9c5314;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

body.route-page .route-empty-state {
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(255, 122, 24, 0.18);
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.98) 0%, rgba(255, 244, 232, 0.94) 100%);
    box-shadow: var(--shadow-soft);
    margin-bottom: 18px;
}

body.route-page .route-empty-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 122, 24, 0.12);
    color: #9c5314;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

body.route-page .route-empty-state h2 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text);
}

body.route-page .route-empty-state p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    max-width: 72ch;
}

body.route-page .route-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

body.route-page .line-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    background: none;
    color: var(--line-color, var(--primary));
    font-weight: 800;
    letter-spacing: 0.01em;
}

body.route-page .line-chip::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

body.route-page .route-mini-grid {
    display: grid;
    gap: 12px;
}

body.route-page .route-help-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(216, 225, 240, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--shadow-soft);
}

body.route-page .route-help-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

body.route-page .route-help-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 14px;
}

body.route-page .route-help-item .small-copy {
    line-height: 1.65;
}

.summary-card,
.feature-card,
.city-card,
.panel,
.admin-card,
.auth-card {
    overflow: hidden;
}

@media (max-width: 1100px) {

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

    .auth-grid,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .station-dual-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

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

    body.route-page .route-quick-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.route-page .result-layout {
        grid-template-columns: 1fr;
    }

    body.route-page .route-sidebar {
        position: relative;
        top: auto;
    }

    body.route-page .route-sidebar .panel {
        position: relative;
        top: auto;
    }
}

@media (max-width: 900px) {
    .navbar {
        flex-wrap: wrap;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 14px;
        font-size: 13px;
    }

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

    .swap-button {
        width: 100%;
        margin-bottom: 0;
        min-height: 48px;
    }

    .hero-content h1 {
        font-size: clamp(28px, 7vw, 38px);
        max-width: 100%;
    }

    .auth-feature-grid {
        grid-template-columns: 1fr;
    }

    .panel-title {
        font-size: 20px;
    }

    .summary-value {
        font-size: 20px;
    }

    .admin-page .review-toolbar {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .line-pill {
        width: 50px;
        min-height: 88px;
    }

    body.route-page .route-toolbar {
        width: 100%;
    }

    body.route-page .route-quick-facts {
        grid-template-columns: 1fr;
    }

    body.route-page .route-legend {
        justify-content: flex-start;
    }

    body.route-page .route-stop {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 12px;
    }

    body.route-page .station-cta {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .hero-section {
        padding-top: 22px;
    }

    .route-search-box,
    .panel,
    .feature-card,
    .summary-card,
    .auth-card,
    .admin-card {
        padding: 16px;
    }

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

    .admin-page .review-card-header {
        flex-direction: column;
    }

    .admin-page .review-card-aside {
        align-items: flex-start;
        min-width: 0;
    }

    .admin-page .review-footer {
        grid-template-columns: 1fr;
    }

    .admin-page .review-toolbar .filter-chip,
    .admin-page .review-toolbar .action-button {
        width: 100%;
        justify-content: center;
    }

    .admin-page .review-queue-tools {
        grid-template-columns: 1fr;
    }

    .admin-page .review-search-form {
        grid-template-columns: 1fr;
    }

    .admin-page .review-queue-meta {
        min-width: 0;
    }

    .nav-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .brand {
        min-width: 0;
    }

    .brand-copy strong {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 26px;
        line-height: 1.12;
    }

    .hero-content p,
    .city-copy,
    .muted,
    .feature-card p,
    .panel-subtitle,
    .review-body,
    .feedback-body,
    .footer-grid p {
        font-size: 14px;
    }

    .search-title {
        font-size: 19px;
    }

    .panel-title {
        font-size: 18px;
    }

    .summary-value,
    .stats-value {
        font-size: 19px;
    }

    .section-title {
        font-size: 22px;
    }

    .footer-grid {
        gap: 18px;
    }

    .line-pill {
        width: 46px;
        min-height: 82px;
        border-radius: 14px;
    }

    .line-pill span {
        font-size: 12px;
    }

    .line-board {
        padding: 16px;
    }

    .timetable-card-head h3,
    .line-board-title {
        font-size: 16px;
    }

    .timetable-table tbody td {
        font-size: 13px;
    }

    body.route-page .panel {
        padding: 16px;
    }

    body.route-page .route-title {
        font-size: 26px;
    }

    body.route-page .route-stop-content {
        padding: 14px;
    }

    body.route-page .route-stop-title {
        font-size: 16px;
    }
}

body.route-page .route-title {
    margin: 0 0 12px;
}

body.route-page .route-sidebar {
    position: sticky;
    top: 94px;
    align-self: start;
}

body.route-page .route-sidebar .panel {
    position: static;
}

body.route-page .station-cta {
    cursor: pointer;
    text-decoration: none;
}

body.admin-page {
    font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", sans-serif;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(11, 77, 204, 0.06), transparent 50%),
        radial-gradient(ellipse at 80% 0%, rgba(255, 122, 24, 0.04), transparent 40%),
        linear-gradient(180deg, #edf2f8 0%, #f5f7fb 100%);
    color: #10213a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.admin-page .container {
    max-width: 1400px;
}

body.admin-page .admin-shell {
    padding: 20px 0 56px;
}

body.admin-page .admin-layout {
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 20px;
}

body.admin-page .admin-main {
    gap: 16px;
}

body.admin-page .panel,
body.admin-page .admin-card,
body.admin-page .summary-card,
body.admin-page .security-card {
    border-radius: 22px;
}

body.admin-page .panel {
    padding: 24px 26px;
}

body.admin-page .admin-card,
body.admin-page .summary-card,
body.admin-page .security-card {
    padding: 20px;
}

body.admin-page .panel-title {
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #0f172a;
    font-weight: 800;
}

body.admin-page .panel-subtitle {
    font-size: 14px;
    line-height: 1.65;
    color: #64748b;
}

body.admin-page .summary-label,
body.admin-page .small-copy {
    color: #94a3b8;
}

body.admin-page .summary-value {
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 800;
}

body.admin-page .admin-topbar {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: rgba(8, 17, 29, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

body.admin-page .admin-topbar-inner {
    gap: 14px;
    padding: 12px 0;
}

body.admin-page .admin-topbar .brand-copy {
    color: #f8fbff;
}

body.admin-page .admin-topbar .brand-copy small {
    color: rgba(248, 251, 255, 0.6);
}

body.admin-page .admin-user-name {
    color: #e0e8f4;
}

body.admin-page .admin-topbar .user-pill {
    background: rgba(255, 255, 255, 0.08);
    color: #c5d5f0;
    border-color: rgba(255, 255, 255, 0.1);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.admin-page .admin-topbar .btn-ghost {
    border-color: rgba(255, 255, 255, 0.12);
    color: #e0e8f4;
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
    border-radius: 10px;
}

body.admin-page .admin-topbar .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.20);
    color: #fff;
}

.admin-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(11, 77, 204, 0.18);
    background: #ffffff;
    color: #10213a;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(14, 34, 73, 0.06);
    transition: all .2s ease;
}

.admin-sidebar-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(14, 34, 73, 0.1);
    border-color: rgba(11, 77, 204, 0.28);
}

.admin-sidebar-toggle-bars {
    width: 18px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-sidebar-toggle-bars span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

body.admin-page .admin-sidebar {
    position: sticky;
    top: 62px;
    padding: 14px;
    border-radius: 22px;
    background: linear-gradient(175deg, #0a1628 0%, #122240 50%, #162d4e 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 50px rgba(8, 14, 28, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    gap: 12px;
    transition: width .2s ease, padding .2s ease, transform .2s ease;
}

body.admin-page .admin-sidebar-brand,
body.admin-page .admin-shortcuts,
body.admin-page .admin-sidebar-card {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: #dde6f4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    padding: 14px;
}

body.admin-page .admin-sidebar-brand strong,
body.admin-page .admin-sidebar-card strong {
    font-size: 15px;
    letter-spacing: -0.01em;
    color: #ffffff;
    font-weight: 700;
}

body.admin-page .admin-sidebar-brand small,
body.admin-page .admin-sidebar-card p {
    color: #9bb0d0;
    font-size: 12.5px;
    line-height: 1.5;
}

body.admin-page .admin-nav-group {
    gap: 10px;
}

body.admin-page .admin-nav-block {
    gap: 4px;
}

body.admin-page .admin-nav-label {
    color: #6b84a8;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    margin-bottom: 2px;
}

body.admin-page .admin-nav-link,
body.admin-page .admin-shortcut-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #cdd8ea;
    border: 1px solid transparent;
    background: transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all .2s ease;
}

body.admin-page .admin-shortcut-link {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
    color: #dde6f4;
    font-weight: 700;
}

body.admin-page .admin-nav-link:hover,
body.admin-page .admin-shortcut-link:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(5, 17, 31, 0.12);
}

body.admin-page .admin-nav-link.active,
body.admin-page .admin-shortcut-link.active {
    background: linear-gradient(135deg, rgba(11, 77, 204, 0.28), rgba(56, 152, 236, 0.18));
    border-color: rgba(100, 180, 255, 0.25);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(11, 77, 204, 0.15);
}

body.admin-page .admin-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex: 0 0 20px;
}

body.admin-page .admin-link-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.8;
}

body.admin-page .admin-nav-link.active .admin-link-icon svg,
body.admin-page .admin-shortcut-link.active .admin-link-icon svg {
    opacity: 1;
}

body.admin-page .admin-link-text {
    flex: 1 1 auto;
    min-width: 0;
}

body.admin-page .admin-link-arrow {
    opacity: 0.35;
    font-size: 14px;
    transition: opacity .2s ease, transform .2s ease;
}

body.admin-page .admin-nav-link:hover .admin-link-arrow,
body.admin-page .admin-shortcut-link:hover .admin-link-arrow,
body.admin-page .admin-nav-link.active .admin-link-arrow,
body.admin-page .admin-shortcut-link.active .admin-link-arrow {
    opacity: 0.7;
    transform: translateX(2px);
}

body.admin-page .admin-sidebar-stat {
    color: #9bb0d0;
    font-size: 12.5px;
    padding: 6px 0;
}

body.admin-page .admin-sidebar-stat+.admin-sidebar-stat {
    border-top-color: rgba(255, 255, 255, 0.06);
}

body.admin-page .admin-sidebar-info {
    display: grid;
    gap: 4px;
}

body.admin-page .admin-shortcuts {
    padding-bottom: 12px;
}

body.admin-page .admin-shortcut-list,
body.admin-page .admin-nav-group {
    max-height: none;
    overflow: visible;
}

body.admin-page .admin-footer {
    margin-top: 20px;
    background: rgba(247, 250, 252, 0.96);
}

body.admin-page .admin-footer-inner {
    padding: 14px 0 18px;
    color: #94a3b8;
    font-size: 12px;
    letter-spacing: 0.02em;
}

/* ── Sidebar Collapsed State ──────────────────────────────── */
body.admin-sidebar-collapsed .admin-layout {
    grid-template-columns: 80px minmax(0, 1fr);
}

body.admin-sidebar-collapsed .admin-sidebar {
    padding: 12px 8px;
}

body.admin-sidebar-collapsed .admin-sidebar-brand,
body.admin-sidebar-collapsed .admin-shortcuts,
body.admin-sidebar-collapsed .admin-nav-label,
body.admin-sidebar-collapsed .admin-sidebar-info,
body.admin-sidebar-collapsed .admin-link-text,
body.admin-sidebar-collapsed .admin-link-arrow,
body.admin-sidebar-collapsed .admin-sidebar-summary {
    display: none;
}

body.admin-sidebar-collapsed .admin-nav-group {
    gap: 6px;
}

body.admin-sidebar-collapsed .admin-shortcut-list,
body.admin-sidebar-collapsed .admin-nav-group {
    align-items: stretch;
}

body.admin-sidebar-collapsed .admin-nav-link,
body.admin-sidebar-collapsed .admin-shortcut-link {
    justify-content: center;
    padding: 10px 8px;
}

body.admin-sidebar-collapsed .admin-link-icon {
    width: 22px;
    flex-basis: 22px;
}

body.admin-sidebar-collapsed .admin-layout .admin-main {
    min-width: 0;
}

@media (max-width: 1280px) {
    body.admin-page:not(.admin-sidebar-expanded) .admin-layout {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    body.admin-page:not(.admin-sidebar-expanded) .admin-sidebar {
        padding: 12px 8px;
    }

    body.admin-page:not(.admin-sidebar-expanded) .admin-sidebar-brand,
    body.admin-page:not(.admin-sidebar-expanded) .admin-shortcuts,
    body.admin-page:not(.admin-sidebar-expanded) .admin-nav-label,
    body.admin-page:not(.admin-sidebar-expanded) .admin-sidebar-info,
    body.admin-page:not(.admin-sidebar-expanded) .admin-link-text,
    body.admin-page:not(.admin-sidebar-expanded) .admin-link-arrow,
    body.admin-page:not(.admin-sidebar-expanded) .admin-sidebar-summary {
        display: none;
    }

    body.admin-page:not(.admin-sidebar-expanded) .admin-nav-group {
        gap: 6px;
    }

    body.admin-page:not(.admin-sidebar-expanded) .admin-nav-link,
    body.admin-page:not(.admin-sidebar-expanded) .admin-shortcut-link {
        justify-content: center;
        padding: 10px 8px;
    }

    body.admin-page:not(.admin-sidebar-expanded) .admin-link-icon {
        width: 22px;
        flex-basis: 22px;
    }
}


/* ── Quick Action Cards (Dashboard) ───────────────────────── */
.admin-page .quick-action-group {
    margin-bottom: 16px;
}

.admin-page .quick-action-group:last-child {
    margin-bottom: 0;
}

.admin-page .quick-action-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
    padding-left: 2px;
}

.admin-page .quick-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-page .quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(216, 225, 240, 0.7);
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(14, 34, 73, 0.04);
}

.admin-page .quick-action-btn:hover {
    border-color: rgba(11, 77, 204, 0.2);
    box-shadow: 0 6px 20px rgba(14, 34, 73, 0.08);
    transform: translateY(-1px);
    color: var(--primary);
}

.admin-page .quick-action-btn.primary {
    background: linear-gradient(135deg, var(--primary), #2c74ff);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(11, 77, 204, 0.2);
}

.admin-page .quick-action-btn.primary:hover {
    box-shadow: 0 8px 24px rgba(11, 77, 204, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

.admin-page .quick-action-btn .admin-link-icon {
    width: 16px;
    flex: 0 0 16px;
}

.admin-page .quick-action-btn .admin-link-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
}

/* Premium Site Footer Styling */
.site-footer {
    background: linear-gradient(180deg, #071124 0%, #030814 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 70px 0 35px;
    color: #a0aec0;
    font-size: 14px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 122, 24, 0.4), rgba(11, 77, 204, 0.4), transparent);
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.site-footer .footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.site-footer .footer-brand {
    min-width: auto;
    align-self: flex-start;
}

.site-footer .footer-desc {
    color: #718096;
    line-height: 1.6;
    font-size: 13.5px;
    max-width: 320px;
}

.site-footer .footer-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 143, 91, 0.1);
    border: 1px solid rgba(11, 143, 91, 0.25);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #48bb78;
    font-weight: 600;
    align-self: flex-start;
}

.site-footer .status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #48bb78;
    box-shadow: 0 0 8px #48bb78;
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(72, 187, 120, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0);
    }
}

.site-footer .footer-col {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.site-footer .footer-col strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.site-footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer .footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    align-self: flex-start;
}

.site-footer .footer-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.site-footer .admin-link-highlight {
    color: #63b3ed !important;
    font-weight: 600;
}

.site-footer .admin-link-highlight:hover {
    color: #90cdf4 !important;
}

.site-footer .footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
}

.site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: #718096;
    font-size: 13px;
}

.site-footer .footer-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer .bullet-sep {
    color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 992px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding: 50px 0 25px;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .site-footer .footer-meta {
        flex-wrap: wrap;
    }
}

/* ── Admin-editable Content Blocks (city page) ─────────────────────────────── */
.content-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.content-block-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.content-block-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.content-block-card .cb-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.content-block-card .cb-body {
    font-size: 14px;
    line-height: 1.72;
    color: var(--muted);
}

/* Overview block gets full-width treatment */
.content-block-card[id="cb-overview"] {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .content-blocks-grid {
        grid-template-columns: 1fr;
    }

    .content-block-card[id="cb-overview"] {
        grid-column: 1;
    }
}


/* ── Admin Tabs UI ────────────────────────────────────────── */
.admin-page .admin-tabs-wrapper {
    margin-bottom: 24px;
    border-radius: 22px;
    border: 1px solid rgba(216, 225, 240, 0.7);
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
    box-shadow: 0 4px 20px rgba(14, 34, 73, 0.05);
    padding: 16px;
}

.admin-page .admin-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: none;
    padding-bottom: 0;
}

.admin-page .admin-tabs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.admin-page .admin-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid rgba(216, 225, 240, 0.8);
    border-radius: 12px;
    color: #64748b;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(14, 34, 73, 0.02);
    flex: 1 1 140px;
    justify-content: center;
}

.admin-page .admin-tab-btn:hover {
    background: #fafcff;
    color: #0f172a;
    border-color: rgba(11, 77, 204, 0.2);
}

.admin-page .admin-tab-btn.active {
    background: rgba(11, 77, 204, 0.07);
    border-color: var(--primary, #0b4dcc);
    color: var(--primary, #0b4dcc);
    box-shadow: 0 2px 8px rgba(11, 77, 204, 0.08);
}

.admin-page .admin-tab-btn .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.15);
    color: #475569;
    font-size: 11px;
    border-radius: 999px;
    padding: 2px 6px;
    font-weight: 700;
    margin-left: 4px;
}

.admin-page .admin-tab-btn.active .tab-count {
    background: rgba(11, 77, 204, 0.12);
    color: var(--primary, #0b4dcc);
}

.admin-page .admin-tab-pane {
    display: none;
    animation: tabFadeIn 0.2s ease-out;
}

.admin-page .admin-tab-pane.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

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

/* ── Collapsible Card and Actions ───────────────────────── */
.admin-page .tab-pane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-page .tab-pane-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.admin-page .collapsible-editor-card {
    background: #ffffff;
    border: 1px solid rgba(11, 77, 204, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(11, 77, 204, 0.05);
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

/* ── List & Inline Edit rows ─────────────────────────────── */
.admin-page .station-content-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-page .station-content-row {
    background: #ffffff;
    border: 1px solid rgba(216, 225, 240, 0.7);
    border-radius: 16px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.admin-page .station-content-row:hover {
    border-color: rgba(11, 77, 204, 0.2);
    box-shadow: 0 4px 12px rgba(14, 34, 73, 0.04);
}

.admin-page .row-summary-view {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-page .row-summary-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 250px;
}

.admin-page .row-identifier {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    min-width: 60px;
}

.admin-page .row-description {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.admin-page .row-meta-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
}

.admin-page .row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hide edit view by default */
.admin-page .row-edit-view {
    display: none;
    padding: 20px;
    background: #fafcff;
    border-top: 1px solid rgba(216, 225, 240, 0.7);
    animation: rowExpand 0.2s ease-out;
}

/* When editing, toggle visibility */
.admin-page .station-content-row.editing {
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(11, 77, 204, 0.08);
}

.admin-page .station-content-row.editing .row-summary-view {
    background: #fafcff;
}

.admin-page .station-content-row.editing .row-edit-view {
    display: block;
}

@keyframes rowExpand {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

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

.admin-page .editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.admin-page .editor-grid.wide {
    grid-template-columns: 1fr;
}

.admin-page .status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.admin-page .status-pill.active,
.admin-page .status-pill.open,
.admin-page .status-pill.available {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.admin-page .status-pill.hidden,
.admin-page .status-pill.unavailable,
.admin-page .status-pill.closed {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.admin-page .status-pill.visible {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.admin-page .review-toolbar {
    margin-left: auto;
    justify-content: flex-end;
}

.admin-page .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(216, 225, 240, 0.8);
    background: rgba(255, 255, 255, 0.8);
    color: #0f172a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(14, 34, 73, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.admin-page .filter-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(14, 34, 73, 0.08);
    border-color: rgba(11, 77, 204, 0.24);
}

.admin-page .filter-chip.active {
    background: linear-gradient(135deg, var(--primary), #2c74ff);
    color: #ffffff;
    border-color: transparent;
}

.admin-page .filter-chip strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(11, 77, 204, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.admin-page .filter-chip.active strong {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.admin-page .review-summary-note {
    margin-top: 16px;
}

.admin-page .admin-review-card {
    position: relative;
    overflow: hidden;
}

.admin-page .admin-review-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 999px 0 0 999px;
    background: linear-gradient(180deg, rgba(11, 77, 204, 0.9), rgba(11, 77, 204, 0.35));
}

.admin-page .admin-review-card.is-visible::before {
    background: linear-gradient(180deg, rgba(11, 143, 91, 0.92), rgba(11, 143, 91, 0.35));
}

.admin-page .admin-review-card.is-hidden {
    background: linear-gradient(180deg, #fffdfa 0%, #fff7f5 100%);
}

.admin-page .admin-review-card.is-hidden::before {
    background: linear-gradient(180deg, rgba(196, 58, 49, 0.92), rgba(196, 58, 49, 0.35));
}

.admin-page .review-card-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.admin-page .review-location {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.admin-page .review-city {
    color: var(--primary);
}

.admin-page .review-separator {
    color: #94a3b8;
    font-weight: 600;
}

.admin-page .review-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 6px;
    color: #64748b;
    font-size: 12.5px;
}

.admin-page .review-card-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 120px;
}

.admin-page .review-rating-stars {
    display: inline-flex;
    gap: 4px;
    font-size: 15px;
    letter-spacing: 0.03em;
    color: #cbd5e1;
}

.admin-page .review-rating-stars .filled {
    color: #f59e0b;
}

.admin-page .review-rating-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.admin-page .review-quote {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(11, 77, 204, 0.04);
    border-left: 4px solid rgba(11, 77, 204, 0.28);
    color: #10213a;
    line-height: 1.8;
    font-size: 14.5px;
    white-space: normal;
}

.admin-page .admin-review-card.is-visible .review-quote {
    background: rgba(11, 143, 91, 0.05);
    border-left-color: rgba(11, 143, 91, 0.24);
}

.admin-page .admin-review-card.is-hidden .review-quote {
    background: rgba(196, 58, 49, 0.05);
    border-left-color: rgba(196, 58, 49, 0.24);
}

.admin-page .review-footer {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-top: 16px;
}

.admin-page .review-footer .form-group {
    margin-bottom: 0;
}

.admin-page .review-help {
    margin-top: 6px;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.5;
}

.admin-page .review-empty-state {
    padding: 20px;
    text-align: center;
}


/* ── Admin Page Content overrides ─────────────────────────── */
.admin-page .content-selector-wrap {
    padding: 0 0 16px;
    border-bottom: 1px solid rgba(216, 225, 240, 0.7);
    margin-bottom: 0;
}

.admin-page .content-selector-form .selector-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 0 0 12px;
}

.admin-page .selector-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-page .selector-group label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.admin-page .selector-group select,
.admin-page .selector-group input[type="text"] {
    padding: 10px 14px;
    border: 1px solid rgba(216, 225, 240, 0.8);
    border-radius: 12px;
    font-size: 13.5px;
    min-width: 200px;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease;
}

.admin-page .selector-group select:focus,
.admin-page .selector-group input[type="text"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 77, 204, 0.15);
    outline: none;
}

.admin-page .active-page-badge {
    font-size: 14px;
    color: #64748b;
    padding: 8px 0 0;
}

.admin-page .active-page-badge strong {
    color: #0f172a;
}

.admin-page .preview-link {
    margin-left: 10px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.admin-page .preview-link:hover {
    text-decoration: underline;
}

.admin-page .is-disabled {
    opacity: 0.6;
}

.admin-page .flash-success {
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

.admin-page .flash-error {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

.admin-page .action-button.danger {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.18);
}

.admin-page .action-button.danger:hover {
    background: rgba(239, 68, 68, 0.12);
}

.admin-page .status-pill.draft {
    background: rgba(148, 163, 184, 0.15);
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.admin-page .block-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.admin-page .block-type-badge {
    display: inline-block;
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.admin-page .block-order-badge {
    font-size: 11px;
    color: #64748b;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    padding: 2px 8px;
    font-weight: 600;
}

.admin-page .block-title-text {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.admin-page .block-preview,
.admin-page .faq-a {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
    margin: 6px 0;
}

.admin-page .faq-q {
    font-size: 15px;
    color: #0f172a;
    font-weight: 700;
}

/* --- High-Value Image Rendering Styles --- */
.station-layout-map-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--line);
    overflow: hidden;
    margin-top: 14px;
}

.station-layout-map-img {
    max-width: 100%;
    max-height: 550px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.station-layout-map-img:hover {
    transform: scale(1.015);
}

.gate-image-wrapper {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    max-height: 180px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.gate-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gate-image:hover {
    transform: scale(1.025);
}

/* --- Map Link and Zoom Styles --- */
.map-link-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: inherit;
    width: 100%;
    height: 100%;
}

.map-link-wrapper .map-overlay-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(11, 22, 40, 0.88);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    z-index: 10;
}

.map-link-wrapper:hover .map-overlay-badge {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.map-link-wrapper img {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.map-link-wrapper:hover img {
    transform: scale(1.015);
    filter: brightness(0.9);
}

.zoom-in-cursor {
    cursor: zoom-in;
}


/* --- Compact review queue overrides --- */
.admin-page .review-queue-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-top: 16px;
}

.admin-page .review-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.admin-page .review-search-group {
    margin-bottom: 0;
}

.admin-page .review-search-group label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-page .review-search-group input[type="search"] {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
}

.admin-page .review-search-actions {
    margin: 0;
    align-items: center;
}

.admin-page .review-queue-meta {
    min-width: 240px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(216, 225, 240, 0.7);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 6px 16px rgba(14, 34, 73, 0.04);
}

.admin-page .review-queue-window {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.admin-page .review-queue-window-sub {
    margin-top: 4px;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.5;
}

.admin-page .review-queue-card {
    position: relative;
    padding: 14px 16px;
    border-left: 5px solid rgba(11, 77, 204, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.admin-page .review-queue-card.is-visible {
    border-left-color: rgba(11, 143, 91, 0.35);
}

.admin-page .review-queue-card.is-hidden {
    border-left-color: rgba(196, 58, 49, 0.35);
    background: linear-gradient(180deg, #fffdfa 0%, #fff8f6 100%);
}

.admin-page .review-queue-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.admin-page .review-queue-main {
    min-width: 0;
}

.admin-page .review-queue-title {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.admin-page .review-queue-excerpt {
    margin-top: 10px;
    color: #475569;
    line-height: 1.65;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-page .review-queue-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 124px;
}

.admin-page .review-queue-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(216, 225, 240, 0.65);
}

.admin-page .review-status-group {
    margin-bottom: 0;
}

.admin-page .review-status-group select,
.admin-page .review-search-group input[type="search"] {
    width: 100%;
}

.admin-page .review-status-select {
    min-height: 42px;
}

.admin-page .review-action-group {
    margin: 0;
}

.admin-page .review-action-group .action-button {
    min-height: 42px;
}

.admin-page .review-expander {
    margin-top: 10px;
    border-top: 1px dashed rgba(216, 225, 240, 0.8);
    padding-top: 10px;
}

.admin-page .review-expander summary {
    cursor: pointer;
    list-style: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.admin-page .review-expander summary::-webkit-details-marker {
    display: none;
}

.admin-page .review-full-text {
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(11, 77, 204, 0.04);
    color: #10213a;
    line-height: 1.7;
    font-size: 14px;
}

.admin-page .review-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.admin-page .pagination-meta {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.admin-page .pagination-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-page .page-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(11, 77, 204, 0.08);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.admin-page .review-delete-form {
    display: none;
}

@media (max-width: 900px) {

    .admin-page .review-queue-tools,
    .admin-page .review-search-form,
    .admin-page .review-queue-top,
    .admin-page .review-queue-actions,
    .admin-page .review-pagination {
        grid-template-columns: 1fr;
    }

    .admin-page .review-queue-meta,
    .admin-page .review-queue-side {
        min-width: 0;
    }

    .admin-page .review-queue-side {
        align-items: flex-start;
    }

    .admin-page .review-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-page .review-search-actions,
    .admin-page .pagination-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-page .review-toolbar .filter-chip,
    .admin-page .review-toolbar .action-button {
        width: 100%;
        justify-content: center;
    }
}

.admin-page .review-queue-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 6px;
    color: #64748b;
    font-size: 12.5px;
}

/* --- Compact feedback queue --- */
.admin-page .feedback-toolbar {
    margin-left: auto;
    justify-content: flex-end;
}

.admin-page .feedback-queue-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-top: 16px;
}

.admin-page .feedback-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.admin-page .feedback-search-group {
    margin-bottom: 0;
}

.admin-page .feedback-search-group label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-page .feedback-search-group input[type="search"] {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
}

.admin-page .feedback-search-actions {
    margin: 0;
    align-items: center;
}

.admin-page .feedback-queue-meta {
    min-width: 240px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(216, 225, 240, 0.7);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 6px 16px rgba(14, 34, 73, 0.04);
}

.admin-page .feedback-queue-window {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.admin-page .feedback-queue-window-sub {
    margin-top: 4px;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.5;
}

.admin-page .feedback-summary-note {
    margin-top: 16px;
}

.admin-page .feedback-queue-card {
    border-left: 5px solid rgba(11, 77, 204, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.admin-page .feedback-queue-card.is-open {
    border-left-color: rgba(255, 122, 24, 0.38);
}

.admin-page .feedback-queue-card.is-reviewing {
    border-left-color: rgba(11, 77, 204, 0.38);
}

.admin-page .feedback-queue-card.is-resolved {
    border-left-color: rgba(11, 143, 91, 0.38);
}

.admin-page .feedback-queue-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.admin-page .feedback-queue-main {
    min-width: 0;
}

.admin-page .feedback-queue-title {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.admin-page .feedback-submitter {
    color: var(--primary);
}

.admin-page .feedback-queue-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 6px;
    color: #64748b;
    font-size: 12.5px;
}

.admin-page .feedback-queue-excerpt {
    margin-top: 10px;
    color: #475569;
    line-height: 1.65;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-page .feedback-queue-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 120px;
}

.admin-page .feedback-queue-actions {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(216, 225, 240, 0.65);
}

.admin-page .feedback-status-group,
.admin-page .feedback-reply-group {
    margin-bottom: 0;
}

.admin-page .feedback-status-group select,
.admin-page .feedback-reply-group textarea {
    width: 100%;
}

.admin-page .feedback-status-select {
    min-height: 42px;
}

.admin-page .feedback-reply-textarea {
    min-height: 94px;
    resize: vertical;
}

.admin-page .feedback-action-group {
    margin: 0;
}

.admin-page .feedback-action-group .action-button {
    min-height: 42px;
}

.admin-page .feedback-expander {
    margin-top: 10px;
    border-top: 1px dashed rgba(216, 225, 240, 0.8);
    padding-top: 10px;
}

.admin-page .feedback-expander summary {
    cursor: pointer;
    list-style: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.admin-page .feedback-expander summary::-webkit-details-marker {
    display: none;
}

.admin-page .feedback-detail-box {
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(11, 77, 204, 0.04);
    color: #10213a;
    line-height: 1.7;
    font-size: 14px;
}

.admin-page .feedback-thread {
    margin-top: 12px;
}

.admin-page .feedback-empty-state {
    padding: 20px;
    text-align: center;
}

.admin-page .feedback-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 900px) {

    .admin-page .feedback-queue-tools,
    .admin-page .feedback-search-form,
    .admin-page .feedback-queue-top,
    .admin-page .feedback-queue-actions,
    .admin-page .feedback-pagination {
        grid-template-columns: 1fr;
    }

    .admin-page .feedback-queue-meta,
    .admin-page .feedback-queue-side {
        min-width: 0;
    }

    .admin-page .feedback-queue-side {
        align-items: flex-start;
    }

    .admin-page .feedback-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-page .feedback-search-actions,
    .admin-page .pagination-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-page .feedback-toolbar .filter-chip,
    .admin-page .feedback-toolbar .action-button {
        width: 100%;
        justify-content: center;
    }
}

/* Metro Map Lightbox Modal Styles */
.map-link-wrapper,
.station-layout-map-container .map-link-wrapper {
    cursor: zoom-in;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.map-link-wrapper img {
    transition: transform 0.3s ease;
}

.map-link-wrapper:hover img {
    transform: scale(1.02);
}

.metro-map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 12, 24, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metro-map-modal.active {
    display: flex;
    opacity: 1;
}

.metro-map-modal-content {
    position: relative;
    width: 92%;
    max-width: 1100px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.metro-map-modal.active .metro-map-modal-content {
    transform: scale(1);
}

.metro-map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metro-map-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.metro-map-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 48px;
    /* Leave space for close button */
}

.metro-map-modal-actions .action-button {
    font-size: 13px;
    min-height: 36px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

.metro-map-modal-actions .action-button:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.2);
}

.metro-map-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.metro-map-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(90deg);
}

.metro-map-modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #090d16;
    border-radius: 16px;
    padding: 12px;
    overflow: auto;
    max-height: 75vh;
}

.metro-map-modal-body.grabbing {
    cursor: grabbing;
    user-select: none;
}

.metro-map-modal-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.25s ease, max-width 0.25s ease, max-height 0.25s ease;
}

.metro-map-modal-img.zoomed {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}

/* ────────────────────────────────────────────────────────── */
/* 🚀 ADMIN USER DIRECTORY & SECURITY STYLES OVERRIDES       */
/* ────────────────────────────────────────────────────────── */

.admin-search-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(216, 225, 240, 0.8);
    border-radius: 16px;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.admin-search-box {
    position: relative;
    flex: 1 1 300px;
}

.admin-search-box input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #ffffff;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: all 0.2s ease;
}

.admin-search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 77, 204, 0.12);
}

.admin-search-box::before {
    content: "🔍";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.6;
}

.admin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-filter-btn {
    padding: 8px 16px;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-filter-btn:hover {
    background: var(--surface-blue);
    color: var(--primary);
    border-color: rgba(11, 77, 204, 0.3);
}

.admin-filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(11, 77, 204, 0.2);
}

.admin-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(216, 225, 240, 0.8);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.admin-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.admin-table-header {
    background: var(--surface-2);
    border-bottom: 2px solid var(--line);
}

.admin-table-header th {
    padding: 14px 18px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-align: left;
}

.admin-table-row {
    border-bottom: 1px solid rgba(216, 225, 240, 0.6);
    transition: background 0.2s ease;
}

.admin-table-row:hover {
    background: rgba(11, 77, 204, 0.015);
}

.admin-table-row:last-child {
    border-bottom: none;
}

.admin-table td {
    padding: 16px 18px;
    vertical-align: middle;
    font-size: 14px;
}

.user-identity-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, #3898ec 100%);
    box-shadow: 0 3px 8px rgba(11, 77, 204, 0.2);
    text-transform: uppercase;
    flex-shrink: 0;
}

.user-avatar.admin {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    box-shadow: 0 3px 8px rgba(124, 58, 237, 0.2);
}

.user-avatar.editor {
    background: linear-gradient(135deg, #ff7a18 0%, #ffb076 100%);
    box-shadow: 0 3px 8px rgba(255, 122, 24, 0.2);
}

.user-meta-stack {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    color: var(--text);
}

.user-email {
    font-size: 12px;
    color: var(--muted);
    margin-top: 1px;
}

.admin-table select {
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #ffffff;
    font-size: 13px;
    color: var(--text);
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.admin-table select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 77, 204, 0.1);
}

.badge-2fa {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
}

.badge-2fa.enabled {
    background: rgba(11, 143, 91, 0.1);
    color: var(--success);
    border: 1px solid rgba(11, 143, 91, 0.2);
}

.badge-2fa.disabled {
    background: rgba(96, 112, 134, 0.1);
    color: var(--muted);
    border: 1px solid rgba(96, 112, 134, 0.2);
}

.lock-badge-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge-lock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
    width: fit-content;
}

.badge-lock.locked {
    background: rgba(196, 58, 49, 0.1);
    color: var(--danger);
    border: 1px solid rgba(196, 58, 49, 0.2);
    animation: lockPulse 2s infinite ease-in-out;
}

@keyframes lockPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(196, 58, 49, 0.2);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(196, 58, 49, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(196, 58, 49, 0);
    }
}

.badge-lock.open {
    background: rgba(11, 143, 91, 0.08);
    color: var(--success);
    border: 1px solid rgba(11, 143, 91, 0.15);
}

.lock-subtext {
    font-size: 11px;
    color: var(--muted);
}

.row-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.row-actions-group .action-button {
    font-size: 12px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 8px;
}

/* 🔒 SECURITY CENTRE GRID STYLES */
.security-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 992px) {
    .security-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.security-status-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
    border-radius: 20px;
    border: 1px solid rgba(216, 225, 240, 0.7);
    box-shadow: 0 4px 20px rgba(14, 34, 73, 0.04);
}

.security-shield-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(96, 112, 134, 0.1);
    color: var(--muted);
    border: 1px solid rgba(96, 112, 134, 0.15);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.security-shield-icon.enabled {
    background: rgba(11, 143, 91, 0.1);
    color: var(--success);
    border: 1px solid rgba(11, 143, 91, 0.2);
    box-shadow: 0 0 16px rgba(11, 143, 91, 0.15);
}

.security-status-info {
    flex-grow: 1;
}

.security-status-info .status-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.security-status-info .status-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-top: 2px;
}

.security-provisioning-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(216, 225, 240, 0.8);
    border-radius: 20px;
    margin-top: 20px;
    backdrop-filter: blur(8px);
}

.qr-code-wrapper {
    width: 170px;
    height: 170px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
}

.qr-code-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.provisioning-details {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.clipboard-box {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    height: 40px;
}

.clipboard-box code {
    flex-grow: 1;
    font-family: var(--font-mono, "Consolas", monospace);
    font-size: 13px;
    padding: 0 12px;
    overflow-x: auto;
    white-space: nowrap;
    color: var(--text);
}

.clipboard-btn {
    border: none;
    border-left: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    padding: 0 14px;
    height: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clipboard-btn:hover {
    background: var(--surface-blue);
}

/* 🚨 SECURITY LOG STREAM */
.watchlist-logs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.watchlist-log-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--line);
    transition: all 0.2s ease;
}

.watchlist-log-card:hover {
    transform: translateX(3px);
    box-shadow: var(--shadow-soft);
}

.watchlist-log-card.locked {
    border-color: rgba(196, 58, 49, 0.4);
    background: linear-gradient(90deg, rgba(196, 58, 49, 0.02) 0%, #ffffff 100%);
}

.watchlist-log-card.locked::before {
    content: "";
    width: 4px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: var(--danger);
    border-radius: 14px 0 0 14px;
}

.log-meta-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.log-title-row strong {
    font-size: 14px;
    color: var(--text);
}

.log-title-row .log-badge {
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.log-badge.locked {
    background: rgba(196, 58, 49, 0.15);
    color: var(--danger);
}

.log-badge.warning {
    background: rgba(255, 122, 24, 0.15);
    color: var(--accent);
}

.log-desc-row {
    font-size: 12.5px;
    color: var(--muted);
}

/* ── Admin Sidebar & Layout Custom Overrides ──────────────── */
@media (min-width: 1201px) {

    /* 1. Make the body.admin-page containers full width */
    body.admin-page {
        --admin-sidebar-width: 280px;
    }

    body.admin-sidebar-collapsed {
        --admin-sidebar-width: 80px;
    }

    body.admin-page .container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    /* 2. Position the admin topbar fixed at the top */
    body.admin-page .admin-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 70px;
        z-index: 1000;
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    body.admin-page .admin-topbar .navbar {
        width: 100%;
        padding: 0;
    }

    /* 3. Push the admin-shell down to clear the topbar */
    body.admin-page .admin-shell {
        padding-top: 94px !important;
        /* 70px topbar + 24px top spacing */
        padding-bottom: 24px !important;
    }

    /* 4. Reset admin-layout grid to a single column for main content, sidebar floats */
    body.admin-page .admin-layout {
        display: block;
    }

    /* 5. Style the fixed admin-sidebar */
    body.admin-page .admin-sidebar {
        position: fixed;
        top: 70px;
        left: 0;
        bottom: 0;
        width: var(--admin-sidebar-width);
        height: calc(100vh - 70px);
        max-height: none !important;
        /* Prevent parent max-height from cropping bottom */
        z-index: 990;
        border-radius: 0;
        border: none;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
        margin: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);

        /* Hide scrollbar */
        scrollbar-width: none !important;
        /* Firefox */
    }

    body.admin-page .admin-sidebar::-webkit-scrollbar {
        display: none !important;
        /* Chrome, Safari, Opera */
    }

    /* 6. Offset the main content and footer to the right */
    body.admin-page .admin-main {
        margin-left: var(--admin-sidebar-width);
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body.admin-page .admin-footer {
        margin-left: var(--admin-sidebar-width);
        margin-top: 24px;
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Collapsed state on smaller desktop screens (between 1201px and 1280px) by default */
@media (min-width: 1201px) and (max-width: 1280px) {
    body.admin-page:not(.admin-sidebar-expanded) {
        --admin-sidebar-width: 80px;
    }
}

/* ── Pages Index Layout Redesign ────────────────────────────────── */
.pages-index-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 16px;
    width: 100%;
}

.admin-page .pages-index-card {
    box-shadow: none !important;
    background: #ffffff !important;
    border: 1px solid rgba(216, 225, 240, 0.8) !important;
    padding: 22px !important;
    border-radius: 16px !important;
    transform: none !important;
    transition: none !important;
}

.admin-page .pages-index-card:hover {
    box-shadow: none !important;
    transform: none !important;
}

.pages-index-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(216, 225, 240, 0.5);
}

.pages-index-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.pages-index-card-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    background: rgba(96, 112, 134, 0.08);
    padding: 2px 8px;
    border-radius: 20px;
}

.pages-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.page-index-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid rgba(216, 225, 240, 0.7);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-index-item:hover {
    background: var(--surface-blue) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(11, 77, 204, 0.06);
    transform: translateY(-2px);
}

.page-index-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}

.page-index-item:hover .page-index-name {
    color: var(--primary) !important;
}

.page-index-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    background: rgba(11, 77, 204, 0.06);
    color: var(--primary);
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.page-index-item:hover .page-index-badge {
    background: var(--primary) !important;
    color: #ffffff !important;
}

/* ── Compact Route Connections Management Table ────────────────── */
.connections-table-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f1f5f9;
    border: 1px solid rgba(216, 225, 240, 0.8);
    border-radius: 10px;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #475569;
    gap: 12px;
}

.connection-row-form {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid rgba(216, 225, 240, 0.8);
    border-radius: 12px;
    margin-bottom: 8px;
    gap: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.connection-row-form:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(11, 77, 204, 0.05);
    background: var(--surface-blue);
}

.connection-cell {
    display: flex;
    align-items: center;
    font-size: 13.5px;
}

/* Column width definitions */
.connections-table-header .station-col,
.connection-row-form .station-col {
    flex: 2;
    min-width: 140px;
    font-weight: 600;
    color: #1e293b;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.connections-table-header .arrow-col,
.connection-row-form .arrow-col {
    width: 32px;
    justify-content: center;
    color: var(--muted);
    font-weight: bold;
}

.connections-table-header .line-col,
.connection-row-form .line-col {
    flex: 1.5;
    min-width: 120px;
}

.connections-table-header .num-col,
.connection-row-form .num-col {
    width: 90px;
}

.connections-table-header .action-col,
.connection-row-form .action-col {
    width: 130px;
    justify-content: flex-end;
    gap: 6px;
}

/* Custom inputs styling inside cells */
.connection-cell select,
.connection-cell input {
    width: 100%;
    height: 34px !important;
    padding: 6px 8px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(216, 225, 240, 0.8) !important;
    background: #ffffff !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.connection-cell select:focus,
.connection-cell input:focus {
    border-color: var(--primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(11, 77, 204, 0.1) !important;
}

.action-button.compact {
    height: 34px !important;
    padding: 0 12px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    margin: 0 !important;
    line-height: 32px !important;
}

/* Responsive adjustment */
@media (max-width: 991px) {
    .connections-table-header {
        display: none;
    }
    
    .connection-row-form {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 12px;
    }
    
    .connection-cell {
        width: 100% !important;
        flex: none !important;
    }
    
    .connection-row-form .arrow-col {
        display: none;
    }
    
    .connection-row-form .action-col {
        justify-content: flex-start;
        margin-top: 4px;
        border-top: 1px solid rgba(216, 225, 240, 0.5);
        padding-top: 12px;
    }
}

/* ── Sidebar Toggle Button & Collapsed Inner States ───────────── */
body.admin-page .admin-sidebar {
    position: fixed; /* ensure relative positioning anchor works */
}

.sidebar-toggle-btn {
    position: absolute;
    top: 20px;
    right: -12px; /* Hang halfway outside the sidebar boundary */
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(216, 225, 240, 0.8);
    box-shadow: 0 2px 8px rgba(14, 34, 73, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    padding: 0;
}

.sidebar-toggle-btn:hover {
    background: var(--surface-blue);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(11, 77, 204, 0.15);
    transform: scale(1.1);
}

.sidebar-toggle-btn .toggle-icon {
    font-size: 10px;
    color: var(--primary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    line-height: 1;
}

body.admin-sidebar-collapsed .sidebar-toggle-btn .toggle-icon {
    transform: rotate(180deg);
}

/* Hide and adjust elements inside collapsed sidebar */
@media (min-width: 1201px) {
    body.admin-sidebar-collapsed .admin-sidebar .admin-link-text,
    body.admin-sidebar-collapsed .admin-sidebar .admin-link-arrow,
    body.admin-sidebar-collapsed .admin-sidebar .admin-nav-label,
    body.admin-sidebar-collapsed .admin-sidebar .admin-sidebar-summary {
        display: none !important;
    }

    body.admin-sidebar-collapsed .admin-sidebar .admin-nav-link {
        justify-content: center !important;
        padding: 12px 0 !important;
        gap: 0 !important;
    }

    body.admin-sidebar-collapsed .admin-sidebar .admin-link-icon {
        margin: 0 !important;
        font-size: 18px !important;
    }
}

/* ── Route Connections UX Optimizations ───────────────────────── */
.add-connection-card {
    background: rgba(11, 77, 204, 0.02) !important;
    border: 1px dashed rgba(11, 77, 204, 0.25) !important;
    border-radius: 14px !important;
    padding: 20px !important;
    margin-bottom: 24px !important;
    box-shadow: none !important;
}

.connections-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.connections-section-title.primary-themed {
    color: var(--primary);
}

.connections-list-title-divider {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(216, 225, 240, 0.7);
    padding-bottom: 8px;
}


.brand-logo-icon {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    flex: 0 0 42px !important;
}

.brand {
    overflow: hidden !important;
}