/* ==========================================================================
   PARTICLE LAB - THEME & VARIABLES
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-main: #06020e;
    --bg-surface: #0c051c;
    --bg-card: rgba(22, 10, 48, 0.65);
    --bg-card-hover: rgba(32, 15, 68, 0.8);
    --bg-input: rgba(10, 4, 24, 0.75);

    /* Glassmorphism Surface Tokens */
    --glass-sidebar: rgba(14, 7, 30, 0.9);
    --glass-border: rgba(139, 92, 246, 0.22);
    --glass-border-hover: rgba(167, 139, 250, 0.45);
    --glass-border-focus: #8b5cf6;
    --glass-border-subtle: rgba(255, 255, 255, 0.08);

    /* Accents & Gradients */
    --accent-primary: #8b5cf6;
    --accent-vibrant: #7c3aed;
    --accent-deep: #6d28d9;
    --accent-dark: #4c1d95;
    --accent-light: #a78bfa;
    --accent-indigo: #6366f1;
    --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #6366f1 50%, #4f46e5 100%);
    --accent-gradient-hover: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6366f1 100%);
    --accent-gradient-subtle: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
    --purple-glow-shadow: 0 0 25px rgba(124, 58, 237, 0.45);

    /* Text & Neutral Tokens */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Typography */
    --font-heading: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

    /* Dimensions & Transitions */
    --sidebar-width: 290px;
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 6px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.18s ease;
    --transition-smooth: 0.32s var(--ease-out-expo);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.4;
    user-select: none;
}

/* Background Canvas Layer */
#tsparticles {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: auto;
}

#custom-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    display: none;
    background-color: transparent;
}

/* ==========================================================================
   LATERAL TOGGLE BUTTON (When Sidebar is Collapsed)
   ========================================================================== */

.floating-dock-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 15px 8px 9px;
    background: rgba(14, 7, 30, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(124, 58, 237, 0.25);
    transition: all var(--transition-smooth);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-40px) scale(0.9);
}

.floating-dock-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
}

.floating-dock-btn:hover {
    background: rgba(22, 10, 48, 0.95);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), var(--purple-glow-shadow);
    transform: translateY(-2px);
}

.dock-icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.5);
}

.dock-label {
    background: linear-gradient(135deg, #ffffff 40%, #a78bfa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Overlay Backdrop for Mobile */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 1, 8, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 95;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   LATERAL LEFT SIDEBAR
   ========================================================================== */

.glass-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--glass-sidebar);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border-right: 1px solid var(--glass-border);
    border-top: none;
    border-bottom: none;
    border-left: none;
    border-radius: 0;
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(109, 40, 217, 0.12);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 16px 14px;
    gap: 10px;
    transform: translateX(0);
    opacity: 1;
    transition: transform var(--transition-smooth), opacity var(--transition-smooth);
    overflow: hidden;
}

.glass-sidebar.collapsed {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Controls Container: Vertically distributed and easily scrollable */
.controls-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

.controls-container::-webkit-scrollbar {
    width: 4px;
}

.controls-container::-webkit-scrollbar-track {
    background: transparent;
}

.controls-container::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 10px;
}

.controls-container::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6);
}

/* ==========================================================================
   PANEL HEADER
   ========================================================================== */

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border-subtle);
}

.brand-group {
    display: flex;
    align-items: center;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    background: linear-gradient(135deg, #ffffff 40%, #a78bfa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
}

.brand-subtitle {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.icon-action-btn:hover {
    background: rgba(124, 58, 237, 0.25);
    border-color: var(--accent-primary);
    color: #fff;
    transform: translateY(-1px);
}

.icon-action-btn.close-btn:hover {
    background: rgba(109, 40, 217, 0.35);
    border-color: var(--accent-light);
}

/* ==========================================================================
   PRESET SELECTOR SECTION
   ========================================================================== */

.preset-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
}

.section-label i {
    color: var(--accent-primary);
    font-size: 0.78rem;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-wrapper select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 9px 28px 9px 11px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.custom-select-wrapper select:hover {
    border-color: var(--glass-border-hover);
    background: rgba(18, 8, 42, 0.85);
}

.custom-select-wrapper select:focus {
    outline: none;
    border-color: var(--glass-border-focus);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.custom-select-wrapper select option {
    background: #0f0622;
    color: #ffffff;
    padding: 8px;
}

.select-chevron {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.72rem;
    transition: color var(--transition-fast);
}

.custom-select-wrapper:hover .select-chevron {
    color: var(--accent-primary);
}

/* ==========================================================================
   PARAMETERS STACK
   ========================================================================== */

.params-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.param-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border-subtle);
    border-radius: var(--border-radius-md);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all var(--transition-fast);
}

.param-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--glass-border);
}

.param-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.param-header.no-margin {
    margin: 0;
}

.param-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.param-label i {
    color: var(--accent-primary);
    font-size: 0.82rem;
}

.param-value-badge {
    background: rgba(124, 58, 237, 0.22);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

/* Range Sliders */
.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

input[type="range"] {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--accent-vibrant), rgba(255, 255, 255, 0.08));
    border-radius: 6px;
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent-vibrant);
    box-shadow: 0 0 8px var(--accent-vibrant), 0 2px 4px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    margin-top: -4.5px;
    transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent-vibrant);
    box-shadow: 0 0 8px var(--accent-vibrant);
    cursor: pointer;
}

input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(1.25);
    background: #ffffff;
    box-shadow: 0 0 12px var(--accent-light), 0 0 4px #ffffff;
}

/* Color Picker Card */
.color-picker-wrapper {
    position: relative;
    width: 100%;
}

.color-preview-pill {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 26px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    overflow: hidden;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.color-preview-pill:hover {
    transform: translateY(-1px);
    border-color: #ffffff;
}

.color-preview-pill input[type="color"] {
    position: absolute;
    inset: -10px;
    width: 200%;
    height: 200%;
    opacity: 0;
    cursor: pointer;
}

.color-pick-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   SPECIFIC PRESET CONTROLS
   ========================================================================== */

.specific-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.specific-card {
    border-left: 3px solid var(--accent-primary);
}

.mini-select select {
    padding: 7px 26px 7px 9px;
    font-size: 0.88rem;
}

.custom-input-text {
    width: 100%;
    padding: 7px 9px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    outline: none;
    margin-top: 5px;
    transition: border-color var(--transition-fast);
}

.custom-input-text:focus {
    border-color: var(--accent-primary);
}

/* ==========================================================================
   PRO EFFECTS & TOGGLES LIST
   ========================================================================== */

.effects-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border-subtle);
    border-radius: var(--border-radius-md);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.effects-toggles-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 4, 24, 0.5);
    border: 1px solid var(--glass-border-subtle);
    border-radius: var(--border-radius-sm);
    padding: 6px 9px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-row:hover {
    background: rgba(22, 10, 48, 0.7);
    border-color: var(--glass-border);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.toggle-label i {
    color: var(--accent-primary);
    font-size: 0.8rem;
}

/* Switch Toggle Component */
.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 16px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider.round {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.slider.round:before {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: all var(--transition-fast);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

input:checked + .slider.round {
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

input:checked + .slider.round:before {
    transform: translateX(14px);
    background-color: #ffffff;
}

/* ==========================================================================
   PANEL FOOTER & LINKS
   ========================================================================== */

.panel-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--glass-border-subtle);
    margin-top: auto;
}

.btn-primary-glow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--border-radius-md);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.45);
    transition: all var(--transition-fast);
}

.btn-primary-glow.full-width {
    width: 100%;
}

.btn-primary-glow:hover {
    background: var(--accent-gradient-hover);
    box-shadow: 0 6px 22px rgba(139, 92, 246, 0.6);
    transform: translateY(-1.5px);
}

.btn-primary-glow:active {
    transform: translateY(0);
}

.btn-kofi-glass {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-kofi-glass.full-width {
    width: 100%;
}

.btn-kofi-glass:hover {
    background: rgba(124, 58, 237, 0.32);
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
    transform: translateY(-1.5px);
}

.btn-kofi-glass:active {
    transform: translateY(0);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.76rem;
    color: var(--text-dim);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

.dot-separator {
    color: var(--text-dim);
    font-size: 0.65rem;
}

/* ==========================================================================
   EXPORT MODAL (DEEP VIOLET)
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 1, 8, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity var(--transition-smooth);
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-dialog {
    background: rgba(14, 7, 30, 0.94);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 660px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(109, 40, 217, 0.2);
    overflow: hidden;
    transform: scale(1);
    transition: transform var(--transition-smooth);
}

.modal-overlay.hidden .modal-dialog {
    transform: scale(0.95);
}

.modal-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border-subtle);
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--accent-gradient-subtle);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 0.95rem;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.modal-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 1px;
}

.close-modal-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

/* Export Tabs */
.export-tabs-nav {
    display: flex;
    background: rgba(8, 3, 18, 0.7);
    padding: 4px 16px 0;
    border-bottom: 1px solid var(--glass-border-subtle);
    gap: 4px;
}

.export-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.export-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.modal-body {
    padding: 12px 16px;
    flex: 1;
    overflow: hidden;
}

.code-container {
    height: 280px;
    background: #06020c;
    border: 1px solid var(--glass-border-subtle);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
}

#export-code {
    width: 100%;
    height: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: #c4b5fd;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    overflow-y: auto;
}

.modal-footer {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--glass-border-subtle);
    background: rgba(8, 3, 18, 0.5);
}

.modal-footer-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: #34d399;
}

.modal-footer-btns {
    display: flex;
    gap: 8px;
}

.btn-secondary-glass {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary-glass:hover {
    background: rgba(124, 58, 237, 0.18);
    border-color: var(--accent-primary);
    color: #ffffff;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.hidden {
    display: none !important;
}

.font-mono {
    font-family: var(--font-mono);
}

/* ==========================================================================
   RESPONSIVE DESIGN (DESKTOP & MOBILE)
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --sidebar-width: 275px;
    }

    .glass-sidebar {
        top: 0;
        bottom: 0;
        left: 0;
        width: min(85vw, 290px);
        height: 100vh;
        border-radius: 0;
        border-right: 1px solid var(--glass-border);
        transform: translateX(0);
        padding: 14px 12px;
    }

    .glass-sidebar.collapsed {
        transform: translateX(-100%);
    }

    .floating-dock-btn {
        top: 16px;
        left: 16px;
    }

    .modal-dialog {
        max-height: 90vh;
    }

    .modal-footer {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .modal-footer-btns {
        flex-direction: column;
    }
}