/* ========================================
   SETTINGS PAGE STYLING — LUXURY LIGHT THEME
   Safari Vents Palette
   Canvas #f4efe6 · Card #ffffff · Border #e8e2d8
   Obsidian #18181b · Copper #b86d26 · Muted #6b7280
   ======================================== */

.st {
    width: 100%;
    padding: 1.5rem clamp(1.25rem, 2.5vw, 2.5rem);
    background: #f4efe6;
    min-height: 100vh;
    box-sizing: border-box;
}

/* ── Header ── */
.st-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.st-header-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #18181b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}
.st-header-title i {
    color: #b86d26;
}
.st-header-sub {
    font-size: 0.88rem;
    color: #6b7280;
    margin: 0.35rem 0 0;
}

/* ── Layout ── */
.st-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: flex-start;
}

/* ── Sidebar Navigation ── */
.st-nav {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e2d8;
    overflow: hidden;
    position: sticky;
    top: 80px;
}
.st-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.95rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    border-left: 3px solid transparent;
}
.st-nav-item:hover {
    background: #faf7f2;
    color: #18181b;
}
.st-nav-item.active {
    background: rgba(184, 109, 38, 0.08);
    color: #b86d26;
    font-weight: 700;
    border-left-color: #b86d26;
}
.st-nav-item i {
    font-size: 1.05rem;
    width: 22px;
    text-align: center;
}
.st-nav-divider {
    height: 1px;
    background: #e8e2d8;
    margin: 0.25rem 0;
}

/* ── Content Area ── */
.st-content {
    min-width: 0;
}

/* ── Section Card ── */
.st-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid #e8e2d8;
}
.st-card-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #e8e2d8;
    background: #faf7f2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.st-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #18181b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.st-card-title i {
    color: #b86d26;
    font-size: 1.1rem;
}
.st-card-desc {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0;
}
.st-card-body {
    padding: 1.75rem;
}

/* ── Form Fields ── */
.st-field {
    margin-bottom: 1.25rem;
}
.st-field:last-child {
    margin-bottom: 0;
}
.st-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #18181b;
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}
.st-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #e8e2d8;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #18181b;
    background: #ffffff;
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
}
.st-input:focus {
    border-color: #b86d26;
    box-shadow: 0 0 0 3px rgba(184, 109, 38, 0.12);
}
.st-input:disabled {
    background: #faf7f2;
    color: #9ca3af;
}
.st-select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #e8e2d8;
    border-radius: 10px;
    font-size: 0.88rem;
    color: #18181b;
    background: #ffffff;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
}
.st-select:focus {
    border-color: #b86d26;
    box-shadow: 0 0 0 3px rgba(184, 109, 38, 0.12);
}
.st-hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.35rem;
}

/* ── Toggle Row ── */
.st-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #f0ebe1;
}
.st-toggle-row:last-child {
    border-bottom: none;
}
.st-toggle-left {
    flex: 1;
}
.st-toggle-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #18181b;
}
.st-toggle-desc {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

/* ── Toggle Switch ── */
.st-switch {
    position: relative;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.st-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.st-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d5cfc6;
    border-radius: 26px;
    transition: 0.3s;
}
.st-switch-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    bottom: 3px;
    left: 3px;
    transition: 0.3s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.st-switch input:checked + .st-switch-slider {
    background: #b86d26;
}
.st-switch input:checked + .st-switch-slider::before {
    transform: translateX(20px);
}

/* ── Buttons ── */
.st-btn {
    padding: 0.65rem 1.35rem;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: none;
    text-decoration: none;
}
.st-btn-primary {
    background: #b86d26;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(184, 109, 38, 0.3);
}
.st-btn-primary:hover {
    background: #a25c1a;
    box-shadow: 0 6px 18px rgba(184, 109, 38, 0.4);
    transform: translateY(-1px);
    color: #ffffff;
}
.st-btn-outline {
    background: #ffffff;
    color: #4b5563;
    border: 1px solid #e8e2d8;
}
.st-btn-outline:hover {
    background: #faf7f2;
    color: #18181b;
    border-color: #b86d26;
}
.st-btn-danger {
    background: #ffffff;
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.25);
}
.st-btn-danger:hover {
    background: rgba(220, 38, 38, 0.05);
    border-color: #dc2626;
}
.st-btn-gold {
    background: #b86d26;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(184, 109, 38, 0.3);
}
.st-btn-gold:hover {
    background: #a25c1a;
    box-shadow: 0 6px 18px rgba(184, 109, 38, 0.4);
    transform: translateY(-1px);
}

/* ── Footer ── */
.st-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8e2d8;
    margin-top: 1.25rem;
}

/* ── Danger Zone ── */
.st-danger-zone {
    border: 1px solid rgba(220, 38, 38, 0.25);
    background: rgba(220, 38, 38, 0.03);
    border-radius: 14px;
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.st-danger-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #dc2626;
}
.st-danger-desc {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

/* ── Success / Error Messages ── */
.st-msg {
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}
.st-msg-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #059669;
}
.st-msg-error {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .st { padding: 1.25rem; }
    .st-layout { grid-template-columns: 220px 1fr; gap: 1.25rem; }
}
@media (max-width: 768px) {
    .st { padding: 1rem; }
    .st-layout {
        grid-template-columns: 1fr;
    }
    .st-nav {
        position: static;
        display: flex;
        overflow-x: auto;
        gap: 0;
        border-radius: 14px;
    }
    .st-nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 0.75rem 1.15rem;
    }
    .st-nav-item.active {
        border-bottom-color: #b86d26;
        border-left-color: transparent;
    }
    .st-nav-divider { display: none; }
}

/* ── Loading ── */
.st-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 1rem;
}
.st-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(184, 109, 38, 0.15);
    border-top-color: #b86d26;
    border-radius: 50%;
    animation: st-spin 0.7s linear infinite;
}
@keyframes st-spin {
    to { transform: rotate(360deg); }
}
