/* ==============================================================================
   GastroOS Enterprise Workstation UI — Desktop Software System
   Authentic Desktop Application: Window Chrome, Traffic Lights, Menu Bar,
   Tabs, Toolbars, Windowed Panels, Inset Software Controls, Bottom Status Bar
   ============================================================================== */

:root {
    /* Desktop Window Theme Tokens */
    --win-bg: #0d0f18;
    --win-titlebar-bg: #121522;
    --win-menubar-bg: #151928;
    --win-tabstrip-bg: #101320;
    --win-toolbar-bg: #161a2b;
    --win-panel-bg: #171b2c;
    --win-panel-header: #1c2136;
    --win-inset-bg: #0f121d;
    --win-border: #283046;
    --win-border-light: rgba(255, 255, 255, 0.08);
    --win-statusbar-bg: #10131f;

    /* Text Colors */
    --win-text: #f1f5f9;
    --win-text-muted: #94a3b8;
    --win-text-subtle: #64748b;

    /* Desktop Software Accent Colors */
    --win-blue: #2563eb;
    --win-blue-hover: #1d4ed8;
    --win-orange: #f97316;
    --win-emerald: #10b981;
    --win-amber: #f59e0b;
    --win-rose: #f43f5e;

    /* Shadows & Radii */
    --win-radius-sm: 5px;
    --win-radius-md: 8px;
    --win-radius-lg: 12px;
    --win-shadow-panel: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --win-shadow-dialog: 0 25px 60px -15px rgba(0, 0, 0, 0.85);

    /* Legacy compatibility aliases */
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --glass-border: var(--win-border);
}

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    background-color: var(--win-bg);
    color: var(--win-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==============================================================================
   1. DESKTOP APPLICATION WINDOW HEADER (TITLEBAR + MENUBAR + TABS + TOOLBAR)
   ============================================================================== */

.desktop-app-shell {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--win-titlebar-bg);
    border-bottom: 1px solid var(--win-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    user-select: none;
}

/* 1.1 Desktop Window Titlebar (macOS / Desktop Chrome) */
.win-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
    padding: 0 12px;
    background: #111420;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11.5px;
}

.win-titlebar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* macOS Traffic Lights */
.win-traffic-lights {
    display: flex;
    align-items: center;
    gap: 7px;
}
.win-light {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    transition: filter 0.15s;
    cursor: pointer;
}
.win-light:hover { filter: brightness(1.2); }
.win-light.close { background: #ff5f56; border: 1px solid #e0443e; }
.win-light.minimize { background: #ffbd2e; border: 1px solid #dea123; }
.win-light.maximize { background: #27c93f; border: 1px solid #1aab29; }

.win-app-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -0.2px;
}
.win-badge-pro {
    font-size: 9px;
    font-weight: 800;
    background: #2563eb;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.05em;
}

.win-titlebar-center {
    color: var(--win-text-muted);
    font-size: 11.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    z-index: 100;
}

/* ==============================================================================
   1.1.1 INTERACTIVE VENUE SWITCHER PILL & POPOVER (В ШАПКЕ)
   ============================================================================== */
.win-venue-dropdown-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.win-venue-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #171b2d;
    border: 1px solid #2e3752;
    border-radius: 6px;
    padding: 3px 9px;
    color: #f1f5f9;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.win-venue-pill-btn:hover {
    background: #20263e;
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}
.win-venue-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
    flex-shrink: 0;
}
.win-venue-name {
    font-weight: 700;
    color: #fff;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.win-venue-subdomain {
    font-size: 10px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.win-venue-count-badge {
    background: rgba(37, 99, 235, 0.25);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
}
.win-venue-chevron {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.15s;
}
.win-venue-pill-btn:hover .win-venue-chevron {
    color: #fff;
}

/* Venue Switcher Popover Dropdown */
.win-venue-popover {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 320px;
    background: #151928;
    border: 1px solid #283046;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
    z-index: 3000;
    overflow: hidden;
    animation: winPopoverIn 0.15s ease-out;
}
@keyframes winPopoverIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.win-venue-popover-header {
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    border-bottom: 1px solid #23293d;
    background: #111422;
}
.win-venue-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 4px;
}
.win-venue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #f1f5f9;
    transition: 0.12s;
    margin-bottom: 2px;
}
.win-venue-item:hover {
    background: #1e2439;
}
.win-venue-item.is-active {
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.win-venue-item-main {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.win-venue-item-status {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #475569;
    flex-shrink: 0;
}
.win-venue-item-status.active {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}
.win-venue-item-info {
    min-width: 0;
}
.win-venue-item-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.win-venue-item-slug {
    font-size: 10px;
    color: #38bdf8;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.win-venue-active-check {
    font-size: 10px;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}
.win-venue-switch-link {
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    opacity: 0;
    transition: opacity 0.12s;
    white-space: nowrap;
}
.win-venue-item:hover .win-venue-switch-link {
    opacity: 1;
    color: #60a5fa;
}
.win-venue-popover-footer {
    padding: 6px;
    background: #111422;
    border-top: 1px solid #23293d;
}
.win-venue-new-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    background: #1a2034;
    border: 1px dashed #3b4668;
    border-radius: 5px;
    color: #f97316;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.12s;
}
.win-venue-new-btn:hover {
    background: #232c46;
    border-color: #f97316;
    color: #fb923c;
}

/* Breadcrumb styling */
.win-breadcrumb-sep {
    color: #475569;
    font-weight: 400;
    margin: 0 4px;
    user-select: none;
}
.win-breadcrumb-page {
    color: #fff;
    font-weight: 700;
    font-size: 11.5px;
}
.win-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #38bdf8;
    text-decoration: none;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.18);
    transition: 0.12s;
}
.win-breadcrumb-link:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    color: #7dd3fc;
}

.win-titlebar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.win-btn-showcase,
.win-titlebar-action-btn,
a.win-titlebar-action-btn,
button.win-titlebar-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 500;
    color: #E2E8F0 !important;
    background: #161B2C !important;
    border: 1px solid #28334E !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    line-height: 1.2;
    box-shadow: none !important;
}
.win-btn-showcase:hover,
.win-titlebar-action-btn:hover,
a.win-titlebar-action-btn:hover,
button.win-titlebar-action-btn:hover {
    background: #1E253D !important;
    border-color: #3B4B72 !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
    text-decoration: none !important;
}
.win-titlebar-action-btn.win-titlebar-logout {
    color: #F87171 !important;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
}
.win-titlebar-action-btn.win-titlebar-logout:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: #EF4444;
    color: #FCA5A5 !important;
}
.win-orders-quick-status {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}
.win-orders-quick-status.is-active {
    color: #10B981;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
}
.win-orders-quick-status.is-active:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10B981;
}
.win-orders-quick-status.is-inactive {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}
.win-orders-quick-status.is-inactive:hover {
    background: rgba(239, 68, 68, 0.28);
    border-color: #EF4444;
}
.win-btn-logout-compact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    text-decoration: none;
    line-height: 1.1;
    cursor: pointer;
    transition: all 0.15s ease;
}
.win-btn-logout-compact:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}
.win-orders-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    border: 1px solid transparent;
}
.win-orders-toggle-btn.is-active {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #f1f5f9;
}
.win-orders-toggle-btn.is-active:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: #10b981;
}
.win-orders-toggle-btn.is-active .win-orders-toggle-led {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.win-orders-toggle-btn.is-inactive {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}
.win-orders-toggle-btn.is-inactive:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
}
.win-orders-toggle-btn.is-inactive .win-orders-toggle-led {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.win-orders-toggle-led {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transition: all 0.15s;
    flex-shrink: 0;
}
.win-titlebar-clock {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* 1.2 Pro Desktop Menubar (Файл, Заказы, Меню...) */
.win-menubar {
    display: flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    background: var(--win-menubar-bg);
    border-bottom: 1px solid var(--win-border);
    font-size: 11.5px;
    gap: 2px;
}
.win-menu-item {
    padding: 2px 9px;
    color: var(--win-text-muted);
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.1s;
    font-weight: 500;
}
.win-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.win-menu-item.active {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    font-weight: 600;
}

/* 1.3 Desktop Software Tabs (Вкладки программы как в браузере / IDE) */
.win-tabstrip {
    display: flex;
    align-items: stretch;
    height: 38px;
    background: var(--win-tabstrip-bg);
    padding: 4px 10px 0;
    gap: 3px;
    overflow-x: auto;
    border-bottom: 1px solid var(--win-border);
    scrollbar-width: none;
}
.win-tabstrip::-webkit-scrollbar { display: none; }

.win-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--win-border);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    color: var(--win-text-muted);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: 0.12s;
    white-space: nowrap;
    position: relative;
    height: 33px;
    top: 1px;
}
.win-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.win-tab.active {
    background: var(--win-toolbar-bg);
    color: #fff;
    font-weight: 600;
    border-color: var(--win-border);
    border-top: 2px solid var(--win-blue);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
}

.win-tab-icon {
    font-size: 13px;
}
.win-tab-close {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--win-text-subtle);
    margin-left: 4px;
    transition: all 0.12s;
    cursor: pointer;
}
.win-tab-close:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
}

/* 1.3.1 Desktop Tabs Add Dropdown (+ Menu) */
.win-tabs-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    min-width: 230px;
    background: #151928;
    border: 1px solid var(--win-border);
    border-radius: var(--win-radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65);
    z-index: 2500;
    padding: 6px;
}
.win-tabs-dropdown-header {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--win-text-subtle);
    padding: 4px 8px 3px;
}
.win-tabs-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    color: var(--win-text);
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.1s;
    user-select: none;
}
.win-tabs-dropdown-item:hover {
    background: rgba(37, 99, 235, 0.2);
    color: #fff;
}
.win-tabs-dropdown-divider {
    height: 1px;
    background: var(--win-border);
    margin: 5px 0;
}
.win-tab-badge {
    background: rgba(249, 115, 22, 0.25);
    color: #fb923c;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 99px;
}

/* 1.4 Desktop Pro Action Toolbar (Панель быстрых инструментов) */
.win-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 14px;
    background: var(--win-toolbar-bg);
    border-bottom: 1px solid var(--win-border);
    gap: 12px;
    flex-wrap: wrap;
}
.win-toolbar-left, .win-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Desktop Venue Picker Dropdown */
.win-select-venue {
    background: #111422;
    border: 1px solid var(--win-border);
    border-radius: var(--win-radius-sm);
    color: #fff;
    padding: 5px 24px 5px 9px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.win-select-venue:hover {
    border-color: var(--win-blue);
    background: #181d30;
}

/* Master Shift Orders Soft Pill */
.win-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #111422;
    border: 1px solid var(--win-border);
    border-radius: var(--win-radius-sm);
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
    user-select: none;
}
.win-status-pill:hover {
    border-color: rgba(255,255,255,0.2);
    background: #181d30;
}
.win-status-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.win-status-pill.is-active .win-status-led {
    background: var(--win-emerald);
    box-shadow: 0 0 8px var(--win-emerald);
}
.win-status-pill.is-inactive .win-status-led {
    background: var(--win-rose);
    box-shadow: 0 0 8px var(--win-rose);
}

/* Desktop Toolbar Quick Buttons */
.win-btn-tool {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #181c2d;
    border: 1px solid var(--win-border);
    border-radius: var(--win-radius-sm);
    color: var(--win-text);
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: 0.12s;
}
.win-btn-tool:hover {
    background: #22273e;
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.win-btn-tool:active {
    transform: translateY(1px);
}
.win-btn-tool.accent {
    background: #1e3a8a;
    border-color: #3b82f6;
    color: #93c5fd;
}

/* ==============================================================================
   2. DESKTOP WINDOWED PANELS (.soft-window)
   ============================================================================== */

.container {
    max-width: 1560px;
    width: 100%;
    margin: 0 auto;
    padding: 14px 16px;
    flex: 1;
}

/* The Core Desktop Window Panel */
.soft-window, .card, .glass-panel {
    background: var(--win-panel-bg);
    border: 1px solid var(--win-border);
    border-radius: var(--win-radius-md);
    box-shadow: var(--win-shadow-panel);
    margin-bottom: 14px;
    overflow: hidden;
}

/* Window Header Bar with minimize/maximize controls */
.soft-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: var(--win-panel-header);
    border-bottom: 1px solid var(--win-border);
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    user-select: none;
}
.soft-window-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.soft-window-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}
.soft-window-btn {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--win-text-muted);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.1s;
}
.soft-window-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.soft-window-body {
    padding: 14px;
}

/* ==============================================================================
   3. DESKTOP SOFTWARE BUTTONS (.btn)
   ============================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: var(--win-radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.12s;
    border: 1px solid transparent;
    outline: none;
    text-decoration: none;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.btn-primary {
    background: var(--win-blue);
    border-color: #1d4ed8;
    color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
    background: var(--win-blue-hover);
    border-color: #1e40af;
}
.btn-primary:active {
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

.btn-outline {
    background: #191e30;
    border-color: var(--win-border);
    color: var(--win-text);
}
.btn-outline:hover {
    background: #222942;
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.btn-sm {
    padding: 4px 9px;
    font-size: 11.5px;
}

/* ==============================================================================
   4. DESKTOP FORM INPUTS (INSET SOFTWARE FIELDS)
   ============================================================================== */

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

label {
    display: block;
    margin-bottom: 4px;
    color: var(--win-text-muted);
    font-size: 12px;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="tel"],
input[type="time"],
select,
textarea,
.search-box {
    width: 100%;
    background: var(--win-inset-bg);
    border: 1px solid var(--win-border);
    padding: 6px 10px;
    border-radius: var(--win-radius-sm);
    color: var(--win-text);
    font-size: 12.5px;
    outline: none;
    transition: 0.12s;
    font-family: inherit;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

input:focus, select:focus, textarea:focus, .search-box:focus {
    border-color: var(--win-blue);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2), 0 0 0 2px rgba(37, 99, 235, 0.25);
    background: #121624;
}

/* ==============================================================================
   5. DESKTOP MODAL DIALOGS (.modal-overlay & .modal-box)
   ============================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 12, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.active { display: flex; }

.modal-box {
    background: #171b2c;
    border: 1px solid #374151;
    border-radius: var(--win-radius-md);
    box-shadow: var(--win-shadow-dialog);
    max-width: 580px;
    width: 100%;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #1c2136;
    border-bottom: 1px solid var(--win-border);
}
.modal-header h2, .modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--win-border);
    color: var(--win-text-muted);
    font-size: 11px;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

/* ==============================================================================
   6. DESKTOP SOFTWARE STATUS BAR (.desktop-statusbar)
   ============================================================================== */

.desktop-statusbar {
    margin-top: auto;
    height: 25px;
    background: var(--win-statusbar-bg);
    border-top: 1px solid var(--win-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    font-size: 11px;
    color: var(--win-text-muted);
    user-select: none;
}
.desktop-statusbar-section {
    display: flex;
    align-items: center;
    gap: 14px;
}
.desktop-statusbar-center {
    display: none;
}
@media (min-width: 900px) {
    .desktop-statusbar-center {
        display: flex;
    }
}
.desktop-statusbar-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.desktop-statusbar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--win-emerald);
}

/* Switches & Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    border: 1px solid transparent;
}
.badge-hit { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border-color: rgba(245, 158, 11, 0.25); }
.badge-new { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.25); }
.badge-chef { background: rgba(139, 92, 246, 0.15); color: #c084fc; border-color: rgba(139, 92, 246, 0.25); }
.badge-stop { background: rgba(244, 63, 94, 0.15); color: #fb7185; border-color: rgba(244, 63, 94, 0.25); }
.badge-sale { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.25); }

/* Switch Controls (Soft Toggles) */
.switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #272f44;
    transition: 0.15s;
    border-radius: 99px;
    border: 1px solid var(--win-border);
}
.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: #94a3b8;
    transition: 0.15s;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--win-emerald); }
input:checked + .slider:before { transform: translateX(14px); background-color: #ffffff; }

/* Grid helper */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

/* Kanban column soft styling */
.kanban-col {
    background: var(--win-panel-bg) !important;
    border: 1px solid var(--win-border) !important;
    border-radius: var(--win-radius-md) !important;
}

/* Settings tab button */
.settings-tab-btn {
    background: #141827;
    border: 1px solid var(--win-border);
    color: var(--win-text-muted);
    padding: 5px 12px;
    border-radius: var(--win-radius-sm);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.12s;
}
.settings-tab-btn:hover {
    color: #fff;
    background: #1c2236;
    border-color: rgba(255, 255, 255, 0.15);
}
.settings-tab-btn.active {
    background: var(--win-blue);
    border-color: var(--win-blue);
    color: #fff;
}

/* Custom Soft Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0d0f18; }
::-webkit-scrollbar-thumb { background: #283046; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #3c4768; }

/* Window minimize toggle */
.window-collapsed {
    display: none !important;
}

/* ==============================================================================
   7. SETTINGS STRICT SUB-TABS SYSTEM
   ============================================================================== */
.settings-subtabs-wrap {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    background: #0B0E18;
    border-bottom: 1px solid var(--win-border);
    padding: 0 4px;
}
[data-theme="light"] .settings-subtabs-wrap {
    background: #F1F5F9;
    border-bottom: 1px solid #E2E8F0;
}

.settings-subtabs-strip {
    display: flex;
    align-items: center;
    padding: 8px 6px;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 94, 58, 0.45) rgba(255, 255, 255, 0.04);
    width: 100%;
    user-select: none;
}
.settings-subtabs-strip::-webkit-scrollbar {
    height: 5px;
    display: block;
}
.settings-subtabs-strip::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}
[data-theme="light"] .settings-subtabs-strip::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
}
.settings-subtabs-strip::-webkit-scrollbar-thumb {
    background: rgba(255, 94, 58, 0.35);
    border-radius: 4px;
    transition: background 0.2s;
}
.settings-subtabs-strip::-webkit-scrollbar-thumb:hover {
    background: #FF5E3A;
}

.subtab-nav-arrow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #CBD5E1;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 16px;
    transition: all 0.2s;
    user-select: none;
}
.subtab-nav-arrow:hover {
    background: rgba(255, 94, 58, 0.2);
    border-color: rgba(255, 94, 58, 0.5);
    color: #FF5E3A;
}
[data-theme="light"] .subtab-nav-arrow {
    background: #FFFFFF;
    border-color: #CBD5E1;
    color: #475569;
}
[data-theme="light"] .subtab-nav-arrow:hover {
    background: #FFF1EE;
    border-color: #FF5E3A;
    color: #FF5E3A;
}

.subtab-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #FBBF24;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.settings-subtab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #141826;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94A3B8;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    user-select: none;
}
.settings-subtab-btn:hover {
    background: #1C2236;
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.2);
}
.settings-subtab-btn.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(30, 58, 138, 0.6));
    border-color: #3B82F6;
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4), inset 0 0 0 1px rgba(147, 197, 253, 0.35);
}

.settings-subtab-pane {
    display: none !important;
}
.settings-subtab-pane.active {
    display: block !important;
    animation: fadeInSubtab 0.15s ease-out;
}
@keyframes fadeInSubtab {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.settings-tab-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--win-border);
}


/* ==============================================================================
   THEME TOGGLE SLIDER (ДЕНЬ / НОЧЬ) & LIGHT THEME ENGINE
   ============================================================================== */

/* Slider Switch Container */
.theme-slider-wrap {
    display: inline-flex;
    align-items: center;
    margin-right: 2px;
}

.theme-slider-track {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: #0d101a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    padding: 2px;
    height: 24px;
    cursor: pointer;
    user-select: none;
    outline: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-slider-track:hover {
    border-color: rgba(255, 255, 255, 0.28);
}

/* Sliding Pill / Thumb */
.theme-slider-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: 18px;
    border-radius: 9999px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s, box-shadow 0.25s;
    pointer-events: none;
    z-index: 1;
}

/* Default / Night Theme (Dark) */
:root:not([data-theme="light"]) .theme-slider-thumb,
[data-theme="dark"] .theme-slider-thumb {
    transform: translateX(100%);
    background: linear-gradient(135deg, #3730A3 0%, #4F46E5 100%);
    border: 1px solid rgba(165, 180, 252, 0.4);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.45);
}

/* Day Theme (Light) */
[data-theme="light"] .theme-slider-track {
    background: #E2E8F0;
    border-color: #CBD5E1;
}
[data-theme="light"] .theme-slider-track:hover {
    border-color: #94A3B8;
}
[data-theme="light"] .theme-slider-thumb {
    transform: translateX(0);
    background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
    border: 1px solid rgba(254, 215, 170, 0.6);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.45);
}

/* Option Labels */
.theme-slider-opt {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    color: #64748B;
    transition: color 0.2s;
    pointer-events: none;
}
.theme-slider-opt i {
    font-size: 11px;
}
.theme-slider-label {
    letter-spacing: 0.02em;
}

/* Active Highlight States */
:root:not([data-theme="light"]) .opt-night,
[data-theme="dark"] .opt-night {
    color: #FFFFFF;
}
:root:not([data-theme="light"]) .opt-day,
[data-theme="dark"] .opt-day {
    color: #64748B;
}

[data-theme="light"] .opt-day {
    color: #FFFFFF;
}
[data-theme="light"] .opt-night {
    color: #64748B;
}

/* ==============================================================================
   COMPREHENSIVE LIGHT THEME DESIGN SYSTEM ([data-theme="light"])
   Authentic Clean Windows / macOS Desktop Software Style for GastroOS
   Ensures 100% legibility and zero unstyled dark blocks across all tabs
   ============================================================================== */

[data-theme="light"] {
    --win-bg: #F1F5F9;
    --win-titlebar-bg: #FFFFFF;
    --win-menubar-bg: #F8FAFC;
    --win-tabstrip-bg: #E2E8F0;
    --win-toolbar-bg: #F8FAFC;
    --win-panel-bg: #FFFFFF;
    --win-panel-header: #F8FAFC;
    --win-inset-bg: #F8FAFC;
    --win-border: #CBD5E1;
    --win-border-light: rgba(0, 0, 0, 0.08);
    --win-statusbar-bg: #FFFFFF;

    --win-text: #0F172A;
    --win-text-muted: #475569;
    --win-text-subtle: #64748B;

    --win-shadow-panel: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(15, 23, 42, 0.04);
    --win-shadow-dialog: 0 25px 60px -10px rgba(15, 23, 42, 0.22);
    --glass-border: #CBD5E1;
    --glass-bg: #FFFFFF;

    --win-canvas-bg: #F8FAFC;
    --win-canvas-dot: rgba(148, 163, 184, 0.4);
    --win-tg-bg: #F0F9FF;
    --win-tg-border: #BAE6FD;
}

/* 1. Global Shell, Body, and Workstation Backgrounds */
[data-theme="light"] body {
    background: #F1F5F9 !important;
    color: #0F172A !important;
}

[data-theme="light"] .desktop-app-shell {
    background: #FFFFFF !important;
    border-bottom: 1px solid #CBD5E1 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .desktop-workspace {
    background: #F1F5F9 !important;
}

[data-theme="light"] .soft-window-body {
    background: #FFFFFF !important;
    color: #0F172A !important;
}

[data-theme="light"] #kanbanWindowBody {
    background: #F1F5F9 !important;
}

/* 2. Window Chrome & Panels */
[data-theme="light"] .soft-window,
[data-theme="light"] .card,
[data-theme="light"] .glass-panel {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 6px 20px rgba(15, 23, 42, 0.04) !important;
    color: #0F172A !important;
}

[data-theme="light"] .soft-window-header {
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
    color: #0F172A !important;
}

[data-theme="light"] .soft-window-title {
    color: #0F172A !important;
}

[data-theme="light"] .soft-window-btn {
    color: #64748B !important;
}

[data-theme="light"] .soft-window-btn:hover {
    background: #E2E8F0 !important;
    color: #0F172A !important;
}

/* 3. Titlebar, Menubar, and Tabstrip */
[data-theme="light"] .win-titlebar {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .win-app-label {
    color: #0F172A !important;
}

[data-theme="light"] .win-badge-pro {
    background: rgba(37, 99, 235, 0.12) !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
    color: #2563EB !important;
}

[data-theme="light"] .win-venue-pill-btn {
    background: #F8FAFC !important;
    border-color: #CBD5E1 !important;
}

[data-theme="light"] .win-venue-name {
    color: #0F172A !important;
}

[data-theme="light"] .win-venue-subdomain {
    color: #64748B !important;
}

[data-theme="light"] .win-venue-popover {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15) !important;
}

[data-theme="light"] .win-venue-popover-header,
[data-theme="light"] .win-venue-popover-footer {
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
}

[data-theme="light"] .win-venue-item {
    border-color: #F1F5F9 !important;
}

[data-theme="light"] .win-venue-item:hover {
    background: #F1F5F9 !important;
}

[data-theme="light"] .win-venue-item-title {
    color: #0F172A !important;
}

[data-theme="light"] .win-venue-item-slug {
    color: #64748B !important;
}

[data-theme="light"] .win-titlebar-action-btn {
    background: #F8FAFC !important;
    border-color: #CBD5E1 !important;
    color: #475569 !important;
}

[data-theme="light"] .win-titlebar-action-btn:hover {
    background: #F1F5F9 !important;
    color: #0F172A !important;
}

[data-theme="light"] .win-titlebar-logout {
    border-color: #FECACA !important;
    color: #DC2626 !important;
}

[data-theme="light"] .win-titlebar-logout:hover {
    background: #FEE2E2 !important;
}

[data-theme="light"] .win-menubar {
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .win-menu-item {
    color: #475569 !important;
}

[data-theme="light"] .win-menu-item:hover {
    background: #E2E8F0 !important;
    color: #0F172A !important;
}

[data-theme="light"] .win-menu-item.active {
    background: #EFF6FF !important;
    border-color: #BFDBFE !important;
    color: #2563EB !important;
    font-weight: 700 !important;
}

[data-theme="light"] .win-tabstrip {
    background: #E2E8F0 !important;
    border-bottom: 1px solid #CBD5E1 !important;
}

[data-theme="light"] .win-tab {
    background: #E2E8F0 !important;
    border-color: #CBD5E1 !important;
    color: #64748B !important;
}

[data-theme="light"] .win-tab:hover {
    background: #F1F5F9 !important;
    color: #0F172A !important;
}

[data-theme="light"] .win-tab.active {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    border-bottom-color: #FFFFFF !important;
    color: #0F172A !important;
    font-weight: 700 !important;
}

[data-theme="light"] .win-tab-close:hover {
    background: #FEE2E2 !important;
    color: #DC2626 !important;
}

/* 4. BUTTON SYSTEM ([data-theme="light"]) */
[data-theme="light"] .btn-outline {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .btn-outline:hover {
    background: #F8FAFC !important;
    border-color: #94A3B8 !important;
    color: #0F172A !important;
}

[data-theme="light"] .win-btn-tool {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .win-btn-tool:hover {
    background: #F8FAFC !important;
    border-color: #94A3B8 !important;
    color: #0F172A !important;
}

[data-theme="light"] .win-btn-tool.accent {
    background: #EFF6FF !important;
    border-color: #93C5FD !important;
    color: #2563EB !important;
}

[data-theme="light"] .win-btn-tool.accent:hover {
    background: #DBEAFE !important;
}

/* 5. KANBAN BOARD & ORDERS ([data-theme="light"]) */
[data-theme="light"] .kanban-col {
    background: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .kanban-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
    color: #0F172A !important;
}

[data-theme="light"] .kanban-card:hover {
    border-color: #94A3B8 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.09) !important;
}

[data-theme="light"] .kanban-card span[style*="color:#fff"],
[data-theme="light"] .kanban-card span[style*="color: #fff"],
[data-theme="light"] .kanban-card strong[style*="color:#fff"],
[data-theme="light"] .kanban-card strong[style*="color: #fff"] {
    color: #0F172A !important;
}

[data-theme="light"] .kanban-card span[style*="color:#94A3B8"],
[data-theme="light"] .kanban-card span[style*="color: #94A3B8"] {
    color: #64748B !important;
}

[data-theme="light"] .kanban-items-box,
[data-theme="light"] .kanban-card div[style*="background:rgba(0,0,0,0.3)"] {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .kanban-card div[style*="color:#E2E8F0"],
[data-theme="light"] .kanban-card div[style*="color: #E2E8F0"] {
    color: #1E293B !important;
}

[data-theme="light"] .kanban-card div[style*="border-top:1px solid rgba(255,255,255,0.06)"] {
    border-top: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .kanban-delivery-box,
[data-theme="light"] .kanban-card div[style*="background:rgba(56,189,248,0.05)"] {
    background: #F0F9FF !important;
    border: 1px solid #BAE6FD !important;
}

[data-theme="light"] .kanban-delivery-box span[style*="color:#38BDF8"],
[data-theme="light"] .kanban-card span[style*="color:#38BDF8"] {
    color: #0284C7 !important;
}

/* 6. SETTINGS NAVIGATION STRIP & SUBTABS */
[data-theme="light"] .settings-subtabs-wrap {
    background: #F8FAFC !important;
    border-bottom: 1px solid #CBD5E1 !important;
}

[data-theme="light"] .settings-subtabs-strip {
    background: #F8FAFC !important;
    scrollbar-color: #CBD5E1 transparent;
}

[data-theme="light"] .settings-subtabs-strip::-webkit-scrollbar-track {
    background: #E2E8F0;
}

[data-theme="light"] .settings-subtabs-strip::-webkit-scrollbar-thumb {
    background: #CBD5E1;
}

[data-theme="light"] .settings-subtabs-strip::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

[data-theme="light"] .subtab-nav-arrow,
[data-theme="light"] .settings-nav-arrow {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #475569 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .subtab-nav-arrow:hover,
[data-theme="light"] .settings-nav-arrow:hover {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border-color: #94A3B8 !important;
}

[data-theme="light"] .settings-subtab-btn {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #475569 !important;
}

[data-theme="light"] .settings-subtab-btn:hover {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border-color: #94A3B8 !important;
}

[data-theme="light"] .settings-subtab-btn.active {
    background: #2563EB !important;
    border-color: #1D4ED8 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}

/* 7. TABLES & SEATING SCHEME ([data-theme="light"]) */
[data-theme="light"] #floorCanvas {
    background-color: #F8FAFC !important;
    background-image: radial-gradient(rgba(148, 163, 184, 0.4) 1.5px, transparent 1.5px) !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] #floorCanvas div[style*="text-transform: uppercase"] {
    color: #94A3B8 !important;
}

[data-theme="light"] .draggable-table {
    background: #FFFFFF !important;
    border: 2px solid #CBD5E1 !important;
    color: #0F172A !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .draggable-table:hover {
    border-color: #3B82F6 !important;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.2) !important;
}

[data-theme="light"] .draggable-table.selected-table {
    border-color: #FF5E3A !important;
    box-shadow: 0 0 18px rgba(255, 94, 58, 0.4) !important;
}

[data-theme="light"] .draggable-table > div:first-child {
    color: #0F172A !important;
}

[data-theme="light"] .draggable-table > div:nth-child(2) {
    color: #64748B !important;
}

[data-theme="light"] .qr-preview-box,
[data-theme="light"] div[style*="background: rgba(0,0,0,0.3)"] {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
}

[data-theme="light"] .hall-tab-btn {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #475569 !important;
}

[data-theme="light"] .hall-tab-btn:hover {
    background: #F1F5F9 !important;
    color: #0F172A !important;
}

[data-theme="light"] .hall-tab-btn.active {
    background: #EFF6FF !important;
    border-color: #3B82F6 !important;
    color: #2563EB !important;
}

/* 8. MENU CATALOG & DISH ITEMS ([data-theme="light"]) */
[data-theme="light"] div[id^="item-row-"] {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] div[id^="item-row-"]:hover {
    border-color: #94A3B8 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] div[id^="item-row-"] span[style*="color: white"],
[data-theme="light"] div[id^="item-row-"] span[style*="color:white"],
[data-theme="light"] div[id^="item-row-"] strong[style*="color: white"],
[data-theme="light"] div[id^="item-row-"] strong[style*="color:white"] {
    color: #0F172A !important;
}

/* Category Pills in Menu */
[data-theme="light"] .glass-panel div[style*="rgba(255,94,58"] {
    background: #FFF1EE !important;
    border-color: #FF5E3A !important;
}

[data-theme="light"] .glass-panel div[style*="rgba(255,255,255,0.04)"] {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
}

[data-theme="light"] .glass-panel a[style*="color: #fff"],
[data-theme="light"] .glass-panel a[style*="color:#fff"] {
    color: #FF5E3A !important;
}

[data-theme="light"] .glass-panel a[style*="color: #94A3B8"],
[data-theme="light"] .glass-panel a[style*="color:#94A3B8"] {
    color: #475569 !important;
}

/* 9. TELEGRAM, CRM, & PAYWALLS ([data-theme="light"]) */
[data-theme="light"] div[style*="linear-gradient(135deg, rgba(0, 136, 204"] {
    background: #F0F9FF !important;
    border: 1px solid #BAE6FD !important;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.08) !important;
}

[data-theme="light"] div[style*="background: rgba(0,0,0,0.25)"] {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* Paywall Alert Cards */
[data-theme="light"] div[style*="rgba(239,68,68,0.15)"],
[data-theme="light"] div[style*="rgba(239,68,68,0.12)"],
[data-theme="light"] div[style*="rgba(239, 68, 68, 0.15)"],
[data-theme="light"] div[style*="rgba(239, 68, 68, 0.12)"] {
    background: #FEF2F2 !important;
    border: 1px solid #FECACA !important;
    color: #DC2626 !important;
}

[data-theme="light"] div[style*="rgba(239,68,68"] span,
[data-theme="light"] div[style*="rgba(239, 68, 68"] span {
    color: #DC2626 !important;
}

/* Provider Radio Cards in Payment */
[data-theme="light"] .payment-provider-card {
    background: #FFFFFF !important;
    border: 2px solid #CBD5E1 !important;
}

[data-theme="light"] .payment-provider-card.active {
    border-color: #FF5E3A !important;
    box-shadow: 0 0 0 1px #FF5E3A, 0 4px 14px rgba(255, 94, 58, 0.12) !important;
}

[data-theme="light"] .payment-provider-card span[style*="color: #fff"],
[data-theme="light"] .payment-provider-card span[style*="color:#fff"] {
    color: #0F172A !important;
}

/* 10. CHAT CONNECT & THREADS ([data-theme="light"]) */
[data-theme="light"] .thread-card {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E2E8F0 !important;
    color: #0F172A !important;
}

[data-theme="light"] .thread-card:hover {
    background: #F8FAFC !important;
}

[data-theme="light"] #messagesArea {
    background: #FFFFFF !important;
}

[data-theme="light"] #chatInputArea {
    background: #F8FAFC !important;
    border-top: 1px solid #CBD5E1 !important;
}

/* 11. UNIVERSAL DARK INLINE OVERRIDES (Eliminates all remaining dark blocks) */
[data-theme="light"] [style*="background: #111421"],
[data-theme="light"] [style*="background: #111422"],
[data-theme="light"] [style*="background: #151827"],
[data-theme="light"] [style*="background:#151827"],
[data-theme="light"] [style*="background: #121826"],
[data-theme="light"] [style*="background:#121826"],
[data-theme="light"] [style*="background: #0B0E18"],
[data-theme="light"] [style*="background:#0B0E18"],
[data-theme="light"] [style*="background: #141829"],
[data-theme="light"] [style*="background: #101321"],
[data-theme="light"] [style*="background: #131728"],
[data-theme="light"] [style*="background: #1e293b"],
[data-theme="light"] [style*="background: #1E293B"],
[data-theme="light"] [style*="background: rgba(15, 23, 42"],
[data-theme="light"] [style*="background:rgba(15, 23, 42"] {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

/* Headings and Titles */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: #0F172A !important;
}

/* Prevent white text on white backgrounds (except inside buttons or solid colored badges) */
[data-theme="light"] p[style*="color: #fff"],
[data-theme="light"] p[style*="color:#fff"],
[data-theme="light"] span[style*="color: #fff"]:not(.btn *):not(.badge *):not(.theme-slider-thumb *):not(.badge):not(.btn),
[data-theme="light"] span[style*="color:#fff"]:not(.btn *):not(.badge *):not(.theme-slider-thumb *):not(.badge):not(.btn),
[data-theme="light"] strong[style*="color: #fff"],
[data-theme="light"] strong[style*="color:#fff"],
[data-theme="light"] strong[style*="color: white"],
[data-theme="light"] b[style*="color: #fff"],
[data-theme="light"] b[style*="color:#fff"],
[data-theme="light"] div[style*="color: #fff"]:not(.btn):not(.badge) {
    color: #0F172A !important;
}

[data-theme="light"] span[style*="color: #E2E8F0"],
[data-theme="light"] span[style*="color:#E2E8F0"],
[data-theme="light"] div[style*="color: #E2E8F0"],
[data-theme="light"] div[style*="color:#E2E8F0"],
[data-theme="light"] div[style*="color: #cbd5e1"],
[data-theme="light"] div[style*="color:#cbd5e1"] {
    color: #334155 !important;
}

/* Form Controls & Inputs */
[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
[data-theme="light"] select,
[data-theme="light"] textarea,
[data-theme="light"] .search-box {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}

[data-theme="light"] input[disabled],
[data-theme="light"] select[disabled],
[data-theme="light"] textarea[disabled],
[data-theme="light"] .search-box[disabled] {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    color: #64748B !important;
    opacity: 0.9 !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder,
[data-theme="light"] .search-box::placeholder {
    color: #94A3B8 !important;
    opacity: 1 !important;
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
}

/* Switch Toggles */
[data-theme="light"] .slider {
    background-color: #CBD5E1 !important;
}

[data-theme="light"] input:checked + .slider {
    background-color: #10B981 !important;
}

[data-theme="light"] .slider:before {
    background-color: #FFFFFF !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Form Labels & Explanatory Text */
[data-theme="light"] label,
[data-theme="light"] .form-label {
    color: #334155 !important;
}

[data-theme="light"] [style*="color: var(--win-text-muted)"],
[data-theme="light"] [style*="color: var(--text-muted)"] {
    color: #64748B !important;
}

/* Modals */
[data-theme="light"] .modal-box,
[data-theme="light"] .desktop-modal-box,
[data-theme="light"] [id$="Modal"] > div,
[data-theme="light"] [id$="Modal"] .soft-window {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22) !important;
    color: #0F172A !important;
}

[data-theme="light"] .modal-header {
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
    color: #0F172A !important;
}

[data-theme="light"] .modal-header h2,
[data-theme="light"] .modal-header h3 {
    color: #0F172A !important;
}

/* Tables */
[data-theme="light"] table {
    color: #0F172A !important;
}

[data-theme="light"] th {
    background: #F8FAFC !important;
    color: #475569 !important;
    border-color: #E2E8F0 !important;
}

[data-theme="light"] td {
    border-color: #E2E8F0 !important;
    color: #334155 !important;
}

[data-theme="light"] tr:hover td {
    background: #F8FAFC !important;
}

/* Statusbar */
[data-theme="light"] .desktop-statusbar {
    background: #FFFFFF !important;
    border-top: 1px solid #E2E8F0 !important;
    color: #475569 !important;
}

[data-theme="light"] .desktop-statusbar-item {
    color: #475569 !important;
}

[data-theme="light"] #winFooterClock {
    color: #0F172A !important;
}

/* Scrollbars in Light Mode */
[data-theme="light"] ::-webkit-scrollbar-track {
    background: #F1F5F9;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #CBD5E1;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}


/* ==============================================================================
   TARGETED LIGHT MODE ACCENT & CONTRAST FIXES FOR ALL DASHBOARD TABS
   ============================================================================== */

/* 1. Kanban Date Filter Buttons */
[data-theme="light"] .soft-window-controls a.btn-sm[href*="?date="]:not([style*="var(--win-blue)"]) {
    color: #334155 !important;
}

/* 2. Menu Item Badges & Actions */
[data-theme="light"] .badge-pill-label {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}
[data-theme="light"] .badge-pill-label span {
    color: #0F172A !important;
}
[data-theme="light"] .badge-pill-label:hover {
    background: #F1F5F9 !important;
    border-color: #94A3B8 !important;
}

/* 3. Tables & Floor Plan Scheme */
[data-theme="light"] #floorCanvas {
    background-color: #F8FAFC !important;
    background-image: radial-gradient(#CBD5E1 1.5px, transparent 1.5px) !important;
    border: 1px solid #CBD5E1 !important;
}
[data-theme="light"] #floorCanvas div[style*="text-transform: uppercase"] {
    color: #64748B !important;
}
[data-theme="light"] .draggable-table {
    background: #FFFFFF !important;
    border: 2px solid #CBD5E1 !important;
    color: #0F172A !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}
[data-theme="light"] .draggable-table:hover {
    border-color: #3B82F6 !important;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.2) !important;
}
[data-theme="light"] .draggable-table.selected-table {
    border-color: #FF5E3A !important;
    box-shadow: 0 0 18px rgba(255, 94, 58, 0.4) !important;
}
[data-theme="light"] .draggable-table > div:first-child {
    color: #0F172A !important;
}
[data-theme="light"] .draggable-table > div:nth-child(2) {
    color: #64748B !important;
}
[data-theme="light"] button[onclick="deleteCurrentTable()"] {
    background: #FEE2E2 !important;
    border: 1px solid #FCA5A5 !important;
    color: #DC2626 !important;
}
[data-theme="light"] button[onclick*="switchView('map')"] {
    background: #EFF6FF !important;
    border: 1px solid #BFDBFE !important;
    color: #2563EB !important;
}

/* 4. Promo Code Category Selection */
[data-theme="light"] .promo-cat-scrollbox,
[data-theme="light"] #promoModal div[style*="max-height: 140px"] {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
}
[data-theme="light"] .promo-cat-scrollbox label,
[data-theme="light"] #promoModal div[style*="max-height: 140px"] label {
    color: #0F172A !important;
}
[data-theme="light"] .promo-cat-scrollbox label span,
[data-theme="light"] #promoModal div[style*="max-height: 140px"] label span {
    color: #1E293B !important;
}

/* 5. Settings: Design & Templates (Subtab 3) */
[data-theme="light"] #section-theme label {
    background: #FFFFFF !important;
    border: 2px solid #CBD5E1 !important;
}
[data-theme="light"] #section-theme label:hover {
    border-color: #94A3B8 !important;
}
[data-theme="light"] #section-theme div[style*="font-size: 1rem"] {
    color: #0F172A !important;
}
[data-theme="light"] #section-theme div[style*="font-family: monospace"] {
    color: #0284C7 !important;
}
[data-theme="light"] #section-theme div[style*="line-height: 1.45"] {
    color: #334155 !important;
}
[data-theme="light"] #section-theme span[style*="color: #f87171"] {
    background: #FEE2E2 !important;
    color: #DC2626 !important;
    border: 1px solid #FCA5A5 !important;
}

/* 6. Settings: Telegram & CRM (Subtab 5) */
[data-theme="light"] #section-integrations div[style*="linear-gradient(135deg, rgba(0, 136, 204"] {
    background: #F0F9FF !important;
    border: 1px solid #BAE6FD !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08) !important;
}
[data-theme="light"] #section-integrations div[style*="color: #38BDF8"] {
    color: #0369A1 !important;
}
[data-theme="light"] #section-integrations div[style*="color: #94A3B8"] {
    color: #475569 !important;
}
[data-theme="light"] #section-integrations a[style*="color: #67E8F9"] {
    color: #0284C7 !important;
}
[data-theme="light"] #section-integrations a[style*="rgba(0, 136, 204, 0.2)"] {
    background: #E0F2FE !important;
    border: 1px solid #7DD3FC !important;
    color: #0284C7 !important;
}
[data-theme="light"] #section-integrations div[style*="background: var(--win-inset-bg)"] {
    background: #FFFFFF !important;
    border: 1px dashed #BAE6FD !important;
    color: #1E293B !important;
}
[data-theme="light"] #section-integrations div[style*="background: var(--win-inset-bg)"] strong {
    color: #0284C7 !important;
}
[data-theme="light"] #section-integrations div[style*="background: rgba(239,68,68"] {
    background: #FEE2E2 !important;
    border: 1px solid #FCA5A5 !important;
    color: #B91C1C !important;
}
[data-theme="light"] #section-integrations div[style*="background: rgba(239,68,68"] span {
    color: #B91C1C !important;
}
[data-theme="light"] #section-integrations div[style*="background: var(--win-panel-bg)"] {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
}
[data-theme="light"] #section-integrations div[style*="color: #fff"] {
    color: #0F172A !important;
}

/* 7. Settings: Payments & Acquiring (Subtab 6) */
[data-theme="light"] #section-payments div[style*="linear-gradient(135deg, rgba(255, 94, 58"] {
    background: #FFF7ED !important;
    border: 1px solid #FED7AA !important;
}
[data-theme="light"] #section-payments div[style*="linear-gradient(135deg, rgba(255, 94, 58"] div[style*="color: #fff"] {
    color: #7C2D12 !important;
}
[data-theme="light"] #section-payments div[style*="linear-gradient(135deg, rgba(255, 94, 58"] div[style*="color: #94A3B8"] {
    color: #9A3412 !important;
}
[data-theme="light"] #section-payments div[style*="color: #fff"] {
    color: #0F172A !important;
}
[data-theme="light"] #section-payments div[style*="color: #94A3B8"] {
    color: #475569 !important;
}
[data-theme="light"] #section-payments label[style*="color: #E2E8F0"] {
    color: #1E293B !important;
}
[data-theme="light"] #section-payments .payment-provider-card {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
}
[data-theme="light"] #section-payments .payment-provider-card.active {
    background: #FFFBF9 !important;
    border-color: var(--paprika) !important;
}
[data-theme="light"] #section-payments .payment-provider-card span[style*="color: #CBD5E1"],
[data-theme="light"] #section-payments span.prov-chip {
    background: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
    color: #334155 !important;
}
[data-theme="light"] #fields-cloudpayments,
[data-theme="light"] #fields-yookassa {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
}
[data-theme="light"] #fields-cloudpayments div[style*="color: #93C5FD"] {
    background: #EFF6FF !important;
    border-left: 3px solid #3B82F6 !important;
    color: #1E40AF !important;
}
[data-theme="light"] #fields-cloudpayments code {
    background: #E2E8F0 !important;
    color: #0F172A !important;
}
[data-theme="light"] #webhookUrlDisplay {
    color: #1D4ED8 !important;
}
[data-theme="light"] button[onclick="copyWebhookUrl()"] {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}

/* 8. Staff Schedule & Calendar */
.cal-day-header {
    color: #94A3B8;
}
.cal-day-cell {
    background: rgba(255, 255, 255, 0.03);
    color: #CBD5E1;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.cal-day-cell:hover:not(.is-selected) {
    background: rgba(255, 255, 255, 0.1);
}
.cal-day-cell.is-selected {
    background: #2563EB !important;
    color: #FFFFFF !important;
    font-weight: 700;
    border: 1px solid #60A5FA !important;
    box-shadow: 0 2px 6px rgba(37,99,235,0.4);
}
.cal-day-cell.is-today {
    font-weight: 700;
    color: #38BDF8;
    border: 1px solid #38BDF8;
}
[data-theme="light"] .cal-day-header {
    color: #475569 !important;
}
[data-theme="light"] .cal-day-cell {
    background: #F8FAFC !important;
    color: #0F172A !important;
    border: 1px solid #CBD5E1 !important;
}
[data-theme="light"] .cal-day-cell:hover:not(.is-selected) {
    background: #E2E8F0 !important;
    color: #000000 !important;
}
[data-theme="light"] .cal-day-cell.is-today {
    border-color: #0284C7 !important;
    color: #0284C7 !important;
}

/* 9. Billing Hero & Enterprise Cards */
[data-theme="light"] .billing-hero-widget {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06) !important;
}
[data-theme="light"] .billing-hero-widget h2,
[data-theme="light"] .billing-hero-widget div[style*="color: var(--win-text, #fff)"],
[data-theme="light"] .billing-hero-widget div[style*="color: #cbd5e1"] {
    color: #0F172A !important;
}
[data-theme="light"] .billing-plan-business {
    background: #FFFFFF !important;
    border: 2px solid #10B981 !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12) !important;
}
[data-theme="light"] .billing-plan-business div[style*="border-top"] {
    border-top-color: #E2E8F0 !important;
}
[data-theme="light"] .billing-plan-business div[style*="color: #34d399"] {
    color: #047857 !important;
}
[data-theme="light"] .billing-plan-business div[style*="color: #cbd5e1"] {
    color: #334155 !important;
}


/* ==============================================================================
   10. WINDOWS-STYLE START MENU BUTTON & VERTICAL DROPDOWN
   ============================================================================== */

.win-start-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.win-start-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(30, 41, 59, 0.65));
    border: 1px solid rgba(59, 130, 246, 0.38);
    color: #F1F5F9;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    line-height: 1.35;
}

.win-start-btn:hover,
.win-start-btn.is-open {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(30, 58, 138, 0.85));
    border-color: #3B82F6;
    color: #FFFFFF;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.win-start-btn .win-start-icon {
    font-size: 14px;
    color: #38BDF8;
}

.win-start-btn .win-start-chevron {
    font-size: 12px;
    color: #94A3B8;
    transition: transform 0.2s ease;
}

.win-start-btn.is-open .win-start-chevron {
    transform: rotate(180deg);
}

/* Vertical Start Menu Popover */
.win-start-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 290px;
    background: #121626;
    border: 1px solid var(--win-border);
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
    z-index: 99999;
    overflow: hidden;
    animation: winStartSlideDown 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes winStartSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.win-start-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--win-border);
}

.win-start-header-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #F1F5F9;
    font-family: 'Space Grotesk', sans-serif;
}

.win-start-header-badge {
    font-size: 10px;
    background: rgba(249, 115, 22, 0.15);
    color: #F97316;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.win-start-body {
    padding: 6px;
    max-height: 460px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.win-start-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--win-text);
    transition: all 0.12s ease;
    cursor: pointer;
}

.win-start-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #FFFFFF;
}

.win-start-item.is-active {
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.win-start-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.win-start-item-text {
    flex: 1;
    min-width: 0;
}

.win-start-item-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--win-text);
}

.win-start-item-desc {
    font-size: 10px;
    color: var(--win-text-muted);
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.win-start-item-badge {
    font-size: 9.5px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    flex-shrink: 0;
}

.win-start-item-badge.active-badge {
    background: rgba(16, 185, 129, 0.18);
    color: #34D399;
}

.win-start-item-badge.vip-badge {
    background: rgba(255, 94, 58, 0.18);
    color: #FF5E3A;
}

.win-start-divider {
    height: 1px;
    background: var(--win-border);
    margin: 4px 6px;
}

/* Light Mode Overrides for Start Menu */
[data-theme="light"] .win-start-btn {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .win-start-btn:hover,
[data-theme="light"] .win-start-btn.is-open {
    background: #F1F5F9 !important;
    border-color: #3B82F6 !important;
    color: #2563EB !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15) !important;
}

[data-theme="light"] .win-start-btn .win-start-icon {
    color: #2563EB !important;
}

[data-theme="light"] .win-start-btn .win-start-chevron {
    color: #64748B !important;
}

[data-theme="light"] .win-start-dropdown {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15) !important;
    color: #0F172A !important;
}

[data-theme="light"] .win-start-header {
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .win-start-header-title {
    color: #0F172A !important;
}

[data-theme="light"] .win-start-item:hover {
    background: #F8FAFC !important;
}

[data-theme="light"] .win-start-item.is-active {
    background: #EFF6FF !important;
    border: 1px solid #BFDBFE !important;
}

[data-theme="light"] .win-start-item-icon {
    background: #F1F5F9 !important;
    border: 1px solid #E2E8F0 !important;
}

[data-theme="light"] .win-start-item-title {
    color: #0F172A !important;
}

[data-theme="light"] .win-start-item-desc {
    color: #64748B !important;
}

[data-theme="light"] .win-start-divider {
    background: #E2E8F0 !important;
}


/* Inactive & Dim Styles for Sections Outside Subscription */
.win-start-item.is-locked {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    filter: grayscale(0.7) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px dashed rgba(255, 255, 255, 0.1) !important;
    user-select: none !important;
}

.win-start-item.is-locked:hover {
    opacity: 0.65 !important;
    filter: grayscale(0.3) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.win-start-item.is-locked .win-start-item-title {
    color: #94A3B8 !important;
}

.win-start-item.is-locked .win-start-item-desc {
    color: #64748B !important;
}

[data-theme="light"] .win-start-item.is-locked {
    background: #F8FAFC !important;
    border: 1px dashed #CBD5E1 !important;
    opacity: 0.5 !important;
    filter: grayscale(0.8) !important;
}

[data-theme="light"] .win-start-item.is-locked:hover {
    background: #F1F5F9 !important;
    opacity: 0.75 !important;
}

[data-theme="light"] .win-start-item.is-locked .win-start-item-title {
    color: #64748B !important;
}

[data-theme="light"] .win-start-item.is-locked .win-start-item-desc {
    color: #94A3B8 !important;
}

.win-start-item.is-locked .win-start-item-badge {
    opacity: 0.85;
}

[data-theme="light"] .win-start-item.is-locked .win-start-item-badge.vip-badge {
    background: #FEE2E2 !important;
    color: #DC2626 !important;
    border: 1px solid #FECACA !important;
}

/* ==========================================================================
   DESKTOP SOFTWARE WELCOME & ONBOARDING SPLASH SCREEN (Когда закрыты все вкладки)
   ========================================================================== */
.win-welcome-wrapper {
    max-width: 1100px;
    margin: 1.5rem auto 3.5rem;
    padding: 0 1rem;
    animation: fadeInWelcome 0.3s ease-out;
}

@keyframes fadeInWelcome {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.win-welcome-hero {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12), transparent 70%);
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid var(--win-border);
}

.win-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    color: #38BDF8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.win-welcome-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38BDF8;
    box-shadow: 0 0 8px #38BDF8;
}

.win-welcome-title {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--win-text, #F1F5F9);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.win-welcome-subtitle {
    font-size: 14.5px;
    color: var(--win-text-muted, #94A3B8);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Quick Action Cards Grid */
.win-welcome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    margin-bottom: 2rem;
}

.win-welcome-card {
    background: var(--win-panel-bg, #0B101B);
    border: 1px solid var(--win-border, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.22s ease-in-out;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.win-welcome-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.1);
}

.win-welcome-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.win-welcome-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 1px solid transparent;
}

.win-welcome-card-pill {
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.win-welcome-card-body {
    flex: 1;
}

.win-welcome-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--win-text, #F1F5F9);
    margin: 0 0 8px;
    line-height: 1.35;
}

.win-welcome-card-desc {
    font-size: 13px;
    color: var(--win-text-muted, #94A3B8);
    line-height: 1.55;
    margin: 0;
}

.win-welcome-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--win-border, rgba(255, 255, 255, 0.06));
}

.win-welcome-card-stat {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--win-text-muted, #94A3B8);
    display: flex;
    align-items: center;
    gap: 4px;
}

.win-welcome-card-btn {
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.win-welcome-card:hover .win-welcome-card-btn {
    filter: brightness(1.15);
}

/* 3-Step Guide Banner */
.win-welcome-guide {
    background: var(--win-panel-bg, #0B101B);
    border: 1px solid var(--win-border, rgba(255, 255, 255, 0.08));
    border-radius: 18px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.win-welcome-guide-header {
    margin-bottom: 1.5rem;
}

.win-welcome-guide-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #10B981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.win-welcome-guide-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--win-text, #F1F5F9);
    margin: 0;
}

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

.win-welcome-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--win-border, rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    padding: 14px;
}

.win-welcome-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0284C7;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.win-welcome-step-info {
    flex: 1;
}

.win-welcome-step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--win-text, #F1F5F9);
    margin-bottom: 4px;
}

.win-welcome-step-desc {
    font-size: 12.5px;
    color: var(--win-text-muted, #94A3B8);
    line-height: 1.5;
}

/* Toolbar Buttons */
.win-welcome-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.win-welcome-tool-btn {
    border: none;
    border-radius: 10px;
    padding: 11px 20px;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.win-welcome-tool-primary {
    background: #0284C7;
    color: #FFFFFF !important;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

.win-welcome-tool-primary:hover {
    background: #0369A1;
    transform: translateY(-2px);
}

.win-welcome-tool-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34D399 !important;
}

.win-welcome-tool-success:hover {
    background: rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
}

.win-welcome-tool-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--win-border, rgba(255, 255, 255, 0.12));
    color: var(--win-text, #F1F5F9) !important;
}

.win-welcome-tool-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ==================== DAY / LIGHT THEME OVERRIDES FOR WELCOME SCREEN ==================== */
[data-theme="light"] .win-welcome-hero {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .win-welcome-badge {
    background: #F0F9FF !important;
    border-color: #BAE6FD !important;
    color: #0284C7 !important;
}

[data-theme="light"] .win-welcome-title {
    color: #0F172A !important;
}

[data-theme="light"] .win-welcome-subtitle {
    color: #475569 !important;
}

[data-theme="light"] .win-welcome-card {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .win-welcome-card:hover {
    border-color: #38BDF8 !important;
    box-shadow: 0 10px 28px rgba(2, 132, 199, 0.15) !important;
}

[data-theme="light"] .win-welcome-card-title {
    color: #0F172A !important;
}

[data-theme="light"] .win-welcome-card-desc {
    color: #475569 !important;
}

[data-theme="light"] .win-welcome-card-footer {
    border-top-color: #F1F5F9 !important;
}

[data-theme="light"] .win-welcome-card-stat {
    color: #64748B !important;
}

[data-theme="light"] .win-welcome-guide {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .win-welcome-guide-title {
    color: #0F172A !important;
}

[data-theme="light"] .win-welcome-step {
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
}

[data-theme="light"] .win-welcome-step-title {
    color: #0F172A !important;
}

[data-theme="light"] .win-welcome-step-desc {
    color: #475569 !important;
}

[data-theme="light"] .win-welcome-tool-outline {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #1E293B !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .win-welcome-tool-outline:hover {
    background: #F1F5F9 !important;
}

[data-theme="light"] .win-welcome-tool-success {
    background: #ECFDF5 !important;
    border-color: #A7F3D0 !important;
    color: #059669 !important;
}

