/* assets/css/os-core.css - Handcrafted Warm Beige Retro Theme */

:root {
    --os-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --os-pixel: 'Silkscreen', 'VT323', monospace;
    --os-mono: 'VT323', monospace;
    
    /* Warm Beige Retro Color Palette */
    --bg-primary: #EFE6D5;
    --bg-dark: #EFE6D5;
    --bg-wallpaper: #EFE6D5;
    
    --taskbar-bg: #FAF5EC;
    --taskbar-border: #3E3228;
    --glass-bg: #FAF5EC;
    --glass-border: #3E3228;
    --glass-blur: none;
    --glass-shadow: 4px 4px 0px #3E3228;
    
    --text-primary: #2E241C;
    --text-secondary: #5C4D3E;
    --text-muted: #8C7A6B;
    
    --accent-color: #BCE3C5;
    --accent-hover: #A3D9AF;
    --accent-tan: #DBCAB2;
    --accent-purple: #D8C4E8;
    --accent-coral: #E8B4A2;
    
    --window-header-bg: #DBCAB2;
    --window-body-bg: #FAF5EC;
    --card-bg: #FAF5EC;
    --card-border: #3E3228;
    
    --danger-color: #E8B4A2;
    --success-color: #BCE3C5;
    --warning-color: #F7D692;
}

[data-os-theme="light"], [data-os-theme="dark"] {
    --bg-primary: #EFE6D5;
    --bg-dark: #EFE6D5;
    --bg-wallpaper: #EFE6D5;
    --taskbar-bg: #FAF5EC;
    --taskbar-border: #3E3228;
    --glass-bg: #FAF5EC;
    --glass-border: #3E3228;
    --text-primary: #2E241C;
    --text-secondary: #5C4D3E;
    --text-muted: #8C7A6B;
    --accent-color: #BCE3C5;
    --window-header-bg: #DBCAB2;
    --window-body-bg: #FAF5EC;
    --card-bg: #FAF5EC;
    --card-border: #3E3228;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-drag: none;
}

body, html {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: var(--os-font);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------------
   1. BOOT & LOCK / LOGIN SCREEN (BEIGE RETRO STYLE)
------------------------------------------------------------- */
#boot-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #EFE6D5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.retro-window-card {
    background: #FAF5EC;
    border: 2px solid #3E3228;
    box-shadow: 6px 6px 0px #3E3228;
    border-radius: 4px;
    overflow: hidden;
}

.retro-window-header {
    background: #DBCAB2;
    border-bottom: 2px solid #3E3228;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.retro-window-title {
    font-family: var(--os-pixel);
    font-size: 1rem;
    font-weight: 700;
    color: #2E241C;
}

.retro-window-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.retro-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid #3E3228;
    background: #FAF5EC;
}

.retro-close-btn {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    color: #3E3228;
    cursor: pointer;
}

.boot-window-box {
    width: 360px;
    max-width: 90vw;
}

.retro-pixel-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #DBCAB2;
    border: 2px solid #3E3228;
    box-shadow: 3px 3px 0px #3E3228;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
}

.boot-title {
    font-family: var(--os-pixel);
    font-size: 1.6rem;
    font-weight: 700;
    color: #2E241C;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
}

.boot-progress-wrapper {
    width: 100%;
    height: 16px;
    background: #EFE6D5;
    border: 2px solid #3E3228;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    padding: 2px;
}

.boot-progress-bar {
    height: 100%;
    width: 0%;
    background: #BCE3C5;
    border-radius: 20px;
    border: 1px solid #3E3228;
    transition: width 0.4s ease-in-out;
}

.boot-status {
    font-family: var(--os-font);
    font-size: 0.88rem;
    color: #5C4D3E;
    font-weight: 600;
}

/* WARM BEIGE RETRO LOCK & LOGIN SCREEN */
#login-screen {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: #EFE6D5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.win-login-clock-box {
    position: absolute;
    top: 50px;
    text-align: center;
}

.win-login-time {
    font-family: var(--os-pixel);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: #2E241C;
    letter-spacing: 2px;
}

.win-login-date {
    font-family: var(--os-font);
    font-size: 1.15rem;
    color: #5C4D3E;
    margin-top: 6px;
    font-weight: 700;
}

.win-login-center-card {
    width: 340px;
    max-width: 90vw;
    margin-top: 40px;
}

.win-login-avatar-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid #3E3228;
    box-shadow: 3px 3px 0px #3E3228;
    background: #FAF5EC;
    overflow: hidden;
}

.win-login-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.win-login-username {
    font-family: var(--os-pixel);
    font-size: 1.6rem;
    font-weight: 700;
    color: #2E241C;
}

.win-login-status {
    font-size: 0.85rem;
    color: #5C4D3E;
    font-weight: 600;
    background: #EFE6D5;
    border: 1px solid #3E3228;
    padding: 3px 12px;
    border-radius: 12px;
}

.win-login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    width: 100%;
}

.win-login-input-wrapper {
    position: relative;
    width: 100%;
}

.win-login-input {
    width: 100%;
    padding: 10px 42px 10px 14px;
    background: #FAF5EC;
    border: 2px solid #3E3228;
    border-radius: 8px;
    color: #2E241C;
    font-family: var(--os-font);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    box-shadow: 3px 3px 0px #3E3228;
}

.win-login-input:focus {
    background: #ffffff;
    box-shadow: 4px 4px 0px #3E3228;
}

.win-login-submit-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 2px solid #3E3228;
    border-radius: 6px;
    background: #DBCAB2;
    color: #2E241C;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.win-guest-signin-btn {
    padding: 10px 32px;
    border: 2px solid #3E3228;
    border-radius: 8px;
    background: #DBCAB2;
    box-shadow: 3px 3px 0px #3E3228;
    color: #2E241C;
    font-family: var(--os-pixel);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.win-guest-signin-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #3E3228;
}

.win-login-users-left {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 30;
}

.win-user-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #FAF5EC;
    border: 2px solid #3E3228;
    box-shadow: 3px 3px 0px #3E3228;
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 210px;
}

.win-user-tile:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #3E3228;
}

.win-user-tile.active {
    background: #BCE3C5;
    box-shadow: 4px 4px 0px #3E3228;
}

.win-user-thumb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #DBCAB2;
    border: 2px solid #3E3228;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2E241C;
    font-size: 0.95rem;
}

.win-user-title {
    font-family: var(--os-pixel);
    font-size: 0.95rem;
    font-weight: 700;
    color: #2E241C;
}

.win-user-subtitle {
    font-size: 0.75rem;
    color: #5C4D3E;
    font-weight: 600;
}

.win-login-utilities-right {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 30;
}

.win-util-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #FAF5EC;
    border: 2px solid #3E3228;
    box-shadow: 3px 3px 0px #3E3228;
    color: #2E241C;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.1s;
}

.win-util-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #3E3228;
}

/* WINDOWS 11 UTILITY FLYOUT CARDS */
.win-flyout-card {
    position: absolute;
    bottom: 85px;
    right: 30px;
    width: 260px;
    background: #EFE6D5;
    border: 2px solid #3E3228;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 6px 6px 0px rgba(62,50,40,0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.win-flyout-card.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.flyout-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2E241C;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(62,50,40,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.flyout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.flyout-item-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #5C4D3E;
    font-weight: 600;
    padding: 4px 0;
}

.flyout-item-toggle input[type="checkbox"] {
    accent-color: #3E3228;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.flyout-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #2E241C;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.flyout-menu-item:hover {
    background: #DBCAB2;
}

/* -------------------------------------------------------------
   2. DESKTOP WORKSPACE & ICONS
------------------------------------------------------------- */
#desktop-workspace {
    position: fixed;
    inset: 0;
    bottom: 50px;
    background: radial-gradient(circle at 15% 15%, #FAF5EC 0%, #EFE6D5 45%, #E5D7C2 100%);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(219, 202, 178, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(188, 227, 197, 0.4) 0%, transparent 50%),
        linear-gradient(rgba(62, 50, 40, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 50, 40, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 28px 28px, 28px 28px;
    padding: 1.5rem;
    z-index: 10;
}

#desktop-icon-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.desktop-icon {
    pointer-events: auto;
    width: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 10px;
    cursor: grab;
    user-select: none;
    touch-action: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    border: 2px solid transparent;
    z-index: 15;
    box-sizing: border-box;
}

.desktop-icon:active {
    cursor: grabbing !important;
    z-index: 25 !important;
}

.desktop-icon:hover {
    background: #BCE3C5;
    border-color: #3E3228;
    transform: translateY(-2px);
    box-shadow: 3px 3px 0px #3E3228;
}

.desktop-icon.selected {
    background: #BCE3C5;
    border-color: #3E3228;
    box-shadow: 4px 4px 0px #3E3228;
}

.icon-img-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #FAF5EC !important;
    border: 2px solid #3E3228 !important;
    color: #3E3228 !important;
    box-shadow: 3px 3px 0px #3E3228;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.desktop-icon:hover .icon-img-wrapper {
    transform: scale(1.05);
}

.icon-label {
    font-family: var(--os-pixel);
    font-size: 0.72rem;
    font-weight: 700;
    color: #2E241C;
    background: #FAF5EC;
    border: 1.5px solid #3E3228;
    box-shadow: 2px 2px 0px #3E3228;
    padding: 3px 6px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    display: block;
}

/* -------------------------------------------------------------
   3. TASKBAR & START MENU
------------------------------------------------------------- */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #FAF5EC;
    border-top: 2px solid #3E3228;
    z-index: 9995;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.taskbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
}

.start-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 2px solid #3E3228;
    background: #DBCAB2;
    box-shadow: 2px 2px 0px #3E3228;
    color: #2E241C;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
}

.start-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #3E3228;
}

.taskbar-app-icon {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    border: 1.5px solid #3E3228;
    background: #FAF5EC;
    color: #2E241C;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 2px 2px 0px #3E3228;
    transition: all 0.15s;
}

.taskbar-app-icon:hover {
    background: #DBCAB2;
}

.taskbar-app-icon.active {
    background: #BCE3C5;
    box-shadow: 3px 3px 0px #3E3228;
}

.taskbar-app-icon.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 12px;
    height: 3px;
    background: #3E3228;
    border-radius: 4px;
}

/* SYSTEM TRAY */
.taskbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tray-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #2E241C;
    font-weight: 700;
    transition: background 0.2s;
}

.tray-item i {
    color: #3E3228 !important;
}

.tray-item:hover {
    background: #DBCAB2;
}

.clock-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: var(--os-pixel);
    font-size: 0.8rem;
    line-height: 1.2;
    font-weight: 700;
    color: #2E241C;
}

/* START MENU */
#start-menu {
    position: fixed;
    bottom: 58px;
    left: 50%;
    transform: translateX(-50%) translateY(15px) scale(0.96);
    width: 540px;
    max-width: 95vw;
    height: 560px;
    max-height: 80vh;
    background: #FAF5EC;
    border: 2px solid #3E3228;
    border-radius: 8px;
    box-shadow: 6px 6px 0px #3E3228;
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#start-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.start-header {
    padding: 1.2rem 1.4rem 0.8rem;
    border-bottom: 2px solid #3E3228;
    background: #DBCAB2;
}

.start-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FAF5EC;
    border: 2px solid #3E3228;
    padding: 9px 14px;
    border-radius: 8px;
    box-shadow: 2px 2px 0px #3E3228;
}

.start-search-box i {
    color: #5C4D3E;
}

.start-search-box input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #2E241C;
    font-family: var(--os-font);
    font-size: 0.9rem;
    font-weight: 600;
}

.start-body {
    flex: 1;
    padding: 1.4rem;
    overflow-y: auto;
    background: #FAF5EC;
}

.start-section-title {
    font-family: var(--os-pixel);
    font-size: 0.85rem;
    font-weight: 700;
    color: #2E241C;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.start-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.start-app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 6px;
    border-radius: 8px;
    background: #FAF5EC;
    border: 1.5px solid #3E3228;
    box-shadow: 2px 2px 0px #3E3228;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
    text-align: center;
}

.start-app-card:hover {
    background: #BCE3C5;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #3E3228;
}

.start-app-card i {
    font-size: 1.5rem;
    color: #2E241C !important;
}

.start-app-card span {
    font-family: var(--os-pixel);
    font-size: 0.82rem;
    font-weight: 700;
    color: #2E241C;
}

.start-footer {
    padding: 0.9rem 1.4rem;
    background: #DBCAB2;
    border-top: 2px solid #3E3228;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.start-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.start-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #3E3228;
    object-fit: cover;
}

.start-user-name {
    font-family: var(--os-pixel);
    font-size: 0.9rem;
    font-weight: 700;
    color: #2E241C;
}

.start-user-role {
    font-size: 0.75rem;
    color: #5C4D3E;
    font-weight: 600;
}

.power-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 2px solid #3E3228;
    background: #E8B4A2;
    box-shadow: 2px 2px 0px #3E3228;
    color: #2E241C;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.power-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #3E3228;
}

/* -------------------------------------------------------------
   DESKTOP FLOATING DRAGGABLE WIDGETS
------------------------------------------------------------- */
@media (min-width: 769px) {
    .desktop-only {
        display: block !important;
    }

    .desktop-widget-card {
        position: absolute;
        width: 310px;
        background: #FAF5EC !important;
        border: 2px solid #3E3228 !important;
        border-radius: 8px !important;
        padding: 1rem !important;
        color: #2E241C !important;
        box-shadow: 5px 5px 0px #3E3228 !important;
        z-index: 20 !important;
        user-select: none;
    }

    .desktop-widget-card:hover {
        border-color: #3E3228 !important;
        box-shadow: 6px 6px 0px #3E3228 !important;
    }

    .desktop-widget-card.dragging {
        opacity: 0.95;
        z-index: 999 !important;
        cursor: grabbing !important;
    }

    .desktop-widget-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-family: var(--os-pixel);
        font-size: 0.95rem;
        font-weight: 700;
        margin-bottom: 10px;
        padding-bottom: 6px;
        border-bottom: 2px solid #3E3228;
        color: #2E241C;
        cursor: grab;
    }

    .desktop-widget-header i {
        color: #3E3228 !important;
    }

    .desktop-widget-drag-handle {
        font-size: 0.85rem;
        color: #5C4D3E;
        cursor: grab;
        padding: 2px 6px;
    }
}

/* -------------------------------------------------------------
   MOBILE DEVICE SPECIFIC LAYOUT & OS DOCK & APP DRAWER
------------------------------------------------------------- */
.mobile-only {
    display: none;
}

/* Hide scrollbars across mobile browsers while preserving smooth touch scrolling */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    * {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .mobile-only {
        display: flex;
    }

    /* Hide desktop taskbar, desktop icons, and desktop floating widgets on mobile */
    #taskbar,
    .desktop-icon,
    #desktop-icon-grid,
    .desktop-widget-card {
        display: none !important;
    }

    /* Mobile Home Widgets Container - 100% Full Width */
    #mobile-home-widgets {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 1rem 0.8rem 7rem 0.8rem;
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .mobile-widget-card {
        background: #FAF5EC;
        border: 2px solid #3E3228;
        border-radius: 16px;
        padding: 1.2rem;
        width: 100%;
        box-sizing: border-box;
        color: #2E241C;
        box-shadow: 4px 4px 0px #3E3228;
    }

    .mobile-widget-header {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.05rem;
        font-weight: 800;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1.5px solid #3E3228;
        color: #2E241C;
    }

    .mobile-stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mobile-stat-box {
        background: #EFE6D5;
        border: 1.5px solid #3E3228;
        border-radius: 12px;
        padding: 12px;
        text-align: center;
        box-shadow: 2px 2px 0px #3E3228;
    }

    .mobile-stat-number {
        font-size: 1.6rem;
        font-weight: 800;
        color: #3E3228;
    }

    .mobile-stat-label {
        font-size: 0.75rem;
        color: #5C4D3E;
        font-weight: 700;
        margin-top: 2px;
    }

    .mobile-exp-item, .mobile-ac-item {
        background: #EFE6D5;
        border: 1.5px solid #3E3228;
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 10px;
        color: #2E241C;
        box-shadow: 2px 2px 0px #3E3228;
    }

    .mobile-exp-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 6px;
    }

    .mobile-company-logo {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        object-fit: cover;
        border: 1.5px solid #3E3228;
    }

    .mobile-exp-title {
        font-size: 0.92rem;
        font-weight: 800;
        color: #2E241C;
    }

    .mobile-exp-company {
        font-size: 0.8rem;
        color: #5C4D3E;
        font-weight: 600;
    }

    .mobile-exp-duration {
        font-size: 0.72rem;
        color: #5C4D3E;
        font-weight: 600;
        margin-left: auto;
    }

    .mobile-exp-desc {
        font-size: 0.8rem;
        color: #3E3228;
        line-height: 1.4;
        margin-top: 6px;
    }

    .mobile-exp-impact {
        font-size: 0.78rem;
        background: #D4EDD9;
        border: 1.5px solid #4A8C5C;
        color: #2E7A72;
        font-weight: 700;
        padding: 6px 10px;
        border-radius: 8px;
        margin-top: 8px;
    }

    .mobile-lang-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #EFE6D5;
        border: 1.5px solid #3E3228;
        color: #2E241C;
        font-size: 0.78rem;
        font-weight: 700;
        padding: 6px 12px;
        border-radius: 99px;
        margin: 4px;
        box-shadow: 2px 2px 0px #3E3228;
    }

    /* Mobile Lock Screen Overlay */
    #mobile-lock-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 100000;
        background: #FAF5EC;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 4rem 1.5rem 2rem 1.5rem;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    }

    #mobile-lock-screen.unlocked {
        transform: translateY(-100vh);
        opacity: 0;
        pointer-events: none;
    }

    .mobile-lock-header {
        text-align: center;
    }

    .mobile-lock-clock {
        font-size: 4rem;
        font-weight: 800;
        letter-spacing: -2px;
        color: #2E241C;
        text-shadow: 2px 2px 0px rgba(62,50,40,0.15);
    }

    .mobile-lock-date {
        font-size: 1.1rem;
        color: #5C4D3E;
        font-weight: 700;
    }

    .mobile-notification-card {
        background: #EFE6D5;
        border: 2px solid #3E3228;
        border-radius: 16px;
        padding: 1.2rem;
        width: 100%;
        max-width: 320px;
        color: #2E241C;
        box-shadow: 4px 4px 0px #3E3228;
    }

    .mobile-swipe-bar-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        user-select: none;
    }

    .mobile-swipe-arrow {
        font-size: 1.2rem;
        color: #3E3228;
        animation: bounceUp 1.5s infinite;
    }

    .mobile-swipe-text {
        font-size: 0.85rem;
        font-weight: 700;
        color: #2E241C;
        letter-spacing: 0.5px;
    }

    .mobile-swipe-indicator {
        width: 130px;
        height: 5px;
        background: #3E3228;
        border-radius: 10px;
        margin-top: 6px;
        box-shadow: 0 2px 6px rgba(62,50,40,0.3);
    }

    /* Mobile Bottom Floating Dock */
    #mobile-dock {
        position: fixed;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 30px);
        max-width: 380px;
        height: 68px;
        background: #FAF5EC;
        border: 2.5px solid #3E3228;
        border-radius: 24px;
        z-index: 900;
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 0 10px;
        box-shadow: 4px 6px 0px #3E3228;
    }

    .mobile-dock-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        background: #EFE6D5;
        border: 1.5px solid #3E3228;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        color: #3E3228 !important;
        cursor: pointer;
        box-shadow: 2px 2px 0px #3E3228;
        transition: transform 0.2s, background 0.2s;
    }

    .mobile-dock-icon:active {
        transform: scale(0.9);
        background: #DBCAB2;
    }

    /* App Drawer Slide-up Sheet */
    .mobile-drawer-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 82vh;
        background: #FAF5EC;
        border-top: 3px solid #3E3228;
        border-radius: 24px 24px 0 0;
        z-index: 10000;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        padding: 1.2rem 1.2rem 5rem 1.2rem;
        box-shadow: 0 -8px 25px rgba(62,50,40,0.3);
    }

    .mobile-drawer-sheet.open {
        transform: translateY(0);
    }

    .mobile-drawer-handle {
        width: 44px;
        height: 6px;
        background: #3E3228;
        border-radius: 10px;
        margin: 0 auto 12px auto;
        cursor: pointer;
    }

    .mobile-drawer-title {
        font-size: 1.1rem;
        font-weight: 800;
        color: #2E241C;
        text-align: center;
    }

    .mobile-drawer-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px 12px;
        margin-top: 1.5rem;
        overflow-y: auto;
        padding-bottom: 2rem;
    }

    .mobile-app-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        text-align: center;
    }

    .mobile-app-icon-box {
        width: 58px;
        height: 58px;
        border-radius: 16px;
        background: #FAF5EC !important;
        border: 2px solid #3E3228 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: #3E3228 !important;
        box-shadow: 3px 3px 0px #3E3228 !important;
        transition: transform 0.2s;
    }

    .mobile-app-item:active .mobile-app-icon-box {
        transform: scale(0.9);
    }

    .mobile-app-label {
        font-size: 0.72rem;
        color: #2E241C;
        font-weight: 700;
        max-width: 75px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@keyframes bounceUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* =============================================================
   SYSTEM-WIDE MODERN SLEEK SCROLLBARS & VOLUME POPOVER
   ============================================================= */

/* Universal Thin Modern Webkit Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 99px;
    backdrop-filter: blur(6px);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color, #3b82f6);
}

/* Hide scrollbars completely on tab containers while preserving scroll */
.admin-nav-tabs,
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.admin-nav-tabs::-webkit-scrollbar,
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Tray Volume Popover Card */
.tray-popover-card {
    position: fixed;
    bottom: 54px;
    right: 70px;
    width: 260px;
    background: #EFE6D5;
    border: 2px solid #3E3228;
    color: #2E241C;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 6px 6px 0px rgba(62, 50, 40, 0.2);
    z-index: 99999;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tray-popover-card.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.volume-slider-input {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 99px;
    background: #3E3228;
    outline: none;
    cursor: pointer;
}

.volume-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #DBCAB2;
    border: 2px solid #3E3228;
    cursor: pointer;
    box-shadow: 2px 2px 0px #3E3228;
    transition: transform 0.15s;
}

.volume-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* PREMIUM IN-APP OS TOAST NOTIFICATION CONTAINER */
#os-toast-container {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 100005;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.os-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 14px;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    max-width: 380px;
}

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

.os-toast-success {
    border-left: 4px solid #34d399;
}

.os-toast-error {
    border-left: 4px solid #f87171;
}

.os-toast-info {
    border-left: 4px solid #38bdf8;
}

.toast-message {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
}

/* IN-APP GLASS MODAL CONFIRMATION DIALOG */
.os-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100010;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.os-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.os-modal-card {
    width: 380px;
    max-width: 92vw;
    background: #EFE6D5;
    border: 2px solid #3E3228;
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: 8px 8px 0px rgba(62,50,40,0.25);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.os-modal-overlay.open .os-modal-card {
    transform: scale(1);
}

.os-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1.5px solid rgba(62,50,40,0.25);
    padding-bottom: 8px;
}

.os-modal-body {
    font-size: 0.9rem;
    color: #5C4D3E;
    font-weight: 600;
    line-height: 1.5;
}

.os-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}
