/* ═══════════════════════════════════════
   JASA V2 — settings.css
   ═══════════════════════════════════════ */

.st-wrap {
    padding: 16px 14px;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Page Header ── */
.st-page-header {
    background: linear-gradient(135deg, #1a55d4 0%, #2D8CF0 60%, #3a9eff 100%);
    border-radius: 20px;
    padding: 20px 20px 24px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}
.st-page-header-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    pointer-events: none;
}
.st-orb1 { width: 180px; height: 180px; top: -60px; right: -50px; }
.st-orb2 { width: 100px; height: 100px; bottom: -30px; left: 20px; }
.st-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50px;
    padding: 7px 16px;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 16px;
    backdrop-filter: blur(6px);
    transition: background .18s;
    position: relative; z-index: 1;
}
.st-back-btn:hover { background: rgba(255,255,255,.28); color: #fff; }
.st-page-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative; z-index: 1;
}
.st-page-header-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff;
    flex-shrink: 0;
}
.st-page-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 3px;
}
.st-page-sub {
    font-size: .75rem;
    color: rgba(255,255,255,.82);
    margin: 0;
    font-weight: 500;
}

/* ── Settings Card ── */
.st-card {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--sh-sm);
    transition: box-shadow var(--ease);
}
.st-card:hover { box-shadow: var(--sh-md); }
.st-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border);
}
.st-card-head-icon {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
}
.st-card-title {
    font-size: .92rem;
    font-weight: 800;
    color: var(--txt1);
}
.st-card-sub {
    font-size: .68rem;
    font-weight: 600;
    color: var(--txt3);
    margin-top: 1px;
}
.st-card-body {
    padding: 4px 16px;
}

/* ── Settings Row ── */
.st-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.st-row:last-child { border-bottom: none; }
.st-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.st-icon {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
}
.st-label {
    font-size: .85rem;
    font-weight: 700;
    color: var(--txt1);
}
.st-desc {
    font-size: .68rem;
    font-weight: 600;
    color: var(--txt3);
    margin-top: 2px;
}

/* ── Theme row: stacks vertically on mobile ── */
.st-row-theme {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}
.st-row-theme .st-row-left {
    flex: unset;
}

/* ── Theme Pills — full-width 3-column grid ── */
.st-theme-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}
.st-theme-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--bg, #f2f4f8);
    color: var(--txt2);
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    font-family: inherit;
}
.st-theme-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-faint);
}
.st-theme-pill.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(45,140,240,.3);
}
.st-theme-pill i { font-size: .8rem; }
.st-theme-pill span { font-size: .75rem; }

/* ── Action Button ── */
.st-btn-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: var(--bg, #f2f4f8);
    color: var(--txt2);
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.st-btn-action:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-faint);
}

/* ── Danger Card ── */
.st-danger-card {
    border-color: rgba(239,68,68,.25);
}
.st-danger-box {
    background: rgba(239,68,68,.05);
    border: 1.5px solid rgba(239,68,68,.15);
    border-radius: 14px;
    padding: 16px;
    margin: 4px 0 10px;
}
.st-danger-desc {
    font-size: .78rem;
    font-weight: 600;
    color: var(--txt2);
    line-height: 1.55;
    margin-bottom: 14px;
}
.st-btn-danger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    border: none;
    background: #ef4444;
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.st-btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* ── App Info ── */
.st-app-info {
    text-align: center;
    padding: 10px 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.st-app-name {
    font-size: .75rem;
    font-weight: 700;
    color: var(--txt3);
}
.st-app-ver {
    font-size: .68rem;
    font-weight: 700;
    color: var(--txt3);
    background: var(--border);
    padding: 2px 8px;
    border-radius: 50px;
}

/* ── Delete Account Bottom Sheet ── */
.st-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
    z-index: 200;
}
.st-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-height: 88vh;
    background: var(--bg-white);
    border-radius: 22px 22px 0 0;
    z-index: 201;
    display: flex;
    flex-direction: column;
    animation: stSlideUp .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes stSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.st-sheet-handle {
    width: 40px; height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
}
.st-sheet-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.st-sheet-header-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(239,68,68,.1);
    color: #ef4444;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.st-sheet-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--txt1);
    margin: 0 0 2px;
}
.st-sheet-sub {
    font-size: .7rem;
    color: var(--txt3);
    font-weight: 600;
    margin: 0;
}
.st-sheet-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: .95rem;
    color: var(--txt3);
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.st-sheet-body {
    overflow-y: auto;
    flex: 1;
    padding: 18px 18px 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.st-delete-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(239,68,68,.07);
    border: 1.5px solid rgba(239,68,68,.2);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: .8rem;
    font-weight: 600;
    color: #b91c1c;
    line-height: 1.5;
}
.st-delete-warning i { font-size: .95rem; flex-shrink: 0; margin-top: 2px; }
.st-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.st-field-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--txt2);
    text-transform: uppercase;
    letter-spacing: .4px;
}
.st-input {
    padding: 11px 14px;
    border-radius: 11px;
    border: 1.5px solid var(--border);
    background: var(--bg, #f2f4f8);
    color: var(--txt1);
    font-size: .88rem;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .15s, background .15s;
}
.st-input:focus {
    border-color: var(--primary);
    background: var(--bg-white);
}
.st-input-wrap {
    position: relative;
}
.st-input-wrap .st-input {
    padding-right: 44px;
}
.st-input-eye {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--txt3);
    font-size: .9rem;
    cursor: pointer;
    padding: 4px;
}
.st-sheet-footer {
    padding: 14px 18px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.st-btn-cancel-sheet {
    flex: 1;
    padding: 13px;
    border-radius: 13px;
    border: 1.5px solid var(--border);
    background: var(--bg, #f2f4f8);
    color: var(--txt2);
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.st-btn-cancel-sheet:hover { background: var(--border); }
.st-btn-delete-confirm {
    flex: 1.4;
    padding: 13px;
    border-radius: 13px;
    border: none;
    background: #ef4444;
    color: #fff;
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background .15s, opacity .15s;
}
.st-btn-delete-confirm:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.st-btn-delete-confirm:not(:disabled):hover { background: #dc2626; }
