        /* CORE LAYOUT */
        #settings-interface {
            width: 420px;
            max-width: 100%;
            padding: 0 0 20px 0;
            display: flex;
            flex-direction: column;
            gap: var(--settings-gap, 20px);
            max-height: 80vh;
            overflow-y: auto;
            overscroll-behavior: contain;
            scrollbar-width: thin;
        }

        #settings-interface::-webkit-scrollbar {
            width: 6px;
        }

        #settings-interface::-webkit-scrollbar-track {
            background: transparent;
        }

        #settings-interface::-webkit-scrollbar-thumb {
            background-color: var(--scrollbar-thumb);
            border-radius: 10px;
        }

        @media (max-width: 998px) {
            #settings-interface {
                width: min(calc(100vw - 20px), 420px);
                padding: 0 0 20px 0;
                max-height: 75vh;
            }
        }

        /* HEADER */
        .settings-header {
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--text-color);
            border-bottom: 2px solid var(--popup-border);
            position: sticky;
            top: 0;
            z-index: 50;
            background-color: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            padding: 15px var(--settings-px, 20px) 10px var(--settings-px, 20px);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }

        body.dark-mode .settings-header {
            background-color: rgba(15, 23, 42, 0.85);
        }

        /* GROUP & ITEM */
        .settings-group {
            background: transparent;
            border-radius: 0;
            padding: 0;
            border: none;
            margin: 0;
        }

        .settings-group:last-child {
            margin-bottom: 0;
        }

        .settings-group-title {
            font-size: 0.75rem;
            text-transform: uppercase;
            color: var(--text-muted);
            font-weight: 800;
            margin-bottom: 12px;
            padding: 0 var(--settings-px, 20px);
            letter-spacing: 0.5px;
            opacity: 0.8;
        }

        .setting-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--settings-gap, 20px);
            padding: 0 var(--settings-px, 20px);
        }

        .setting-item:last-child {
            margin-bottom: 0;
        }

        .setting-info {
            display: flex;
            flex-direction: column;
        }

        .setting-label {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-color);
            display: flex;
            align-items: center;
            gap: 10px;
            line-height: 1.4;
        }

        .setting-subtext {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-top: 4px;
            margin-left: 30px;
            font-weight: 400;
        }

        /* THEME SWITCH */
        .switch-theme {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 30px;
        }

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

        .slider-theme {
            background-color: #2185d6;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            cursor: pointer;
            border-radius: 34px;
            transition: all 0.4s ease;
        }

        .slider-theme::before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            border-radius: 50%;
            left: 2px;
            bottom: 2px;
            background-color: #28096b;
            transition: all 0.4s ease;
            box-shadow: inset 20px -3px 0px 15px #fdf906;
        }

        .switch-theme input:checked+.slider-theme {
            background-color: #28096b !important;
        }

        .switch-theme input:checked+.slider-theme::before {
            transform: translateX(20px);
            box-shadow: inset 7px -3px 0 0 #fff;
        }

        /* NEON SWITCH 3 STATE (GIỐNG CLIENT) */
        .neon-switch-3state {
            position: relative;
            display: inline-flex;
            width: 150px;
            height: 38px;
            background: rgba(127, 127, 127, 0.1);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid var(--popup-border);
            cursor: pointer;
        }

        .neon-state-option {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--text-muted);
            z-index: 2;
            transition: color 0.3s;
        }

        .neon-slider-bg {
            position: absolute;
            top: 2px;
            bottom: 2px;
            width: calc(33.333% - 4px);
            background: #fff;
            border-radius: 6px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            transition: left 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
            z-index: 1;
        }

        body.dark-mode .neon-slider-bg {
            background: #334155;
        }

        /* State Positions */
        .neon-switch-3state[data-state="0"] .neon-slider-bg {
            left: 2px;
        }

        .neon-switch-3state[data-state="1"] .neon-slider-bg {
            left: calc(33.333% + 2px);
        }

        .neon-switch-3state[data-state="2"] .neon-slider-bg {
            left: calc(66.666% + 2px);
        }

        .neon-switch-3state[data-state="0"] .opt-0 {
            color: var(--text-color);
        }

        .neon-switch-3state[data-state="1"] .opt-1 {
            color: #0ea5e9;
        }

        .neon-switch-3state[data-state="2"] .opt-2 {
            color: #22c55e;
        }

        /* OTHER CONTROLS */
        .menu-switch-2state {
            position: relative;
            display: inline-flex;
            width: 150px;
            height: 38px;
            background: rgba(127, 127, 127, 0.1);
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid var(--popup-border);
            cursor: pointer;
        }

        .menu-state-option {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--text-muted);
            z-index: 2;
            transition: color 0.3s;
        }

        .menu-slider-bg {
            position: absolute;
            top: 2px;
            bottom: 2px;
            width: 48%;
            background: var(--bg-body);
            border-radius: 6px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            transition: left 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
            z-index: 1;
        }

        .menu-switch-2state[data-state="list"] .menu-slider-bg {
            left: 2px;
        }

        .menu-switch-2state[data-state="grid"] .menu-slider-bg {
            left: 50%;
        }

        .menu-switch-2state[data-state="list"] .opt-list {
            color: #0ea5e9;
        }

        .menu-switch-2state[data-state="grid"] .opt-grid {
            color: #0ea5e9;
        }

        .btn-view-toggle {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            border: 1px solid var(--popup-border);
            background: var(--bg-body);
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: all 0.2s;
            cursor: pointer;
        }

        .btn-view-toggle:hover {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
            transform: scale(1.05);
        }

        .btn-reset-menu {
            border: 1px solid rgba(239, 68, 68, 0.3);
            background: rgba(239, 68, 68, 0.05);
            color: #ef4444;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .btn-reset-menu:hover {
            background: #ef4444;
            color: #fff;
        }

        .toggle-switch-lite {
            display: inline-block;
            position: relative;
            width: 50px;
            height: 30px;
        }

        .toggle-input-lite {
            display: none;
        }

        .toggle-label-lite {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #e9e9eb;
            border-radius: 34px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .toggle-label-lite:before {
            content: "";
            position: absolute;
            top: 2px;
            left: 2px;
            width: 26px;
            height: 26px;
            background-color: #fff;
            border-radius: 50%;
            transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .toggle-input-lite:checked+.toggle-label-lite {
            background-color: #34C759;
        }

        .toggle-input-lite:checked+.toggle-label-lite:before {
            transform: translateX(20px);
        }

        body.dark-mode .toggle-label-lite {
            background-color: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        /* SHINE SWEEP EFFECT */
        .btn-shine-sweep {
            position: relative;
            overflow: hidden;
            border: none;
        }

        .btn-shine-sweep::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            animation: shineSweep 2.5s infinite linear;
        }

        @keyframes shineSweep {
            0% {
                left: -100%;
            }

            20% {
                left: 200%;
            }

            100% {
                left: 200%;
            }
        }

        /* Đồng bộ chiều cao nút đăng nhập/đăng xuất với nút gạt Theme (34px) */
        .auth-btn-match {
            height: 34px !important;
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
        }