/* Trade Manager page (/trade-manager/) only. Kept in a file, not in the page, because the site's
   Content-Security-Policy allows styles from 'self' only. */
.stage .panel.tmp { width: 300px; }
@media (max-width: 900px) { .stage .panel.tmp { width: 300px; } }

/* --- Panel pictures (drawn by trade-manager.js) --- */
.tmp { width: 300px; background: #fff; border: 1px solid #E2DDD6; border-radius: 10px; font: 12px/1.35 "Segoe UI", sans-serif; color: #1F1A15; overflow: hidden; text-align: left; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); }
.tmp * { box-sizing: border-box; }
.shot .tmp { box-shadow: 0 30px 70px rgba(20, 20, 20, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04); }
.tmp .hd { height: 40px; display: flex; align-items: center; padding: 0 8px 0 10px; border-bottom: 1px solid #ECE8E2; }
.tmp .pb { width: 24px; height: 24px; border-radius: 7px; background: #F2A93B; display: flex; align-items: center; justify-content: center; font: 11px Bahnschrift, sans-serif; color: #2B1D05; flex: none; }
.tmp .nm { margin-left: 8px; line-height: 1.15; flex: 1; }
.tmp .nm b { font: 13px "Bahnschrift SemiBold", Bahnschrift, sans-serif; letter-spacing: 1.2px; display: flex; align-items: center; }
.tmp .nm small { display: block; font-size: 11px; color: #736A5F; }
.tmp .pro { background: #F2A93B; color: #2B1D05; font: 10px "Segoe UI", sans-serif; letter-spacing: 0; border-radius: 3px; padding: 0 4px; margin-left: 5px; }
.tmp .ic { display: flex; gap: 7px; }
.tmp .ic i { width: 11px; height: 11px; border: 1.5px solid #4A4239; border-radius: 3px; display: block; }
.tmp .tb { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 6px; border-bottom: 1px solid #ECE8E2; text-align: center; }
.tmp .tb span { padding: 7px 0; color: #4A4239; font-size: 12px; }
.tmp .tb span.on { color: #1F1A15; border-bottom: 3px solid #F2A93B; padding-bottom: 4px; }
.tmp .tb .cr { color: #E89B23; font-size: 10px; margin-left: 2px; padding: 0; }
.tmp .bd { padding: 12px; }
.tmp .rw { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.tmp .rw.tiles { gap: 0; margin-bottom: 8px; }
.tmp .rw.sb { justify-content: space-between; }
.tmp .lc { width: 34px; flex: none; color: #4A4239; display: flex; align-items: center; gap: 4px; }
.tmp .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.tmp .dot.red { background: #D63B42; }
.tmp .dot.green { background: #0E8A5F; }
.tmp .fl { height: 24px; border-radius: 6px; background: #F7F5F2; border: 1px solid #E2DDD6; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; flex: none; }
.tmp .w48 { width: 48px; } .tmp .w60 { width: 60px; } .tmp .w89 { width: 89px; } .tmp .w90 { width: 90px; } .tmp .w116 { width: 116px; } .tmp .w180 { width: 180px; }
.tmp .u { color: #736A5F; font-size: 11px; }
.tmp .mc { width: 58px; flex: none; text-align: right; }
.tmp .bt { height: 24px; border-radius: 6px; border: 1px solid #D6CFC5; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 11.5px; }
.tmp .grow { flex: 1; }
.tmp .bb { background: #E4F4EC; border-color: #B5DFCA; color: #0F6E4C; }
.tmp .bs { background: #FCE9EA; border-color: #F2BFC2; color: #AE3138; }
.tmp .trade { height: 36px; margin-top: 8px; flex-direction: column; line-height: 1.25; }
.tmp .trade .t1 { font-size: 12.5px; }
.tmp .trade .t2 { font-size: 11px; }
.tmp .sg { display: grid; background: #F7F5F2; border-radius: 6px; padding: 2px; text-align: center; font-size: 11.5px; margin-bottom: 8px; }
.tmp .sg.c2 { grid-template-columns: repeat(2, 1fr); } .tmp .sg.c3 { grid-template-columns: repeat(3, 1fr); } .tmp .sg.c4 { grid-template-columns: repeat(4, 1fr); }
.tmp .sg span { padding: 3px 0; color: #4A4239; border-radius: 5px; }
.tmp .sg span.s { background: #fff; color: #1F1A15; border: 1px solid #E2DDD6; }
.tmp .cd { background: #FBFAF8; border-radius: 7px; padding: 5px 8px; }
.tmp .cd.p6 { padding: 6px; }
.tmp .cd.line { margin-top: 6px; display: flex; justify-content: space-between; }
.tmp .cd.sig { display: flex; align-items: center; margin-bottom: 8px; }
.tmp .k { font-size: 11px; color: #736A5F; }
.tmp .k.sub { margin: 2px 0 6px; }
.tmp .k.row { border-top: 1px solid #ECE8E2; padding: 4px 0; }
.tmp .k.mt8 { margin-top: 8px; }
.tmp .g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tmp .g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.tmp .mt8 { margin-top: 8px; } .tmp .mt10 { margin-top: 10px; } .tmp .mb8 { margin-bottom: 8px; }
.tmp .sep { height: 1px; background: #ECE8E2; margin: 8px 0; }
.tmp .lbl { color: #4A4239; }
.tmp .costs { color: #4A4239; font-size: 11.5px; }
.tmp .ink { color: #1F1A15; }
.tmp .up { color: #0E8A5F; }
.tmp .down { color: #D63B42; }
.tmp .v13 { font-size: 13px; }
.tmp .link { color: #A86500; }
.tmp .live { font-size: 11px; color: #0E8A5F; }
.tmp .tile { height: 32px; border-radius: 7px; border: 1px solid #E2DDD6; display: flex; align-items: center; justify-content: space-between; padding: 0 9px; flex: 1; }
.tmp .tile.buy { background: #E4F4EC; border-color: #B5DFCA; color: #0F6E4C; }
.tmp .tile .lab { font-size: 11px; }
.tmp .mid { width: 60px; text-align: center; line-height: 1.2; flex: none; }
.tmp .px small { font-size: 11px; }
.tmp .px b { font-size: 15px; font-weight: 400; }
.tmp .posbox { border: 1px solid #ECE8E2; border-radius: 7px; padding: 7px 8px; }
.tmp .between { display: flex; justify-content: space-between; }
.tmp .tog { width: 30px; height: 17px; border-radius: 9px; background: #4A4239; position: relative; flex: none; }
.tmp .tog i { position: absolute; right: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }

/* --- Tab buttons of the panel tour --- */
.tm-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 44px; }
.tm-tabs button { font: 650 16px/1 var(--text); padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tm-tabs button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tm-tabs em { font-style: normal; font-size: 12px; padding: 3px 7px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.tm-tabs em.p { background: var(--gold-soft); color: var(--gold-ink); }
.tm-tabs button.on em { background: rgba(255, 255, 255, 0.16); color: var(--bg); }

/* --- PRO section --- */
.tm-ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); }
.tm-ticks li { display: flex; gap: 10px; }
.tm-ticks li::before { content: "\2713"; color: var(--gold-ink); font-weight: 800; }
.tm-tg { max-width: 560px; margin: 40px auto 0; background: #0E1621; border-radius: 20px; padding: 18px; }
.tm-msg { background: #182533; color: #F5F5F5; border-radius: 12px; padding: 10px 14px; font-size: 15px; line-height: 1.5; margin-top: 8px; }
.tm-msg:first-child { margin-top: 0; }
.tm-msg .nm { color: #E9A24B; font-weight: 600; }
.tm-msg s { color: #9FB3C8; }
.tm-msg .q { display: block; border-left: 3px solid #5DA9E9; padding-left: 8px; color: #9FB3C8; font-size: 13px; margin-bottom: 4px; }
.tm-note { color: #7d8ea0; font-size: 12px; text-align: right; margin: 10px 0 0; }

/* --- Get it, and the free / PRO table --- */
.tm-steps { margin-top: 48px; }
.tm-steps .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 15px/1 var(--head); }
.tm-compare td:nth-child(2), .tm-compare td:nth-child(3) { width: 18%; }
@media (max-width: 760px) {
  .tm-compare td:nth-child(2)::before { content: "Free: "; }
  .tm-compare td:last-child::before { content: "PRO: "; }
}

/* --- The video: a picture first; YouTube's privacy-enhanced player loads only on play --- */
.tm-video .head { margin-bottom: 36px; }
.tm-yt { position: relative; max-width: 1040px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #0b0c0f;
  box-shadow: 0 30px 70px rgba(20,20,20,.22), 0 0 0 1px rgba(0,0,0,.06); }
.tm-yt button { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.tm-yt button:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; border-radius: 22px; }
.tm-yt img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tm-yt button:hover img { transform: scale(1.015); }
.tm-yt .play { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 0 10px rgba(242,169,59,.22);
  display: grid; place-items: center; transition: transform .2s ease; }
.tm-yt button:hover .play { transform: scale(1.08); }
.tm-yt .play::after { content: ""; margin-left: 8px; border-style: solid; border-width: 18px 0 18px 30px; border-color: transparent transparent transparent var(--btn-ink); }
.tm-yt .len, .tm-yt .yt { position: absolute; bottom: 14px; padding: 6px 10px; border-radius: 8px; background: rgba(10,11,14,.82); color: #fff; font: 600 14px/1 var(--text); }
.tm-yt .len { right: 16px; }
.tm-yt .yt { left: 16px; font-size: 13px; }
.tm-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tm-yt-note { text-align: center; color: var(--ink-2); font-size: 14px; margin: 16px auto 0; max-width: 760px; }
.tm-chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px auto 0; max-width: 1040px; }
.tm-chapters span { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; color: var(--ink-2); }
.tm-chapters b { color: var(--ink); font-weight: 650; margin-right: 6px; }
.tm-watch { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--gold-ink); font-weight: 650; text-decoration: none; }
.tm-watch::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.tm-watch:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .tm-yt { border-radius: 16px; }
  .tm-yt .play { width: 68px; height: 68px; margin: -34px 0 0 -34px; box-shadow: 0 10px 28px rgba(0,0,0,.45), 0 0 0 7px rgba(242,169,59,.22); }
  .tm-yt .play::after { margin-left: 6px; border-width: 13px 0 13px 22px; }
  .tm-yt .len, .tm-yt .yt { bottom: 10px; font-size: 12px; padding: 5px 8px; }
  .tm-yt .len { right: 10px; }
  .tm-yt .yt { left: 10px; }
}

/* --- PRO section: button to the MQL5 Market and the prices under it --- */
.tm-pro-cta { margin-top: 22px; }
.tm-pro-note { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* --- Get it: the PRO card's three options (6 months, 1 year, buy once) --- */
.tm-opts { display: grid; gap: 12px; margin: 0 0 22px; }
.tm-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); }
.tm-opt span b { display: block; font: 700 16px/1.2 var(--head); }
.tm-opt span small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.tm-opt strong { font: 800 28px/1 var(--head); letter-spacing: -0.02em; }
.tm-opt.on { border-color: var(--gold); background: var(--gold-soft); }
.tm-badge { position: absolute; top: -11px; right: 14px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: var(--btn-ink); font: 700 11.5px/1 var(--head); font-style: normal; padding: 5px 10px; border-radius: 999px; letter-spacing: 0.02em; white-space: nowrap; }
