.theme-toggle {
    position: fixed;
    bottom: 90px;
    right: 25px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,.3);
    transition: transform .3s ease, background .3s ease;
}
.theme-toggle:hover { transform: scale(1.1); }
.theme-toggle.active { transform: rotate(45deg); }

.theme-panel {
    position: fixed;
    bottom: 150px;
    right: 25px;
    z-index: 9998;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 20px;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all .35s cubic-bezier(.4,0,.2,1);
}
.theme-panel.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.theme-panel h4 {
    font-family: var(--font-outfit, Outfit, sans-serif);
    font-size: 14px;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.theme-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.theme-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .25s ease;
    position: relative;
}
.theme-swatch:hover { transform: scale(1.15); }
.theme-swatch.active { border-color: #fff; }
.theme-swatch.active::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

.theme-custom-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.theme-custom-row label {
    font-family: var(--font-outfit, Outfit, sans-serif);
    font-size: 12px;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.theme-custom-row input[type="color"] {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255,255,255,.2);
    border-radius: 50%;
    cursor: pointer;
    background: none;
    padding: 2px;
}
.theme-custom-row input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.theme-custom-row input[type="color"]::-webkit-color-swatch { border: none; border-radius: 50%; }
