/* ============================================================
   Interior Design Studio Pro — Modelixir Theme
   Dark / Light mode with purple accent (#c084fc)
   Font: Inter (matches Modelixir main site)
   ALL functional selectors preserved — only cosmetic values changed
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ══ ROOT — DARK MODE (default) ══════════════════════════════ */
:root {
    /* Layout (unchanged) */
    --sidebar-width: 350px;
    --sidebar-collapsed: 0px;
    --properties-width: 250px;
    --properties-collapsed: 0px;
    --transition-speed: 0.3s;

    /* Modelixir accent — purple (matches interior.html --acc) */
    --primary-color:  #c084fc;
    --primary-dark:   #a855f7;
    --primary-glow:   rgba(192, 132, 252, 0.25);
    --secondary-color:#7c3aed;

    /* Dark palette */
    --bg:             #0d0d0d;
    --bg2:            #111111;
    --bg3:            #1a1a1a;
    --bg4:            #1e1e2e;
    --surface:        rgba(255,255,255,0.04);
    --surface-hover:  rgba(255,255,255,0.07);
    --border:         rgba(255,255,255,0.09);
    --border-strong:  rgba(255,255,255,0.15);
    --text-primary:   #f0f0f0;
    --text-secondary: rgba(255,255,255,0.55);
    --text-muted:     rgba(255,255,255,0.30);
    --scrollbar-track: rgba(0,0,0,0.3);
    --scrollbar-thumb: rgba(192,132,252,0.4);
    --scrollbar-hover: rgba(192,132,252,0.7);
    --toolbar-bg:     rgba(13,13,13,0.95);
    --sidebar-bg:     #111118;
    --sidebar-header-bg: linear-gradient(135deg, #1a0533 0%, #0f0520 100%);
    --header-border:  rgba(192,132,252,0.35);
    --canvas-bg:      #0a0a12;
    --statusbar-bg:   rgba(13,13,13,0.95);
    --context-bg:     #1a1a2e;
    --context-hover:  rgba(192,132,252,0.12);
    --section-bar:    rgba(192,132,252,1);
    --indicator-bg:   rgba(192,132,252,0.9);
    --loading-overlay:rgba(0,0,0,0.85);
    --tool-btn-bg:    rgba(255,255,255,0.04);
    --tool-btn-border:rgba(255,255,255,0.09);
    --tool-btn-hover: rgba(192,132,252,0.12);
    --tool-btn-active-bg: var(--primary-color);
    --submenu-back-bg:rgba(255,255,255,0.06);
    --submenu-back-border:rgba(255,255,255,0.12);
    --submenu-cat-color:rgba(255,255,255,0.40);
    --radial-btn-bg:  #1a1a2e;
    --radial-btn-border:#c084fc;
    --prop-label:     rgba(255,255,255,0.50);
    --input-bg:       rgba(255,255,255,0.06);
    --input-border:   rgba(255,255,255,0.12);
    --input-focus:    var(--primary-color);
}

/* ══ LIGHT MODE ═════════════════════════════════════════════ */
[data-theme="light"] {
    --bg:             #f4f4f8;
    --bg2:            #ffffff;
    --bg3:            #ede9f6;
    --bg4:            #f0ebfc;
    --surface:        rgba(0,0,0,0.03);
    --surface-hover:  rgba(192,132,252,0.08);
    --border:         rgba(0,0,0,0.09);
    --border-strong:  rgba(0,0,0,0.15);
    --text-primary:   #1a1a2e;
    --text-secondary: rgba(0,0,0,0.55);
    --text-muted:     rgba(0,0,0,0.35);
    --scrollbar-track: rgba(0,0,0,0.06);
    --scrollbar-thumb: rgba(168,85,247,0.4);
    --scrollbar-hover: rgba(168,85,247,0.7);
    --toolbar-bg:     #ffffff;
    --sidebar-bg:     #ffffff;
    --sidebar-header-bg: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    --header-border:  rgba(124,58,237,0.4);
    --canvas-bg:      #e8e4f4;
    --statusbar-bg:   #ffffff;
    --context-bg:     #ffffff;
    --context-hover:  rgba(192,132,252,0.10);
    --section-bar:    var(--primary-dark);
    --indicator-bg:   rgba(124,58,237,0.9);
    --loading-overlay:rgba(255,255,255,0.88);
    --tool-btn-bg:    #ffffff;
    --tool-btn-border:rgba(0,0,0,0.10);
    --tool-btn-hover: rgba(192,132,252,0.10);
    --tool-btn-active-bg: var(--primary-dark);
    --submenu-back-bg:#f4f0fc;
    --submenu-back-border:rgba(0,0,0,0.10);
    --submenu-cat-color:rgba(0,0,0,0.45);
    --radial-btn-bg:  #ffffff;
    --radial-btn-border:#a855f7;
    --prop-label:     rgba(0,0,0,0.55);
    --input-bg:       #ffffff;
    --input-border:   rgba(0,0,0,0.15);
    --input-focus:    var(--primary-dark);
}

/* ══ BASE ════════════════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-primary);
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#app-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ══ THEME TOGGLE BUTTON ═════════════════════════════════════ */
#theme-toggle-btn {
    position: fixed;
    top: 62px;
    right: 60px;
    z-index: 600;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--bg3);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

#theme-toggle-btn:hover {
    background: var(--primary-glow);
    border-color: var(--primary-color);
    transform: scale(1.08);
}

/* ══ SIDEBAR ═════════════════════════════════════════════════ */
#sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-speed) ease;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 100;
    max-height: 100vh;
    scroll-behavior: smooth;
}

#sidebar.collapsed {
    width: 0px;
    min-width: 0;
    box-shadow: none;
    overflow: hidden;
}

/* Sidebar scrollbar */
#sidebar::-webkit-scrollbar { width: 2px; }
#sidebar::-webkit-scrollbar-track { background: var(--scrollbar-track); }
#sidebar::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
#sidebar::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }
#sidebar { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); }

/* ══ SIDEBAR TOGGLE ══════════════════════════════════════════ */
.sidebar-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: white;
    z-index: 101;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px var(--primary-glow);
    transition: all var(--transition-speed) ease;
}

.sidebar-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 20px var(--primary-glow);
}

#sidebar:not(.collapsed) ~ #main-area { margin-left: 0; }

#sidebar:not(.collapsed) .sidebar-toggle {
    left: calc(var(--sidebar-width) - 55px);
}

/* ══ SIDEBAR HEADER ══════════════════════════════════════════ */
.sidebar-header {
    padding: 20px 15px 15px;
    border-bottom: 1px solid var(--header-border);
    margin-bottom: 0;
    background: var(--sidebar-header-bg);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header h1 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.sidebar-header h1::before {
    content: '✦ ';
    color: var(--primary-color);
    font-size: 10px;
}

.sidebar-header p {
    font-size: 11px;
    opacity: 0.75;
    white-space: nowrap;
    font-weight: 400;
}

/* ══ ACCORDION SECTIONS ══════════════════════════════════════ */
.tool-section {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.section-header {
    font-size: 13px;
    font-weight: 600;
    padding: 13px 15px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, color 0.2s;
    letter-spacing: -0.01em;
}

.section-header:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.tool-section.active .section-header {
    color: var(--primary-color);
}

.collapse-icon {
    margin-right: 10px;
    transition: transform var(--transition-speed);
    font-size: 10px;
    opacity: 0.6;
}

.tool-section:not(.active) .collapse-icon { transform: rotate(0deg); }
.tool-section.active .collapse-icon { transform: rotate(0deg); }

/* Accent bar on section header */
.section-header::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--section-bar);
    margin-right: 9px;
    border-radius: 2px;
    opacity: 0.7;
    flex-shrink: 0;
}

.tool-section.active .section-header::before {
    opacity: 1;
    box-shadow: 0 0 6px var(--primary-glow);
}

/* Section content */
.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out;
    padding: 0 15px;
}

.tool-section.active .section-content {
    max-height: 40vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 15px 15px;
    transition: max-height var(--transition-speed) ease-in;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

.tool-section.active .section-content::-webkit-scrollbar { width: 4px; }
.tool-section.active .section-content::-webkit-scrollbar-track { background: transparent; border-radius: 4px; }
.tool-section.active .section-content::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
.tool-section.active .section-content::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }

/* ══ TOOL GRID & BUTTONS ═════════════════════════════════════ */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--tool-btn-border);
    background: var(--tool-btn-bg);
    text-align: center;
    color: var(--text-secondary);
    font-size: 11px;
}

.tool-btn:hover {
    background: var(--tool-btn-hover);
    border-color: rgba(192, 132, 252, 0.4);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.tool-btn.active {
    background: var(--tool-btn-active-bg);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px var(--primary-glow);
}

.tool-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.tool-btn div:last-child {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
}

/* ══ INLINE FURNITURE / PLATFORM SUBMENUS ════════════════════ */
#inline-furniture-submenu,
#inline-platform-submenu {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
}

#inline-furniture-submenu::-webkit-scrollbar,
#inline-platform-submenu::-webkit-scrollbar { width: 3px; }

#inline-furniture-submenu::-webkit-scrollbar-track,
#inline-platform-submenu::-webkit-scrollbar-track { background: transparent; border-radius: 10px; }

#inline-furniture-submenu::-webkit-scrollbar-thumb,
#inline-platform-submenu::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 10px; }

#inline-furniture-submenu::-webkit-scrollbar-thumb:hover,
#inline-platform-submenu::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }

.submenu-back { margin-bottom: 10px; }

.submenu-back button {
    width: 100%;
    padding: 9px 10px;
    background: var(--submenu-back-bg);
    border: 1px solid var(--submenu-back-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.2s;
}

.submenu-back button:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 10px var(--primary-glow);
}

.submenu-category-header {
    font-size: 10px;
    font-weight: 700;
    color: var(--submenu-cat-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 15px 0 8px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border);
}

.submenu-category-header:first-child { margin-top: 0; }

.submenu-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

#submenu-items-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

#platform-submenu-items-container { display: block; }

#submenu-items-container .tool-btn,
.platform-item {
    background: linear-gradient(135deg, rgba(192,132,252,0.05) 0%, rgba(124,58,237,0.05) 100%);
}

#submenu-items-container .tool-btn:hover,
.platform-item:hover {
    background: linear-gradient(135deg, rgba(192,132,252,0.12) 0%, rgba(124,58,237,0.12) 100%);
    border-color: var(--primary-color);
}

/* ══ COLOR PICKER ════════════════════════════════════════════ */
.color-picker-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.color-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.color-option:hover { transform: scale(1.1); }

.color-option.selected,
.color-option.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

/* ══ SLIDERS ══════════════════════════════════════════════════ */
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    outline: none;
    margin: 6px 0;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 4px var(--primary-glow);
}

/* ══ COLLAPSED SIDEBAR ═══════════════════════════════════════ */
#sidebar.collapsed .sidebar-header,
#sidebar.collapsed .tool-section { display: none; }

/* ══ MAIN AREA ═══════════════════════════════════════════════ */
#main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ══ TOOLBAR ══════════════════════════════════════════════════ */
#toolbar {
    display: flex;
    padding: 10px 15px 10px 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: var(--toolbar-bg);
    border-bottom: 1px solid var(--border);
    gap: 6px;
    transition: padding-left var(--transition-speed) ease;
    backdrop-filter: blur(10px);
}

#sidebar:not(.collapsed) ~ #main-area #toolbar { padding-left: 60px; }

.toolbar-btn {
    padding: 7px 12px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
}

.toolbar-btn:hover {
    background: var(--surface-hover);
    border-color: rgba(192,132,252,0.35);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.toolbar-btn.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px var(--primary-glow);
}

.toolbar-btn.primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--primary-glow);
}

/* ══ THEME TOGGLE BUTTON ══════════════════════════════════════ */
.modelixir-theme-btn {
    border-color: rgba(192,132,252,0.45) !important;
    color: #c084fc !important;
    background: rgba(192,132,252,0.10) !important;
    font-weight: 600 !important;
}

.modelixir-theme-btn:hover {
    background: rgba(192,132,252,0.22) !important;
    border-color: #c084fc !important;
    color: #e2b8ff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 12px rgba(192,132,252,0.3) !important;
}

[data-theme="light"] .modelixir-theme-btn {
    border-color: rgba(124,58,237,0.4) !important;
    color: #7c3aed !important;
    background: rgba(124,58,237,0.08) !important;
}

/* ══ CANVAS ═══════════════════════════════════════════════════ */
#canvas-container {
    flex: 1;
    position: relative;
    background: var(--canvas-bg);
    overflow: hidden;
}

#renderCanvas {
    width: 100%;
    height: 100%;
    display: block;
    background: var(--canvas-bg);
    cursor: crosshair;
}

/* ══ STATUS BAR ═══════════════════════════════════════════════ */
#status-bar {
    display: flex;
    padding: 7px 15px;
    background: var(--statusbar-bg);
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.status-item { margin-right: 20px; }
.status-item strong { color: var(--primary-color); font-weight: 600; }

/* ══ PROPERTIES PANEL ═════════════════════════════════════════ */
#properties-panel {
    width: var(--properties-width);
    background: var(--sidebar-bg);
    border-left: 1px solid var(--border);
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-speed) ease;
    overflow: hidden;
    position: relative;
}

#properties-panel.collapsed {
    width: var(--properties-collapsed);
    box-shadow: none;
}

.properties-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: white;
    z-index: 101;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px var(--primary-glow);
    transition: all var(--transition-speed) ease;
}

.properties-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

#properties-panel:not(.collapsed) .properties-toggle {
    right: calc(var(--properties-width) - 55px);
}

.properties-header {
    padding: 14px 15px;
    font-weight: 700;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    white-space: nowrap;
    letter-spacing: -0.01em;
    background: var(--sidebar-header-bg);
}

.properties-header::before {
    content: '◈ ';
    color: var(--primary-color);
    font-size: 12px;
}

#properties-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    color: var(--text-secondary);
}

#properties-panel.collapsed .properties-header,
#properties-panel.collapsed #properties-content { display: none; }

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

.property-group h4 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.property-control { margin-bottom: 12px; }

.property-control label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--prop-label);
}

.property-control input[type="text"],
.property-control input[type="number"],
.property-control select {
    width: 100%;
    padding: 6px 9px;
    border: 1px solid var(--input-border);
    border-radius: 5px;
    font-size: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.property-control input[type="text"]:focus,
.property-control input[type="number"]:focus,
.property-control select:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.property-control input[type="color"] {
    width: 100%;
    height: 30px;
    border: 1px solid var(--input-border);
    border-radius: 5px;
    background: var(--input-bg);
    cursor: pointer;
}

.dimension-controls { display: flex; gap: 8px; }
.dimension-controls input { flex: 1; }

/* ══ CONTEXT MENU ═════════════════════════════════════════════ */
.context-menu {
    position: absolute;
    background: var(--context-bg);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    padding: 5px 0;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(12px);
}

.context-menu.active { display: block; }

.context-menu-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
}

.context-menu-item:hover {
    background: var(--context-hover);
    color: var(--primary-color);
}

/* ══ LOADING ══════════════════════════════════════════════════ */
.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--loading-overlay);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    color: var(--text-primary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(192, 132, 252, 0.2);
    border-left: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ══ INDICATORS ═══════════════════════════════════════════════ */
#drag-indicator,
#platform-indicator,
#wall-placement-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--indicator-bg);
    color: white;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
}

#platform-indicator {
    background: rgba(245, 158, 11, 0.92);
    top: 45px;
}

#wall-placement-indicator {
    background: rgba(16, 185, 129, 0.92);
    top: 80px;
}

/* ══ RADIAL MENU ══════════════════════════════════════════════ */
.radial-menu {
    position: fixed;
    display: none;
    z-index: 2000;
    pointer-events: none;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
}

.radial-menu.active {
    display: flex;
    pointer-events: all;
    justify-content: center;
    align-items: center;
}

.radial-menu button {
    position: absolute;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--radial-btn-bg);
    border: 2px solid var(--radial-btn-border);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    pointer-events: all;
    color: var(--text-primary);
}

.radial-menu button:hover {
    transform: scale(1.15);
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.radial-menu::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--bg);
    box-shadow: 0 0 8px var(--primary-glow);
}

.radial-menu button:nth-child(1) { transform: rotate(0deg) translate(80px) rotate(0deg); }
.radial-menu button:nth-child(2) { transform: rotate(45deg) translate(80px) rotate(-45deg); }
.radial-menu button:nth-child(3) { transform: rotate(90deg) translate(80px) rotate(-90deg); }
.radial-menu button:nth-child(4) { transform: rotate(135deg) translate(80px) rotate(-135deg); }
.radial-menu button:nth-child(5) { transform: rotate(180deg) translate(80px) rotate(-180deg); }
.radial-menu button:nth-child(6) { transform: rotate(225deg) translate(80px) rotate(-225deg); }
.radial-menu button:nth-child(7) { transform: rotate(270deg) translate(80px) rotate(-270deg); }
.radial-menu button:nth-child(8) { transform: rotate(315deg) translate(80px) rotate(-315deg); }

/* ══ GLOBAL SCROLLBAR ════════════════════════════════════════ */
::-webkit-scrollbar { width: 1px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }
