/* ==========================================================================
   Bingo Again — application shell
   ========================================================================== */

#app { position: relative; z-index: 1; height: 100vh; display: flex; flex-direction: column; }

/* ---- top bar -------------------------------------------------------------- */

.topbar {
  display: flex; align-items: center; gap: 18px;
  height: 56px; padding: 0 18px; flex: 0 0 auto;
  background: linear-gradient(180deg, rgba(43, 22, 27, 0.92), rgba(26, 14, 18, 0.92));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  /* Above the tab bar, so the account menu is never painted under the tabs
     (backdrop-filter makes this a stacking context; the tabs are positioned). */
  position: relative; z-index: 80;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand__mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--red-400), var(--red-700));
  box-shadow: 0 2px 12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.brand__mark svg { width: 19px; height: 19px; display: block; }

.brand__name { font-weight: 650; font-size: 15px; letter-spacing: -0.01em; }
.brand__name span { color: var(--accent); }

.topbar__spacer { flex: 1; }

.conn {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--bg-inset); border: 1px solid var(--line);
  font-size: 11.5px; color: var(--text-muted);
}
.conn__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); }
.conn[data-state='open']       .conn__dot { background: var(--win); box-shadow: 0 0 8px var(--win); }
.conn[data-state='connecting'] .conn__dot { background: var(--warn); animation: pulse 1.2s infinite; }
.conn[data-state='closed']     .conn__dot { background: var(--loss); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---- buttons -------------------------------------------------------------- */

.btn {
  font: inherit; font-size: 13px; font-weight: 550;
  padding: 8px 15px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: var(--bg-raised); color: var(--text);
  cursor: pointer; transition: all var(--fast) var(--ease);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: var(--bg-panel-2); border-color: var(--accent-line); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn--primary {
  background: linear-gradient(140deg, var(--red-400), var(--red-600));
  border-color: transparent; color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover:not(:disabled) {
  background: linear-gradient(140deg, var(--red-300), var(--red-500));
  border-color: transparent;
}

.btn--ghost { background: transparent; border-color: var(--line); color: var(--text-muted); }
.btn--ghost:hover:not(:disabled) { color: var(--text); background: var(--bg-inset); }

.btn--danger { background: var(--loss-soft); border-color: rgba(239, 68, 68, 0.4); color: #ffb4b4; }
.btn--sm { padding: 5px 10px; font-size: 12px; }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 11px 20px; font-size: 14px; }

/* ---- tabs ----------------------------------------------------------------- */

.tabs {
  display: flex; gap: 4px; align-items: center;
  padding: 0 14px; flex: 0 0 auto;
  background: rgba(18, 10, 13, 0.7);
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 11px 15px; border: none; background: none;
  font: inherit; font-size: 13px; font-weight: 500;
  color: var(--text-dim); cursor: pointer;
  transition: color var(--fast) var(--ease);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--text-muted); }
.tab[aria-selected='true'] { color: var(--text); border-bottom-color: var(--accent); }
.tab__icon { font-size: 14px; opacity: 0.85; }
.tab__lock { font-size: 10px; opacity: 0.6; }

/* ---- main ----------------------------------------------------------------- */

.main { flex: 1; overflow-y: auto; overflow-x: hidden; }
.view { max-width: 1180px; margin: 0 auto; padding: 26px 22px 64px; }

.panel {
  background: linear-gradient(180deg, rgba(35, 18, 22, 0.66), rgba(26, 14, 18, 0.66));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
}

.panel__title {
  font-size: 11px; font-weight: 650; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--text-dim); margin: 0 0 4px;
}
.panel__sub { font-size: 13px; color: var(--text-muted); margin: 0 0 16px; }

.grid { display: grid; gap: 14px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---- greeting ------------------------------------------------------------- */

.greeting { margin-bottom: 22px; }
.greeting__hi { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 5px; }
.greeting__quote { font-size: 13px; color: var(--text-dim); font-style: italic; margin: 0; }

/* ---- access poster -------------------------------------------------------- */

.poster {
  position: relative; overflow: hidden;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-xl);
  background:
    linear-gradient(150deg, rgba(74, 5, 16, 0.55), rgba(26, 14, 18, 0.6) 55%, rgba(43, 22, 27, 0.5));
  padding: 30px 26px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: 22px;
}

.poster__glow { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.poster__glow--red   { width: 340px; height: 340px; top: -150px; left: -90px;  background: var(--accent-glow); }
.poster__glow--ember { width: 300px; height: 300px; bottom: -150px; right: -70px; background: var(--ember-glow); }

.poster__content { position: relative; text-align: center; margin-bottom: 20px; }

.poster__eyebrow {
  display: inline-block; font-size: 10.5px; font-weight: 650;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--red-300);
  padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  margin-bottom: 13px;
}

.poster__title { font-size: 25px; font-weight: 650; letter-spacing: -0.02em; margin: 0 0 7px; }
.poster__lede { font-size: 13.5px; color: var(--text-muted); margin: 0 auto; max-width: 480px; }

.poster__tools { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

.poster__tool {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: var(--r-pill);
  background: var(--bg-inset); border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 550;
}
.poster__tool-icon {
  width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.poster__tool-icon--bulk  { background: linear-gradient(140deg, #f5a524, #c2410c); }
.poster__tool-icon--speed { background: linear-gradient(140deg, #e11d34, #8f0c1d); }
.poster__tool-icon--ai    { background: linear-gradient(140deg, #ff6b7d, #bd1328); }

/* price panel */
.price {
  position: relative; width: 100%; max-width: 610px;
  display: flex; flex-direction: column; align-items: center;
  padding: 18px; border-radius: var(--r-lg);
  background: var(--bg-inset); border: 1px solid var(--accent-line);
}

.price__label {
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--text-dim);
}

.price__amount { display: flex; align-items: baseline; gap: 7px; margin: 3px 0 1px; }
.price__value {
  font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  background: linear-gradient(180deg, #fff, var(--red-200));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price__currency { font-size: 15px; font-weight: 650; color: var(--accent); }
.price__secondary { font-size: 13px; color: var(--text-muted); }

.price__rule { width: 100%; height: 1px; background: var(--line); margin: 14px 0 12px; }

.price__pay { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.price__pay-label {
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--text-dim);
}
.price__pay-banks { font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em; }
.price__pay-note { font-size: 12px; color: var(--text-dim); }

.price__contacts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 13px 0 4px; }

.contact-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--bg-raised); border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 550; color: var(--text);
  transition: all var(--fast) var(--ease);
}
.contact-chip:hover { border-color: var(--accent-line); background: var(--bg-panel-2); color: var(--text); }
.contact-chip svg { width: 15px; height: 15px; }
.contact-chip--wa svg { fill: #25d366; }
.contact-chip--tg svg { fill: #29a9eb; }

.price__cta { margin-top: 12px; }

/* ---- quick actions -------------------------------------------------------- */

.action {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px; border-radius: var(--r-md);
  background: var(--bg-inset); border: 1px solid var(--line);
  cursor: pointer; text-align: left; font: inherit; color: inherit;
  transition: all var(--fast) var(--ease);
}
.action:hover { border-color: var(--accent-line); background: var(--bg-panel-2); transform: translateY(-1px); }
.action__name { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.action__desc { font-size: 12.5px; color: var(--text-dim); }
.action__go { font-size: 12.5px; color: var(--accent); font-weight: 550; margin-top: 3px; }

/* ---- disclaimer ----------------------------------------------------------- */

.disclaimer {
  margin-top: 22px; padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--warn-soft); border: 1px solid rgba(245, 165, 36, 0.24);
}
.disclaimer__head {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 650; color: var(--warn); margin-bottom: 7px;
}
.disclaimer__body { font-size: 12px; line-height: 1.65; color: var(--text-muted); margin: 0; }

/* ---- forms ---------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field__label {
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-dim);
}
.input, .select {
  font: inherit; font-size: 13.5px;
  padding: 9px 12px; border-radius: var(--r-md);
  background: var(--bg-root); border: 1px solid var(--line-strong);
  color: var(--text); width: 100%;
  transition: border-color var(--fast) var(--ease);
}
.input:focus, .select:focus { outline: none; border-color: var(--accent); }
.input::placeholder { color: var(--text-faint); }
.select { cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
                    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.select option { background: var(--bg-panel); color: var(--text); }

.row { display: flex; gap: 12px; }
.row > * { flex: 1; }

.note {
  font-size: 12.5px; padding: 10px 13px; border-radius: var(--r-md);
  border: 1px solid transparent; margin-bottom: 13px; line-height: 1.55;
}
.note--error { background: var(--loss-soft); border-color: rgba(239, 68, 68, 0.3); color: #ffb9b9; }
.note--ok    { background: var(--win-soft);  border-color: rgba(34, 197, 94, 0.3);  color: #a7f3c4; }
.note--info  { background: var(--accent-soft); border-color: var(--accent-line); color: var(--red-200); }
.note--warn  { background: var(--warn-soft); border-color: rgba(245, 165, 36, 0.3); color: #f8d38a; }

/* ---- lock screen ---------------------------------------------------------- */

.lock { max-width: 430px; margin: 48px auto; }
.lock__card {
  background: linear-gradient(180deg, rgba(35, 18, 22, 0.8), rgba(26, 14, 18, 0.8));
  border: 1px solid var(--accent-line); border-radius: var(--r-xl);
  padding: 28px; box-shadow: var(--shadow-lg);
}
.lock__eyebrow {
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--red-300); text-align: center; display: block;
  margin-bottom: 10px;
}
.lock__title { font-size: 20px; font-weight: 650; text-align: center; margin: 0 0 8px; letter-spacing: -0.015em; }
.lock__lede { font-size: 13px; color: var(--text-muted); text-align: center; margin: 0 0 22px; line-height: 1.6; }
.lock__switch { text-align: center; margin-top: 15px; font-size: 12.5px; color: var(--text-dim); }
.lock__switch button {
  background: none; border: none; font: inherit; font-size: 12.5px;
  color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline;
}
.lock__help {
  text-align: center; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-dim);
}

/* ---- tables --------------------------------------------------------------- */

.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th {
  text-align: left; padding: 9px 11px;
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); border-bottom: 1px solid var(--line);
}
.table td { padding: 9px 11px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--bg-inset); }

.pill {
  display: inline-block; padding: 2px 9px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600;
}
.pill--active   { background: var(--win-soft);  color: #6ee7a0; }
.pill--pending  { background: var(--warn-soft); color: #f8d38a; }
.pill--rejected { background: var(--loss-soft); color: #ffb4b4; }
.pill--expired  { background: rgba(154, 114, 120, 0.16); color: var(--text-dim); }

.empty { text-align: center; padding: 34px 18px; color: var(--text-faint); font-size: 13px; }

/* ---- responsive ----------------------------------------------------------- */

@media (max-width: 720px) {
  .view { padding: 18px 16px 56px; }
  .poster { padding: 24px 16px; }
  .poster__title { font-size: 21px; }
  .price__value { font-size: 36px; }
  .row { flex-direction: column; }
  .tabs { overflow-x: auto; }
  .brand__name { display: none; }
}

/* ---- Deriv account control ------------------------------------------------ */

.acct { position: relative; }

.acct__connect { gap: 6px; }

.acct__chip {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 9px 4px 5px; border-radius: var(--r-pill);
  background: var(--bg-raised); border: 1px solid var(--line-strong);
  font: inherit; color: var(--text); cursor: pointer;
  transition: border-color var(--fast) var(--ease);
}
.acct__chip:hover { border-color: var(--accent-line); }

.acct__badge {
  font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 7px; border-radius: var(--r-pill);
}
.acct__badge--real { background: rgba(34,197,94,.18); color: #6ee7a0; }
.acct__badge--demo { background: rgba(245,165,36,.18); color: #f8d38a; }

.acct__chip-body { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.acct__chip-id { font-size: 11.5px; font-weight: 600; }
.acct__chip-bal { font-size: 10.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.acct__caret { font-size: 9px; color: var(--text-dim); }

.acct__menu {
  position: absolute; right: 0; top: calc(100% + 7px); z-index: 70;
  min-width: 250px; padding: 6px;
  background: linear-gradient(180deg, rgb(43,22,27), rgb(26,14,18));
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.acct__menu-head {
  font-size: 10px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); padding: 7px 9px 6px;
}
.acct__menu-sep { height: 1px; background: var(--line); margin: 5px 0; }

.acct__option {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 9px; border-radius: var(--r-sm);
  background: none; border: none; font: inherit; font-size: 12.5px;
  color: var(--text); cursor: pointer; text-align: left;
}
.acct__option:hover { background: var(--bg-inset); }
.acct__option--on { background: var(--accent-soft); }
.acct__option--danger { color: #ff9aa6; }
.acct__option-id { font-weight: 600; }
.acct__option-ccy { color: var(--text-dim); font-size: 11.5px; }
.acct__option-bal { margin-left: auto; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.acct__option { white-space: nowrap; }
.acct__option-bal + .acct__tick { margin-left: 6px; }
.acct__tick { margin-left: auto; color: var(--accent); }

.acct__error {
  position: absolute; right: 0; top: calc(100% + 7px); z-index: 70;
  max-width: 260px; padding: 8px 11px; border-radius: var(--r-sm);
  background: var(--loss-soft); border: 1px solid rgba(239,68,68,.35);
  font-size: 11.5px; color: #ffb4b4;
}

/* Dashboard call-to-action */
.connect-cta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 18px; margin-bottom: 20px; border-radius: var(--r-lg);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.connect-cta__body { flex: 1; min-width: 220px; }
.connect-cta__title { font-size: 14.5px; font-weight: 650; margin-bottom: 3px; }
.connect-cta__text { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }

@media (max-width: 720px) {
  /* Keep the balance visible on phones -- just tighter. */
  .acct__chip-bal { font-size: 10px; }
  .acct__chip-id { font-size: 11px; }
  .acct__menu { right: -8px; min-width: 290px; }
}


/* ---- premium action cards (dashboard) ------------------------------------- */

.pcards {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.pcard {
  --pcard-accent: var(--accent);
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: 10px; border-radius: 14px; cursor: pointer;
  background: var(--bg-inset);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--pcard-accent);
  transition: transform var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.pcard:hover, .pcard:focus-visible { transform: translateY(-1px); border-color: var(--pcard-accent); outline: none; }
.pcard--orange { --pcard-accent: #ff4d6d; }
.pcard--violet { --pcard-accent: #a78bfa; }
.pcard--green  { --pcard-accent: #2dd4a3; }
.pcard__icon {
  width: 60px; height: 60px; border-radius: 12px; display: grid; place-items: center;
  color: var(--pcard-accent);
  background: color-mix(in srgb, var(--pcard-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--pcard-accent) 40%, transparent);
  margin-bottom: 14px;
}
.pcard__icon svg { width: 30px; height: 30px; }
.pcard__title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.pcard__desc { font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.pcard__open {
  margin-top: 12px; padding-top: 10px; width: 100%; text-align: left;
  border: none; border-top: 1px solid var(--line);
  background: none; font: inherit; font-size: 13.5px; font-weight: 650;
  color: var(--pcard-accent); cursor: pointer;
}

/* Secondary text inside table cells (admin console hints). */
.muted { color: var(--text-dim, #a09a9a); opacity: .85; margin-top: 2px; }

/* Busy state for scan controls: a pulsing dot before the label. */
.is-busy { animation: pulse 1.1s ease-in-out infinite; }
.btn.is-busy::before {
  content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px;
  border-radius: 50%; background: currentColor; vertical-align: middle;
}

/* Top-right launcher for the free Banga Tone bot. */
.banga-launch { color: #fff; background: linear-gradient(135deg, var(--red-600), var(--red-400)); border: 1px solid var(--accent-line); box-shadow: var(--shadow-accent); white-space: nowrap; }
.banga-launch:hover { filter: brightness(1.08); }
#app.is-banga .main { padding-top: 10px; }

.tabs[hidden] { display: none; }
body.is-banga .aisb, body.is-banga .esc-backdrop { display: none !important; }

@media (max-width: 860px) {
  .conn__text { display: none; }
  .banga-launch { padding-left: 8px; padding-right: 8px; }
}

/* Phones: one fixed-height row that never wraps or scrolls. Secondary
   controls (Telegram pill, feed text, Transfer, account label) live in the
   ☰ menu and the account menu instead. */
.lbl-short { display: none; }
@media (max-width: 560px) {
  .topbar { flex-wrap: nowrap; height: 56px; min-height: 56px; padding: 0 10px; gap: 6px; overflow: hidden; }
  .brand__name, .tg-pill, .conn, .acct__transfer, .acct__chip-id { display: none; }
  .topbar__spacer { flex: 1; }
  .acct__chip { padding: 4px 8px 4px 5px; gap: 6px; }
  .acct__chip-bal { font-size: 11.5px; color: var(--text); font-weight: 700; }
  .banga-launch { padding: 6px 8px; font-size: 11.5px; }
  .btn--sm { padding: 6px 9px; font-size: 12px; white-space: nowrap; }
  .lbl-long { display: none; } .lbl-short { display: inline; }
}

/* Premium promo popup */
.promo { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(6, 3, 4, .72); backdrop-filter: blur(6px); animation: promo-fade .25s ease-out; }
.promo__card { position: relative; width: 100%; max-width: 440px; padding: 34px 28px 26px; text-align: center; border-radius: 18px;
  background: linear-gradient(135deg, #200c11 0%, #2c1218 100%); border: 1px solid var(--accent-line);
  box-shadow: 0 0 60px rgba(225,29,52,.22), 0 25px 50px rgba(0,0,0,.55); animation: promo-in .4s ease-out; }
.promo__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; font: inherit; font-size: 16px;
  color: var(--text-dim); background: rgba(255,255,255,.05); border: none; cursor: pointer; }
.promo__close:hover { color: var(--text); background: rgba(255,255,255,.1); }
.promo__glow { margin-bottom: 18px; }
.promo__icon { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: var(--red-300);
  background: linear-gradient(135deg, rgba(225,29,52,.18), rgba(255,138,61,.1)); border: 1px solid var(--accent-line); box-shadow: 0 0 30px rgba(225,29,52,.25); }
.promo__icon svg { width: 42px; height: 42px; filter: drop-shadow(0 0 8px rgba(248,57,79,.6)); }
.promo__title { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.01em;
  background: linear-gradient(90deg, var(--red-400), #ffaa8a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.promo__text { margin: 0 0 22px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.promo__cta { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 14px; font: inherit; font-size: 17px; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, var(--red-600), var(--red-400)); border: 1px solid var(--accent-line); box-shadow: var(--shadow-accent); cursor: pointer; }
.promo__cta:hover { filter: brightness(1.08); }
.promo__cta-icon { width: 22px; height: 22px; display: inline-grid; }
.promo__cta-icon svg { width: 22px; height: 22px; }
.promo__link { display: block; margin-top: 14px; font-size: 13px; font-weight: 600; color: #ff8a95; text-decoration: none; }
.promo__link:hover { text-decoration: underline; }
.promo__hint { margin: 16px 0 0; font-size: 12px; color: var(--text-dim); }
@keyframes promo-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes promo-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.poster__tool-icon--yt { color: #ff4d4d; font-size: 13px; }
.poster__tool-icon--app svg { width: 16px; height: 16px; }

/* Scan progress: indeterminate bar + spinner; dimmed trade buttons while scanning. */
.scanbar { height: 3px; margin-top: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.scanbar__fill { width: 40%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--red-600), var(--red-300)); animation: scanbar 1s ease-in-out infinite; }
@keyframes scanbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.spinner { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: currentColor; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-busy::before { content: none; }
.is-dimmed { opacity: .38 !important; filter: saturate(.5); cursor: not-allowed !important; }
.panel__sub.is-ok { color: #6ee7a0; }
.panel__sub.is-error { color: var(--loss); }
.panel__sub.is-flash { animation: flash-ok 1.2s ease-out; }
@keyframes flash-ok { 0% { background: var(--win-soft); border-radius: 6px; } 100% { background: transparent; } }

/* Wide tables scroll inside their panel on small screens. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; margin: 0 -4px; padding: 0 4px; }
.table-scroll .table { min-width: 560px; }
.poster { overflow: hidden; }

/* Phones: compact tab strip that scrolls sideways without a visible bar. */
@media (max-width: 600px) {
  .tabs { overflow-x: auto; scrollbar-width: none; padding: 0 8px; gap: 0; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 10px 10px; font-size: 12.5px; white-space: nowrap; flex: 0 0 auto; }
  .tab__icon { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  /* Grid rows size to their content; wrapped flex lines stretched the fields. */
  .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px 12px; }
  .row > * { flex: initial; min-width: 0; }
  .sidebtns { flex-wrap: wrap; }
  .sidebtn { flex: 1 1 100%; }
  .rdrawer { width: min(100vw, 420px); }
}

/* Room for the "Scanner pick" badge so it never sits on the label. */
.sidebtn:has(.sidebtn__badge) { padding-top: 26px; }

/* Ticks / Stake / No. of trades stay side by side on every screen. */
.row--3, .row.row--3 { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.row--3 > .field { min-width: 0; }
.row--3 .input { min-width: 0; width: 100%; padding-left: 10px; padding-right: 8px; }
@media (max-width: 400px) { .row--3 .field__label { font-size: 9.5px; letter-spacing: .05em; } }

/* ---- ☰ menu, Telegram pill, settings drawer --------------------------- */
.burger { width: 40px; height: 40px; border-radius: 10px; display: grid; gap: 4px; place-content: center; cursor: pointer;
  background: transparent; border: 1px solid transparent; flex: 0 0 auto; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); }
.burger:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.tg-pill { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  color: #38bdf8; background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.45); }
.tg-pill svg { width: 16px; height: 16px; fill: currentColor; }
.sdrawer__backdrop { position: fixed; inset: 0; z-index: 120; background: rgba(6,3,4,.55); opacity: 0; pointer-events: none; transition: opacity .2s; }
.sdrawer__backdrop.is-on { opacity: 1; pointer-events: auto; }
.sdrawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 121; width: min(320px, 82vw); display: flex; flex-direction: column;
  background: var(--bg-shell); border-right: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateX(-100%); transition: transform .22s ease; }
.sdrawer--open { transform: none; }
.sdrawer__head { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.sdrawer__close { width: 36px; height: 36px; border-radius: 10px; font: inherit; font-size: 16px; color: var(--text); background: none; border: none; cursor: pointer; }
.sdrawer__close:hover { background: var(--accent-soft); }
.sdrawer__title { font-weight: 700; padding-left: 10px; border-left: 1px solid var(--line); }
.sdrawer__body { flex: 1; padding: 10px; display: grid; align-content: start; gap: 4px; }
.sdrawer__row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 10px; font: inherit; font-size: 14px;
  color: var(--text); text-decoration: none; background: none; border: none; cursor: pointer; text-align: left; }
.sdrawer__row:hover { background: var(--accent-soft); }
.sdrawer__icon { width: 20px; height: 20px; display: grid; place-items: center; font-size: 15px; color: var(--text-muted); flex: 0 0 auto; }
.sdrawer__icon svg { width: 16px; height: 16px; fill: currentColor; }
.sdrawer__icon--tg { color: #38bdf8; } .sdrawer__icon--yt { color: #ff4d4d; }
.sdrawer__label { flex: 1; }
.sdrawer__go { color: var(--text-dim); font-size: 13px; }
.sdrawer__switch { position: relative; width: 42px; height: 24px; border-radius: 999px; border: none; cursor: pointer; background: rgba(120,120,120,.35); transition: background .2s; flex: 0 0 auto; }
.sdrawer__switch.is-on { background: #2dd4bf; }
.sdrawer__knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sdrawer__switch.is-on .sdrawer__knob { transform: translateX(18px); }
.sdrawer__foot { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-top: 1px solid var(--line); font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-muted); }
.sdrawer__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--loss); }
.sdrawer__dot.is-on { background: #2dd4bf; box-shadow: 0 0 8px rgba(45,212,191,.7); }
@media (max-width: 560px) { .tg-pill { width: 30px; height: 30px; } }

/* ---- Light theme: surfaces that were hard-coded dark ------------------ */
:root[data-theme="light"] body { background: var(--bg-root); }
:root[data-theme="light"] .topbar { background: rgba(255,255,255,.9); }
:root[data-theme="light"] .tabs { background: rgba(255,255,255,.7); }
:root[data-theme="light"] .panel, :root[data-theme="light"] .tile, :root[data-theme="light"] .action, :root[data-theme="light"] .pcard { background: var(--bg-panel); }
:root[data-theme="light"] .poster { background: linear-gradient(150deg, rgba(225,29,52,.12), rgba(255,255,255,.9) 55%, rgba(255,138,61,.12)); }
:root[data-theme="light"] .input, :root[data-theme="light"] .select, :root[data-theme="light"] .banga-input, :root[data-theme="light"] .banga-select--block { background: #fff; color: var(--text); }
:root[data-theme="light"] .acct__chip, :root[data-theme="light"] .acct__menu, :root[data-theme="light"] .banga-menu { background: #fff; }
:root[data-theme="light"] .rdrawer__container { background: linear-gradient(180deg, #fff, #fbf5f6); }
:root[data-theme="light"] .promo__card { background: linear-gradient(135deg, #fff, #fbf1f2); }
:root[data-theme="light"] .banga-card, :root[data-theme="light"] .banga-stat, :root[data-theme="light"] .banga-act, :root[data-theme="light"] .banga-scan__row, :root[data-theme="light"] .banga-snap__row, :root[data-theme="light"] .banga-ladder__lvl, :root[data-theme="light"] .banga-trade, :root[data-theme="light"] .banga-session, :root[data-theme="light"] .banga-sched__item { background: #fff; }
:root[data-theme="light"] .banga-tabs, :root[data-theme="light"] .banga-seg, :root[data-theme="light"] .banga-sides, :root[data-theme="light"] .banga-switch, :root[data-theme="light"] .banga-guard, :root[data-theme="light"] .banga-preset, :root[data-theme="light"] .banga-market__opt, :root[data-theme="light"] .banga-quick__btn, :root[data-theme="light"] .banga-act__count, :root[data-theme="light"] .rdrawer__tool, :root[data-theme="light"] .rdrawer__kind, :root[data-theme="light"] .banga-tx__icon, :root[data-theme="light"] .banga-scan__best { background: rgba(225,29,52,.06); }
:root[data-theme="light"] .banga-top__logo, :root[data-theme="light"] .brand__mark { color: #fff; }
:root[data-theme="light"] .banga-title h1 { background: linear-gradient(135deg, #bd1328, #f8394f); -webkit-background-clip: text; background-clip: text; }
:root[data-theme="light"] .banga-run { color: #fff; }
:root[data-theme="light"] .banga-side--over.is-on, :root[data-theme="light"] .banga-side--even.is-on, :root[data-theme="light"] .banga-side--rise.is-on { color: #fff; }
:root[data-theme="light"] .is-win, :root[data-theme="light"] .banga-stat__value.is-win, :root[data-theme="light"] .tile__value--win, :root[data-theme="light"] .rdrawer__pl--win, :root[data-theme="light"] .rdrawer__stat-value--win, :root[data-theme="light"] .banga-log__line.kind-win, :root[data-theme="light"] .banga-tx__money .is-win, :root[data-theme="light"] .pct-hi, :root[data-theme="light"] .banga-active, :root[data-theme="light"] .rdrawer__kind--over, :root[data-theme="light"] .rdrawer__kind--rise, :root[data-theme="light"] .rdrawer__kind--even, :root[data-theme="light"] .rdrawer__kind--match, :root[data-theme="light"] .banga-tx__icon.is-win, :root[data-theme="light"] .banga-act__latest.kind-win .banga-act__msg, :root[data-theme="light"] .panel__sub.is-ok { color: #15803d; }
:root[data-theme="light"] .is-loss, :root[data-theme="light"] .banga-stat__value.is-loss, :root[data-theme="light"] .tile__value--loss, :root[data-theme="light"] .rdrawer__pl--loss, :root[data-theme="light"] .rdrawer__stat-value--loss, :root[data-theme="light"] .banga-log__line.kind-loss, :root[data-theme="light"] .banga-tx__money .is-loss, :root[data-theme="light"] .pct-lo, :root[data-theme="light"] .rdrawer__kind--under, :root[data-theme="light"] .rdrawer__kind--fall, :root[data-theme="light"] .rdrawer__kind--odd, :root[data-theme="light"] .rdrawer__kind--diff, :root[data-theme="light"] .banga-tx__icon.is-loss, :root[data-theme="light"] .banga-act__latest.kind-loss .banga-act__msg { color: #dc2626; }
:root[data-theme="light"] .banga-log__line.kind-warn, :root[data-theme="light"] .pct-mid, :root[data-theme="light"] .banga-warn, :root[data-theme="light"] .banga-banner, :root[data-theme="light"] .banga-act__latest.kind-warn .banga-act__msg { color: #b45309; }
:root[data-theme="light"] .note--ok { color: #166534; } :root[data-theme="light"] .note--warn { color: #92400e; } :root[data-theme="light"] .note--error { color: #b91c1c; }
:root[data-theme="light"] .badge, :root[data-theme="light"] .banga-badge, :root[data-theme="light"] .acct__badge--real, :root[data-theme="light"] .rdrawer__market { color: #bd1328; }
:root[data-theme="light"] .log { background: var(--bg-inset); }
:root[data-theme="light"] .aisb__icon, :root[data-theme="light"] .btn--primary, :root[data-theme="light"] .banga-launch, :root[data-theme="light"] .promo__cta { color: #fff; }
:root[data-theme="light"] .dstrip__chip { background: rgba(225,29,52,.1); color: #bd1328; }
:root[data-theme="light"] .banga-chart__svg polyline { filter: none; }

/* Transfer: Deriv-blue pill beside the account chip */
.acct { display: flex; align-items: center; gap: 8px; }
.acct__transfer { color: #fff; background: #2f7bff; border: 1px solid rgba(47,123,255,.6); border-radius: 999px; padding: 6px 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.acct__transfer:hover { filter: brightness(1.1); }
a.acct__option { text-decoration: none; }
@media (max-width: 560px) { .acct__transfer { padding: 5px 10px; font-size: 12px; } }

/* Balance in the account chip: bright and bold so it reads at a glance. */
.acct__chip-bal { color: #fff; font-weight: 700; font-size: 11.5px; letter-spacing: .01em; }
:root[data-theme="light"] .acct__chip-bal { color: var(--text); }

/* Banga Tone launcher: a slow pulsing glow says "free, click to trade". */
.banga-launch { position: relative; animation: banga-pulse 2.2s ease-in-out infinite; }
@keyframes banga-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248,57,79,.55), 0 0 14px rgba(248,57,79,.35); }
  50%      { box-shadow: 0 0 0 7px rgba(248,57,79,0), 0 0 26px rgba(248,57,79,.7); }
}
.banga-launch::after { content: 'FREE'; position: absolute; top: -8px; right: -6px; padding: 1px 5px; border-radius: 6px; font-size: 8.5px; font-weight: 800; letter-spacing: .08em;
  color: #06210f; background: linear-gradient(135deg, #16a34a, #4ade80); box-shadow: 0 0 8px rgba(34,197,94,.6); }
@media (prefers-reduced-motion: reduce) { .banga-launch { animation: none; box-shadow: 0 0 16px rgba(248,57,79,.5); } }
.field__hint { font-size: 12px; line-height: 1.5; color: var(--text-muted); padding: 8px 10px; border-radius: 8px; background: var(--warn-soft); border: 1px solid rgba(245,165,36,.3); }
.field__hint strong { color: #ffc46b; }
:root[data-theme="light"] .field__hint strong { color: #b45309; }

/* ---- password field with a gold show/hide eye ------------------------------ */
.pwd { position: relative; }
.pwd .input { width: 100%; padding-right: 48px; }
.pwd__eye { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 30px; height: 28px; padding: 0; display: grid; place-items: center; cursor: pointer;
  border-radius: 8px; color: #3a2405; border: 1px solid rgba(255, 226, 150, .55);
  background: linear-gradient(135deg, #fbe7a1 0%, #e6b94a 45%, #b8862a 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 0 10px rgba(230, 185, 74, .35), 0 2px 6px rgba(0,0,0,.35); transition: transform .12s, box-shadow .15s, filter .15s; }
.pwd__eye svg { width: 17px; height: 17px; }
.pwd__eye:hover { filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 0 14px rgba(230, 185, 74, .55), 0 2px 6px rgba(0,0,0,.35); }
.pwd__eye:active { transform: translateY(-50%) scale(.95); }
.pwd__eye.is-on { background: linear-gradient(135deg, #f8f0d0 0%, #f2d77a 50%, #d4a53a 100%); box-shadow: 0 0 0 2px rgba(230, 185, 74, .35), 0 0 14px rgba(230, 185, 74, .6); }
.pwd__eye:focus-visible { outline: 2px solid #f2d77a; outline-offset: 2px; }

/* ---- support chat (AI agent) ------------------------------------------------- */
.sup-fab-wrap { position: fixed; left: 16px; bottom: 16px; z-index: 1050; }
.sup-fab-wrap[hidden] { display: none !important; }
.sup-fab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 10px 12px; border-radius: 999px; border: 1px solid rgba(255, 226, 150, .45);
  background: linear-gradient(135deg, #2a1207, #4a1c10 55%, var(--red-700)); color: #fff; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.45), 0 0 14px rgba(230,185,74,.25); transition: transform .12s, box-shadow .15s; }
.sup-fab:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,.5), 0 0 18px rgba(230,185,74,.4); }
.sup-fab__icon { font-size: 16px; } .sup-fab.is-open .sup-fab__label { display: none; }
.sup-fab__badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #2dd4a3; color: #06210f; font-size: 11px; display: grid; place-items: center; }
.sup-fab__badge[hidden] { display: none !important; }
body.is-banga .sup-fab-wrap { bottom: 72px; }
body.drawer-open .sup-fab-wrap, body.drawer-open .sup { display: none !important; }
.sup { position: fixed; left: 16px; bottom: 70px; z-index: 1100; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 100px)); display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  background: var(--bg-panel); border: 1px solid var(--line-strong); box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.sup[hidden] { display: none !important; }
.sup__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: linear-gradient(135deg, #2a1207, #3a0e16 60%, var(--red-700)); color: #fff; }
.sup__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; letter-spacing: .08em; color: #3a2405; background: linear-gradient(135deg, #fbe7a1, #e6b94a 50%, #b8862a); box-shadow: 0 0 10px rgba(230,185,74,.45); }
.sup__title { flex: 1; font-size: 14px; font-weight: 800; line-height: 1.15; } .sup__title small { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: rgba(255,255,255,.75); }
.sup__dot { width: 7px; height: 7px; border-radius: 50%; background: #2dd4a3; box-shadow: 0 0 6px #2dd4a3; }
.sup__tool, .sup__close { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 8px; font-size: 18px; line-height: 1; cursor: pointer; }
.sup__tool { font-size: 15px; } .sup__tool:hover, .sup__close:hover { background: rgba(255,255,255,.2); }
.sup__list { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-inset); }
.sup__msg { display: flex; flex-direction: column; max-width: 88%; } .sup__msg--user { align-self: flex-end; align-items: flex-end; } .sup__msg--assistant { align-self: flex-start; }
.sup__bubble { padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; background: var(--bg-panel); border: 1px solid var(--line); color: var(--text); word-break: break-word; }
.sup__bubble p { margin: 0; } .sup__bubble p + p { margin-top: 8px; } .sup__bubble a { color: var(--red-300); }
.sup__msg--user .sup__bubble { background: linear-gradient(135deg, var(--red-500), var(--red-700)); color: #fff; border: 0; border-bottom-right-radius: 4px; }
.sup__msg--assistant .sup__bubble { border-bottom-left-radius: 4px; }
.sup__msg--system .sup__bubble { border-color: rgba(247,184,75,.5); background: rgba(247,184,75,.08); }
.sup__time { font-size: 10px; color: var(--text-faint); margin: 3px 4px 0; }
.sup__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sup__chip { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.sup__chip:hover { border-color: var(--red-300); }
.sup__typing { display: inline-flex; gap: 4px; padding: 12px 14px; } .sup__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim); animation: sup-bounce 1.2s infinite; }
.sup__typing span:nth-child(2) { animation-delay: .2s; } .sup__typing span:nth-child(3) { animation-delay: .4s; }
@keyframes sup-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }
.sup__compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--bg-panel); }
.sup__input { flex: 1; resize: none; min-height: 40px; max-height: 120px; padding: 10px 12px; border-radius: 12px; font: inherit; font-size: 13.5px; color: var(--text); background: var(--bg-inset); border: 1px solid var(--line-strong); }
.sup__input:focus { outline: none; border-color: var(--red-400); }
.sup__send { width: 40px; height: 40px; border-radius: 12px; border: 0; color: #fff; background: linear-gradient(135deg, var(--red-500), var(--red-700)); font-size: 16px; cursor: pointer; }
.sup__send:disabled { opacity: .5; cursor: default; }
.sup__foot { padding: 8px 12px 10px; font-size: 11.5px; color: var(--text-dim); text-align: center; background: var(--bg-panel); } .sup__foot a { color: var(--red-300); font-weight: 700; }
@media (max-width: 600px) { .sup { left: 8px; right: 8px; width: auto; bottom: 66px; height: min(70dvh, calc(100dvh - 90px)); } .sup-fab-wrap { left: 10px; bottom: 12px; } .sup-fab { padding: 9px 12px; } }

/* ---- cross-device mirror note ------------------------------------------------ */
.tiles-wrap { display: grid; gap: 8px; }
.mirror-note { padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #7ee8c6; background: rgba(45,212,163,.1); border: 1px solid rgba(45,212,163,.35); }
.mirror-note[hidden] { display: none !important; }

/* ---- admin: support conversations ------------------------------------------- */
.support-chat { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; background: var(--bg-inset); }
.support-chat summary { cursor: pointer; font-size: 13px; } .support-chat__last { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.support-chat__log { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.support-chat__msg { padding: 7px 10px; border-radius: 10px; font-size: 12.5px; max-width: 90%; white-space: pre-wrap; background: var(--bg-panel); border: 1px solid var(--line); }
.support-chat__msg--user { align-self: flex-end; background: var(--accent-soft); border-color: var(--accent-line); }

.paynote { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; white-space: pre-wrap; font: inherit; font-size: 12.5px; line-height: 1.5; background: var(--bg-inset); border: 1px solid var(--line-strong); color: var(--text); }
.rdrawer__pending, .banga-tx__pending { font-size: 11px; font-weight: 700; color: var(--text-dim); animation: settle-blink 1.2s ease-in-out infinite; }
.banga-tx__icon.is-pending { background: var(--bg-inset); color: var(--text-dim); }
@keyframes settle-blink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.sup__linkbtn { display: inline-block; margin: 4px 0; padding: 8px 12px; border-radius: 10px; background: #25d366; color: #06210f !important; font-weight: 800; text-decoration: none; }

/* ---- press feedback on execution buttons --------------------------------- */
.is-pressed { animation: press-pop .32s cubic-bezier(.2,.8,.2,1); }
@keyframes press-pop {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(248, 57, 79, .55); }
  35%  { transform: scale(.955); box-shadow: 0 0 0 6px rgba(248, 57, 79, .25); }
  100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(248, 57, 79, 0); }
}
.is-pressed.mbt__buy--green, .is-pressed.esc__load-btn.is-ready { animation-name: press-pop-green; }
@keyframes press-pop-green {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(45, 212, 163, .55); }
  35%  { transform: scale(.955); box-shadow: 0 0 0 6px rgba(45, 212, 163, .25); }
  100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(45, 212, 163, 0); }
}
.tcycle__toggle.is-pressed, .spb__switch.is-pressed, .esc__toggle-btn.is-pressed { animation-duration: .2s; }
@media (prefers-reduced-motion: reduce) { .is-pressed { animation: none; } }

/* ---- phone top bar: one row, nothing hidden under it (kept last so it wins) ---- */
@media (max-width: 560px) {
  .topbar { flex-wrap: nowrap !important; height: 56px !important; min-height: 56px; padding: 0 8px !important; gap: 6px !important; overflow: visible; }   /* visible: the account menu drops below the bar */
  .topbar .tg-pill, .topbar .conn, .topbar .acct__transfer, .topbar .acct__chip-id, .topbar .brand__name { display: none !important; }
  .topbar .topbar__spacer { display: block !important; flex: 1 1 0 !important; min-width: 4px; }
  .topbar .acct__chip { padding: 4px 8px 4px 5px !important; gap: 6px !important; }
  .topbar .acct__chip-bal { font-size: 11.5px; color: var(--text); font-weight: 700; }
  .topbar .btn--sm { padding: 6px 9px !important; font-size: 12px !important; white-space: nowrap; }
  .topbar .lbl-long { display: none !important; } .topbar .lbl-short { display: inline !important; }
}

/* ---- new version available ------------------------------------------------- */
.update-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1300; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px); padding: 10px 12px 10px 14px; border-radius: 12px;
  background: linear-gradient(135deg, #2a1207, #4a1c10 55%, var(--red-700)); color: #fff; border: 1px solid rgba(255,226,150,.45); box-shadow: 0 12px 30px rgba(0,0,0,.5); font-size: 13px; font-weight: 600; }
.update-bar__btn { padding: 7px 12px; border-radius: 8px; border: 0; font: inherit; font-weight: 800; color: #3a2405; background: linear-gradient(135deg, #fbe7a1, #e6b94a 50%, #b8862a); cursor: pointer; white-space: nowrap; }
.update-bar__later { background: none; border: 0; color: rgba(255,255,255,.7); font-size: 18px; line-height: 1; cursor: pointer; }

.sup-fab__x { position: absolute; top: -7px; right: -7px; z-index: 1051; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,226,150,.55); background: #1a0b08; color: #fbe7a1; font-size: 15px; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.sup-fab__x:hover { background: var(--red-600); color: #fff; }
.sdrawer__icon--sup { font-size: 15px; }
.acct__chip-bal.is-stale { color: #f7b84b; font-weight: 700; }

/* The Real/Demo menu must never be clipped by the bar and must stay on screen on phones. */
.acct__menu { max-width: calc(100vw - 16px); }
@media (max-width: 560px) { .acct__menu { position: fixed; left: 8px; right: 8px; top: 62px; width: auto; max-height: calc(100dvh - 80px); overflow-y: auto; } }

/* ---- Labs toast ------------------------------------------------------------ */
.labs-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 1300; max-width: calc(100vw - 32px); padding: 10px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #2a1207, #4a1c10 55%, var(--red-700)); border: 1px solid rgba(255,226,150,.45); box-shadow: 0 12px 30px rgba(0,0,0,.5); animation: promo-fade .2s ease-out; }
.brand { cursor: pointer; user-select: none; -webkit-user-select: none; }

/* ---- Risk Calculator --------------------------------------------------------- */
.rc { padding: 0; background: none; border: 0; box-shadow: none; }
.rc__card { max-width: 440px; margin: 0 auto; padding: 22px 20px; border-radius: 18px; background: var(--bg-panel); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); }
.rc__header { text-align: center; margin-bottom: 14px; } .rc__header h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; } .rc__header p { margin: 0; font-size: 12px; color: var(--text-dim); }
.rc__display { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; background: var(--bg-inset); border: 1px solid var(--line-strong); margin-bottom: 12px; }
.rc__currency { font-size: 26px; font-weight: 800; color: var(--red-300); }
.rc__display-input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font: inherit; font-size: 30px; font-weight: 800; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.rc__keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.rc__key { padding: 13px 0; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-inset); color: var(--text); font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.rc__key:active { transform: scale(.97); } .rc__key--clear { color: #f7b84b; } .rc__key--delete { color: #ff8b8b; }
.rc__results { display: grid; gap: 8px; }
.rc__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; } .rc__label { color: var(--text-dim); font-weight: 600; }
.rc__value { font-weight: 800; font-variant-numeric: tabular-nums; } .rc__value--green { color: #2dd4a3; } .rc__value--red { color: #ff8b8b; } .rc__value--amber { color: #f7b84b; }
.rc__divider { height: 1px; background: var(--line); margin: 6px 0; }
.rc__losses { width: 72px; padding: 6px 8px; border-radius: 8px; text-align: center; font: inherit; font-weight: 800; color: var(--text); background: var(--bg-inset); border: 1px solid var(--line-strong); }
.rc__sequence h3 { margin: 4px 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.rc__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.rc__pill { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--accent-soft); border: 1px solid var(--accent-line); font-variant-numeric: tabular-nums; }
.rc__info p { margin: 6px 0 0; font-size: 11.5px; color: var(--text-dim); line-height: 1.5; }

/* ---- Analysis Tool ------------------------------------------------------------ */
.at { display: grid; gap: 14px; }
.at-switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 10px; background: var(--bg-inset); border: 1px solid var(--line-strong); max-width: 360px; }
.at-switch { padding: 9px; border: 0; border-radius: 7px; background: none; color: var(--text-dim); font: inherit; font-weight: 800; cursor: pointer; }
.at-switch.active { color: #fff; background: var(--red-500); }
.at-topbar { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: end; }
.at-market-select { padding: 9px 12px; border-radius: 8px; font: inherit; font-weight: 700; color: var(--text); background: var(--bg-inset); border: 1px solid var(--line-strong); min-width: 0; }
.at-ticks-wrap { display: grid; gap: 4px; } .at-ticks-wrap label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.at-ticks-wrap input { width: 84px; padding: 8px; border-radius: 8px; text-align: center; font: inherit; font-weight: 800; color: var(--text); background: var(--bg-inset); border: 1px solid var(--line-strong); }
.at-price-display { display: grid; gap: 2px; text-align: right; } .at-price-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.at-price-value { font-size: 20px; font-weight: 800; color: var(--red-300); font-variant-numeric: tabular-nums; }
.at-circles { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.at-circle { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; gap: 1px; background: var(--bg-inset); border: 2px solid var(--line-strong); }
.at-circle__digit { font-size: 15px; font-weight: 800; text-align: center; } .at-circle__pct { font-size: 9px; color: var(--text-dim); text-align: center; }
.at-circle--highest { border-color: #2dd4a3; box-shadow: 0 0 10px rgba(45,212,163,.45); } .at-circle--second-highest { border-color: rgba(45,212,163,.6); }
.at-circle--lowest { border-color: var(--red-400); box-shadow: 0 0 10px rgba(248,57,79,.45); } .at-circle--second-lowest { border-color: rgba(248,57,79,.6); }
.at-circle--current { background: var(--accent-soft); }
.at-circle__pointer { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); font-size: 10px; color: var(--red-300); }
.at-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.at-card { border-radius: 12px; background: var(--bg-inset); border: 1px solid var(--line); overflow: hidden; }
.at-card__header { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.at-card__title { font-weight: 800; font-size: 13px; } .at-card__streak { font-size: 11.5px; font-weight: 700; color: var(--red-300); }
.at-card__body { padding: 10px 12px; display: grid; gap: 10px; }
.at-prediction { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.at-pred-btn { padding: 5px 0; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--bg-panel); color: var(--text-dim); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.at-pred-btn.active { color: #fff; background: var(--red-500); border-color: var(--red-300); }
.at-bars { display: grid; gap: 6px; }
.at-bar-row { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 8px; font-size: 12px; }
.at-bar-label { font-weight: 700; } .at-bar-pct { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.at-bar-track { height: 8px; border-radius: 999px; background: var(--bg-panel); overflow: hidden; } .at-bar-fill { height: 100%; border-radius: 999px; background: var(--red-500); transition: width .3s; }
.at-bar--over .at-bar-fill, .at-bar--match .at-bar-fill, .at-bar--even .at-bar-fill, .at-bar--rise .at-bar-fill { background: #2dd4a3; }
.at-bar--under .at-bar-fill, .at-bar--differ .at-bar-fill, .at-bar--odd .at-bar-fill, .at-bar--fall .at-bar-fill { background: var(--red-400); }
.at-sequence { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.at-seq-box { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.at-seq-box--over, .at-seq-box--match, .at-seq-box--even, .at-seq-box--rise { background: #16a34a; }
.at-seq-box--under, .at-seq-box--differ, .at-seq-box--odd, .at-seq-box--fall { background: var(--red-500); }
.at-more-btn { margin-left: auto; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-strong); background: none; color: var(--text-dim); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.qs-container { display: grid; gap: 12px; } .qs-container h1 { margin: 0; font-size: 20px; font-weight: 800; }
.qs-selector-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qs-selector-field { display: grid; gap: 4px; } .qs-selector-field label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.qs-dropdown { padding: 9px 12px; border-radius: 8px; font: inherit; font-weight: 700; color: var(--text); background: var(--bg-inset); border: 1px solid var(--line-strong); min-width: 0; }
.qs-latest-tick { font-size: 14px; font-weight: 700; } .qs-market-price { color: var(--red-300); font-variant-numeric: tabular-nums; margin-left: 4px; } .qs-market-last-digit { font-size: 22px; margin-left: 6px; color: #fff; }
.qs-result { padding: 12px 14px; border-radius: 10px; font-weight: 700; background: rgba(45,212,163,.12); border: 1px solid rgba(45,212,163,.4); color: #7ee8c6; }
.qs-analyse { padding: 13px 22px; border-radius: 10px; border: 0; font: inherit; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--red-500), var(--red-700)); cursor: pointer; }
.qs-analyse:disabled { opacity: .6; cursor: wait; }
.qs-dash { border-radius: 12px; background: #050a06; border: 1px solid rgba(45,212,163,.4); overflow: hidden; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.qs-dash__head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid rgba(45,212,163,.3); }
.qs-dot { width: 8px; height: 8px; border-radius: 50%; background: #2dd4a3; box-shadow: 0 0 8px #2dd4a3; animation: pulse 1s infinite; }
.qs-dash__title { margin: 0; font-size: 12px; color: #7ee8c6; }
.qs-dash__body { padding: 10px 12px; min-height: 160px; max-height: 260px; overflow: hidden; }
.qs-dash__line { font-size: 11.5px; color: #7ee8c6; } .qs-dash__matrix { font-size: 10px; color: rgba(45,212,163,.35); white-space: nowrap; overflow: hidden; }

/* ---- Charts ----------------------------------------------------------------- */
.charts { padding: 0; overflow: hidden; }
.charts__frame { display: block; width: 100%; height: min(78vh, 820px); border: 0; background: #0b0508; }
@media (max-width: 720px) {
  .at-topbar { grid-template-columns: 1fr 1fr; } .at-market-select { grid-column: 1 / -1; } .at-cards { grid-template-columns: 1fr; }
  .at-circles { grid-template-columns: repeat(5, 1fr); gap: 8px; } .qs-selector-grid { grid-template-columns: 1fr; } .charts__frame { height: 70vh; }
}

/* ---- Free Bots --------------------------------------------------------------- */
.fb__hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 22px 24px; margin-bottom: 14px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #12070a 0%, #3a0e16 55%, var(--red-500) 100%); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.fb__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.fb__hero h1 { margin: 4px 0 6px; font-size: 26px; font-weight: 800; } .fb__hero p { margin: 0; font-size: 13px; color: rgba(255,255,255,.75); max-width: 520px; }
.fb__count { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 12px; font-weight: 800; }
.fb__tools { display: grid; gap: 10px; margin-bottom: 14px; } .fb__search { max-width: 360px; }
.fb__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fb__chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-inset); color: var(--text-dim); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.fb__chip.is-on { color: #fff; background: var(--red-500); border-color: var(--red-300); }
.fb__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fb-card { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--bg-inset); border: 1px solid var(--line); }
.fb-card--featured { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.fb-card__head { display: flex; align-items: center; gap: 10px; } .fb-card__head h3 { margin: 0; font-size: 14px; font-weight: 800; }
.fb-card__icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #fff; background: linear-gradient(140deg, var(--red-400), var(--red-700)); flex: 0 0 auto; }
.fb-card__cat { font-size: 11px; color: var(--text-dim); font-weight: 700; }
.fb-card__badge { margin-left: auto; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #06210f; background: #2dd4a3; }
.fb-card__desc { margin: 0; font-size: 12.5px; color: var(--text-dim); line-height: 1.5; flex: 1; }
.fb__empty { color: var(--text-dim); } .fb__note { margin: 14px 0 0; font-size: 11.5px; color: var(--text-faint); }
.pill--labs { background: rgba(124,58,237,.18); color: #c4b5fd; border: 1px solid rgba(124,58,237,.4); }

/* ---- receipt upload (access page) and review queue (admin) ------------------- */
.rcpt { display: grid; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--bg-inset); border: 1px solid var(--line-strong); color: var(--text); }
.rcpt__head strong { display: block; font-size: 13px; } .rcpt__head p { margin: 3px 0 0; font-size: 11.5px; line-height: 1.45; }
.rcpt__file { padding: 8px; }
.rcpt__agree { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.4; cursor: pointer; }
.rcpt__agree input { margin-top: 2px; }
.rcpt__rows, .rcpt-admin__rows { display: grid; gap: 6px; }
.rcpt__row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; background: var(--bg-panel); border: 1px solid var(--line); font-size: 12.5px; flex-wrap: wrap; }
.rcpt__row--approved { border-color: rgba(34,197,94,.4); } .rcpt__row--declined { border-color: rgba(239,68,68,.4); }
.rcpt__row .muted { font-size: 11px; }
.pill--pending { background: rgba(247,184,75,.18); color: #f7b84b; } .pill--approved { background: var(--win-soft); color: #6ee7a0; } .pill--declined { background: var(--loss-soft); color: #ff8b8b; }
.btn--danger { border-color: rgba(239,68,68,.5); color: #ff8b8b; }

/* ---- in-app browser notice (Deriv sign-in needs Chrome / Safari) ----------- */
.inapp-note { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 16px; background: rgba(3,8,20,.75); backdrop-filter: blur(4px); }
.inapp-note__card { width: min(420px, 100%); padding: 22px 20px; border-radius: 14px; background: var(--bg-panel); border: 1px solid var(--accent-line); box-shadow: var(--shadow-lg); display: grid; gap: 10px; color: var(--text); }
.inapp-note__card strong { font-size: 16px; }
.inapp-note__card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.inapp-note__row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Forgot password link under the sign-in form */
.lock__forgot { justify-self: start; margin-top: -2px; padding: 0; border: none; background: none; color: var(--accent, #f8394f); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lock__forgot:disabled { opacity: .5; cursor: default; }
.lock__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -2px 0 4px; }
.lock__links .lock__forgot { margin-top: 0; }
.field[hidden] { display: none !important; }
.lock__signedin { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--bg-inset); border: 1px solid var(--line); font-size: 13px; }

/* Admin: Live member activity */
.mact { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.mact__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-inset); }
.mact__member { display: grid; gap: 2px; min-width: 0; }
.mact__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.mact__name strong { overflow-wrap: anywhere; }
.mact__meta { font-size: 12px; color: var(--text-dim); }
.mact__acct { padding: 1px 7px; border-radius: var(--r-pill); font-size: 10.5px; font-weight: 700; border: 1px solid var(--line-strong); color: var(--text-muted); }
.mact__acct--real { color: var(--win); border-color: rgba(34,197,94,.4); }
.mact__acct--demo { color: var(--warn); border-color: rgba(245,165,36,.4); }
.mact__status { flex: 0 0 auto; padding: 3px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 800; background: rgba(255,255,255,.05); color: var(--text-dim); }
.mact__status--trading { background: var(--win-soft); color: var(--win); }
.mact__updated { display: block; margin-top: 8px; font-size: 11.5px; color: var(--text-faint); }
