/* ========================================
   Daily Hub - Liquid Glass Design System
   ======================================== */
/* Imports handled in HTML for cache busting */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.1);
    --bg-glass-active: rgba(255, 255, 255, 0.15);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glass-hover: rgba(255, 255, 255, 0.2);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);

    --accent: #007AFF;
    --accent-hover: #0a84ff;
    --accent-glow: rgba(0, 122, 255, 0.3);

    --success: #30d158;
    --warning: #ff9f0a;
    --danger: #ff453a;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px var(--accent-glow);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Blur */
    --blur-sm: 10px;
    --blur-md: 20px;
    --blur-lg: 40px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* General UI Transitions for smooth size/state changes */
button,
.btn,
.icon-btn,
.dock-item,
.tag-btn,
.note-item,
.folder-accordion,
.sticky-note,
.todo-item,
.quick-link,
.pomo-tab,
.pomo-btn,
.modal-submit,
.toolbar-btn {
    transition: all var(--transition-fast);
}

/* Smooth height/size transitions for containers */
.panel-content,
.notes-sidebar,
.note-editor,
.sticky-notes-container,
.todo-list,
.quick-links-grid {
    transition: height 0.3s ease-out, max-height 0.3s ease-out;
}

/* Scale animations on hover for interactive elements */
.note-item:hover,
.sticky-note:hover,
.quick-link:hover {
    transform: translateY(-2px);
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Slide up animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide down animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Background Animation - Galaxy Theme */
.background-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 100%, #1b0029 0%, #0d001a 50%, #000000 100%);
}

.stars-1,
.stars-2,
.stars-3 {
    position: absolute;
    inset: 0;
    background-repeat: repeat;
    pointer-events: none;
}

/* Small Stars */
.stars-1 {
    background-image:
        radial-gradient(1px 1px at 25px 5px, white, transparent),
        radial-gradient(1px 1px at 50px 25px, white, transparent),
        radial-gradient(1px 1px at 125px 20px, white, transparent),
        radial-gradient(1.5px 1.5px at 250px 15px, white, transparent);
    background-size: 350px 350px;
    opacity: 0.6;
    animation: galaxy-move 120s linear infinite;
}

/* Medium Stars */
.stars-2 {
    background-image:
        radial-gradient(2px 2px at 100px 150px, white, transparent),
        radial-gradient(2px 2px at 200px 50px, #a8dfff, transparent),
        radial-gradient(2px 2px at 300px 200px, white, transparent);
    background-size: 450px 450px;
    opacity: 0.4;
    animation: galaxy-move 180s linear infinite reverse;
}

/* Large Glowing Stars */
.stars-3 {
    background-image:
        radial-gradient(3px 3px at 50px 100px, #fff, transparent),
        radial-gradient(3px 3px at 150px 250px, #ffd1ff, transparent);
    background-size: 550px 550px;
    opacity: 0.8;
    /* Increased base opacity */
    /* Soft glow */
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 6px rgba(255, 209, 255, 0.3));
    animation: galaxy-twinkle 3s ease-in-out infinite alternate;
}

/* Extra Dense Milky Way Stars */
.stars-4 {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10px 10px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 30px 40px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 60px 20px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 80px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 130px 10px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 160px 60px, rgba(255, 255, 255, 0.6), transparent);
    background-size: 200px 200px;
    opacity: 0.3;
    animation: galaxy-move 150s linear infinite;
}

/* The Moon */
/* Noise Texture Overlay */

.background-animation {
    background: radial-gradient(circle at 50% 120%, #1a0b2e 0%, #000000 70%);
}

/* Galaxy Band (The Milky Way) */
.background-animation::before {
    content: '';
    position: absolute;
    inset: -50%;
    background:
        conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(76, 29, 149, 0.1) 120deg, transparent 180deg),
        conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(49, 46, 129, 0.1) 120deg, transparent 180deg);
    filter: blur(80px);
    /* Smoother, less grainy */
    transform: rotate(-45deg);
    opacity: 0.6;
    animation: galaxy-rotate 200s linear infinite;
}

/* Secondary Gas Clouds */
.background-animation::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
    filter: blur(60px);
    mix-blend-mode: screen;
    animation: nebula-pulse 10s ease-in-out infinite alternate;
}

@keyframes galaxy-rotate {
    0% {
        transform: rotate(-45deg);
    }

    100% {
        transform: rotate(315deg);
    }
}

@keyframes nebula-pulse {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    100% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* The Moon - Refined */
.moon {
    position: absolute;
    top: 50px;
    right: 80px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: -12px 8px 0 0 #e0e0ff;
    /* Muted cool white */
    transform: rotate(-15deg);
    filter: drop-shadow(0 0 30px rgba(200, 200, 255, 0.3));
    /* Softer, cooler glow */
    opacity: 0.8;
    mix-blend-mode: screen;
    /* Blends nicely with stars */
    z-index: -1;
    animation: moon-float 60s ease-in-out infinite alternate;
}

/* Shooting Stars */
.shooting-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shooting-stars::before,
.shooting-stars::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 1);
    animation: shooting 3s linear infinite;
    opacity: 0;
}

.shooting-stars::after {
    top: 30%;
    left: 40%;
    animation-delay: 2s;
    animation-duration: 4s;
}

@keyframes shooting {
    0% {
        transform: rotate(315deg) translateX(0);
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        transform: rotate(315deg) translateX(-1000px);
        opacity: 0;
    }
}

@keyframes moon-float {
    0% {
        transform: rotate(-15deg) translate(0, 0);
    }

    100% {
        transform: rotate(-10deg) translate(-20px, 10px);
    }
}

/* Old nebula styles removed */


@keyframes galaxy-move {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-350px);
    }
}

@keyframes galaxy-twinkle {
    0% {
        opacity: 0.3;
        transform: scale(0.9);
    }

    100% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes nebula-drift {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    100% {
        transform: translate(40px, 30px) rotate(10deg) scale(1.1);
    }
}

@keyframes twinkle {

    /* Kept for legacy compatibility if needed */
    0% {
        opacity: 0.1;
        transform: translateY(0);
    }

    100% {
        opacity: 0.25;
        transform: translateY(-5px);
    }
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* Glass Effect */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
}

.glass-light {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(var(--blur-sm));
    -webkit-backdrop-filter: blur(var(--blur-sm));
    border: 1px solid var(--border-glass);
}

/* Brand Logo */
.brand-logo {
    position: fixed;
    top: var(--space-lg);
    left: var(--space-lg);
    z-index: 1000;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Navigation Dock */
.dock {
    position: fixed;
    top: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.dock-container {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-xl);
}

.dock-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    /* Restored layout size */
    height: 48px;
    /* Restored layout size */
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    isolation: isolate;
    /* Create stacking context for pseudo-elements */
}

/* Use pseudo-element for the background to keep it smaller than the layout box */
.dock-item::before {
    content: '';
    position: absolute;
    inset: 4px;
    /* Creates the 40px visual size (48 - 8) */
    background: transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    z-index: -1;
    /* Behind icon */
}

.dock-item:hover {
    color: var(--text-primary);
    transform: translateY(-4px) scale(1.1);
}

/* Apply background to pseudo-element instead */
.dock-item:hover::before {
    background: var(--bg-glass-hover);
}

.dock-item.active {
    color: var(--accent);
}

.dock-item.active::before {
    background: var(--bg-glass-active);
}

.dock-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    /* Perfectly centered (4px gap above, 4px gap below) */
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 4px var(--accent-glow);
}

.dock-item i,
.dock-item svg {
    width: 24px;
    height: 24px;
}

/* Dock Drag and Drop */
/* Dock Drag and Drop */
.dock-item.dragging {
    opacity: 0;
    /* Hide original, show ghost instead */
}

/* Ghost element that follows cursor */
.dock-ghost {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s cubic-bezier(0.2, 0, 0.2, 1);
    background: var(--bg-glass-active);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-glass);
}

.dock-ghost i,
.dock-ghost svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.dock-item {
    cursor: grab;
}

.dock-item:active {
    cursor: grabbing;
}

/* Force grabbing cursor everywhere while dragging */
body.dock-dragging * {
    cursor: grabbing !important;
}

.dock-separator {
    width: 1px;
    height: 32px;
    background: var(--border-glass);
    margin: 0 var(--space-xs);
}

/* Dock Reset Button */
.dock-reset {
    width: 40px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dock-reset:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.dock-reset:active {
    transform: scale(0.95);
}

.dock-reset i,
.dock-reset svg {
    width: 20px;
    height: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dock-reset:active i,
.dock-reset:active svg {
    transform: rotate(-360deg);
    transition: transform 0s;
    /* Reset instantly for next click */
}

/* Spin animation class for clicked state - handled by JS if needed, but CSS active works for hold */

/* Main Content */
.main-content {
    padding-top: 120px;
    padding-bottom: var(--space-2xl);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Tool Panels */
.tool-panel {
    display: none;
    width: 100%;
    max-width: 800px;
    margin: 0 var(--space-lg);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
}

.tool-panel.active {
    display: block;
    animation: panelFadeIn 0.3s ease-out;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-panel.wide {
    max-width: 1000px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-glass);
}

.panel-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Icon Button */
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-glass);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.icon-btn i,
.icon-btn svg {
    width: 18px;
    height: 18px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    /* FIX: Must be higher than #notepad-panel (99999) */
    z-index: 100000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    animation: fadeIn var(--transition-fast);
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 420px;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    animation: slideUp var(--transition-normal);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-xs);
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-input {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: var(--space-md);
    transition: border-color var(--transition-fast);
}

.modal-input:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-input::placeholder {
    color: var(--text-muted);
}

.modal-submit {
    width: 100%;
    padding: var(--space-md);
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-submit:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-glow);
}

/* Confirm Modal - Liquid Glass Style */
.confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 107, 0.15);
    border-radius: 50%;
    padding: var(--space-md);
}

.confirm-icon i,
.confirm-icon svg {
    width: 32px;
    height: 32px;
    color: #ff6b6b;
}

.confirm-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.confirm-buttons .modal-submit {
    width: auto;
    min-width: 100px;
    padding: var(--space-sm) var(--space-lg);
}

.modal-submit.danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
}

.modal-submit.danger:hover {
    background: linear-gradient(135deg, #ff5555, #dd4444);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
}

.modal-submit.secondary {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.modal-submit.secondary:hover {
    background: var(--bg-glass-hover);
    box-shadow: none;
}

/* Folder Modal */
.folder-icon-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.2), rgba(88, 86, 214, 0.2));
    border: 2px solid var(--accent);
    border-radius: var(--radius-xl);
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.3);
}

.folder-icon-preview i,
.folder-icon-preview svg {
    width: 40px;
    height: 40px;
    color: var(--accent);
}

/* Confirm Modal */
.confirm-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 69, 58, 0.15);
    border-radius: 50%;
}

.confirm-icon i,
.confirm-icon svg {
    width: 30px;
    height: 30px;
    color: var(--danger);
}

.confirm-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.confirm-buttons .modal-submit {
    flex: 1;
    max-width: 140px;
}

.modal-submit.danger {
    background: var(--danger);
}

.modal-submit.danger:hover {
    background: #ff6b6b;
}

.modal-submit.secondary {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
}

.modal-submit.secondary:hover {
    background: var(--bg-glass-hover);
}

/* Smooth Scrolling - DISABLED for programmatic scroll compatibility */
/* * { scroll-behavior: smooth; } */

/* Hide all scrollbars but keep scroll functionality */
* {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Selection */
::selection {
    background: var(--accent);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .dock-container {
        padding: var(--space-xs) var(--space-sm);
        gap: var(--space-xs);
    }

    .dock-item {
        width: 40px;
        height: 40px;
    }

    .dock-item i,
    .dock-item svg {
        width: 20px;
        height: 20px;
    }

    .tool-panel {
        margin: 0 var(--space-md);
        padding: var(--space-lg);
    }
}

@media (max-width: 768px) {

    /* KILL HORIZONTAL SCROLL */
    html,
    body {
        overflow-x: hidden !important;
        width: 100vw !important;
        position: relative;
    }

    .dock {
        /* FIXED FLOATING PILL PRESET */
        position: fixed !important;
        top: auto;
        bottom: 20px !important;
        /* Float above bottom */
        left: 50% !important;
        transform: translateX(-50%) translateZ(0) !important;
        /* Centered & GPU */

        width: fit-content !important;
        /* SHRINK TO FIT ICONS */
        min-width: 280px !important;
        max-width: 95% !important;
        height: auto;

        border-radius: 50px;
        /* Fully Rounded Pill */
        border: 1px solid rgba(255, 255, 255, 0.12);

        padding: 10px 20px;

        /* ULTRA GLASS STYLE */
        background: rgba(15, 15, 20, 0.5) !important;
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);

        z-index: 99999;
    }

    .dock-container {
        justify-content: space-between;
        /* Spread items nicely */
        overflow-x: auto;
        padding: 0 4px;
        gap: 2px;
        width: 100%;
        mask-image: none;
    }

    .dock-item {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        border-radius: 12px !important;
        background: transparent !important;
        /* Clean look */
        border: 1px solid transparent !important;
        transition: all 0.2s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }

    .dock-item.active {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        transform: translateY(-4px) !important;
    }

    /* Dot Indicator */
    .dock-item.active::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 8px var(--accent);
    }

    .dock-item.active i,
    .dock-item.active svg {
        color: var(--accent) !important;
        filter: drop-shadow(0 0 8px var(--accent-glow)) !important;
        transform: scale(1.1);
    }

    /* HIDE LABELS ON MOBILE */
    .dock-item span:not(.tooltip) {
        display: none !important;
    }

    .dock-item i,
    .dock-item svg {
        width: 22px;
        height: 22px;
    }

    .main-content {
        padding-top: 90px !important;
        /* TIGHTER GAP */
        padding-bottom: 120px !important;
        /* Space for Floating Dock */
        overflow-x: hidden !important;
    }

    /* AGGRESSIVE GLOBAL SCALING */
    html {
        font-size: 11px;
    }

    .brand-logo {
        position: fixed;
        padding: 8px 20px;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: fit-content;
        z-index: 99990;

        background: rgba(15, 15, 20, 0.5);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .brand-text {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
    }
}

/* ========================================
   Profile Popup Styles
   ======================================== */
#profile-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#profile-popup.visible {
    opacity: 1;
    visibility: visible;
}

.profile-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.profile-popup-content {
    position: relative;
    background: rgba(30, 30, 40, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

#profile-popup.visible .profile-popup-content {
    transform: scale(1) translateY(0);
}

.profile-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.profile-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.profile-popup-close i,
.profile-popup-close svg {
    width: 16px;
    height: 16px;
}

.profile-header {
    text-align: center;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.profile-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
}

.profile-email {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.profile-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s ease;
}

.profile-stat:hover {
    background: rgba(255, 255, 255, 0.08);
}

.profile-stat.full-width {
    grid-column: 1 / -1;
}

.profile-stat i,
.profile-stat svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary, #667eea);
    flex-shrink: 0;
}

.profile-stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.profile-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-logout-btn {
    width: 100%;
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    color: #ff6b6b;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.profile-logout-btn:hover {
    background: rgba(255, 107, 107, 0.25);
    border-color: rgba(255, 107, 107, 0.5);
}

.profile-logout-btn i,
.profile-logout-btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   Profile Page Styles
   ======================================== */
.profile-page-container {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.profile-page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    margin-bottom: 24px;
}

.profile-page-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.profile-page-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-page-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-page-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.profile-page-email {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.profile-page-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
    margin-top: 4px;
}

.profile-page-status.online {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.profile-page-status.offline {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.profile-page-status i,
.profile-page-status svg {
    width: 12px;
    height: 12px;
}

.profile-page-section {
    margin-bottom: 24px;
}

.profile-page-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.profile-page-section-title i,
.profile-page-section-title svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.profile-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.profile-stat-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
}

.profile-stat-card.wide {
    grid-column: span 2;
}

.profile-stat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    flex-shrink: 0;
}

.profile-stat-icon i,
.profile-stat-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent-primary);
}

.profile-stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-stat-number .stat-divider {
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0 2px;
}

.profile-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.profile-action-btn i,
.profile-action-btn svg {
    width: 18px;
    height: 18px;
}

.profile-action-btn.primary {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.profile-action-btn.primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.profile-action-btn.danger {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

.profile-action-btn.danger:hover {
    background: rgba(255, 107, 107, 0.25);
    border-color: rgba(255, 107, 107, 0.5);
}

/* Responsive */
@media (max-width: 480px) {
    .profile-page-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-page-status {
        margin: 8px auto 0;
    }

    .profile-stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-stat-card.wide {
        grid-column: span 1;
    }
}