.settings-main {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1.5rem 4rem;
}

.settings-main h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.settings-section {
    background: var(--primary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.settings-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 1rem;
}

[data-theme="dark"] .settings-section-title {
    color: #9ca3af;
}

.theme-options {
    display: flex;
    gap: 1rem;
}

.theme-option {
    flex: 1;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    padding: 1.2rem 1rem;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg-color);
    user-select: none;
}

.theme-option:hover {
    border-color: var(--accent-color);
}

.theme-option.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.theme-option-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.theme-option-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.theme-option-sub {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.2rem;
}

[data-theme="dark"] .theme-option-sub {
    color: #9ca3af;
}

.theme-preview-light {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    background: #e6edf5;
    border: 1px solid #E5E7EB;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.theme-preview-dark {
    width: 100%;
    height: 40px;
    border-radius: 6px;
    background: #0f111a;
    border: 1px solid #2d3148;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.preview-dot-light { background: #1e40af; }
.preview-dot-dark  { background: #3b82f6; }

.settings-section-desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1rem;
    margin-top: -0.5rem;
}

[data-theme="dark"] .settings-section-desc {
    color: #9ca3af;
}

.language-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.language-btn {
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    background: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    white-space: nowrap;
}

.language-btn:hover {
    border-color: var(--accent-color);
}

.language-btn.active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

@media (max-width: 480px) {
    .theme-options {
        flex-direction: column;
    }
}
