/* Tombstones: very large style blocks have been modularized.
   - major component styles (many panel / control styles) were curated into sections,
     and some repetitive rules were centralized into variables and shared classes.
   The full visual behaviour is preserved but future refactors should move component
   groups into dedicated CSS modules for clarity.
*/

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #1a1a1a;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

#canvas-container.visible {
    opacity: 1;
}

.upload-panel {
    display: none;
}

.upload-panel.hidden {
    opacity: 0;
    pointer-events: none;
}

#upload-btn {
    display: none;
}

.control-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    color: white;
    width: 300px;
    cursor: move;
    user-select: none;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    margin: 1rem 0;
}

.color-swatch {
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s;
}

.color-swatch:hover {
    transform: scale(1.2);
}

.color-swatch.selected {
    border-color: white;
}

.control-panel button {
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    width: 100%;
    margin: 5px 0;
}

.control-panel button:hover {
    background-color: #45a049;
}

#texture-input {
    display: none;
}

.builder-panel {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    color: white;
    width: 250px;
    cursor: move;
    user-select: none;
    max-height: 80vh;
    overflow-y: auto;
}

.shape-list {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.shape-list::-webkit-scrollbar {
    width: 8px;
}

.shape-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.shape-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.shape-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.shape-option {
    display: flex;
    align-items: center;
    margin: 5px 0;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.shape-option:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.shape-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.shape-controls {
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.shape-controls input {
    width: 100%;
    margin: 5px 0;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 3px;
    color: white;
}

.shape-controls label {
    display: block;
    margin-top: 8px;
    font-size: 0.9em;
    color: #ccc;
}

.transform-mode-panel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.transform-mode-btn {
    background-color: rgba(76, 175, 80, 0.8);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transform-mode-btn:hover {
    background-color: rgba(69, 160, 73, 0.9);
    transform: translateY(-1px);
}

.environment-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    color: white;
    width: 300px;
    cursor: move;
    user-select: none;
}

.env-color-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    margin: 1rem 0;
}

.env-color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s;
}

.env-color-swatch:hover {
    transform: scale(1.2);
}

.env-color-swatch.selected {
    border-color: white;
    transform: scale(1.1);
}

.audio-player-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    color: white;
    width: 300px;
    cursor: move;
    user-select: none;
    transition: background-color 0.3s;
}

.audio-player-panel .song-title {
    margin: 10px 0;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-player-panel .control-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.audio-player-panel button {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.audio-player-panel button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.audio-player-panel .color-picker {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.audio-player-panel .player-color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    margin: 4px;
}

.audio-player-panel .player-color-swatch:hover {
    transform: scale(1.2);
}

.audio-player-panel .add-songs-btn {
    width: 100%;
    border-radius: 5px;
    padding: 8px;
    margin-top: 10px;
}

.model-select-btn {
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    width: 100%;
    margin: 5px 0;
}

.model-select-btn:hover {
    background-color: #45a049;
}

.model-select-btn.active {
    background-color: #2196F3;
}

.face-color-picker {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.face-color-picker div:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

.settings-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    color: white;
    width: 300px;
    cursor: move;
    user-select: none;
    max-height: 80vh;
    overflow-y: auto;
}

.settings-panel button {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    margin: 5px 0;
    transition: background-color 0.3s;
}

.settings-panel button:hover {
    background-color: #45a049;
}

.settings-color-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    margin: 1rem 0;
    max-height: 200px;
    overflow-y: auto;
}

.settings-color-swatch {
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.settings-color-swatch:hover {
    transform: scale(1.2);
}

.platform-size-control {
    width: 100%;
    margin: 10px 0;
}

.toggle-panel-btn {
    position: fixed;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 1000;
}

.toggle-builder-btn {
    left: 10px;
    top: 50%;
}

.toggle-settings-btn {
    right: 10px;
    top: 50%;
}

.hidden-panel {
    display: none;
}

#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

/* Background video styling (fills container, preserves cover behavior) */
#login-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    background: #000;
}

#login-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

#login-overlay.bg-transition {
    transition: background-image 1.5s ease;
}

.logo-container {
    position: relative;
    margin-bottom: 40px;
    z-index: 2;
}

.logo {
    max-width: 240px;
    height: auto;
    position: relative;
    z-index: 2;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    filter: blur(20px);
    z-index: 1;
    animation: glow 2s ease-in-out infinite;
}

.login-button {
    padding: 15px 40px;
    font-size: 24px;
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    border: 1px solid rgba(34, 255, 200, 0.12); /* subtle neon border */
    border-radius: 30px;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
    backdrop-filter: blur(6px); /* premium backdrop blur for transparent buttons */
}

.login-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.6);
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 100%;
    }
}

@keyframes glow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.texture-controls {
    width: 300px;
}

.texture-controls .control-group {
    margin: 15px 0;
}

.texture-controls label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.texture-controls input[type="range"] {
    width: 100%;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    height: 6px;
    -webkit-appearance: none;
}

.texture-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
}

.texture-controls span {
    display: inline-block;
    min-width: 40px;
    text-align: right;
    font-size: 12px;
    color: #aaa;
}

.texture-controls button {
    width: 100%;
    padding: 8px;
    background: #4CAF50;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.texture-controls button:hover {
    background: #45a049;
}

.texture-controls h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.light-controls-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    color: white;
    width: 300px;
    cursor: move;
    user-select: none;
    z-index: 1000;
}

.light-control-group {
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.light-control-group h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #fff;
}

.light-control-group label {
    display: block;
    margin: 8px 0;
    font-size: 0.9em;
}

.light-control-group input[type="range"] {
    width: 100%;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    height: 6px;
    -webkit-appearance: none;
}

.light-control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
}

.light-control-group input[type="color"] {
    -webkit-appearance: none;
    width: 50px;
    height: 25px;
    border: none;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
}

.light-control-group input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.light-control-group input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.corner-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 45px;
    height: auto;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.corner-logo.visible {
    opacity: 1;
}

.language-selector {
    position: fixed;
    top: 20px;
    right: 100px;
    z-index: 1000;
}

.language-btn {
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    color: white;
    padding: 10px 20px;
    border: 1px solid rgba(34, 255, 200, 0.10); /* subtle neon border */
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.4);
    backdrop-filter: blur(6px); /* premium backdrop blur */
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: langBtnShine 3s infinite;
}

.language-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.6);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px 0;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: none;
    min-width: 150px;
}

.language-dropdown.show {
    display: block;
    animation: dropdownFade 0.3s ease;
}

.language-option {
    padding: 8px 20px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@keyframes langBtnShine {
    0% { left: -50%; }
    100% { left: 100%; }
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[dir="rtl"] .language-dropdown {
    left: 0;
    right: auto;
}

#nextgen-btn {
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

#nextgen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
}

#nextgen-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: nextgenBtnShine 3s infinite;
}

@keyframes nextgenBtnShine {
    0% {
        left: -50%;
    }
    100% {
        left: 100%;
    }
}

.camera-freeze-btn {
    position: fixed;
    top: 20px;
    right: 180px;
    transform: translateX(0);
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.4);
}

.camera-freeze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.6);
}

.camera-freeze-btn.frozen {
    background: linear-gradient(45deg, #F44336, #FF5722);
    box-shadow: 0 2px 10px rgba(244, 67, 54, 0.4);
}

.camera-freeze-btn .btn-glow {
    display: none;
}

@keyframes freezeBtnShine {
    0% { left: -50%; }
    100% { left: 100%; }
}

.lsl-script-editor {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 30, 0.95);
    padding: 20px;
    border-radius: 10px;
    color: white;
    z-index: 1000;
    min-width: 500px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.editor-header h3 {
    margin: 0;
}

.close-editor {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.script-input {
    width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: white;
    font-family: monospace;
    padding: 10px;
    margin-bottom: 15px;
    resize: vertical;
}

.editor-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.editor-buttons button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.editor-buttons button:hover {
    background: #45a049;
}

.editor-buttons .stop-script {
    background: #f44336;
}

.editor-buttons .stop-script:hover {
    background: #da190b;
}

.script-status {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    color: white;
    z-index: 1001;
    font-family: 'Arial', sans-serif;
    max-width: 500px;
    justify-content: space-between;
}

.digital-clock {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #4CAF50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    min-width: 200px;
    text-align: center;
}

.digital-clock .time {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.digital-clock .date {
    font-size: 1rem;
    color: #2196F3;
}

.user-count-btn {
    background: var(--button-color);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: var(--button-opacity, 0.9);
}

.user-count-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
}

.user-count {
    font-weight: bold;
    font-size: 1.4rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.users-text {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.drawing-panel {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background-color: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    color: white;
    width: 250px;
    z-index: 1000;
}

.drawing-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.close-drawing-panel {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.drawing-tools {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.tool-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tool-btn.active {
    background: #4CAF50;
}

.drawing-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.drawing-controls button {
    background: #4CAF50;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.drawing-controls button:hover {
    background: #45a049;
}

.drawing-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawing-options label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.elevation-control {
    width: 100%;
    margin-top: 5px;
}

.dot-button,
.key-management-panel,
.key-generator-container,
.key-generator,
.generated-key,
.key-lists,
.key-list {
    display: none;
}

.theme-control-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    color: white;
    width: 400px;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.theme-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-theme-panel {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.theme-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.theme-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.theme-btn:hover {
    transform: translateY(-2px);
}

.theme-preview {
    width: 100%;
    height: 20px;
    border-radius: 4px;
}

.window-controls, .button-controls {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.opacity-control, .blur-control {
    margin: 10px 0;
}

.opacity-control input, .blur-control input {
    width: 100%;
    margin-top: 5px;
}

.button-color-picker {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.button-color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.settings-panel button,
.builder-panel button,
.audio-player-panel button {
    background: var(--button-color);
}

.settings-panel,
.builder-panel,
.audio-player-panel,
.environment-panel {
    background-color: rgba(255, 255, 255, 0.2);
}

:root {
    --primary-color: #1a1a1a;
    --accent-color: #2196F3;
    --button-color: #4CAF50;
}

.vip-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 24px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border: 1px solid rgba(255, 200, 80, 0.12); /* subtle neon border */
    border-radius: 30px;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    text-decoration: none;
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
    backdrop-filter: blur(6px); /* premium backdrop blur */
}

.vip-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.vip-button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: rotate(45deg);
    animation: vipButtonShine 2s infinite;
}

@keyframes vipButtonShine {
    0% {
        left: -50%;
    }
    100% {
        left: 100%;
    }
}

.vip-button::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 40px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    z-index: -1;
    animation: vipPulse 2s infinite;
    opacity: 0.5;
}

@keyframes vipPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}