

.settingsPage {
    background:
        radial-gradient(1100px 600px at 80% -10%, rgba(29, 185, 84, 0.12), transparent 55%),
        var(--bg-primary);
}


.switchPageWrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 14px 70px;

    display: flex;
    align-items: flex-start;
    gap: 16px;
}


.switchHeader {
    width: 260px;
    position: sticky;
    top: 86px;
   
    align-self: flex-start;
}


.switchBar {
    display: flex;
    flex-direction: column;
    gap: 10px;

    padding: 12px;
    border-radius: 18px;

    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(12px);
    
    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.40);
}


.switchBtn {
    width: 100%;
    text-align: left;

    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.20);
    color: rgba(255, 255, 255, 0.75);

    font-weight: 850;
    border-radius: 14px;
    padding: 12px 12px;

    cursor: pointer;
    position: relative;
    overflow: hidden;

    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.switchBtn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(240px 80px at 0% 50%, rgba(29, 185, 84, 0.16), transparent 55%);
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
}

.switchBtn:hover {
    transform: translateY(-1px);
    border-color: rgba(29, 185, 84, 0.22);
}

.switchBtn:hover::before {
    opacity: 1;
}

.switchBtn.active {
    background: rgba(29, 185, 84, 0.14);
    border-color: rgba(29, 185, 84, 0.35);
    color: var(--accent);
}


.mainSection {
    flex: 1;
    min-width: 0;
}


.switchPanel {
    display: none;

    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);

    background: linear-gradient(180deg, rgba(24, 24, 24, 0.62), rgba(10, 10, 10, 0.40));
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.02);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.switchPanel.active {
    display: block;
    animation: panelIn 180ms ease;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.switchPanel h2 {
    margin: 0 0 12px;
    font-family: Montserrat, sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.muted {
    margin: 0;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.7;
}


.settingsCard {
    display: grid;
    gap: 12px;
}


.toggleRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 12px 12px;
    border-radius: 14px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);

    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.toggleRow:hover {
    transform: translateY(-1px);
    border-color: rgba(29, 185, 84, 0.18);
    background: rgba(0, 0, 0, 0.22);
}

.toggleRow span {
    font-weight: 800;
    color: rgba(255, 255, 255, 0.82);
}


.settingsForm {
    display: grid;
    gap: 10px;
}

.settingsInput {
    width: 100%;
    border-radius: 14px;
    padding: 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.22);
    color: var(--text-primary);
    outline: none;

    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.settingsInput:focus {
    background: rgba(0, 0, 0, 0.26);
    border-color: rgba(29, 185, 84, 0.55);
    box-shadow: 0 0 0 4px rgba(29, 185, 84, 0.14);
}


.settingsBtn {
    height: 44px;
    border: none;
    border-radius: 14px;
    cursor: pointer;

    font-weight: 900;
    letter-spacing: 0.3px;
    color: #0b0b0b;

    background: linear-gradient(135deg, var(--accent) 0%, #1ed760 100%);
    box-shadow:
        0 10px 28px rgba(29, 185, 84, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.30);

    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.settingsBtn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 14px 34px rgba(29, 185, 84, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
    filter: saturate(1.05);
}

.settingsBtn:active {
    transform: translateY(0px) scale(0.99);
}


@media (max-width: 820px) {
    .switchPageWrap {
        flex-direction: column;
        gap: 12px;
    }

    .switchHeader {
        width: 100%;
        position: static;
    }

    .switchBar {
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        padding: 10px;
    }

    .switchBtn {
        white-space: nowrap;
        min-width: max-content;
    }
}