/* =====================================================
   DASHBOARD STYLES - Consistent with Landing Page
   ===================================================== */

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-sidebar: #0d0d14;
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff00aa;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7a;
    --sidebar-width: 260px;
    --topnav-height: 70px;
    --font-display: 'Orbitron', monospace;
    --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Dashboard Body */
.dashboard-body {
    background: var(--bg-dark);
    min-height: 100vh;
    font-family: var(--font-body);
}

/* Login Overlay */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-overlay.hidden {
    display: none;
}

.login-box {
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.95) 0%, rgba(10, 10, 15, 0.98) 100%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 24px;
    padding: 50px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.1), 0 0 120px rgba(255, 0, 170, 0.05);
}

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-magenta) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--bg-dark);
    margin: 0 auto 30px;
}

.login-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.login-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.login-input:focus {
    outline: none;
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

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

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-magenta) 100%);
    border: none;
    border-radius: 12px;
    color: var(--bg-dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.login-error {
    color: #ff4757;
    font-size: 0.9rem;
    margin-top: 15px;
    display: none;
}

.login-error.show {
    display: block;
}

.login-home {
    margin-top: 30px;
}

.login-home a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.login-home a:hover {
    color: var(--neon-cyan);
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topnav-height);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-magenta) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--bg-dark);
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.nav-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

.nav-title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-logout svg {
    width: 18px;
    height: 18px;
}

.nav-logout:hover {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    padding-top: var(--topnav-height);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: var(--topnav-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--topnav-height));
    background: var(--bg-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 25px 0;
    overflow-y: auto;
}

.sidebar-section {
    padding: 0 20px;
    margin-bottom: 30px;
}

.sidebar-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 15px;
    padding-left: 15px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(255, 0, 170, 0.1) 100%);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.sidebar-link.active svg {
    stroke: var(--neon-cyan);
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-back {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.sidebar-back svg {
    width: 18px;
    height: 18px;
}

.sidebar-back:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--neon-cyan);
}

/* Sidebar Subnav */
.sidebar-subnav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
}

.sidebar-subnav.hidden {
    display: none;
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-sublink svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sidebar-sublink:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.sidebar-sublink.active {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
}

.sidebar-sublink.active svg {
    stroke: var(--neon-cyan);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - var(--topnav-height));
    background: var(--bg-dark);
}

.main-content .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px;
}

/* Override default header in dashboard */
.dashboard-body header {
    display: none;
}

/* Override data-tabs - use sidebar instead */
.dashboard-body .data-tabs {
    display: none;
}

/* DB Status in top nav */
.top-nav .db-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.85rem;
}

.top-nav .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffc107;
    animation: pulse 2s infinite;
}

.top-nav .db-status.connected .status-dot {
    background: #48bb78;
    animation: none;
}

.top-nav .db-status.error .status-dot {
    background: #ff4757;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 20px 10px;
    }

    .sidebar-label {
        display: none;
    }

    .sidebar-link span,
    .sidebar-back span {
        display: none;
    }

    .sidebar-link,
    .sidebar-back {
        justify-content: center;
        padding: 14px;
    }

    .sidebar-link svg,
    .sidebar-back svg {
        width: 22px;
        height: 22px;
    }

    .main-content {
        margin-left: 80px;
    }

    .main-content .container {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 0 15px;
    }

    .brand-text,
    .nav-divider,
    .nav-title {
        display: none;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    /* Show mobile tabs when sidebar is hidden */
    .dashboard-body .data-tabs {
        display: flex;
    }
}

/* Live status */
.live-status-page {
    padding-bottom: 40px;
}

.live-status-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.live-status-header h2,
.live-section-title h3,
.live-machine-group h3 {
    margin: 0;
}

.live-status-header p,
.live-section-title p {
    margin: 6px 0 0;
    color: #718096;
    font-size: 13px;
}

.live-status-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.live-status-actions > div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #718096;
    font-size: 12px;
    line-height: 1.7;
}

.live-status-error,
.live-mapping-notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
}

.live-status-error {
    color: #feb2b2;
    background: rgba(229, 62, 62, 0.12);
    border: 1px solid rgba(229, 62, 62, 0.35);
}

.live-mapping-notice {
    color: #fbd38d;
    background: rgba(237, 137, 54, 0.12);
    border: 1px solid rgba(237, 137, 54, 0.35);
}

.live-overview-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}

.live-overview-card {
    min-height: 96px;
    padding: 18px;
    border: 1px solid rgba(74, 158, 255, 0.18);
    border-radius: 12px;
    background: rgba(26, 39, 68, 0.62);
}

.live-overview-card.featured {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.2), rgba(56, 178, 172, 0.08));
    border-color: rgba(72, 187, 120, 0.5);
}

.live-overview-card span {
    display: block;
    margin-bottom: 10px;
    color: #a0aec0;
    font-size: 12px;
}

.live-overview-card strong {
    color: #fff;
    font-family: Orbitron, sans-serif;
    font-size: 27px;
}

.live-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0 12px;
}

.live-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.live-area-card {
    padding: 15px;
    border: 1px solid rgba(74, 158, 255, 0.18);
    border-radius: 10px;
    background: rgba(26, 39, 68, 0.48);
}

.live-area-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.live-area-header span,
.live-area-rate {
    color: #a0aec0;
    font-size: 12px;
}

.live-progress {
    height: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    border-radius: 99px;
    background: #16213b;
}

.live-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #48bb78, #38b2ac);
}

.live-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #a0aec0;
    font-size: 11px;
}

.live-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-legend i {
    width: 9px;
    height: 9px;
    border-radius: 3px;
}

.live-legend .free {
    background: #2d3748;
}

.live-legend .occupied {
    background: #48bb78;
}

.live-legend .ending-soon {
    background: #ed8936;
}

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

.live-machine-group {
    padding: 16px;
    border: 1px solid rgba(74, 158, 255, 0.16);
    border-radius: 12px;
    background: rgba(13, 24, 48, 0.55);
}

.live-machine-group-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 13px;
}

.live-machine-group-header span {
    display: block;
    margin-top: 4px;
    color: #718096;
    font-size: 11px;
}

.live-machine-group-header > strong {
    color: #4a9eff;
    font-family: Orbitron, sans-serif;
}

.live-machine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 7px;
}

.live-machine {
    min-height: 52px;
    padding: 8px 5px;
    border: 1px solid #2d3748;
    border-radius: 8px;
    text-align: center;
    background: rgba(45, 55, 72, 0.45);
}

.live-machine strong,
.live-machine span {
    display: block;
}

.live-machine strong {
    margin-bottom: 5px;
    font-size: 12px;
}

.live-machine span {
    color: #a0aec0;
    font-size: 9px;
}

.live-machine.occupied {
    border-color: rgba(72, 187, 120, 0.75);
    background: rgba(72, 187, 120, 0.14);
}

.live-machine.ending-soon {
    border-color: rgba(237, 137, 54, 0.85);
    background: rgba(237, 137, 54, 0.18);
}

.live-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(74, 158, 255, 0.16);
    border-radius: 12px;
}

.live-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(13, 24, 48, 0.48);
}

.live-table th,
.live-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(74, 158, 255, 0.1);
    text-align: left;
    font-size: 12px;
}

.live-table th {
    color: #a0aec0;
    background: rgba(26, 39, 68, 0.7);
}

.live-end-time.package {
    color: #68d391;
}

.live-end-time.estimate {
    color: #f6ad55;
}

.live-end-time.unknown {
    color: #718096;
}

@media (max-width: 1200px) {
    .live-overview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .live-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .live-status-header,
    .live-section-title {
        align-items: stretch;
        flex-direction: column;
    }

    .live-status-actions {
        justify-content: space-between;
    }

    .live-status-actions > div {
        align-items: flex-start;
    }

    .live-overview-grid,
    .live-category-grid,
    .live-machine-groups {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   SYNC PAGE STYLES
   ===================================================== */
.sync-page {
    max-width: 700px;
    margin: 0 auto;
}

.sync-header {
    text-align: center;
    margin-bottom: 40px;
}

.sync-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.sync-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.sync-page .date-picker-section {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.sync-page .date-picker-section label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.date-range-inputs input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-range-inputs input:focus {
    outline: none;
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.date-range-inputs input::placeholder {
    color: var(--text-muted);
}

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

.sync-page .hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.sync-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.sync-actions .btn {
    padding: 16px 40px;
    font-size: 1rem;
}

.sync-actions .btn svg {
    margin-right: 8px;
}

.sync-progress {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
}

.sync-progress .progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.sync-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--neon-magenta) 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.sync-progress .progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Sync Step Styles */
.sync-step {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sync-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sync-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sync-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.sync-step-icon svg {
    stroke: var(--text-muted);
}

.sync-step.active .sync-step-icon {
    background: rgba(0, 240, 255, 0.1);
}

.sync-step.active .sync-step-icon svg {
    stroke: var(--neon-cyan);
}

.sync-step.completed .sync-step-icon {
    background: rgba(72, 187, 120, 0.1);
}

.sync-step.completed .sync-step-icon svg {
    stroke: #48bb78;
}

.sync-step-title {
    flex: 1;
    font-weight: 500;
    color: var(--text-secondary);
}

.sync-step.active .sync-step-title {
    color: var(--text-primary);
}

.sync-step-status {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.sync-step.active .sync-step-status {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
}

.sync-step.completed .sync-step-status {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
}

.sync-step.error .sync-step-status {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

.sync-step .progress-bar {
    height: 6px;
    margin-bottom: 8px;
}

.sync-step .progress-text {
    font-size: 0.8rem;
    text-align: left;
    min-height: 18px;
}

/* Data Type Section */
.data-type-section {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.data-type-section:last-child {
    margin-bottom: 0;
}

.data-type-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-type-section h4 svg {
    stroke: var(--neon-cyan);
}

.data-type-section .delete-options {
    gap: 15px;
}

.data-type-section .delete-option {
    padding: 15px;
    border-radius: 12px;
}

.data-type-section .delete-option label {
    font-size: 0.85rem;
}

.data-type-section .date-range-inputs {
    margin: 10px 0;
}

.data-type-section .date-range-inputs input {
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* Small button variant */
.btn-sm {
    padding: 8px 14px;
    font-size: 0.8rem;
}

.btn-sm svg {
    width: 14px;
    height: 14px;
}

.sync-result {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
}

.sync-result.success {
    border-color: rgba(72, 187, 120, 0.3);
    background: rgba(72, 187, 120, 0.05);
}

.sync-result.error {
    border-color: rgba(255, 71, 87, 0.3);
    background: rgba(255, 71, 87, 0.05);
}

.sync-result h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.sync-result p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 5px 0;
}

.sync-result .stat-highlight {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neon-cyan);
    margin: 15px 0;
}

/* Data Management Section */
.data-management-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.data-management-section h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.data-management-section > .hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.delete-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.delete-option {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
}

.delete-option label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.delete-option .date-range-inputs {
    margin-bottom: 20px;
}

.delete-option.delete-all {
    background: rgba(255, 71, 87, 0.05);
    border-color: rgba(255, 71, 87, 0.2);
}

.delete-option.delete-all label {
    color: #ff4757;
}

/* Danger Button Styles */
.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff4757 0%, #c0392b 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-danger svg {
    width: 16px;
    height: 16px;
}

.btn-danger-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid rgba(255, 71, 87, 0.5);
    border-radius: 10px;
    color: #ff4757;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger-outline:hover {
    background: rgba(255, 71, 87, 0.1);
    border-color: #ff4757;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.2);
}

.btn-danger-outline svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .date-range-inputs {
        flex-direction: column;
    }

    .date-separator {
        display: none;
    }

    .sync-actions .btn {
        width: 100%;
    }
}

/* =====================================================
   ANALYSIS SUBTABS STYLES
   ===================================================== */
.analysis-subtabs-section {
    margin-bottom: 30px;
}

.analysis-subtabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: var(--bg-card);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.analysis-subtab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.analysis-subtab svg {
    width: 18px;
    height: 18px;
}

.analysis-subtab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.analysis-subtab.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(255, 0, 170, 0.1) 100%);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.analysis-subtab.active svg {
    stroke: var(--neon-cyan);
}

/* Analysis subcontent visibility */
.analysis-subcontent {
    display: none;
}

.analysis-subcontent.active {
    display: block;
}

/* Unified calendar section */
.unified-calendar-section {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .analysis-subtabs {
        flex-direction: column;
        gap: 5px;
    }

    .analysis-subtab {
        width: 100%;
        justify-content: center;
    }
}

/* =====================================================
   SEAT MAP PAGE STYLES
   ===================================================== */
.seat-map-page {
    max-width: 1200px;
    margin: 0 auto;
}

.seat-map-header {
    text-align: center;
    margin-bottom: 40px;
}

.seat-map-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.seat-map-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.seat-map-date-section {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.seat-map-date-section label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.seat-map-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.seat-map-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.seat-map-actions .btn svg {
    width: 16px;
    height: 16px;
}

/* Mode Switch */
.seat-map-mode-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.mode-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 4px;
}

.mode-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mode-tab:hover {
    color: var(--text-primary);
}

.mode-tab.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(255, 0, 170, 0.15) 100%);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Seat Map Stats */
.seat-map-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

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

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

/* Seat Map Container */
.seat-map-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

@media (max-width: 1024px) {
    .seat-map-container {
        grid-template-columns: 1fr;
    }
}

/* Layout Container in Dashboard */
#seatMapSubcontent .layout-container {
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Floor plan structure from landing.css */
#seatMapSubcontent .floor-plan {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 30px;
}

#seatMapSubcontent .floor-row {
    display: flex;
    justify-content: center;
    gap: 8px;
}

#seatMapSubcontent .floor-row.top-row {
    gap: 18px;
    margin-bottom: 10px;
    margin-left: 50px;
}

#seatMapSubcontent .floor-row.bottom-row {
    margin-top: 15px;
    gap: 30px;
}

#seatMapSubcontent .floor-main {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: flex-start;
}

#seatMapSubcontent .floor-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

#seatMapSubcontent .floor-center {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#seatMapSubcontent .hall-area {
    display: flex;
    gap: 50px;
    justify-content: center;
    margin-left: 40px;
}

#seatMapSubcontent .hall-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

#seatMapSubcontent .hall-group.single-col {
    grid-template-columns: 1fr;
}

#seatMapSubcontent .gaming-area {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

#seatMapSubcontent .col-57-61 {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: 20px;
}

#seatMapSubcontent .seat-row-52-53 {
    display: flex;
    gap: 5px;
    margin-top: 124px;
    align-self: flex-start;
}

#seatMapSubcontent .gaming-grid {
    display: flex;
    gap: 3px;
    margin-top: 35px;
}

#seatMapSubcontent .gaming-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#seatMapSubcontent .gaming-col.center-col {
    margin: 0 12px;
}

#seatMapSubcontent .gaming-row {
    display: flex;
    gap: 3px;
}

/* Base seat styling in dashboard */
#seatMapSubcontent .seat {
    width: 32px;
    height: 26px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

#seatMapSubcontent .seat:hover {
    transform: scale(1.3);
    z-index: 10;
}

#seatMapSubcontent .floor-plan {
    gap: 18px;
    padding-top: 8px;
}

#seatMapSubcontent .latest-floor {
    border: 1px solid rgba(74, 158, 255, 0.22);
    border-radius: 12px;
    background: rgba(5, 10, 24, 0.72);
    overflow: hidden;
}

#seatMapSubcontent .latest-floor-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(74, 158, 255, 0.2);
    background: linear-gradient(90deg, rgba(74, 158, 255, 0.15), transparent);
}

#seatMapSubcontent .latest-floor-title strong {
    color: #4a9eff;
    font-family: var(--font-display);
    letter-spacing: 0.12em;
}

#seatMapSubcontent .latest-floor-title span {
    color: var(--text-muted);
    font-size: 0.72rem;
}

#seatMapSubcontent .latest-floor-rooms {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 10px;
    padding: 12px;
    align-items: start;
}

#seatMapSubcontent .latest-seat-room {
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
}

#seatMapSubcontent .latest-seat-room.is-hall {
    grid-row: span 2;
}

#seatMapSubcontent .latest-seat-room.is-single {
    grid-column: span 2;
}

#seatMapSubcontent .latest-seat-room header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

#seatMapSubcontent .latest-seat-room header strong {
    color: #dce8ff;
    font-size: 0.72rem;
}

#seatMapSubcontent .latest-seat-room header span {
    color: var(--neon-cyan);
    font-size: 0.62rem;
}

#seatMapSubcontent .latest-seat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(32px, 1fr));
    gap: 5px;
}

#seatMapSubcontent .latest-seat-room.is-hall .latest-seat-grid {
    grid-template-columns: repeat(2, minmax(32px, 1fr));
}

#seatMapSubcontent .latest-seat-room.is-single .latest-seat-grid {
    grid-template-columns: repeat(6, minmax(32px, 1fr));
}

#seatMapSubcontent .latest-seat-grid .seat {
    width: auto;
    min-width: 32px;
    height: 30px;
}

#seatMapSubcontent .latest-seat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 2px 4px 0;
}

#seatMapSubcontent .latest-seat-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.65rem;
}

#seatMapSubcontent .latest-seat-legend i {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: rgba(74, 158, 255, 0.45);
}

#seatMapSubcontent .seat.zhuwei240,
#seatMapSubcontent .seat.san540 {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.32);
}

#seatMapSubcontent .seat.mayi2k,
#seatMapSubcontent .seat.shuangmayi,
#seatMapSubcontent .seat.sanmayi {
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid rgba(72, 187, 120, 0.32);
}

#seatMapSubcontent .seat.danren600 {
    background: rgba(237, 100, 166, 0.1);
    border: 1px solid rgba(237, 100, 166, 0.32);
}

#seatMapSubcontent .seat.shuang400,
#seatMapSubcontent .seat.shuang600,
#seatMapSubcontent .seat.san400 {
    background: rgba(56, 178, 172, 0.1);
    border: 1px solid rgba(56, 178, 172, 0.32);
}

#seatMapSubcontent .seat.shuang540 {
    background: rgba(159, 122, 234, 0.1);
    border: 1px solid rgba(159, 122, 234, 0.32);
}

#seatMapSubcontent .seat.wu240 {
    background: rgba(237, 137, 54, 0.1);
    border: 1px solid rgba(237, 137, 54, 0.32);
}

#seatMapSubcontent .latest-seat-legend i.danren600 {
    background: #ed64a6;
}

#seatMapSubcontent .latest-seat-legend i.mayi2k,
#seatMapSubcontent .latest-seat-legend i.shuangmayi,
#seatMapSubcontent .latest-seat-legend i.sanmayi {
    background: #48bb78;
}

#seatMapSubcontent .latest-seat-legend i.shuang400,
#seatMapSubcontent .latest-seat-legend i.shuang600,
#seatMapSubcontent .latest-seat-legend i.san400 {
    background: #38b2ac;
}

#seatMapSubcontent .latest-seat-legend i.shuang540 {
    background: #9f7aea;
}

#seatMapSubcontent .latest-seat-legend i.wu240 {
    background: #ed8936;
}

@media (max-width: 1180px) {
    #seatMapSubcontent .latest-floor-rooms {
        grid-template-columns: repeat(3, minmax(145px, 1fr));
    }
}

@media (max-width: 760px) {
    #seatMapSubcontent .latest-floor-rooms {
        grid-template-columns: repeat(2, minmax(135px, 1fr));
    }

    #seatMapSubcontent .latest-seat-room.is-single {
        grid-column: span 2;
    }
}

/* Seat zone colors - base state (no data) */
#seatMapSubcontent .seat.dating {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

#seatMapSubcontent .seat.danren {
    background: rgba(255, 0, 170, 0.08);
    border: 1px solid rgba(255, 0, 170, 0.2);
}

#seatMapSubcontent .seat.mayi {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

#seatMapSubcontent .seat.zhuwei2 {
    background: rgba(255, 165, 0, 0.08);
    border: 1px solid rgba(255, 165, 0, 0.2);
}

#seatMapSubcontent .seat.zhuwei3 {
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

#seatMapSubcontent .seat.zhuwei5 {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Usage intensity levels - applies glow based on usage */
#seatMapSubcontent .seat.usage-low {
    box-shadow: inset 0 0 8px rgba(72, 187, 120, 0.4);
}

#seatMapSubcontent .seat.usage-medium {
    box-shadow: inset 0 0 12px rgba(255, 193, 7, 0.5);
}

#seatMapSubcontent .seat.usage-high {
    box-shadow: inset 0 0 15px rgba(255, 107, 53, 0.6);
}

#seatMapSubcontent .seat.usage-very-high {
    box-shadow:
        inset 0 0 15px rgba(255, 71, 87, 0.7),
        0 0 10px rgba(255, 71, 87, 0.4);
    animation: pulse-hot 1.5s ease-in-out infinite;
}

@keyframes pulse-hot {
    0%, 100% {
        box-shadow:
            inset 0 0 15px rgba(255, 71, 87, 0.7),
            0 0 10px rgba(255, 71, 87, 0.4);
    }
    50% {
        box-shadow:
            inset 0 0 20px rgba(255, 71, 87, 0.9),
            0 0 20px rgba(255, 71, 87, 0.6);
    }
}

/* Usage count badge */
#seatMapSubcontent .seat .usage-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-magenta) 100%);
    color: #000;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 6px;
    min-width: 16px;
    text-align: center;
}

/* Layout legend */
#seatMapSubcontent .layout-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

#seatMapSubcontent .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

#seatMapSubcontent .legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

#seatMapSubcontent .legend-color.dating {
    background: rgba(0, 240, 255, 0.2);
    border: 1px solid rgba(0, 240, 255, 0.5);
}

#seatMapSubcontent .legend-color.danren {
    background: rgba(255, 0, 170, 0.2);
    border: 1px solid rgba(255, 0, 170, 0.5);
}

#seatMapSubcontent .legend-color.mayi {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.5);
}

#seatMapSubcontent .legend-color.zhuwei2 {
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid rgba(255, 165, 0, 0.5);
}

#seatMapSubcontent .legend-color.zhuwei3 {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.5);
}

#seatMapSubcontent .legend-color.zhuwei5 {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

/* Entrance and restroom markers */
#seatMapSubcontent .entrance-marker {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

#seatMapSubcontent .entrance-marker svg {
    width: 14px;
    height: 14px;
    stroke: var(--neon-cyan);
}

#seatMapSubcontent .restroom-marker {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

/* Usage Legend */
.usage-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.usage-legend-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 10px;
}

.usage-scale {
    display: flex;
    align-items: center;
    gap: 8px;
}

.usage-level {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.usage-level.low {
    background: rgba(72, 187, 120, 0.5);
    box-shadow: inset 0 0 8px rgba(72, 187, 120, 0.6);
}

.usage-level.medium {
    background: rgba(255, 193, 7, 0.5);
    box-shadow: inset 0 0 8px rgba(255, 193, 7, 0.6);
}

.usage-level.high {
    background: rgba(255, 107, 53, 0.5);
    box-shadow: inset 0 0 8px rgba(255, 107, 53, 0.6);
}

.usage-level.very-high {
    background: rgba(255, 71, 87, 0.6);
    box-shadow: inset 0 0 10px rgba(255, 71, 87, 0.8);
}

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

/* Seat Detail Panel */
.seat-detail-panel {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
}

.seat-detail-panel h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.seat-detail-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.seat-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.seat-detail-item:last-child {
    border-bottom: none;
}

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

.seat-detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.seat-detail-value.highlight {
    color: var(--neon-cyan);
}

/* Seat Ranking */
.seat-ranking {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
}

.seat-ranking h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ranking-list {
    max-height: 400px;
    overflow-y: auto;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ranking-position {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ranking-position.gold {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
}

.ranking-position.silver {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #000;
}

.ranking-position.bronze {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #000;
}

.ranking-position.normal {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.ranking-seat {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.ranking-seat span {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.ranking-count {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--neon-cyan);
}

/* Tooltip for seat */
#seatMapSubcontent .seat-tooltip {
    position: fixed;
    background: rgba(18, 18, 26, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-primary);
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.seat-tooltip-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--neon-cyan);
}

.seat-tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 4px 0;
    font-size: 0.8rem;
}

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

.seat-tooltip-value {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    #seatMapSubcontent .layout-container {
        padding: 20px 10px;
    }

    #seatMapSubcontent .floor-plan {
        transform: scale(0.75);
        transform-origin: top center;
    }

    #seatMapSubcontent .layout-legend {
        gap: 8px;
    }

    #seatMapSubcontent .legend-item {
        font-size: 0.6rem;
    }

    .usage-legend {
        flex-wrap: wrap;
    }
}

/* =====================================================
   USER PROFILE PAGE STYLES
   ===================================================== */
.user-profile-page {
    max-width: 1200px;
    margin: 0 auto;
}

.user-profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

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

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

/* Responsive sidebar subnav */
@media (max-width: 1024px) {
    .sidebar-subnav {
        display: none;
    }
}

@media (max-width: 768px) {
    .sidebar-subnav {
        display: none;
    }
}

/* =====================================================
   USER LIST MODAL STYLES
   ===================================================== */
.user-list-modal,
.user-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.user-list-modal.hidden,
.user-detail-modal.hidden {
    display: none;
}

.user-list-modal-content,
.user-detail-modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.1);
}

.user-list-modal-header,
.user-detail-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-list-modal-header h3,
.user-detail-modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.user-list-modal-body,
.user-detail-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

/* User List Items */
.user-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-list-item:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateX(5px);
}

.user-list-item-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.user-list-item-info {
    flex: 1;
}

.user-list-item-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.user-list-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.user-list-item-value {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--neon-cyan);
}

/* User Detail Sections */
.user-detail-section {
    margin-bottom: 25px;
}

.user-detail-section h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neon-cyan);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.user-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.user-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.user-detail-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.user-detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.user-detail-value.highlight {
    color: var(--neon-cyan);
}

/* User Stats Cards */
.user-detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.user-stat-card {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05) 0%, rgba(255, 0, 170, 0.03) 100%);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.user-stat-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--neon-cyan);
    margin-bottom: 5px;
}

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

/* User Records Table */
.user-detail-records {
    max-height: 300px;
    overflow-y: auto;
}

.user-record-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 80px;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.user-record-item:first-child {
    background: rgba(0, 240, 255, 0.05);
    font-weight: 500;
    color: var(--text-secondary);
}

.user-record-item span {
    color: var(--text-secondary);
}

.user-record-item span:last-child {
    text-align: right;
    color: var(--neon-cyan);
}

/* RFM Segment Colors */
.segment-high-value { color: #ffd700; }
.segment-potential { color: #48bb78; }
.segment-new { color: #00f0ff; }
.segment-at-risk { color: #ff4757; }
.segment-normal { color: #667eea; }

/* RFM Row Layout */
.rfm-row {
    display: flex;
    gap: 20px;
}

.rfm-chart-container {
    flex: 0 0 45%;
    max-width: 45%;
}

.rfm-chart-container .chart {
    height: 350px;
}

.rfm-hint {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.rfm-user-list-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rfm-user-list-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rfm-user-list-header h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.rfm-user-count {
    font-size: 0.8rem;
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.rfm-user-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    max-height: 380px;
}

.rfm-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: var(--text-muted);
    text-align: center;
}

.rfm-empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.rfm-empty-state p {
    font-size: 0.85rem;
    line-height: 1.6;
}

.rfm-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rfm-user-item:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.2);
}

.rfm-user-item-rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.rfm-user-item-info {
    flex: 1;
    min-width: 0;
}

.rfm-user-item-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rfm-user-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.rfm-user-item-value {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--neon-cyan);
    white-space: nowrap;
}

/* User Detail Modal - Enhanced Layout */
.user-detail-modal-content {
    max-width: 900px;
}

.user-detail-top-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.user-detail-info-section {
    flex: 1;
}

.user-detail-stats-section {
    flex: 1;
}

.user-detail-stats-section .user-detail-stats {
    grid-template-columns: repeat(2, 1fr);
}

.user-detail-charts-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.user-detail-chart-section {
    flex: 1;
}

.user-detail-chart {
    height: 180px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .rfm-row {
        flex-direction: column;
    }

    .rfm-chart-container {
        flex: none;
        max-width: 100%;
    }

    .rfm-user-list {
        max-height: 300px;
    }
}

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

    .user-detail-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .user-record-item {
        grid-template-columns: 1fr 1fr;
    }

    .user-detail-top-row {
        flex-direction: column;
    }

    .user-detail-charts-row {
        flex-direction: column;
    }
}
