/* ===== Settings Page ===== */
.settings-page{padding-top:76px;padding-left:20px;padding-right:20px;padding-bottom:40px;max-width:1080px;margin:0 auto}
.settings-title{font-size:22px;font-weight:700;margin-bottom:4px;background:linear-gradient(135deg,var(--gold),var(--green));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.settings-desc{font-size:13px;color:var(--text2);margin-bottom:20px}

.settings-section{margin-bottom:20px}
.settings-section-title{font-size:14px;font-weight:600;color:var(--text);margin-bottom:8px}
.symbol-chips{display:flex;flex-wrap:wrap;gap:8px}
.symbol-chip{padding:8px 16px;border-radius:20px;border:1px solid var(--border);background:rgba(255,255,255,0.03);font-size:13px;color:var(--text2);cursor:pointer;transition:all .2s;user-select:none}
.symbol-chip:hover{border-color:var(--gold);color:var(--text)}
.symbol-chip.active{border-color:var(--gold);background:rgba(240,185,11,0.1);color:var(--gold)}
.symbol-chip.disabled{opacity:0.35;cursor:not-allowed;border-color:var(--border);color:var(--text3)}
.symbol-chip.disabled:hover{border-color:var(--border);color:var(--text3)}
.settings-save{width:100%;padding:14px;border:none;border-radius:10px;font-size:15px;font-weight:700;cursor:pointer;background:linear-gradient(135deg,rgba(240,185,11,0.2),rgba(14,203,129,0.2));color:var(--gold);border:1px solid rgba(240,185,11,0.25);transition:all .2s;margin-top:12px;letter-spacing:0.5px}
.settings-save:hover{background:linear-gradient(135deg,rgba(240,185,11,0.3),rgba(14,203,129,0.3))}
/* ===== Symbol List (settings) ===== */
.symbol-list-container{max-height:400px;overflow-y:auto;border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,0.02)}
.symbol-list-row{display:flex;align-items:center;gap:8px;padding:10px 14px;border-bottom:1px solid rgba(255,255,255,0.04);transition:background .2s;font-size:13px}
.symbol-list-row:hover{background:rgba(255,255,255,0.03)}
.symbol-list-row:last-child{border-bottom:none}
.symbol-list-row .sym-name{font-weight:600;color:var(--text);min-width:80px;font-size:14px}
.symbol-list-row .sym-exchange{font-size:11px;color:var(--text3);min-width:70px}
.symbol-list-row .sym-actions{display:flex;align-items:center;gap:4px;margin-left:auto;flex-shrink:0}
.sym-action-btn{width:30px;height:30px;border:none;border-radius:6px;background:rgba(255,255,255,0.04);color:var(--text2);cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center;transition:all .2s;padding:0;line-height:1}
.sym-action-btn:hover{background:rgba(255,255,255,0.1);color:var(--text)}
.sym-action-btn.on{background:rgba(240,185,11,0.15);color:var(--gold)}
.sym-action-btn.pinned{background:rgba(59,130,246,0.15);color:var(--accent)}
.sym-action-btn.disabled-sym{opacity:0.3;cursor:not-allowed}
.symbol-list-row.pinned{background:rgba(59,130,246,0.04);border-left:3px solid var(--accent)}
/* ===== Language Select ===== */
.lang-select{display:flex;gap:8px;margin-top:8px}
.lang-btn{padding:6px 16px;border-radius:8px;border:1px solid var(--border);background:rgba(255,255,255,0.03);color:var(--text2);cursor:pointer;font-size:13px;transition:all .2s}
.lang-btn:hover{border-color:var(--gold);color:var(--text)}
.lang-btn.active{border-color:var(--gold);background:rgba(240,185,11,0.1);color:var(--gold)}

/* ===== Settings table (admin-style, exact copy from admin.html) ===== */
.sym-table-wrap{overflow-x:auto;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:20px;max-height:500px;overflow-y:auto}
.sym-table-wrap table{width:100%;border-collapse:collapse}
.sym-table-wrap thead{position:sticky;top:0;z-index:2}
.sym-table-wrap thead th{background:rgba(17,24,39,0.98);border-bottom:2px solid var(--border);padding:12px 16px;text-align:left;font-size:12px;font-weight:600;color:var(--text2);white-space:nowrap}
.sym-table-wrap td{padding:12px 16px;border-bottom:1px solid rgba(255,255,255,0.04);font-size:13px;color:var(--text)}
.sym-table-wrap tr:hover td{background:rgba(255,255,255,0.02)}
.sym-table-wrap .sym-symbol{font-weight:700;color:var(--text);font-size:14px}
.sym-table-wrap .sym-full{font-size:10px;color:var(--text3);margin-left:6px}
.sym-actions{display:flex;gap:10px;flex-wrap:nowrap;align-items:center;width:100%;justify-content:flex-end}
.sym-action-btn{display:inline-flex;align-items:center;gap:3px;padding:5px 10px;font-size:12px;flex-shrink:0;border:1px solid var(--border);border-radius:6px;background:rgba(255,255,255,0.03);color:var(--text2);cursor:pointer;font-size:12px;transition:all .15s;white-space:nowrap}
.sym-action-btn:hover{background:rgba(255,255,255,0.08);color:var(--text);border-color:rgba(255,255,255,0.15)}
.sym-action-btn.on{background:rgba(240,185,11,0.12);color:var(--gold);border-color:rgba(240,185,11,0.3)}
.sym-action-btn.pinned{background:rgba(59,130,246,0.12);color:var(--accent);border-color:rgba(59,130,246,0.3)}
/* Settings table action layout fix */
.sym-table-wrap{overflow-x:auto;max-height:560px}
.sym-table-wrap table{width:100%;min-width:980px;table-layout:fixed;border-collapse:collapse}
.sym-table-wrap th:nth-child(1),.sym-table-wrap td:nth-child(1){width:210px}
.sym-table-wrap th:nth-child(2),.sym-table-wrap td:nth-child(2){width:180px;color:var(--text2)}
.sym-table-wrap th:nth-child(3),.sym-table-wrap td:nth-child(3),.sym-table-wrap .sym-action-col{width:540px;min-width:540px;text-align:right;padding-right:18px}
.sym-actions{display:flex!important;gap:8px!important;flex-wrap:nowrap!important;align-items:center;justify-content:flex-end;white-space:nowrap;min-width:510px}
.sym-action-btn{height:30px;min-width:58px;padding:0 10px!important;display:inline-flex!important;align-items:center;justify-content:center;gap:4px;flex-shrink:0;border:1px solid var(--border);border-radius:7px;background:rgba(255,255,255,0.035);color:var(--text2);font-size:12px;line-height:1;white-space:nowrap;box-sizing:border-box;overflow:visible}
.sym-action-btn.sym-icon-btn{width:34px!important;min-width:34px!important;padding:0!important;font-size:12px}
.sym-action-btn.sym-pin-btn{min-width:62px}
body.light .sym-action-btn{background:rgba(15,23,42,0.03);border-color:rgba(15,23,42,0.12)}


/* Keep settings page synchronized with day/night theme. */
body.light .settings-page{color:#0f172a}
body.light .settings-page input,body.light .settings-page select{background:#fff!important;color:#0f172a!important;border-color:rgba(15,23,42,.14)!important}
body.light .sym-table-wrap{background:#fff;border-color:rgba(15,23,42,.12);box-shadow:0 1px 3px rgba(15,23,42,.06)}
body.light .sym-table-wrap thead th{background:#f8fafc;color:#475569;border-bottom-color:rgba(15,23,42,.12)}
body.light .sym-table-wrap td{border-bottom-color:rgba(15,23,42,.08);color:#0f172a}
body.light .sym-table-wrap tr:hover td{background:#f8fafc}
body.light .sym-table-wrap .sym-full,body.light .settings-desc{color:#64748b}
body.light .settings-save{background:linear-gradient(135deg,rgba(240,185,11,.16),rgba(14,203,129,.14));border-color:rgba(202,138,4,.24);color:#a16207}


/* Hard guard: Settings must visually follow light theme even when rendered after theme switch. */
body.light #pageSettings,body.light #pageSettings .settings-page,body.light .settings-page.theme-light-surface{background:#f8fafc;color:#0f172a}
body.light #pageSettings .table-wrap,body.light #pageSettings .sym-table-wrap,body.light .settings-page.theme-light-surface .sym-table-wrap{background:#fff!important;border-color:rgba(15,23,42,.12)!important;box-shadow:0 8px 24px rgba(15,23,42,.06)}
body.light #pageSettings .sym-table-wrap thead th,body.light .settings-page.theme-light-surface .sym-table-wrap thead th{background:#f1f5f9!important;color:#334155!important;border-bottom-color:rgba(15,23,42,.12)!important}
body.light #pageSettings .sym-table-wrap td,body.light .settings-page.theme-light-surface .sym-table-wrap td{background:#fff;color:#0f172a!important;border-bottom-color:rgba(15,23,42,.08)!important}
body.light #pageSettings .sym-table-wrap tr:hover td{background:#f8fafc!important}
body.light #pageSettings .sym-action-btn{background:#f8fafc!important;color:#475569!important;border-color:rgba(15,23,42,.12)!important}
body.light #pageSettings .sym-action-btn.on{background:rgba(240,185,11,.16)!important;color:#a16207!important;border-color:rgba(202,138,4,.32)!important}
body.light #pageSettings .sym-action-btn.pinned{background:rgba(37,99,235,.12)!important;color:#1d4ed8!important;border-color:rgba(37,99,235,.28)!important}
