﻿@import url('design_tokens.css');

@font-face {
    font-family: 'Google Sans';
    src: url('../fonts/static/GoogleSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans';
    src: url('../fonts/static/GoogleSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans';
    src: url('../fonts/static/GoogleSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Google Sans';
    src: url('../fonts/static/GoogleSans-Bold.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* ═══ Legacy aliases → official --ct-* tokens (single source of truth) ═══ */
    --bg-deep: var(--ct-bg-deep);
    --bg-sidebar: var(--ct-bg-sidebar);
    --bg-main: var(--ct-bg-main);
    --teal: var(--ct-cyan);
    --teal-glow: var(--ct-cyan-glow);
    --glass-card: var(--ct-bg-card);
    --glass-border: var(--ct-border);
    --glass-focus: var(--ct-border-cyan-focus);
    --text-white: var(--ct-text-primary);
    --text-dim: var(--ct-text-secondary);
    /* Legacy spacing / geometry tokens */
    --sidebar-width: 280px;
    --elite-radius: 16px;
    --elite-gap: 20px;
    --elite-page-padding-v: 30px;
    --elite-page-padding-h: 20px;
    --elite-header-gap: 8px;
    --elite-section-gap: 15px;
    --elite-label-gap: 15px;
    --elite-field-gap: 5px;
}

html,
body,
button,
input,
select,
textarea,
optgroup,
option {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

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

/* Pseudo-element overrides for 100% coverage */
::placeholder,
::-webkit-input-placeholder,
::-moz-placeholder,
:-ms-input-placeholder {
    font-family: 'Google Sans', sans-serif !important;
    opacity: 0.6;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Page Transition System (Global — Black Fade) ── */
html {
    background: #000;
}

body {
    transition: opacity 0.35s ease;
}

body.ct-preload {
    opacity: 0 !important;
    transition: none !important;
}

body.ct-fade-out {
    opacity: 0 !important;
    pointer-events: none;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease both;
}

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

/* SIDEBAR Styles */
.sidebar {
    flex: 0 0 var(--sidebar-width);
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--bg-sidebar) 0%, #00161B 100%);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    /* Vertical padding only, items have horizontal padding */
    border-right: 1px solid rgba(0, 209, 224, 0.1);
    position: relative;
    overflow-y: auto;
    /* Enable vertical scroll */
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 209, 224, 0.2) transparent;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    z-index: 800;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Premium Scrollbar (WebKit) */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 209, 224, 0.1);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 209, 224, 0.3);
}

.nav-section-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--teal);
    opacity: 0.5;
    padding: 15px 5px 5px 5px;
    /* Ultra-minimal padding */
    user-select: none;
}

.logo-section {
    padding: 10px 5px 20px 5px;
    /* Ultra-minimal padding */
    z-index: 2;
}

.logo-placeholder {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    max-width: 160px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 209, 224, 0.2));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 15px;
}

.nav-item {
    margin: 0;
}


.sidebar::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(0, 209, 224, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.5;
    pointer-events: none;
}

/* SIDEBAR OVERLAY (Mobile) */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 16, 20, 0.7);
    backdrop-filter: blur(5px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Nav Menu Structure moved to Sidebar scroll block */

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Reduced gap between icon and text */
    padding: 8px 10px;
    /* Compact vertical and left padding */
    border-radius: 10px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    /* Slightly smaller font for compactness */
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    position: relative;
    border: 1px solid transparent;
}

.nav-item:hover {
    color: #fff;
    background: rgba(0, 209, 224, 0.05);
    transform: translateX(4px);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(0, 209, 224, 0.1) 0%, transparent 100%);
    border-color: rgba(0, 209, 224, 0.2);
    box-shadow: inset 0 0 15px rgba(0, 209, 224, 0.05);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 3px;
    background: var(--teal);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--teal);
}

.nav-item:nth-child(1) {
    animation-delay: 0.3s;
}

.nav-item:nth-child(2) {
    animation-delay: 0.4s;
}

.nav-item:nth-child(3) {
    animation-delay: 0.5s;
}

.nav-item:nth-child(4) {
    animation-delay: 0.6s;
}

.nav-item:nth-child(5) {
    animation-delay: 0.7s;
}

.nav-item:nth-child(6) {
    animation-delay: 0.8s;
}

.nav-item:nth-child(7) {
    animation-delay: 0.9s;
}

.nav-item:nth-child(8) {
    animation-delay: 1.0s;
}

.nav-item:nth-child(9) {
    animation-delay: 1.1s;
}

.nav-item:nth-child(10) {
    animation-delay: 1.2s;
}

.nav-item:nth-child(11) {
    animation-delay: 1.3s;
}

.nav-item:nth-child(12) {
    animation-delay: 1.4s;
}

.nav-item:nth-child(13) {
    animation-delay: 1.5s;
}

.nav-item:nth-child(14) {
    animation-delay: 1.6s;
}

.nav-item:nth-child(15) {
    animation-delay: 1.7s;
}

.nav-item:nth-child(16) {
    animation-delay: 1.8s;
}

.nav-item:nth-child(17) {
    animation-delay: 1.9s;
}

.nav-item:nth-child(18) {
    animation-delay: 2.0s;
}

.nav-item:nth-child(19) {
    animation-delay: 2.1s;
}

.nav-item:nth-child(20) {
    animation-delay: 2.2s;
}

.nav-item .nav-icon {
    width: 18px;
    height: 18px;
    color: var(--teal);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    color: #fff;
    filter: drop-shadow(0 0 8px var(--teal));
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: auto;
    z-index: 2;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.7s;
}

.copyright {
    font-size: 10px;
    font-weight: 800;
    color: rgba(0, 209, 224, 0.2);
    letter-spacing: 3px;
    text-transform: uppercase;
    padding-left: 10px;
}

/* MAIN CONTENT Styles */
.main-content {
    flex-grow: 1;
    min-width: 0;
    background-color: var(--bg-main);
    padding: var(--elite-page-padding-v) var(--elite-page-padding-h);
    display: flex;
    flex-direction: column;
    /* Prevent horizontal overflow from grids */
    overflow-x: hidden;
}

/* TABLET & MOBILE RESPONSIVE LAYOUT (< 1024px) */
/* TABLET & MOBILE RESPONSIVE LAYOUT (< 1024px) - MOVED TO NUCLEAR OVERRIDES AT END OF FILE */

/* GLOBAL MOBILE TOUCH TARGETS & ACCESSIBILITY (< 1024px) */
@media (max-width: 1024px) {

    button,
    .btn,
    .form-control,
    .select-trigger,
    .nav-item,
    a.action-link {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Page Title Section */
/* Page Title Styles moved to assets/css/page_header.css */

/* Content Divider Styles moved to assets/css/page_header.css */

/* Page Title Text Styles moved to assets/css/page_header.css */

/* Info Section Styles */
.info-section {
    width: 100%;
    /* Garante que ocupe a largura disponÃ­vel */
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 1s;
}

.section-label {
    display: inline-block;
    padding: 0;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 0;
    margin-bottom: var(--elite-label-gap);
    position: relative;
    opacity: 0.9;
    transition: all 0.4s ease;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Elite Architectural Spacing Reset 🏗️ 
   Resets margin-top to 0 for labels that are the first semantic content 
   after the standard page header components. */
.main-content> :first-child .section-label:first-child,
.header-wrapper+.info-section .section-label:first-child,
.header-wrapper+div .section-label:first-child,
.content-divider+.section-label:first-child,
.content-divider+* .section-label:first-child,
.content-divider+div .section-label:first-child {
    margin-top: 0 !important;
}

@keyframes colorTransition {

    0%,
    97%,
    100% {
        color: #ffffff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }

    98.5% {
        color: var(--teal);
        text-shadow: 0 0 5px rgba(0, 209, 224, 0.3);
    }
}

/* Efeito extra no hover */
.section-label:hover {
    opacity: 1;
}

/* ── Section Hero Label (Design System §28B) ── */
.ct-section-hero {
    display: block;
    padding: 0;
    font-family: 'Google Sans', sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    opacity: 0.9;
    margin-top: 0;
    margin-bottom: 8px;  /* --ct-space-sm: label → conteúdo */
    transition: opacity 0.3s ease;
}
.ct-section-hero:hover {
    opacity: 1;
}

.section-hint {
    font-size: 13px;
    color: var(--text-dim);
    margin: 0 0 15px 2px;
    /* Margem top removida para respeitar o gap, 15px de respiro no final */
    opacity: 0.8;
    line-height: 1.5;
    animation: fadeInUp 0.8s both;
    animation-delay: 0.2s;
}

/* Removed section-label trailing line */

.info-header {
    font-size: 28px;
    font-weight: 700;
    margin-top: 5px;
    /* Ajuste para respeitar a label acima, caso exista */
    margin-bottom: 8px;
    color: #fff;
}

.info-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dim);
    font-weight: 400;
    margin-bottom: 20px;
    /* Margem padrÃ£o inferior */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Collaborator Grid & Cards */
.collab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.collab-card {
    background: var(--glass-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 209, 224, 0.1);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.collab-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 209, 224, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(1, 42, 50, 0.9);
}

.collab-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 209, 224, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 209, 224, 0.2);
}

.collab-img i {
    font-size: 24px;
    color: var(--teal);
}

.collab-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.collab-info p {
    font-size: 12px;
    color: var(--text-dim);
}

.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge.active {
    background: rgba(0, 255, 127, 0.1);
    color: #00ff7f;
    border: 1px solid rgba(0, 255, 127, 0.3);
}

.status-badge.away {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* FORM STYLES */
.registration-form {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Standardizing to 20px for row rhythm */
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--elite-field-gap);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    position: relative;
    /* Base for z-index */
}

/* Elevate the entire row when a child select is active */
.form-group:has(.custom-select.active) {
    z-index: 1001;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-left: 2px;
}

.field-hint {
    font-size: 11px;
    color: var(--text-dim);
    opacity: 0.7;
    margin-top: 4px;
    margin-left: 2px;
    font-style: italic;
}

.form-control {
    background: rgba(0, 209, 224, 0.05);
    border: 1px solid rgba(0, 209, 224, 0.1);
    border-radius: 12px;
    padding: 14px 20px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--teal);
    background: rgba(0, 209, 224, 0.08);
    box-shadow: 0 0 15px rgba(0, 209, 224, 0.2);
}

/* Neutralize Browser Autofill Styles (Fix for different coloring in Email/Password) */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0px 1000px #002329 inset !important;
    /* Calibrated blend result */
    transition: background-color 5000s ease-in-out 0s;
    border: 1px solid rgba(0, 209, 224, 0.1) !important;
}

/* CUSTOM SELECT */
.custom-select {
    position: relative;
    width: 100%;
    z-index: 1;
    /* Relative base */
}

.custom-select.active {
    z-index: 1000;
    /* Force it above everything when open */
}

.select-trigger {
    background: rgba(0, 209, 224, 0.05);
    border: 1px solid rgba(0, 209, 224, 0.1);
    border-radius: 12px;
    padding: 14px 20px;
    color: var(--text-dim);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.select-trigger:hover {
    border-color: rgba(0, 209, 224, 0.3);
}

.custom-select.active .select-trigger {
    border-color: var(--teal);
    box-shadow: 0 0 15px rgba(0, 209, 224, 0.2);
    color: #fff;
}

.select-trigger i {
    font-size: 12px;
    color: var(--teal);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select.active .select-trigger i {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #011d23;
    /* Darker, more solid background for contrast */
    border: 1px solid var(--teal);
    border-radius: 12px;
    padding: 8px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 209, 224, 0.1);
    backdrop-filter: blur(15px);
}

.custom-select.active .select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.select-option {
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-option:hover {
    background: rgba(0, 209, 224, 0.1);
    color: #fff;
    padding-left: 20px;
    /* Micro-interaction feedback */
}

.select-option.selected {
    background: rgba(0, 209, 224, 0.15);
    color: #fff;
    font-weight: 700;
    border-left: 3px solid var(--teal);
}

.transport-toggle {
    display: flex;
    gap: 15px;
    align-items: center;
}

.radio-group {
    display: flex;
    gap: 20px;
    background: rgba(0, 209, 224, 0.05);
    /* Standardized to 5% */
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 209, 224, 0.1);
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-item input {
    accent-color: var(--teal);
    width: 16px;
    height: 16px;
}

.transport-options {
    display: none;
    background: rgba(0, 209, 224, 0.02);
    padding: 18px;
    border-radius: 12px;
    border: 1px dashed rgba(0, 209, 224, 0.2);
    margin-top: 10px;
    animation: fadeInUp 0.5s ease-out both;
}

.transport-options.visible {
    display: block;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 5px;
    max-width: 500px;
    /* Constraining total width */
}

.selection-card {
    background: rgba(0, 209, 224, 0.03);
    border: 1px solid rgba(0, 209, 224, 0.1);
    border-radius: 12px;
    /* Matching input radius */
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    /* More compact rhythm */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.selection-card i {
    font-size: 18px;
    /* Aligning icon size with nav icons */
    color: var(--teal);
    transition: all 0.3s ease;
}

.selection-card span {
    font-size: 11px;
    /* Slightly smaller for balance */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.selection-card:hover {
    background: rgba(0, 209, 224, 0.08);
    transform: translateY(-4px);
    border-color: rgba(0, 209, 224, 0.3);
}

.selection-card.selected {
    background: rgba(0, 209, 224, 0.12);
    border-color: var(--teal);
    box-shadow: 0 0 20px rgba(0, 209, 224, 0.2), inset 0 0 10px rgba(0, 209, 224, 0.1);
}

.selection-card.selected i {
    color: #fff;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--teal));
}

.selection-card.selected span {
    color: #fff;
}

.selection-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.submit-btn {
    background: var(--teal);
    color: var(--bg-deep);
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 20px;
    width: fit-content;
    box-shadow: 0 0 20px rgba(0, 209, 224, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 209, 224, 0.4);
    background: #00f0ff;
}

/* RESPONSIVE CSS LOGIC MOVED TO UNIFIED BLOCKS AT LINE 380+ */

/* LEGACY MOBILE RULES PURGED IN FAVOR OF 1024px UNIFIED FRAMEWORK */

/* RESPONSIVE: ULTRA-MOBILE */
@media (max-width: 400px) {
    .main-content {
        padding: 15px 10px;
    }

    .page-title h1 {
        font-size: 18px;
    }

    .page-title p {
        font-size: 11px;
    }

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

    .stat-card {
        padding: 12px;
    }

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

    .section-label {
        font-size: 9px;
        letter-spacing: 1px;
        padding: 4px 10px;
    }

    /* Buttons: Ensure full-width and touch-friendly 44px min-height */
    .save-btn,
    .cancel-btn,
    .submit-btn,
    .btn-primary-elite {
        min-height: 44px;
        width: 100%;
        font-size: 12px;
    }

    /* Custom select: Ensure it doesn't overflow */
    .select-options {
        max-height: 200px;
    }

    .compliance-dropdown.open {
        max-height: 180px;
    }
}

/* USER MANAGEMENT & STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(0, 209, 224, 0.03);
    border: 1px solid rgba(0, 209, 224, 0.1);
    border-radius: var(--elite-radius);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: fadeInUp 0.8s both;
}

.stat-card:hover {
    background: rgba(0, 209, 224, 0.06);
    border-color: rgba(0, 209, 224, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.directory-filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.stat-value {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
}

.stat-trend {
    font-size: 12px;
    color: var(--teal);
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.user-card {
    background: rgba(10, 31, 35, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--ct-radius-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: fadeInUp 0.8s both;
    backdrop-filter: blur(10px);
    position: relative;
}

.user-card:hover {
    border-color: rgba(0, 209, 224, 0.3);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(10, 31, 35, 0.6);
}

.user-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    padding: 2px;
    position: relative;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Site Card Elite Style */
.site-card-elite {
    background: rgba(10, 31, 35, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--ct-radius-card);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.site-card-elite:hover {
    border-color: rgba(0, 209, 224, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background: rgba(10, 31, 35, 0.6);
}

.site-card-elite .card-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: 0.3s;
    transform: translateX(10px);
}

.site-card-elite:hover .card-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn-mini {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    cursor: pointer;
    transition: 0.2s;
}

.action-btn-mini:hover {
    background: var(--teal);
    color: var(--bg-deep);
    border-color: var(--teal);
    transform: scale(1.1);
}

.action-btn-mini.delete:hover {
    background: #ff4444;
    color: #fff;
    border-color: #ff4444;
}

/* Partner Counters Bar */
.partner-counters-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.partner-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 18px;
    background: rgba(0, 209, 224, 0.03);
    border: 1px solid rgba(0, 209, 224, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
}

.partner-counter:hover {
    background: rgba(0, 209, 224, 0.08);
    border-color: rgba(0, 209, 224, 0.2);
    transform: translateY(-1px);
}

.partner-counter.active {
    background: rgba(0, 209, 224, 0.1);
    border-color: var(--teal);
    box-shadow: 0 0 12px rgba(0, 209, 224, 0.15);
}

.partner-counter .counter-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--teal);
    line-height: 1;
}

.partner-counter .counter-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.partner-counter.active .counter-label {
    color: #fff;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* SITE DOCUMENT MANAGEMENT                   */
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

.site-docs-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px;
    border-radius: 10px;
    background: rgba(0, 209, 224, 0.03);
    border: 1px dashed rgba(0, 209, 224, 0.12);
    color: var(--text-dim);
    font-size: 12px;
    opacity: 0.6;
}

.site-docs-placeholder i {
    font-size: 20px;
    color: var(--teal);
    opacity: 0.4;
}

.doc-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 22px;
    border-radius: 10px;
    border: 2px dashed rgba(0, 209, 224, 0.2);
    background: rgba(0, 209, 224, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
}

.doc-upload-area:hover {
    border-color: rgba(0, 209, 224, 0.5);
    background: rgba(0, 209, 224, 0.06);
    transform: translateY(-1px);
}

.doc-upload-area i {
    font-size: 24px;
    color: var(--teal);
    opacity: 0.6;
}

.doc-upload-area span {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 600;
}

.doc-upload-area small {
    font-size: 10px;
    color: var(--text-dim);
    opacity: 0.5;
}

.doc-progress-bar {
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    margin-top: 10px;
    overflow: hidden;
}

.doc-progress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--teal), #00f5d4);
    transition: width 0.2s ease;
}

.doc-progress-text {
    font-size: 10px;
    color: var(--teal);
    font-weight: 700;
    display: block;
    text-align: center;
    margin-top: 4px;
}

.doc-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doc-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0, 209, 224, 0.04);
    border: 1px solid rgba(0, 209, 224, 0.08);
    transition: all 0.2s ease;
}

.doc-list-item:hover {
    background: rgba(0, 209, 224, 0.08);
    border-color: rgba(0, 209, 224, 0.15);
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.doc-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.doc-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-details {
    font-size: 10px;
    color: var(--text-dim);
    opacity: 0.6;
}

.doc-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.doc-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(0, 209, 224, 0.15);
    background: rgba(0, 209, 224, 0.05);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.doc-action-btn:hover {
    background: rgba(0, 209, 224, 0.15);
    border-color: rgba(0, 209, 224, 0.3);
    transform: translateY(-1px);
}

.doc-action-btn.delete {
    color: var(--error, #e74c3c);
    border-color: rgba(231, 76, 60, 0.15);
    background: rgba(231, 76, 60, 0.05);
}

.doc-action-btn.delete:hover {
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.3);
}

/* Document count badge in site cards */
.site-doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--teal);
    opacity: 0.7;
    font-weight: 600;
}

/* Queued items styling */
.doc-list-item.queued {
    border-style: dashed;
    border-color: rgba(0, 209, 224, 0.2);
    background: rgba(0, 209, 224, 0.02);
}

.doc-list-item.queued .doc-name {
    color: var(--text-dim);
}

/* Document shortcuts on cards */
.card-doc-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.doc-link-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.doc-link-mini:hover {
    background: rgba(0, 209, 224, 0.1);
    border-color: rgba(0, 209, 224, 0.3);
    color: var(--teal);
    transform: translateY(-1px);
}

.doc-link-mini i {
    font-size: 12px;
}

/* Global Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9000;
    display: none;
    /* Controlled via JS */
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    border-radius: var(--elite-radius);
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

/* Document Manager Modal */
.doc-manager-content {
    max-width: 580px !important;
    width: 95%;
    background: #011215 !important;
    padding: 24px !important;
    /* Standard Elite Padding */
    overflow: visible !important;
}

.doc-manager-content .section-label {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin-bottom: 8px !important;
    opacity: 0.8;
}

.doc-manager-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.doc-preview-container {
    width: 100%;
    height: 320px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 600px) {
    .doc-preview-container {
        height: 220px;
    }
}

.doc-management-controls {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 5px;
}

.rename-group {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.doc-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.doc-manager-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    /* Reduced from 12px */
    border-radius: 8px;
    border: 1px solid rgba(0, 209, 224, 0.2);
    background: rgba(0, 209, 224, 0.05);
    color: var(--teal);
    font-size: 12px;
    /* Reduced from 13px */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doc-manager-btn:hover:not(:disabled) {
    background: rgba(0, 209, 224, 0.15);
    border-color: rgba(0, 209, 224, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 209, 224, 0.1);
}

.doc-manager-btn.danger {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.2);
    background: rgba(231, 76, 60, 0.05);
}

.doc-manager-btn.danger:hover {
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.4);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.1);
}

/* Redesigned Close Button */
.close-doc-mgr {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 32px;
    height: 32px;
    background: #011215;
    border: 1px solid rgba(0, 209, 224, 0.3);
    border-radius: 50%;
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.close-doc-mgr:hover {
    background: var(--teal);
    color: #011215;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px var(--teal);
}

@media (max-width: 480px) {
    .doc-actions-grid {
        grid-template-columns: 1fr;
    }

    .close-doc-mgr {
        top: 10px;
        right: 10px;
    }
}

.site-card-elite .site-id {
    font-size: 10px;
    font-weight: 900;
    color: var(--teal);
    opacity: 0.6;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-card-elite h3 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 4px 0;
}

.site-card-elite .partner-link {
    font-size: 12px;
    color: var(--teal);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-divider-site {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    margin: 10px 0;
}

.site-detail-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-detail-item {
    display: flex;
    gap: 12px;
}

.site-detail-icon {
    width: 34px;
    height: 34px;
    background: rgba(0, 209, 224, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    font-size: 14px;
    flex-shrink: 0;
}

.site-detail-info {
    display: flex;
    flex-direction: column;
}

.site-detail-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.site-detail-value {
    font-size: 12px;
    color: #eee;
    line-height: 1.4;
}

.compliance-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.compliance-pill {
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    background: rgba(0, 209, 224, 0.1);
    color: var(--teal);
    border-radius: 4px;
    text-transform: uppercase;
}

.compliance-pill.removable {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: default;
    padding: 4px 10px;
}

.compliance-pill.removable i {
    cursor: pointer;
    font-size: 10px;
    opacity: 0.6;
    transition: 0.2s;
}

.compliance-pill.removable i:hover {
    opacity: 1;
    color: #ff4444;
}

/* Compliance Expandable Selector */
.compliance-selector {
    position: relative;
    margin-top: 8px;
}

.compliance-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(0, 209, 224, 0.05);
    border: 1px solid rgba(0, 209, 224, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dim);
    font-size: 14px;
}

.compliance-trigger:hover,
.compliance-selector.active .compliance-trigger {
    border-color: var(--teal);
    background: rgba(0, 209, 224, 0.05);
}

.compliance-trigger i {
    color: var(--teal);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.compliance-trigger i.rotated {
    transform: rotate(180deg);
}

.compliance-dropdown {
    position: relative;
    width: 100%;
    background: #011d23;
    border: 1px solid var(--teal);
    border-radius: 12px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.3s ease, margin 0.3s ease;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    margin-top: 0;
    border-width: 0;
}

.compliance-dropdown.open {
    max-height: 250px;
    overflow-y: auto;
    opacity: 1;
    padding: 10px;
    margin-top: 6px;
    border-width: 1px;
}

.compliance-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-dim);
    transition: 0.2s;
}

.compliance-option:hover {
    background: rgba(0, 209, 224, 0.08);
    color: #fff;
}

.compliance-option input[type="checkbox"] {
    accent-color: var(--teal);
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* User Type Specific Avatar Borders */
.user-avatar.type-ceo {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(0, 209, 224, 0.6), inset 0 0 10px rgba(0, 209, 224, 0.4);
}

.user-avatar.type-admin {
    border-color: #00ff88;
    /* Green */
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.user-avatar.type-partner {
    border-color: #ffcc00;
    /* Yellow */
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
}

.user-avatar.type-freelancer {
    border-color: var(--teal);
    /* Default Blue/Teal */
    box-shadow: 0 0 10px rgba(0, 209, 224, 0.2);
}


.user-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
}

.user-id-tag {
    position: absolute;
    top: 20px;
    right: 18px !important;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 700;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 10;
}

.user-info p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-dim);
}

.user-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.action-btn {
    flex: 1;
    background: rgba(0, 209, 224, 0.03);
    border: 1px solid rgba(0, 209, 224, 0.2);
    border-radius: 12px;
    padding: 12px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-btn:hover {
    background: rgba(0, 209, 224, 0.1);
    transform: translateY(-2px) scale(1.02);
    border-color: var(--teal);
    color: #fff;
    box-shadow: 0 5px 20px rgba(0, 209, 224, 0.2);
}

.approve-btn {
    flex: 2;
    background: linear-gradient(135deg, rgba(0, 209, 224, 0.15), rgba(0, 255, 136, 0.1));
    border: 1px solid rgba(0, 209, 224, 0.3);
    border-radius: 12px;
    padding: 12px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.approve-btn:hover {
    background: linear-gradient(135deg, rgba(0, 209, 224, 0.25), rgba(0, 255, 136, 0.2));
    border-color: var(--teal);
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 209, 224, 0.3);
}

.approve-btn i {
    font-size: 16px;
    filter: drop-shadow(0 0 5px var(--teal));
}

/* Standard Status Indicator (LED Point) */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    border: 1.5px solid rgba(1, 29, 35, 0.8);
    z-index: 10;
}

.status-indicator.status-active {
    background: #00ff88 !important;
    box-shadow: 0 0 10px #00ff88, 0 0 20px rgba(0, 255, 136, 0.4);
}

.status-indicator.status-pending {
    background: #ffaa00 !important;
    box-shadow: 0 0 10px #ffaa00, 0 0 20px rgba(255, 170, 0, 0.4);
}

.status-indicator.status-inactive {
    background: #ff8800 !important;
    box-shadow: 0 0 10px #ff8800, 0 0 20px rgba(255, 136, 0, 0.4);
}

.status-indicator.status-blocked {
    background: #ff4444 !important;
    box-shadow: 0 0 10px #ff4444, 0 0 20px rgba(255, 68, 68, 0.4);
}

/* Update Stats Grid to 4 Columns */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

}

/* Live Stat Update Animation */
@keyframes statFlash {
    0% {
        color: #fff;
        transform: scale(1);
    }

    50% {
        color: var(--teal);
        transform: scale(1.2);
        text-shadow: 0 0 10px var(--teal);
    }

    100% {
        color: #fff;
        transform: scale(1);
    }
}

.stat-update-flash {
    animation: statFlash 0.6s ease-out;
}

/* =========================================
   AUTH LAYOUT (Login & Register)
   ========================================= */

/* Auth Page Body Override */
body.auth-body {
    background-color: #001014 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Full Screen Wrapper */
.auth-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    background-color: #001014;
    padding: 20px;
    /* Padding for mobile */
}

/* Auth Card Container */
.auth-card {
    background: rgba(1, 42, 50, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 209, 224, 0.3);
    box-shadow: 0 0 20px rgba(0, 209, 224, 0.2), 0 0 40px rgba(0, 209, 224, 0.1);
    border-radius: var(--ct-radius-card);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    /* Default narrow width for Login */
    position: relative;
    z-index: 10;
    margin: auto;
}

/* Wider Card for Registration */
.auth-card.wide {
    max-width: 800px;
}

/* Luminous Border Shine Effect */
.auth-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 209, 224, 0.1) 20%,
            #00d1e0 50%,
            rgba(0, 209, 224, 0.1) 80%,
            transparent 100%);
    background-size: 200% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: borderShine 8s linear infinite;
    opacity: 1;
    filter: drop-shadow(0 0 5px #00d1e0);
}

@keyframes borderShine {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Elements */
.auth-logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.auth-logo {
    max-width: 150px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 209, 224, 0.5));
    margin-bottom: 15px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: 0.5px;
    font-size: 24px;
}

.auth-header p {
    font-size: 13px;
    color: var(--text-dim);
}

.auth-footer-links {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    color: var(--text-dim);
}

.auth-footer-links a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.auth-footer-links a:hover {
    color: #fff;
    text-decoration: underline;
    text-shadow: 0 0 8px var(--teal);
}

.auth-copyright {
    margin-top: 25px;
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 10;
}

/* Staggered Animation Init */
.auth-card>* {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered Delays */
.auth-logo-container {
    animation-delay: 0.1s;
}

.auth-header {
    animation-delay: 0.2s;
}

.feedback-msg {
    animation-delay: 0.3s;
}

form {
    animation-delay: 0.4s;
}

.auth-footer-links {
    animation-delay: 0.6s;
}

.auth-copyright {
    animation-delay: 0.7s;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.7s;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .auth-card {
        padding: 30px 20px;
        width: 100%;
    }

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

@media (max-width: 600px) {
    .auth-card {
        padding: 30px 20px;
        width: 100%;
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Auth Input Styles */
.auth-card .form-group {
    margin-bottom: 20px;
}

.auth-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 13px;
    color: #ccc;
}

.auth-card .form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.auth-card .form-control:focus {
    border-color: var(--teal);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 209, 224, 0.2);
}

.auth-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Input Group Icon Fix */
.auth-card .input-group {
    position: relative;
}

.auth-card .input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    transition: color 0.3s;
}

.auth-card .input-group input:focus+i {
    color: var(--teal);
}

.auth-card .input-group i#togglePassword {
    pointer-events: all;
    cursor: pointer;
}

/* Submit Button */
.auth-card .submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--teal);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 209, 224, 0.3);
    margin-top: 10px;
}

.auth-card .submit-btn:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Register Page Specifics */
.auth-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .auth-card .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.auth-card .field-hint {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* Custom Select & Transport Styles (Global) */
.custom-select .select-trigger {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.auth-card .radio-group {
    display: flex;
    gap: 20px;
}

.auth-card .radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
}

.auth-card .radio-item input {
    accent-color: var(--teal);
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.selection-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #ccc;
}

.selection-card.selected {
    background: rgba(0, 209, 224, 0.1);
    border-color: var(--teal);
    color: #fff;
}

.selection-card i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    color: var(--teal);
}

.selection-card input {
    display: none;
}

.transport-options {
    display: none;
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}

.transport-options.visible {
    display: block;
}

/* =========================================
   DIAGNOSTIC PANEL (Reusable Debug UI)
   ========================================= */
.diagnostic-panel {
    margin-top: 30px;
    width: 100%;
    animation: fadeInUp 0.5s ease-out;
}

/* Collapsible Details Styling */
details.debug-details {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 209, 224, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

details.debug-details[open] {
    border-color: rgba(0, 209, 224, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.debug-summary {
    padding: 10px 15px;
    background: rgba(0, 209, 224, 0.05);
    color: var(--teal);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    list-style: none;
    /* Hide default marker */
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.debug-summary:hover {
    background: rgba(0, 209, 224, 0.1);
}

/* Custom Marker Icon (Optional if needed, but using FA icon in HTML) */
.debug-summary::-webkit-details-marker {
    display: none;
}

.debug-content {
    padding: 15px;
    font-family: 'Consolas', 'Monaco', monospace;
    /* Monospaced for logs */
    font-size: 11px;
    color: #ccc;
    max-height: 300px;
    /* Scrollable if long */
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
}

.debug-line {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.debug-line:last-child {
    border-bottom: none;
}

.debug-time {
    color: rgba(255, 255, 255, 0.3);
    min-width: 60px;
}

.debug-label {
    color: var(--teal);
    font-weight: 700;
    min-width: 140px;
}

.debug-msg {
    color: #bbb;
    word-break: break-word;
    /* Prevent overflow */
}

/* =========================================
   SMART UX: TOAST NOTIFICATIONS
   Ornaments native alert() replacement
   ========================================= */
#toast_container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    /* Let clicks pass through empty space */
}

.toast-notification {
    background: rgba(1, 42, 50, 0.95);
    /* Deep Teal background */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 209, 224, 0.3);
    border-left: 4px solid var(--teal);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    max-width: 400px;

    /* Animation State: Initial (Hidden) */
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    pointer-events: auto;
    /* Allow interaction */
    font-size: 14px;
    font-weight: 500;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification i {
    font-size: 20px;
    color: var(--teal);
}

/* Toast Variants */
.toast-notification.success {
    border-left-color: #00e676;
}

/* Green */
.toast-notification.success i {
    color: #00e676;
}

.toast-notification.error {
    border-left-color: #ff4444;
}

/* Red */
.toast-notification.error i {
    color: #ff4444;
}

/* =========================================
   USER PROFILE HEADER (Top Right) - Redesigned
   ========================================= */
/* Header Layout Styles moved to assets/css/page_header.css */

.user-profile-widget {
    min-height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
    border-radius: 10px;
}

.user-info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    line-height: 1.2;
}

.user-name {
    font-size: 14px;
    font-weight: 800;
    /* Bolder */
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.user-role {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Dynamic Role Colors for Text */
.user-profile-widget:has(.type-ceo) .user-role {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.user-profile-widget:has(.type-admin) .user-role {
    color: #00ff88;
}

.user-profile-widget:has(.type-partner) .user-role {
    color: #ffcc00;
}

.user-profile-widget:has(.type-freelancer) .user-role {
    color: var(--teal);
}

/* Elite Border System - Static Precision */
.user-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: var(--teal);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

/* Level Colors (Static Precision) */
.user-avatar.type-ceo::before {
    background: #ffffff;
    /* CEO: White */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.user-avatar.type-admin::before {
    background: #00ff88;
    /* Administrator: Green */
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.user-avatar.type-partner::before {
    background: #ffcc00;
    /* Partner: Yellow */
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
}

.user-avatar.type-freelancer::before {
    background: var(--teal);
    /* Freelancer: Cyan (Teal) */
    box-shadow: 0 0 10px rgba(0, 209, 224, 0.2);
}

/* Direct Profile Header Styles */
/* User Profile Styles moved to assets/css/user_profile.css */



/* Avatar Integrated LED Positioning */
.user-avatar .status-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    z-index: 100;
    animation: ledPulse 2.5s infinite;
}

@keyframes ledPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1.2);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
        filter: brightness(1);
    }
}

/* Red */

/* Responsive specific positioning for smaller avatars if needed */
@media (max-width: 768px) {
    .status-indicator {
        bottom: 1px;
        right: 1px;
        width: 10px;
        height: 10px;
    }
}

/* Cleaned empty media query */

@media (max-width: 768px) {
    .user-profile-widget {
        height: 42px;
        width: 42px;
        transform: none !important;
        /* Avoid excessive scaling on mobile info hover */
    }

    .user-avatar {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
}

/* =========================================
   PROFILE DROPDOWN (New Phase 9)
   ========================================= */
/* ═══════════════════════════════════════════════════════════
   PROFILE DROPDOWN — Design System v4.4
   ═══════════════════════════════════════════════════════════ */
.profile-dropdown {
    position: absolute;
    top: 65px;
    right: 0;
    width: 300px;
    background: #071e22;
    border: 1px solid rgba(0, 209, 224, 0.15);
    border-radius: 26px;
    padding: 20px;
    box-shadow: 0 0 0 1px rgba(0, 209, 224, 0.05), 0 32px 80px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header: name + role */
.dropdown-header {
    background: transparent;
    padding: 0 0 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-header h4 {
    margin: 0;
    font-family: 'Google Sans', sans-serif;
    font-size: 15px;
    color: #e8f4f6;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.dropdown-header span {
    display: block;
    font-family: 'Google Sans', sans-serif;
    font-size: 0.67rem;
    color: #00d1e0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-top: 2px;
}

/* Content: info rows */
.dropdown-content {
    background: transparent;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(232, 244, 246, 0.72);
    font-family: 'Google Sans Text', 'Google Sans', sans-serif;
    font-size: 0.82rem;
    line-height: 1.4;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.info-row span {
    color: rgba(232, 244, 246, 0.72);
}

.info-row i {
    color: #00d1e0;
    font-size: 14px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    filter: none;
}

.addr-detail {
    font-size: 0.82rem;
    color: rgba(232, 244, 246, 0.72);
}

.address-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.address-lines span {
    color: rgba(232, 244, 246, 0.72);
    font-weight: 500;
}

/* Footer: buttons */
.dropdown-footer {
    padding: 12px 0 0 0;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Edit Data — primary teal action */
.edit-profile-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 209, 224, 0.08);
    border: 1px solid rgba(0, 209, 224, 0.2);
    color: #00d1e0;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Google Sans', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 40px;
}

.edit-profile-btn:hover {
    background: rgba(0, 209, 224, 0.15);
    border-color: rgba(0, 209, 224, 0.4);
    color: #00d1e0;
    box-shadow: 0 0 12px rgba(0, 209, 224, 0.1);
}

/* Logout — subtle text link */
.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: rgba(232, 244, 246, 0.35);
    padding: 6px;
    border-radius: 6px;
    font-family: 'Google Sans', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.06);
}

/* =========================================
   PROFILE EDIT MODAL & COMPONENTS
   ========================================= */

/* Modal Form Inputs */
.auth-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 12, 14, 0.6);
    border: 1px solid rgba(0, 209, 224, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: 'Google Sans', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.auth-input:focus {
    background: rgba(0, 209, 224, 0.05);
    border-color: var(--teal);
    box-shadow: 0 0 15px rgba(0, 209, 224, 0.1);
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

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

/* Avatar Edit Wrapper */
.avatar-edit-wrapper:hover label {
    transform: scale(1.1);
    background: #fff !important;
    color: var(--teal) !important;
}

/* Custom Select Wrapper */
.custom-select-wrapper {
    position: relative;
}

.custom-select-wrapper::after {
    content: '\f107';
    /* FontAwesome Chevron Down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--teal);
    pointer-events: none;
}

.custom-select-wrapper select {
    appearance: none;
    cursor: pointer;
    width: 100%;
    /* Ensure full width */
    background: rgba(0, 12, 14, 0.6);
    /* Match auth-input */
    color: #fff;
}

/* Info Box */
.info-box {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 209, 224, 0.05);
    border-radius: 8px;
    border: 1px dashed rgba(0, 209, 224, 0.3);
}

/* TOAST NOTIFICATION SYSTEM */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-message {
    background: rgba(16, 18, 27, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInToast 0.3s forwards;
    pointer-events: auto;
    min-width: 250px;
    max-width: 350px;
}

.toast-message.success {
    border-left: 3px solid var(--teal);
}

.toast-message.error {
    border-left: 3px solid #ff4444;
}

.toast-message i {
    font-size: 16px;
}

.toast-message.success i {
    color: var(--teal);
}

.toast-message.error i {
    color: #ff4444;
}

@keyframes slideInToast {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutToast {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Core Signals (Notification Center) */
/* Notification Center Styles moved to assets/css/notifications.css */

/* Home Center - Stats Dash */
.stats-center {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 0;
}

.stats-center:empty {
    display: none;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--ct-radius-card);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 209, 224, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 209, 224, 0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--teal);
    border: 1px solid rgba(0, 209, 224, 0.1);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 2px;
}

.stat-trend {
    font-size: 10px;
    font-weight: 700;
    color: var(--teal);
    opacity: 0.7;
}

/* Post Console Enhancements */
.multimedia-bar {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.attach-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
    cursor: pointer;
    transition: 0.3s;
}

.attach-btn:hover {
    background: rgba(0, 209, 224, 0.1);
    color: #fff;
}

.image-preview-area {
    margin-top: 15px;
    position: relative;
    display: inline-block;
}

.image-preview-area img {
    max-width: 200px;
    border-radius: 10px;
    border: 2px solid rgba(0, 209, 224, 0.3);
}

.remove-preview {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #ff4757;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* News Feed Midia */
.news-image {
    width: 100%;
    margin: 15px 0;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.post-actions {
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: 0.3s;
}

.news-card:hover .post-actions {
    opacity: 1;
}

.action-dot {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 12px;
}

.action-dot:hover.delete {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.action-dot:hover.edit {
    background: rgba(0, 209, 224, 0.2);
    color: var(--teal);
}

/* Home ELITE - Bento Grid & Command Center Layout */
.bento-grid {
    display: flex;
    flex-direction: column;
    gap: var(--elite-gap);
    margin-top: 0;
}

@media (min-width: 1200px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: var(--elite-gap);
    }

    .feedback-sidebar-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--elite-gap);
    }
}

/* Responsive Overrides (Regra 23) */
@media (max-width: 768px) {
    .bento-grid {
        padding: 0;
        /* Already 20px from main-content */
    }

    .feedback-sidebar-row {
        display: flex;
        flex-direction: column;
        gap: var(--elite-gap);
    }

    .console-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .console-side {
        width: 100%;
    }

    .hero-mission {
        min-height: auto !important;
        padding: 20px !important;
    }

    .mission-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px !important;
    }

    .mission-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .stats-center {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin-bottom: 30px !important;
    }

    .stat-card {
        padding: 20px !important;
        gap: 15px !important;
    }

    .stat-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
}

.bento-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--elite-radius);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-item:hover {
    border-color: rgba(0, 209, 224, 0.2);
}


/* Sidebar Actions */
.actions-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.quick-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-btn-item {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
}

.quick-btn-item:hover {
    background: rgba(0, 209, 224, 0.05);
    border-color: rgba(0, 209, 224, 0.2);
    color: #fff;
    transform: translateX(5px);
}

.qb-icon {
    font-size: 18px;
    color: var(--teal);
}

.qb-text {
    font-size: 13px;
    font-weight: 700;
}

.system-monitor-card {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 20px;
}

.monitor-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-dim);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.monitor-metric {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.6);
}

.monitor-metric strong {
    color: #2ecc71;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #2ecc71;
    border-radius: 50%;
    margin-left: auto;
    box-shadow: 0 0 8px #2ecc71;
    animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Console Enhanced Horizontal Layout */

/* News Cards Standardized */
.news-card {
    background: rgba(1, 42, 50, 0.4);
    /* Slightly lighter for differentiation */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--elite-radius);
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.news-card:hover {
    border-color: rgba(0, 209, 224, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: rgba(1, 42, 50, 0.6);
}

.news-category {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: inline-block;
}

.news-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.news-meta {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-dim);
}

/* Elite Standard Components */
.btn-primary-elite {
    background: var(--teal);
    color: var(--bg-deep);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(0, 209, 224, 0.2);
}

.btn-primary-elite:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 209, 224, 0.4);
    background: #00f0ff;
}

.btn-primary-elite:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary-elite {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-secondary-elite:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Category Colors & States */
.cat-operational {
    background: rgba(0, 209, 224, 0.1) !important;
    color: #00d1e0 !important;
}

.cat-event {
    background: rgba(155, 89, 182, 0.1) !important;
    color: #9b59b6 !important;
}

.cat-urgent {
    background: rgba(231, 76, 60, 0.1) !important;
    color: #e74c3c !important;
}

.cat-news {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.news-card.sticky {
    border-left: 3px solid var(--teal) !important;
    background: linear-gradient(90deg, rgba(0, 209, 224, 0.05), transparent) !important;
}

/* Weather Widget Styles moved to assets/css/weather.css */

/* SHIFT OPPORTUNITIES (Available Shifts Page) */
.shifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.opportunity-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--elite-radius);
    padding: 25px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    animation: fadeInUp 0.6s ease both;
}

.opportunity-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--teal-glow) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.opportunity-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 209, 224, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.opportunity-card:hover::after {
    opacity: 0.1;
}

.opportunity-card .role-title {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
    color: #fff;
    letter-spacing: -0.02em;
}

.opportunity-card .site-name {
    color: var(--teal);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.opportunity-card .shift-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 13px;
    color: var(--text-dim);
}

.opportunity-card .detail-item i {
    color: var(--teal);
    opacity: 0.6;
    margin-right: 8px;
}

.opportunity-card .requirements-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.opportunity-card .req-tag {
    background: rgba(0, 209, 224, 0.05);
    border: 1px solid rgba(0, 209, 224, 0.1);
    color: var(--teal);
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.opportunity-card .pay-rate {
    font-size: 18px;
    color: #fff;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.opportunity-card .pay-highlight {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.opportunity-card .apply-btn {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--teal);
    border-radius: 12px;
    background: rgba(0, 209, 224, 0.05);
    color: var(--teal);
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
}

.opportunity-card .apply-btn:hover:not(:disabled) {
    background: var(--teal);
    color: #001014;
    box-shadow: 0 0 25px var(--teal-glow);
    transform: translateY(-2px);
}

.opportunity-card .apply-btn.applied {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.3);
    cursor: default;
}

.opportunity-card .urgent-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.3);
    letter-spacing: 1px;
    z-index: 2;
}

.opportunity-card.urgent-card {
    border-color: rgba(231, 76, 60, 0.4);
    box-shadow: inset 0 0 20px rgba(231, 76, 60, 0.05);
}

.opportunity-card.urgent-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #e74c3c;
    border-radius: inherit;
    opacity: 0.1;
    animation: urgent-pulse 2s infinite ease-in-out;
}

/* ELITE NOTIFICATION REFINEMENTS */
.signal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.notif-read-btn {
    background: rgba(0, 209, 224, 0.1);
    border: 1px solid rgba(0, 209, 224, 0.3);
    color: var(--teal);
    width: 26px;
    height: 26px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.notif-read-btn:hover {
    background: var(--teal);
    color: #00161b;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 209, 224, 0.3);
}

.signal-time {
    display: flex !important;
    align-items: center;
    gap: 5px;
}


/* ==========================================================================
   ELITE COMPLIANCE HUB STYLES
   ========================================================================== */

.compliance-header-elite {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 209, 224, 0.1);
    width: 100% !important;
    box-sizing: border-box !important;
}

.compliance-header-elite .header-left h3 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Minimalist Action Button "+" */
.compliance-header-elite .action-btn-mini.success {
    background: rgba(0, 255, 136, 0.1) !important;
    border: 1px solid rgba(0, 255, 136, 0.2) !important;
    color: #00ff88 !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.1) !important;
    outline: none !important;
}

.compliance-header-elite .action-btn-mini.success:hover {
    background: rgba(0, 255, 136, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.2) !important;
}

.compliance-header-elite .action-btn-mini.success i {
    font-size: 16px !important;
}

.elite-empty-state {
    text-align: center;
    padding: 60px 30px;
    background: rgba(0, 209, 224, 0.02);
    border: 1px dashed rgba(0, 209, 224, 0.2);
    border-radius: var(--ct-radius-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    margin: 10px 0;
    width: 100%;
}

.elite-empty-state i {
    font-size: 32px;
    color: var(--teal);
    opacity: 0.3;
    filter: drop-shadow(0 0 10px rgba(0, 209, 224, 0.2));
}

.elite-empty-state p {
    font-size: 14px;
    color: var(--text-white);
    margin: 0;
}

.elite-empty-state .hint {
    font-size: 11px;
    color: var(--text-dim);
    opacity: 0.6;
}

.elite-compliance-card {
    background: rgba(1, 42, 50, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    width: 100%;
}

.elite-compliance-card:hover {
    background: rgba(1, 42, 50, 0.6);
    border-color: rgba(0, 209, 224, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.elite-compliance-card.mandatory-unfilled {
    border-color: rgba(0, 209, 224, 0.4);
    background: linear-gradient(90deg, rgba(0, 209, 224, 0.05) 0%, transparent 100%);
}

.elite-compliance-card.mandatory-unfilled::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--teal);
}

.elite-compliance-card .card-info h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.elite-compliance-card .card-info p {
    font-size: 12px;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.4;
}

.elite-compliance-card .card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.elite-selection-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.elite-selection-btn {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 15px !important;
    color: #fff !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
}

.elite-selection-btn:hover {
    background: rgba(0, 209, 224, 0.08) !important;
    border-color: var(--teal) !important;
    transform: translateX(5px) !important;
}

.elite-selection-btn strong {
    font-size: 14px;
}

.elite-selection-btn span {
    font-size: 11px;
    color: var(--text-dim);
}

@media (max-width: 600px) {
    .compliance-header-elite {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .compliance-header-elite button {
        width: 100%;
        justify-content: center;
    }

    .elite-compliance-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .elite-compliance-card .card-actions {
        width: 100%;
        margin-top: 10px;
        justify-content: flex-end;
    }
}

/* ==========================================================================
   ELITE UNIFIED INPUTS (SQUIRCLISH)
   ========================================================================== */

.auth-input,
.custom-select .select-trigger {
    height: 42px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    color: #fff !important;
    padding: 0 15px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.auth-input:focus,
.custom-select.active .select-trigger {
    border-color: var(--teal) !important;
    background: rgba(0, 209, 224, 0.05) !important;
    box-shadow: 0 0 15px rgba(0, 209, 224, 0.1) !important;
    outline: none !important;
}

.custom-select .select-trigger i {
    margin-left: auto;
    color: var(--teal);
    font-size: 12px;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.selection-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.selection-card i {
    font-size: 20px;
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.selection-card span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dim);
}

.selection-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.selection-card.selected {
    background: rgba(0, 209, 224, 0.1);
    border-color: var(--teal);
    box-shadow: 0 0 20px rgba(0, 209, 224, 0.1);
}

.selection-card.selected i {
    color: var(--teal);
    filter: drop-shadow(0 0 5px var(--teal));
}

.selection-card.selected span {
    color: #fff;
}

/* ==========================================================================
   AGRESSIVE MOBILE OVERRIDES (NUCLEAR) ☢️
   ========================================================================== */
@media (max-width: 1024px) {

    /* Force sidebar to be a hidden overlay, never a layout column */
    .sidebar {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        height: 100vh !important;
        transform: translateX(-100%) !important;
        z-index: 2000 !important;
        flex: none !important;
        padding: 10px 10px 20px !important;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5) !important;
        background: var(--bg-deep) !important;
        visibility: hidden !important;
        overflow: hidden !important;
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
                    visibility 0s linear 0.35s !important;
    }

    .sidebar.open {
        transform: translateX(0) !important;
        visibility: visible !important;
        display: flex !important;
        overflow-y: auto !important;
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
                    visibility 0s linear 0s !important;
    }

    /* v5.9: Body scroll lock when drawer is open */
    body.drawer-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }

    /* v5.9.1: Compact touch targets — 44px min, tighter vertical rhythm */
    .nav-item {
        padding: 10px 10px !important;
        min-height: 44px !important;
        font-size: 13.5px !important;
        border-radius: 10px !important;
    }

    .nav-menu {
        gap: 1px !important;
        padding: 0 4px !important;
    }

    .nav-section-label {
        padding: 10px 4px 3px !important;
        font-size: 9px !important;
    }

    .logo-section {
        padding: 4px 4px 10px !important;
    }

    .logo-placeholder {
        justify-content: flex-start !important;
    }

    .logo-img {
        max-width: 130px !important;
        width: 130px !important;
    }

    /* v5.9: Larger, more spacious cards on mobile */
    .stat-card,
    .overview-card {
        padding: 20px !important;
        border-radius: 16px !important;
    }

    /* Prevent sidebar items from taking layout space in small viewports */
    .app-container {
        display: block !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 15px 15px 100px 15px !important;
        /* Bottom padding for Nav */
        min-height: 100vh !important;
    }

    /* Ensure drawer brand items are clean */
    .brand-text,
    .copyright {
        display: block !important;
    }

    .logo-img {
        max-width: 130px !important;
        width: 130px !important;
        display: block !important;
    }
}

/* Lazy Loading Image Fade-In */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}
img[loading="lazy"].loaded, img[loading="lazy"][complete] {
    opacity: 1;
}

/* ─── PWA Install Banner (v5.9.2) ─── */
.pwa-install-banner {
    position: fixed;
    bottom: -80px;
    left: 12px;
    right: 12px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(1, 42, 50, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 209, 224, 0.2);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: bottom 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.pwa-install-banner.pwa-visible {
    bottom: 80px;
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.pwa-install-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

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

.pwa-install-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.pwa-install-text span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-install-btn {
    padding: 7px 16px;
    background: var(--teal, #00d1e0);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.2s ease;
}

.pwa-install-btn:active {
    opacity: 0.8;
}

.pwa-dismiss-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pwa-dismiss-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

/* Position above bottom nav on mobile */
@media (max-width: 1024px) {
    .pwa-install-banner.pwa-visible {
        bottom: 80px;
    }
}

/* Desktop: bottom-right corner */
@media (min-width: 1025px) {
    .pwa-install-banner {
        left: auto;
        right: 24px;
        max-width: 380px;
    }
    .pwa-install-banner.pwa-visible {
        bottom: 24px;
    }
}

/* ─── PWA Standalone Mode Overrides (v5.9.2) ─── */
@media (display-mode: standalone) {
    /* Safe area support for notch devices */
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    /* Hide install banner if somehow visible */
    .pwa-install-banner {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════
   DASHBOARD HOME (ddh-) — index.php placeholder
   ═══════════════════════════════════════════ */
.ddh-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    opacity: 0.35;
}

.ddh-placeholder .fas.fa-cubes {
    font-size: 80px;
    margin-bottom: 20px;
    color: var(--ct-cyan);
}

.ddh-placeholder p {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--ct-text-secondary);
}