/* Specialized content styling remains, but baseline positioning moved to global style.v9.css */

/* Light Mode Override */
body.light-mode .settings-page {
    background-color: #f2f2f7;
    color: #000000;
}

/* The navigation is now handled by .about-nav class for consistency */
.settings-page .about-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    /* Match settings background but with glass effect */
    background: rgba(44, 44, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: calc(env(safe-area-inset-top, 16px) + 8px) 24px 16px;
    display: flex;
    justify-content: flex-end;
}

.settings-page .btn-close {
    display: none;
    /* Replaced by unified .btn-close-round */
}

/* CONTENT */
.settings-page .settings-content {
    padding: 12px;
    /* Reduced from 24px */
    display: flex;
    flex-direction: column;
    gap: 0;
    /* ZERO GAP */
    flex: 1;
    overflow-y: auto;
}

/* CARDS */
.settings-page .settings-section-card {
    background-color: transparent;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    margin: 0;
    padding: 0;
}

body.light-mode .settings-page .settings-section-card {
    background-color: transparent;
}

/* SECTIONS */
.settings-section {
    margin-bottom: 8px;
    /* Ultra reduced */
}

.settings-section h3 {
    font-size: 13px;
    color: #8e8e93;
    margin-bottom: 4px;
    padding-left: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-card {
    background: rgba(44, 44, 46, 0.4);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.settings-page .settings-section-title {
    padding: 12px 16px 4px 16px;
    font-size: 13px;
    text-transform: uppercase;
    color: #8e8e93;
    color: var(--text-secondary, #8e8e93);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ROWS */
.settings-page .settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 2px;
    /* Nearly zero gap */
    border: none;
}

body.light-mode .settings-page .settings-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.settings-page .settings-row:last-child {
    border-bottom: none;
    margin-bottom: 12px;
}

.settings-page .settings-row span {
    font-size: 16px;
    color: inherit;
    text-align: left;
    /* Removed flex: 1 to prevent secondary badges from stretching */
}

/* TOGGLES RE-STYLING */
.settings-page .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.settings-page .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-page .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3a3a3c;
    transition: .4s;
    border-radius: 34px;
}

.settings-page .slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* Specialized About layout - Baseline positioning moved to global style.v9.css */
#about-overlay,
#support-overlay {
    background: var(--bg-main, #121212);
}

.settings-page input:checked+.slider {
    background-color: #0a84ff;
    background-color: var(--accent, #0a84ff);
}

.settings-page input:checked+.slider:before {
    transform: translateX(22px);
}