:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-2: #eef3fb;
    --border: #d7e3f4;
    --text: #12263f;
    --text-muted: #5b7aa5;
    --primary: #1e6fe0;
    --primary-hover: #1558b8;
    --primary-soft: #e3efff;
    --accent: #1e6fe0;
    --danger: #dc3545;
    --danger-soft: #fbe3e6;
    --success: #17a673;
    --warning: #e0a51e;
    --shadow: 0 2px 10px rgba(30, 111, 224, 0.08);
}

[data-theme="dark"] {
    --bg: #0b0f0d;
    --surface: #121a15;
    --surface-2: #17231c;
    --border: #23392c;
    --text: #e6f5ec;
    --text-muted: #7fae92;
    --primary: #1fd670;
    --primary-hover: #16b85e;
    --primary-soft: #14311f;
    --accent: #1fd670;
    --danger: #ff5c6c;
    --danger-soft: #331519;
    --success: #1fd670;
    --warning: #e0c21e;
    --shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        "Segoe UI",
        system-ui,
        -apple-system,
        sans-serif;
    background: var(--bg);
    color: var(--text);
    transition:
        background 0.25s,
        color 0.25s;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text);
}
.brand .logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.2rem;
}
[data-theme="dark"] .brand .logo {
    color: #0b0f0d;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: 0.15s;
}
.nav-link:hover {
    background: var(--surface-2);
    color: var(--text);
}
.nav-link.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.75rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.topbar h1 {
    font-size: 1.25rem;
    margin: 0;
}

.content {
    padding: 1.75rem;
}

.theme-toggle {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
}

.grid {
    display: grid;
    gap: 1.25rem;
}
.grid-cards {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.stat .label {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.stat .value {
    font-size: 2rem;
    font-weight: 700;
}
.stat .value.accent {
    color: var(--primary);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.75rem 0 1rem;
}
.section-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}
th,
td {
    text-align: left;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}
th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge.available {
    background: var(--primary-soft);
    color: var(--primary);
}
.badge.booked {
    background: var(--warning);
    color: #3a2e00;
}
.badge.in_use {
    background: var(--success);
    color: #fff;
}
.badge.maintenance,
.badge.cancelled {
    background: var(--danger-soft);
    color: var(--danger);
}
.badge.completed {
    background: var(--surface-2);
    color: var(--text-muted);
}
.badge.payment-unpaid {
    background: var(--danger-soft);
    color: var(--danger);
}
.badge.payment-partial {
    background: var(--warning);
    color: #3a2e00;
}
.badge.payment-paid {
    background: var(--success);
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.15s;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
[data-theme="dark"] .btn-primary {
    color: #0b0f0d;
}
.btn-primary:hover {
    background: var(--primary-hover);
}
.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn-outline:hover {
    background: var(--surface-2);
}
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
}

.form-group {
    margin-bottom: 1.1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
}
input,
select,
textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.92rem;
    font-family: inherit;
}
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    border-color: var(--primary);
}

.alert {
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.alert-success {
    background: var(--primary-soft);
    color: var(--primary);
}
.alert-danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.flex {
    display: flex;
}
.gap {
    gap: 0.6rem;
}
.between {
    justify-content: space-between;
}
.items-center {
    align-items: center;
}
.muted {
    color: var(--text-muted);
}
.mt {
    margin-top: 1rem;
}
.row-tier {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 0.6rem;
    align-items: end;
    margin-bottom: 0.6rem;
}
.pagination {
    display: flex;
    gap: 0.3rem;
    list-style: none;
    padding: 0;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.85rem;
}
.pagination .active span {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

@media (max-width: 780px) {
    .sidebar {
        position: fixed;
        z-index: 20;
        transform: translateX(-100%);
        transition: 0.25s;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .menu-btn {
        display: inline-flex;
    }
}
.menu-btn {
    display: none;
}

/* Faza Bike visual system v2: crisp white-blue and black-green themes */
:root {
    --bg: #f5f9ff;
    --surface: #ffffff;
    --surface-2: #edf5ff;
    --border: #d9e7f7;
    --text: #10253f;
    --text-muted: #66809f;
    --primary: #1769e0;
    --primary-hover: #0e4fb3;
    --primary-soft: #e5f0ff;
    --accent: #1769e0;
    --danger: #e05260;
    --danger-soft: #fff0f1;
    --success: #0d9f72;
    --warning: #d79518;
    --shadow: 0 14px 34px rgba(36, 91, 154, 0.09);
    --shadow-lg: 0 24px 60px rgba(34, 91, 160, 0.13);
}
[data-theme="dark"] {
    --bg: #080d0b;
    --surface: #101914;
    --surface-2: #15251c;
    --border: #274333;
    --text: #e7f4eb;
    --text-muted: #8caf99;
    --primary: #35d978;
    --primary-hover: #24b960;
    --primary-soft: #153623;
    --accent: #35d978;
    --danger: #ff6975;
    --danger-soft: #35181d;
    --success: #35d978;
    --warning: #e1bd48;
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.32);
}
html {
    background: var(--bg);
}
body {
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(
            circle at 85% -10%,
            var(--primary-soft),
            transparent 32%
        ),
        var(--bg);
    letter-spacing: -0.01em;
}
.sidebar {
    width: 272px;
    padding: 1.4rem 1rem;
    display: flex;
    flex-direction: column;
    background: color-mix(in srgb, var(--surface) 92%, var(--primary-soft));
    border-right: 1px solid var(--border);
    box-shadow: 8px 0 30px rgba(21, 82, 150, 0.035);
}
.brand {
    gap: 0.75rem;
    margin: 0 1rem 2.5rem;
    color: var(--text);
}
.brand-mark {
    width: 43px;
    height: 43px;
    border-radius: 13px;
}
.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.1;
}
.brand-copy strong {
    font-size: 1.06rem;
    letter-spacing: -0.04em;
}
.brand-copy small {
    color: var(--text-muted);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-weight: 700;
}
.nav-label {
    margin: 0 0.9rem 0.65rem;
    color: var(--text-muted);
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
}
.nav-link {
    gap: 0.85rem;
    padding: 0.78rem 0.9rem;
    margin-bottom: 0.3rem;
    border: 1px solid transparent;
    font-size: 0.86rem;
}
.nav-link svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}
.nav-link.active {
    box-shadow:
        inset 3px 0 var(--primary),
        0 6px 16px color-mix(in srgb, var(--primary) 10%, transparent);
}
.sidebar-bottom {
    margin-top: auto;
}
.external {
    margin-left: auto;
    font-size: 1rem;
    opacity: 0.6;
}
.logout-link {
    width: 100%;
    background: none;
    cursor: pointer;
    color: var(--text-muted);
}
.admin-profile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 1.5rem 0.5rem 0.2rem;
    padding: 0.85rem 0.65rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.76rem;
}
.admin-profile > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.admin-profile strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-profile small {
    color: var(--text-muted);
    font-size: 0.68rem;
    margin-top: 0.18rem;
}
.profile-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 800;
}
.status-dot {
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 14%, transparent);
}
.topbar {
    min-height: 84px;
    padding: 1rem 2.5rem;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(18px);
}
.topbar-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.eyebrow {
    display: block;
    color: var(--primary);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.topbar h1 {
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.quick-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
}
.quick-action span {
    color: var(--primary);
    font-size: 1.35rem;
    line-height: 0.7;
}
.icon-button {
    border: 0;
    background: none;
    padding: 0.5rem;
    cursor: pointer;
}
.icon-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px 0;
    background: var(--text);
    border-radius: 4px;
}
.theme-toggle {
    border-radius: 12px;
    box-shadow: none;
}
.theme-icon::before {
    content: "☼";
    color: var(--primary);
    font-size: 1.25rem;
}
[data-theme="dark"] .theme-icon::before {
    content: "☾";
}
.content {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 2.25rem 2.5rem;
}
.card {
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.card:hover {
    box-shadow: var(--shadow-lg);
}
.stat {
    position: relative;
    overflow: hidden;
    min-height: 128px;
    padding: 1.35rem 1.45rem;
}
.stat::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -30px;
    bottom: -35px;
    border-radius: 50%;
    background: var(--primary-soft);
}
.stat .label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.68rem;
    font-weight: 800;
}
.stat .value {
    position: relative;
    z-index: 1;
    font-size: 2.2rem;
    letter-spacing: -0.06em;
}
.section-head {
    margin: 2.2rem 0 1rem;
}
.section-head h2 {
    letter-spacing: -0.04em;
    font-size: 1.2rem;
}
th {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}
td,
th {
    padding: 1rem 1.15rem;
}
tr {
    transition: background 0.2s;
}
tbody tr:hover {
    background: var(--surface-2);
}
.btn {
    border-radius: 11px;
    padding: 0.68rem 1.15rem;
    box-shadow: 0 6px 14px rgba(23, 105, 224, 0.12);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
}
[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #35d978, #159d52);
}
input,
select,
textarea {
    border-radius: 11px;
    padding: 0.75rem 0.85rem;
}
.alert {
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    box-shadow: var(--shadow);
}
.sidebar-overlay {
    display: none;
}
@media (max-width: 780px) {
    .sidebar {
        z-index: 50;
        box-shadow: 18px 0 50px rgba(0, 0, 0, 0.16);
    }
    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 40;
        border: 0;
        background: rgba(6, 15, 25, 0.35);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s;
    }
    .sidebar-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }
    .menu-btn {
        display: block;
    }
    .topbar {
        padding: 1rem 1.1rem;
    }
    .content {
        padding: 1.25rem 1rem;
    }
    .quick-action {
        display: none;
    }
    .grid[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    .section-head {
        align-items: flex-start;
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    .section-head form {
        flex-wrap: wrap;
    }
}
@media (max-width: 460px) {
    .brand {
        margin-bottom: 2rem;
    }
    .topbar h1 {
        font-size: 1.1rem;
    }
    .card {
        border-radius: 14px;
    }
    table {
        min-width: 620px;
    }
    .card:has(table) {
        overflow-x: auto !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Public landing semantic colors share the admin theme */
[data-theme="light"] {
    --lp-neon: #1769e0;
    --lp-neon-2: #0d9f72;
    --lp-neon-3: #38bdf8;
}
[data-theme="dark"] {
    --lp-neon: #35d978;
    --lp-neon-2: #0f9f65;
    --lp-neon-3: #a7f3d0;
}

/* 3D hero asset */
.lp-bike-3d {
    width: min(100%, 620px);
    height: auto;
    filter: drop-shadow(0 28px 24px rgba(2, 25, 45, 0.25));
    animation: bikeFloat 5s ease-in-out infinite;
}
@keyframes bikeFloat {
    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }
    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}
.lp-hero-art {
    min-height: 430px;
}
@media (max-width: 880px) {
    .lp-hero-art {
        min-height: 300px;
    }
    .lp-bike-3d {
        max-width: 540px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .lp-bike-3d {
        animation: none;
    }
}

/* Theme corrections for the existing landing surface */
[data-theme="light"] .lp-bg {
    background: #f5f9ff;
}
[data-theme="dark"] .lp-bg {
    background: #080d0b;
}
[data-theme="dark"] .lp-aurora.aurora-1 {
    background: #0f9f65;
}
[data-theme="dark"] .lp-aurora.aurora-2 {
    background: #35d978;
}
[data-theme="light"] .lp-aurora.aurora-1 {
    background: #93c5fd;
}
[data-theme="light"] .lp-aurora.aurora-2 {
    background: #a7f3d0;
}
[data-theme="light"] .lp-nav-links a {
    color: #557293;
}
[data-theme="dark"] .lp-nav-links a,
[data-theme="dark"] .lp-hero-text p {
    color: rgba(231, 244, 235, 0.68);
}
.lp-bike-card .lp-bike-top {
    min-height: 36px;
}
.lp-bike-card::before {
    content: "";
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 68px;
    height: 48px;
    background: url("/images/faza-mark.svg") center/contain no-repeat;
    opacity: 0.22;
}
.lp-bike-card.status-available::before {
    opacity: 0.45;
}

@media (max-width: 880px) {
    .lp-nav-inner {
        padding-inline: 1rem;
    }
    .lp-container {
        padding-inline: 1rem;
    }
}
@media (max-width: 520px) {
    .lp-hero {
        padding-top: 2.5rem;
    }
    .lp-hero-text h1 {
        font-size: 2.15rem;
    }
    .lp-stats {
        justify-content: space-between;
        gap: 0.5rem;
    }
}

/* Auth page */
.auth-wrap {
    background:
        radial-gradient(
            circle at 20% 15%,
            var(--primary-soft),
            transparent 35%
        ),
        var(--bg);
}
.auth-brand .logo {
    width: 48px !important;
    height: 48px !important;
    background: none !important;
}
.auth-brand .logo img {
    width: 100%;
}
.auth-card .card {
    padding: 2rem;
}
.auth-card h2 {
    letter-spacing: -0.05em;
}
.auth-wrap {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.auth-wrap::before {
    content: "FAZA\A MOBILITY\A LAB";
    white-space: pre;
    position: absolute;
    left: 5vw;
    top: 50%;
    transform: translateY(-50%);
    color: transparent;
    -webkit-text-stroke: 1px color-mix(in srgb, var(--primary) 28%, transparent);
    font:
        800 clamp(5rem, 14vw, 13rem)/0.78 "Manrope",
        sans-serif;
    letter-spacing: -0.1em;
    z-index: -1;
}
.auth-wrap::after {
    content: "SECURE ACCESS / OPERATIONS CONSOLE";
    position: absolute;
    left: 5vw;
    bottom: 7vh;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    z-index: -1;
}
.auth-card {
    max-width: 460px;
    margin-left: 42vw;
    position: relative;
}
.auth-card .card {
    border-radius: 4px;
    border-top: 3px solid var(--primary);
    box-shadow: 0 30px 90px color-mix(in srgb, var(--primary) 12%, transparent);
}
.auth-brand {
    justify-content: flex-start;
}
@media (max-width: 760px) {
    .auth-wrap::before {
        left: 1.2rem;
        top: 8vh;
        transform: none;
        font-size: 4.5rem;
    }
    .auth-wrap::after {
        left: 1.2rem;
        bottom: 2rem;
    }
    .auth-card {
        margin: 10rem 0 3rem;
    }
}

/* Icon replacement for public brand */
.lp-brand .logo {
    background: none;
    width: 42px;
    height: 42px;
    box-shadow: none;
}
.lp-brand .logo img {
    width: 100%;
    height: 100%;
}
.lp-float-badge .fb-icon {
    display: none;
}
.lp-float-badge::before {
    content: "●";
    color: var(--lp-neon);
    font-size: 0.7rem;
}
.lp-hero-art .core {
    display: none;
}
.lp-hero-art .orbit {
    opacity: 0.35;
}

@media (max-width: 780px) {
    .sidebar {
        transform: translateX(-105%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
}

/* Control room redesign: replace the conventional admin dashboard composition */
.layout {
    background: var(--bg);
}
.sidebar {
    width: 92px;
    align-items: center;
    padding: 1.25rem 0.65rem;
    background: var(--surface);
    border-right: 1px solid var(--border);
}
.brand {
    margin: 0 0 2.5rem;
    justify-content: center;
}
.brand-copy,
.nav-label,
.nav-link span:not(.external),
.admin-profile > span:nth-child(2),
.status-dot {
    display: none;
}
.brand-mark {
    width: 46px;
    height: 46px;
}
.sidebar nav {
    width: 100%;
}
.nav-link {
    justify-content: center;
    padding: 0.9rem 0.5rem;
    border-radius: 15px;
    position: relative;
}
.nav-link svg {
    width: 22px;
    height: 22px;
}
.nav-link:hover::after {
    content: attr(aria-label);
    position: absolute;
    left: calc(100% + 0.7rem);
    z-index: 20;
    white-space: nowrap;
    padding: 0.45rem 0.65rem;
    border-radius: 7px;
    background: var(--text);
    color: var(--surface);
    font-size: 0.7rem;
    pointer-events: none;
}
.sidebar-bottom {
    width: 100%;
}
.external {
    display: block !important;
    font-size: 0.8rem;
    margin: 0;
}
.admin-profile {
    justify-content: center;
    margin-inline: 0;
    padding-inline: 0;
}
.profile-avatar {
    width: 38px;
    height: 38px;
}
.topbar {
    min-height: 94px;
    border-bottom: 0;
    background: transparent;
    padding: 1.4rem 3rem 1rem;
}
.eyebrow {
    letter-spacing: 0.24em;
}
.topbar h1 {
    font-size: 1.65rem;
}
.content {
    padding: 1.5rem 3rem 3rem;
}
.content::before {
    content: "OPERATIONS / LIVE WORKSPACE";
    display: block;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}
.grid-cards {
    gap: 0.8rem;
    grid-template-columns: repeat(6, minmax(125px, 1fr));
}
.stat {
    min-height: 145px;
    border-radius: 5px;
    border-top: 2px solid var(--border);
    box-shadow: none;
}
.stat:first-child,
.stat:last-child {
    border-top-color: var(--primary);
}
.stat::after {
    border-radius: 0;
    transform: rotate(45deg);
}
.stat .value {
    font-size: 2.45rem;
}
.section-head {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.8rem;
}
.section-head h2 {
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
}
.card {
    border-radius: 5px;
    box-shadow: none;
}
.card:hover {
    box-shadow: 0 16px 40px color-mix(in srgb, var(--primary) 8%, transparent);
}
table {
    border-collapse: separate;
    border-spacing: 0;
}
thead {
    background: var(--surface-2);
}
th,
td {
    border-bottom: 1px solid var(--border);
}
.btn {
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
}
.quick-action {
    border: 1px solid var(--border);
    padding: 0.65rem 0.9rem;
    border-radius: 5px;
}
@media (max-width: 1050px) {
    .grid-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 780px) {
    .sidebar {
        width: 272px;
        align-items: stretch;
        padding: 1.4rem 1rem;
    }
    .brand {
        margin: 0 1rem 2.5rem;
        justify-content: flex-start;
    }
    .brand-copy,
    .nav-label,
    .nav-link span:not(.external),
    .admin-profile > span:nth-child(2),
    .status-dot {
        display: initial;
    }
    .brand-copy {
        display: flex;
    }
    .nav-label {
        display: block;
    }
    .nav-link {
        justify-content: flex-start;
        padding: 0.78rem 0.9rem;
    }
    .nav-link:hover::after {
        display: none;
    }
    .admin-profile {
        justify-content: flex-start;
    }
    .topbar {
        padding: 1rem 1.1rem;
    }
    .content {
        padding: 1.25rem 1rem;
    }
    .content::before {
        margin-bottom: 1rem;
    }
}
@media (max-width: 540px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-cards .stat:last-child {
        grid-column: span 2;
    }
}

/* Compact shell refinements */
.sidebar {
    width: 78px;
    height: calc(100vh - 24px);
    margin: 12px 0 12px 12px;
    padding: 1rem 0.55rem;
    top: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
}
.brand {
    margin-bottom: 1.8rem;
}
.brand-mark {
    width: 40px;
    height: 40px;
}
.nav-link {
    padding: 0.75rem 0.45rem;
    border-radius: 11px;
}
.nav-link svg {
    width: 20px;
    height: 20px;
}
.admin-profile {
    margin-top: 1rem;
}
.profile-avatar {
    width: 34px;
    height: 34px;
}
.topbar {
    min-height: 76px;
    padding: 1rem 2rem 0.7rem;
}
.topbar h1 {
    font-size: 1.35rem;
}
.content {
    max-width: 1320px;
    padding: 1rem 2rem 2.5rem;
}
.content::before {
    margin-bottom: 1rem;
    font-size: 0.56rem;
}
.auth-wrap::before {
    font-size: clamp(4rem, 10vw, 9rem);
}
.auth-card {
    max-width: 420px;
}
.auth-card .card {
    padding: 1.6rem;
}
@media (max-width: 780px) {
    .sidebar {
        width: 250px;
        height: 100vh;
        margin: 0;
        padding: 1.1rem 0.8rem;
        top: 0;
        border-block: 0;
        border-left: 0;
        border-radius: 0;
    }
    .topbar {
        min-height: 70px;
        padding: 0.8rem 1rem;
    }
    .content {
        padding: 1rem;
    }
}
@media (max-width: 760px) {
    .auth-wrap::before {
        font-size: 3.5rem;
    }
    .auth-card {
        margin-top: 8rem;
    }
}

/* Floating Chat: keep the launcher visible even when page-specific CSS is not deployed. */
.float-chat {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 100;
    display: grid;
    justify-items: end;
    gap: 0.6rem;
}
.float-chat-menu {
    display: grid;
    gap: 0.45rem;
    justify-items: end;
}
.float-chat-menu[hidden] {
    display: none;
}
.float-chat-item,
.float-chat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(15, 35, 60, 0.22);
}
.float-chat-item {
    width: 44px;
    height: 44px;
    color: #1769e0;
    background: #ffffff;
    border-color: #1769e0;
}
.float-chat-item svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}
.float-chat-item span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.float-chat-btn {
    width: 58px;
    height: 58px;
    padding: 0;
    cursor: pointer;
    color: #ffffff;
    background: #1769e0;
    border-color: #1769e0;
}
.float-chat-btn svg {
    width: 25px;
    height: 25px;
}
.float-chat-btn .ico-close {
    display: none;
}
.float-chat.open .ico-chat {
    display: none;
}
.float-chat.open .ico-close {
    display: block;
}

[data-theme="dark"] .float-chat-item {
    color: #08100b;
    background: #35d978;
    border-color: #35d978;
}
[data-theme="dark"] .float-chat-btn {
    color: #35d978;
    background: #08100b;
    border-color: #35d978;
}
@media (max-width: 600px) {
    .float-chat {
        right: max(0.75rem, env(safe-area-inset-right));
        bottom: max(0.75rem, env(safe-area-inset-bottom));
    }
    .float-chat-item {
        width: 40px;
        height: 40px;
    }
    .float-chat-btn {
        width: 52px;
        height: 52px;
    }
}
