/* ===== Appearance & Preferences (Account page) ===== */
#goldaiLangToggle{display:none!important} /* language now lives in Account > Appearance (and the nav shortcut) */

/* Text size (rem-based) */
html[data-fs="s"]{font-size:90%}
html[data-fs="l"]{font-size:113%}

/* Reduced animations */
html[data-motion="reduced"] *,html[data-motion="reduced"] *::before,html[data-motion="reduced"] *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;animation-delay:0s!important;transition-duration:.01ms!important;transition-delay:0s!important;scroll-behavior:auto!important}
/* Glow / ripple effects off */
html[data-fx="off"] .fx-spot,html[data-fx="off"] .fx-ring,html[data-fx="off"] .fx-ripple,html[data-fx="off"] .fx-w{display:none!important}

/* Card */
.ap-card{max-width:720px;margin:18px auto 0}
.ap-sub{color:var(--text-muted);font-size:.84rem;margin:-4px 0 14px}
.ap-group{padding:14px 0;border-top:1px solid var(--border)}
.ap-group:first-of-type{border-top:0;padding-top:4px}
.ap-label{font-weight:700;font-size:.92rem;margin-bottom:10px;color:var(--text)}
.ap-hint{color:var(--text-muted);font-size:.78rem;margin:8px 0 0}
.ap-seg{display:flex;border:1px solid var(--border);border-radius:999px;overflow:hidden;width:100%;max-width:420px}
.ap-seg button{flex:1;min-height:44px;background:transparent;border:0;color:var(--text-muted);font-weight:700;font-size:.86rem;cursor:pointer;padding:0 12px}
.ap-seg button.active{background:var(--gold);color:var(--on-accent,#fff)}
.ap-themes{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:10px}
.ap-theme{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:44px;padding:10px;border:1px solid var(--border);border-radius:14px;background:var(--panel-bg);color:var(--text);cursor:pointer;text-align:left;font:inherit}
.ap-theme:hover{border-color:var(--gold)}
.ap-theme.active{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}
.ap-theme.active::after{content:"✓";position:absolute;top:8px;right:10px;color:var(--gold);font-weight:800;font-size:.9rem}
.ap-sw{width:100%;height:34px;border-radius:9px;border:1px solid rgba(128,128,128,.35)}
.ap-theme strong{font-size:.84rem;display:block;color:var(--text)}
.ap-theme small{font-size:.7rem;color:var(--text-muted);display:block;line-height:1.25}
.ap-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;cursor:pointer;color:var(--text);font-size:.9rem}
.ap-row.sub{padding-left:2px;font-size:.86rem;color:var(--text-muted)}
.ap-switch{position:relative;width:46px;height:26px;flex-shrink:0}
.ap-switch input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.ap-switch i{position:absolute;inset:0;border-radius:999px;background:var(--border);transition:.2s;pointer-events:none}
.ap-switch i::before{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.35)}
.ap-switch input:checked+i{background:var(--gold)}
.ap-switch input:checked+i::before{transform:translateX(20px)}
.ap-switch input:focus-visible+i{outline:2px solid var(--gold);outline-offset:2px}
.ap-vol{display:flex;align-items:center;gap:12px;min-height:44px}
.ap-vol input[type=range]{flex:1;height:28px;accent-color:var(--gold);cursor:pointer}
.ap-vol output{min-width:44px;text-align:right;font-weight:700;font-size:.86rem;color:var(--text)}
.ap-snd-opts{transition:opacity .2s}
.ap-snd-opts.off{opacity:.45;pointer-events:none}
.ap-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.ap-reset{margin-top:6px;padding-top:14px;border-top:1px solid var(--border);display:flex;justify-content:flex-end}

/* ===== Light Ivory theme ===== */
html[data-theme="light-ivory"],body[data-theme="light-ivory"]{--nav-solid:#faf6ec;--tint-rgb:60,45,10;--warn-text:#b45309;--bg:#f7f3ea;--bg-card:#fffdf8;--bg-card-hover:#f1eadb;--border:#ddd0b4;--gold:#8f6a1c;--gold-dark:#6f4f10;--text:#2a2216;--text-muted:#5d523c;--accent:#8f6a1c;--accent-rgb:143,106,28;--accent-soft:rgba(143,106,28,.12);--blue:#8f6a1c;--purple:#b08430;--green:#15803d;--red:#dc2626;--on-accent:#ffffff;--nav-bg:rgba(250,246,236,.95);--panel-bg:rgba(143,106,28,.05);--gold-grad:linear-gradient(135deg,#c79a3e,#8f6a1c);color-scheme:light}
body[data-theme="light-ivory"] nav{background:var(--nav-bg);border-bottom:1px solid var(--border);box-shadow:0 2px 14px rgba(60,45,10,.08)}
body[data-theme="light-ivory"] .btn-gold{color:#fff}
body[data-theme="light-ivory"] .btn-outline{color:var(--text);border-color:var(--border)}
body[data-theme="light-ivory"] input,body[data-theme="light-ivory"] textarea,body[data-theme="light-ivory"] select{background:#fff;color:var(--text);border-color:var(--border)}
body[data-theme="light-ivory"] h1,body[data-theme="light-ivory"] h2,body[data-theme="light-ivory"] h3,body[data-theme="light-ivory"] h4{color:var(--text)}
body[data-theme="light-ivory"] .content-card,body[data-theme="light-ivory"] .feature-card,body[data-theme="light-ivory"] .plan-card,body[data-theme="light-ivory"] .v16-plan,body[data-theme="light-ivory"] .v15-step{background:var(--bg-card);border-color:var(--border);box-shadow:0 6px 22px rgba(60,45,10,.07)}
body[data-theme="light-ivory"] .price-badge{background:var(--bg-card);color:var(--text);border-color:var(--border)}
body[data-theme="light-ivory"] footer{background:var(--bg-card);border-top:1px solid var(--border)}
body[data-theme="light-ivory"] .ap-sw{border-color:rgba(0,0,0,.18)}
body[data-theme="light-ivory"] nav{background:#faf6ec!important}
body[data-theme="light-ivory"] nav:before{background:var(--bg)}
body[data-theme="light-ivory"] .uf-tabbar{background:#faf6ec!important;border-top:1px solid var(--border);box-shadow:0 -4px 16px rgba(60,45,10,.07)}
body[data-theme="light-ivory"] .v12-mark{filter:none}
body[data-theme="light-ivory"] .ai-box,body[data-theme="light-ivory"] .ai-box.ai-card-market,body[data-theme="light-ivory"] .ai-box.ai-card-setup,body[data-theme="light-ivory"] .result-box,body[data-theme="light-ivory"] .rr-calculator-card,body[data-theme="light-ivory"] .ai-adv{background:var(--bg-card)!important;border-color:var(--border)!important;box-shadow:0 6px 22px rgba(60,45,10,.07)!important;color:var(--text)}

/* ===== Light Ivory fixes: separators, status colours (pastel dark-mode greens/ambers were unreadable on ivory) ===== */
body[data-theme="light-ivory"] .trade-setup-row{border-bottom-color:var(--border)}
body[data-theme="light-ivory"] .result-content .trade-setup-row,body[data-theme="light-ivory"] .result-box .trade-setup-row{background:rgba(143,106,28,.05);border-color:rgba(143,106,28,.2)}
body[data-theme="light-ivory"] .live-data-badge.live{color:#15803d;border-color:#15803d4d;background:#15803d14}
body[data-theme="light-ivory"] .announcement-status{color:#166534}
body[data-theme="light-ivory"] .announcement-status span{background:#15803d;box-shadow:0 0 8px #15803d66}
body[data-theme="light-ivory"] .report-status.in-progress,body[data-theme="light-ivory"] .ann2-b-important,body[data-theme="light-ivory"] .ann2-tag-fix,body[data-theme="light-ivory"] .hiw-dir.no{color:#b45309}
body[data-theme="light-ivory"] .report-status.resolved,body[data-theme="light-ivory"] .report-status.replied,body[data-theme="light-ivory"] .ann2-b-offer,body[data-theme="light-ivory"] .ann2-tag-new,body[data-theme="light-ivory"] .hiw-dir.buy,body[data-theme="light-ivory"] .hiw-s-grid b.pos,body[data-theme="light-ivory"] .hiw-box.ok li:before{color:#15803d}
body[data-theme="light-ivory"] .ann2-b-news{color:#0369a1}
body[data-theme="light-ivory"] .site-notice-banner .site-notice-icon{color:#8f6a1c}
