/**
 * FaceCard Super Admin — dark command center theme.
 * Loads after app.css / app-change.css; scoped via body.fc-admin-premium.
 */
:root.fc-admin-vars,
.fc-admin-premium {
    --fc-bg-deep: #030712;
    --fc-bg-panel: rgba(17, 24, 39, 0.72);
    --fc-bg-panel-solid: #111827;
    --fc-border: rgba(255, 255, 255, 0.08);
    --fc-border-glow: rgba(45, 212, 191, 0.35);
    --fc-accent: #2dd4bf;
    --fc-accent-soft: rgba(45, 212, 191, 0.12);
    --fc-cyan: #22d3ee;
    --fc-blue: #38bdf8;
    --fc-gold: #fbbf24;
    --fc-orange: #fb923c;
    --fc-text: #f8fafc;
    --fc-muted: #94a3b8;
    --fc-green-deep: #013220;
}

html {
    scroll-behavior: smooth;
}

body.fc-admin-premium {
    font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: radial-gradient(1200px 800px at 10% -10%, rgba(45, 212, 191, 0.12), transparent),
        radial-gradient(900px 600px at 100% 0%, rgba(56, 189, 248, 0.1), transparent),
        radial-gradient(800px 500px at 50% 100%, rgba(1, 50, 32, 0.45), transparent),
        var(--fc-bg-deep) !important;
    color: var(--fc-text) !important;
    min-height: 100vh;
}

body.fc-admin-premium #layout-wrapper {
    position: relative;
}

body.fc-admin-premium #layout-wrapper::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.06), transparent 55%);
    z-index: 0;
}

/* IMPORTANT: Never force position:relative on .vertical-menu — it breaks fixed sidebar + main-content alignment. */

body.fc-admin-premium .main-content {
    position: relative;
    z-index: 1;
}

body.fc-admin-premium h1,
body.fc-admin-premium h2,
body.fc-admin-premium h3,
body.fc-admin-premium h4,
body.fc-admin-premium h5,
body.fc-admin-premium h6,
body.fc-admin-premium .h1,
body.fc-admin-premium .h4,
body.fc-admin-premium .h5 {
    font-family: 'Urbanist', system-ui, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    color: var(--fc-text) !important;
}

body.fc-admin-premium .text-muted {
    color: var(--fc-muted) !important;
}

/* Header / topbar */
body.fc-admin-premium #layout-wrapper > #page-topbar {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fc-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    z-index: 1005;
}

body.fc-admin-premium .navbar-brand-box {
    display: none !important;
}

body.fc-admin-premium #page-header-user-dropdown span,
body.fc-admin-premium .header-item {
    color: var(--fc-text);
}

body.fc-admin-premium .dropdown-menu {
    background: var(--fc-bg-panel-solid);
    border: 1px solid var(--fc-border);
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.45);
}

body.fc-admin-premium .dropdown-item {
    color: var(--fc-text);
}

body.fc-admin-premium .dropdown-item:hover {
    background: rgba(45, 212, 191, 0.1);
}

body.fc-admin-premium .fc-theme-toggle {
    border-color: var(--fc-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--fc-muted);
}

body.fc-admin-premium .fc-theme-toggle:hover {
    color: var(--fc-text);
    border-color: var(--fc-border-glow);
    background: var(--fc-accent-soft);
}

/* Sidebar */
body.fc-admin-premium .vertical-menu {
    background: rgba(15, 23, 42, 0.82) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid var(--fc-border);
    box-shadow: 4px 0 48px rgba(0, 0, 0, 0.35);
}

/* Keep Skote layout model: fixed expanded sidebar, absolute when collapsed */
body.fc-admin-premium:not(.vertical-collpsed) .vertical-menu {
    position: fixed !important;
}

body.fc-admin-premium.vertical-collpsed .vertical-menu {
    position: absolute !important;
}

body.fc-admin-premium #sidebar-menu .menu-title {
    color: rgba(248, 250, 252, 0.45) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
}

body.fc-admin-premium #sidebar-menu ul li a {
    color: rgba(248, 250, 252, 0.92) !important;
}

body.fc-admin-premium #sidebar-menu ul li a i {
    color: #ffffff !important;
}

body.fc-admin-premium #sidebar-menu ul li a:hover {
    color: var(--fc-text) !important;
    background: rgba(255, 255, 255, 0.04);
}

body.fc-admin-premium #sidebar-menu ul li.mm-active > a,
body.fc-admin-premium #sidebar-menu ul li.mm-active .active > a {
    color: var(--fc-text) !important;
    background: linear-gradient(90deg, var(--fc-accent-soft), transparent) !important;
    border-left: 3px solid var(--fc-accent);
    border-radius: 0 12px 12px 0;
}

body.fc-admin-premium #sidebar-menu ul li ul.sub-menu {
    background: rgba(15, 23, 42, 0.64) !important;
}

body.fc-admin-premium #sidebar-menu ul li ul.sub-menu li a {
    padding-left: 2.65rem !important;
    padding-top: 0.52rem !important;
    padding-bottom: 0.52rem !important;
    transition: transform 0.2s ease, background 0.2s ease;
}

body.fc-admin-premium #sidebar-menu ul li ul.sub-menu li a i {
    min-width: 1.35rem;
    font-size: 1.05rem;
}

body.fc-admin-premium #sidebar-menu ul li.mm-active.mm-active >
    a:not(.has-arrow),
body.fc-admin-premium #sidebar-menu ul li.mm-active > a.has-arrow {
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.15);
}

body.fc-admin-premium.vertical-collpsed .vertical-menu #sidebar-menu > ul > li:hover > ul {
    background: var(--fc-bg-panel-solid) !important;
}

/* Main content */
body.fc-admin-premium .main-content {
    background: transparent !important;
}

body.fc-admin-premium .page-content {
    padding-top: calc(70px + 1rem);
}

body.fc-admin-premium .page-title-box .breadcrumb {
    background: transparent;
}

body.fc-admin-premium .page-title-box,
body.fc-admin-premium .breadcrumb-item a,
body.fc-admin-premium .breadcrumb-item.active {
    color: var(--fc-muted);
}

body.fc-admin-premium .page-title-box .page-title-box h4,
body.fc-admin-premium .page-title-box .mb-sm-0 {
    color: var(--fc-text);
}

body.fc-admin-premium .card {
    background: var(--fc-bg-panel) !important;
    border: 1px solid var(--fc-border) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease,
        border-color 0.35s ease;
}

body.fc-admin-premium a.card-mini-link,
body.fc-admin-premium a.card-mini-link:hover {
    color: inherit;
    text-decoration: none;
}

body.fc-admin-premium .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(45, 212, 191, 0.12);
    border-color: rgba(45, 212, 191, 0.25) !important;
}

body.fc-admin-premium .modal-content {
    background: var(--fc-bg-panel-solid);
    border: 1px solid var(--fc-border);
    color: var(--fc-text);
}

body.fc-admin-premium .modal-header,
body.fc-admin-premium .modal-footer {
    border-color: var(--fc-border);
}

body.fc-admin-premium .form-control,
body.fc-admin-premium .form-select {
    background-color: rgba(15, 23, 42, 0.6);
    border-color: var(--fc-border);
    color: var(--fc-text);
}

body.fc-admin-premium .btn-primary {
    background: linear-gradient(120deg, #0f766e, var(--fc-accent));
    border: none;
    border-radius: 10px !important;
    font-weight: 600;
    color: #031016 !important;
    box-shadow: 0 8px 24px rgba(45, 212, 191, 0.25);
}

body.fc-admin-premium .btn-primary:hover {
    filter: brightness(1.08);
    color: #031016 !important;
}

body.fc-admin-premium .btn-outline-light {
    border-color: var(--fc-border);
    color: var(--fc-text);
}

body.fc-admin-premium .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--fc-text);
}

/* Avatars — circular crop (no distortion); header + datatables share .fc-admin-user-avatar */
body.fc-admin-premium .fc-avatar,
body.fc-admin-premium img.fc-admin-user-avatar {
    border-radius: 9999px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    border: 2px solid rgba(45, 212, 191, 0.35);
    box-shadow: 0 0 16px rgba(45, 212, 191, 0.15);
}

body.fc-admin-premium .header-profile-user,
body.fc-admin-premium img.header-profile-user {
    border-radius: 9999px;
    object-fit: cover;
    object-position: center;
}

body.fc-admin-premium .header-profile-user {
    width: 36px;
    height: 36px;
}

body.fc-admin-premium img.fc-admin-user-avatar:not(.header-profile-user) {
    width: 44px;
    height: 44px;
}

body.fc-admin-premium .fc-avatar {
    width: 40px;
    height: 40px;
}

body.fc-admin-premium .fc-avatar.fc-avatar-sm {
    width: 32px;
    height: 32px;
}

body.fc-admin-premium img.fc-admin-user-avatar.fc-admin-user-avatar-xl {
    width: 112px !important;
    height: 112px !important;
}

body.fc-admin-premium .fc-avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(45, 212, 191, 0.35), rgba(56, 189, 248, 0.2));
    color: var(--fc-text);
    font-weight: 700;
}

body.fc-admin-premium .fc-avatar-img {
    border-radius: 9999px;
    object-fit: cover;
    object-position: center;
    display: block;
}
/* Tables — seamless hairlines (avoid heavy Bootstrap/DataTables gray boxes) */
body.fc-admin-premium .table {
    color: var(--fc-text);
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, 0.04);
    border-color: transparent !important;
}

body.fc-admin-premium div.dataTables_wrapper table.table,
body.fc-admin-premium .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.012) !important;
}

body.fc-admin-premium .table-bordered,
body.fc-admin-premium div.dataTables_wrapper .table-bordered {
    border: 1px solid rgba(255, 255, 255, 0.055) !important;
}

body.fc-admin-premium table.table-bordered th,
body.fc-admin-premium table.table-bordered td,
body.fc-admin-premium div.dataTables_wrapper table td,
body.fc-admin-premium div.dataTables_wrapper table th {
    border-width: 1px !important;
    border-style: solid !important;
    border-color: rgba(255, 255, 255, 0.045) !important;
}

body.fc-admin-premium .fc-table-shell .table {
    border-collapse: separate;
    border-spacing: 0;
}

body.fc-admin-premium .fc-table-shell .table > :not(caption) > * > * {
    border-bottom-width: 1px !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
    vertical-align: middle;
}

body.fc-admin-premium .fc-table-shell .table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(15, 23, 42, 0.94);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fc-muted);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.fc-admin-premium .fc-table-shell .table tbody tr:hover {
    background: rgba(45, 212, 191, 0.05);
}

body.fc-admin-premium .fc-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.62rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
}

body.fc-admin-premium .fc-pill-success {
    background: rgba(45, 212, 191, 0.16);
    color: var(--fc-accent);
    border: 1px solid rgba(45, 212, 191, 0.35);
}

body.fc-admin-premium .fc-pill-muted {
    background: rgba(148, 163, 184, 0.12);
    color: var(--fc-muted);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

body.fc-admin-premium .fc-pill-live {
    background: rgba(56, 189, 248, 0.14);
    color: var(--fc-blue);
    border: 1px solid rgba(56, 189, 248, 0.4);
}

/* Command center primitives */
.fc-hero-shell {
    position: relative;
    border-radius: 20px;
    padding: 1.75rem 1.85rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(15, 23, 42, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.fc-hero-shell::after {
    content: '';
    position: absolute;
    inset: -30% -20% auto auto;
    width: 50%;
    height: 140%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 55%);
    pointer-events: none;
}

.fc-cc-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.fc-mini-stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--fc-border);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.fc-mini-stat-card:hover {
    transform: translateY(-2px);
}

.fc-mini-stat-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.3rem;
    color: var(--fc-accent);
}

.fc-accent-blue .fc-mini-stat-icon {
    color: var(--fc-blue);
}
.fc-accent-orange .fc-mini-stat-icon {
    color: var(--fc-orange);
}
.fc-accent-gold .fc-mini-stat-icon {
    color: var(--fc-gold);
}

.fc-globe-svg {
    position: relative;
    border-radius: 18px;
    background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.15), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(45, 212, 191, 0.12), transparent 45%),
        rgba(2, 6, 23, 0.65);
    border: 1px solid var(--fc-border);
    min-height: 320px;
    overflow: hidden;
}

.fc-globe-svg svg {
    display: block;
    width: 100%;
    height: auto;
}

.fc-map-hotspot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    background: radial-gradient(circle, var(--fc-accent), rgba(45, 212, 191, 0.2));
    box-shadow: 0 0 16px rgba(45, 212, 191, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: transform 0.2s ease;
    z-index: 2;
}

.fc-map-hotspot:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

.fc-map-hotspot.fc-pulse::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(45, 212, 191, 0.45);
    animation: fc-pulse 2.2s ease-out infinite;
}

.fc-map-mode-events .fc-map-hotspot {
    background: radial-gradient(circle, var(--fc-accent), transparent);
}
.fc-map-mode-uploads .fc-map-hotspot {
    background: radial-gradient(circle, var(--fc-blue), transparent);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.9);
}
.fc-map-mode-matches .fc-map-hotspot {
    background: radial-gradient(circle, #22c55e, transparent);
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.85);
}
.fc-map-mode-retrievals .fc-map-hotspot {
    background: radial-gradient(circle, var(--fc-orange), transparent);
    box-shadow: 0 0 16px rgba(251, 146, 60, 0.85);
}
.fc-map-mode-revenue .fc-map-hotspot {
    background: radial-gradient(circle, var(--fc-gold), transparent);
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.85);
}

@keyframes fc-pulse {
    0% {
        transform: scale(0.7);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.fc-rank-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.fc-rank-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--fc-accent), var(--fc-cyan));
}

.fc-animate-in {
    animation: fc-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fc-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.fc-admin-premium .card,
    body.fc-admin-premium .fc-mini-stat-card,
    body.fc-admin-premium .fc-map-hotspot,
    body.fc-admin-premium .fc-animate-in {
        animation: none !important;
        transition: none !important;
    }
    body.fc-admin-premium .fc-map-hotspot.fc-pulse::after {
        animation: none !important;
    }
    .fc-stagger .fc-stagger-item {
        animation: none !important;
    }
    body.fc-admin-premium #sidebar-menu ul li ul.sub-menu.mm-show {
        animation: none !important;
    }
    body.fc-admin-premium .fc-location-drawer {
        transition: none !important;
    }
}

/* Nav tabs (dark) */
body.fc-admin-premium .nav-tabs {
    border-bottom-color: var(--fc-border);
}

body.fc-admin-premium .nav-tabs .nav-link {
    color: var(--fc-muted);
    border: 1px solid transparent;
    border-radius: 10px 10px 0 0;
}

body.fc-admin-premium .nav-tabs .nav-link:hover {
    color: var(--fc-text);
    border-color: rgba(255, 255, 255, 0.06);
}

body.fc-admin-premium .nav-tabs .nav-link.active {
    color: var(--fc-text);
    background: rgba(45, 212, 191, 0.1);
    border-color: var(--fc-border) var(--fc-border) transparent;
}

body.fc-admin-premium .nav-pills .nav-link {
    color: var(--fc-muted);
    border-radius: 999px;
}

body.fc-admin-premium .nav-pills .nav-link.active {
    background: linear-gradient(120deg, rgba(56, 189, 248, 0.2), rgba(45, 212, 191, 0.25));
    color: var(--fc-text);
    border: 1px solid rgba(45, 212, 191, 0.35);
}

/* Mobile stacking */
@media (max-width: 991.98px) {
    body.fc-admin-premium .vertical-menu {
        top: 0;
    }

    body.fc-admin-premium .fc-hero-shell {
        padding: 1.35rem;
    }

    body.fc-admin-premium .fc-table-shell .table thead {
        display: none;
    }

    body.fc-admin-premium .fc-table-shell .fc-mobile-cards tbody tr {
        display: block;
        padding: 0.85rem;
        margin-bottom: 0.85rem;
        border: 1px solid var(--fc-border);
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.45);
    }

    body.fc-admin-premium .fc-table-shell .fc-mobile-cards tbody td {
        display: flex;
        justify-content: space-between;
        border: none;
        padding: 0.38rem 0;
    }

    body.fc-admin-premium .fc-table-shell .fc-mobile-cards tbody td::before {
        content: attr(data-label);
        font-size: 0.68rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--fc-muted);
    }

    .fc-location-detail-wrap {
        position: relative;
    }

    .fc-location-drawer {
        margin-top: 1rem;
    }

    #fc-upload-spotlight {
        margin-bottom: 0.5rem;
    }
}

/* DataTables coexistence — soften white backgrounds */
body.fc-admin-premium .dataTables_wrapper .dataTables_length,
body.fc-admin-premium .dataTables_wrapper .dataTables_filter,
body.fc-admin-premium .dataTables_wrapper .dataTables_info,
body.fc-admin-premium .dataTables_wrapper .dataTables_paginate {
    color: var(--fc-muted);
}

body.fc-admin-premium table.dataTable tbody tr {
    background-color: transparent;
}

/* Overview panel + premium tabs */
.fc-overview-panel {
    position: relative;
    padding: 1.25rem 1.35rem 0;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.55), rgba(3, 7, 18, 0.35));
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.fc-overview-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 50% at 0% 0%, rgba(45, 212, 191, 0.08), transparent 55%);
}

.fc-overview-heading {
    position: relative;
    z-index: 1;
}

.fc-overview-tabs {
    position: relative;
    z-index: 1;
    gap: 0.35rem;
}

.fc-overview-tabs .nav-link {
    border-radius: 12px 12px 0 0 !important;
    padding: 0.62rem 1.25rem !important;
    font-weight: 600;
    border: 1px solid transparent !important;
    margin-bottom: -1px;
}

.fc-overview-tabs .nav-link.active {
    background: linear-gradient(180deg, rgba(45, 212, 191, 0.14), rgba(15, 23, 42, 0.92)) !important;
    border-color: rgba(45, 212, 191, 0.35) rgba(45, 212, 191, 0.15) transparent !important;
    box-shadow: 0 -4px 24px rgba(45, 212, 191, 0.08);
}

.fc-overview-panel--unified {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden;
}

.fc-overview-panel-body {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(3, 7, 18, 0.35);
    border-radius: 0 0 18px 18px;
    min-height: 2rem;
}

.fc-focus-hero {
    border-radius: 18px;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(15, 23, 42, 0.82));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.tab-content .tab-pane {
    padding-top: 1rem;
}

/* Event performance trends */
.fc-trend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 1.1rem;
}

.fc-trend-up {
    color: var(--fc-accent);
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.35);
}

.fc-trend-down {
    color: #fb7185;
    background: rgba(251, 113, 133, 0.1);
    border: 1px solid rgba(251, 113, 133, 0.35);
}

.fc-trend-flat {
    color: var(--fc-muted);
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Upload spotlight + glass panels */
.fc-glass-panel {
    border-radius: 16px;
    padding: 1.15rem 1.35rem;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.fc-map-spotlight {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

/* Location drawer micro-feedback */
.fc-location-drawer {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.fc-location-drawer--pop {
    transform: scale(1.01);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.35), 0 16px 48px rgba(0, 0, 0, 0.35);
}

/* Staggered dashboard entrance */
.fc-stagger .fc-stagger-item:nth-child(1) {
    animation-delay: 0.04s;
}
.fc-stagger .fc-stagger-item:nth-child(2) {
    animation-delay: 0.1s;
}
.fc-stagger .fc-stagger-item:nth-child(3) {
    animation-delay: 0.16s;
}

.fc-stagger .fc-stagger-item {
    animation: fc-fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Sidebar submenu polish (metismenu keeps behavior; soften open/close) */
body.fc-admin-premium #sidebar-menu ul li ul.sub-menu.mm-show {
    animation: fc-submenu-in 0.22s ease-out both;
}

@keyframes fc-submenu-in {
    from {
        opacity: 0.85;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Footer --- */
body.fc-admin-premium footer.footer.fc-command-footer {
    margin-top: auto;
    background: linear-gradient(90deg, var(--fc-green-deep) 0%, #0a2530 52%, rgba(56, 189, 248, 0.14) 100%);
    border-top: 1px solid var(--fc-border-glow);
    color: rgba(248, 250, 252, 0.92) !important;
    padding: 1rem 0;
}

body.fc-admin-premium footer.footer.fc-command-footer .fc-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

body.fc-admin-premium footer.footer.fc-command-footer a {
    color: rgba(248, 250, 252, 0.85);
}

.fc-panel-card {
    border-radius: 16px;
    border: 1px solid var(--fc-border);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Header avatar */
.fc-header-profile {
    gap: 0.5rem;
}

.fc-header-avatar-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(45, 212, 191, 0.35);
    overflow: hidden;
    width: 38px;
    height: 38px;
    background: radial-gradient(circle at 30% 20%, rgba(45, 212, 191, 0.2), transparent);
}

.fc-header-profile img.header-profile-user,
.fc-admin-user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fc-header-avatar-initials {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--fc-text);
}

/* Login */
body.fc-admin-login-premium {
    font-family: 'Urbanist', system-ui, sans-serif !important;
    min-height: 100vh;
    background: radial-gradient(1200px 800px at 10% -10%, rgba(45, 212, 191, 0.12), transparent),
        radial-gradient(900px 600px at 100% 0%, rgba(56, 189, 248, 0.1), transparent),
        radial-gradient(800px 500px at 50% 100%, rgba(1, 50, 32, 0.55), transparent), #030712 !important;
    color: rgba(248, 250, 252, 0.95);
}

.fc-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 1rem;
}

.fc-login-card {
    width: min(460px, 100%);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.75);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.fc-login-card-header {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(56, 189, 248, 0.1));
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    padding: 1.75rem 1.5rem 1.35rem;
    text-align: center;
}

.fc-login-card .form-control {
    border-radius: 12px;
    background: rgba(3, 7, 18, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #f8fafc;
}

.fc-login-card .form-control:focus {
    border-color: rgba(45, 212, 191, 0.55);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.fc-login-submit {
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 700;
    color: #021014;
    background: linear-gradient(120deg, #2dd4bf, #38bdf8);
}

.fc-batch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 1rem;
}

.fc-batch-visual-card {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(15, 23, 42, 0.6);
    overflow: hidden;
    transition: border-color 0.2s ease-out, transform 0.2s ease-out;
}

.fc-batch-visual-card:hover {
    border-color: rgba(45, 212, 191, 0.35);
    transform: translateY(-2px);
}

.fc-batch-visual-thumb {
    height: 120px;
    background: radial-gradient(circle at 30% 20%, rgba(45, 212, 191, 0.2), transparent), #030712;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fc-batch-visual-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fc-batch-chip {
    border-radius: 999px;
    padding: 0.12rem 0.55rem;
    font-size: 0.74rem;
    font-weight: 600;
}

.fc-mini-stat-hover {
    transition: transform 0.2s ease-out, border-color 0.2s ease-out;
}

a.fc-mini-stat-hover:hover .card {
    border-color: rgba(45, 212, 191, 0.45) !important;
    transform: translateY(-2px);
}

.fc-footer-muted {
    color: rgba(148, 163, 184, 0.88);
}

body.fc-admin-premium #layout-wrapper {
    min-height: 100vh;
}

body.fc-admin-premium #layout-wrapper > .main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1 1 auto;
}

body.fc-admin-premium footer.footer.fc-command-footer {
    align-self: stretch;
}

body.fc-admin-premium footer.footer.fc-command-footer,
body.fc-admin-premium.vertical-collpsed footer.footer.fc-command-footer {
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
}

body.fc-admin-premium footer.footer.fc-command-footer .fc-footer-shell {
    width: 100%;
    max-width: none;
}

body.fc-admin-premium footer.footer.fc-command-footer .fc-footer-inner {
    width: 100%;
}

body.fc-admin-premium footer.footer.fc-command-footer .fc-footer-copy {
    text-align: left;
}

body.fc-admin-premium #layout-wrapper > .main-content > .page-content {
    flex: 1 1 auto;
    width: 100%;
}

body.fc-admin-premium #layout-wrapper > .main-content > .alert,
body.fc-admin-premium #layout-wrapper > .main-content > .container-fluid.alert {
    width: 100%;
}

body.fc-admin-premium .main-content > .page-content > .container-fluid {
    padding-bottom: 2rem;
    max-width: 100%;
}

body.fc-admin-premium #layout-wrapper > .main-content,
body.fc-admin-premium #layout-wrapper > .main-content > .page-content,
body.fc-admin-premium .page-content > .container-fluid {
    overflow-x: clip;
    max-width: 100%;
}

.fc-leaflet-map-shell.fc-map-shell {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.fc-leaflet-canvas.leaflet-container,
.fc-leaflet-canvas {
    width: 100%;
    min-height: min(520px, 55vh);
    height: clamp(260px, 42vw, 520px);
    background: radial-gradient(circle at 40% 20%, rgba(45, 212, 191, 0.08), transparent 55%), rgba(15, 23, 42, 0.42);
}

body.fc-admin-premium .leaflet-container {
    border-radius: 1rem;
    font-family: 'Urbanist', system-ui, sans-serif !important;
}

.fc-spark-chart {
    min-height: 110px;
}

.fc-overview-analytics-widgets .fc-spark-widget {
    overflow: hidden;
}

.fc-event-performance-split .fc-chart-panel-solid {
    min-height: min(440px, 100%);
}

@media (max-width: 991px) {
    .fc-overview-analytics-widgets .fc-spark-widget .fc-spark-caption {
        min-height: 0;
    }

    .fc-global-map-wrap .fc-location-detail-wrap {
        padding-top: 0.75rem !important;
    }

    body.fc-admin-premium .sticky-lg-top.fc-map-drawer-stick {
        position: static !important;
    }

    body.fc-admin-premium .leaflet-popup-content {
        max-width: 240px !important;
    }
}

.fc-profile-avatar-link img {
    display: block;
}
