        /* Settings Page Styles */
        .settings-hero {
            text-align: center;
            padding: 30px 0 20px;
        }

        .settings-hero h1 {
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 8px;
        }

        .settings-hero p {
            color: var(--text-muted);
        }

        /* Settings Container */
        .settings-container {
            max-width: 700px;
            margin: 0 auto;
        }

        /* Settings Section */
        .settings-section {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            margin-bottom: 20px;
            overflow: hidden;
        }

        .settings-section-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px 20px;
            border-bottom: 1px solid var(--border-color);
        }

        .settings-section-header i {
            font-size: 1.3rem;
            color: var(--accent-primary);
        }

        .settings-section-header h2 {
            font-size: 1rem;
            font-weight: 700;
            margin: 0;
        }

        .settings-section-content {
            padding: 16px 20px;
        }

        /* Settings Item */
        .settings-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .settings-item:last-child {
            border-bottom: none;
        }

        .settings-item-info {
            flex: 1;
        }

        .settings-item-label {
            font-weight: 600;
            margin-bottom: 4px;
        }

        .settings-item-description {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        /* Radio Group */
        .radio-group {
            display: flex;
            gap: 8px;
        }

        .radio-option {
            position: relative;
        }

        .radio-option input[type="radio"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }

        .radio-option label {
            display: block;
            padding: 8px 16px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            font-size: 0.85rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .radio-option input[type="radio"]:checked+label {
            background: var(--accent-primary);
            border-color: var(--accent-primary);
            color: white;
        }

        .radio-option label:hover {
            border-color: var(--accent-primary);
        }

        /* Coming Soon Badge */
        .coming-soon {
            display: inline-block;
            background: var(--bg-secondary);
            color: var(--text-muted);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        /* Toast Notification */
        .toast {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--bg-card);
            border: 1px solid var(--accent-primary);
            color: var(--text-primary);
            padding: 12px 24px;
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-lg);
            z-index: 1000;
            opacity: 0;
            transition: all 0.3s ease;
        }

        .toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        /* ===== Theme Settings Styles ===== */

        /* Preset Themes */
        .preset-themes {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 12px;
            margin-bottom: 20px;
        }

        .preset-theme-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 12px;
            background: var(--bg-secondary);
            border: 2px solid var(--border-color);
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: var(--transition);
        }

        .preset-theme-btn:hover {
            border-color: var(--accent-primary);
        }

        .preset-theme-btn.active {
            border-color: var(--accent-primary);
            background: color-mix(in srgb, var(--accent-primary) 15%, transparent);
        }

        .preset-theme-preview {
            width: 100%;
            height: 40px;
            border-radius: var(--radius-sm);
            display: flex;
            overflow: hidden;
        }

        .preset-theme-preview span {
            flex: 1;
        }

        .preset-theme-name {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        /* Color Picker Section */
        .color-picker-container {
            display: grid;
            grid-template-columns: 200px 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        .color-wheel-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .color-wheel-canvas {
            width: 180px;
            height: 180px;
            border-radius: 50%;
            cursor: crosshair;
            box-shadow: var(--shadow-md);
        }

        .color-preview-box {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .color-preview {
            width: 100%;
            height: 80px;
            border-radius: var(--radius-md);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: white;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        }

        .color-preview-hex {
            font-size: 1.5rem;
            font-weight: 700;
        }

        .color-preview-name {
            font-size: 0.85rem;
            opacity: 0.9;
        }

        .hex-input-group {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .hex-input {
            flex: 1;
            padding: 10px 14px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            color: var(--text-primary);
            font-family: monospace;
            font-size: 1rem;
        }

        .hex-input:focus {
            outline: none;
            border-color: var(--accent-primary);
        }

        .eyedropper-btn {
            padding: 10px 14px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            color: var(--text-primary);
            cursor: pointer;
            transition: var(--transition);
        }

        .eyedropper-btn:hover {
            border-color: var(--accent-primary);
            color: var(--accent-primary);
        }

        /* Color Variations */
        .color-variations {
            margin-bottom: 20px;
        }

        .color-variations h4 {
            font-size: 0.9rem;
            margin-bottom: 8px;
            color: var(--text-secondary);
        }

        .color-variation-row {
            display: flex;
            gap: 4px;
            margin-bottom: 12px;
        }

        .color-variation-item {
            flex: 1;
            height: 32px;
            border-radius: 4px;
            cursor: pointer;
            transition: transform 0.2s;
            position: relative;
        }

        .color-variation-item:hover {
            transform: scale(1.1);
            z-index: 1;
        }

        .color-variation-item:first-child {
            border-radius: 8px 4px 4px 8px;
        }

        .color-variation-item:last-child {
            border-radius: 4px 8px 8px 4px;
        }

        /* Theme Color Settings */
        .theme-color-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }

        .theme-color-item {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .theme-color-input-wrapper {
            position: relative;
            width: 48px;
            height: 48px;
        }

        .theme-color-input {
            width: 100%;
            height: 100%;
            padding: 0;
            border: 2px solid var(--border-color);
            border-radius: var(--radius-sm);
            cursor: pointer;
            -webkit-appearance: none;
            appearance: none;
        }

        .theme-color-input::-webkit-color-swatch-wrapper {
            padding: 0;
        }

        .theme-color-input::-webkit-color-swatch {
            border: none;
            border-radius: 6px;
        }

        .theme-color-input:hover {
            border-color: var(--accent-primary);
        }

        .theme-color-info {
            flex: 1;
        }

        .theme-color-label {
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 2px;
        }

        .theme-color-value {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-family: monospace;
        }

        /* Background Settings */
        .bg-upload-area {
            border: 2px dashed var(--border-color);
            border-radius: var(--radius-md);
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            margin-bottom: 16px;
        }

        .bg-upload-area:hover {
            border-color: var(--accent-primary);
            background: color-mix(in srgb, var(--accent-primary) 8%, transparent);
        }

        .bg-upload-area.has-image {
            padding: 10px;
        }

        .bg-upload-area i {
            font-size: 2rem;
            color: var(--text-muted);
            margin-bottom: 8px;
        }

        .bg-upload-area p {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .bg-preview-wrapper {
            position: relative;
            width: 100%;
            height: 120px;
            border-radius: var(--radius-sm);
            overflow: hidden;
        }

        .bg-preview-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .bg-remove-btn {
            position: absolute;
            top: 8px;
            right: 8px;
            padding: 6px 12px;
            background: rgba(0, 0, 0, 0.7);
            border: none;
            border-radius: var(--radius-sm);
            color: white;
            font-size: 0.8rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .bg-remove-btn:hover {
            background: #ef4444;
        }

        /* Slider Settings */
        .slider-group {
            margin-bottom: 16px;
        }

        .slider-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .slider-label {
            font-weight: 600;
            font-size: 0.9rem;
        }

        .slider-value {
            color: var(--text-muted);
            font-size: 0.85rem;
            font-family: monospace;
        }

        .slider-input {
            width: 100%;
            height: 8px;
            border-radius: 999px;
            background: rgba(148, 163, 184, 0.28);
            border: 1px solid var(--border-color);
            outline: none;
            -webkit-appearance: none;
            appearance: none;
            cursor: pointer;
            margin: 10px 0;
            transition: background 0.2s ease, border-color 0.2s ease;
            touch-action: pan-y;
        }

        .slider-input:hover {
            background: rgba(148, 163, 184, 0.4);
            border-color: var(--accent-primary);
        }

        .slider-input::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--accent-primary);
            border: 2.5px solid #ffffff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
            cursor: grab;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }

        .slider-input:active::-webkit-slider-thumb {
            cursor: grabbing;
            transform: scale(1.18);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
        }

        .slider-input::-moz-range-thumb {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--accent-primary);
            border: 2.5px solid #ffffff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
            cursor: grab;
            transition: transform 0.15s ease;
        }

        .slider-input:active::-moz-range-thumb {
            cursor: grabbing;
            transform: scale(1.18);
        }

        .slider-input::-moz-range-track {
            height: 8px;
            border-radius: 999px;
            background: rgba(148, 163, 184, 0.28);
            border: 1px solid var(--border-color);
        }

        /* Position Grid */
        .position-group {
            margin-bottom: 16px;
        }

        .position-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            max-width: 150px;
        }

        .position-btn {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            color: var(--text-secondary);
            cursor: pointer;
            transition: var(--transition);
        }

        .position-btn:hover {
            border-color: var(--accent-primary);
            color: var(--accent-primary);
        }

        .position-btn.active {
            background: var(--accent-primary);
            border-color: var(--accent-primary);
            color: white;
        }

        .position-btn i {
            font-size: 1.1rem;
        }

        /* Zoom Control */
        .position-group {
            display: flex;
            gap: 24px;
            flex-wrap: wrap;
        }

        .zoom-control {
            flex: 1;
            min-width: 150px;
        }

        /* Action Buttons */
        .theme-actions {
            display: flex;
            gap: 12px;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid var(--border-color);
        }

        .theme-btn {
            flex: 1;
            padding: 12px 20px;
            border: none;
            border-radius: var(--radius-sm);
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .theme-btn-primary {
            background: var(--accent-gradient);
            color: white;
        }

        .theme-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .theme-btn-secondary {
            background: var(--bg-secondary);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
        }

        .theme-btn-secondary:hover {
            border-color: var(--accent-primary);
        }

        /* Collapsible Sections */
        .theme-subsection {
            margin-bottom: 24px;
        }

        .theme-subsection-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 0;
            cursor: pointer;
            border-bottom: 1px solid var(--border-color);
        }

        .theme-subsection-title {
            font-weight: 700;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .theme-subsection-title i {
            color: var(--accent-primary);
        }

        .theme-subsection-toggle {
            transition: transform 0.3s;
        }

        .theme-subsection.collapsed .theme-subsection-toggle {
            transform: rotate(-90deg);
        }

        .theme-subsection-content {
            padding-top: 16px;
            overflow: hidden;
            transition: max-height 0.3s ease, opacity 0.3s ease;
        }

        .theme-subsection.collapsed .theme-subsection-content {
            max-height: 0;
            opacity: 0;
            padding-top: 0;
        }

        /* Custom Preset */
        .custom-preset-btn {
            position: relative;
        }

        .custom-preset-btn .preset-delete-btn {
            position: absolute;
            top: 6px;
            right: 6px;
            width: 22px;
            height: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(239, 68, 68, 0.9);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 0.7rem;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.2s;
            z-index: 2;
        }

        .custom-preset-btn:hover .preset-delete-btn {
            opacity: 1;
        }

        .preset-save-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            padding: 10px;
            background: var(--bg-secondary);
            border: 2px dashed var(--border-color);
            border-radius: var(--radius-md);
            color: var(--text-muted);
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            margin-top: 12px;
        }

        .preset-save-btn:hover {
            border-color: var(--accent-primary);
            color: var(--accent-primary);
        }

        .preset-save-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .preset-save-btn:disabled:hover {
            border-color: var(--border-color);
            color: var(--text-muted);
        }

        .custom-presets-label {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-top: 16px;
            margin-bottom: 8px;
            font-weight: 600;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .settings-hero h1 {
                font-size: 1.4rem;
            }

            .settings-hero p {
                font-size: 0.85rem;
            }

            .settings-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }

            .radio-group {
                width: 100%;
            }

            .radio-option {
                flex: 1;
            }

            .radio-option label {
                text-align: center;
                padding: 10px 8px;
            }

            .color-picker-container {
                grid-template-columns: 1fr;
            }

            .color-wheel-wrapper {
                align-items: center;
            }

            .theme-color-grid {
                grid-template-columns: 1fr;
            }

            .preset-themes {
                grid-template-columns: repeat(2, 1fr);
            }

            #background-section {
                display: none;
            }
        }