/* Settings Styles */

.settings-container {
    width: 100%;
    max-width: 100%;
}

.settings-section {
    margin-bottom: 2vw;
}

.settings-section-title {
    font-size: 1vw;
    font-weight: 600;
    color: var(--text-primary, #0a0a0f);
    margin-bottom: 0.8vw;
    transition: color 0.2s ease;
}

.settings-input-group {
    display: flex;
    gap: 1vw;
    align-items: center;
}

.settings-input {
    padding: 0.5vw 0.8vw;
    font-size: 0.8vw;
    background-color: rgba(255, 255, 255, 0.6);
    border: 0.08vw solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5vw;
    color: var(--text-primary, #0a0a0f);
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.settings-input:focus {
    border-color: #8b5cf6;
    background-color: rgba(139, 92, 246, 0.03);
}

.settings-input-readonly {
    flex: 0 0 65%;
    cursor: not-allowed;
    color: rgba(0, 0, 0, 0.7);
}

.settings-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.settings-input-password {
    flex: 1;
}

.settings-password-row {
    display: flex;
    gap: 1vw;
    align-items: center;
    margin-bottom: 1vw;
}

.settings-password-row .settings-input-password {
    flex: 0 0 calc(50% - 0.5vw);
    max-width: calc(50% - 0.5vw);
    width: calc(50% - 0.5vw);
    min-width: 0;
}

.settings-password-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1vw;
}

.settings-btn {
    padding: 0.5vw 1vw;
    font-size: 0.75vw;
    font-weight: 600;
    background-color: rgba(139, 92, 246, 0.1);
    border: 0.08vw solid rgba(139, 92, 246, 0.2);
    border-radius: 0.5vw;
    color: #8b5cf6;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5vw;
    justify-content: center;
}

.settings-btn:hover {
    background-color: rgba(139, 92, 246, 0.15);
    transform: translateY(-0.1vw);
}

.settings-btn:active {
    transform: translateY(0);
}

.settings-btn-secondary {
    flex: 1;
}

.settings-btn-primary {
    padding: 0.7vw 1.2vw;
    font-size: 0.8vw;
    margin-top: 1vw;
    width: 100%;
}

.settings-btn-link {
    background-color: transparent;
    border: none;
    color: #8b5cf6;
    cursor: pointer;
    font-size: 0.75vw;
    font-weight: 600;
    text-align: left;
    padding: 0;
    transition: text-decoration 0.2s ease;
    font-family: inherit;
}

.settings-btn-link:hover {
    text-decoration: underline;
}

.settings-gender-group {
    display: flex;
    gap: 0.8vw;
}

.settings-gender-btn {
    flex: 1;
    padding: 0.7vw 1.2vw;
    font-size: 0.8vw;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.6);
    border: 0.08vw solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5vw;
    color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5vw;
}

.settings-gender-btn.active {
    background-color: rgba(139, 92, 246, 0.15);
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.settings-gender-btn:not(.active):hover {
    border-color: #8b5cf6;
    background-color: rgba(139, 92, 246, 0.08);
}

.settings-gender-btn i {
    font-size: 0.9vw;
}

/* Country & Currency Grid */
.settings-country-currency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5vw;
}

.settings-country-column {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.settings-currency-column {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Country Selector */
.settings-country-select {
    position: relative;
    width: 100%;
}

.settings-country-selected {
    padding: 0.7vw 1.2vw;
    font-size: 0.8vw;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.6);
    border: 0.08vw solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5vw;
    color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.6vw;
    min-height: auto;
    height: auto;
}

.settings-country-selected:hover {
    border-color: #8b5cf6;
    background-color: rgba(139, 92, 246, 0.08);
}

.settings-country-selected.active {
    border-color: #8b5cf6;
    background-color: rgba(139, 92, 246, 0.08);
}

.settings-country-flag {
    font-size: 0.9vw;
    flex-shrink: 0;
    width: 1vw;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

.settings-country-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.8vw;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.85);
    font-family: inherit;
    padding: 0;
    cursor: pointer;
}

.settings-country-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.settings-country-input[readonly] {
    cursor: pointer;
}

.settings-country-chevron {
    font-size: 0.7vw;
    color: rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.settings-country-selected.active .settings-country-chevron {
    transform: rotate(180deg);
}

.settings-country-dropdown {
    position: absolute;
    top: calc(100% + 0.5vw);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 0.08vw solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5vw;
    box-shadow: 0 0.276vw 0.829vw rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 20vw;
    overflow: hidden;
    flex-direction: column;
}

.settings-country-dropdown.active {
    display: flex;
}

.settings-country-list {
    overflow-y: auto;
    max-height: 20vw;
    padding: 0.3vw 0;
}

.settings-country-item {
    padding: 0.4vw 1vw;
    display: flex;
    align-items: center;
    gap: 0.6vw;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.8vw;
    color: rgba(0, 0, 0, 0.85);
}

.settings-country-item:hover {
    background-color: rgba(139, 92, 246, 0.1);
}

.settings-country-item.selected {
    background-color: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.settings-country-item-flag {
    font-size: 0.9vw;
    flex-shrink: 0;
    width: 1vw;
    text-align: center;
    line-height: 1;
}

.settings-country-item-name {
    flex: 1;
}

.settings-currency-group {
    display: flex;
    gap: 1vw;
}

.settings-currency-btn {
    flex: 1;
    padding: 0.7vw 1.2vw;
    font-size: 0.8vw;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.6);
    border: 0.08vw solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5vw;
    color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.settings-currency-btn.active {
    background-color: rgba(139, 92, 246, 0.15);
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.settings-currency-btn:not(.active):hover {
    border-color: #8b5cf6;
    background-color: rgba(139, 92, 246, 0.08);
}

/* Responsive */
@media (max-width: 70.718vw) {
    .settings-section-title {
        font-size: 1.2vw;
    }
    
    .settings-input {
        font-size: 1vw;
        padding: 0.6vw 1vw;
    }
    
    .settings-btn {
        font-size: 0.9vw;
        padding: 0.6vw 1.2vw;
    }
    
    .settings-currency-btn {
        font-size: 1vw;
        padding: 0.8vw 1.4vw;
    }
}

@media (max-width: 53.039vw) {
    .settings-section {
        margin-bottom: 3vw;
    }
    
    .settings-section-title {
        font-size: 1.5vw;
        margin-bottom: 1vw;
    }
    
    .settings-input-group {
        flex-direction: column;
        gap: 1.5vw;
    }
    
    .settings-input {
        font-size: 1.2vw;
        padding: 0.8vw 1.2vw;
        width: 100%;
    }
    
    .settings-input-readonly {
        flex: 1;
    }
    
    .settings-password-row {
        flex-direction: column;
        gap: 1.5vw;
    }
    
    .settings-password-row .settings-input {
        flex: 1;
        width: 100%;
    }
    
    .settings-password-grid {
        grid-template-columns: 1fr;
        gap: 1.5vw;
    }
    
    .settings-btn {
        font-size: 1.1vw;
        padding: 0.8vw 1.4vw;
        width: 100%;
    }
    
    .settings-gender-group {
        flex-wrap: wrap;
        gap: 1vw;
    }
    
    .settings-gender-btn {
        font-size: 1.1vw;
        padding: 0.9vw 1.4vw;
        flex: 1 1 calc(50% - 0.5vw);
        min-width: calc(50% - 0.5vw);
    }
    
    .settings-gender-btn i {
        font-size: 1.2vw;
    }
    
    .settings-country-currency-grid {
        grid-template-columns: 1fr;
        gap: 2vw;
    }
    
    .settings-country-dropdown {
        max-height: 25vw;
    }
    
    .settings-country-list {
        max-height: calc(25vw - 5vw);
    }
    
    .settings-currency-group {
        flex-direction: column;
        gap: 1.5vw;
    }
    
    .settings-currency-btn {
        font-size: 1.2vw;
        padding: 1vw 1.6vw;
    }
}

/* ═══ Settings design (newswire-redesign 7) — st-* ═══ */
.st-settings { width: 100%; box-sizing: border-box; }

.st-tabs-card {
    background: #fff;
    border-radius: 0.6vw;
    border: 0.06vw solid #e2e5ea;
    margin-bottom: 0.8vw;
}

.st-tabs-inner {
    padding: 0.4vw 0.5vw;
    display: flex;
    gap: 0.3vw;
}

.st-sub-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3vw;
    padding: 0.48vw 0.45vw;
    border-radius: 0.35vw;
    font-family: inherit;
    border: 0.08vw solid transparent;
    background: transparent;
    color: #667085;
    font-size: 0.65vw;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.st-sub-tab i { font-size: 0.6vw; }

.st-sub-tab:hover { transform: translateY(-0.04vw); }

.st-sub-tab.active {
    border-color: rgba(79, 110, 247, 0.25);
    background: rgba(79, 110, 247, 0.06);
    color: #4f6ef7;
}

.st-pane { margin-bottom: 0; }

.st-pane-preferences.st-pane { margin-bottom: 0; }

.st-card {
    background: #fff;
    border-radius: 0.6vw;
    border: 0.06vw solid #e2e5ea;
    overflow: hidden;
    margin-bottom: 0.8vw;
}

.st-card-header {
    padding: 0.65vw 0.85vw;
    border-bottom: 0.06vw solid #f0f1f3;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.st-card-header-left { display: flex; align-items: center; gap: 0.35vw; }

.st-card-icon {
    width: 0.85vw;
    height: 0.85vw;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f6ef7;
    font-size: 0.8vw;
}

.st-card-title {
    font-size: 0.72vw;
    font-weight: 600;
    color: #111318;
    text-transform: uppercase;
    letter-spacing: 0.04vw;
}

.st-card-header-extra .st-card-extra {
    font-size: 0.55vw;
    color: #667085;
}

.st-card-body { padding: 0.65vw 0.85vw; }

.st-email-row {
    display: flex;
    gap: 0.5vw;
    align-items: center;
}

.st-email-display {
    flex: 1;
    padding: 0.5vw 0.65vw;
    font-size: 0.68vw;
    font-weight: 500;
    color: #555;
    background: #f5f6f8;
    border: 0.07vw solid #e8eaed;
    border-radius: 0.35vw;
}

.st-btn-secondary {
    padding: 0.5vw 0.8vw;
    border-radius: 0.35vw;
    font-family: inherit;
    background: rgba(79, 110, 247, 0.06);
    border: 0.07vw solid rgba(79, 110, 247, 0.15);
    color: #4f6ef7;
    font-size: 0.62vw;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25vw;
    white-space: nowrap;
    transition: all 0.2s;
}

.st-btn-secondary:hover { background: rgba(79, 110, 247, 0.1); }

.st-btn-secondary i { font-size: 0.55vw; }

/* Password: old row = half width + link; new row = two halves */
.st-password-old-row {
    display: flex;
    gap: 0.5vw;
    align-items: center;
    margin-bottom: 0.5vw;
}

.st-input-half { flex: 0 0 calc(50% - 0.25vw); min-width: 0; }

.st-password-old-row .st-input-half { flex: 0 0 calc(50% - 0.25vw); }

.st-btn-link {
    background: none;
    border: none;
    color: #4f6ef7;
    font-size: 0.58vw;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    padding: 0;
    transition: opacity 0.2s;
}

.st-btn-link:hover { opacity: 0.7; }

.st-password-new-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5vw;
}

.st-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5vw 0.65vw;
    font-size: 0.68vw;
    font-family: inherit;
    font-weight: 500;
    border: 0.07vw solid #e2e5ea;
    border-radius: 0.35vw;
    outline: none;
    color: #111318;
    background: #fafbfc;
    transition: all 0.2s;
}

.st-input:focus {
    border-color: #4f6ef7;
    background: #fff;
    box-shadow: 0 0 0 0.12vw rgba(79, 110, 247, 0.08);
}

.st-gender-row {
    display: flex;
    gap: 0.4vw;
}

.st-gender-btn {
    flex: 1;
    padding: 0.52vw 0.45vw;
    border-radius: 0.35vw;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25vw;
    font-size: 0.62vw;
    font-weight: 600;
    background: #fafbfc;
    border: 0.07vw solid #e2e5ea;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.st-gender-btn:hover {
    border-color: #4f6ef7;
    background: rgba(79, 110, 247, 0.04);
}

.st-gender-btn.active {
    background: rgba(79, 110, 247, 0.08);
    border-color: #4f6ef7;
    color: #4f6ef7;
}

.st-gender-symbol { font-size: 0.7vw; }

.st-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8vw;
    margin-bottom: 0.8vw;
}

.st-country-wrap { position: relative; }

.st-country-trigger {
    width: 100%;
    padding: 0.5vw 0.65vw;
    border-radius: 0.35vw;
    border: 0.07vw solid #e2e5ea;
    background: #fafbfc;
    display: flex;
    align-items: center;
    gap: 0.35vw;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.68vw;
    font-weight: 500;
    color: #111318;
    transition: all 0.2s;
}

.st-country-trigger:hover,
.st-country-trigger[aria-expanded="true"] {
    border-color: #4f6ef7;
    background: #fff;
    box-shadow: 0 0 0 0.12vw rgba(79, 110, 247, 0.08);
}

.st-country-flag { font-size: 0.75vw; }

.st-country-label { flex: 1; text-align: left; }

.st-country-chevron {
    font-size: 0.5vw;
    color: #667085;
    transition: transform 0.2s;
}

.st-country-trigger[aria-expanded="true"] .st-country-chevron { transform: rotate(180deg); }

.st-country-dropdown {
    position: absolute;
    top: calc(100% + 0.25vw);
    left: 0;
    right: 0;
    min-width: 100%;
    width: max-content;
    max-width: 100%;
    background: #fff;
    border: 0.07vw solid #e2e5ea;
    border-radius: 0.35vw;
    box-shadow: 0 0.3vw 1.2vw rgba(0,0,0,0.12);
    z-index: 100;
    overflow: hidden;
}

.st-country-dropdown[hidden] { display: none !important; }

.st-country-search-wrap { padding: 0.35vw 0.5vw; border-bottom: 0.06vw solid #f0f1f3; }

.st-country-search { margin: 0; }

.st-country-list { max-height: 18vw; overflow-y: auto; min-height: 6vw; }

.st-country-item {
    padding: 0.45vw 0.7vw;
    display: flex;
    align-items: center;
    gap: 0.4vw;
    cursor: pointer;
    font-size: 0.68vw;
    color: #333;
    transition: background 0.15s;
}

.st-country-item:hover { background: rgba(79, 110, 247, 0.06); }

.st-country-item.selected {
    background: rgba(79, 110, 247, 0.04);
    color: #4f6ef7;
    font-weight: 600;
}

/* Date of Birth: same look as country trigger (no labels above) */
.st-dob-row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1fr;
    gap: 0.4vw;
}

.st-select {
    width: 100%;
    padding: 0.5vw 0.65vw;
    padding-right: 1.2vw;
    font-size: 0.68vw;
    font-family: inherit;
    font-weight: 500;
    border: 0.07vw solid #e2e5ea;
    border-radius: 0.35vw;
    outline: none;
    color: #111318;
    background: #fafbfc;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.4vw center;
    transition: all 0.2s;
}

.st-select:hover {
    border-color: #d0d3da;
    background: #fff;
}

.st-select:focus {
    border-color: #4f6ef7;
    background-color: #fff;
    box-shadow: 0 0 0 0.12vw rgba(79, 110, 247, 0.08);
}

.st-dob-select { min-width: 0; }

.st-save-btn {
    width: 100%;
    padding: 0.6vw 0.85vw;
    border-radius: 0.4vw;
    background: #4f6ef7;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35vw;
    font-size: 0.68vw;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s;
}

.st-save-btn:hover { background: #3b5de7; }

.st-save-btn i { font-size: 0.65vw; }

/* Profile Preferences */
.st-pref-row,
.st-pref-sub-row {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    padding: 0.6vw 0.3vw;
    border-bottom: 0.06vw solid #f3f4f6;
}

.st-pref-sub-row { padding: 0.5vw 0.3vw 0.5vw 2.4vw; }

.st-pref-sub-row.hidden { display: none !important; }

.st-pref-icon-wrap {
    width: 1.6vw;
    height: 1.6vw;
    border-radius: 0.35vw;
    background: #f8f9fb;
    border: 0.06vw solid #e8eaed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.st-pref-icon-wrap i { font-size: 0.7vw; color: #c0c4cc; }

.st-pref-icon-wrap-sm { width: 1.3vw; height: 1.3vw; }

.st-pref-row:has(.st-toggle.on) .st-pref-icon-wrap,
.st-pref-sub-row:has(.st-toggle.on) .st-pref-icon-wrap {
    background: rgba(79, 110, 247, 0.06);
    border-color: rgba(79, 110, 247, 0.12);
}

.st-pref-row:has(.st-toggle.on) .st-pref-icon-wrap i,
.st-pref-sub-row:has(.st-toggle.on) .st-pref-icon-wrap i { color: #4f6ef7; }

.st-pref-text { flex: 1; min-width: 0; }

.st-pref-label {
    font-size: 0.68vw;
    font-weight: 600;
    color: #111318;
    margin-bottom: 0.1vw;
}

.st-pref-desc { font-size: 0.55vw; color: #a0a5b2; }

.st-toggle {
    width: 2.2vw;
    height: 1.2vw;
    border-radius: 0.6vw;
    background: #d0d3da;
    position: relative;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}

.st-toggle.on { background: #4f6ef7; }

.st-toggle-knob {
    width: 0.9vw;
    height: 0.9vw;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0.05vw 0.15vw rgba(0,0,0,0.15);
    position: absolute;
    top: 0.15vw;
    left: 0.15vw;
    transition: left 0.25s cubic-bezier(.16,1,.3,1);
}

.st-toggle.on .st-toggle-knob { left: calc(100% - 1.05vw); }

.st-pref-footer { padding: 0.3vw 0.85vw 0.7vw; }

/* Profile notifications use #notification-container + .vice-coins-notification (vice-coins-notifications.css) */

