/* Forex Signals by FWE — web app. Colours and sizes follow the Android app (MainActivity.kt). */
:root {
  --bg: #020F28;          /* AppBackground */
  --card: #071D3E;        /* FweCard */
  --card-top: #092852;
  --stroke: #15569A;      /* FweStroke */
  --blue: #0759DB;        /* FweBlue */
  --light-blue: #078BFF;
  --gold: #FFD44F;        /* FweGold */
  --soft: #A6BBD9;        /* SoftText */
  --text: #F6F9FF;        /* DarkText */
  --primary: #0D47A1;     /* FwePrimary */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.35; }
body { min-height: 100vh; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input { font: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

#app { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); position: relative; }

/* Header (Android Header) */
.header { position: sticky; top: 0; z-index: 20; padding-top: var(--safe-top);
  background: linear-gradient(90deg, #03132C, #06336A, #03132C); }
.header-row { height: 76px; display: flex; align-items: center; padding: 0 14px; }
.header-slot { width: 43px; height: 43px; display: flex; align-items: center; justify-content: flex-start; }
.header-logo { flex: 1; display: flex; justify-content: center; }
.header-logo img { width: 180px; height: 67px; object-fit: contain; }
.icon-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.icon-btn svg { width: 24px; height: 24px; fill: currentColor; }

/* Subpage header (blue bar with Back) */
.subheader { position: sticky; top: 0; z-index: 20; background: var(--blue); padding-top: var(--safe-top); }
.subheader-row { display: flex; align-items: center; padding: 14px; gap: 2px; }
.subheader .back { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; margin: -12px 0 -12px -12px; }
.subheader .back svg { width: 24px; height: 24px; fill: #fff; }
.subheader h1 { font-size: 19px; font-weight: 700; margin: 0; color: #fff; }

.content { flex: 1; padding-bottom: calc(80px + var(--safe-bottom)); }
.content.sub { padding-bottom: calc(24px + var(--safe-bottom)); }
.stack { display: flex; flex-direction: column; }

/* Bottom navigation (Material 3 NavigationBar) */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; z-index: 30;
  background: #041A38; display: flex; padding-bottom: var(--safe-bottom); }
.nav-item { flex: 1; height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #DBE7FF; font-size: 10px; font-weight: 500; }
.nav-item .pill { width: 64px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.nav-item svg { width: 24px; height: 24px; fill: currentColor; }
.nav-item.active { color: #38A8FF; }
.nav-item.active .pill { background: #0A376B; }

/* FwePanel */
.panel { border: 1px solid var(--stroke); border-radius: 18px; background: linear-gradient(180deg, var(--card-top), var(--card)); padding: 13px; }
.panel.compact { padding: 9px; }
.tap { cursor: pointer; }
.row { display: flex; align-items: center; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Badges */
.trade-badge { display: inline-block; color: #fff; font-weight: 700; font-size: 11px; padding: 5px 11px; border-radius: 7px; background: #03AD74; white-space: nowrap; }
.trade-badge.sell { background: #DD304B; }
.status-badge { display: inline-block; font-weight: 700; font-size: 10px; padding: 5px 8px; border-radius: 7px; background: #075E52; color: #37F3B2; white-space: nowrap; }
.status-badge.closed { background: #5C2938; color: #FFB5C1; }
.live-badge { font-weight: 700; font-size: 11px; padding: 5px 12px; border-radius: 25px; background: #075E52; color: #37F3B2; white-space: nowrap; }
.live-badge.closed { background: #5C2938; }

.time { color: var(--soft); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Price strip */
.prices { display: flex; background: #0B2D59; border-radius: 12px; padding: 9px 4px; }
.prices.r10 { border-radius: 10px; padding: 10px 4px; }
.price { flex: 1; min-width: 0; text-align: center; }
.price .k { color: var(--soft); font-size: 11px; }
.price .v { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v.sl { color: #FF5168; } .v.tp { color: #23E8A2; } .v.entry { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-weight: 700; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-full { width: 100%; height: 39px; background: #0865EE; font-size: 12px; }
.btn-pill { border-radius: 999px; background: var(--primary); height: 40px; padding: 0 24px; font-weight: 500; font-size: 14px; }
.btn-outline { border: 1px solid #4B9EFF; background: transparent; }

/* Telegram strip */
.tg { display: flex; align-items: center; border: 1px solid #1474C8; border-radius: 13px; background: #0A2B55; padding: 8px 10px; }
.tg-icon { width: 34px; height: 34px; border-radius: 50%; background: #138CF4; display: flex; align-items: center; justify-content: center; flex: none; }
.tg-icon svg { width: 19px; height: 19px; fill: #fff; }
.tg .t1 { font-size: 12px; font-weight: 700; }
.tg .t2 { font-size: 10px; color: #B7D5F8; }
.tg .join { height: 32px; padding: 0 12px; border-radius: 10px; background: #0879F7; font-size: 11px; font-weight: 700; color: #fff; display: inline-flex; align-items: center; }

/* Section heading */
.section-title { font-size: 22px; font-weight: 700; margin: 0; }
.section-sub { color: var(--soft); font-size: 12px; line-height: 17px; margin-top: 4px; }

/* Cards used by signal pages */
.card-navy { background: #092247; border-radius: 16px; padding: 16px; }
.muted { color: var(--soft); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.divider { height: 1px; background: var(--stroke); }

/* Recent row */
.recent-row { display: flex; align-items: center; background: #0A2A52; border-radius: 11px; padding: 8px; margin-bottom: 5px; gap: 9px; }

/* Feature cards */
.features { display: flex; gap: 10px; }
.feature { flex: 1; min-width: 0; height: 83px; border-radius: 16px; padding: 8px; border: 1px solid; display: flex; flex-direction: column; gap: 5px; text-align: left; }
.feature .ft { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feature .fs { font-size: 11px; line-height: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature.firms { border-color: #127BFF; background: linear-gradient(90deg, #053A80, #075CD0); }
.feature.firms .fs { color: #CCDDFF; }
.feature.reviews { border-color: #AD3AFF; background: linear-gradient(90deg, #47127E, #8800C6); }
.feature.reviews .fs { color: #E8D4FF; }

/* Loading */
.spinner { width: 24px; height: 24px; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--light-blue); border-radius: 50%; animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.5s; } }

/* Prop firms */
.firm { height: 112px; border: 1px solid var(--stroke); border-radius: 14px; background: #09264C; padding: 7px 10px; display: flex; align-items: center; gap: 9px; }
.logo-box { width: 58px; height: 58px; border-radius: 10px; background: #F0F4FA; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; color: var(--blue); font-weight: 700; font-size: 24px; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; }
.logo-box.white { width: 54px; height: 54px; background: #fff; font-size: 21px; }
.logo-box.white img { padding: 3px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.clamp5 { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.small-btn { width: 89px; height: 30px; border-radius: 8px; font-size: 10px; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.small-btn.fill { background: #0865EE; }
.title-bar { height: 39px; border-radius: 11px; background: var(--blue); padding: 0 12px; display: flex; align-items: center; font-weight: 700; font-size: 16px; }

/* Search */
.search { height: 56px; border: 1px solid var(--stroke); border-radius: 12px; background: #09264C; display: flex; align-items: center; gap: 12px; padding: 0 12px; }
.search:focus-within { border: 2px solid var(--light-blue); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 16px; }
.search input::placeholder { color: var(--soft); }
.search svg { width: 22px; height: 22px; fill: var(--light-blue); flex: none; }

/* More */
.more-group { border: 1px solid #103C75; border-radius: 17px; background: linear-gradient(180deg, #08274F, #041733); padding: 7px; display: flex; flex-direction: column; gap: 4px; }
.more-link { display: flex; align-items: center; border: 1px solid #1365B3; border-radius: 12px; background: linear-gradient(90deg, #073D7E, #082852); padding: 5px 8px; gap: 7px; text-align: left; width: 100%; }
.more-ico { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, #059EFD, #0646CF); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #fff; flex: none; }
.contact-info { border: 1px solid var(--stroke); border-radius: 15px; background: #09264C; padding: 16px; }
.contact-info .h { color: var(--gold); font-weight: 700; font-size: 16px; line-height: 22px; }
.contact-info .b { color: #E2EDFC; font-size: 14px; line-height: 22px; margin-top: 8px; white-space: pre-wrap; }
.contact-link { display: flex; align-items: center; border: 1px solid #1676D5; border-radius: 15px; background: #09264C; padding: 16px; }

/* Install hint */
.install { border: 1px solid var(--gold); border-radius: 13px; background: #0A2B55; padding: 10px 12px; font-size: 12px; color: #E2EDFC; display: flex; gap: 10px; align-items: flex-start; }
.install b { color: var(--gold); }

/* Review document frame */
.review-frame { width: 100%; border: 0; display: block; background: #071D3E; min-height: 300px; }

/* Premium (white member pages) */
.portal { background: #03132E; min-height: 100%; padding: 8px 13px; }
.member-page { background: #F5F8FF; color: #172033; min-height: calc(100vh - 76px); padding: 14px; }
.login-card { border: 1px solid #E6C778; border-radius: 22px; background: linear-gradient(180deg, #FFFCF3, #F0F6FF); padding: 18px; color: #172033; }
.crown { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #FFE8A5; color: #956A13; font-size: 28px; padding: 6px 13px; line-height: 1; }
.field { position: relative; height: 56px; border: 1px solid #79747E; border-radius: 12px; }
.field:focus-within { border: 2px solid var(--primary); }
.field input { position: absolute; inset: 0; width: 100%; border: 0; outline: 0; background: transparent; padding: 18px 16px 4px; color: #102A48; font-size: 16px; border-radius: 12px; }
.field label { position: absolute; left: 16px; top: 17px; color: #49454F; font-size: 16px; pointer-events: none; transition: all .15s ease; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 5px; font-size: 12px; color: var(--primary); }
.login-btn { width: 100%; height: 48px; border-radius: 13px; background: #0759DB; color: #fff; font-weight: 700; font-size: 13px; }
.login-btn:disabled { background: rgba(23,32,51,.12); color: rgba(23,32,51,.38); cursor: default; }
.dash-btn { flex: 1; min-width: 0; height: 38px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.white-card { background: #fff; border-radius: 14px; padding: 15px; color: #172033; }
.member-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: #DCF7E9; color: #08783F; }
.member-badge.closed { background: #FDE6E7; color: #B42335; }
.mrow { display: flex; align-items: center; background: #F0F5FF; border-radius: 11px; padding: 10px 9px; margin-bottom: 6px; gap: 9px; }
.error { color: #FF8C99; font-size: 16px; }
.member-error { color: #B3261E; font-size: 16px; margin-top: 9px; }
