/* Broker page v2 (broker-v2.js): forexreviewth tokens (petrol / ink / white, dark-navy in dark mode).
   Everything is scoped to body.v2, so pages still on the old layout are untouched. No gradients, no side stripes,
   no nested cards: emphasis comes from order, size and one petrol accent. */
/* Dark (forexreviewth "dark-navy") is the default: the light page was too bright for the owner (2026-11-02).
   The header toggle sets data-theme="light" and remembers it (localStorage tfr-theme, same key as the main site). */
body.v2 {
    --v2-bg: #0c161d;
    --v2-surface: #172128;
    --v2-ink: #eaeff1;
    --v2-text: #c4cccf;
    --v2-muted: #9faaae;
    --v2-line: #2e3840;
    --v2-primary: #257488;
    --v2-primary-hover: #176274;
    --v2-link: #81bccd;
    --v2-wait: #f0ba59;
    --v2-done: #6bcf9d;
    --v2-focus: #81bccd;
    --v2-shot-filter: brightness(0.82);
    background: var(--v2-bg);
    background-image: none;
    color: var(--v2-ink);
    color-scheme: dark;
}
body.v2[data-theme="light"] {
    --v2-bg: #f4f7f8;
    --v2-surface: #ffffff;
    --v2-ink: #151c1f;
    --v2-text: #464f52;
    --v2-muted: #5c6568;
    --v2-line: #dce2e4;
    --v2-primary: #196b7f;
    --v2-primary-hover: #0a5667;
    --v2-link: #196b7f;
    --v2-wait: #986106;
    --v2-done: #1e7546;
    --v2-focus: #196b7f;
    --v2-shot-filter: none;
    color-scheme: light;
}

/* Header and footer */
body.v2 .header { background: var(--v2-surface); border-bottom: 1px solid var(--v2-line); box-shadow: none; backdrop-filter: none; }
/* display:block + gap 0: the old .logo is a flex row with a gap, which split "ForexReview" and "TH" */
body.v2 .v2-logo { display: block; gap: 0; color: var(--v2-ink); font-size: 1.15rem; font-weight: 700; text-decoration: none; }
body.v2 .v2-logo span { color: var(--v2-link); }
body.v2 .nav-links a { color: var(--v2-text); }
body.v2 .nav-links a:hover { color: var(--v2-link); }
body.v2 #lang-btn, .v2-theme-btn { min-width: 44px; min-height: 44px; border: 1px solid var(--v2-line); border-radius: 10px; background: var(--v2-surface); color: var(--v2-ink); box-shadow: none; cursor: pointer; }
.v2-theme-btn { display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; padding: 0; font: inherit; }
.v2-theme-btn svg { width: 20px; height: 20px; }
.v2-theme-btn:hover, body.v2 #lang-btn:hover { border-color: var(--v2-primary); }
body.v2 .footer { border-top: 1px solid var(--v2-line); background: var(--v2-surface); color: var(--v2-muted); }
body.v2 .toast { background: var(--v2-ink); color: var(--v2-bg); box-shadow: none; }

/* Page column */
body.v2 .container { max-width: 680px; margin: 0 auto; padding: 20px 16px 48px; }
body.v2 a:focus-visible, body.v2 button:focus-visible, body.v2 summary:focus-visible { outline: 3px solid var(--v2-focus); outline-offset: 2px; }
.v2-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--v2-text); font-size: 0.92rem; text-decoration: none; }
.v2-back svg { width: 18px; height: 18px; }
.v2-back:hover { color: var(--v2-link); }

/* Hero */
.v2-hero { padding: 12px 0 28px; border-bottom: 1px solid var(--v2-line); }
.v2-broker { margin: 0 0 6px; color: var(--v2-primary); font-weight: 700; letter-spacing: 0.02em; }
.v2-hero h1 { margin: 0 0 12px; color: var(--v2-ink); font-size: clamp(1.6rem, 5vw, 2.25rem); line-height: 1.3; text-wrap: balance; }
.v2-lead { margin: 0 0 16px; max-width: 60ch; color: var(--v2-text); font-size: 1.02rem; line-height: 1.75; }
.v2-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.v2-facts li { padding: 6px 12px; border: 1px solid var(--v2-line); border-radius: 999px; background: var(--v2-surface); color: var(--v2-ink); font-size: 0.88rem; }
.v2-inline-link { display: inline-block; min-height: 44px; padding: 10px 0; color: var(--v2-link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Steps: one numbered list, no card per step */
.v2-h2 { margin: 28px 0 8px; color: var(--v2-ink); font-size: 1.2rem; }
.v2-steps { margin: 0; padding: 0; list-style: none; }
.v2-step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--v2-line); }
.v2-step:last-child { border-bottom: 0; }
.v2-step-num { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--v2-primary); color: #fff; font-weight: 700; }
.v2-step h3 { margin: 4px 0 6px; color: var(--v2-ink); font-size: 1.08rem; line-height: 1.45; text-wrap: balance; }
.v2-step p { margin: 0 0 12px; max-width: 62ch; color: var(--v2-text); line-height: 1.7; }

/* Copy chips: the whole row copies */
.v2-fields { display: flex; flex-direction: column; gap: 14px; }
.v2-field { display: flex; flex-direction: column; gap: 6px; }
.v2-field-label { color: var(--v2-text); font-size: 0.9rem; }
.v2-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 10px 12px 10px 14px; border: 1px solid var(--v2-line); border-radius: 12px; background: var(--v2-surface); color: var(--v2-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s ease-out, background-color 0.15s ease-out; }
.v2-chip:hover { border-color: var(--v2-primary); }
.v2-chip-value { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.v2-chip-action { display: inline-flex; flex: none; align-items: center; gap: 6px; color: var(--v2-link); font-size: 0.85rem; font-weight: 600; }
.v2-chip-action svg { width: 18px; height: 18px; }
.v2-chip.is-copied { border-color: var(--v2-done); }
.v2-chip.is-copied .v2-chip-action { color: var(--v2-done); }

/* Screenshots of the Exness chat */
.v2-shots { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 14px; }
.v2-shots figure { margin: 0; overflow: hidden; border: 1px solid var(--v2-line); border-radius: 12px; background: #fff; }
/* Width sits on the figure: with it on the img, the figure kept the file's intrinsic width (white band). */
.v2-shots img { display: block; width: 100%; height: auto; filter: var(--v2-shot-filter); }
.v2-shots figure:first-child { width: 72px; }
.v2-shots figure:last-child { width: min(240px, 100%); }

/* Status */
.v2-status { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--v2-ink); }
.v2-status li { display: flex; align-items: center; gap: 10px; }
.v2-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.v2-dot-wait { background: var(--v2-wait); }
.v2-dot-done { background: var(--v2-done); }

/* Buttons */
.v2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 12px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color 0.15s ease-out, border-color 0.15s ease-out; }
.v2-btn svg { margin: 0 !important; }
.v2-btn-primary { background: var(--v2-primary); color: #fff; }
.v2-btn-primary:hover { background: var(--v2-primary-hover); }
.v2-btn-ghost { border: 1px solid var(--v2-line); background: var(--v2-surface); color: var(--v2-ink); }
.v2-btn-ghost:hover { border-color: var(--v2-primary); }

/* Rejected path and help */
.v2-reject { margin-top: 28px; border: 1px solid var(--v2-line); border-radius: 14px; background: var(--v2-surface); }
.v2-reject summary { display: flex; align-items: center; min-height: 52px; padding: 12px 16px; color: var(--v2-ink); font-weight: 600; cursor: pointer; }
.v2-reject-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 16px 18px; }
.v2-reject-body p { margin: 0; color: var(--v2-text); line-height: 1.7; }
.v2-reject-body .v2-field { width: 100%; }
.v2-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 16px 0; color: var(--v2-text); }
.v2-help p { margin: 0; }

@media (max-width: 480px) {
    .v2-step { grid-template-columns: 32px 1fr; gap: 12px; }
    .v2-step-num { width: 32px; height: 32px; }
    .v2-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .v2-chip, .v2-btn { transition: none; }
}

/* Arabic (right-to-left), 2026-11-16. app.js sets dir="rtl" on <html>; flex rows mirror on their own. */
html[lang="ar"] body { font-family: 'Prompt', 'Noto Sans Arabic', sans-serif; }
html[dir="rtl"] .v2-theme-btn { margin-right: 0; margin-left: 8px; }
html[dir="rtl"] .v2-chip { text-align: right; padding: 10px 14px 10px 12px; }
html[dir="rtl"] .v2-chip-value { unicode-bidi: plaintext; }
html[dir="rtl"] .v2-back svg { transform: scaleX(-1); }
