:root {
    /* Dark (default) - original blue-purple background */
    --bg-1: #0a0a0f;
    --bg-2: #1b2030;
    --bg-3: #0a0a0f;
    --bg-4: #201a30;
    --glow-color: rgba(80, 100, 180, 0.15);
    --text-color: #ffffff;
}

html[data-theme="light"] {
    --bg-1: #6b6b6b;
    --bg-2: #575757;
    --bg-3: #6b6b6b;
    --bg-4: #4a4a52;
    --glow-color: rgba(90, 90, 90, 0.15);
    --light-text-color: #1a1a1a;
}

html[data-theme="purple"] {
    --bg-1: #0a000f;
    --bg-2: #1b0a2e;
    --bg-3: #0a000f;
    --bg-4: #2a0a3a;
    --glow-color: rgba(160, 80, 220, 0.15);
    --text-color: #c060ff;
}

html[data-theme="green"] {
    --bg-1: #000500;
    --bg-2: #0a2a10;
    --bg-3: #000500;
    --bg-4: #103c1a;
    --glow-color: rgba(60, 255, 130, 0.18);
    --text-color: #30ff80;
}

html[data-theme="blue"] {
    --bg-1: #000208;
    --bg-2: #0a1b2e;
    --bg-3: #000208;
    --bg-4: #10283c;
    --glow-color: rgba(70, 140, 255, 0.18);
    --text-color: #4090ff;
}

}

/* --- toggle + plus icon, now bottom right --- */
.theme-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
}
.mode-toggle {
    width: 50px;
    height: 26px;
    background: #333;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
}
.mode-toggle .knob {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: left 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
[data-theme="light"] .mode-toggle .knob {
    left: 27px;
}
.plus-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
}
.scheme-dropdown {
    position: fixed;
    bottom: 55px;
    right: 20px;
    background: rgba(20, 20, 20, 0.9);
    border-radius: 8px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 1000;
}
.scheme-dropdown.open {
    display: flex;
}
.scheme-option {
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
}
.scheme-option:hover {
    background: rgba(255, 255, 255, 0.1);
}