:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #070908;
  --surface: #101512;
  --surface-2: #151c17;
  --line: rgba(216, 174, 69, .22);
  --gold: #d8ae45;
  --gold-light: #f8df8a;
  --gold-dark: #8c6923;
  --text: #f5f3ea;
  --muted: #929a93;
  --green: #58c68b;
  --red: #ef6b67;
  background: var(--bg);
}
* { box-sizing: border-box; }
html, body, #root { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-width: 320px; background: radial-gradient(circle at 50% -12%, rgba(170, 124, 28, .17), transparent 34%), var(--bg); }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.app-shell { width: min(100%, 520px); min-height: 100vh; margin: 0 auto; position: relative; padding-bottom: 96px; background: linear-gradient(180deg, rgba(11, 14, 12, .97), rgba(7, 9, 8, 1)); overflow: hidden; }
.app-shell::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M0 40h80M40 0v80' stroke='%23fff' stroke-width='.4'/%3E%3C/svg%3E"); }
.topbar { height: 68px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(216, 174, 69, .12); background: rgba(7, 9, 8, .9); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; border: 1px solid #e5c36b; border-radius: 50%; display: grid; place-items: center; font-family: Georgia, serif; font-weight: 800; letter-spacing: -2px; color: #080a08; background: linear-gradient(145deg, #fff2a7 5%, #d9aa34 48%, #795713 100%); box-shadow: 0 0 22px rgba(216, 174, 69, .22); }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 20px; letter-spacing: .12em; font-weight: 700; color: var(--gold-light); text-shadow: 0 2px 12px rgba(216, 174, 69, .2); }
.lang-pill { min-width: 54px; height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; display: grid; place-items: center; position: relative; color: var(--gold-light); font-size: 12px; font-weight: 800; letter-spacing: .08em; background: rgba(216, 174, 69, .06); }
.lang-pill select { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.app-content { padding: 18px 16px 26px; }
.screen { display: grid; gap: 14px; animation: screen-in .24s ease both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(5px); } }
.page-title { padding: 5px 2px 2px; }
.eyebrow, .panel-heading small, .analysis-head small, .vip-kicker { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .19em; }
.page-title h1 { margin: 5px 0 4px; font-size: clamp(25px, 7vw, 32px); line-height: 1.05; letter-spacing: -.035em; }
.page-title p { margin: 0; color: var(--muted); font-size: 13px; }
.panel { border: 1px solid var(--line); border-radius: 19px; padding: 16px; background: linear-gradient(145deg, rgba(20, 27, 22, .95), rgba(11, 14, 12, .96)); box-shadow: 0 12px 30px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .015); }
.profile-hero { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: center; padding: 10px 2px 4px; }
.avatar { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; border: 2px solid #d8ae45; box-shadow: 0 0 0 5px rgba(216, 174, 69, .07); }
.avatar-fallback { display: grid; place-items: center; color: #17150d; font-weight: 900; background: linear-gradient(145deg, #f8df8a, #a67720); }
.profile-copy { min-width: 0; }
.profile-copy h1 { margin: 0 0 3px; font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-copy p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.access-pill { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.access-pill .ap-icon { width: 13px; }
.id-chip { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 10px 13px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.id-chip small { color: var(--muted); }
.id-chip strong { color: var(--gold-light); font-size: 13px; letter-spacing: .06em; }
.vip-card { min-height: 177px; padding: 21px; border: 1px solid rgba(232, 192, 85, .45); border-radius: 21px; position: relative; overflow: hidden; background: radial-gradient(circle at 86% 22%, rgba(242, 198, 81, .2), transparent 27%), linear-gradient(128deg, #1d2119, #10140f 55%, #18150c); box-shadow: 0 18px 44px rgba(0,0,0,.3); }
.vip-card::after { content: "A+"; position: absolute; right: 13px; top: 21px; font-family: Georgia, serif; font-size: 85px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(216, 174, 69, .12); transform: rotate(-7deg); }
.vip-card h2 { margin: 8px 0 8px; max-width: 270px; font-family: Georgia, serif; font-size: 22px; color: var(--gold-light); }
.vip-card p { max-width: 310px; margin: 0 0 17px; color: #b9bdb8; font-size: 12px; line-height: 1.5; position: relative; z-index: 1; }
.gold-button, .ghost-button { min-height: 48px; width: 100%; border: 0; border-radius: 13px; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; text-decoration: none; font-weight: 800; font-size: 13px; letter-spacing: .01em; transition: transform .15s ease, filter .15s ease; }
.gold-button { color: #15120b; background: linear-gradient(110deg, #ad7d22, #f6dd82 52%, #bb8726); box-shadow: 0 10px 25px rgba(190, 136, 34, .16); }
.gold-button.compact { width: fit-content; min-height: 38px; padding: 0 17px; position: relative; z-index: 2; }
.gold-button:disabled { opacity: .55; cursor: wait; }
.gold-button:active, .ghost-button:active { transform: scale(.985); }
.gold-button .ap-icon { width: 17px; }
.ghost-button { border: 1px solid var(--line); background: rgba(216, 174, 69, .05); color: var(--gold-light); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .06); padding-bottom: 13px; margin-bottom: 16px; }
.panel-heading h2 { margin: 4px 0 0; font-size: 17px; }
.trade-count { font-size: 9px; padding: 6px 8px; color: var(--gold-light); border: 1px solid var(--line); border-radius: 20px; letter-spacing: .07em; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-item { display: flex; align-items: center; gap: 11px; padding: 7px; min-width: 0; }
.stat-ring { --progress: 0deg; width: 58px; height: 58px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--tone) var(--progress), rgba(255,255,255,.07) 0); }
.stat-ring::before { content: ""; position: absolute; inset: 5px; border-radius: inherit; background: #121813; }
.stat-ring span { position: relative; font-size: 12px; font-weight: 900; }
.stat-item.positive { --tone: var(--green); }
.stat-item.negative { --tone: var(--red); }
.stat-item div:last-child { min-width: 0; }
.stat-item strong { display: block; font-size: 12px; line-height: 1.25; }
.stat-item small { color: var(--muted); font-size: 9px; }
.control-panel, .signal-controls { display: grid; gap: 14px; }
.field { display: grid; gap: 8px; color: #c5c9c5; font-size: 11px; font-weight: 700; }
.select-wrap { position: relative; }
.select-wrap select { width: 100%; height: 50px; appearance: none; padding: 0 42px 0 15px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; color: var(--text); background: #0d120e; outline: none; }
.select-chevron { position: absolute; right: 15px; top: 13px; color: var(--gold); font-size: 18px; pointer-events: none; }
[dir="rtl"] .select-wrap select { padding: 0 15px 0 42px; }
[dir="rtl"] .select-chevron { right: auto; left: 15px; }
.analysis-result { padding: 0; overflow: hidden; }
.analysis-head { padding: 17px 17px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.analysis-head h2 { margin: 4px 0 0; font-size: 21px; }
.direction-badge { padding: 7px 9px; display: inline-flex; align-items: center; gap: 5px; border-radius: 9px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.direction-badge.buy { color: var(--green); background: rgba(88, 198, 139, .1); border: 1px solid rgba(88, 198, 139, .18); }
.direction-badge.sell { color: var(--red); background: rgba(239, 107, 103, .1); border: 1px solid rgba(239, 107, 103, .18); }
.direction-arrow { font-size: 16px; }
.confidence-line { display: flex; justify-content: space-between; padding: 14px 17px 7px; font-size: 9px; color: var(--muted); letter-spacing: .11em; }
.confidence-line strong { color: var(--gold-light); }
.confidence-track, .strength-track { height: 4px; background: rgba(255,255,255,.06); overflow: hidden; border-radius: 5px; }
.confidence-track { margin: 0 17px; }
.confidence-track i, .strength-track i { display: block; height: 100%; background: linear-gradient(90deg, #86611d, #f2d06e); border-radius: inherit; }
.analysis-summary { margin: 16px 17px; color: #c4c8c3; font-size: 12px; line-height: 1.58; }
.levels { margin: 0 17px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; overflow: hidden; }
.levels div { padding: 11px 7px; text-align: center; border-inline-end: 1px solid rgba(255,255,255,.06); }
.levels div:last-child { border: 0; }
.levels small { display: block; color: var(--muted); font-size: 8px; margin-bottom: 5px; }
.levels strong { color: #e7e6de; font-size: 11px; }
.strength-title { margin: 17px 17px 10px; font-size: 12px; font-weight: 800; }
.strength-list { padding: 0 17px 17px; display: grid; gap: 9px; }
.strength-row { display: grid; grid-template-columns: 32px 1fr 28px; align-items: center; gap: 9px; font-size: 9px; }
.strength-row span { text-align: right; color: var(--muted); }
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.market-card { min-height: 117px; padding: 13px; border: 1px solid rgba(216, 174, 69, .15); border-radius: 17px; text-align: left; position: relative; overflow: hidden; cursor: pointer; background: linear-gradient(145deg, rgba(21, 27, 23, .9), rgba(10, 13, 11, .95)); }
.market-card.selected { border-color: rgba(236, 198, 91, .72); background: radial-gradient(circle at 18% 18%, rgba(216,174,69,.18), transparent 45%), #121712; box-shadow: inset 0 0 0 1px rgba(216,174,69,.08); }
.market-icon { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--gold-light); font-size: 18px; }
.market-card small { position: absolute; right: 11px; top: 14px; color: #6e766f; font-size: 8px; letter-spacing: .11em; }
.market-card strong { display: block; margin-top: 15px; font-size: 14px; }
.market-arrow { position: absolute; right: 12px; bottom: 11px; color: var(--gold); }
.expiry-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.expiry-row button { height: 53px; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; background: #0c110d; cursor: pointer; }
.expiry-row button.selected { color: var(--gold-light); border-color: #a87c27; background: rgba(216,174,69,.09); }
.expiry-row strong, .expiry-row small { display: block; }
.expiry-row strong { font-size: 15px; }
.expiry-row small { margin-top: 2px; font-size: 8px; color: var(--muted); }
.signal-card { border: 1px solid rgba(216,174,69,.35); border-radius: 19px; overflow: hidden; background: radial-gradient(circle at 90% 15%, rgba(216,174,69,.12), transparent 32%), #111612; }
.signal-top { padding: 16px; display: flex; justify-content: space-between; align-items: center; }
.signal-top small { color: var(--gold); font-size: 9px; letter-spacing: .13em; }
.signal-top h2 { margin: 4px 0 0; font-size: 21px; }
.trade-side { padding: 9px 13px; border-radius: 9px; font-size: 11px; font-weight: 900; }
.trade-side.buy { color: var(--green); background: rgba(88,198,139,.1); }
.trade-side.sell { color: var(--red); background: rgba(239,107,103,.1); }
.signal-prices { padding: 0 16px 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.signal-prices div { padding: 10px 6px; border: 1px solid rgba(255,255,255,.05); border-radius: 10px; text-align: center; }
.signal-prices small { display: block; color: var(--muted); font-size: 8px; margin-bottom: 5px; }
.signal-prices strong { font-size: 11px; }
.countdown { margin: 0 16px 16px; min-height: 61px; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0 14px; border-radius: 12px; background: rgba(216,174,69,.06); position: relative; overflow: hidden; }
.countdown span { color: var(--muted); font-size: 10px; }
.countdown strong { color: var(--gold-light); font-size: 24px; font-variant-numeric: tabular-nums; }
.countdown i { position: absolute; bottom: 0; left: 0; width: 65%; height: 2px; background: var(--gold); }
.result-strip { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 900; }
.result-strip.win { color: var(--green); background: rgba(88,198,139,.08); }
.result-strip.loss { color: var(--red); background: rgba(239,107,103,.08); }
.result-strip .ap-icon { width: 17px; }
.filter-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.filter-row button { min-height: 36px; padding: 0 5px; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.02); font-size: 10px; cursor: pointer; }
.filter-row button.selected { color: #18150d; border-color: transparent; font-weight: 800; background: linear-gradient(120deg, #ae7e24, #eed47a); }
.history-list { display: grid; gap: 9px; }
.history-item { min-height: 85px; display: grid; grid-template-columns: 39px 1fr auto; gap: 11px; align-items: center; padding: 12px; border: 1px solid rgba(255,255,255,.055); border-radius: 15px; background: linear-gradient(145deg, #111612, #0b0f0c); }
.history-symbol { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--gold-light); font-weight: 900; }
.analysis-symbol { font-family: Georgia, serif; }
.history-copy { min-width: 0; }
.history-title { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.history-title strong { font-size: 13px; }
.history-title .direction-badge { padding: 3px 5px; font-size: 7px; }
.history-title .direction-arrow { font-size: 10px; }
.history-copy p { margin: 0 0 5px; color: #abb0ac; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-copy small { color: #687069; font-size: 8px; }
.mini-result { padding: 3px 5px; border-radius: 5px; font-size: 7px; font-weight: 900; }
.mini-result.win { color: var(--green); background: rgba(88,198,139,.09); }
.mini-result.loss { color: var(--red); background: rgba(239,107,103,.09); }
.pips, .confidence-mini { font-size: 9px; white-space: nowrap; }
.positive { color: var(--green); }
.negative { color: var(--red); }
.confidence-mini { color: var(--gold-light); }
.empty-state { min-height: 230px; display: grid; place-items: center; align-content: center; gap: 13px; color: var(--muted); font-size: 12px; }
.empty-state .ap-icon { width: 34px; color: var(--gold-dark); }
.error-inline { margin: 0; color: var(--red); font-size: 11px; text-align: center; }
.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 520px); height: calc(73px + env(safe-area-inset-bottom)); padding: 8px 9px calc(8px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(216,174,69,.13); background: rgba(8, 11, 9, .95); backdrop-filter: blur(22px); }
.bottom-nav button { border: 0; border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 4px; color: #6f776f; background: transparent; cursor: pointer; }
.bottom-nav button.selected { color: var(--gold-light); background: rgba(216,174,69,.065); }
.bottom-nav .ap-icon { width: 20px; height: 20px; }
.bottom-nav span { font-size: 8px; font-weight: 700; }
.splash, .state-view { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 22px; padding: 28px; text-align: center; background: radial-gradient(circle, rgba(216,174,69,.11), transparent 32%), var(--bg); }
.loader { width: 34px; height: 34px; border: 2px solid rgba(216,174,69,.15); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.state-view .brand { margin-bottom: 25px; }
.state-orb { width: 74px; height: 74px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-light); font-family: Georgia, serif; font-size: 23px; background: rgba(216,174,69,.05); }
.state-orb.error { color: var(--red); border-color: rgba(239,107,103,.25); }
.state-view h1 { margin: 0; font-size: 23px; }
.state-view p { max-width: 340px; margin: -10px 0 5px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.state-view .gold-button, .state-view .ghost-button { max-width: 340px; }
.ap-icon { width: 24px; height: 24px; display: block; }
@media (min-width: 470px) { .app-content { padding-inline: 22px; } .profile-hero { grid-template-columns: auto 1fr auto; } .id-chip { grid-column: auto; display: grid; text-align: right; } }
@media (max-width: 350px) { .stats-grid { grid-template-columns: 1fr; } .brand-name { font-size: 17px; } .history-item { grid-template-columns: 35px 1fr; } .pips, .confidence-mini { grid-column: 2; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* A.PLUS reference match */
:root {
  --bg: #070b0c;
  --surface: #101719;
  --surface-2: #151d1f;
  --line: #30393a;
  --gold: #ffbd39;
  --gold-light: #ffc44b;
  --gold-dark: #a87519;
  --text: #f6f7f4;
  --muted: #8d9799;
  --green: #23df79;
  --red: #ff525d;
}
body {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #050809;
}
.app-shell {
  max-width: 460px;
  padding-bottom: 72px;
  background:
    linear-gradient(rgba(8, 13, 14, .94), rgba(7, 11, 12, .97)),
    repeating-linear-gradient(0deg, transparent 0 37px, rgba(255,255,255,.035) 38px),
    repeating-linear-gradient(90deg, transparent 0 37px, rgba(255,255,255,.035) 38px);
}
.app-shell::before {
  opacity: .16;
  background-image:
    linear-gradient(130deg, transparent 28%, rgba(255, 187, 51, .11) 28.3%, transparent 29%),
    linear-gradient(164deg, transparent 43%, rgba(255, 187, 51, .08) 43.4%, transparent 44%),
    repeating-linear-gradient(0deg, transparent 0 45px, rgba(103, 123, 123, .04) 46px),
    repeating-linear-gradient(90deg, transparent 0 45px, rgba(103, 123, 123, .04) 46px);
}
.topbar {
  height: 57px;
  padding: 10px 17px;
  border-bottom: 1px solid #252c2d;
  background: rgba(7, 11, 12, .96);
}
.brand { gap: 0; }
.brand-mark { display: none; }
.brand-name {
  font-family: Inter, ui-sans-serif, sans-serif;
  color: var(--gold);
  font-size: 23px;
  font-weight: 950;
  letter-spacing: .085em;
  text-shadow: none;
}
.lang-pill {
  min-width: 48px;
  height: 27px;
  padding: 0 11px;
  color: #ffc34a;
  border-color: #343324;
  border-radius: 7px;
  background: #141813;
  font-size: 9px;
}
.app-content { padding: 13px 15px 18px; }
.screen { gap: 11px; }
.page-title { padding: 2px 0 3px; }
.page-title h1 {
  margin: 0 0 4px;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.page-title p { color: #92999a; font-size: 10px; line-height: 1.3; }
.eyebrow, .vip-kicker { display: none; }
.panel {
  border-color: #303839;
  border-radius: 12px;
  padding: 13px;
  background: linear-gradient(145deg, #131a1c, #0e1415);
  box-shadow: 0 5px 16px rgba(0,0,0,.2);
}
.profile-screen { gap: 10px; }
.profile-hero {
  grid-template-columns: 61px 1fr;
  min-height: 79px;
  padding: 8px 10px;
  gap: 11px;
  border: 1px solid #303839;
  border-radius: 12px;
  background: #101719;
}
.avatar {
  width: 56px;
  height: 56px;
  border: 2px solid #f5b832;
  box-shadow: 0 0 0 2px #0b0f10;
}
.avatar-fallback {
  background: linear-gradient(145deg, #ffc74f, #b77a19);
  color: #111;
}
.profile-copy h1 { margin-bottom: 2px; font-size: 17px; font-weight: 900; }
.profile-copy p { display: none; }
.profile-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; color: #a4abad; font-size: 9px; }
.id-chip {
  display: inline-flex;
  padding: 2px 5px;
  color: #c0c4c4;
  border: 1px solid #2d3536;
  border-radius: 4px;
  background: #0b1011;
  font-size: 8px;
  white-space: nowrap;
}
.access-pill {
  gap: 3px;
  padding: 3px 6px;
  color: #ddfff0;
  border-radius: 999px;
  background: rgba(35, 223, 121, .14);
  font-size: 8px;
  letter-spacing: 0;
  text-transform: none;
}
.access-pill .ap-icon { width: 10px; height: 10px; color: #24e27c; }
.vip-card {
  min-height: 213px;
  padding: 17px 15px 14px;
  border-color: #303839;
  border-radius: 12px;
  background: linear-gradient(145deg, #141c1e, #0f1516);
  box-shadow: none;
}
.vip-card::after {
  content: "";
  right: -30px;
  top: 22px;
  width: 150px;
  height: 90px;
  border: 1px solid rgba(255,189,57,.07);
  border-radius: 50%;
  transform: rotate(-28deg);
  -webkit-text-stroke: 0;
}
.vip-crown {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 26px;
  line-height: 1;
}
.vip-card h2 {
  margin: 0 0 7px;
  max-width: none;
  color: #f6f7f4;
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 19px;
  font-weight: 900;
}
.vip-card p {
  max-width: 305px;
  margin: 0 0 13px;
  color: #a9b0b1;
  font-size: 10px;
  line-height: 1.35;
}
.gold-button {
  min-height: 45px;
  color: #16130c;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffc74b, #f5ad2d);
  box-shadow: 0 5px 15px rgba(241, 169, 35, .17);
  font-size: 12px;
  font-weight: 900;
}
.gold-button.compact {
  width: 100%;
  min-height: 43px;
  border: 1px solid #f7c554;
  border-radius: 9px;
  gap: 7px;
  box-shadow: inset 0 -2px rgba(119,74,5,.18), 0 5px 13px rgba(0,0,0,.3);
}
.stats-panel { padding: 11px; }
.panel-heading {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-color: #263031;
}
.panel-heading small { display: none; }
.panel-heading h2 { margin: 0; font-size: 12px; font-weight: 850; }
.trade-count {
  padding: 3px 6px;
  color: #8d9697;
  border: 0;
  font-size: 7px;
}
.stats-grid { gap: 8px; }
.metric-box {
  min-height: 83px;
  padding: 10px;
  border: 1px solid #2d3637;
  border-radius: 9px;
  background: #0b1112;
}
.metric-box span { display: block; color: #969fa0; font-size: 8px; }
.metric-box strong { display: block; margin: 6px 0 1px; font-size: 21px; line-height: 1; }
.metric-box b { font-size: 13px; }
.metric-box.positive strong, .metric-box.positive b { color: var(--green); }
.metric-box.negative strong, .metric-box.negative b { color: var(--red); }
.control-panel, .signal-controls { gap: 10px; padding: 12px; }
.field { gap: 6px; color: #aab1b2; font-size: 9px; }
.select-wrap select {
  height: 42px;
  padding-left: 13px;
  border-color: #303839;
  border-radius: 8px;
  background: #0c1213;
  font-size: 11px;
  font-weight: 800;
}
.select-chevron { top: 9px; color: var(--gold); }
.analysis-result { border-radius: 11px; }
.analysis-head { padding: 11px 12px 9px; }
.analysis-head small { color: #a5adae; font-size: 8px; letter-spacing: 0; }
.analysis-head h2 { margin-top: 3px; font-size: 16px; }
.direction-badge { padding: 5px 7px; border-radius: 6px; font-size: 7px; }
.direction-arrow { font-size: 12px; }
.confidence-line, .confidence-track { display: none; }
.analysis-summary { margin: 11px 12px; font-size: 9px; line-height: 1.45; }
.levels { margin: 0 12px; border-color: #283132; border-radius: 8px; }
.levels div { padding: 8px 4px; }
.levels small { font-size: 7px; }
.levels strong { font-size: 9px; }
.strength-title { margin: 12px 12px 8px; font-size: 10px; }
.strength-list { padding: 0 12px 11px; gap: 5px; }
.strength-row { grid-template-columns: 28px 1fr 23px; gap: 6px; font-size: 8px; }
.strength-track { height: 6px; background: #273033; }
.strength-track i { background: linear-gradient(90deg, #f8a92a, #ffd168); }
.signals-screen { position: relative; }
.signals-screen::before {
  content: "";
  position: absolute;
  top: 12px;
  right: -6px;
  width: 145px;
  height: 57px;
  opacity: .72;
  pointer-events: none;
  background:
    linear-gradient(146deg, transparent 0 19%, #ffb92e 20% 21%, transparent 22% 34%, #ffb92e 35% 36%, transparent 37% 51%, #ffb92e 52% 53%, transparent 54% 69%, #ffb92e 70% 71%, transparent 72%);
  clip-path: polygon(0 72%, 17% 57%, 31% 65%, 48% 36%, 62% 48%, 79% 16%, 100% 0, 100% 100%, 0 100%);
}
.signals-screen::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 23px;
  right: 17px;
  width: 3px;
  height: 18px;
  border-radius: 1px;
  background: #ffbb32;
  box-shadow:
    17px 11px 0 -1px #ffbb32,
    34px -3px 0 0 #ffbb32,
    51px 8px 0 -1px #ffbb32,
    68px -12px 0 0 #ffbb32,
    85px -3px 0 -1px #ffbb32;
  opacity: .85;
  pointer-events: none;
}
.signals-screen .page-title { min-height: 62px; position: relative; z-index: 1; }
.market-grid { gap: 8px; }
.market-card {
  min-height: 148px;
  padding: 12px;
  border-color: #51431f;
  border-radius: 10px;
  background: linear-gradient(145deg, #12191a, #0b1011);
}
.market-card.selected { border-color: var(--gold); background: linear-gradient(145deg, #151c1d, #0d1213); box-shadow: none; }
.market-icon {
  width: 37px;
  height: 37px;
  border: 0;
  color: var(--gold);
  font-size: 26px;
}
.market-card strong { margin-top: 8px; font-size: 15px; font-weight: 900; }
.market-card p {
  margin: 6px 0 0;
  max-width: 118px;
  color: #9aa2a3;
  font-size: 8px;
  line-height: 1.3;
}
.market-card small { display: none; }
.market-arrow { right: 10px; bottom: 9px; font-size: 13px; }
.expiry-row { gap: 5px; }
.expiry-row button { height: 47px; border-color: #293233; border-radius: 7px; }
.expiry-row button.selected { border-color: #bd8926; background: #211c10; }
.signal-card { border-color: #4e421f; border-radius: 11px; background: #101719; }
.signal-top { padding: 12px; }
.signal-top h2 { font-size: 17px; }
.signal-prices { padding: 0 12px 12px; }
.signal-prices div { border-color: #293233; border-radius: 7px; }
.filter-row { gap: 5px; }
.filter-row button {
  min-height: 31px;
  border-color: #2a3334;
  border-radius: 6px;
  font-size: 8px;
  background: #101617;
}
.filter-row button.selected {
  color: #17120a;
  background: #ffc249;
}
.history-list { gap: 7px; }
.history-item {
  min-height: 79px;
  padding: 9px 10px;
  border-color: #293233;
  border-radius: 9px;
  background: #101719;
}
.history-symbol {
  width: 34px;
  height: 34px;
  border-color: #3a3a27;
  border-radius: 7px;
  color: var(--gold);
}
.history-title strong { font-size: 11px; }
.history-copy p { font-size: 8px; }
.history-copy small { font-size: 7px; }
.mini-result { padding: 2px 4px; border-radius: 4px; }
.bottom-nav {
  max-width: 460px;
  height: calc(59px + env(safe-area-inset-bottom));
  padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
  border-color: #242c2d;
  background: rgba(7, 11, 12, .98);
}
.bottom-nav button { gap: 2px; border-radius: 8px; }
.bottom-nav button.selected { color: var(--gold); background: transparent; }
.bottom-nav .ap-icon { width: 17px; height: 17px; }
.bottom-nav span { font-size: 7px; }
@media (min-width: 470px) {
  .app-content { padding-inline: 15px; }
  .profile-hero { grid-template-columns: 61px 1fr; }
}

/* Pixel-density pass from the supplied four-screen reference */
.topbar { height: 70px; padding: 12px 19px; }
.brand-name { font-size: 32px; letter-spacing: .07em; }
.lang-pill { min-width: 58px; height: 34px; border-radius: 9px; font-size: 11px; }
.app-shell { padding-bottom: 82px; }
.app-content { padding: 18px 18px 24px; }
.screen { gap: 14px; }
.page-title { padding: 2px 1px 7px; }
.page-title h1 { font-size: 29px; }
.page-title p { font-size: 13px; line-height: 1.35; }
.profile-hero {
  grid-template-columns: 83px 1fr;
  min-height: 116px;
  padding: 14px 15px;
  gap: 15px;
  border-radius: 15px;
}
.avatar { width: 78px; height: 78px; }
.profile-copy h1 { font-size: 23px; }
.profile-meta { margin: 4px 0 9px; gap: 8px; font-size: 11px; }
.id-chip { padding: 3px 7px; font-size: 9px; border-radius: 5px; }
.access-pill { padding: 5px 9px; font-size: 10px; }
.access-pill .ap-icon { width: 12px; height: 12px; }
.vip-card {
  min-height: 294px;
  padding: 23px 20px 18px;
  display: flex;
  flex-direction: column;
  border-color: #8a6825;
  border-radius: 16px;
  background:
    radial-gradient(circle at 7% 0%, rgba(255, 188, 48, .22), transparent 42%),
    linear-gradient(150deg, #1a1a12, #101618 64%);
  box-shadow: inset 0 0 0 1px rgba(255, 193, 60, .12);
}
.vip-card::after { display: none; }
.vip-label { display: flex; align-items: center; gap: 11px; color: var(--gold); font-size: 15px; }
.vip-label strong { font-size: 15px; }
.vip-crown { display: inline-block; margin: 0; font-size: 38px; }
.vip-card h2 {
  margin: 20px 0 12px;
  max-width: 320px;
  font-size: 27px;
  line-height: 1.08;
}
.vip-card p { max-width: 320px; margin: 0; font-size: 13px; line-height: 1.38; }
.gold-button.compact { min-height: 58px; margin-top: auto; border-radius: 14px; font-size: 16px; }
.stats-panel { min-height: 182px; padding: 15px; }
.panel-heading { margin-bottom: 13px; padding-bottom: 12px; }
.panel-heading h2 { font-size: 16px; }
.trade-count { color: #b0b7b8; font-size: 10px; }
.stats-grid { gap: 11px; }
.metric-box { min-height: 105px; padding: 13px; border-radius: 12px; }
.metric-box span { min-height: 26px; font-size: 11px; line-height: 1.2; }
.metric-box strong { margin-top: 5px; font-size: 25px; }
.metric-box b { font-size: 17px; }
.control-panel { min-height: 146px; padding: 15px; gap: 12px; }
.field { gap: 8px; font-size: 11px; }
.select-wrap select { height: 51px; border-radius: 10px; font-size: 13px; }
.select-chevron { top: 13px; }
.gold-button { min-height: 54px; border-radius: 11px; font-size: 14px; }
.analysis-result { min-height: 205px; border-radius: 13px; }
.analysis-head { padding: 16px 16px 13px; }
.analysis-head h2 { margin: 0 0 6px; font-size: 15px; }
.analysis-head small { color: #bec4c4; font-size: 10px; }
.direction-badge { padding: 8px 11px; border-radius: 9px; font-size: 9px; }
.analysis-summary { margin: 17px 16px 19px; font-size: 12px; line-height: 1.55; }
.levels { display: none; }
.strength-section { padding: 4px 2px 8px; }
.strength-title { margin: 0 0 13px; font-size: 18px; font-weight: 900; }
.strength-list { padding: 0; gap: 10px; }
.strength-row { grid-template-columns: 39px 1fr 31px; gap: 10px; font-size: 11px; }
.strength-track { height: 10px; border-radius: 6px; }
.strength-row span { font-size: 10px; }
.signals-screen .page-title { min-height: 96px; padding-top: 10px; }
.signals-screen .page-title p { max-width: 185px; }
.signals-screen::before { top: 27px; right: -15px; width: 170px; height: 75px; }
.signals-screen::after { top: 35px; right: 20px; }
.market-grid { gap: 12px; }
.market-card {
  min-height: 214px;
  padding: 19px 16px;
  border-width: 1px;
  border-color: #8b6928;
  border-radius: 15px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 187, 49, .13), transparent 45%),
    linear-gradient(150deg, #171915, #0c1213 65%);
  box-shadow: inset 0 0 0 1px rgba(255,193,60,.05);
}
.market-glyph { width: 52px; height: 52px; color: var(--gold); }
.glyph-text { display: block; font-size: 50px; font-weight: 800; line-height: 1; }
.market-card strong { margin-top: 13px; font-size: 22px; }
.market-card p { max-width: 145px; margin-top: 14px; font-size: 11px; line-height: 1.32; }
.market-arrow { right: 14px; bottom: 13px; font-size: 16px; }
.filter-row { gap: 8px; }
.filter-row button { min-height: 43px; border-radius: 10px; font-size: 11px; }
.history-list { gap: 11px; }
.history-item {
  min-height: 112px;
  grid-template-columns: 48px 1fr auto;
  gap: 13px;
  padding: 13px 14px;
  border-radius: 14px;
}
.history-symbol { width: 45px; height: 45px; border-radius: 10px; font-size: 21px; }
.history-title { margin-bottom: 7px; }
.history-title strong { font-size: 15px; }
.history-copy p { margin-bottom: 3px; font-size: 11px; }
.history-copy small { font-size: 9px; }
.history-outcome { display: grid; justify-items: end; gap: 10px; }
.mini-result { padding: 8px 9px; border-radius: 8px; font-size: 9px; }
.mini-result.win { color: #e8fff0; background: #269e48; }
.mini-result.loss { color: #fff; background: #e33e35; }
.pips { font-size: 11px; }
.bottom-nav {
  height: calc(72px + env(safe-area-inset-bottom));
  padding: 8px 10px calc(7px + env(safe-area-inset-bottom));
}
.bottom-nav button { gap: 4px; }
.bottom-nav .ap-icon { width: 25px; height: 25px; }
.bottom-nav span { font-size: 9px; }

.custom-select { position: relative; width: 100%; z-index: 8; }
.custom-select.open { z-index: 60; }
.custom-select-trigger {
  width: 100%;
  min-height: 51px;
  padding: 0 14px;
  border: 1px solid #303839;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #f5f6f3;
  background: #0b1112;
  cursor: pointer;
}
.custom-select-value { display: flex; align-items: center; gap: 10px; min-width: 0; }
.custom-select-value strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.pair-flags { flex: 0 0 auto; display: inline-flex; align-items: center; min-width: 30px; }
.currency-flag {
  width: 21px;
  height: 14px;
  display: inline-block;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.currency-flag + .currency-flag { margin-left: -7px; margin-top: 7px; }
.flag-us { background: repeating-linear-gradient(to bottom,#c72b38 0 1px,#fff 1px 2px); }
.flag-us::before { content:""; position:absolute; left:0; top:0; width:9px; height:7px; background:#23407c; }
.flag-eu { background: radial-gradient(circle,#ffd93b 0 1px,transparent 1.5px) 5px 3px/6px 6px, #174aa7; }
.flag-gb { background: linear-gradient(34deg,transparent 43%,#fff 44% 49%,#cf2438 50% 54%,#fff 55% 60%,transparent 61%),linear-gradient(-34deg,transparent 43%,#fff 44% 49%,#cf2438 50% 54%,#fff 55% 60%,transparent 61%),linear-gradient(90deg,transparent 37%,#fff 38% 62%,transparent 63%),linear-gradient(transparent 32%,#fff 33% 67%,transparent 68%),linear-gradient(90deg,transparent 44%,#cf2438 45% 55%,transparent 56%),linear-gradient(transparent 41%,#cf2438 42% 58%,transparent 59%),#183878; }
.flag-jp { background: radial-gradient(circle at 50% 50%,#d72e3c 0 4px,transparent 4.5px),#fff; }
.flag-au,.flag-nz { background: radial-gradient(circle at 74% 30%,#ed3445 0 1px,transparent 1.5px),radial-gradient(circle at 66% 70%,#ed3445 0 1px,transparent 1.5px),#173a79; }
.flag-au::before,.flag-nz::before { content:""; position:absolute; left:0; top:0; width:10px; height:7px; background:linear-gradient(34deg,transparent 40%,#fff 41% 48%,#cf2438 49% 55%,#fff 56% 63%,transparent 64%),linear-gradient(-34deg,transparent 40%,#fff 41% 48%,#cf2438 49% 55%,#fff 56% 63%,transparent 64%),linear-gradient(90deg,transparent 38%,#fff 39% 61%,transparent 62%),linear-gradient(transparent 33%,#fff 34% 66%,transparent 67%),linear-gradient(90deg,transparent 45%,#cf2438 46% 54%,transparent 55%),linear-gradient(transparent 42%,#cf2438 43% 57%,transparent 58%),#173a79; }
.flag-ca { background: linear-gradient(90deg,#d62f3d 0 25%,#fff 25% 75%,#d62f3d 75%); }
.flag-ca::before { content:"◆"; position:absolute; left:7px; top:1px; color:#d62f3d; font-size:6px; }
.flag-ch { background:linear-gradient(90deg,transparent 38%,#fff 38% 62%,transparent 62%),linear-gradient(transparent 32%,#fff 32% 68%,transparent 68%),#dc2b3a; }
.flag-fx { background:linear-gradient(135deg,#f4b938,#8b651c); }
.history-symbol.flags { border:0; background:transparent; }
.history-symbol.flags .pair-flags { transform:scale(1.12); transform-origin:center; }
.custom-select-chevron { flex: 0 0 auto; color: var(--gold); font-size: 17px; font-weight: 900; }
.custom-select-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: 282px;
  padding: 7px;
  border: 1px solid #655025;
  border-radius: 11px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #101718;
  box-shadow: 0 18px 38px rgba(0,0,0,.62), inset 0 0 0 1px rgba(255,191,55,.05);
  scrollbar-width: thin;
  scrollbar-color: #8c6824 #151c1d;
}
.custom-select-menu button {
  width: 100%;
  min-height: 43px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #dce1df;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.custom-select-menu button:hover { background: #192122; }
.custom-select-menu button.selected { color: #17130b; background: linear-gradient(180deg, #ffca55, #efaa2e); font-weight: 900; }
.custom-select-menu button .ap-icon { width: 15px; height: 15px; margin-inline-start: auto; }
.custom-select.compact { width: 62px; }
.custom-select.compact .custom-select-trigger {
  min-height: 34px;
  padding: 0 10px;
  border-color: #393723;
  border-radius: 9px;
  background: #171b16;
}
.custom-select.compact .custom-select-value strong { color: var(--gold); font-size: 11px; }
.custom-select.compact .custom-select-chevron { font-size: 12px; }
.custom-select.compact .custom-select-menu { left: auto; width: 116px; }
.custom-select.compact .custom-select-menu button { min-height: 38px; }
[dir="rtl"] .custom-select-menu button { text-align: right; }

.signal-market-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.signal-market-head strong { color: var(--gold); font-size: 13px; letter-spacing: .04em; }
.signal-back {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #3a4141;
  border-radius: 9px;
  color: #d8dddb;
  background: #101718;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.signal-back:active { transform: scale(.98); }
[dir="rtl"] .signal-market-head { flex-direction: row-reverse; }
