/* VTPWEB styles: NXW website look (Poppins, midnight / navy / royal / gold) on top of bslib */
@font-face { font-family: Poppins; src: url(../fonts/Poppins-Light.ttf); font-weight: 300; font-display: swap; }
@font-face { font-family: Poppins; src: url(../fonts/Poppins-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url(../fonts/Poppins-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url(../fonts/Poppins-Bold.ttf); font-weight: 700; font-display: swap; }
:root {
  --midnight: #070F22; --navy: #0B1A3A; --navy2: #0E2145; --royal: #0A4DB8; --sky: #2E9BFF; --gold: #D4A440; --gold2: #F0D890;
  --ink: #13203A; --muted: #5B6B84; --line: #E1E7F0; --paper: #F5F7FB; --cardbg: #fff;
  --orbit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 600' preserveAspectRatio='none'%3E%3Cg fill='none' stroke-width='1.3'%3E%3Cellipse cx='840' cy='330' rx='980' ry='230' transform='rotate(-10 840 330)' stroke='rgba(46,155,255,.22)'/%3E%3Cellipse cx='800' cy='310' rx='1180' ry='330' transform='rotate(-12 800 310)' stroke='rgba(212,164,64,.22)'/%3E%3Cellipse cx='760' cy='300' rx='1400' ry='430' transform='rotate(-8 760 300)' stroke='rgba(46,155,255,.12)'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-mode="dark"] { --ink: #DCE4F2; --muted: #9DB0CC; --line: #22355C; --paper: #0E1C3D; --cardbg: #10224A;
  --bs-body-bg: #0A1530; --bs-body-color: #DCE4F2; --bs-border-color: #22355C; --bs-secondary-color: #9DB0CC;
  --bs-tertiary-bg: #0E1C3D; --bs-secondary-bg: #0E1C3D; --bs-emphasis-color: #fff; }
html[data-mode="dark"] .form-control, html[data-mode="dark"] .form-select, html[data-mode="dark"] .selectize-input,
html[data-mode="dark"] .selectize-dropdown { background: #0A1530 !important; color: #DCE4F2 !important; border-color: #22355C !important; }
html[data-mode="dark"] .selectize-input input { color: #DCE4F2 !important; }
html[data-mode="dark"] .selectize-dropdown .active { background: #13295A !important; }
html[data-mode="dark"] .item { color: #DCE4F2; }
body { font-family: Poppins, "Segoe UI", Arial, sans-serif; color: var(--ink); font-size: 14.5px; background: var(--bs-body-bg, #fff); }
a { color: var(--royal); } html[data-mode="dark"] a { color: #6FB3FF; }
h1, h2, h3, h4, h5 { font-weight: 700; }

/* ---------- top bar (NXW .nav) ---------- */
.navbar { position: sticky; top: 0; z-index: 1030; background: rgba(7,15,34,.95) !important; backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212,164,64,.45); padding: 8px 0; }
.navbar .container-fluid { max-width: 100%; padding: 0 22px; }
.navbar-brand { padding: 0; margin-right: 18px; }
.navbar-brand .brand img { height: 46px; width: auto; display: block; }
.navbar .navbar-nav { flex: 1; gap: 2px; align-items: center; }
.navbar .nav-link { position: relative; color: #D5DEEC !important; font-weight: 500; font-size: 13.5px; letter-spacing: .6px;
  padding: 10px 12px !important; text-transform: uppercase; white-space: nowrap; transition: color .15s; }
.navbar .nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform .2s; }
.navbar .nav-link:hover { color: #fff !important; }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link.active { color: var(--gold2) !important; }
.navbar .navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar .navbar-toggler-icon { filter: invert(1); }
html[data-mode="light"] .navbar { background: rgba(255,255,255,.96) !important; border-bottom-color: rgba(212,164,64,.6); box-shadow: 0 2px 14px rgba(11,26,58,.06); }
html[data-mode="light"] .navbar .nav-link { color: var(--navy) !important; }
html[data-mode="light"] .navbar .nav-link:hover { color: var(--royal) !important; }
html[data-mode="light"] .navbar .nav-link.active { color: var(--royal) !important; }
html[data-mode="light"] .navbar .navbar-toggler-icon { filter: none; }

/* ---------- options menu (NXW .opts) ---------- */
.opts { position: relative; margin-left: 10px; }
.obtn { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 13px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07); color: #C8D4E8; cursor: pointer; }
.obtn:hover, .opts.open .obtn { border-color: var(--gold); color: var(--gold2); }
.obtn svg { width: 18px; height: 18px; } .olang { font-size: 11.5px; font-weight: 700; letter-spacing: .6px; }
.opanel { display: none; position: absolute; right: 0; top: calc(100% + 10px); width: 250px; background: #fff; color: var(--ink); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(7,15,34,.35); padding: 14px 16px 6px; z-index: 1060; }
.opts.open .opanel { display: block; }
.opanel h5 { margin: 0 0 10px; font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold); }
.orow { margin-bottom: 12px; } .orow > span { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 5px; }
.seg { display: flex; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 500; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.seg button svg { width: 14px; height: 14px; }
.seg button.on { background: var(--gold); color: var(--navy); font-weight: 700; }
html[data-mode="dark"] .opanel { background: #10224A; }
html[data-mode="light"] .obtn { background: #F1F4FA; color: var(--navy); border-color: var(--line); }
html[data-mode="light"] .seg button.on { background: var(--navy); color: var(--gold2); }

/* ---------- sidebar, cards, value boxes, buttons ---------- */
.bslib-sidebar-layout > .sidebar { background: var(--paper) !important; border-right: 1px solid var(--line) !important; }
.card { background: var(--cardbg); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 2px 10px rgba(11,26,58,.04); overflow: visible; }
html[data-mode="dark"] .card { box-shadow: 0 2px 14px rgba(0,0,0,.25); }
.card-header { background: transparent; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--navy); font-size: 15px; padding: 14px 18px;
  position: relative; border-radius: 18px 18px 0 0 !important; }
.card-header::before { content: ""; position: absolute; left: 18px; bottom: -1px; width: 34px; height: 2px; background: var(--gold); }
html[data-mode="dark"] .card-header { color: #fff; }
.card-body .shiny-input-container { margin-bottom: 0.5rem; }
.bslib-value-box.vtp-vb { border: 0; border-radius: 18px; color: #fff;
  background: var(--orbit) center / cover no-repeat, linear-gradient(135deg, var(--navy) 0%, #13306B 60%, var(--royal) 100%) !important; }
.bslib-value-box.vtp-vb .value-box-title { color: var(--gold2); font-size: 0.8rem; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700; }
.bslib-value-box.vtp-vb .value-box-value { color: #fff; font-size: 1.5rem !important; font-weight: 700; }
.bslib-value-box.vtp-vb.gold { background: var(--orbit) center / cover no-repeat, linear-gradient(135deg, #7A5A16 0%, var(--gold) 100%) !important; }
.bslib-value-box.vtp-vb.gold .value-box-title { color: var(--navy); } .bslib-value-box.vtp-vb.gold .value-box-value { color: var(--navy); }
.bslib-value-box.vtp-vb p, .bslib-value-box.vtp-vb .small { color: #C8D4E8; }
.btn { border-radius: 8px; font-weight: 600; letter-spacing: .3px; }
.btn-gold, .btn.gold { background: var(--gold); color: var(--navy); border: 0; box-shadow: 0 8px 22px rgba(212,164,64,.35); }
.btn-gold:hover, .btn.gold:hover { background: var(--gold2); color: var(--navy); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold2); }
html[data-mode="light"] .btn.ghost { color: var(--navy); border-color: rgba(11,26,58,.45); }
.table { --bs-table-bg: transparent; color: var(--ink); }
html[data-mode="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-bg-type: #0D1D40; color: var(--ink); }
.text-muted { color: var(--muted) !important; }

/* ---------- home page (NXW hero, sections, cards) ---------- */
html.on-home .bslib-sidebar-layout > .sidebar, html.on-home .bslib-sidebar-layout > .collapse-toggle { display: none !important; }
html.on-home .bslib-sidebar-layout { grid-template-columns: 0 1fr !important; --_sidebar-width: 0px !important; }
html.on-home .bslib-sidebar-layout > .main { padding: 0 !important; grid-column: 1 / 3 !important; }
.band { color: #fff; background: var(--orbit) center / cover no-repeat, radial-gradient(1100px 500px at 50% 40%, #173A7A 0%, var(--navy) 55%, var(--midnight) 100%); }
html[data-mode="light"] .band { color: var(--navy); background: var(--orbit) center / cover no-repeat, radial-gradient(1100px 500px at 50% 40%, #FFFFFF 0%, #EEF3FB 50%, #DCE7F7 100%); }
.hero { padding: 80px 22px 92px; text-align: center; }
.hero img.logo { width: 330px; max-width: 80%; display: block; margin: 0 auto 26px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.45)); }
.hero h1 { font-weight: 700; font-size: 44px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.5px; }
.hero h1 b { color: var(--gold); }
.hero p { font-weight: 300; font-size: 18px; max-width: 760px; margin: 0 auto 30px; color: #D5DEEC; }
html[data-mode="light"] .hero p { color: #44546E; } html[data-mode="light"] .hero h1 b { color: #B07F1F; }
.hero .btn { padding: 12px 24px; margin: 0 5px; }
.sec { padding: 64px 22px; } .sec .wrap { max-width: 1200px; margin: 0 auto; }
.kick { font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.sec h2 { font-size: 30px; font-weight: 700; margin: 6px 0 8px; color: var(--navy); line-height: 1.25; }
.sec h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin-top: 12px; border-radius: 2px; }
html[data-mode="dark"] .sec h2 { color: #fff; }
.sec .lead { color: var(--muted); max-width: 760px; font-size: 15.5px; }
.sec.alt { background: var(--paper); }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 28px; }
.hcard { position: relative; display: flex; flex-direction: column; background: var(--cardbg); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  box-shadow: 0 2px 10px rgba(11,26,58,.04); transition: transform .2s, box-shadow .2s; text-decoration: none; color: inherit; cursor: pointer; overflow: hidden; }
.hcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--royal), var(--sky), var(--gold)); opacity: 0; transition: opacity .2s; }
.hcard:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11,26,58,.12); } .hcard:hover::before { opacity: 1; }
.hcard .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--royal), var(--sky)); }
.hcard h3 { margin: 14px 0 8px; font-size: 18px; font-weight: 700; color: var(--navy); }
html[data-mode="dark"] .hcard h3 { color: #fff; }
.hcard p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.hcard .more { margin-top: auto; font-weight: 600; font-size: 13.5px; color: var(--royal); }
html[data-mode="dark"] .hcard .more { color: #6FB3FF; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 40px 22px; max-width: 1200px; margin: 0 auto; text-align: center; }
.stats b { display: block; font-size: 34px; color: var(--gold); } .stats span { color: #C8D4E8; font-size: 14px; }
html[data-mode="light"] .stats span { color: #44546E; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } .hero h1 { font-size: 32px; } }

/* ---------- footer (NXW footer) ---------- */
.vtp-footer { background: var(--midnight); color: #AFC0DA; border-top: 1px solid rgba(212,164,64,.35); margin-top: 30px; }
.vtp-footer .in { max-width: 1200px; margin: 0 auto; padding: 40px 22px 24px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; font-size: 14px; }
.vtp-footer .flogo { width: 170px; }
.vtp-footer p { margin: 12px 0 0; }
.vtp-footer h4 { color: #fff; margin: 0 0 12px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.vtp-footer a { color: #AFC0DA !important; text-decoration: none; display: block; margin: 5px 0; } .vtp-footer a:hover { color: var(--gold2) !important; }
.vtp-footer small { display: block; max-width: 1200px; margin: 0 auto; padding: 16px 22px 26px; color: #7F92B1; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; }
html[data-mode="light"] .vtp-footer { background: #EEF2F9; color: #4A5A75; } html[data-mode="light"] .vtp-footer h4 { color: var(--navy); }
html[data-mode="light"] .vtp-footer a { color: #4A5A75 !important; } html[data-mode="light"] .vtp-footer small { color: #6B7A93; border-top-color: var(--line); }
@media (max-width: 800px) { .vtp-footer .in { grid-template-columns: 1fr; } }

/* home hero: six platform buttons in one compact row (All, Equity, Commodity, Forex, Crypto, Education);
   icon on the left, name beside it, one colour each */
.assets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; max-width: 1120px; margin: 14px auto 0; text-align: left; }
.abox { --c: var(--gold); --c2: var(--gold2); position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: #fff !important;
  min-height: 62px; padding: 10px 12px; border-radius: 12px; overflow: hidden; cursor: pointer; border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 26%, transparent) 0%, rgba(7,15,34,.72) 75%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 18px rgba(0,0,0,.22); transition: transform .2s, box-shadow .2s, border-color .2s; }
.abox::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--c), var(--c2)); }
.abox::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 35%, transparent) 0%, transparent 70%); opacity: .55; transition: opacity .2s; pointer-events: none; }
.abox:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 12px 28px color-mix(in srgb, var(--c) 35%, transparent); }
.abox:hover::after { opacity: 1; }
.abox .aic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 5px 14px color-mix(in srgb, var(--c) 45%, transparent); }
.abox .aic svg { width: 19px; height: 19px; }
.abox .atx { min-width: 0; }
.abox .atx b { display: block; font-size: 13px; line-height: 1.2; letter-spacing: .9px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abox .aar { display: none; }
.abox.all { --c: #D4A440; --c2: #F0D890; } .abox.equity { --c: #2E6BFF; --c2: #7FB2FF; } .abox.commodity { --c: #E0702E; --c2: #FFB27A; }
.abox.forex { --c: #10B981; --c2: #6EE7B7; } .abox.crypto { --c: #8B5CF6; --c2: #C4B5FD; } .abox.education { --c: #E11D74; --c2: #F9A8D4; }
.abox.soon { opacity: .8; } .abox.soon:hover { transform: none; box-shadow: none; }
.abox.soon .atx::after { content: "COMING SOON"; display: block; margin-top: 2px; font-size: 8.5px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
html[data-mode="light"] .abox { color: var(--navy) !important; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, #fff) 0%, #fff 75%);
  box-shadow: 0 3px 12px rgba(11,26,58,.08); }
html[data-mode="light"] .abox .atx b { color: var(--navy); }
@media (max-width: 1200px) { .assets { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px; } }
@media (max-width: 600px) { .assets { grid-template-columns: repeat(2, minmax(0, 1fr)); } .abox { padding: 9px 10px; } .abox .atx b { font-size: 12px; letter-spacing: .5px; } }

/* platform badge beside the logo */
.brandwrap { display: flex; align-items: center; gap: 14px; }
.plat { position: relative; }
.plat-badge { --c: #D4A440; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: .12em;
  padding: 7px 12px; border-radius: 8px; cursor: pointer; color: #fff; border: 1px solid var(--c);
  background: color-mix(in srgb, var(--c) 28%, transparent); }
.plat-badge::after { content: ""; border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; }
.plat-badge.equity { --c: #2E6BFF; } .plat-badge.commodity { --c: #E0702E; } .plat-badge.forex { --c: #10B981; } .plat-badge.crypto { --c: #8B5CF6; }
html[data-mode="light"] .plat-badge { color: var(--navy); background: color-mix(in srgb, var(--c) 14%, #fff); }
.plat-menu { display: none; position: absolute; left: 0; top: calc(100% + 18px); min-width: 220px; z-index: 1060; background: #121a4c; border: 1px solid rgba(241,205,120,.35);
  border-radius: 12px; padding: 8px; box-shadow: 0 18px 44px rgba(7,15,34,.35); }
.plat.open .plat-menu { display: block; }
.plat-menu a { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; border-radius: 8px; padding: 10px 14px; font-size: 13.5px;
  font-weight: 700; letter-spacing: .08em; cursor: pointer; }
.plat-menu a svg { width: 18px; height: 18px; }
.plat-menu a.all svg { color: #D4A440; } .plat-menu a.equity svg { color: #7FB2FF; } .plat-menu a.commodity svg { color: #FFB27A; }
.plat-menu a.forex svg { color: #6EE7B7; } .plat-menu a.crypto svg { color: #C4B5FD; }
.plat-menu a:hover { background: rgba(241,205,120,.12); color: #f1cd78 !important; } .plat-menu a.cur { background: #e0a43a; color: #0d1450 !important; }
.plat-menu a.cur svg { color: #0d1450; }
html[data-mode="light"] .plat-menu { background: #fff; border-color: #C9D3E3; } html[data-mode="light"] .plat-menu a { color: var(--navy) !important; }

/* ---------- search and contact icons (NXW .sbox, .cbtn) ---------- */
.tools { display: flex; align-items: center; gap: 10px; }
.sbox { position: relative; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; transition: width .25s, padding .25s; }
.sbox.open { cursor: auto; width: 240px; padding: 0 12px; justify-content: flex-start; border-color: var(--gold); background: rgba(255,255,255,.12); }
.sbox svg { width: 16px; height: 16px; color: #C8D4E8; flex: 0 0 16px; } .sbox:hover svg { color: var(--gold2); }
.sbox input { width: 0; padding: 8px 0; background: transparent; border: 0; outline: none; color: #fff; font: inherit; font-size: 13px; }
.sbox.open input { width: 100%; padding: 8px; } .sbox input::placeholder { color: #8FA2C0; }
.sres { display: none; position: absolute; right: 0; top: calc(100% + 10px); width: 380px; max-height: 440px; overflow: auto; background: #fff; color: var(--ink);
  border-radius: 14px; box-shadow: 0 18px 44px rgba(7,15,34,.35); padding: 6px; z-index: 1060; }
.sres.on { display: block; }
.sres a { display: block; padding: 9px 11px; border-radius: 9px; text-decoration: none; color: var(--ink) !important; cursor: pointer; }
.sres a:hover, .sres a.sel { background: var(--paper); }
.sres a b { display: block; font-size: 14px; } .sres a span { display: block; font-size: 12.5px; color: var(--muted); }
.sres a em { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; color: var(--gold); text-transform: uppercase; }
.sres mark { background: rgba(212,164,64,.35); color: inherit; border-radius: 3px; padding: 0; }
.sres .none { padding: 10px; color: var(--muted); font-size: 13px; }
.cbtn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07); color: #C8D4E8; cursor: pointer; padding: 0; }
.cbtn:hover { border-color: var(--gold); color: var(--gold2); } .cbtn svg { width: 18px; height: 18px; }
html[data-mode="dark"] .sres { background: #10224A; }
html[data-mode="light"] .sbox, html[data-mode="light"] .cbtn { background: #F1F4FA; border-color: var(--line); color: var(--navy); }
html[data-mode="light"] .sbox svg { color: #6B7A93; } html[data-mode="light"] .sbox input { color: var(--ink); }
html[data-mode="light"] .sbox:hover svg, html[data-mode="light"] .cbtn:hover { color: var(--royal); }
.modal-content { border-radius: 18px; } .modal-title { font-weight: 700; }

/* ---------- top bar, final NXW values (full width, menu on the left, icons on the right, 82px) ---------- */
.navbar { background: #0a1238 !important; border-bottom: 1px solid #c9a227; backdrop-filter: none; padding: 0; min-height: 82px; }
.navbar .container-fluid { padding: 0 28px; gap: 22px; min-height: 82px; align-items: stretch; flex-wrap: nowrap; }
.navbar-brand { display: flex; align-items: center; align-self: center; margin-right: 0; } .navbar-brand .brand img { height: 44px; }
.navbar .navbar-collapse { align-items: stretch; }
.navbar .navbar-nav { gap: 0; align-items: stretch; }
.navbar .nav-item { display: flex; align-items: stretch; }
.navbar .nav-link { display: flex; align-items: center; height: 82px; margin: 0 !important; padding: 0 27px !important; font-size: 15.5px; font-weight: 700; letter-spacing: .08em;
  color: #e8ebf7 !important; text-transform: uppercase; border-bottom: 2px solid transparent; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: #e9b54a !important; }
.navbar .nav-link::after { display: none; content: ""; position: absolute; left: 27px; right: 27px; top: calc(50% + 13px); bottom: auto; height: 2px;
  border-radius: 2px; background: #e9b54a; transform: none; }
.navbar .nav-link.active::after { display: block; }
.navbar .nav-item:has(.tools), .navbar .nav-item:has(.opts) { align-items: center; }
.tools { gap: 12px; } .opts { margin-left: 12px; }
.sbox, .obtn, .cbtn { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 8px; border-color: rgba(255,255,255,.3) !important; color: #fff; }
.obtn { padding: 0; justify-content: center; } .olang { display: none; }
.sbox.open { width: 260px; flex-basis: 260px; }
.sbox:hover, .obtn:hover, .cbtn:hover, .opts.open .obtn, .sbox.open { border-color: #e9b54a !important; color: #e9b54a; } .sbox:hover svg { color: #e9b54a; }
.sbox svg { width: 19px; height: 19px; flex-basis: 19px; color: #fff; } .cbtn svg, .obtn svg { width: 21px; height: 21px; }
.opanel, .sres { top: calc(100% + 18px); }
html[data-mode="dark"] .opanel, html[data-mode="dark"] .sres { background: #121a4c; border: 1px solid rgba(241,205,120,.35); }
html[data-mode="light"] .navbar { background: #fff !important; border-bottom-color: #c9a227; box-shadow: none; }
html[data-mode="light"] .navbar .nav-link { color: var(--navy) !important; }
html[data-mode="light"] .navbar .nav-link:hover, html[data-mode="light"] .navbar .nav-link.active { color: #b8862a !important; }
html[data-mode="light"] .navbar .nav-link::after { background: #c9a227; }
html[data-mode="light"] .sbox, html[data-mode="light"] .obtn, html[data-mode="light"] .cbtn { border-color: #C9D3E3 !important; color: var(--navy); background: #fff; }
html[data-mode="light"] .sbox svg { color: var(--navy); }
html[data-mode="light"] .sbox:hover, html[data-mode="light"] .obtn:hover, html[data-mode="light"] .cbtn:hover, html[data-mode="light"] .opts.open .obtn { border-color: #c9a227 !important; color: #b8862a; }
@media (min-width: 992px) and (max-width: 1280px) {
  .navbar .container-fluid { padding: 0 14px; gap: 12px; } .navbar-brand .brand img { height: 38px; }
  .navbar .nav-link { padding: 0 19px !important; font-size: 14px; letter-spacing: .03em; }
  .navbar .nav-link::after { left: 19px; right: 19px; }
  .tools { gap: 7px; } .sbox, .obtn, .cbtn { width: 40px; height: 40px; flex-basis: 40px; }
}
@media (max-width: 991px) {
  .navbar .container-fluid { flex-wrap: wrap; padding: 14px 20px; }
  .navbar .navbar-nav { align-items: flex-start; } .navbar .nav-link { padding: 10px 6px !important; } .navbar .nav-link::after { display: none !important; }
}
.navbar .nav-underline .nav-link, .navbar .nav-underline .nav-link.active { border-bottom-color: transparent !important; font-weight: 700; }
.navbar .container-fluid > .navbar-brand, .navbar .navbar-brand { align-self: center !important; margin-top: auto; margin-bottom: auto; padding: 0; height: auto; }
.navbar .navbar-header { display: flex; align-items: center; align-self: stretch; }

/* ---------- Markets overview and details, Resources pages (as the NXW monitor) ---------- */
html.no-side .bslib-sidebar-layout > .sidebar, html.no-side .bslib-sidebar-layout > .collapse-toggle { display: none !important; }
html.no-side .bslib-sidebar-layout { grid-template-columns: 0 1fr !important; --_sidebar-width: 0px !important; }
html.no-side .bslib-sidebar-layout > .main { grid-column: 1 / 3 !important; }
html.no-side:not(.on-home) .bslib-sidebar-layout > .main { padding: 34px clamp(16px, 4vw, 56px) 40px !important; }
.mk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 0 0 22px; }
.mk-kick { color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.mk-title { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; font-size: 46px; line-height: 1.1;
  margin: 6px 0 0; color: #fff; padding-bottom: 10px; position: relative; }
.mk-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.mk-upd { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 10px; background: rgba(46,155,255,.12);
  border: 1px solid rgba(46,155,255,.45); color: #9FD0FF; font-size: 12px; letter-spacing: .14em; font-weight: 600; }
.mk-upd b { color: #fff; letter-spacing: .04em; font-size: 14px; }
.mk-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mk-meta span { font-size: 12px; padding: 4px 11px; border-radius: 20px; border: 1px solid #2A4475; color: #C9D6EC; letter-spacing: .04em; }
.mk-back { display: inline-block; margin-bottom: 14px; color: var(--sky) !important; font-weight: 600; text-decoration: none; letter-spacing: .04em; }
.mk-back:hover { color: var(--gold2) !important; }
.mk-card { background: #10224A; border: 1px solid #22355C; border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.mk-card h3 { font-size: 17px; font-weight: 700; letter-spacing: .08em; color: #fff; margin: 0 0 4px; }
.mk-ctop { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.mk-ctop p { margin: 0; color: var(--muted); font-size: 13px; }
.mk-act { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; } .mk-act .form-group { margin: 0; }
.mk-act .btn { height: 38px; display: inline-flex; align-items: center; gap: 6px; }
.mk-ctop .shiny-options-group { display: flex; gap: 4px; } .mk-ctop .form-group { margin: 0; }
.mk-ctop .radio-inline { margin: 0 !important; padding: 0; } .mk-ctop .radio-inline input { display: none; }
.mk-ctop .radio-inline span { display: inline-block; padding: 5px 13px; border-radius: 8px; border: 1px solid #2A4475; font-size: 12.5px; font-weight: 600; cursor: pointer; color: #C9D6EC; }
.mk-ctop .radio-inline input:checked + span { background: var(--gold); border-color: var(--gold); color: #0A1530; }
.mk-pill { font-size: 12px; font-weight: 600; letter-spacing: .08em; padding: 6px 12px; border-radius: 20px; background: rgba(212,164,64,.14); color: var(--gold2); border: 1px solid rgba(212,164,64,.4); text-transform: uppercase; }

/* DataTables in NXW colours */
table.dataTable.mk-dt { color: var(--ink); border-collapse: separate !important; border-spacing: 0; width: 100% !important; }
table.dataTable.mk-dt thead th { background: #0E2145; color: var(--gold2); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid #2A4475 !important; padding: 11px 10px !important; white-space: nowrap; }
table.dataTable.mk-dt thead tr:first-child th:first-child { border-top-left-radius: 10px; } table.dataTable.mk-dt thead tr:first-child th:last-child { border-top-right-radius: 10px; }
table.dataTable.mk-dt thead td { background: #0C1C3D; padding: 6px 6px !important; border-bottom: 1px solid #22355C !important; }
table.dataTable.mk-dt thead td input, table.dataTable.mk-dt thead td select { width: 100%; background: #0A1530; color: #DCE4F2; border: 1px solid #2A4475; border-radius: 6px; font-size: 12px; padding: 4px 7px; }
table.dataTable.mk-dt thead td .form-group { margin: 0; }
table.dataTable.mk-dt tbody td { border-top: 1px solid #1A2E57 !important; padding: 9px 10px !important; font-size: 13.5px; vertical-align: middle; background: transparent !important; box-shadow: none !important; }
table.dataTable.mk-dt.hover tbody tr:hover td { background: rgba(46,155,255,.07) !important; }
table.dataTable.mk-dt tbody tr { background: transparent !important; }
.mk-dt .up { color: #34D399; font-weight: 600; } .mk-dt .dn { color: #F87171; font-weight: 600; }
.chip { display: inline-block; min-width: 76px; text-align: center; padding: 3px 9px; border-radius: 7px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chip.up { background: rgba(16,185,129,.16); color: #34D399 !important; border: 1px solid rgba(16,185,129,.4); }
.chip.dn { background: rgba(239,68,68,.14); color: #F87171 !important; border: 1px solid rgba(239,68,68,.4); }
.mk-dt td.dt-right, .mk-dt td.dt-center { font-variant-numeric: tabular-nums; }
.mk-name { background: transparent; border: 1px solid rgba(46,155,255,.6); color: #9FD0FF; border-radius: 20px; padding: 4px 13px; font-size: 12.5px;
  font-weight: 600; letter-spacing: .04em; cursor: pointer; white-space: nowrap; transition: all .15s; }
.mk-name:hover { background: var(--sky); color: #fff; border-color: var(--sky); }
.dataTables_wrapper .mk-tools { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.dataTables_wrapper .dataTables_filter input { background-color: #0A1530 !important; color: #DCE4F2; border: 1px solid #2A4475 !important; border-radius: 9px !important; padding: 7px 12px 7px 34px !important; width: 260px !important; margin: 0 !important; background-image: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='6' fill='none' stroke='%239DB0CC' stroke-width='2.4'/%3E%3Cpath d='M15 15l6 6' stroke='%239DB0CC' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important; background-size: 16px !important; background-position: 11px center !important; }
.dataTables_wrapper .dataTables_filter input:focus { outline: none; border-color: var(--gold) !important; }
.dataTables_wrapper .mk-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.dataTables_wrapper .dataTables_info { color: var(--muted) !important; padding: 0 !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button { color: #C9D6EC !important; border-radius: 6px !important; border: 1px solid transparent !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--gold) !important; color: #0A1530 !important; border-color: var(--gold) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: #13295A !important; color: #fff !important; }
.dataTables_wrapper .noUi-connect { background: var(--gold); }

.mk-notice { border: 1px solid rgba(212,164,64,.35); border-left: 4px solid var(--gold); background: rgba(212,164,64,.07); border-radius: 10px;
  padding: 14px 18px; margin: 4px 0 24px; font-size: 13px; color: #C9D6EC; line-height: 1.6; }
.mk-notice > b { display: block; color: var(--gold); letter-spacing: .2em; font-size: 11.5px; margin-bottom: 6px; }
.mk-notice p { margin: 0 0 6px; } .mk-notice ul { margin: 0 0 6px; padding-left: 18px; }

.mk-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.mk-kpi { background: #10224A; border: 1px solid #22355C; border-radius: 12px; padding: 12px 15px; }
.mk-kpi span { display: block; font-size: 11px; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.mk-kpi b { display: block; font-size: 19px; margin-top: 4px; color: #fff; font-variant-numeric: tabular-nums; }
.mk-kpi.up b { color: #34D399; } .mk-kpi.dn b { color: #F87171; } .mk-kpi.big { border-color: rgba(212,164,64,.5); } .mk-kpi.big b { color: var(--gold2); }
.mk-tbl { width: 100%; font-size: 13.5px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.mk-tbl th { color: var(--gold2); font-size: 11.5px; letter-spacing: .1em; padding: 7px 6px; border-bottom: 1px solid #2A4475; }
.mk-tbl td { padding: 7px 6px; border-top: 1px solid #1A2E57; }
.mk-tbl th:not(:first-child), .mk-tbl td:not(:first-child) { text-align: right; }

.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-bottom: 18px; }
.rs-card { background: #10224A; border: 1px solid #22355C; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, transform .15s; }
.rs-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.rs-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rs-top b { color: #fff; letter-spacing: .05em; font-size: 14.5px; }
.rs-grp { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; font-weight: 700; white-space: nowrap; }
.rs-grp.marketdata { background: rgba(46,155,255,.15); color: #9FD0FF; } .rs-grp.trading { background: rgba(16,185,129,.15); color: #6EE7B7; }
.rs-grp.reference { background: rgba(139,92,246,.18); color: #C4B5FD; }
.rs-card p { margin: 0; font-size: 13px; color: #C9D6EC; line-height: 1.5; }
.rs-card small { color: var(--muted); font-size: 11.5px; }
.rs-num { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); } .rs-num b { color: var(--gold2); }
.rs-num code, .rs-rel code, .mk-ctop code { color: #9FD0FF; background: rgba(46,155,255,.1); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.rs-links { display: flex; gap: 16px; margin-top: auto; padding-top: 4px; }
.rs-links a { color: var(--sky); font-weight: 600; font-size: 13px; text-decoration: none; } .rs-links a:hover { color: var(--gold2); }
.rs-rel div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; } .rs-rel span { color: var(--muted); }

/* Resources dropdown, as the NXW sub menus */
.navbar .dropdown-menu { background: #121a4c; border: 1px solid #c9a227; border-radius: 10px; padding: 8px; min-width: 210px; box-shadow: 0 16px 40px rgba(0,0,0,.4); margin-top: -10px !important; }
.navbar .dropdown-item { color: #e8ebf7 !important; font-size: 13px; font-weight: 600; letter-spacing: .06em; padding: 9px 14px; border-radius: 7px; background: transparent; }
.navbar .dropdown-item:hover, .navbar .dropdown-item:focus { background: rgba(241,205,120,.12); color: #f1cd78 !important; }
.navbar .dropdown-item.active { background: rgba(241,205,120,.12) !important; color: #e0a43a !important; }
.navbar .dropdown-toggle::after { border-top-color: currentColor; vertical-align: middle; margin-left: 6px; }
.navbar .nav-item.dropdown .nav-link.dropdown-toggle::after { display: inline-block !important; position: static; background: none; height: auto; width: auto; transform: none; border-top: .3em solid; border-right: .3em solid transparent; border-left: .3em solid transparent; border-bottom: 0; }
.navbar .nav-item.dropdown:has(.dropdown-item.active) > .nav-link { color: #e9b54a !important; }

/* light mode */
html[data-mode="light"] .mk-title, html[data-mode="light"] .mk-card h3, html[data-mode="light"] .rs-top b { color: var(--navy); }
html[data-mode="light"] .mk-card, html[data-mode="light"] .mk-kpi, html[data-mode="light"] .rs-card { background: #fff; border-color: #DCE3EE; box-shadow: 0 8px 24px rgba(11,26,58,.06); }
html[data-mode="light"] .mk-kpi b { color: var(--navy); } html[data-mode="light"] .mk-kpi.big b { color: #B07F1F; }
html[data-mode="light"] .mk-kpi.up b, html[data-mode="light"] .mk-dt .up { color: #059669; } html[data-mode="light"] .mk-kpi.dn b, html[data-mode="light"] .mk-dt .dn { color: #DC2626; }
html[data-mode="light"] .chip.up { color: #047857 !important; background: #E7F8F0; } html[data-mode="light"] .chip.dn { color: #B91C1C !important; background: #FDECEC; }
html[data-mode="light"] .mk-upd { background: #EAF3FF; color: var(--royal); border-color: #B9D6FA; } html[data-mode="light"] .mk-upd b { color: var(--navy); }
html[data-mode="light"] .mk-meta span { color: var(--navy); border-color: #C9D4E6; }
html[data-mode="light"] table.dataTable.mk-dt thead th { background: #0B1A3A; color: #F0D890; }
html[data-mode="light"] table.dataTable.mk-dt thead td { background: #F3F6FB; border-bottom-color: #DCE3EE !important; }
html[data-mode="light"] table.dataTable.mk-dt thead td input, html[data-mode="light"] table.dataTable.mk-dt thead td select,
html[data-mode="light"] .dataTables_wrapper .dataTables_filter input { background-color: #fff !important; color: var(--navy); border-color: #C9D4E6 !important; }
html[data-mode="light"] table.dataTable.mk-dt tbody td, html[data-mode="light"] .mk-tbl td { border-top-color: #E6EBF3 !important; }
html[data-mode="light"] .mk-tbl th { color: #8A6418; border-bottom-color: #C9D4E6; }
html[data-mode="light"] .mk-name { color: var(--royal); border-color: rgba(10,77,184,.5); } html[data-mode="light"] .mk-name:hover { background: var(--royal); color: #fff; }
html[data-mode="light"] .mk-notice, html[data-mode="light"] .rs-card p { color: #44546E; } html[data-mode="light"] .mk-notice { background: #FFF9EC; }
html[data-mode="light"] .mk-ctop .radio-inline span { color: var(--navy); border-color: #C9D4E6; }
html[data-mode="light"] .dataTables_wrapper .dataTables_paginate .paginate_button { color: var(--navy) !important; }
@media (max-width: 700px) { .mk-title { font-size: 34px; } .dataTables_wrapper .dataTables_filter input { width: 100%; } .mk-card { padding: 14px; overflow-x: auto; } }

.dataTables_wrapper .dataTables_filter input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='6' fill='none' stroke='%239DB0CC' stroke-width='2.4'/%3E%3Cpath d='M15 15l6 6' stroke='%239DB0CC' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") !important; }
.mk-act .btn-gold, .mk-act .btn-gold:hover { color: #0A1530 !important; }
@media (min-width: 1200px) { .mk-kpis { grid-template-columns: repeat(7, 1fr); } }
.mk-ctop .shiny-options-group { gap: 6px; } .mk-ctop .radio-inline + .radio-inline { margin-left: 0 !important; }

/* Markets: quick platform buttons under the title */
.mk-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mk-quick a { --c: #D4A440; --c2: #F0D890; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 12px;
  text-decoration: none; color: #E8EBF7 !important; font-size: 12.5px; font-weight: 700; letter-spacing: .1em;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 10%, rgba(7,15,34,.5));
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; }
.mk-quick a svg { width: 18px; height: 18px; padding: 4px; box-sizing: content-box; border-radius: 8px; color: #fff; background: linear-gradient(135deg, var(--c), var(--c2)); }
.mk-quick a em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0; padding: 1px 7px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--c2); }
.mk-quick a:hover { transform: translateY(-2px); border-color: var(--c); }
.mk-quick a.cur { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 40%, transparent), color-mix(in srgb, var(--c) 15%, transparent));
  border-color: var(--c); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 35%, transparent); color: #fff !important; }
.mk-quick a.equity { --c: #2E6BFF; --c2: #7FB2FF; } .mk-quick a.commodity { --c: #E0702E; --c2: #FFB27A; }
.mk-quick a.forex { --c: #10B981; --c2: #6EE7B7; } .mk-quick a.crypto { --c: #8B5CF6; --c2: #C4B5FD; }
html[data-mode="light"] .mk-quick a { color: var(--navy) !important; background: color-mix(in srgb, var(--c) 8%, #fff); }
html[data-mode="light"] .mk-quick a.cur { background: color-mix(in srgb, var(--c) 22%, #fff); }
html[data-mode="light"] .mk-quick a em { background: color-mix(in srgb, var(--c) 15%, #fff); color: var(--navy); }
.mk-star { display: inline-block; margin-top: 6px; font-size: 11.5px; font-style: italic; color: var(--gold2); letter-spacing: .04em; }
html[data-mode="light"] .mk-star { color: #8A6418; }
#mk_table table.dataTable.mk-dt tbody td { white-space: nowrap; }
.dataTables_wrapper .mk-tools { flex-direction: column; align-items: flex-end; gap: 8px; }
.dataTables_wrapper .mk-star { display: block; margin: 0 4px 0 0; font-size: 12px; font-style: italic; }
.dataTables_wrapper .mk-star::before { content: "* Annualised performance"; }

/* Markets: Performance / OHLC switch and the live TIME column */
.mk-view { align-items: center; }
.mk-view .shiny-options-group { display: flex; gap: 0 !important; padding: 3px; border-radius: 11px; border: 1px solid #2A4475; background: rgba(7,15,34,.5); }
.mk-view .radio-inline span { border: 0 !important; border-radius: 8px !important; padding: 6px 16px !important; letter-spacing: .08em; text-transform: uppercase; font-size: 12px !important; }
.mk-view .radio-inline input:checked + span { background: linear-gradient(135deg, var(--gold), var(--gold2)) !important; color: #0A1530 !important; }
.rt-clock { display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; color: #E8EBF7; font-weight: 600; }
.rt-clock i { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); }
@keyframes rtpulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.rt-closed { color: var(--muted); font-variant-numeric: tabular-nums; padding-left: 14px; }
.mk-scroll { overflow-x: auto; } .mk-scroll .mk-tbl { white-space: nowrap; }
html[data-mode="light"] .rt-clock { color: var(--navy); } html[data-mode="light"] .mk-view .shiny-options-group { background: #fff; border-color: #C9D4E6; }

/* Column tooltips in the Markets table header (data/vtp_toolstip.rds) */
table.dataTable.mk-dt thead th.has-tip { cursor: help; position: relative; overflow: visible; }
table.dataTable.mk-dt thead th .th-tip { display: none; position: absolute; z-index: 30; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 250px; padding: 11px 13px; border-radius: 10px; background: #121a4c; border: 1px solid #c9a227; box-shadow: 0 14px 34px rgba(0,0,0,.45);
  text-align: left; text-transform: none; letter-spacing: 0; white-space: normal; font-weight: 400; font-size: 12.5px; line-height: 1.5; color: #DCE4F2; }
table.dataTable.mk-dt thead th .th-tip::before { content: ""; position: absolute; top: -6px; left: 50%; margin-left: -6px; width: 11px; height: 11px;
  background: #121a4c; border-left: 1px solid #c9a227; border-top: 1px solid #c9a227; transform: rotate(45deg); }
table.dataTable.mk-dt thead th .th-tip b { display: block; color: var(--gold2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
table.dataTable.mk-dt thead th:hover .th-tip { display: block; }
table.dataTable.mk-dt thead th:first-child .th-tip { left: 0; transform: none; } table.dataTable.mk-dt thead th:first-child .th-tip::before { left: 24px; }
table.dataTable.mk-dt thead th:last-child .th-tip { left: auto; right: 0; transform: none; } table.dataTable.mk-dt thead th:last-child .th-tip::before { left: auto; right: 24px; }
html[data-mode="light"] table.dataTable.mk-dt thead th .th-tip { background: #fff; color: var(--navy); box-shadow: 0 14px 34px rgba(11,26,58,.18); }
html[data-mode="light"] table.dataTable.mk-dt thead th .th-tip::before { background: #fff; }
html[data-mode="light"] table.dataTable.mk-dt thead th .th-tip b { color: #8A6418; }

/* Tabs not open yet ("Coming soon") */
.navbar .nav-link.soon { color: rgba(232,235,247,.38) !important; cursor: not-allowed; }
.navbar .nav-link.soon:hover { color: rgba(232,235,247,.5) !important; }
.navbar .nav-link.soon::after { display: none !important; }
.soon-b { display: inline-block; margin-left: 5px; padding: 1px 5px; border-radius: 5px; font-size: 8.5px; font-weight: 700; letter-spacing: .08em;
  line-height: 1.4; vertical-align: super; color: #0A1530; background: linear-gradient(135deg, #D4A440, #F0D890); }
.navbar .nav-link.soon .soon-b { opacity: .8; }
.hcard.soon { cursor: not-allowed !important; opacity: .55; filter: saturate(.6); }
.hcard.soon:hover { transform: none !important; box-shadow: none !important; }
.hcard.soon .soon-b { margin-left: 0; font-size: 10px; vertical-align: baseline; padding: 2px 8px; }
html[data-mode="light"] .navbar .nav-link.soon { color: rgba(11,26,58,.35) !important; }
.mk-quick { align-items: center; }
.mk-quick .mk-sep { width: 1px; height: 28px; background: #2A4475; margin: 0 4px; }
.mk-quick a.rg.vietnam { --c: #DA251D; --c2: #FFCD00; } .mk-quick a.rg.global { --c: #2E9BFF; --c2: #9FD0FF; }
html[data-mode="light"] .mk-quick .mk-sep { background: #C9D4E6; }

/* Contact page, as on the NXW website */
.ct-band { padding: 0; }
.ct-hero { max-width: 1200px; margin: 0 auto; padding: 64px 24px 70px; text-align: left; }
.ct-hero h1 { font-size: 46px; font-weight: 700; margin: 8px 0 14px; letter-spacing: -.5px; }
.ct-hero p { max-width: 820px; font-size: 18px; line-height: 1.65; color: #D5DEEC; margin: 0; }
html[data-mode="light"] .ct-hero p { color: #44546E; }
.ct-wrap { max-width: 1200px; margin: 0 auto; padding: 46px 24px 70px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.ct-form, .ct-card { background: #10224A; border: 1px solid #22355C; border-radius: 18px; padding: 30px 32px; box-shadow: 0 14px 40px rgba(0,0,0,.2); }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.ct-form label { font-weight: 600; font-size: 14.5px; color: #fff; margin-bottom: 8px; } .ct-form label i { color: #F87171; font-style: normal; }
.ct-form .form-control, .ct-form .selectize-input, .ct-form select { min-height: 52px; border-radius: 10px !important; background: #0C1A3A !important;
  border: 1px solid #2A4475 !important; color: #E8EBF7 !important; font-size: 15px; box-shadow: none !important; }
.ct-form .selectize-input { padding: 14px 16px !important; } .ct-form textarea.form-control { min-height: 150px; padding: 14px 16px; }
.ct-form .form-control:focus, .ct-form .selectize-input.focus { border-color: var(--gold) !important; }
.ct-form .form-group { margin-bottom: 20px; }
.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.ct-actions .btn-gold { padding: 12px 26px; font-weight: 700; letter-spacing: .06em; display: inline-flex; align-items: center; gap: 8px; color: #0A1530 !important; }
.ct-actions .btn-gold svg { width: 17px; height: 17px; }
.ct-actions small { color: var(--muted); font-size: 12.5px; flex-basis: 100%; }
.ct-side { display: flex; flex-direction: column; gap: 22px; }
.ct-logo { width: 220px; display: block; margin-bottom: 22px; }
.ct-row { display: flex; gap: 16px; align-items: center; padding: 12px 0; }
.ct-ic { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: var(--gold); background: rgba(255,255,255,.05); border: 1px solid #22355C; }
.ct-ic svg { width: 22px; height: 22px; }
.ct-row span { display: block; color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; }
.ct-row b { display: block; color: #fff; font-weight: 500; font-size: 17px; margin-top: 2px; }
.ct-row a { color: #fff !important; font-size: 17px; text-decoration: underline; }
.ct-faq h3 { font-size: 17px; font-weight: 700; color: #fff; margin: 0 0 10px; letter-spacing: .04em; }
.ct-faq ul { margin: 0; padding-left: 18px; color: #C9D6EC; font-size: 13.5px; line-height: 1.6; } .ct-faq li { margin-bottom: 6px; } .ct-faq li b { color: var(--gold2); }
.cbtn.on { border-color: var(--gold) !important; color: var(--gold) !important; }
html[data-mode="light"] .ct-form, html[data-mode="light"] .ct-card { background: #fff; border-color: #DCE3EE; box-shadow: 0 10px 30px rgba(11,26,58,.08); }
html[data-mode="light"] .ct-form label, html[data-mode="light"] .ct-row b, html[data-mode="light"] .ct-row a, html[data-mode="light"] .ct-faq h3 { color: var(--navy) !important; }
html[data-mode="light"] .ct-form .form-control, html[data-mode="light"] .ct-form .selectize-input { background: #F7F9FC !important; border-color: #C9D4E6 !important; color: var(--navy) !important; }
html[data-mode="light"] .ct-ic { background: #F3F6FB; border-color: #DCE3EE; color: #B07F1F; } html[data-mode="light"] .ct-faq ul { color: #44546E; }
@media (max-width: 900px) { .ct-wrap, .ct-grid { grid-template-columns: 1fr; } .ct-hero h1 { font-size: 36px; } }

/* About page */
.ab-wrap { max-width: 1200px; margin: 0 auto; padding: 50px 24px 70px; }
.ab-sec { margin-bottom: 56px; } .ab-sec h2 { font-size: 30px; font-weight: 700; margin: 6px 0 22px; }
.ab-sec p { color: #C9D6EC; line-height: 1.7; font-size: 15px; }
.ab-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ab-step { background: #10224A; border: 1px solid #22355C; border-radius: 16px; padding: 22px; position: relative; overflow: hidden; }
.ab-step em { font-style: normal; font-family: Georgia, serif; font-size: 34px; font-weight: 700; color: var(--gold); opacity: .9; }
.ab-step h3 { font-size: 17px; font-weight: 700; margin: 8px 0; color: #fff; } .ab-step p { font-size: 13.5px; margin: 0; }
.ab-mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ab-mod { border: 1px solid #22355C; border-radius: 14px; padding: 16px 18px; background: rgba(16,34,74,.6); }
.ab-mod b { font-size: 15px; color: #fff; letter-spacing: .04em; } .ab-mod p { font-size: 13px; margin: 8px 0 0; }
.ab-st { float: right; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--muted); }
.ab-mod.on { border-color: var(--gold); background: linear-gradient(135deg, rgba(212,164,64,.18), rgba(16,34,74,.6)); }
.ab-mod.on .ab-st { background: linear-gradient(135deg, #D4A440, #F0D890); color: #0A1530; }
.ab-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ab-links { display: flex; gap: 12px; margin-top: 18px; } .ab-links .btn-gold { color: #0A1530 !important; font-weight: 700; }
html[data-mode="light"] .ab-step, html[data-mode="light"] .ab-mod { background: #fff; border-color: #DCE3EE; }
html[data-mode="light"] .ab-step h3, html[data-mode="light"] .ab-mod b { color: var(--navy); }
html[data-mode="light"] .ab-sec p { color: #44546E; } html[data-mode="light"] .ab-mod.on { background: #FFF9EC; border-color: #D4A440; }
@media (max-width: 1000px) { .ab-steps, .ab-mods { grid-template-columns: 1fr 1fr; } .ab-two { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ab-steps, .ab-mods { grid-template-columns: 1fr; } }
/* "Coming soon" menu items: greyed, with a small tooltip on hover */
.navbar .nav-link.soon { position: relative; }
.navbar .nav-link.soon:hover::before { content: "COMING SOON"; position: absolute; left: 50%; top: calc(50% + 14px); transform: translateX(-50%);
  font-size: 8.5px; letter-spacing: .12em; padding: 2px 6px; border-radius: 5px; white-space: nowrap; color: #0A1530; background: linear-gradient(135deg, #D4A440, #F0D890); }
.navbar .nav-item:has(> .nav-link[data-value="Contact"]) { display: none !important; }
@media (max-width: 1750px) {
  .navbar .nav-link { padding: 0 21px !important; font-size: 15px; letter-spacing: .05em; }
  .navbar .nav-link::after { left: 21px; right: 21px; }
  .tools { gap: 8px !important; } .sbox, .obtn, .cbtn { width: 42px !important; height: 42px !important; flex-basis: 42px !important; }
}
.dataTables_wrapper .mk-foot { gap: 14px; flex-wrap: wrap; }
.dataTables_wrapper .dataTables_length { color: var(--muted); font-size: 12.5px; padding: 0 !important; }
.dataTables_wrapper .dataTables_length select { background-color: #0A1530 !important; color: #DCE4F2 !important; border: 1px solid #2A4475 !important; border-radius: 8px; padding: 4px 26px 4px 10px; margin: 0 4px; }
.dataTables_wrapper .dataTables_paginate { margin-left: auto; padding: 0 !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button { padding: 5px 11px !important; margin-left: 3px; cursor: pointer; }
.dataTables_wrapper .dataTables_paginate .pagination { margin: 0; gap: 4px; }
.dataTables_wrapper .page-link { background: transparent; border: 1px solid #2A4475; color: #C9D6EC; border-radius: 7px !important; padding: 5px 11px; font-size: 13px; }
.dataTables_wrapper .page-item.active .page-link { background: linear-gradient(135deg, #D4A440, #F0D890); border-color: #D4A440; color: #0A1530; font-weight: 700; }
.dataTables_wrapper .page-item.disabled .page-link { opacity: .4; background: transparent; }
html[data-mode="light"] .dataTables_wrapper .dataTables_length select { background-color: #fff !important; color: var(--navy) !important; border-color: #C9D4E6 !important; }
html[data-mode="light"] .dataTables_wrapper .page-link { border-color: #C9D4E6; color: var(--navy); }
@media (max-width: 1450px) { .navbar .nav-link { padding: 0 17px !important; font-size: 14px; letter-spacing: .03em; } .navbar .nav-link::after { left: 17px; right: 17px; } .navbar .plat-badge { padding: 0 10px; } }
.mk-name { border-radius: 8px !important; padding: 5px 12px; }
/* squared buttons and labels in every table and card (no round pills) */
.mk-pill, .mk-meta span, .rs-grp, .mk-quick a em, .chip, .mk-name, .mk-kpi, .rs-num code, .rs-rel code, .mk-ctop code { border-radius: 6px !important; }
.mk-tbl .chip { border-radius: 6px !important; }
/* sort arrows in table headers (DataTables ▲ ▼): light colour so they show on the dark header */
table.dataTable.mk-dt thead > tr > th.sorting:before, table.dataTable.mk-dt thead > tr > th.sorting:after,
table.dataTable.mk-dt thead > tr > th.sorting_asc:before, table.dataTable.mk-dt thead > tr > th.sorting_asc:after,
table.dataTable.mk-dt thead > tr > th.sorting_desc:before, table.dataTable.mk-dt thead > tr > th.sorting_desc:after {
  opacity: .6 !important; font-size: .8em !important; color: #E8EBF7 !important; right: 8px !important; }
table.dataTable.mk-dt thead > tr > th.sorting_asc:before, table.dataTable.mk-dt thead > tr > th.sorting_desc:after { opacity: 1 !important; color: #F0D890 !important; }
table.dataTable.mk-dt thead th.sorting, table.dataTable.mk-dt thead th.sorting_asc, table.dataTable.mk-dt thead th.sorting_desc { background-image: none !important; }
.mk-struct { display: inline-block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--sky) !important; text-decoration: none; letter-spacing: .04em; }
.mk-struct:hover { color: var(--gold2) !important; }

/* Markets card header: title left, Performance/OHLC switch centred, count right */
.mk-ctop3 { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.mk-ctop3 .mk-mid { justify-self: center; }
.mk-ctop3 .mk-act { justify-self: end; }
.mk-ctop3 > .admin-only { grid-column: 1; } .mk-ctop3 > .mk-mid { grid-column: 2; grid-row: 1; } .mk-ctop3 > .mk-act { grid-column: 3; grid-row: 1; }
@media (max-width: 900px) { .mk-ctop3 > .mk-mid, .mk-ctop3 > .mk-act { grid-column: 1; grid-row: auto; } }
@media (max-width: 900px) { .mk-ctop3 { grid-template-columns: 1fr; } .mk-ctop3 .mk-mid, .mk-ctop3 .mk-act { justify-self: start; } }

/* Page header: kicker and title on the left, LAST UPDATE on the right of the title, shortcuts below */
.mk-head2 { display: block; }
.mk-hrow { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

/* Table toolbar: search box on the left, annualised note on the right */
.dataTables_wrapper .mk-tools { flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.dataTables_wrapper .mk-tools .dataTables_filter { float: none; text-align: left; margin: 0; }
.dataTables_wrapper .mk-tools .dataTables_filter label { justify-content: flex-start; }
.dataTables_wrapper .mk-tools .mk-star { margin-left: auto; }

/* About pages: cards with icons, empty partner/sponsor lists, call to action */
.ab-card .ab-ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: var(--gold);
  background: rgba(212,164,64,.12); border: 1px solid rgba(212,164,64,.35); margin-bottom: 6px; }
.ab-card .ab-ico svg { width: 22px; height: 22px; }
.ab-empty { border: 1px dashed #2A4475; border-radius: 14px; padding: 34px; text-align: center; }
.ab-empty p { margin: 0; color: var(--muted) !important; font-style: italic; }
.ab-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px 32px;
  border-radius: 16px; border: 1px solid var(--gold); background: linear-gradient(135deg, rgba(212,164,64,.16), rgba(16,34,74,.6)); }
.ab-cta h2 { margin: 0 0 6px !important; font-size: 24px !important; } .ab-cta p { margin: 0; }
.ab-cta .btn-gold { color: #0A1530 !important; font-weight: 700; padding: 10px 22px; }
html[data-mode="light"] .ab-empty { border-color: #C9D4E6; } html[data-mode="light"] .ab-cta { background: #FFF9EC; }

/* Auto reload banner; Shiny's grey overlay is not needed since the page reloads */
#shiny-disconnected-overlay { display: none !important; }
#vtp-reload { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99999; display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 10px; background: #10224A; border: 1px solid var(--gold); color: #E8EBF7; font-size: 13.5px;
  font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
#vtp-reload i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold); border-top-color: transparent; animation: vtpspin .8s linear infinite; }
#vtp-reload a { color: var(--gold); }
@keyframes vtpspin { to { transform: rotate(360deg); } }

/* Sign-in screen */
.lg-wrap { display: none; }
html.locked .lg-wrap { display: flex; position: fixed; inset: 0; z-index: 9000; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(ellipse at 30% 20%, #1A3A7A 0%, #0A1530 55%, #060D20 100%); overflow-y: auto; }
html.locked body { overflow: hidden; }
.lg-card { width: 100%; max-width: 440px; background: rgba(16,34,74,.92); border: 1px solid #2A4475; border-radius: 18px; padding: 34px 34px 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); text-align: left; }
.lg-logo { height: 54px; display: block; margin: 0 auto 18px; }
.lg-card .mk-kick { text-align: center; margin-bottom: 4px; }
.lg-card h2 { font-size: 26px; font-weight: 700; color: #fff; margin: 4px 0 6px; text-align: center; }
.lg-sub { color: var(--muted); font-size: 13.5px; text-align: center; margin: 0 0 18px; }
.lg-card .form-group { margin-bottom: 12px; } .lg-card label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #9FB0CF; }
.lg-btn { width: 100%; height: 44px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0A1530 !important; margin-top: 6px; }
.lg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lg-alt { text-align: center; font-size: 13.5px; color: #C9D6EC; margin: 16px 0 0; } .lg-alt a { color: var(--gold); font-weight: 600; }
.lg-note { display: block; text-align: center; color: var(--muted); margin-top: 18px; font-size: 11.5px; }
.lg-msg { margin-top: 12px; padding: 9px 12px; border-radius: 8px; font-size: 13px; background: rgba(220,38,38,.14); border: 1px solid rgba(220,38,38,.45); color: #FCA5A5; }
.lg-msg.ok { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.45); color: #6EE7B7; }
html[data-mode="light"].locked .lg-wrap { background: radial-gradient(ellipse at 30% 20%, #FFFFFF 0%, #EAF0FA 60%, #DCE5F3 100%); }
html[data-mode="light"] .lg-card { background: #fff; border-color: #DCE3EE; box-shadow: 0 30px 80px rgba(10,21,48,.15); }
html[data-mode="light"] .lg-card h2 { color: var(--navy); } html[data-mode="light"] .lg-alt { color: #44546E; }

/* User menu */
.ubox { position: relative; }
.ubtn .u-ini { font-weight: 700; font-size: 13px; letter-spacing: .04em; color: var(--gold); display: inline-flex; }
.ubtn .u-ini svg { width: 20px; height: 20px; }
.umenu { display: none; position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; z-index: 2000; background: #10224A;
  border: 1px solid #2A4475; border-radius: 12px; padding: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.ubox.open .umenu { display: block; }
.u-head { padding: 8px 10px 10px; border-bottom: 1px solid #22355C; margin-bottom: 6px; display: flex; flex-direction: column; }
.u-head b { color: #fff; font-size: 14px; } .u-head span { color: var(--muted); font-size: 12px; }
.u-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #C9D6EC !important; text-decoration: none; font-size: 13.5px; }
.u-item svg { width: 17px; height: 17px; } .u-item:hover { background: rgba(212,164,64,.14); color: var(--gold) !important; }
.u-out { color: #FCA5A5 !important; }
html[data-mode="light"] .umenu { background: #fff; border-color: #DCE3EE; } html[data-mode="light"] .u-head b { color: var(--navy); }
html[data-mode="light"] .u-item { color: var(--navy) !important; }

/* Profile page */
.pf-top { display: flex; align-items: center; gap: 22px; }
.pf-av { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 700; color: #0A1530;
  background: linear-gradient(135deg, var(--gold), var(--gold2)); flex: none; }
.pf-top h1 { margin: 2px 0 4px !important; } .pf-top p { margin: 0 !important; }
.pf-role { display: inline-block; margin-left: 10px; font-size: 10px; font-weight: 700; letter-spacing: .1em; padding: 2px 8px; border-radius: 6px;
  background: rgba(212,164,64,.18); color: var(--gold); vertical-align: middle; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.pf-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 14px; }
.pf-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13.5px; }
.pf-row span { color: var(--muted); } .pf-row b { text-align: right; font-weight: 600; }
.pf-card .btn-gold { color: #0A1530 !important; font-weight: 700; }
.pf-note { color: var(--muted); font-size: 13px; }
@media (max-width: 1000px) { .pf-grid { grid-template-columns: 1fr; } }

/* Home: platform name above the logo */
.vtp-name { display: inline-flex; align-items: center; gap: 16px; margin: 0 0 22px; }
.vtp-name span { font-size: 15px; font-weight: 700; letter-spacing: .42em; text-transform: uppercase; padding-left: .42em;
  background: linear-gradient(90deg, #F0D890, #D4A440 45%, #F0D890); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 26px rgba(212,164,64,.25); }
.vtp-name i { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, #D4A440); position: relative; }
.vtp-name i:last-child { background: linear-gradient(90deg, #D4A440, transparent); }
.vtp-name i::after { content: ""; position: absolute; top: -2.5px; width: 6px; height: 6px; transform: rotate(45deg); background: #D4A440; }
.vtp-name i:first-child::after { right: -3px; } .vtp-name i:last-child::after { left: -3px; }
html[data-mode="light"] .vtp-name span { background: linear-gradient(90deg, #8A6418, #B07F1F 45%, #8A6418); -webkit-background-clip: text; background-clip: text; }

/* Home: Sign up | Sign in under the market buttons, hidden once signed in */
.home-auth { display: inline-flex; align-items: center; gap: 0; margin-top: 44px; border: 1px solid #2A4475; border-radius: 12px; padding: 5px;
  background: rgba(7,15,34,.45); backdrop-filter: blur(6px); }
.ha-btn { min-width: 150px; padding: 12px 26px; border-radius: 8px; font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: #E8EBF7 !important; transition: background .2s, color .2s; }
.ha-btn:hover { background: rgba(255,255,255,.06); }
.ha-in { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #0A1530 !important; }
.ha-in:hover { background: linear-gradient(135deg, var(--gold2), var(--gold)); }
.ha-sep { width: 1px; height: 22px; background: #2A4475; margin: 0 5px; }
.home-auth-p { font-size: 13.5px !important; color: var(--muted) !important; margin: 14px auto 0 !important; font-weight: 400 !important; }
html.signed .home-auth, html.signed .home-auth-p { display: none !important; }
html[data-mode="light"] .home-auth { background: #fff; border-color: #C9D4E6; } html[data-mode="light"] .ha-up { color: var(--navy) !important; }

/* Sign-in card opened over the page */
.lg-card { position: relative; }
.lg-x { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 8px; border: 1px solid #2A4475; background: transparent;
  color: #C9D6EC; font-size: 22px; line-height: 1; cursor: pointer; } .lg-x:hover { color: var(--gold); border-color: var(--gold); }
html.locked .lg-wrap { background: rgba(5,11,26,.78); backdrop-filter: blur(6px); }
html[data-mode="light"].locked .lg-wrap { background: rgba(220,229,243,.8); }

/* Home when signed in: short welcome under the market buttons */
.home-user { display: none; max-width: 760px; margin: 44px auto 0; }
html.signed .home-user { display: block; }
.home-user h3 { font-size: 22px; font-weight: 600; margin: 0 0 8px; color: #E8EBF7; } .home-user h3 b { color: var(--gold); font-weight: 700; }
.home-user p { font-size: 15px !important; margin: 0 auto !important; color: var(--muted) !important; }
html[data-mode="light"] .home-user h3 { color: var(--navy); }

.navbar .nav-item:has(> .nav-link[data-value="Profile"]) { display: none !important; }
.navbar .ubox { margin: 0 8px; }

/* Admin content: only for accounts with the Admin role */
html:not(.admin) .admin-only { display: none !important; }

/* Password show / hide */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px !important; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent;
  color: var(--muted); display: grid; place-items: center; cursor: pointer; border-radius: 6px; }
.pw-eye svg { width: 19px; height: 19px; } .pw-eye:hover { color: var(--gold); }
.navbar .nav-item:has(> .nav-link[data-value="Admin"]), .navbar .nav-item:has(> .nav-link[data-value="Admin menu"]) { display: none !important; }

/* Admin page */
.adm-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 0 0 20px; }
.adm-kpi { border: 1px solid #22355C; border-radius: 12px; padding: 14px 18px; background: rgba(16,34,74,.6); display: flex; flex-direction: column; }
.adm-kpi b { font-size: 28px; font-weight: 700; color: #fff; } .adm-kpi span { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.adm-kpi.ok b { color: #34D399; } .adm-kpi.wait b { color: var(--gold); } .adm-kpi.ban b { color: #F87171; } .adm-kpi.live b { color: #7FB2FF; }
.st { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.st-active { background: rgba(52,211,153,.14); color: #34D399; } .st-pending { background: rgba(212,164,64,.16); color: var(--gold); }
.st-banned { background: rgba(248,113,113,.14); color: #F87171; }
.adm-b { border: 1px solid; border-radius: 6px; background: transparent; padding: 4px 12px; font-size: 12px; font-weight: 700; margin-left: 6px; cursor: pointer; }
.adm-b.ok { color: #34D399; border-color: rgba(52,211,153,.5); } .adm-b.ok:hover { background: rgba(52,211,153,.14); }
.adm-b.ban { color: #F87171; border-color: rgba(248,113,113,.5); } .adm-b.ban:hover { background: rgba(248,113,113,.14); }
.adm-na { color: var(--muted); }
#adm_online_card { margin-top: 22px; }
html[data-mode="light"] .adm-kpi { background: #fff; border-color: #DCE3EE; } html[data-mode="light"] .adm-kpi b { color: var(--navy); }
@media (max-width: 900px) { .adm-kpis { grid-template-columns: repeat(2, 1fr); } }

/* Starter page (signed out): no main menu, only the logo and the top-bar icons */
html:not(.signed) .navbar .nav-item:has(> .nav-link), html:not(.signed) .navbar .nav-item.dropdown,
html:not(.signed) .navbar #plat { display: none !important; }

/* Remember me */
.lg-rem { display: flex !important; align-items: center; gap: 8px; margin: 2px 0 10px; cursor: pointer; text-transform: none !important;
  letter-spacing: 0 !important; font-size: 13.5px !important; color: #C9D6EC !important; }
.lg-rem input { width: 16px; height: 16px; accent-color: #D4A440; }
html[data-mode="light"] .lg-rem { color: #44546E !important; }
#adm_data_card { margin-top: 22px; } #adm_data_card .pf-row b { font-weight: 600; word-break: break-all; }

/* Home: larger, wider platform name */
.vtp-name { gap: 26px; margin: 0 0 28px; }
.vtp-name span { font-size: 26px; letter-spacing: .36em; padding-left: .36em; }
.vtp-name i { width: 170px; height: 2px; }
.vtp-name i::after { top: -3px; width: 8px; height: 8px; } .vtp-name i:first-child::after { right: -4px; } .vtp-name i:last-child::after { left: -4px; }
@media (max-width: 1100px) { .vtp-name span { font-size: 20px; letter-spacing: .28em; } .vtp-name i { width: 90px; } }
@media (max-width: 640px) { .vtp-name { gap: 12px; } .vtp-name span { font-size: 14px; letter-spacing: .2em; } .vtp-name i { width: 34px; } }

/* Resources items for the admin only: greyed out for other users */
html:not(.admin) .navbar .dropdown-item.adm-item { opacity: .42; cursor: not-allowed; background: transparent !important; }
html:not(.admin) .navbar .dropdown-item.adm-item::after { content: "ADMIN ONLY"; margin-left: 10px; padding: 1px 6px; border-radius: 5px;
  font-size: 8.5px; font-weight: 700; letter-spacing: .08em; background: rgba(255,255,255,.08); vertical-align: middle; }

/* Starter page (signed out): no top bar and no sidebar toggle */
html:not(.signed) .navbar, html:not(.signed) .collapse-toggle { display: none !important; }

/* Market details: chart tabs (HISTORY | INTRADAY), moving averages and benchmark */
.mk-tabbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 6px 0 0; border-bottom: 1px solid #22355C; }
.mk-tabbar .form-group { margin: 0; }
.mk-tabbar #mk_tab .shiny-options-group { display: flex; gap: 2px; }
.mk-tabbar #mk_tab .radio-inline { margin: 0 !important; padding: 0; }
.mk-tabbar #mk_tab .radio-inline input { display: none; }
.mk-tabbar #mk_tab .radio-inline span { display: inline-block; padding: 10px 22px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.mk-tabbar #mk_tab .radio-inline input:checked + span { color: #fff; border-bottom-color: var(--gold); }
.mk-ma { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.mk-ma label { font-size: 11px; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin: 0 0 0 6px; }
.mk-ma select { background: #10224A; color: #DCE4F2; border: 1px solid #2A4475; border-radius: 8px; padding: 4px 8px; font-size: 12.5px; height: 32px; }
.mk-tabbar + div > .mk-card, .mk-tabbar + div + div > .mk-card { border-top-left-radius: 0; border-top-right-radius: 0; }
.mk-kpis-sm { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 4px 0 10px; }
.mk-kpis-sm .mk-kpi { padding: 8px 11px; } .mk-kpis-sm .mk-kpi b { font-size: 15px; }
html[data-mode="light"] .mk-tabbar { border-color: #DCE3EE; }
html[data-mode="light"] .mk-tabbar #mk_tab .radio-inline input:checked + span { color: #0B1A3A; }
html[data-mode="light"] .mk-ma select { background: #fff; color: #13203A; border-color: #DCE3EE; }
@media (max-width: 700px) { .mk-tabbar #mk_tab .radio-inline span { padding: 9px 12px; } }
html:not(.admin) .vtp-footer .in { grid-template-columns: 1fr; }

/* Profile photo */
.pf-avbox { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
button.pf-av { position: relative; border: 0; padding: 0; cursor: pointer; overflow: hidden; }
.pf-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-av-cam { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,21,48,.55); color: #fff; opacity: 0; transition: opacity .15s; }
.pf-av-cam svg { width: 26px; height: 26px; }
button.pf-av:hover .pf-av-cam { opacity: 1; }
.pf-av-acts { display: flex; gap: 10px; font-size: 12px; } .pf-av-acts a { color: var(--gold); text-decoration: none; } .pf-av-acts a:hover { text-decoration: underline; }
.ubtn .u-ini.has-img { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; }
.ubtn .u-ini.has-img img { width: 100%; height: 100%; object-fit: cover; }

/* Subscriptions: FREE, STARTER, BASIC, STANDARD, PRO */
.adm-plan { background: #10224A; color: #DCE4F2; border: 1px solid #2A4475; border-radius: 7px; padding: 3px 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.pl-free { color: #9DB0CC !important; } .pl-starter { color: #7DD3FC !important; } .pl-basic { color: #34D399 !important; }
.pl-standard { color: #A78BFA !important; } .pl-pro { color: var(--gold) !important; }
.pf-plan { background: rgba(255,255,255,.08); }
html[data-mode="light"] .adm-plan { background: #fff; border-color: #DCE3EE; }

.adm-filter { display: flex; align-items: center; gap: 10px; } .adm-filter > span { font-size: 11px; letter-spacing: .14em; color: var(--muted); font-weight: 700; }

/* Sign-up email code */
.vf-code { font-size: 28px !important; letter-spacing: .5em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; padding: 12px !important; margin: 6px 0 14px; }
.adm-reset { margin-left: 8px; }
.mk-dt thead th.dt-head-center { text-align: center !important; }

/* Partners */
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.pt-card { background: #10224A; border: 1px solid #22355C; border-radius: 14px; padding: 26px 18px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: border-color .15s, transform .15s; }
.pt-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.pt-logo { font-size: 20px; font-weight: 800; letter-spacing: .08em; color: #fff; min-height: 52px; display: grid; place-items: center; }
.pt-card span { font-size: 10.5px; letter-spacing: .18em; font-weight: 700; color: var(--gold); }
html[data-mode="light"] .pt-card { background: #fff; border-color: #DCE3EE; } html[data-mode="light"] .pt-logo { color: var(--navy); }
.adm-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; }
.adm-filter { flex-wrap: wrap; } .adm-filter > span + .form-group, .adm-filter .form-group + span { margin-left: 4px; }
/* EQUITY sub-categories */
.mk-quick a.cat { --c: #2E6BFF; --c2: #7FB2FF; padding: 8px 14px; }
#mk_cats { display: flex; flex-basis: 100%; align-items: center; gap: 8px; flex-wrap: wrap; padding-left: 4px; }
#mk_cats:empty { display: none; }
#mk_cats .cat-lbl { font-size: 11px; letter-spacing: .16em; font-weight: 700; color: #7FB2FF; margin-right: 4px; }
#mk_cats .cat-lbl::after { content: " \203A"; }
.mk-quick a.cat { padding: 5px 12px; font-size: 12px; }
.mk-quick a.cat.commodity { --c: #E0702E; --c2: #FFB27A; } #mk_cats .cat-lbl.commodity { color: #FFB27A; }
.mk-quick a.cat.forex { --c: #10B981; --c2: #6EE7B7; } #mk_cats .cat-lbl.forex { color: #6EE7B7; }
.mk-dt td.mk-ccy { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
/* Details page: prediction and sentiment */
.mk-sent-badge { padding: 6px 14px; border-radius: 8px; font-weight: 700; font-size: 12.5px; letter-spacing: .1em; border: 1px solid; }
.mk-sent-badge.bullish { color: #34D399; border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.1); }
.mk-sent-badge.bearish { color: #F87171; border-color: rgba(248,113,113,.5); background: rgba(248,113,113,.1); }
.mk-sent-badge.neutral { color: var(--gold); border-color: rgba(212,164,64,.5); background: rgba(212,164,64,.1); }
.mk-gauge { margin: 4px 0 14px; }
.mk-gauge-bar { position: relative; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #F87171, #D4A440 50%, #34D399); }
.mk-gauge-pin { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 2px #0A1530; }
.mk-gauge-lab { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.mk-gauge-lab b { color: inherit; font-size: 12.5px; }
.mk-sig { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.mk-sig.bullish { color: #34D399; background: rgba(52,211,153,.12); } .mk-sig.bearish { color: #F87171; background: rgba(248,113,113,.12); }
.mk-sig.neutral { color: var(--muted); background: rgba(157,176,204,.12); }
.mk-fc td.up { color: #34D399; } .mk-fc td.dn { color: #F87171; }
.mk-pred .mk-tbl { width: 100%; font-size: 12.5px; } .mk-pred .mk-tbl td.num { text-align: right; white-space: nowrap; }
html[data-mode="light"] .mk-gauge-pin { background: #0B1A3A; box-shadow: 0 0 0 2px #fff; }
.mk-sent th:nth-child(3), .mk-sent td:nth-child(3) { text-align: left !important; padding-left: 14px; }
/* Details page: specifications in 2 blocks (label | value) in the header */
.mk-hrow > div:first-child { flex: 1 1 auto; }
.mk-specs { display: flex; gap: 14px; flex-wrap: wrap; }
.mk-spec { border-collapse: separate; border-spacing: 0; background: #10224A; border: 1px solid #22355C; border-radius: 12px; overflow: hidden; font-size: 12.5px; min-width: 250px; }
.mk-spec th, .mk-spec td { padding: 6px 14px; border-bottom: 1px solid #1A2D52; white-space: nowrap; }
.mk-spec tr:last-child th, .mk-spec tr:last-child td { border-bottom: 0; }
.mk-spec th { font-size: 10.5px; letter-spacing: .14em; color: var(--gold); font-weight: 700; border-right: 1px solid #22355C; text-align: left; }
.mk-spec td { color: #fff; font-weight: 600; }
html[data-mode="light"] .mk-spec { background: #fff; border-color: #DCE3EE; } html[data-mode="light"] .mk-spec td { color: var(--navy); }
html[data-mode="light"] .mk-spec th, html[data-mode="light"] .mk-spec td { border-color: #E6EBF3; } html[data-mode="light"] .mk-spec th { color: #B07F1F; }
.mk-dt td.mk-tick { font-weight: 700; letter-spacing: .04em; color: var(--gold); white-space: nowrap; } html[data-mode="light"] .mk-dt td.mk-tick { color: #B07F1F; }
/* Details page: last price block at the top right (price, change and %, date time and currency) */
.mk-last { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; margin-left: auto; }
.mk-last-px { font-family: var(--serif, Georgia, serif); font-size: 44px; line-height: 1; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.mk-last-chg { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; } .mk-last-chg.up { color: #34D399; } .mk-last-chg.dn { color: #F87171; }
.mk-last-at { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
html[data-mode="light"] .mk-last-px { color: var(--navy); }
@media (max-width: 900px) { .mk-last { align-items: flex-start; text-align: left; margin-left: 0; } .mk-last-px { font-size: 34px; } }
/* Details page: specifications card (identification and codes | figures), before the chart */
.mk-specs-card { margin-top: 14px; } .mk-specs-card h3 { margin-bottom: 10px; }
.mk-specs-card .mk-spec { width: 100%; min-width: 0; font-size: 13px; }
.mk-specs-card .mk-spec td { font-weight: 400; }
.mk-specs-card .mk-spec th { width: 42%; } .mk-specs-card .mk-spec td { white-space: normal; word-break: break-word; font-variant-numeric: tabular-nums; }
/* Prediction and sentiment: count and share of the BEARISH, NEUTRAL and BULLISH signals */
.mk-sent-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mk-sent-box { --c: #9DB0CC; text-align: center; padding: 10px 8px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 10%, transparent); }
.mk-sent-box.bearish { --c: #F87171; } .mk-sent-box.bullish { --c: #34D399; }
.mk-sent-box span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--c); }
.mk-sent-box b { display: block; font-size: 26px; line-height: 1.15; color: var(--c); font-variant-numeric: tabular-nums; }
.mk-sent-box em { display: block; font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); }
.mk-sent-box { position: relative; transition: transform .2s; }
.mk-sent-box.maj { background: color-mix(in srgb, var(--c) 26%, transparent); border: 2px solid var(--c); transform: scale(1.04);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent), 0 10px 26px color-mix(in srgb, var(--c) 30%, transparent); }
.mk-sent-box.maj b { font-size: 30px; }
.mk-sent-box i { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .12em;
  padding: 2px 8px; border-radius: 6px; background: var(--c); color: #0A1530; white-space: nowrap; }
/* Admin: upload of market data rds files */
.adm-up { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(127,178,255,.18); }
.adm-up .form-group { margin-bottom: 6px; max-width: 520px; }
.adm-up-ok { color: #34D399; font-weight: 600; margin: 6px 0 0; } .adm-up-err { color: #F87171; font-weight: 600; margin: 6px 0 0; }
/* Markets v2 (real data, src=v2): menu link and a v2 badge on the Markets tab */
.navbar .mk-v2-link { font-weight: 700; color: var(--gold) !important; }
/* Markets details: intraday bars in the "Last 10 sessions" card (INTRADAY tab), scrolled inside the card */
.mk-scroll-y { max-height: 470px; overflow-y: auto; }
.mk-scroll-y thead th { position: sticky; top: 0; background: #10224A; z-index: 1; }
html[data-mode="light"] .mk-scroll-y thead th { background: #fff; }
.mk-last-sub { font-size: 12px; color: var(--muted); margin: -4px 0 8px; }
/* Source table under each table shown (tbl_src in app.R); names and "Table info" are links for the admin only */
.tbl-src { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 8px; border-top: 1px dashed #22355C; font-size: 11px; color: var(--muted); }
.tbl-src-l { letter-spacing: .14em; font-weight: 700; color: #22D3EE; margin-right: 8px; }
.tbl-src-n { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted) !important; text-decoration: none; pointer-events: none; margin-right: 10px; }
html.admin .tbl-src-n { pointer-events: auto; color: #9DB8E8 !important; } html.admin .tbl-src-n:hover { text-decoration: underline; }
.tbl-src-a { font-weight: 700; color: var(--gold) !important; text-decoration: none; white-space: nowrap; } .tbl-src-a:hover { text-decoration: underline; }
html[data-mode="light"] .tbl-src { border-color: #DCE3EE; } html[data-mode="light"] .tbl-src-l { color: #0E7490 !important; } html[data-mode="light"] .tbl-src-a { color: #B07F1F !important; }
html[data-mode="light"].admin .tbl-src-n { color: #2C5DB8 !important; }
/* Markets: TRADING badge under the Performance / OHLC switch */
.mk-ctop3 .mk-view { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mk-trading { text-decoration: none !important; cursor: pointer; display: inline-flex; align-items: center; gap: 14px; padding: 13px 46px 14px; border-radius: 14px;
  color: #fff !important; font-weight: 900; font-size: 24px; letter-spacing: .2em; text-shadow: 0 2px 0 rgba(90,0,10,.55);
  background: linear-gradient(180deg, #FF5A67 0%, #E2283A 48%, #B3142A 100%); border: 1px solid #FF8A93;
  box-shadow: 0 7px 0 #7A0B19, 0 14px 26px rgba(214,40,57,.55), inset 0 2px 0 rgba(255,255,255,.45), inset 0 -3px 0 rgba(0,0,0,.18);
  transform: translateY(0); transition: transform .08s, box-shadow .08s, filter .15s; margin-bottom: 8px; }
.mk-trading:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 9px 0 #7A0B19, 0 18px 30px rgba(214,40,57,.6), inset 0 2px 0 rgba(255,255,255,.45), inset 0 -3px 0 rgba(0,0,0,.18); }
.mk-trading:active { transform: translateY(6px); box-shadow: 0 1px 0 #7A0B19, 0 4px 10px rgba(214,40,57,.45), inset 0 2px 0 rgba(255,255,255,.3); }
.mk-trading i { width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; animation: mk-blink 1.4s ease-in-out infinite; }
@keyframes mk-blink { 50% { opacity: .25; } }
/* ---- Trading page (level 1: list | stock; level 2: order screen) ---- */
.navbar .nav-item:has(> .nav-link[data-value="Trading"]), .navbar .nav-item:has(> .nav-link[data-value="Trading account"]), .navbar .nav-item:has(> .nav-link[data-value="AI Screener"]) { display: none; }
.tr-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .tr-wrap, .tr-otop { grid-template-columns: 1fr !important; } }
.tr-left { padding: 14px 16px; }
.tr-ltop { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tr-ltop .form-group, .tr-ctop .form-group, .tr-sides .form-group, .tr-f .form-group { margin: 0; }
.tr-ltop .shiny-options-group, .tr-ctop .shiny-options-group, .tr-f .shiny-options-group { display: flex; gap: 0 !important; padding: 3px; border-radius: 10px; border: 1px solid #2A4475; background: rgba(7,15,34,.5); }
.tr-ltop .radio-inline, .tr-ctop .radio-inline, .tr-f .radio-inline { margin: 0 !important; padding: 0 !important; }
.tr-ltop .radio-inline input, .tr-ctop .radio-inline input, .tr-f .radio-inline input, .tr-sides .radio-inline input { position: absolute; opacity: 0; pointer-events: none; }
.tr-ltop .radio-inline span, .tr-ctop .radio-inline span, .tr-f .radio-inline span { display: inline-block; padding: 6px 16px; border-radius: 7px; font-size: 12px; font-weight: 700; letter-spacing: .06em; cursor: pointer; color: var(--muted); }
.tr-ctop .radio-inline span { padding: 4px 10px; font-size: 11px; }
.tr-ltop .radio-inline input:checked + span, .tr-ctop .radio-inline input:checked + span, .tr-f .radio-inline input:checked + span { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #0A1530; }
.tr-find { background: rgba(7,15,34,.5); border: 1px solid #2A4475; border-radius: 10px; padding: 7px 12px; color: var(--ink); width: 220px; font-size: 13px; }
.tr-list { max-height: 640px; overflow: auto; border-radius: 10px; border: 1px solid #1A2D52; }
.tr-tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tr-tbl th { position: sticky; top: 0; z-index: 1; background: #0D1D40; color: var(--gold); font-size: 10.5px; letter-spacing: .12em; font-weight: 700; padding: 9px 10px; text-align: right; white-space: nowrap; }
.tr-tbl th:first-child, .tr-tbl td:first-child { text-align: left; }
.tr-tbl td { padding: 8px 10px; text-align: right; border-bottom: 1px solid #16294D; white-space: nowrap; }
.tr-list .tr-tbl tbody tr { cursor: pointer; } .tr-tbl tbody tr:hover td { background: rgba(46,155,255,.07); }
.tr-tbl tr.cur td { background: rgba(212,164,64,.12); } .tr-tbl tr.cur td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.tr-tbl td.tk { font-weight: 800; letter-spacing: .03em; } .tr-tbl td.tk small { display: block; font-weight: 400; font-size: 10.5px; color: var(--muted); letter-spacing: 0; }
.up { color: #22C55E !important; } .dn { color: #EF4444 !important; } .eq { color: #EAB308 !important; }
.tr-right { display: flex; flex-direction: column; gap: 0; }
.tr-hd1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.tr-hd1 > div:first-child { display: flex; align-items: center; gap: 10px; }
.tr-tk { font-size: 26px; font-weight: 800; letter-spacing: .04em; color: #fff; }
.tr-more { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #2A4475; color: var(--gold) !important; text-decoration: none; font-size: 16px; }
.tr-more:hover { background: rgba(212,164,64,.15); }
.tr-trade, .tr-go { border: 0; border-radius: 9px; font-weight: 800; letter-spacing: .12em; color: #fff; }
.tr-trade { background: #D62839; padding: 6px 18px; font-size: 12px; } .tr-trade:hover { filter: brightness(1.1); }
.tr-nm { text-align: right; font-weight: 600; } .tr-nm small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.tr-px { display: flex; align-items: baseline; gap: 14px; margin: 8px 0 10px; } .tr-px b { font-size: 30px; font-weight: 800; } .tr-px span { font-size: 16px; font-weight: 700; }
.tr-px.up b, .tr-px.up span { color: #22C55E; } .tr-px.dn b, .tr-px.dn span { color: #EF4444; } .tr-px.eq b, .tr-px.eq span { color: #EAB308; }
.tr-hd2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px 14px; }
.tr-hd2 span, .tr-kv span { display: block; font-size: 10.5px; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.tr-hd2 b { font-size: 14px; font-variant-numeric: tabular-nums; }
.tr-ctop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tr-info { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.tr-info > .tbl-src { grid-column: 1 / -1; } .tr-info1 { grid-template-columns: 1fr; margin-top: 12px; }
.tr-kv { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px solid #16294D; gap: 10px; }
.tr-kv span { letter-spacing: .06em; font-size: 11.5px; } .tr-kv b { font-weight: 600; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.tr-rng { margin-bottom: 12px; } .tr-rng-l { display: flex; justify-content: space-between; font-size: 13px; } .tr-rng-l span { color: var(--muted); font-size: 11.5px; }
.tr-rng-bar { position: relative; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #EF4444, #EAB308, #22C55E); margin-top: 6px; }
.tr-rng-bar i { position: absolute; top: -4px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #FDE047; border: 2px solid #0A1530; }
.tr-more2 { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--gold) !important; text-decoration: none; }
.tr-soon { margin-top: 8px; color: #FCA5A5; font-weight: 600; }
/* level 2 */
.tr-otop { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 5fr); gap: 18px; align-items: start; }
.tr-ticket .tr-hd1 > div:first-child { gap: 8px; } .tr-ticket .tr-tk { font-size: 22px; } .tr-ticket .tr-px b { font-size: 24px; }
.tr-sides .shiny-options-group { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 12px; }
.tr-sides .radio-inline { margin: 0 !important; padding: 0 !important; }
.tr-sides .radio-inline span { display: block; text-align: center; padding: 9px; border-radius: 9px; font-weight: 800; letter-spacing: .12em; cursor: pointer; background: #1A2D52; color: var(--muted); }
.tr-sides .radio-inline:first-child input:checked + span { background: #16A34A; color: #fff; }
.tr-sides .radio-inline:last-child input:checked + span { background: #DC2626; color: #fff; }
.tr-f { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; margin-bottom: 10px; }
.tr-f label { font-size: 12.5px; color: var(--muted); margin: 0; } .tr-f input.form-control { text-align: right; font-weight: 700; }
.tr-est { margin: 6px 0 12px; } .tr-est > div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 12.5px; } .tr-est span { color: var(--muted); }
.tr-go { width: 100%; padding: 12px; font-size: 15px; } .tr-go.buy { background: #16A34A; } .tr-go.sell { background: #DC2626; } .tr-go:hover { filter: brightness(1.1); color: #fff; }
.tr-ok, .tr-err { margin: 10px 0 0; font-size: 12.5px; font-weight: 600; } .tr-ok { color: #4ADE80; } .tr-err { color: #F87171; }
.tr-book { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tr-book th { font-size: 10.5px; letter-spacing: .1em; padding: 8px 6px; text-align: center; color: #fff; }
.tr-book th:nth-child(-n+2) { background: rgba(22,163,74,.35); } .tr-book th:nth-child(n+3) { background: rgba(220,38,38,.35); }
.tr-book td { text-align: center; padding: 9px 6px; border-bottom: 1px solid #16294D; font-size: 14px; }
.tr-book td a { color: inherit !important; text-decoration: none; font-weight: 800; } .tr-book td a:hover { text-decoration: underline; }
.tr-hint { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; }
.tr-sec { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 8px; } .tr-sec h4 { margin: 0; font-size: 14px; letter-spacing: .1em; font-weight: 700; }
.tr-pos tbody tr { cursor: pointer; }
.tr-reset { margin-top: 18px; text-align: right; }
html[data-mode="light"] .tr-tbl th { background: #F1F4FA; color: #B07F1F; } html[data-mode="light"] .tr-tbl td, html[data-mode="light"] .tr-kv, html[data-mode="light"] .tr-book td { border-color: #E6EBF3; }
html[data-mode="light"] .tr-list { border-color: #E1E7F0; } html[data-mode="light"] .tr-tk { color: var(--navy); }
html[data-mode="light"] .tr-find, html[data-mode="light"] .tr-ltop .shiny-options-group, html[data-mode="light"] .tr-ctop .shiny-options-group, html[data-mode="light"] .tr-f .shiny-options-group { background: #fff; border-color: #C9D4E6; }
html[data-mode="light"] .tr-sides .radio-inline span { background: #EEF2F8; } html[data-mode="light"] .tr-book th { color: #13203A; }
html[data-mode="light"] .eq { color: #B45309 !important; }
.tr-f .form-group, .tr-f .shiny-input-container { width: 100% !important; } .tr-f input.form-control { width: 100%; }
.tr-kv b { white-space: nowrap; }
.tr-kv b span { display: inline; font-size: inherit; letter-spacing: 0; font-weight: inherit; }
/* Trading pop-up: the trading pages to choose from */
.tr-opts { display: grid; gap: 10px; }
.tr-opt { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid #22355C; background: #10224A; color: var(--ink) !important; text-decoration: none !important; }
.tr-opt svg { width: 26px; height: 26px; } .tr-opt b { display: block; font-size: 14px; letter-spacing: .04em; } .tr-opt span { font-size: 12px; color: var(--muted); }
.tr-opt em { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; padding: 4px 10px; border-radius: 6px; background: #16A34A; color: #fff; }
.tr-opt:not(.off):hover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.tr-opt.off { opacity: .55; cursor: default; } .tr-opt.off em { background: #2A3B5F; color: var(--muted); }
html[data-mode="light"] .tr-opt { background: #fff; border-color: #DCE3EE; }
/* Trading: top tabs Vietnam | International */
.tr-tabbar { margin: 4px 0 18px; align-items: center; }
.tr-tabbar #tr_region .shiny-options-group { display: flex; gap: 2px; }
.tr-tabbar #tr_region .radio-inline { margin: 0 !important; padding: 0; }
.tr-tabbar #tr_region .radio-inline input { display: none; }
.tr-tabbar #tr_region .radio-inline span { display: inline-block; padding: 12px 26px; font-size: 14px; font-weight: 800; letter-spacing: .16em; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tr-tabbar #tr_region .radio-inline input:checked + span { color: #fff; border-bottom-color: var(--gold); }
.tr-rn { font-size: 12px; color: var(--muted); letter-spacing: .06em; padding-bottom: 8px; }
.tr-ltop h3 { margin: 0; font-size: 16px; }
html[data-mode="light"] .tr-tabbar #tr_region .radio-inline input:checked + span { color: #0B1A3A; }
/* ---- Markets: OPEN TRADING ACCOUNT | START TRADING (3D buttons; the one not available is greyed but shown) ---- */
.mk-trbtns { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.mk-trbtns .mk-trading { font-size: 15px; padding: 9px 22px 10px; letter-spacing: .14em; gap: 10px; border-radius: 11px; }
.mk-trbtns .mk-trading i { width: 10px; height: 10px; }
.mk-trdet { display: flex; justify-content: center; margin: 4px 0 18px; }
.mk-trading.open { background: linear-gradient(180deg, #4ADE80 0%, #16A34A 50%, #0F7A35 100%); border-color: #86EFAC; text-shadow: 0 2px 0 rgba(0,60,20,.5);
  box-shadow: 0 7px 0 #0B5A27, 0 14px 26px rgba(22,163,74,.45), inset 0 2px 0 rgba(255,255,255,.45), inset 0 -3px 0 rgba(0,0,0,.18); }
.mk-trading.open:hover { box-shadow: 0 9px 0 #0B5A27, 0 18px 30px rgba(22,163,74,.5), inset 0 2px 0 rgba(255,255,255,.45); }
.mk-trading.open:active { box-shadow: 0 1px 0 #0B5A27, 0 4px 10px rgba(22,163,74,.4); }
.mk-trading.off, .mk-trading.off:hover, .mk-trading.off:active { cursor: not-allowed; filter: grayscale(1) brightness(.75); opacity: .55; transform: none;
  box-shadow: 0 5px 0 #2A2F3A, inset 0 2px 0 rgba(255,255,255,.2); }
.mk-trading.off i { animation: none; box-shadow: none; }
/* ---- Trading: kind of market ---- */
.tr-kinds { margin: -4px 0 14px; } .tr-kinds .form-group { margin: 0; }
.tr-kinds .shiny-options-group { display: inline-flex; gap: 6px; padding: 5px; border-radius: 14px; border: 1px solid #2A4475; background: rgba(7,15,34,.5); flex-wrap: wrap; }
.tr-kinds .radio-inline { margin: 0 !important; padding: 0 !important; }
.tr-kinds .radio-inline input { position: absolute; opacity: 0; pointer-events: none; }
.tr-kinds .radio-inline span { display: inline-block; padding: 9px 22px; border-radius: 10px; font-weight: 800; font-size: 13px; letter-spacing: .12em; cursor: pointer; color: var(--muted); }
.tr-kinds .radio-inline input:checked + span { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #0A1530; }
/* ---- Trading level 2: the order screen ---- */
.tr-o { display: grid; gap: 14px; align-items: stretch;
  grid-template-columns: 300px minmax(0, 1.15fr) minmax(0, .95fr) minmax(0, 1.7fr) 230px;
  grid-template-areas: "tick px stat chart tape" "acct tabs tabs tabs tabs"; }
.tr-o > .mk-card { margin: 0; padding: 14px 16px; min-width: 0; }
.tr-ticket { grid-area: tick; } .tr-pxw { grid-area: px; } .tr-stat { grid-area: stat; } .tr-o .tr-chart { grid-area: chart; } .tr-tape { grid-area: tape; }
.tr-acctw { grid-area: acct; } .tr-tabsw { grid-area: tabs; }
@media (max-width: 1720px) { .tr-o { grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "tick px stat" "chart chart tape" "acct tabs tabs"; } }
@media (max-width: 1000px) { .tr-o { grid-template-columns: 1fr; grid-template-areas: "tick" "px" "stat" "chart" "tape" "acct" "tabs"; } }
.tr-o h3 { font-size: 15px; letter-spacing: .06em; margin: 0 0 10px; } .tr-o h3 small { color: var(--muted); font-size: 11px; margin-left: 8px; letter-spacing: .1em; }
.tr-sym { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.tr-sym .form-group { margin: 0; } .tr-sym .selectize-input { font-size: 20px; font-weight: 800; letter-spacing: .04em; padding: 9px 12px; min-height: 48px; }
.tr-starb { width: 44px; height: 48px; border-radius: 10px; border: 1px solid #2A4475; background: rgba(7,15,34,.5); color: var(--muted); font-size: 22px; line-height: 1; }
.tr-starb.on { color: #FACC15; border-color: #A16207; } .tr-starb:hover { color: #FACC15; }
.tr-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 0 4px; } .tr-name b { font-size: 13px; }
.tr-name small { flex-basis: 100%; color: var(--muted); font-size: 11.5px; } .tr-name .tr-more { width: 22px; height: 22px; font-size: 13px; }
.tr-f { grid-template-columns: 92px 1fr; } .tr-step { grid-template-columns: 92px 1fr 30px; gap: 6px; }
.tr-pm { display: flex; flex-direction: column; gap: 3px; } .tr-pm button { height: 18px; border: 1px solid #2A4475; background: #13254D; color: var(--ink); border-radius: 5px; font-size: 9px; line-height: 1; padding: 0; }
.tr-pm button:hover { background: #1C3567; color: var(--gold2); }
.tr-mkt { font-size: 12.5px; color: var(--gold2); text-align: right; }
.tr-px2 { margin: 0 0 6px; } .tr-px2 b { font-size: 34px; }
.tr-vv { display: flex; gap: 22px; margin-bottom: 12px; flex-wrap: wrap; } .tr-vv span { display: block; font-size: 10.5px; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.tr-vv b { font-size: 16px; font-variant-numeric: tabular-nums; }
.tr-pxw .tr-book td { font-size: 17px; padding: 11px 4px; } .tr-pxw .tr-book td:nth-child(2) a, .tr-pxw .tr-book td:nth-child(3) a { font-size: 19px; }
.tr-press { margin-top: 12px; } .tr-press-l { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.tr-press-bar { height: 6px; border-radius: 3px; background: #DC2626; margin-top: 5px; overflow: hidden; } .tr-press-bar i { display: block; height: 100%; background: #16A34A; }
.ce { color: #C084FC !important; } .fl { color: #22D3EE !important; }
.tr-stat .tr-kv { padding: 7px 0; } .tr-stat .tr-kv span { font-size: 12px; } .tr-stat .tr-kv b { font-size: 13.5px; }
.tr-tapel { max-height: 330px; overflow: auto; border-radius: 8px; border: 1px solid #1A2D52; }
.tr-tapet td, .tr-tapet th { padding: 6px 8px; font-size: 12.5px; } .tr-tapet td:last-child { font-weight: 800; width: 18px; }
.tr-acsep { height: 1px; background: #22355C; margin: 10px 0; }
.tr-acctw .tr-kv b { font-size: 14px; } .tr-acctw .tr-reset { margin-top: 12px; }
.tr-tabs { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; border-bottom: 1px solid #22355C; }
.tr-tabs .form-group { margin: 0; } .tr-tabs .shiny-options-group { display: flex; gap: 4px; }
.tr-tabs .radio-inline { margin: 0 !important; padding: 0 !important; } .tr-tabs .radio-inline input { position: absolute; opacity: 0; pointer-events: none; }
.tr-tabs .radio-inline span { display: inline-block; padding: 10px 18px; font-weight: 700; font-size: 12.5px; letter-spacing: .12em; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.tr-tabs .radio-inline input:checked + span { color: var(--gold2); border-bottom-color: var(--gold); }
.tr-tabsw .tr-tbl { font-size: 13.5px; } .tr-tbl tr.tr-tot td { font-weight: 800; background: rgba(212,164,64,.08); }
.tr-tbl td.tk small { display: block; }
.tr-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; background: #1A2D52; }
.tr-badge.filled { background: rgba(22,163,74,.25); color: #4ADE80; } .tr-badge.working { background: rgba(234,179,8,.2); color: #FACC15; }
.tr-badge.cancelled, .tr-badge.rejected { background: rgba(148,163,184,.15); color: #94A3B8; }
.tr-empty { padding: 26px 0; text-align: center; font-size: 13px; }
.tr-noacc { text-align: center; } .tr-noacc .mk-trading { font-size: 15px; padding: 10px 18px; margin-top: 8px; letter-spacing: .1em; }
/* the indices at the bottom of the order screen */
.tr-strip { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: stretch; margin: 14px -4px 0; border-radius: 12px; overflow: hidden;
  background: #081430; border: 1px solid #22355C; box-shadow: 0 -6px 18px rgba(0,0,0,.35); }
.tr-ixs { display: flex; flex: 1; overflow-x: auto; }
.tr-ix { display: grid; grid-template-columns: auto auto; gap: 0 12px; padding: 8px 18px; border-right: 1px solid #1A2D52; text-decoration: none !important; color: var(--ink) !important; white-space: nowrap; }
.tr-ix b { grid-column: 1 / -1; font-size: 12px; letter-spacing: .06em; } .tr-ix span { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tr-ix span:nth-of-type(1) { grid-column: 1 / -1; font-size: 15px; } .tr-ix:hover { background: rgba(46,155,255,.08); }
.tr-clock { display: flex; flex-direction: column; justify-content: center; padding: 8px 18px; background: #0D1D40; white-space: nowrap; }
.tr-clock b { font-size: 13px; letter-spacing: .1em; color: var(--gold2); } .tr-clock span { font-size: 13px; font-variant-numeric: tabular-nums; }
html[data-mode="light"] .tr-strip { background: #fff; border-color: #DCE3EE; } html[data-mode="light"] .tr-clock { background: #F1F4FA; }
html[data-mode="light"] .tr-ix { border-color: #E6EBF3; }
/* ---- Trading account page ---- */
.tra-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tra-steps span { padding: 7px 14px; border-radius: 20px; border: 1px solid #2A4475; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.tra-steps span.on { border-color: var(--gold); color: var(--gold2); }
.tra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } @media (max-width: 1000px) { .tra-grid { grid-template-columns: 1fr; } }
.tra-card { padding: 18px 22px; margin-bottom: 18px; } .tra-card h3 { font-size: 17px; margin: 0 0 14px; } .tra-h3b { margin-top: 18px !important; }
.tra-card label { font-size: 12.5px; color: var(--muted); }
.tra-fixed { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0; }
.tra-fixed > div { border: 1px solid #22355C; border-radius: 10px; padding: 10px 12px; } .tra-fixed span { display: block; font-size: 10.5px; letter-spacing: .12em; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.tra-fixed b { font-size: 16px; } .tra-fixed .tr-err { grid-column: 1 / -1; margin: 0; }
.tra-terms { max-height: 220px; overflow: auto; border: 1px solid #22355C; border-radius: 10px; padding: 12px 16px 4px; margin-bottom: 12px; font-size: 13px; background: rgba(7,15,34,.35); }
.tra-terms li { margin-bottom: 8px; }
.tra-go { text-align: center; margin: 18px 0 8px; } .tra-btn { font-size: 18px !important; padding: 12px 30px !important; }
.tra-ok { border-color: rgba(22,163,74,.6); } .tra-ok h3 { color: #4ADE80; } .tra-ok .mk-trading { margin-top: 14px; }
html[data-mode="light"] .tra-terms { background: #F7F9FC; border-color: #DCE3EE; } html[data-mode="light"] .tra-fixed > div { border-color: #DCE3EE; }
/* Trading glossary tooltips (www/js/vtp.js): same look as the Markets column tooltips */
.gl { cursor: help; text-decoration: underline dotted rgba(212,164,64,.55); text-underline-offset: 3px; }
.tr-tabs .gl, .tr-kinds .gl, .tr-sides .gl, .tr-f .radio-inline .gl, .tr-tabbar .gl, .tr-badge.gl, .tr-o h3.gl, .tab-pane[data-value="Trading"] h3.gl { text-decoration: none; }
.gl-tip { display: none; position: fixed; z-index: 3000; width: 270px; padding: 11px 13px; border-radius: 10px; background: #121a4c; border: 1px solid #c9a227;
  box-shadow: 0 14px 34px rgba(0,0,0,.45); text-align: left; font-size: 12.5px; line-height: 1.5; color: #DCE4F2; pointer-events: none; letter-spacing: 0; font-weight: 400; text-transform: none; }
.gl-tip b { display: block; color: var(--gold2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
html[data-mode="light"] .gl-tip { background: #fff; color: var(--navy); box-shadow: 0 14px 34px rgba(11,26,58,.18); } html[data-mode="light"] .gl-tip b { color: #8A6418; }
/* Trading pop-up: the 6 markets as boxes, 2 rows x 3 columns, centred */
.modal-dialog:has(.tr-opts) { max-width: 900px; }
.tr-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tr-opt { grid-template-columns: 1fr; grid-template-rows: auto auto auto; justify-items: center; text-align: center; gap: 10px; padding: 22px 14px 18px; min-height: 190px; }
.tr-opt svg { width: 40px; height: 40px; } .tr-opt b { font-size: 15px; } .tr-opt span { display: block; margin-top: 4px; }
.tr-opt:not(.off) { border-color: rgba(212,164,64,.6); }
.tr-opt.off { opacity: .55; } .tr-opt.off em { background: #2A3550; color: #94A3B8; }
@media (max-width: 760px) { .tr-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.modal-dialog:has(.tr-opts) .modal-title { font-size: 30px; letter-spacing: .02em; }
.tr-opt b { font-size: 19px !important; letter-spacing: .03em; } .tr-opt span { font-size: 13px !important; }
.tr-pxw .tr-book td:first-child, .tr-pxw .tr-book td:last-child { font-size: 14px; white-space: nowrap; }
.tr-stat .tr-kv span { white-space: nowrap; } .tr-sym .selectize-control { min-width: 0; } .tr-sym .selectize-input > div { white-space: nowrap; overflow: hidden; }
.tr-sym .selectize-control, .tr-sym .form-group, .tr-sym .shiny-input-container { width: 100% !important; min-width: 0; }
/* Resources > Videos */
.vid-intro { max-width: 900px; color: var(--muted); margin: -6px 0 16px; }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; }
.vid-card { padding: 0; overflow: hidden; } .vid-card video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.vid-body { padding: 16px 20px 10px; } .vid-body h3 { margin: 0 0 4px; font-size: 18px; } .vid-sub { color: var(--gold2); font-size: 12.5px; margin-bottom: 10px; }
.vid-body ol { padding-left: 20px; font-size: 13.5px; } .vid-body li { margin-bottom: 5px; }
html[data-mode="light"] .vid-sub { color: #8A6418; }
/* Markets details page: collapsible panels (+ / − at the top right of each panel) */
.mk-card.mk-colable { position: relative; }
.mk-colbtn { position: absolute; top: 16px; right: 18px; z-index: 3; width: 34px; height: 34px; border-radius: 9px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; line-height: 1; cursor: pointer;
  color: #F4C25B; background: rgba(244,194,91,.08); border: 1px solid rgba(244,194,91,.45); transition: background .15s, transform .15s; }
.mk-colbtn:hover { background: rgba(244,194,91,.2); transform: scale(1.06); }
.mk-colhide { display: none !important; }
.mk-card.mk-col { padding-bottom: 14px; } .mk-card.mk-col h3 { margin: 4px 0; }
.mk-card.mk-colable .mk-ctop { padding-right: 46px; }
/* ---- AI SCREENER button (Markets page, end of the filters row): 3D, violet to cyan, with a shine ---- */
.mk-quick a.mk-ai { margin-left: auto; position: relative; overflow: hidden; gap: 10px; padding: 9px 20px 10px 12px; border-radius: 13px;
  color: #fff !important; font-weight: 900; letter-spacing: .14em; text-shadow: 0 2px 0 rgba(40,0,90,.5);
  background: linear-gradient(180deg, #A78BFA 0%, #7C3AED 45%, #4C1D95 100%); border: 1px solid #C4B5FD;
  box-shadow: 0 6px 0 #2E1065, 0 12px 24px rgba(124,58,237,.55), inset 0 2px 0 rgba(255,255,255,.45), inset 0 -3px 0 rgba(0,0,0,.2);
  transition: transform .08s, box-shadow .08s, filter .15s; }
.mk-quick a.mk-ai svg { width: 18px; height: 18px; padding: 4px; color: #FDE68A; background: linear-gradient(135deg, #22D3EE, #6366F1); filter: drop-shadow(0 0 6px rgba(253,230,138,.8)); }
.mk-quick a.mk-ai::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: mk-shine 3.2s ease-in-out infinite; }
@keyframes mk-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.mk-quick a.mk-ai:hover { transform: translateY(-2px); filter: brightness(1.1); border-color: #DDD6FE;
  box-shadow: 0 8px 0 #2E1065, 0 16px 28px rgba(124,58,237,.6), inset 0 2px 0 rgba(255,255,255,.45); }
.mk-quick a.mk-ai:active { transform: translateY(5px); box-shadow: 0 1px 0 #2E1065, 0 4px 10px rgba(124,58,237,.45); }
@media (max-width: 1000px) { .mk-quick a.mk-ai { margin-left: 0; } }
/* ---- AI Screener page ---- */
.scr-ask { background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(34,211,238,.08)), #10224A; border-color: rgba(167,139,250,.45); }
.scr-q { display: flex; gap: 12px; align-items: stretch; margin-top: 10px; } .scr-q .shiny-input-container { flex: 1; margin: 0; }
.scr-q input { height: 48px; font-size: 16px; border-radius: 12px; }
.scr-go { font-weight: 900; letter-spacing: .12em; padding: 0 26px; border-radius: 12px; color: #fff !important; border: 1px solid #C4B5FD;
  background: linear-gradient(180deg, #A78BFA, #6D28D9); box-shadow: 0 4px 0 #2E1065; }
.scr-go:active { transform: translateY(3px); box-shadow: 0 1px 0 #2E1065; }
.scr-ex { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; } .scr-ex span { color: var(--muted); }
.scr-ex a { padding: 4px 11px; border-radius: 20px; border: 1px solid rgba(167,139,250,.5); color: #DDD6FE !important; text-decoration: none; }
.scr-ex a:hover { background: rgba(167,139,250,.18); }
.scr-und { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.scr-und b { font-size: 11px; letter-spacing: .12em; color: #67E8F9; } .scr-und span { padding: 3px 10px; border-radius: 8px; background: rgba(34,211,238,.12); color: #A5F3FC; font-size: 13px; }
.scr-strats .shiny-options-group { display: flex; flex-wrap: wrap; gap: 10px; }
.scr-strats .radio-inline { margin: 0 !important; padding: 0 !important; }
.scr-strats .radio-inline input { position: absolute; opacity: 0; }
.scr-strats .radio-inline span { display: inline-block; padding: 10px 16px; border-radius: 12px; border: 1px solid #2A4475; background: #0D1B3D; font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.scr-strats .radio-inline input:checked + span { border-color: #A78BFA; background: linear-gradient(180deg, rgba(167,139,250,.35), rgba(109,40,217,.25)); color: #fff; box-shadow: 0 0 0 1px #A78BFA inset; }
.scr-sdesc { color: var(--muted); margin: 10px 0 4px; }
.scr-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 10px; } .scr-filters .shiny-input-container { width: 100% !important; margin: 0; }
@media (max-width: 900px) { .scr-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scr-tblw { overflow-x: auto; }
.scr-tbl td, .scr-tbl th { white-space: nowrap; } .scr-tbl td.scr-why { white-space: normal; min-width: 280px; text-align: left !important; color: var(--muted); font-size: 12.5px; }
.scr-tbl th:last-child { text-align: left !important; }
.scr-tbl th:nth-child(2), .scr-tbl td:nth-child(2), .scr-tbl th:nth-child(3), .scr-tbl td:nth-child(3), .scr-tbl th:nth-child(4), .scr-tbl td:nth-child(4), .scr-tbl th:nth-child(5), .scr-tbl td:nth-child(5) { text-align: left !important; }
.scr-tbl td.up { color: #34D399; } .scr-tbl td.dn { color: #F87171; }
.scr-rk { color: var(--gold2); font-weight: 800; } .scr-nm { font-weight: 700; color: #fff !important; text-decoration: none; } .scr-nm:hover { color: var(--gold2) !important; }
.scr-tk { color: var(--gold2); font-weight: 700; }
.scr-score { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.scr-trk { width: 90px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.scr-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #22D3EE, #A78BFA); }
.scr-score b { width: 24px; text-align: right; color: #fff; }
/* AI Screener: today's picks */
.scr-today { border-color: rgba(253,230,138,.45); background: linear-gradient(135deg, rgba(212,164,64,.16), rgba(124,58,237,.12)), #10224A; }
.scr-today h3 { color: #FDE68A; }
.scr-picks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; margin-top: 12px; }
.scr-picks4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .scr-picks { grid-template-columns: 1fr; } .scr-picks4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scr-pick { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; text-decoration: none !important; color: inherit !important;
  background: #0D1B3D; border: 1px solid #2A4475; transition: transform .12s, border-color .12s; }
.scr-pick:hover { transform: translateY(-2px); border-color: #A78BFA; }
.scr-pick.big { border: 1px solid #FDE68A; background: linear-gradient(180deg, rgba(253,230,138,.12), rgba(13,27,61,1) 60%); justify-content: center; }
.scr-plab { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #C4B5FD; } .scr-pick.big .scr-plab { color: #FDE68A; }
.scr-pname { font-weight: 800; font-size: 15px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .scr-pick.big .scr-pname { font-size: 22px; white-space: normal; }
.scr-pmeta { font-size: 12px; color: var(--muted); }
.scr-prow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; } .scr-prow b { color: #fff; font-size: 15px; }
.scr-prow .up { color: #34D399; } .scr-prow .dn { color: #F87171; } .scr-prow .scr-score { margin-left: auto; }
.scr-pwhy { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
/* ---- Administration ---- */
.cbtn.admbtn { color: #fff !important; background: linear-gradient(180deg, #EF4444, #B91C1C) !important; border-color: #F87171 !important; box-shadow: 0 4px 14px rgba(220,38,38,.35); }
.cbtn.admbtn:hover, html.admin .cbtn.admbtn { background: linear-gradient(180deg, #F87171, #DC2626) !important; color: #fff !important; }
html.admin .cbtn.admbtn::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 6px #34D399; }
.cbtn.admbtn { position: relative; }
.adm-tabs { margin: 4px 0 16px; }
.adm-tabs .shiny-options-group { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-tabs .radio-inline { margin: 0 !important; padding: 0 !important; }
.adm-tabs .radio-inline input { position: absolute; opacity: 0; }
.adm-tabs .radio-inline span { display: inline-block; padding: 9px 16px; border-radius: 10px; border: 1px solid #2A4475; background: #0D1B3D; font-weight: 800; font-size: 12.5px; letter-spacing: .1em; cursor: pointer; }
.adm-tabs .radio-inline input:checked + span { border-color: var(--gold); color: #fff; background: linear-gradient(180deg, rgba(212,164,64,.35), rgba(212,164,64,.12)); box-shadow: 0 0 0 1px var(--gold) inset; }
.adm-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 22px; margin-top: 12px; align-items: start; }
@media (max-width: 900px) { .adm-grid3 { grid-template-columns: 1fr; } }
.adm-col label { display: block; margin-bottom: 6px; } .adm-col div { display: flex; align-items: center; gap: 10px; }
.adm-col input[type=color] { width: 56px; height: 38px; padding: 2px; border-radius: 8px; border: 1px solid #2A4475; background: #0D1B3D; cursor: pointer; }
.adm-col code { color: var(--gold2); background: none; }
.adm-h3 { margin-top: 22px !important; font-size: 14px !important; color: var(--gold2) !important; }
.adm-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; } .adm-acts .shiny-input-container { margin: 0; }
.adm-acts .adm-b, .mk-act .adm-b { margin-left: 0; padding: 6px 14px; color: var(--ink); border-color: #2A4475; }
.adm-b.warn { color: #FBBF24; border-color: rgba(251,191,36,.5); } .adm-b.warn:hover { background: rgba(251,191,36,.14); }
.mk-act { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-nav td { vertical-align: middle; } .adm-nav td .shiny-input-container, .adm-nav td .form-group { margin: 0; width: 100% !important; }
.adm-nav th:nth-child(2), .adm-nav td:nth-child(2) { text-align: center !important; width: 90px; } .adm-nav td:nth-child(2) .checkbox { margin: 0; display: inline-block; }
.adm-nav th:nth-child(3), .adm-nav td:nth-child(3) { text-align: left !important; width: 50%; }
.adm-nav tr.top td { border-top: 1px solid #2A4475; } .adm-sub { color: var(--muted); margin-left: 14px; }
/* banner and maintenance screen */
.cms-banner { position: relative; z-index: 1040; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 9px 48px; font-weight: 600; font-size: 14px; text-align: center; }
.cms-banner.info { background: linear-gradient(90deg, #1E3A8A, #1D4ED8); color: #fff; } .cms-banner.success { background: linear-gradient(90deg, #065F46, #059669); color: #fff; }
.cms-banner.warning { background: linear-gradient(90deg, #92400E, #D97706); color: #fff; }
.cms-banner button { position: absolute; right: 14px; background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; opacity: .8; }
#cms_maint { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 30%, #13265A, #050B1C 70%); }
#cms_maint.off { display: none; }
.cms-mcard { text-align: center; max-width: 520px; padding: 40px; } .cms-mcard img { width: 220px; margin-bottom: 18px; }
.cms-mcard h2 { color: var(--gold2); font-family: Georgia, serif; font-style: italic; font-size: 40px; } .cms-mcard p { color: #C7D3E8; font-size: 16px; margin: 14px 0 26px; }
.cms-mcard a { color: var(--muted) !important; font-size: 13px; }
html.no-signup #lg_in .lg-alt { display: none; }
.adm-wrap { padding: 36px 56px 40px; } @media (max-width: 800px) { .adm-wrap { padding: 24px 16px; } }
/* Resources > Tables and Table structure moved to Administration (DATA tabs): not in the menu any more */
.navbar .dropdown-item[data-value="Tables"], .navbar .dropdown-item[data-value="Table structure"] { display: none !important; }
/* Administration tabs in four groups, each with a caption above its first tab: PEOPLE, WEBSITE, CONFIGURATION, DATA */
.adm-tabs { padding-top: 18px; }
.adm-tabs .shiny-options-group { row-gap: 26px !important; }
.adm-tabs .radio-inline { position: relative; }
.adm-tabs .radio-inline:has(input[value=users])::before, .adm-tabs .radio-inline:has(input[value=theme])::before,
.adm-tabs .radio-inline:has(input[value=settings])::before, .adm-tabs .radio-inline:has(input[value=tables])::before {
  position: absolute; top: -18px; left: 2px; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; color: var(--gold); opacity: .85; white-space: nowrap; }
.adm-tabs .radio-inline:has(input[value=users])::before { content: 'PEOPLE'; }
.adm-tabs .radio-inline:has(input[value=theme])::before { content: 'WEBSITE'; }
.adm-tabs .radio-inline:has(input[value=settings])::before { content: 'CONFIGURATION'; }
.adm-tabs .radio-inline:has(input[value=tables])::before { content: 'DATA'; color: #2E9BFF; }
.adm-tabs .radio-inline:has(input[value=theme]), .adm-tabs .radio-inline:has(input[value=settings]), .adm-tabs .radio-inline:has(input[value=tables]) { margin-left: 22px !important; }
.adm-tabs .radio-inline:has(input[value=tables]) span, .adm-tabs .radio-inline:has(input[value=struct]) span, .adm-tabs .radio-inline:has(input[value=data]) span,
.adm-tabs .radio-inline:has(input[value=backup]) span { border-color: rgba(46,155,255,.45); }
.adm-tabs .radio-inline:has(input[value=settings]) span { border-color: rgba(212,164,64,.6); }
html[data-mode="light"] .adm-tabs .radio-inline::before { color: #8a6100; }
@media (max-width: 640px) { .adm-tabs .radio-inline:has(input[value=theme]), .adm-tabs .radio-inline:has(input[value=settings]), .adm-tabs .radio-inline:has(input[value=tables]) { margin-left: 0 !important; } }

/* footer: copyright line only, centred (the admin also sees Documents and VTP above it) */
.vtp-footer .in { grid-template-columns: 1fr 1fr; padding: 26px 22px 14px; }
html:not(.admin) .vtp-footer .in { display: none !important; }
.vtp-footer { margin-top: 16px; }
.vtp-footer small { display: block; text-align: center; line-height: 1.3; padding: 9px 16px; margin: 0 auto; font-size: 12px; }
html:not(.admin) .vtp-footer small { border-top: 0; }

/* trading account: each terms box on one line; the activate button is off until the three boxes are ticked */
.tra-oks .form-group { width: 100% !important; margin-bottom: 6px; }
.tra-oks .checkbox label { white-space: nowrap; }
@media (max-width: 700px) { .tra-oks .checkbox label { white-space: normal; } }
.tra-btn:disabled, .tra-btn[disabled] { opacity: .45; filter: grayscale(.7); cursor: not-allowed; box-shadow: none !important; transform: none !important; }

/* AI Screener: more room inside and around the panels */
.scr-wrap { padding: 4px 12px 0; }
.scr-wrap .mk-card { padding: 28px 34px; margin-bottom: 24px; }
.scr-wrap .mk-card h3 { margin-bottom: 14px; }
.scr-wrap .scr-filters { margin-top: 18px; gap: 18px; }
.scr-wrap .scr-strats { margin-top: 4px; }
@media (max-width: 700px) { .scr-wrap { padding: 0; } .scr-wrap .mk-card { padding: 18px; } }

/* Markets: VIETNAM / GLOBAL in the header, centred between the title and the last update; AI SCREENER stays at the right end of the filter row */
.mk-hrow > .mk-hreg { flex: 1 1 auto; justify-content: center; margin-top: 0; }
.mk-hrow > div:first-child:has(+ .mk-hreg) { flex: 0 0 auto; }
.mk-quick a.mk-ai { margin-left: auto; }
@media (max-width: 900px) { .mk-hrow > .mk-hreg { justify-content: flex-start; order: 3; flex-basis: 100%; } }

/* admin sign-in (from the admin icon): red box */
html.lg-admin .lg-card { background: linear-gradient(180deg, #7F1D1D, #450A0A) !important; border-color: #EF4444 !important; box-shadow: 0 20px 60px rgba(127,29,29,.55), 0 0 0 1px rgba(239,68,68,.35) inset; }
html.lg-admin .lg-card .mk-kick { color: #FECACA !important; }
html.lg-admin .lg-card .lg-sub, html.lg-admin .lg-card label { color: #FECACA !important; }
html.lg-admin .lg-card .form-control { background: rgba(0,0,0,.28) !important; border-color: rgba(254,202,202,.35) !important; color: #fff !important; }
html.lg-admin .lg-card #lg_go { background: #EF4444 !important; border-color: #EF4444 !important; color: #fff !important; }
html.lg-admin .lg-card .lg-alt, html.lg-admin .lg-card .lg-foot { display: none; }

/* fingerprint sign-in: only on devices with a reader (html.pk-ok), the sign-in button only after a passkey was made here (html.pk-has) */
#pk_login, .pk-yes { display: none !important; } .pk-no { display: block; }
html.pk-ok .pk-yes { display: inline-block !important; } html.pk-ok p.pk-yes { display: block !important; } html.pk-ok .pk-no { display: none; }
html.pk-ok.pk-has #pk_login { display: flex !important; }
.pk-btn { align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 10px; background: transparent; color: #E6EDF8 !important;
  border: 1px solid #3B5A93 !important; font-weight: 700; letter-spacing: .06em; }
.pk-btn:hover { border-color: var(--gold) !important; color: var(--gold2) !important; }
.pk-btn svg { width: 22px; height: 22px; }
.pk-list { list-style: none; padding: 0; margin: 6px 0 12px; font-size: 13px; } .pk-list li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.pk-list a { margin-left: 10px; color: #F87171 !important; }
html.lg-admin .pk-btn { color: #fff !important; border-color: rgba(254,202,202,.5) !important; }

/* language button of the icons menu */
.lang-wrap { position: relative; display: inline-flex; }
.cbtn.langbtn { width: auto !important; padding: 0 10px; gap: 5px; display: inline-flex; align-items: center; }
.cbtn.langbtn svg { width: 18px; height: 18px; } #lang_lbl { font-weight: 800; font-size: 12px; letter-spacing: .06em; }
.lang-menu { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px; padding: 6px; z-index: 2000;
  background: #0F1E44; border: 1px solid #2A4475; border-radius: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.lang-wrap.open .lang-menu { display: block; }
.lang-menu a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: #DCE6F7 !important; text-decoration: none; font-size: 14px; }
.lang-menu a b { width: 26px; font-size: 12px; letter-spacing: .06em; color: var(--gold2); }
.lang-menu a:hover { background: rgba(255,255,255,.06); } .lang-menu a.on { background: rgba(212,164,64,.16); }
html[data-mode="light"] .lang-menu { background: #fff; border-color: #DCE3EE; } html[data-mode="light"] .lang-menu a { color: #22324F !important; }

/* Markets: AI SCREENER above the last update, top right */
.mk-hside { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.mk-quick.mk-aiwrap { margin-top: 0; }
.mk-aiwrap a.mk-ai { margin-left: 0; }

/* Administration: panel titles larger, in gold */
.adm-wrap .mk-card h3 { font-size: 24px; color: var(--gold2) !important; letter-spacing: .06em; margin-bottom: 8px; }
html[data-mode="light"] .adm-wrap .mk-card h3 { color: #A87A1E !important; }

/* loading popup */
.vld { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; background: rgba(5,11,26,.55);
  backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.vld.on { opacity: 1; visibility: visible; }
.vld-card { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 260px; padding: 26px 34px; border-radius: 18px;
  background: rgba(16,34,74,.96); border: 1px solid rgba(212,164,64,.45); box-shadow: 0 20px 60px rgba(0,0,0,.45); text-align: center; }
.vld-card img { width: 120px; }
.vld-spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--gold); animation: vldspin .8s linear infinite; }
@keyframes vldspin { to { transform: rotate(360deg); } }
.vld-card b { color: var(--gold2); letter-spacing: .08em; font-size: 15px; } .vld-card span { color: #9FB0CF; font-size: 13px; }
html[data-mode="light"] .vld { background: rgba(240,244,250,.6); } html[data-mode="light"] .vld-card { background: #fff; }
html[data-mode="light"] .vld-card b { color: #A87A1E; } html[data-mode="light"] .vld-card span { color: #4A5A75; }
.rq-to { font-size: 14px; margin: 4px 0 12px; } #rq_list td { vertical-align: top; }
.lg-forgot { display: block; text-align: right; font-size: 12.5px; margin: -6px 0 8px; color: #8FB8FF !important; }
html.lg-admin .lg-forgot { display: none; }
#fp_step2 { margin-top: 14px; }

/* Education & Resources: glossary, FAQ, quiz, documents, libraries, courses */
.edu-search { max-width: 460px; margin: 0 0 16px; }
.edu-search input { background: #0E1C3D; border: 1px solid #22355C; color: #DCE4F2; border-radius: 10px; padding: 10px 14px; }
.edu-gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 18px; }
.edu-term { background: #10224A; border: 1px solid #22355C; border-left: 3px solid var(--gold); border-radius: 10px; padding: 12px 14px; }
.edu-term b { color: var(--gold2); font-size: 15px; } .edu-term p { margin: 4px 0 0; font-size: 13.5px; color: #C3CFE3; }
.edu-faq { margin-bottom: 18px; }
.edu-qa { background: #10224A; border: 1px solid #22355C; border-radius: 10px; margin-bottom: 10px; }
.edu-qa summary { cursor: pointer; padding: 13px 16px; font-weight: 600; color: #fff; list-style: none; }
.edu-qa summary::before { content: "+"; display: inline-block; width: 20px; color: var(--gold); font-weight: 800; }
.edu-qa[open] summary::before { content: "\2212"; }
.edu-qa p { margin: 0; padding: 0 16px 14px 36px; color: #C3CFE3; }
.edu-quiz { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 0 16px; }
.edu-qz h3 { font-size: 16px; color: #fff; margin: 0 0 10px; }
.edu-opt { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.edu-opt:hover { background: #142B5C; }
.edu-opt input { accent-color: var(--gold); }
.edu-qz.done .edu-opt.good { border-color: #2FBF71; background: rgba(47,191,113,.12); }
.edu-qz.done .edu-opt.bad { border-color: #E5484D; background: rgba(229,72,77,.12); }
.edu-qz.right { border-color: #2FBF71; } .edu-qz.wrong { border-color: #E5484D; }
.edu-why { display: none; margin: 10px 0 0; font-size: 13.5px; color: var(--gold2); }
.edu-qz.done .edu-why { display: block; }
.edu-qbar { display: flex; gap: 12px; align-items: center; margin: 6px 0 20px; flex-wrap: wrap; }
.edu-qbar .btn-gold, .edu-qbar .btn { padding: 9px 18px; border-radius: 10px; font-weight: 700; }
#edu_score { color: var(--gold); font-size: 18px; }
.edu-docs, .edu-libs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 18px; }
.edu-doc, .edu-lib { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: #DCE4F2; margin: 0; transition: transform .15s, border-color .15s; }
.edu-doc:hover, .edu-lib:hover { transform: translateY(-2px); border-color: var(--gold); color: #fff; }
.edu-doc svg { width: 34px; height: 34px; color: var(--gold); }
.edu-doc b, .edu-lib b { color: #fff; font-size: 16px; } .edu-lib p { margin: 0; color: #C3CFE3; font-size: 13.5px; flex: 1; }
.edu-doc span, .edu-lib span { color: var(--gold); font-weight: 700; font-size: 13px; }
.edu-lib.big { grid-column: 1 / -1; background: linear-gradient(120deg, #13306A, #10224A); border-color: var(--gold); }
.edu-lib.big b { font-size: 22px; color: var(--gold2); }
.edu-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.edu-course { background: #0E1C3D; border: 1px solid #22355C; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.edu-course b { color: #fff; } .edu-course em { color: var(--gold2); font-size: 12.5px; font-style: normal; }
.edu-course p { margin: 0; color: #C3CFE3; font-size: 13.5px; flex: 1; }
.edu-course a { color: var(--gold); font-weight: 700; font-size: 13px; text-decoration: none; }
@media (max-width: 600px) { .edu-quiz { grid-template-columns: 1fr; } }
/* Markets: asset-class buttons and their sub-categories centred under the header */
.mk-quick.mk-plats { justify-content: center; }
#mk_cats { justify-content: center; padding-left: 0; }
.scr-und .scr-by { margin-left: auto; font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.scr-und .scr-note { flex-basis: 100%; font-size: 13px; color: #C3CFE3; }
/* Markets details page: chart icon of the return panels (left of + / −) and the benchmark popup */
.mk-cmpbtn { position: absolute; top: 16px; right: 60px; z-index: 3; width: 34px; height: 34px; border-radius: 9px; padding: 6px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #5EC8F2;
  background: rgba(94,200,242,.08); border: 1px solid rgba(94,200,242,.45); transition: background .15s, transform .15s; }
.mk-cmpbtn svg { width: 20px; height: 20px; }
.mk-cmpbtn:hover { background: rgba(94,200,242,.2); transform: scale(1.06); }
.mk-card:not(.mk-colable) .mk-cmpbtn { right: 18px; }
.mk-card .mk-ctop, .mk-card.mk-colable h3 { padding-right: 96px; }
.modal-dialog:has(.mk-cmp) { max-width: min(1500px, calc(100vw - 48px)); margin: 92px auto 24px; }
@media (max-width: 640px) { .modal-dialog:has(.mk-cmp) { max-width: none; margin: 70px 8px 16px; } }
/* benchmark: red, the colour of its line in the chart */
html #mk_cmp_bench { background-color: #5A2416 !important; border: 1px solid #FF7A59 !important; color: #fff !important; border-radius: 10px; font-weight: 700; min-height: 42px; }
html[data-mode="light"] #mk_cmp_bench { background-color: #FFE3DB !important; color: #8A2A12 !important; }
#mk_cmp_bench:focus { box-shadow: 0 0 0 3px rgba(255,122,89,.3); }
#mk_cmp_bench option, #mk_cmp_bench optgroup { background: #0B1A3A; color: #e8edf6; }
html[data-mode="light"] #mk_cmp_bench option, html[data-mode="light"] #mk_cmp_bench optgroup { background: #fff; color: #0B1A3A; }
.mk-cmp-top label[for="mk_cmp_bench"] { color: #FF7A59; opacity: 1; }
.mk-cmp-top { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-end; margin-bottom: 10px; }
.mk-cmp-top label { font-size: 12px; font-weight: 700; letter-spacing: .08em; opacity: .8; display: block; margin-bottom: 4px; }
.mk-cmp-top .form-group { margin-bottom: 0; }
.mk-cmp .nav-pills { margin: 8px 0 10px; gap: 6px; }
.mk-cmp .nav-pills .nav-link { font-weight: 700; letter-spacing: .06em; border: 1px solid rgba(244,194,91,.45); color: #F4C25B; }
.mk-cmp .nav-pills .nav-link.active { background: #F4C25B; color: #0B1A3A; }
.mk-cmp-tbl { width: 100%; margin-top: 8px; } .mk-cmp-tbl td:not(:first-child), .mk-cmp-tbl th:not(:first-child) { text-align: right; }
.mk-cmp-note { font-size: 13px; opacity: .8; margin: 8px 0 0; }
/* Coming soon button of the icons menu: the modules not open yet */
.soon-menu { min-width: 330px; padding: 8px; }
.soon-menu .soon-head { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold2); padding: 6px 10px 8px; }
.soon-menu a.soon-it { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; cursor: default; align-items: center; }
.soon-menu a.soon-it b { width: auto; font-size: 14px; letter-spacing: .02em; grid-column: 1; }
.soon-menu a.soon-it span { grid-column: 1; font-size: 12.5px; opacity: .75; line-height: 1.3; }
.soon-menu a.soon-it em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 7px; border-radius: 6px; color: var(--gold2); border: 1px solid rgba(212,164,64,.5); }
html[data-mode="light"] .soon-menu .soon-head, html[data-mode="light"] .soon-menu a.soon-it em { color: #A87A1E; }
/* Education > Pricers: OPTIONS / FUTURES tabs, underlying and pricing choice */
.pr-wrap { padding: 8px 0 24px; }
.pr-wrap > .tabbable > .nav-pills, .pr-wrap .nav-pills { gap: 8px; margin-bottom: 14px; }
.pr-wrap .nav-pills .nav-link { font-weight: 700; letter-spacing: .08em; border: 1px solid rgba(244,194,91,.45); color: #F4C25B; padding: 8px 22px; }
.pr-wrap .nav-pills .nav-link.active { background: #F4C25B; color: #0B1A3A; }
.pr-top { display: grid; grid-template-columns: minmax(170px, 210px) minmax(320px, 1.4fr) minmax(260px, 1fr); gap: 14px; margin-bottom: 16px; align-items: stretch; }
@media (max-width: 1100px) { .pr-top { grid-template-columns: 1fr 1fr; } .pr-card-info { grid-column: 1 / -1; } }
@media (max-width: 640px) { .pr-top { grid-template-columns: 1fr; } }
.pr-card { background: rgba(255,255,255,.035); border: 1px solid rgba(244,194,91,.22); border-radius: 14px; padding: 14px 16px 16px; min-width: 0; }
.pr-cap { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: #F4C25B; margin-bottom: 12px; }
.pr-num { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; background: rgba(244,194,91,.16); border: 1px solid rgba(244,194,91,.5); }
.pr-top .form-group { margin-bottom: 0; }
.pr-seg .shiny-options-group { display: flex; flex-direction: column; gap: 8px; }
.pr-seg .radio { margin: 0; padding: 0; }
.pr-seg .radio label { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); font-weight: 700; letter-spacing: .03em; transition: border-color .15s, background .15s; }
.pr-seg .radio label:hover { border-color: rgba(244,194,91,.55); }
.pr-seg .radio input { margin: 0; accent-color: #F4C25B; width: 16px; height: 16px; flex: none; position: static; }
.pr-seg .radio label:has(input:checked) { border-color: #F4C25B; background: rgba(244,194,91,.12); color: #F4C25B; }
.pr-inst { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; }
@media (max-width: 640px) { .pr-inst { grid-template-columns: 1fr; } }
.pr-pick .selectize-input { border-radius: 10px; min-height: 42px; padding-top: 10px; }
.pr-live { margin-top: 8px; } .pr-live .checkbox { margin: 0; } .pr-live label { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; opacity: .9; }
.pr-live input { accent-color: #2ECC8F; }
.pr-hint { font-size: 13.5px; opacity: .75; margin: 6px 0 0; line-height: 1.5; }
.pr-info .pr-note { margin: 0 0 6px; line-height: 1.55; }
.pr-note { font-size: 13.5px; opacity: .85; margin: 4px 0 0; }
html[data-mode="light"] .pr-card, html.light .pr-card { background: #fff; border-color: rgba(11,26,58,.14); }
html[data-mode="light"] .pr-seg .radio label, html.light .pr-seg .radio label { border-color: rgba(11,26,58,.16); background: #f7f8fb; }
html[data-mode="light"] .pr-seg .radio label:has(input:checked), html.light .pr-seg .radio label:has(input:checked) { background: rgba(244,194,91,.18); color: #8a6100; border-color: #d9a43a; }
.pr-iv { margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.pr-iv > label { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--gold2); display: block; margin-bottom: 4px; }
.pr-ivv { font-size: 26px; font-weight: 800; margin: 4px 0 2px; color: #5EC8F2; }
/* Education > Insights */
.edu-ins { display: grid; gap: 14px; }
.edu-in { display: block; text-decoration: none; color: inherit; }
.edu-in:hover { border-color: var(--gold, #c9a227); }
.edu-in b { display: block; font-size: 1.15rem; margin: 6px 0 4px; }
.edu-in p { margin: 0 0 6px; opacity: .8; }
.edu-in-meta { display: flex; gap: 12px; align-items: baseline; font-size: .8rem; opacity: .75; }
.edu-in-go { color: var(--gold, #c9a227); font-weight: 600; font-size: .9rem; }
.edu-art { max-width: 960px; }
.edu-art h2 { margin: 6px 0 8px; }
.edu-art h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.edu-art-lead { font-size: 1.05rem; opacity: .85; }
.edu-back { display: inline-block; margin-bottom: 10px; font-size: .9rem; }
.edu-in-f { padding: 4px 12px; border-radius: 8px; background: rgba(127,127,127,.08); overflow-x: auto; }
.edu-in-f .katex-display { margin: .6em 0; }
.edu-ex { margin: 14px 0; padding: 12px 14px; border-left: 3px solid var(--gold, #c9a227); background: rgba(127,127,127,.06); border-radius: 0 8px 8px 0; }
.edu-ex ul { margin: 6px 0 0; padding-left: 18px; }
.edu-ex li { margin: 4px 0; }
/* Coming soon: in the icon bar (#soon_wrap) only, not in the top menu (its pages stay for the links) */
.navbar .nav-item.dropdown:has(.dropdown-item[data-value="Trade"]) { display: none !important; }
/* Home menu: a house icon in place of the label (the label stays for screen readers and the title) */
.navbar .nav-link[data-value="Home"] { font-size: 0 !important; letter-spacing: 0; display: inline-flex; align-items: center; padding-left: 10px; padding-right: 10px; }
.navbar .nav-link[data-value="Home"]::before { content: ""; width: 22px; height: 22px; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V20a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1V9.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.navbar .nav-link[data-value="Home"]::after { bottom: 2px; }
/* Insights: two panes, titles left (sticky), article right */
.ins-2p { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 18px; align-items: start; margin-top: 8px; }
.ins-list { position: sticky; top: 96px; padding: 8px !important; display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 120px); overflow-y: auto; }
.ins-it { display: block; padding: 11px 12px; border-radius: 10px; text-decoration: none; color: inherit; border-left: 3px solid transparent; }
.ins-it:hover { background: rgba(244,194,91,.07); }
.ins-it.on { background: rgba(244,194,91,.12); border-left-color: #F4C25B; }
.ins-it b { display: block; font-size: 14.5px; line-height: 1.35; margin-top: 4px; color: var(--bs-body-color); opacity: .92; }
.ins-it.on b { opacity: 1; }
.ins-it.on b { color: #F4C25B !important; }
.ins-it .edu-in-meta { font-size: 11px; }
.ins-pane .edu-art { max-width: none; }
html[data-mode="light"] .ins-it.on b { color: #8a6100; }
@media (max-width: 900px) { .ins-2p { grid-template-columns: 1fr; } .ins-list { position: static; max-height: none; } }
/* Markets details: HISTORY / INTRADAY tabs, text 50% larger, the selected tab on red */
.mk-tabbar #mk_tab .shiny-options-group { gap: 6px; }
.mk-tabbar #mk_tab .radio-inline span { font-size: 19.5px; padding: 12px 28px; border-radius: 10px 10px 0 0; border-bottom-width: 3px; transition: background .15s, color .15s; }
.mk-tabbar #mk_tab .radio-inline span:hover { color: #fff; background: rgba(214,40,40,.18); }
.mk-tabbar #mk_tab .radio-inline input:checked + span { background: #D62828; color: #fff; border-bottom-color: #D62828; }
html[data-mode="light"] .mk-tabbar #mk_tab .radio-inline input:checked + span { background: #D62828; color: #fff; }
@media (max-width: 640px) { .mk-tabbar #mk_tab .radio-inline span { font-size: 16px; padding: 10px 16px; } }

/* compare modal: searchable benchmark (selectize) in red + quick-pick chips */
html #mk_cmp_bench + .selectize-control .selectize-input { background: #5A2416 !important; border: 1px solid #FF7A59 !important; color: #fff !important; border-radius: 10px; font-weight: 700; min-height: 42px; padding: 10px 34px 10px 12px; box-shadow: none; }
html #mk_cmp_bench + .selectize-control .selectize-input input { color: #fff !important; }
html #mk_cmp_bench + .selectize-control .selectize-input input::placeholder { color: rgba(255,255,255,.6); }
html #mk_cmp_bench + .selectize-control .selectize-input.focus { box-shadow: 0 0 0 3px rgba(255,122,89,.3) !important; }
html #mk_cmp_bench + .selectize-control.single .selectize-input:after { border-top-color: #FF7A59; }
html #mk_cmp_bench + .selectize-control .selectize-dropdown { background: #0B1A3A; color: #e8edf6; border: 1px solid #FF7A59; border-radius: 10px; margin-top: 4px; z-index: 2000; }
html #mk_cmp_bench + .selectize-control .selectize-dropdown-content { max-height: 380px; }
html #mk_cmp_bench + .selectize-control .optgroup-header { background: #13254D; color: #FF7A59; font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; }
html #mk_cmp_bench + .selectize-control .option { color: #e8edf6; padding: 6px 14px; }
html #mk_cmp_bench + .selectize-control .option.active { background: #5A2416; color: #fff; }
html #mk_cmp_bench + .selectize-control .highlight { background: rgba(255,122,89,.35); border-radius: 2px; }
html[data-mode="light"] #mk_cmp_bench + .selectize-control .selectize-input { background: #FFE3DB !important; color: #8A2A12 !important; }
html[data-mode="light"] #mk_cmp_bench + .selectize-control .selectize-input input { color: #8A2A12 !important; }
html[data-mode="light"] #mk_cmp_bench + .selectize-control .selectize-dropdown { background: #fff; color: #0B1A3A; }
html[data-mode="light"] #mk_cmp_bench + .selectize-control .optgroup-header { background: #FFF1EC; }
html[data-mode="light"] #mk_cmp_bench + .selectize-control .option { color: #0B1A3A; }
html[data-mode="light"] #mk_cmp_bench + .selectize-control .option.active { background: #FFE3DB; color: #8A2A12; }
.mk-cmp-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.mk-cq { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,122,89,.45); background: transparent; color: inherit; border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.mk-cq small { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: #FF7A59; }
.mk-cq:hover { border-color: #FF7A59; background: rgba(255,122,89,.12); }
.mk-cq.on { background: #D62828; border-color: #D62828; color: #fff; }
.mk-cq.on small { color: #fff; opacity: .85; }
.mk-cq-none { opacity: .75; }

/* floating "under construction" bar, bottom of every page */
.uc-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 9px 16px; border-top: 1px solid rgba(212,164,64,.55); color: #e8edf6; font-size: 15px; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(212,164,64,.16) 0 16px, rgba(7,15,34,.92) 16px 32px), #070F22;
  box-shadow: 0 -6px 18px rgba(0,0,0,.35); backdrop-filter: blur(4px); }
.uc-tag { background: var(--gold); color: #0B1A3A; font-weight: 800; letter-spacing: .18em; font-size: 12.5px; padding: 5px 14px; border-radius: 6px; white-space: nowrap; }
.uc-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body { padding-bottom: 46px; }
html[data-mode="light"] .uc-bar { color: #0B1A3A; border-top-color: rgba(176,128,30,.6);
  background: repeating-linear-gradient(135deg, rgba(212,164,64,.28) 0 16px, rgba(255,255,255,.94) 16px 32px), #fff; box-shadow: 0 -6px 18px rgba(11,26,58,.12); }
@media (max-width: 640px) { .uc-bar { gap: 10px; font-size: 12.5px; padding: 7px 10px; } .uc-tag { font-size: 10.5px; padding: 4px 9px; letter-spacing: .12em; } }

/* Administration > SETTINGS: display options and coming soon modules (were in the icons menu) */
.adm-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 18px; align-items: start; }
.adm-opanel { display: block !important; position: static !important; width: auto !important; box-shadow: none !important; border: 0 !important; background: transparent !important; padding: 4px 0 0 !important; }
.adm-opanel .orow { margin-bottom: 14px; }
.adm-soon { display: grid; gap: 6px; padding: 0; min-width: 0; }
.adm-soon a.soon-it { padding: 10px 12px; border: 1px solid rgba(212,164,64,.25); border-radius: 10px; color: inherit; text-decoration: none; }
.adm-apps { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.adm-apps a.btn-gold { color: #0B1A3A !important; font-weight: 700; } .adm-apps a.btn.ghost { color: inherit !important; }

/* VTP wordmark beside the NXW logo */
.vtp-mark { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1; text-decoration: none !important;
  padding: 0 14px 0 14px; border-left: 1px solid rgba(212,164,64,.45); }
.vtp-mark b { font-family: inherit; font-weight: 900; font-size: 27px; letter-spacing: .12em; line-height: 1;
  background: linear-gradient(180deg, #F7E3A1 0%, #E9B54A 45%, #B8862A 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 6px rgba(212,164,64,.35)); }
.vtp-mark small { margin-top: 4px; font-size: 7.5px; font-weight: 700; letter-spacing: .32em; color: #8FB4F0; white-space: nowrap; }
html[data-mode="light"] .vtp-mark b { background: linear-gradient(180deg, #2E6FE0 0%, #0A4DB8 55%, #0B1A3A 100%); -webkit-background-clip: text; background-clip: text; filter: none; }
html[data-mode="light"] .vtp-mark small { color: #A87A1E; }
@media (max-width: 640px) { .vtp-mark { padding: 0 8px; } .vtp-mark b { font-size: 20px; } .vtp-mark small { display: none; } }
.pr-model { margin-bottom: 10px; } .pr-model label[for="f_model"] { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--gold); }

/* Pricers: (i) help icon after the input labels, and its tooltip */
.pr-i { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 7px; border-radius: 50%; vertical-align: 1px;
  font: italic 700 11.5px/1 Georgia, "Times New Roman", serif; color: #F4C25B; background: rgba(244,194,91,.16); border: 1px solid rgba(244,194,91,.55);
  cursor: pointer; user-select: none; transition: background .15s; }
.pr-i:hover, .pr-i:focus { background: #F4C25B; color: #0B1A3A; outline: none; }
.pr-tip { position: absolute; z-index: 3000; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.45;
  background: #0E2145; color: #e8edf6; border: 1px solid rgba(244,194,91,.55); box-shadow: 0 10px 28px rgba(0,0,0,.45); }
html[data-mode="light"] .pr-tip { background: #fff; color: #0B1A3A; box-shadow: 0 10px 28px rgba(11,26,58,.18); }
html[data-mode="light"] .pr-i { color: #A87A1E; border-color: rgba(168,122,30,.55); }

/* Education > Calculators (www/js/calcs.js): grouped list on the left, the calculator on the right */
.cc-nav { gap: 2px; }
.cc-search { width: 100%; padding: 9px 12px; margin: 2px 0 8px; border-radius: 10px; border: 1px solid rgba(244,194,91,.35); background: rgba(255,255,255,.04); color: inherit; font-size: 14px; }
.cc-search:focus { outline: none; border-color: #F4C25B; box-shadow: 0 0 0 3px rgba(244,194,91,.15); }
.cc-grp { margin-bottom: 6px; }
.cc-gh { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #F4C25B; }
.cc-gh span { font-size: 10.5px; padding: 1px 7px; border-radius: 9px; background: rgba(244,194,91,.14); }
.cc-nav .calc-it { padding: 7px 12px; }
.cc-nav .calc-it b { margin: 0; font-size: 14px; font-weight: 500; }
.calc-sec { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.calc-h { display: flex; align-items: center; gap: 10px; font-size: 1rem !important; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px !important; }
.calc-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #F4C25B; color: #0B1A3A; font-size: 13px; font-weight: 800; }
.cc-w { font-size: 14px; opacity: .9; }
.cc-box { display: grid; grid-template-columns: minmax(240px, 330px) 1fr; gap: 18px; align-items: start; padding: 14px; border-radius: 12px; background: rgba(46,155,255,.05); border: 1px solid rgba(46,155,255,.2); }
.cc-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cc-f.cc-wide { grid-column: 1 / -1; }
.cc-f label { font-size: 12.5px; opacity: .85; display: flex; align-items: center; flex-wrap: wrap; }
.cc-f label em { font-style: normal; opacity: .6; margin-left: 4px; }
.cc-f input, .cc-f select, .cc-f textarea { width: 100%; padding: 7px 9px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.18); color: inherit; font-size: 14px; font-variant-numeric: tabular-nums; }
.cc-f textarea { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.cc-f input:focus, .cc-f select:focus, .cc-f textarea:focus { outline: none; border-color: #F4C25B; }
.cc-res { min-width: 0; }
.cc-out { width: 100%; margin-bottom: 10px; }
.cc-out td { padding: 6px 10px; font-variant-numeric: tabular-nums; }
.cc-out td:last-child { text-align: right; font-weight: 600; }
.cc-out tr.cc-hl td { background: rgba(244,194,91,.12); color: #F4C25B; font-size: 15.5px; font-weight: 700; }
.cc-out td.up { color: #22c55e !important; } .cc-out td.down { color: #FF7A59 !important; }
.cc-tbl { width: 100%; font-size: 13px; margin-bottom: 10px; }
.cc-tbl td, .cc-tbl th { padding: 4px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.cc-tbl td:first-child, .cc-tbl th:first-child { text-align: left; }
.cc-steps { font-size: 14px; padding: 8px 12px; margin-bottom: 10px; border-left: 3px solid #2E9BFF; background: rgba(46,155,255,.06); border-radius: 0 8px 8px 0; overflow-x: auto; }
.cc-steps > div { margin: 3px 0; }
.cc-warn { padding: 8px 12px; border-radius: 8px; background: rgba(255,122,89,.12); color: #FF7A59; font-size: 13.5px; margin: 6px 0; }
.cc-svg { width: 100%; height: auto; display: block; }
.cc-tl { font-size: 11px; fill: currentColor; opacity: .7; }
.cc-tv { font-size: 11px; fill: currentColor; font-weight: 600; }
.cc-ax { stroke: currentColor; opacity: .35; }
.cc-grid { stroke: currentColor; opacity: .08; }
.cc-zero { stroke: currentColor; opacity: .4; stroke-dasharray: 4 3; }
.cc-vx { stroke: #D4A440; stroke-width: 1.6; stroke-dasharray: 5 4; }
.cc-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.cc-acts .ghost { border: 1px solid rgba(244,194,91,.55); color: #F4C25B; background: transparent; }
html[data-mode="light"] .cc-gh { color: #8a6100; }
html[data-mode="light"] .cc-search, html[data-mode="light"] .cc-f input, html[data-mode="light"] .cc-f select, html[data-mode="light"] .cc-f textarea { background: #fff; border-color: rgba(11,26,58,.2); }
html[data-mode="light"] .calc-sec { border-top-color: rgba(11,26,58,.1); }
html[data-mode="light"] .cc-out tr.cc-hl td { color: #8a6100; }
html[data-mode="light"] .cc-acts .ghost { color: #8a6100; border-color: rgba(168,122,30,.55); }
@media (max-width: 1100px) { .cc-box { grid-template-columns: 1fr; } }
.cc-ct { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin: 10px 0 2px; }
.st-sim { margin-top: 28px; }
.st-sim h2 { margin: 4px 0 12px; }
html[data-mode="light"] .ins-it.on b { color: #8a6100 !important; }
@media (max-width: 900px) { .cc-nav { max-height: 46vh !important; overflow-y: auto; } .cc-in { grid-template-columns: 1fr 1fr; } .cc-box { padding: 10px; } }
.cc-2p > *, .cc-box > *, .cc-in > * { min-width: 0; }
.cc-res { overflow-x: auto; }
@media (max-width: 900px) { .cc-2p { grid-template-columns: minmax(0, 1fr); } .cc-box { grid-template-columns: minmax(0, 1fr); } .cc-tbl { font-size: 12px; } }

/* ---------- header like CCPR: logo vertically centred over two rows; row 1 the tagline and the icons, row 2 ALL MARKETS,
   the menu (centred) and the red ADMIN button (app.R ui_page) ---------- */
.nav-tagline { display: none; }
.adm-txt { display: none; }
@media (min-width: 1200px) {
  .navbar, .navbar .container-fluid { min-height: 118px; }
  .navbar .container-fluid { align-items: center !important; }
  .navbar .navbar-collapse { position: relative; align-self: stretch; padding-top: 50px; }
  .navbar .navbar-nav { width: 100%; align-items: center !important; }
  .navbar .nav-link { height: 66px !important; }
  .navbar .nav-link::after { top: calc(50% + 15px) !important; }
  /* row 1: the tagline, centred in the space left of the icons */
  .navbar .nav-item:has(.nav-tagline) { position: absolute; top: 0; left: 0; right: 430px; height: 56px; justify-content: center; align-items: center; pointer-events: none; }
  .nav-tagline { display: flex; align-items: center; gap: 14px; color: #e9b54a; font-size: 13.5px; font-weight: 700; letter-spacing: .26em; white-space: nowrap; }
  .nav-tagline i { display: block; width: 130px; height: 1px; background: linear-gradient(90deg, transparent, rgba(233,181,74,.75)); position: relative; }
  .nav-tagline i:last-child { background: linear-gradient(270deg, transparent, rgba(233,181,74,.75)); }
  .nav-tagline i::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; background: #e9b54a; transform: rotate(45deg); right: -3px; }
  .nav-tagline i:last-child::after { right: auto; left: -3px; }
  /* row 1 right: search, library, contact, my account, language */
  .navbar .nav-item:has(.toprow) { position: absolute; top: 8px; right: 0; }
  .toprow { display: flex; align-items: center; gap: 10px; }
  .toprow > .tools { display: contents; }
  .toprow .lang-wrap { order: 2; } .toprow .ubox { order: 1; }
  .toprow .sbox, .toprow .cbtn { width: 42px !important; height: 42px !important; flex-basis: 42px !important; }
  .toprow .langbtn { width: auto !important; padding: 0 12px; gap: 6px; }
  /* row 2: ALL MARKETS, the menu centred, ADMIN at the right */
  .navbar .nav-item:has(.plat) { margin-left: auto; align-items: center; margin-right: 18px; }
  .navbar .nav-item:has(.adm-tool) { align-items: center; }
  .cbtn.admbtn { width: auto !important; flex-basis: auto !important; height: 44px !important; padding: 0 20px; gap: 10px; border-radius: 9px; }
  .adm-txt { display: inline; font-weight: 800; font-size: 14px; letter-spacing: .14em; }
  .navbar-brand .brand img { height: 56px !important; }
  html[data-mode="light"] .nav-tagline { color: #a8781c; }
}

/* ADMIN menu (model CCPR) */
#adm_wrap { position: relative; }
.am-menu { display: none; position: absolute; right: 0; top: calc(100% + 12px); width: 480px; z-index: 1070; padding: 8px 0; text-align: left;
  background: #0a1a3c; border: 1px solid #1d3463; border-radius: 12px; box-shadow: 0 18px 44px rgba(0,0,0,.45); }
#adm_wrap.open .am-menu { display: block; }
.am-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 16px 10px; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid #1d3463; }
.am-ver { font-size: 11px; letter-spacing: .06em; font-weight: 600; color: #8fa3cc; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 2px 8px; text-transform: none; }
.am-sec { padding: 8px 0; } .am-sec + .am-sec { border-top: 1px solid #1d3463; }
.am-title { display: flex; align-items: center; gap: 8px; padding: 4px 16px 6px; color: #e1bb64; font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.am-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 16px 7px 38px; color: #d5deec !important; font-weight: 600; font-size: 13px; text-decoration: none; cursor: pointer; }
.am-item small { display: block; color: #8394b3; font-weight: 500; font-size: 11px; margin-top: 2px; }
.am-item:hover { background: #0e2552; color: #fff !important; }
.am-item.cur { color: #e1bb64 !important; }
.am-who { cursor: default; color: #e8c979 !important; } .am-who:hover { background: none; } .am-who b { color: #fff; }
html:not(.signed) .am-in-only, html.signed .am-out-only, html:not(.admin) .am-admin-only, html.admin .am-nonadmin { display: none; }
html.am-has-wait.admin .cbtn.admbtn::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: #F4C25B; box-shadow: 0 0 6px #F4C25B; }
html[data-mode="light"] .am-menu { background: #fff; border-color: #C9D3E3; } html[data-mode="light"] .am-item { color: var(--navy) !important; }
html[data-mode="light"] .am-item:hover { background: #F1F4FA; } html[data-mode="light"] .am-head { color: var(--navy); border-color: #E3E8F1; } html[data-mode="light"] .am-sec + .am-sec { border-color: #E3E8F1; }
html[data-mode="light"] .am-who b { color: var(--navy); }
@media (max-width: 640px) { .am-menu { width: min(330px, calc(100vw - 24px)); } }

/* sign-in card as CCPR: USER / ADMIN switch, security question, waiting list steps */
.lg-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; margin: 6px 0 14px; border-radius: 10px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.12); }
.lg-m { border: 0; border-radius: 7px; padding: 8px 0; font-weight: 800; font-size: 12.5px; letter-spacing: .16em; background: transparent; color: #C8D4E8; cursor: pointer; }
.lg-m.lg-m-user.on { background: linear-gradient(135deg, #D4A440, #F0D890); color: #0A1530; }
.lg-m.lg-m-admin.on { background: linear-gradient(180deg, #EF4444, #B91C1C); color: #fff; }
html.lg-admin .lg-mode { background: rgba(0,0,0,.3); border-color: rgba(254,202,202,.3); }
.lg-cap { margin: 8px 0 12px; }
.lg-cap-l { display: block; font-size: 13px; margin-bottom: 5px; opacity: .85; }
.lg-cap-row { display: flex; align-items: center; gap: 8px; }
.lg-cap-q { display: inline-block; min-width: 108px; padding: 8px 12px; border-radius: 8px; font: 700 17px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .12em;
  color: #F4C25B; background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 6px, rgba(255,255,255,.1) 6px 12px); border: 1px solid rgba(244,194,91,.4); user-select: none; }
.lg-cap-new { border: 1px solid rgba(255,255,255,.25); background: transparent; color: inherit; border-radius: 8px; width: 36px; height: 36px; font-size: 17px; cursor: pointer; }
.lg-cap-in { flex: 1; min-width: 0; }
.rg-steps { margin: 10px 0 14px; padding-left: 20px; font-size: 14px; }
.rg-steps li { margin: 4px 0; opacity: .6; } .rg-steps li.done { opacity: .9; } .rg-steps li.on { opacity: 1; color: #F4C25B; font-weight: 700; }
html[data-mode="light"] .lg-mode { background: #F1F4FA; border-color: #E3E8F1; } html[data-mode="light"] .lg-m { color: var(--navy); }
html[data-mode="light"] .lg-cap-q { color: #8a6100; }

/* Starter page: Admin entry next to Sign up | Sign in */
.ha-btn.ha-adm { color: #F87171 !important; border-color: rgba(248,113,113,.55) !important; }
.ha-btn.ha-adm:hover { background: rgba(220,38,38,.14) !important; }

/* Header update: ALL MARKETS removed (MARKETS covers it), main menu and tagline centred */
.navbar .nav-item:has(.plat), #plat { display: none !important; }
@media (min-width: 1200px) {
  .navbar .navbar-nav { justify-content: center !important; }
  .navbar .nav-item:has(.adm-tool) { position: absolute; right: 0; bottom: 11px; }
  .navbar .nav-item:has(.nav-tagline) { left: 0; right: 0; }
  .navbar .navbar-nav > .nav-spacer, .navbar .navbar-nav > .bslib-nav-spacer { display: none !important; }
}
/* As CCPI: the user's initials box shows for everyone, administrators too (search, library, mail, initials, language) */

/* Login box as the CCPR model: compact navy card, gold top bar (users) or red top bar (admin), fits the screen */
html.locked .lg-wrap { padding: 16px; }
.lg-card { max-width: 400px !important; background: #0a1a3c !important; border: 1px solid #1d3463 !important; border-top: 3px solid #d4a440 !important;
  border-radius: 14px !important; padding: 24px 26px 20px !important; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 24px 60px rgba(0,0,0,.5) !important; }
.lg-card .lg-logo { height: 46px !important; margin-bottom: 4px; }
.lg-card h2 { font-size: 22px !important; margin: 4px 0 4px !important; }
.lg-card .lg-sub { font-size: 13px; color: #aab6cc; margin-bottom: 12px; }
.lg-card label, .lg-card .lg-cap-l { font-size: 11px !important; letter-spacing: .16em !important; color: #e1bb64 !important; font-weight: 700; }
.lg-card .form-control { background: #050c1c !important; border: 1px solid #1d3463 !important; border-radius: 8px !important; height: 42px; color: #fff !important; }
.lg-card .form-control:focus { border-color: #d4a440 !important; box-shadow: none !important; }
.lg-card .form-group { margin-bottom: 10px !important; }
.lg-card .lg-mode { margin: 8px 0 10px; }
.lg-card .lg-rem { margin: 0 0 8px !important; }
.lg-card .btn-primary, .lg-card #lg_go, .lg-card #su_go { height: 42px; border-radius: 8px !important; }
/* admin side: same navy card, red top bar and red button (no full red box) */
html.lg-admin .lg-card { background: #0a1a3c !important; border-color: #1d3463 !important; border-top: 3px solid #d32f2f !important; box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(211,47,47,.25) !important; }
html.lg-admin .lg-card .mk-kick, html.lg-admin .lg-card .lg-sub { color: #aab6cc !important; }
html.lg-admin .lg-card label, html.lg-admin .lg-card .lg-cap-l { color: #e1bb64 !important; }
html.lg-admin .lg-card .form-control { background: #050c1c !important; border-color: #1d3463 !important; }
html.lg-admin .lg-card #lg_go { background: #d32f2f !important; border-color: #d32f2f !important; }
html.lg-admin .lg-card #lg_go:hover { background: #e53935 !important; }
html[data-mode="light"] .lg-card { background: #fff !important; border-color: #DCE3EE !important; }
html[data-mode="light"] .lg-card .form-control { background: #F5F8FC !important; border-color: #C9D3E3 !important; color: var(--navy) !important; }
html[data-mode="light"] .lg-card label, html[data-mode="light"] .lg-card .lg-cap-l { color: #a8781c !important; }
html[data-mode="light"].lg-admin .lg-card { background: #fff !important; border-top-color: #d32f2f !important; }

/* ---------- Header redesigned on the CCPR header (sizes and positions of www/styles.css of CCPR, "header matched to CCPE"):
   thin dark bottom line, icons 46px at the top right, ADMIN under the icons, title centred above a larger, evenly spaced menu */
@media (min-width: 1200px) {
  .navbar, .navbar .container-fluid { min-height: 125px !important; }
  .navbar { background: rgba(5,12,28,.94) !important; border-bottom: 1px solid #16294d !important; box-shadow: none !important; }
  .navbar .container-fluid { padding: 0 18px 0 28px !important; }
  .navbar-brand .brand img { height: 80px !important; }
  .navbar .navbar-collapse { padding-top: 64px !important; padding-bottom: 10px; }
  .navbar .navbar-nav { justify-content: center !important; align-items: center !important; }
  .navbar .nav-link { height: 44px !important; padding: 0 13px !important; font-size: 20px !important; font-weight: 800 !important; letter-spacing: .04em !important; }
  .navbar .nav-link::after { left: 13px !important; right: 13px !important; top: auto !important; bottom: 2px !important; }
  .navbar .nav-link svg, .navbar .nav-link .bi { width: 28px; height: 28px; }
  /* title row: centred, the height of the icons */
  .navbar .nav-item:has(.nav-tagline) { top: 16px !important; height: 50px !important; left: 0 !important; right: 0 !important; }
  .nav-tagline { font-size: clamp(12px, .9vw, 16px) !important; letter-spacing: .22em !important; gap: 22px !important; }
  .nav-tagline i { width: 110px !important; }
  /* icons: top right, 46px, 12px apart */
  .navbar .nav-item:has(.toprow) { top: 16px !important; right: 0 !important; }
  .toprow { gap: 12px !important; }
  .toprow .sbox, .toprow .cbtn { width: 50px !important; height: 50px !important; flex-basis: 50px !important; border-radius: 9px !important; }
  .toprow .sbox.open { width: 260px !important; flex-basis: 260px !important; }
  .toprow .langbtn { width: auto !important; padding: 0 16px !important; gap: 10px; font-size: 16px; }
  /* ADMIN: under the icons, right-aligned with them */
  .navbar .nav-item:has(.adm-tool) { position: absolute !important; top: 76px !important; right: 0 !important; bottom: auto !important; }
  .cbtn.admbtn { height: 40px !important; padding: 0 18px !important; gap: 10px !important; border-radius: 9px !important;
    font: 700 15px "Montserrat", "Poppins", sans-serif !important; letter-spacing: .14em !important; }
  .cbtn.admbtn .adm-txt { font-size: 15px !important; font-weight: 700 !important; }
  .am-menu { top: calc(100% + 8px) !important; }
}
@media (min-width: 1200px) and (max-width: 1560px) {
  .navbar-brand .brand img { height: 68px !important; }
  .navbar .nav-link { font-size: 18px !important; padding: 0 13px !important; }
  .navbar .nav-link::after { left: 13px !important; right: 13px !important; }
}
@media (min-width: 1200px) and (max-width: 1340px) {
  .navbar .nav-link { font-size: 15px !important; padding: 0 10px !important; }
  .navbar .nav-link::after { left: 10px !important; right: 10px !important; }
  .navbar-brand .brand img { height: 56px !important; }
  .nav-tagline i { width: 60px !important; }
}
html[data-mode="light"] .navbar { background: #fff !important; border-bottom: 1px solid #DCE3EE !important; }
/* Home icon gold and larger, as in CCPR */
@media (min-width: 1200px) {
  .navbar .nav-link[data-value="Home"] { color: #d4a440 !important; }
  .navbar .nav-link[data-value="Home"]:hover, .navbar .nav-link[data-value="Home"].active { color: #e8c979 !important; }
  .navbar .nav-link[data-value="Home"]::before { width: 27px !important; height: 27px !important; }
}

/* Admin page (red ADMIN button): Access, Settings and Our Web Apps as three cards side by side */
.ah-wrap { max-width: 1400px; margin: 0 auto; padding: 0 0 40px; }
.ah-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 18px; align-items: start; }
.ah-grid .am-sec { background: #0a1a3c; border: 1px solid #1d3463; border-top: 3px solid #d4a440; border-radius: 14px; padding: 16px 0 12px; }
.ah-grid .am-sec:first-child { border-top-color: #d32f2f; }
.ah-grid .am-sec + .am-sec { border-top-width: 3px; border-top-style: solid; }
.ah-grid .am-title { font-size: 13px; padding: 2px 22px 12px; margin-bottom: 4px; border-bottom: 1px solid #1d3463; }
.ah-grid .am-title svg { width: 18px; height: 18px; }
.ah-grid .am-item { padding: 12px 22px; font-size: 15.5px; border-radius: 0; }
.ah-grid .am-item small { font-size: 12.5px; margin-top: 3px; }
.ah-grid .am-item + .am-item { border-top: 1px solid rgba(29,52,99,.55); }
.ah-grid .am-who { font-size: 15.5px; }
.cbtn.admbtn.on { box-shadow: 0 0 0 2px #F4C25B; }
@media (max-width: 1100px) { .ah-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .ah-grid { grid-template-columns: 1fr; } }
html[data-mode="light"] .ah-grid .am-sec { background: #fff; border-color: #DCE3EE; }
html[data-mode="light"] .ah-grid .am-title, html[data-mode="light"] .ah-grid .am-item + .am-item { border-color: #E3E8F1; }
.ah-wrap { padding-top: 28px; }

/* Administration > Settings: Website customisation and export / import */
.cms-logo-prev img { max-height: 70px; max-width: 100%; display: block; margin-top: 6px; background: rgba(255,255,255,.04); border: 1px dashed rgba(212,164,64,.45); border-radius: 8px; padding: 6px; }
.cms-io > div { display: flex; flex-direction: column; gap: 8px; }
.cms-io .shiny-download-link { align-self: flex-start; }
.cms-io #cms_import { align-self: flex-start; }
html.site-logo .navbar-brand img[data-logo] { max-height: 96px; }

/* Administration > Scripts */
.sx-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 4px 0 14px; }
.sx-tools #sx_q { max-width: 380px; }
.sx-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.sx-chip { border: 1px solid #2A4475; background: #0D1B3D; color: inherit; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.sx-chip.on { border-color: var(--gold); color: var(--gold); }
.sx-tbl td { vertical-align: top; font-size: 13.5px; }
.sx-tbl td:first-child { min-width: 200px; }
.sx-tbl .sx-f { display: block; color: var(--gold); word-break: break-all; }
.sx-tbl .sx-g { display: inline-block; margin: 3px 0; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.sx-tbl small { display: block; opacity: .7; }
.sx-tbl .sx-io { font-size: 12.5px; opacity: .9; }
.sx-tbl code { white-space: normal; font-size: 12px; }
.sx-acts { white-space: nowrap; }
.sx-acts .btn { margin: 0 3px 4px 0; }
.sx-code { max-height: 60vh; overflow: auto; background: #071229; color: #DCE6F5; border: 1px solid #2A4475; border-radius: 10px; padding: 14px; font-size: 12.5px; line-height: 1.5; white-space: pre; }
.sx-meta p { margin: 0 0 6px; }
html[data-mode="light"] .sx-chip { background: #fff; border-color: #c9d3e3; }
html[data-mode="light"] .sx-code { background: #f5f7fb; color: #0B1A3A; border-color: #c9d3e3; }
.adm-tabs .radio-inline:has(input[value=scripts]) span { border-color: rgba(46,155,255,.45); }
.sx-tbl td, .sx-tbl th { text-align: left !important; }
.adm-apply { border-color: rgba(52,211,153,.6) !important; color: #34D399 !important; }

/* Administration > THEME: the template settings as a theme customiser (sections on the left, one on the right, a sticky bar) */
.th-wrap { margin-top: 6px; }
.th-bar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 14px 18px; margin-bottom: 16px; border-radius: 14px; background: rgba(10,26,60,.96); border: 1px solid #2A4475; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.th-name b { display: block; font-size: 18px; color: var(--gold); letter-spacing: .04em; } .th-name span { font-size: 12.5px; opacity: .75; }
.th-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.th-acts .th-pub { padding-left: 26px; padding-right: 26px; font-weight: 800; letter-spacing: .12em; }
.th-grid { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.th-nav { position: sticky; top: 92px; background: #0a1a3c; border: 1px solid #2A4475; border-radius: 14px; padding: 8px; }
.th-nav .shiny-options-group { display: flex; flex-direction: column; gap: 2px; }
.th-nav .radio { margin: 0 !important; } .th-nav .radio label { display: block; padding: 0 !important; cursor: pointer; }
.th-nav .radio input { position: absolute; opacity: 0; }
.th-nav .radio span { display: block; padding: 10px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; border-left: 3px solid transparent; }
.th-nav .radio span:hover { background: rgba(255,255,255,.05); }
.th-nav .radio input:checked + span { background: linear-gradient(90deg, rgba(212,164,64,.22), rgba(212,164,64,.04)); border-left-color: var(--gold); color: #fff; }
.th-panel { min-width: 0; }
.th-sec { background: #0a1a3c; border: 1px solid #2A4475; border-top: 3px solid var(--gold); border-radius: 14px; padding: 20px 24px 24px; }
.th-sec h2 { font-size: 22px; font-weight: 800; color: var(--gold); margin: 0 0 4px; } .th-sec .th-desc { opacity: .8; margin-bottom: 16px; }
.th-sec .adm-h3 { margin-top: 20px; }
.th-btns input[type=color] { width: 46px; height: 32px; border: 0; background: none; padding: 0; cursor: pointer; }
.ft-links a, .ct-social a { margin-left: 14px; color: var(--gold); text-decoration: none; } .ft-links a:hover, .ct-social a:hover { text-decoration: underline; }
.ct-social { margin-top: 12px; } .ct-social a { margin: 0 14px 0 0; }
html[data-mode="light"] .th-bar, html[data-mode="light"] .th-nav, html[data-mode="light"] .th-sec { background: #fff; border-color: #c9d3e3; }
html[data-mode="light"] .th-nav .radio input:checked + span { color: #0B1A3A; }
@media (max-width: 900px) { .th-grid { grid-template-columns: 1fr; } .th-nav { position: static; } .th-nav .shiny-options-group { flex-direction: row; flex-wrap: wrap; } }
.nv-tbl .nv-pos { white-space: nowrap; width: 76px; }
.nv-mv { border: 1px solid #2A4475; background: #0D1B3D; color: var(--gold); border-radius: 6px; width: 28px; height: 26px; margin-right: 4px; font-size: 11px; cursor: pointer; }
.nv-mv:hover { border-color: var(--gold); }
.nv-tbl tbody.nv-g { border-top: 2px solid rgba(212,164,64,.35); }
.nv-tbl tr.nv-moved td { background: rgba(212,164,64,.18); transition: background .4s; }
.nv-add { margin-left: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: #34D399; }
.am-maint b.mt-on { color: #F87171; } .am-maint b.mt-off { color: #34D399; }
.am-maint.on { background: rgba(248,113,113,.10); }
html[data-mode="light"] .nv-mv { background: #fff; border-color: #c9d3e3; }
.vtp-footer .ft-links { display: inline; } .vtp-footer .ft-links a { display: inline-block; margin-left: 14px; }
.nv-tbl td:nth-child(2) { min-width: 240px; white-space: nowrap; }
/* Data sync */
.sync-tbl td { vertical-align: middle; } .sync-tbl input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--gold); }
.sync-st { font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; }
.sync-st.new { background: rgba(46,155,255,.18); color: #7FB2FF; } .sync-st.changed { background: rgba(212,164,64,.2); color: var(--gold); }
.sync-st.same { background: rgba(52,211,153,.12); color: #34D399; } .sync-st.unknown { opacity: .7; }
.sync-auto { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
/* download buttons are links: keep the navy text on gold */
a.btn-gold, a.btn-gold:hover, a.btn-gold:focus, .shiny-download-link.btn-gold { color: #0A1530 !important; font-weight: 700; }
.adm-tabs .radio-inline:has(input[value=dmstest]) span { border-color: rgba(46,155,255,.45); }
.dt-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Phone and tablet menu (burger, under 992px): compact rows, sub-menus inline, icons on one line, ADMIN with its label */
@media (max-width: 991.98px) {
  .navbar .navbar-collapse { padding: 6px 0 14px !important; max-height: calc(100vh - 80px); overflow-y: auto; }
  .navbar .navbar-nav { align-items: stretch !important; }
  .navbar .navbar-nav > li { width: 100%; height: auto !important; }
  .navbar .navbar-nav > li.dropdown { flex-direction: column !important; align-items: stretch !important; }
  .navbar .navbar-nav > li > .nav-link { height: auto !important; min-height: 46px; display: flex !important; align-items: center; gap: 10px;
    padding: 11px 8px !important; font-size: 15px !important; letter-spacing: .05em !important; border-bottom: 1px solid rgba(255,255,255,.07); }
  .navbar .navbar-nav > li > .nav-link.dropdown-toggle::after { display: inline-block !important; position: static !important; margin-left: auto; }
  .navbar .nav-link svg, .navbar .nav-link .bi { width: 22px !important; height: 22px !important; }
  .navbar .dropdown-menu { position: static !important; transform: none !important; float: none; width: 100%; margin: 0 !important; padding: 2px 0 8px 18px !important;
    background: transparent !important; border: 0 !important; box-shadow: none !important; }
  .navbar .dropdown-menu .dropdown-item { padding: 9px 8px !important; font-size: 14.5px; white-space: normal; }
  .navbar .nav-item:has(.nav-tagline) { display: none !important; }
  .navbar .toprow { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 4px 4px; height: auto !important; }
  .navbar .toprow .tools { display: flex; flex-wrap: nowrap; gap: 8px; }
  .navbar .adm-tool { padding: 8px 4px 0; height: auto !important; }
  .navbar .cbtn.admbtn { width: auto !important; flex-basis: auto !important; height: 42px !important; padding: 0 18px !important; gap: 10px; }
  .navbar .cbtn.admbtn .adm-txt { display: inline !important; font-weight: 700; letter-spacing: .12em; }
}
/* Small laptops and large tablets in landscape (992 to 1199px): one line of smaller icons, no wrapping under the menu */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar .toprow, .navbar .toprow .tools { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 6px !important; width: auto !important; }
  .navbar .navbar-nav > li:has(.toprow) { flex: 0 0 auto; width: auto !important; }
  .navbar .toprow .sbox, .navbar .toprow .obtn, .navbar .toprow .cbtn, .navbar .toprow .ubtn { width: 36px !important; height: 36px !important; flex-basis: 36px !important; }
  .navbar .navbar-nav > li > .nav-link { padding: 0 10px !important; font-size: 13.5px !important; }
  .navbar .cbtn.admbtn { height: 38px !important; }
}

/* ---------- Touch pattern for phones (under 768px): one rule set for every page
   1. Finger size: every button, choice and link is at least 44px high; inputs 16px (no zoom on iPhone).
   2. Horizontal boxes: rows of choices (tabs, filters, ranges, sections, platform buttons) stay on one line
      and scroll sideways with the finger, snapping to each item, instead of wrapping on several lines. */
@media (max-width: 767.98px) {
  .btn, button.cbtn, .dropdown-item, .navbar .nav-link, .am-item { min-height: 44px; }
  input.form-control, select.form-control, textarea.form-control, .form-select, .selectize-input { font-size: 16px !important; min-height: 44px; }
  .checkbox label, .radio label { min-height: 40px; display: flex; align-items: center; }

  .shiny-input-container-inline .shiny-options-group, .adm-tabs .shiny-options-group, .th-nav .shiny-options-group,
  .mk-hreg, .mk-quick, .dt-btns, .sx-groups, .adm-filter, .th-bar > div:last-child, .assets {
    display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; overflow-y: hidden; gap: 8px !important;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none;
    padding-bottom: 4px; max-width: min(100%, calc(100vw - 32px)); position: relative; }
  .shiny-input-container-inline .shiny-options-group::-webkit-scrollbar, .adm-tabs .shiny-options-group::-webkit-scrollbar, .th-nav .shiny-options-group::-webkit-scrollbar,
  .mk-hreg::-webkit-scrollbar, .dt-btns::-webkit-scrollbar, .sx-groups::-webkit-scrollbar, .adm-filter::-webkit-scrollbar, .th-bar > div:last-child::-webkit-scrollbar, .assets::-webkit-scrollbar { display: none; }
  .shiny-input-container-inline .shiny-options-group > *, .adm-tabs .shiny-options-group > *, .th-nav .shiny-options-group > *,
  .mk-hreg > *, .mk-quick > *, .dt-btns > *, .sx-groups > *, .adm-filter > *, .th-bar > div:last-child > *, .assets > * { flex: 0 0 auto; scroll-snap-align: start; margin: 0 !important; white-space: nowrap; }
  .shiny-input-container-inline .radio-inline, .adm-tabs .radio-inline { padding-left: 0 !important; }
  .shiny-input-container-inline .radio-inline span, .adm-tabs .radio-inline span { min-height: 40px; display: inline-flex !important; align-items: center; }
  .adm-tabs .radio-inline::before { display: none !important; }
  .assets > * { width: 46vw; max-width: 200px; }
  /* the Theme page: Publish bar not stuck over the page, sections as a swipe row of chips */
  .th-bar { position: static !important; }
  .th-grid > *, .th-nav, .th-nav .shiny-input-container, .adm-tabs, .adm-tabs .shiny-input-container { min-width: 0 !important; max-width: 100% !important; width: 100% !important; }
  .mk-quick { justify-content: flex-start !important; }
  .th-nav { position: static !important; padding: 6px !important; }
  .th-nav .radio label > span { padding: 10px 14px !important; border: 1px solid #2A4475; border-radius: 20px; }
  /* wide tables slide sideways inside their card, never the page */
  .mk-card, .dataTables_wrapper { max-width: 100%; }
  .dataTables_wrapper .dataTables_scroll, .dataTables_wrapper > table { overflow-x: auto; }
}
/* one SIGN IN button on the starter page (users and administrators) */
.home-auth.ha-one { padding: 0; border: 0; background: none; }
.home-auth.ha-one .ha-btn { min-width: 260px; padding: 15px 40px; font-size: 15px; letter-spacing: .18em; }
.lg-mode { display: none !important; }

/* ---------- One wide sign-in box: the brand on the left, the forms on the right; three ways to sign in */
@media (min-width: 860px) {
  .lg-card { max-width: 860px !important; width: 94vw; display: grid !important; grid-template-columns: 300px 1fr; gap: 0 34px; padding: 30px 34px 24px !important; align-items: start; }
  .lg-card > .lg-brand { grid-column: 1; grid-row: 1 / span 20; align-self: stretch; }
  .lg-card > div:not(.lg-brand), .lg-card > p { grid-column: 2; }
  .lg-card > .lg-x { position: absolute; }
}
.lg-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px 18px; border-radius: 14px;
  background: radial-gradient(120% 90% at 30% 10%, rgba(46,155,255,.18), transparent 60%), linear-gradient(180deg, #0d2250, #081634); border: 1px solid #1d3463; }
.lg-brand .lg-logo { height: 84px !important; margin-bottom: 10px; }
.lg-pts { list-style: none; padding: 0; margin: 22px 0 0; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.lg-pts li { position: relative; padding-left: 22px; color: #C9D6EC; font-size: 13.5px; line-height: 1.35; }
.lg-pts li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(212,164,64,.6); }
@media (max-width: 859.98px) { .lg-pts { display: none; } .lg-brand { background: none; border: 0; padding: 0 0 6px; } .lg-brand .lg-logo { height: 46px !important; } }
#lg_in h2 { text-align: left !important; } #lg_in .lg-sub { text-align: left !important; }
.lg-meth { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; margin: 10px 0 14px; border: 1px solid #2A4475; border-radius: 12px; background: rgba(5,12,28,.45); }
.lgm-b { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px; min-height: 58px; border: 0; border-radius: 9px; background: transparent;
  color: #C9D6EC; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.lgm-b svg { width: 22px; height: 22px; }
.lgm-b:hover { background: rgba(255,255,255,.05); }
.lgm-b.on { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #0A1530; }
.lgm { display: none; }
#lg_in[data-m="pw"] .lgm-pw, #lg_in[data-m="pat"] .lgm-pat, #lg_in[data-m="fp"] .lgm-fp { display: block; }
#lg_in:not([data-m="fp"]) #pk_login { display: none !important; }
#lg_in[data-m="fp"] #pk_login { display: flex !important; }
.lg-pat-t { text-align: center; color: #fff; font-weight: 600; margin: 2px 0 6px; }
.lg-pat-n { text-align: center; color: #8FA3C4; font-size: 12.5px; margin: 6px 0; }
html:not(.pk-ok) .lgm-fp .pk-yes, html.pk-ok .lgm-fp .pk-no { display: none; }
.pat-pad { width: 220px; max-width: 70vw; aspect-ratio: 1; margin: 0 auto; border-radius: 16px; background: rgba(5,12,28,.5); border: 1px solid #2A4475; touch-action: none; user-select: none; }
.pat-pad.pat-sm { width: 180px; margin: 0; }
.pat-pad svg { width: 100%; height: 100%; display: block; cursor: pointer; }
.pat-dot { fill: #2A4475; stroke: #4A6699; stroke-width: 2; transition: fill .12s, r .12s; }
.pat-dot.on { fill: var(--gold); stroke: var(--gold2); r: 17; }
.pat-line { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.pat-pad.bad { border-color: #EF4444; } .pat-pad.bad .pat-dot.on { fill: #EF4444; stroke: #F87171; } .pat-pad.bad .pat-line { stroke: #EF4444; }
.pat-pad.ok { border-color: #34D399; }
.pf-patw { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 8px 0 4px; }
html[data-mode="light"] .lg-brand { background: linear-gradient(180deg, #F3F6FB, #E7EDF6); border-color: #DCE3EE; } html[data-mode="light"] .lg-pts li { color: #33415C; }
html[data-mode="light"] .pat-pad, html[data-mode="light"] .lg-meth { background: #F3F6FB; border-color: #C9D4E6; }

/* ---------- Sign-in box as CCPI: brand, title and sign-up link on the left; tabs and form on the right */
.lg-brand { align-items: stretch !important; justify-content: flex-start !important; text-align: left !important; background: none !important; border: 0 !important; border-radius: 0 !important; padding: 4px 0 !important; }
.lgb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid #1d3463; }
.lgb-name b { display: block; font-size: 38px; line-height: 1; letter-spacing: .08em; color: var(--gold); font-weight: 800; }
.lgb-name span { display: block; margin-top: 8px; font-size: 13px; letter-spacing: .22em; font-weight: 700; color: #6FA8FF; }
.lg-brand .lgb-top .lg-logo { height: 58px !important; margin: 0 !important; }
.lgb-v { display: none; flex-direction: column; flex: 1; }
.lg-card[data-v="in"] .lgb-in, .lg-card[data-v="up"] .lgb-up { display: flex; }
.lgb-kick { margin-top: 26px; font-size: 13px; font-weight: 700; letter-spacing: .3em; color: #6FA8FF; }
.lg-brand h2 { text-align: left !important; margin: 8px 0 6px !important; font-size: 30px !important; }
.lg-brand .lg-sub { text-align: left !important; margin: 0 !important; }
.lg-brand .lg-pts { margin-top: 26px; }
.lg-brand .lg-steps { counter-reset: st; } .lg-brand .lg-steps li::before { counter-increment: st; content: counter(st); width: 16px; height: 16px; top: 1px; left: -2px; font-size: 10px; font-weight: 800; color: #0A1530; text-align: center; line-height: 16px; }
.lgb-foot { margin: auto 0 0 !important; padding-top: 26px; color: #C9D6EC; font-size: 14px; line-height: 1.45; }
.lgb-foot a { color: #6FA8FF; font-weight: 700; text-decoration: underline; }
/* tabs: a compact row of three, as CCPI */
.lg-meth { display: inline-grid !important; grid-template-columns: repeat(3, auto) !important; gap: 2px !important; padding: 4px !important; margin: 0 0 16px !important; }
.lgm-b { flex-direction: row !important; min-height: 0 !important; padding: 9px 16px !important; gap: 7px !important; font-size: 12.5px !important; letter-spacing: .1em !important; }
.lgm-b svg { width: 16px !important; height: 16px !important; }
/* the fingerprint button only on the Fingerprint tab (not repeated under Sign in) */
#lg_in[data-m="fp"] #pk_login { display: flex !important; }
#lg_in:not([data-m="fp"]) #pk_login { display: none !important; }
#pk_login { width: 100%; justify-content: center; align-items: center; gap: 10px; margin-top: 12px; background: transparent !important; border: 1px solid #2A4475 !important; color: #fff !important; font-weight: 700; }
#pk_login svg { width: 20px; height: 20px; }
@media (min-width: 860px) {
  .lg-card { max-width: 1000px !important; grid-template-columns: 360px 1fr !important; gap: 0 40px !important; padding: 36px 40px 30px !important; }
  .lg-card > .lg-brand { padding-right: 40px !important; border-right: 1px solid #1d3463 !important; margin-right: -40px; padding-top: 0 !important; }
  .lg-card > div:not(.lg-brand) { padding-top: 0; }
  .lg-alt-in, #lg_up > h2, #lg_up > .lg-sub, #lg_up > .lg-alt, .lg-card > .lg-note { display: none !important; }
  .lg-card > .lg-x { top: 14px; right: 14px; }
}
@media (max-width: 859.98px) {
  .lgb-top { padding-bottom: 10px; } .lgb-name b { font-size: 26px; } .lg-brand .lgb-top .lg-logo { height: 40px !important; }
  .lg-brand .lg-sub, .lgb-foot, .lgb-kick { display: none !important; } .lg-brand h2 { font-size: 24px !important; margin: 12px 0 10px !important; }
  .lg-meth { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; } .lgm-b { padding: 9px 4px !important; justify-content: center; }
  #lg_up > h2, #lg_up > .lg-sub { display: none !important; }
}
html[data-mode="light"] .lgb-top, html[data-mode="light"] .lg-card > .lg-brand { border-color: #DCE3EE !important; }
html[data-mode="light"] .lgb-foot { color: #33415C; } html[data-mode="light"] #pk_login { color: var(--navy) !important; border-color: #C9D4E6 !important; }
@media (max-width: 859.98px) {
  .lgb-top { padding-right: 46px; } .lgm-b { font-size: 11px !important; letter-spacing: .04em !important; gap: 4px !important; padding: 9px 2px !important; }
  .lgm-b svg { width: 13px !important; height: 13px !important; } #pk_login { font-size: 13px; white-space: nowrap; }
}
@media (max-width: 380px) { .lgm-b svg { display: none; } }

/* ---------- Header icons as CCPI: a gold initials box between mail and language */
@media (min-width: 1200px) {
  .toprow .ubox { order: 1; margin: 0 !important; }
  .toprow .ubtn { width: 50px !important; height: 50px !important; flex-basis: 50px !important; border-radius: 9px !important;
    border: 1px solid rgba(212,164,64,.55) !important; background: rgba(212,164,64,.08) !important; }
  .toprow .ubtn .u-ini { font-size: 17px !important; font-weight: 800 !important; letter-spacing: .06em; }
  .toprow .ubtn .u-ini.has-img { width: 36px; height: 36px; }
}
/* the left panel's "No account yet? Sign up" line ends on the bottom edge of the sign-in buttons */
@media (min-width: 860px) {
  .lg-card > .lg-brand { padding-bottom: 0 !important; }
  .lgb-foot { line-height: 1.35 !important; margin-bottom: -3px !important; padding-top: 18px; }
  #lg_msg:empty, #lg_in > .shiny-html-output:empty { display: none; }
}

/* ---------- Footer as the NXW model: one short band (logo, website links, contact), the copyright line below */
.vtp-footer .ft-band { max-width: 1200px; margin: 0 auto; padding: 22px 22px 16px; display: grid; grid-template-columns: 1.3fr 1.2fr .9fr; gap: 28px; align-items: start; }
.vtp-footer .ft-logo { height: 54px; width: auto; display: block; }
.vtp-footer .ft-brand p { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: #AFC0DA; max-width: 340px; }
.vtp-footer .ft-col h4 { margin: 2px 0 8px !important; font-size: 12.5px !important; letter-spacing: .22em !important; color: #fff; }
.vtp-footer .ft-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 22px; justify-content: start; }
.vtp-footer .ft-col a { display: block; margin: 3px 0 !important; font-size: 14px; }
.vtp-footer .ft-grid a { margin: 0 !important; }
.vtp-footer .ft-band + small { border-top: 1px solid rgba(255,255,255,.08) !important; }
html[data-mode="light"] .vtp-footer .ft-brand p { color: #4A5A75; } html[data-mode="light"] .vtp-footer .ft-col h4 { color: var(--navy); }
html[data-mode="light"] .vtp-footer .ft-band + small { border-top-color: var(--line) !important; }
@media (max-width: 800px) { .vtp-footer .ft-band { grid-template-columns: 1fr 1fr; gap: 18px; } .vtp-footer .ft-brand { grid-column: 1 / -1; } .vtp-footer .ft-grid { grid-template-columns: repeat(2, auto); } }

/* ---------- Header: the menu and the tagline centred on the page (the logo no longer pushes them right); logo centred in the bar */
@media (min-width: 1200px) {
  .navbar .container-fluid { position: relative; }
  .navbar .navbar-header, .navbar .navbar-brand { position: absolute !important; left: 28px; top: 0; bottom: 0; display: flex !important; align-items: center; margin: 0 !important; z-index: 2; }
  .navbar .navbar-brand { position: static !important; }
  .navbar .navbar-collapse { width: 100%; flex-basis: 100% !important; margin-left: 0 !important; }
  .navbar .navbar-nav { width: 100%; justify-content: center !important; }
}
/* main menu: twice the space between the items (13 -> 26px each side; 10 -> 20px on small laptops) */
@media (min-width: 1200px) {
  .navbar .navbar-nav > li > .nav-link { padding: 0 26px !important; }
  .navbar .navbar-nav > li > .nav-link::after { left: 26px !important; right: 26px !important; }
}
@media (min-width: 1200px) and (max-width: 1340px) {
  .navbar .navbar-nav > li > .nav-link { padding: 0 20px !important; }
  .navbar .navbar-nav > li > .nav-link::after { left: 20px !important; right: 20px !important; }
}
/* the icons and ADMIN keep the same margin from the right edge as the logo from the left (28px), never touching the edge */
@media (min-width: 1200px) { .navbar .container-fluid { padding-right: 28px !important; } }

/* 2026-10-27: NXW standard (CCPR model, C:\NXW\SHINY\SHINY_APPS_README.txt section 6b). VTP keeps its own pages; only the start page,
   the sign-in box and the UNDER CONSTRUCTION bar on phones follow CCPR. */
/* start page (signed out) = CCPR's: the block centred in the screen, same sizes and gaps, SIGN UP | SIGN IN, no market buttons, no footer */
html:not(.signed) .home-band, html:not(.signed) .home-band .hero { min-height: calc(100vh - 48px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: 16px !important; padding-bottom: 0 !important; box-sizing: border-box; }
html:not(.signed) .vtp-footer, html:not(.signed) .home-auth-p, html:not(.signed) .hero > .assets { display: none !important; }
html:not(.signed) .vtp-name { gap: 0; margin: 0 0 34px; }
html:not(.signed) .vtp-name span { font: 700 20.5px "Montserrat", sans-serif !important; letter-spacing: .145em !important; padding: 0 0 0 .145em; margin: 0 26px; text-transform: uppercase; }
html:not(.signed) .vtp-name span::after { content: " (VTP)"; }
html:not(.signed) .vtp-name i { width: 110px; height: 1.6px; }
html:not(.signed) .hero img.logo { width: 490px; max-width: 86%; height: auto; margin: 0 0 72px; }
html:not(.signed) .hero h1 { font-family: "Poppins", sans-serif; font-size: 44.7px; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 14px; }
html:not(.signed) .hero > p { font-family: "Poppins", sans-serif; font-size: 17px !important; font-weight: 300; max-width: 1158px; margin: 0 auto 31px !important; }
html:not(.signed) .hero > .home-auth { margin-top: 0 !important; gap: 6px; padding: 4px; border: 1px solid rgba(212,164,64,.35); border-radius: 12px; background: rgba(5,12,28,.65); }
html:not(.signed) .ha-btn { min-width: 0; width: 158px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  font: 800 13px "Montserrat", sans-serif; letter-spacing: .2em; border-radius: 8px; }
@media (max-width: 760px) {
  html:not(.signed) .home-band, html:not(.signed) .home-band .hero { justify-content: flex-start; padding-top: 32px !important; padding-bottom: 45px !important; }
  html:not(.signed) .vtp-name { margin: 0 0 28px; }
  html:not(.signed) .vtp-name span { font-size: 12px !important; letter-spacing: .25em !important; margin: 0; }
  html:not(.signed) .vtp-name i { display: none; }
  html:not(.signed) .hero img.logo { width: 304px; margin: 0 0 36px; }
  html:not(.signed) .hero h1 { font-size: 30px; }
  html:not(.signed) .hero > p { font-size: 15px !important; line-height: 1.5; margin: 0 auto 20px !important; }
  html:not(.signed) .ha-btn { width: 150px; height: 38px; }
}
/* phone: UNDER CONSTRUCTION on the first line, the message on the full width of the second (as CCPR) */
@media (max-width: 760px) {
  .uc-bar { flex-wrap: wrap; column-gap: 8px; row-gap: 4px; padding: 7px 10px; }
  .uc-bar .uc-txt { flex: 1 0 100%; text-align: center; font-size: 12px; line-height: 1.35; }
}

/* sign-in box = CCPR's: blue line on top, brand and points on the left, the form on the right after a thin line; blue tabs and button
   (red for the administrator sign-in, as CCPR); Forgot password on the Password row; the security question before Remember me */
.lg-card { font-family: "Montserrat", sans-serif; max-width: 900px !important; border-radius: 14px !important; border: 1px solid #1d3463 !important; border-top: 3px solid #2f6fd8 !important; }
html:not([data-mode="light"]) .lg-card { background: #0a1a3c !important; box-shadow: 0 24px 60px rgba(0,0,0,.5) !important; }
html.lg-admin .lg-card { border-top-color: #d32f2f !important; }
@media (min-width: 860px) {
  .lg-card { grid-template-columns: 340px 1fr !important; gap: 0 !important; padding: 30px 32px 24px !important; }
  .lg-card > .lg-brand { padding: 0 30px 0 0 !important; margin-right: 34px; border-right: 1px solid #1d3463 !important; }
}
.lg-card .lg-x { border: 0 !important; background: none !important; color: #8394b3 !important; font: 24px/1 Arial, sans-serif !important; width: 26px !important; height: 26px !important; top: 14px !important; right: 18px !important; }
.lg-card .lg-x:hover { color: #fff !important; }
.lg-card .lgb-name b { font: 700 40px/1 "Montserrat", sans-serif !important; letter-spacing: 4px !important;
  background: linear-gradient(180deg, #f2d78c 0%, #e1bb64 45%, #c9952f 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.lg-card .lgb-name span { font: 700 15px/1 "Montserrat", sans-serif !important; letter-spacing: 2.6px !important; white-space: nowrap; color: #7fa9f2 !important; }
.lg-card .lgb-kick { font: 700 11.5px "Montserrat", sans-serif !important; letter-spacing: .25em !important; color: #7fa9f2 !important; }
.lg-card h2 { font: 700 24px "Poppins", sans-serif !important; text-align: left; }
.lg-card .lg-sub { font: 13px/1.5 "Montserrat", sans-serif !important; color: #aab6cc !important; }
.lg-card .lg-pts { gap: 8px; }
.lg-card .lg-pts li { font: 13px/1.45 "Montserrat", sans-serif !important; color: #c9d3e6 !important; padding-left: 20px; }
.lg-card .lg-pts:not(.lg-steps) li::before { width: 7px !important; height: 7px !important; top: 6px !important; left: 1px !important; border-radius: 0 !important; transform: rotate(45deg);
  background: #5b8fe8 !important; box-shadow: none !important; }
.lg-card .lgb-foot, .lg-card .lg-alt { font: 13px/1.5 "Montserrat", sans-serif !important; }
/* the three ways to sign in: a row of text tabs, the chosen one blue */
.lg-card .lg-meth { display: inline-flex !important; gap: 0 !important; padding: 4px !important; margin: 4px 0 14px !important; border: 1px solid #2c4a83 !important; border-radius: 10px !important;
  background: rgba(8,18,44,.6) !important; }
.lg-card .lgm-b { flex-direction: row !important; min-height: 0 !important; padding: 10px 18px !important; border-radius: 7px !important; gap: 0 !important;
  font: 700 12.5px "Montserrat", sans-serif !important; letter-spacing: .14em !important; text-transform: uppercase; color: #c9d6f2 !important; background: transparent !important; }
.lg-card .lgm-b svg { display: none !important; }
.lg-card .lgm-b.on { background: #2f6fd8 !important; color: #fff !important; }
html.lg-admin .lg-card .lgm-b.on { background: #d32f2f !important; }
/* labels and fields */
.lg-card label, .lg-card .lg-cap-l { font: 700 11px "Montserrat", sans-serif !important; letter-spacing: .16em !important; text-transform: uppercase; color: #9cbcf5 !important; opacity: 1 !important; }
.lg-card .shiny-input-container:has(#lg_pw) > label { display: flex !important; justify-content: space-between; align-items: baseline; width: 100%; }
.lg-card label .lg-forgot { display: inline !important; margin: 0 !important; font: 600 12px "Montserrat", sans-serif !important; letter-spacing: normal !important; text-transform: none !important;
  color: #8fb3f0 !important; text-decoration: none; }
.lg-card label .lg-forgot:hover { color: #fff !important; text-decoration: underline; }
html:not([data-mode="light"]) .lg-card .form-control { background: #050c1c !important; border: 1px solid #1d3463 !important; }
.lg-card .form-control { height: 40px; border-radius: 8px !important; font: 500 14px "Montserrat", sans-serif !important; }
.lg-card .form-control:focus { border-color: #2f6fd8 !important; box-shadow: none !important; }
/* security question: a light box with the question, the refresh button, the answer (as CCPR) */
.lg-card .lg-cap { margin: 6px 0 14px !important; }
.lg-card .lg-cap-l { margin-bottom: 6px; }
.lg-card .lg-cap-row { gap: 9px; }
.lg-card .lg-cap-q { width: 150px; min-width: 150px; height: 44px; display: inline-flex !important; align-items: center; justify-content: center; padding: 0 !important; border-radius: 8px !important;
  background: #e9eef7 !important; border: 1px solid #1d3463 !important; color: #1b3a7a !important; font: italic 700 20px Georgia, "Times New Roman", serif !important; letter-spacing: .1em !important; box-shadow: none !important; }
.lg-card .lg-cap-new { width: 44px !important; height: 44px !important; border: 1px solid #1d3463 !important; color: #e1bb64 !important; background: #050c1c !important; }
.lg-card .lg-cap-in { height: 44px !important; text-align: center; }
.lg-card .lg-rem { font: 500 13px "Montserrat", sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; color: #c9d3e6 !important; margin: 0 0 12px !important; }
.lg-card .lg-rem input { accent-color: #2f6fd8; }
/* the button: blue, "Sign in" (red for the administrator sign-in) */
.lg-card .lg-btn:not(.pk-btn) { height: 42px !important; border-radius: 8px !important; border: 0 !important; background: #2f6fd8 !important; color: #fff !important; box-shadow: none !important;
  font: 700 14px "Montserrat", sans-serif !important; letter-spacing: .08em !important; text-transform: none !important; }
.lg-card .lg-btn:not(.pk-btn):hover { background: #3b7ce6 !important; }
html.lg-admin .lg-card .lg-btn:not(.pk-btn) { background: #d32f2f !important; }
html.lg-admin .lg-card .lg-btn:not(.pk-btn):hover { background: #e53935 !important; }
@media (max-width: 520px) {
  .lg-card .lg-meth { display: flex !important; width: 100%; }
  .lg-card .lgm-b { flex: 1 1 0; justify-content: center; padding: 9px 4px !important; font-size: 11px !important; letter-spacing: .06em !important; }
}

/* Header icons 25% smaller (user "SMALLER ICONS", 2026-10-28): 50 px -> 38 px like the CCPR top bar, ADMIN just under them, same right edge */
@media (min-width: 1200px) {
  .toprow { gap: 9px !important; }
  .toprow .sbox, .toprow .cbtn { width: 38px !important; height: 38px !important; flex-basis: 38px !important; border-radius: 8px !important; }
  .toprow .sbox svg { width: 16px !important; height: 16px !important; flex-basis: 16px !important; }
  .toprow .cbtn svg, .toprow .obtn svg { width: 17px !important; height: 17px !important; }
  .toprow .cbtn.langbtn { width: auto !important; flex-basis: auto !important; padding: 0 11px !important; gap: 7px !important; font-size: 13px !important; }
  .toprow .langbtn svg { width: 15px !important; height: 15px !important; } .toprow #lang_lbl { font-size: 12px; }
  .navbar .nav-item:has(.adm-tool) { top: 62px !important; }
  .cbtn.admbtn { height: 36px !important; padding: 0 16px !important; font-size: 13px !important; letter-spacing: .14em !important; }
  .cbtn.admbtn .adm-txt { font-size: 13px !important; }
  .cbtn.admbtn svg { width: 16px !important; height: 16px !important; }
}

/* ===== 2026-10-29: start page (signed out Home) = the NXW model start page (NXWWEB index.html / site.css, finalised 2026-10-29).
   Same blocks, sizes, ratios and places, top to bottom: Share + Language top right, kicker line with its gold rules, logo,
   two-tone headline, subtitle, one framed SIGN IN | SIGN UP pill (Sign in gold), one short note line, no footer.
   PC and tablet (760px and wider): one screen, no scrolling; the block sits above the centre (top max(56px, 6vh), bottom 18vh)
   and its sizes follow the screen height too. Phones may scroll. VTP keeps its own logo, words and buttons. */
.st-tools { display: none; }
html:not(.signed) body > .html-fill-container { border-top: 0 !important; }   /* the hidden menu bar's 1px line */
html:not(.signed) .home-band { position: relative; min-height: 100vh !important; min-height: 100svh !important; display: flex !important; flex-direction: row !important;
  align-items: center !important; justify-content: center !important; padding: max(56px, 6vh) 0 18vh !important; box-sizing: border-box; }
/* the blocks stack as in the model's .wrap (a plain block, 15.5px / 1.65 text): the kicker and the pill are inline boxes on their own lines */
html:not(.signed) .home-band .hero { position: static; display: block !important; width: 100%; max-width: 1200px; min-height: 0 !important; margin: 0 auto; padding: 0 22px !important;
  box-sizing: border-box; text-align: center; font-size: 15.5px; line-height: 1.65; }
/* Share and Language: 38 x 38, radius 8, 17px icons, 18px from the top and 24px from the right */
html:not(.signed) .home-band .st-tools { display: flex; align-items: center; gap: 8px; position: absolute; top: 18px; right: 24px; z-index: 50; }
html:not(.signed) .st-tools .cbtn { display: flex !important; align-items: center; justify-content: center; width: 38px !important; height: 38px !important; flex: 0 0 38px !important;
  min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 1px solid rgba(255,255,255,.3) !important; border-radius: 8px !important; background: transparent !important; color: #fff !important; box-shadow: none !important; }
html:not(.signed) .st-tools .cbtn:hover, html:not(.signed) .st-tools .lang-wrap.open .cbtn { border-color: #e9b54a !important; color: #e9b54a !important; }
html:not(.signed) .st-tools .cbtn svg { width: 17px !important; height: 17px !important; }
html:not(.signed) .st-tools .lang-wrap { position: relative; display: flex; margin: 0; }
html:not(.signed) .st-tools .cbtn.langbtn { width: auto !important; min-width: 38px; flex: 0 0 auto !important; padding: 0 10px !important; gap: 5px !important; font-size: 12.5px !important; }
html:not(.signed) .st-tools .langbtn svg { display: block; width: 16px !important; height: 16px !important; }
html:not(.signed) .st-tools #lang_lbl { font: 700 12.5px/1 Arial, sans-serif; letter-spacing: .05em; color: #e9b54a; }
html[data-mode="light"]:not(.signed) .st-tools .cbtn { border-color: #C9D3E3 !important; color: var(--navy) !important; }
html[data-mode="light"]:not(.signed) .st-tools #lang_lbl { color: #B07F1F; }
/* kicker line */
html:not(.signed) .home-band .vtp-name { display: inline-flex !important; align-items: center; gap: 18px; margin: 0 0 3.2vh; }
html:not(.signed) .home-band .vtp-name span { display: block; margin: 0; font: 700 clamp(14px, 1.3vw, 22px)/1.65 "Poppins", "Segoe UI", Arial, sans-serif !important;
  letter-spacing: .34em !important; padding: 0 0 0 .34em; text-transform: uppercase; }
html:not(.signed) .home-band .vtp-name i { display: block; width: clamp(40px, 7.5vw, 130px); height: 2px; }
html:not(.signed) .home-band .vtp-name i::after { top: -3px; width: 8px; height: 8px; }
html:not(.signed) .home-band .vtp-name i:first-child::after { right: -4px; } html:not(.signed) .home-band .vtp-name i:last-child::after { left: -4px; }
/* logo (the width wins over the one vtp.js writes on the image) */
html:not(.signed) .home-band .hero img.logo { display: block; width: min(30.5vw, 68.7vh, 520px) !important; max-width: 80%; height: auto; margin: 0 auto !important; }
/* headline: white then gold, one line on wide screens */
html:not(.signed) .home-band .hero h1 { font: 800 clamp(28px, 3.6vw, 64px)/1.15 "Poppins", "Segoe UI", Arial, sans-serif; letter-spacing: -.01em; margin: 3.6vh auto 2.6vh !important; max-width: none; }
html:not(.signed) .home-band .hero h1 b { font-weight: 900; }
@media (min-width: 900px) { html:not(.signed) .home-band .hero h1 { white-space: nowrap; } }
/* subtitle */
html:not(.signed) .home-band .hero > h1 + p { font: 300 clamp(15px, 1.2vw, 20px)/1.45 "Poppins", "Segoe UI", Arial, sans-serif !important; max-width: 1050px; margin: 0 auto !important; color: #D5DEEC; }
html[data-mode="light"]:not(.signed) .home-band .hero > h1 + p { color: #44546E; }
/* SIGN IN | SIGN UP: one framed pill, Sign in gold */
html:not(.signed) .home-band .hero > .home-auth { display: inline-flex !important; align-items: center; gap: 0 !important; margin: 5.6vh 0 0 !important; padding: 5px !important;
  border: 1px solid #2A4475 !important; border-radius: 12px !important; background: rgba(7,15,34,.45) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-sizing: border-box; }
html:not(.signed) .home-band .ha-btn { display: block !important; width: auto !important; height: auto !important; min-width: 156px !important; padding: 15px 28px !important;
  font: 700 15px/1.65 "Poppins", "Segoe UI", Arial, sans-serif !important; letter-spacing: .18em !important; text-transform: uppercase; text-align: center; border-radius: 8px !important; }
html:not(.signed) .home-band .ha-up { color: #E8EBF7 !important; }
html:not(.signed) .home-band .ha-div { display: block; width: 1px; height: 22px; margin: 0 5px; background: #2A4475; }
html[data-mode="light"]:not(.signed) .home-band .hero > .home-auth { background: #fff !important; border-color: #C9D4E6 !important; }
html[data-mode="light"]:not(.signed) .home-band .ha-up { color: var(--navy) !important; } html[data-mode="light"]:not(.signed) .home-band .ha-div { background: #C9D4E6; }
/* the short note line */
html:not(.signed) .home-band .hero > p.home-auth-p { display: block !important; max-width: 760px; margin: 3vh auto 0 !important; font: 400 clamp(13px, .95vw, 15.5px)/1.65 "Poppins", "Segoe UI", Arial, sans-serif !important;
  color: #9DB0CC !important; }
html[data-mode="light"]:not(.signed) .home-band .hero > p.home-auth-p { color: #5B6B84 !important; }
/* no footer, no date on the start page */
html:not(.signed) .vtp-footer, html:not(.signed) .home-band .st-date { display: none !important; }
/* PC and tablet: one screen, sizes follow the screen height too */
@media (min-width: 760px) {
  html:not(.signed) .home-band .vtp-name { margin-bottom: 2.8vh; }
  html:not(.signed) .home-band .vtp-name span { font-size: clamp(13px, min(1.3vw, 2.4vh), 22px) !important; }
  html:not(.signed) .home-band .hero img.logo { width: min(30.5vw, 50vh, 520px) !important; }
  html:not(.signed) .home-band .hero h1 { font-size: clamp(26px, min(3.6vw, 6.4vh), 64px); margin: 3.2vh auto 2.2vh !important; }
  html:not(.signed) .home-band .hero > h1 + p { font-size: clamp(14px, min(1.2vw, 2.2vh), 20px) !important; }
  html:not(.signed) .home-band .hero > .home-auth { margin-top: 4.4vh !important; }
  html:not(.signed) .home-band .hero > p.home-auth-p { margin-top: 2.4vh !important; white-space: nowrap; }
}
/* GUEST / SIGN IN / SIGN UP box height of the model: 9.5px top and bottom (less on short screens), phones 8px */
@media (min-width: 521px) { html:not(.signed) .home-band .ha-btn { padding-top: clamp(6px, 1vh, 9.5px) !important; padding-bottom: clamp(6px, 1vh, 9.5px) !important; } }
@media (max-width: 520px) {
  html:not(.signed) .home-band .hero > .home-auth { max-width: 100%; }
  html:not(.signed) .home-band .ha-btn { min-width: 0 !important; padding: 8px 14px !important; font-size: 13px !important; letter-spacing: .1em !important; }
}
/* phones: 36px buttons 14px / 16px from the corner, the page may scroll */
@media (max-width: 759px) {
  html:not(.signed) .home-band { padding: 62px 0 72px !important; }
  html:not(.signed) .home-band .st-tools { top: 14px; right: 16px; gap: 6px; }
  html:not(.signed) .st-tools .cbtn { width: 36px !important; height: 36px !important; flex-basis: 36px !important; }
  html:not(.signed) .st-tools .cbtn.langbtn { padding: 0 9px !important; }
  html:not(.signed) .st-tools .langbtn svg { display: none !important; }
  html:not(.signed) .home-band .hero img.logo { width: min(72vw, 360px) !important; }
  html:not(.signed) .home-band .vtp-name span { font-size: 12px !important; letter-spacing: .1em !important; white-space: nowrap; }   /* VTP's longer name on one line: same width as the model's (.18em) */
  html:not(.signed) .home-band .vtp-name i { display: block; width: 26px; }
}

/* ===== 2026-10-29: sign-in box = the NXW model box (SERVER_KIT nxw_ui nxw_login.css, NXW website lg- card): same width, padding,
   tabs, fonts, field and button sizes, in every mode. Only the look of VTP's own box changes (its markup, scripts and sign-in
   checks are untouched). Wide screens (861px and more): two columns, 900px; 860px and less: one column, 460px at most. */
#vtp_login .lg-card { position: relative; width: 100% !important; max-width: 900px !important; max-height: calc(100vh - 32px); overflow-y: auto; margin: auto; box-sizing: border-box;
  padding: 30px 34px 28px !important; background: #0b1a3e !important; border: 1px solid #1f3768 !important; border-top: 3px solid #2f6fd8 !important; border-radius: 16px !important;
  box-shadow: 0 30px 80px rgba(0,0,0,.5) !important; color: #e8ebf7; font: 400 15.5px/1.65 "Poppins", "Segoe UI", Arial, sans-serif; letter-spacing: normal; text-align: left; }
#vtp_login .lg-card * { box-sizing: border-box; }
#vtp_login .lg-card > .lg-note { display: none !important; }
#vtp_login .lg-card .lg-x { position: absolute; top: 14px !important; right: 16px !important; width: 30px !important; height: 30px !important; padding: 1px 6px !important; border: 0 !important;
  border-radius: 8px; background: transparent !important; color: #8fa3cc !important; font: 400 24px/1 Arial, Helvetica, sans-serif !important; text-align: center; z-index: 1; }
#vtp_login .lg-card .lg-x:hover { color: #e9b54a !important; }
/* left column: product name and logo, kicker, title, note, points, "No account yet?" */
#vtp_login .lg-card > .lg-brand { display: flex !important; flex-direction: column; min-width: 0; margin: 0 !important; padding: 0 32px 0 0 !important; border: 0 !important;
  border-right: 1px solid #1f3768 !important; border-radius: 0 !important; background: none !important; text-align: left !important; align-items: stretch !important; justify-content: flex-start !important; }
#vtp_login .lg-card .lgb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 16px !important; margin: 0 0 18px !important; border-bottom: 1px solid #1f3768 !important; }
#vtp_login .lg-card .lgb-name { display: flex; flex-direction: column; min-width: 0; line-height: 1; }
#vtp_login .lg-card .lgb-name b { display: block; font: 800 36px/1 "Montserrat", "Poppins", sans-serif !important; letter-spacing: .1em !important; white-space: nowrap;
  color: #e1bb64 !important; background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; }
#vtp_login .lg-card .lgb-name span { display: block; margin: 8px 0 0 !important; font: 700 13px/1 "Poppins", "Segoe UI", Arial, sans-serif !important; letter-spacing: .22em !important; color: #7fa9f2 !important; white-space: nowrap; }
#vtp_login .lg-card .lgb-top .lg-logo { display: block; height: 52px !important; width: auto !important; max-width: none; margin: 0 !important; flex: none; }
#vtp_login .lg-card .lgb-v { flex: 1 1 auto; min-width: 0; }
#vtp_login .lg-card .lgb-kick { display: block !important; margin: 0 0 6px !important; font: 700 12px/1.65 "Poppins", "Segoe UI", Arial, sans-serif !important; letter-spacing: .24em !important; text-transform: uppercase; color: #7fa9f2 !important; }
#vtp_login .lg-card .lg-brand h2 { display: block; margin: 0 0 8px !important; font: 700 28px/1.65 "Poppins", "Segoe UI", Arial, sans-serif !important; letter-spacing: normal !important; color: #fff !important; text-align: left !important; }
#vtp_login .lg-card .lg-brand .lg-sub { display: block !important; margin: 0 0 20px !important; font: 400 14px/1.55 "Poppins", "Segoe UI", Arial, sans-serif !important; color: #aab6cc !important; text-align: left !important; }
#vtp_login .lg-card .lg-brand .lg-pts { display: block !important; margin: 0 0 18px !important; padding: 0 !important; list-style: none; }
#vtp_login .lg-card .lg-brand .lg-pts li { position: relative; display: block; margin: 0 0 11px !important; padding: 0 0 0 22px !important; font: 400 14px/1.45 "Poppins", "Segoe UI", Arial, sans-serif !important; color: #c9d3e6 !important; }
#vtp_login .lg-card .lg-brand .lg-pts:not(.lg-steps) li::before { content: ""; position: absolute; left: 3px !important; top: 6px !important; width: 7px !important; height: 7px !important; border-radius: 0 !important;
  background: #5b8fe8 !important; box-shadow: none !important; transform: rotate(45deg); }
#vtp_login .lg-card .lgb-foot { display: block; margin: auto 0 0 !important; padding: 12px 0 0 !important; font: 400 13.5px/1.4 "Poppins", "Segoe UI", Arial, sans-serif !important; color: #aab6cc !important; }
#vtp_login .lg-card .lgb-foot a, #vtp_login .lg-card .lg-alt a { color: #7fa9f2 !important; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
#vtp_login .lg-card .lgb-foot a:hover, #vtp_login .lg-card .lg-alt a:hover { color: #fff !important; }
/* right column: tabs, fields, security question, Remember me, Sign in */
#vtp_login .lg-card #lg_in { display: flex; flex-direction: column; min-width: 0; }
#vtp_login .lg-card .lg-meth { display: inline-flex !important; align-self: flex-start; width: auto; max-width: 100%; gap: 4px !important; padding: 4px !important; margin: 0 0 16px !important;
  border: 1px solid #1f3768 !important; border-radius: 10px !important; background: transparent !important; }
#vtp_login .lg-card .lgm-b { display: block !important; flex: none; height: 34px; min-height: 0 !important; padding: 0 16px !important; border: 0 !important; border-radius: 7px !important;
  background: transparent !important; color: #c9d6ec !important; font: 700 12.5px/1.65 "Poppins", "Segoe UI", Arial, sans-serif !important; letter-spacing: .14em !important; text-transform: uppercase; white-space: nowrap; text-align: center; }
#vtp_login .lg-card .lgm-b:hover { background: rgba(255,255,255,.05) !important; }
#vtp_login .lg-card .lgm-b.on { background: #2f6fd8 !important; color: #fff !important; }
#vtp_login .lg-card .lgm-b svg { display: none !important; }
#vtp_login .lg-card .shiny-input-container { width: 100% !important; max-width: none; margin: 0 0 14px !important; }
#vtp_login .lg-card .shiny-input-container > label, #vtp_login .lg-card .lg-cap-l { display: block; margin: 0 !important; padding: 0; font: 700 11.5px/1.65 "Poppins", "Segoe UI", Arial, sans-serif !important;
  letter-spacing: .18em !important; text-transform: uppercase; color: #9cbcf5 !important; opacity: 1 !important; }
#vtp_login .lg-card .shiny-input-container:has(input[type="password"]) > label { display: flex !important; justify-content: space-between; align-items: center; gap: 10px; width: 100%; }
#vtp_login .lg-card label .lg-forgot { display: inline !important; margin: 0 !important; font: 400 13px/18.975px "Poppins", "Segoe UI", Arial, sans-serif !important; letter-spacing: normal !important;
  text-transform: none !important; color: #7fa9f2 !important; text-decoration: none; }
#vtp_login .lg-card label .lg-forgot:hover { text-decoration: underline; }
#vtp_login .lg-card .form-control { display: block; width: 100% !important; height: 48px !important; margin: 7px 0 0 !important; padding: 11px 13px !important; background: #050c1c !important;
  border: 1px solid #1f3768 !important; border-radius: 8px !important; color: #fff !important; font: 400 15.5px/1.65 "Poppins", "Segoe UI", Arial, sans-serif !important; letter-spacing: normal !important; box-shadow: none !important; }
#vtp_login .lg-card .selectize-control { margin: 7px 0 0; }
#vtp_login .lg-card .selectize-input { display: flex; align-items: center; height: 48px; min-height: 48px; padding: 0 13px !important; background: #050c1c !important; border: 1px solid #1f3768 !important;
  border-radius: 8px !important; color: #fff !important; font: 400 15.5px/1.65 "Poppins", "Segoe UI", Arial, sans-serif !important; box-shadow: none !important; }
#vtp_login .lg-card .selectize-input > input { color: #fff !important; }
#vtp_login .lg-card .form-control:focus { border-color: #5b8fe8 !important; box-shadow: 0 0 0 3px rgba(91,143,232,.15) !important; }
#vtp_login .lg-card .form-control::placeholder { color: #757575; opacity: 1; }
#vtp_login .lg-card .pw-wrap { position: relative; display: block; margin: 7px 0 0; }
#vtp_login .lg-card .pw-wrap .form-control { margin: 0 !important; padding-right: 44px !important; font-size: 11.5px !important; font-weight: 700 !important; }
#vtp_login .lg-card .pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; padding: 6px; border: 0; background: none; color: #a9b0d6; }
#vtp_login .lg-card .pw-eye svg { display: block; width: 20px; height: 20px; }
#vtp_login .lg-card .pw-eye:hover { color: #e1bb64; }
#vtp_login .lg-card .lg-cap { display: block; margin: 0 0 14px !important; }
#vtp_login .lg-card .lg-cap-l { margin-bottom: 7px !important; }
#vtp_login .lg-card .lg-cap-row { display: grid !important; grid-template-columns: minmax(0, 180px) 48px minmax(0, 1fr); gap: 10px !important; align-items: stretch; }
#vtp_login .lg-card .lg-cap-row > .shiny-html-output { display: block; min-width: 0; }
/* the question as the NXW box draws it: large dark Arial digits, evenly spaced, on a light box with two faint lines */
#vtp_login .lg-card .lg-cap-q { display: flex !important; align-items: center; justify-content: center; width: 100% !important; min-width: 0 !important; height: 48px !important; margin: 0; padding: 0 0 0 11px !important;
  border: 1px solid #1f3768 !important; border-radius: 8px !important; box-shadow: none !important; overflow: hidden; white-space: nowrap;
  background: #f4f7fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 48' preserveAspectRatio='none'%3E%3Cpath d='M0 20C60 6 120 40 180 26M0 33C60 44 120 10 180 18' fill='none' stroke='rgba(29,61,122,.16)' stroke-width='1'/%3E%3C/svg%3E") center / 100% 100% no-repeat !important;
  color: #0b1f4a !important; font: normal 700 29px/1 Arial, Helvetica, sans-serif !important; letter-spacing: 11px !important; word-spacing: -19px; }
#vtp_login .lg-card .lg-cap-new { position: relative; display: block; overflow: hidden; width: 48px !important; height: 48px !important; padding: 0 !important; border: 1px solid #1f3768 !important;
  border-radius: 8px !important; background: #050c1c !important; color: #e1bb64 !important; font-size: 0 !important; line-height: 0; }
#vtp_login .lg-card .lg-cap-new::before { content: ""; position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.6M20 4v5h-5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.6M20 4v5h-5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat; }
#vtp_login .lg-card .lg-cap-new:hover { border-color: #e1bb64 !important; }
#vtp_login .lg-card .lg-cap-row .lg-cap-in { margin: 0 !important; height: 48px !important; padding: 0 10px !important; text-align: center; font-size: 16px !important; letter-spacing: .06em !important; }
#vtp_login .lg-card .lg-rem { display: flex !important; align-items: center; gap: 8px; margin: 0 0 14px !important; font: 400 14px/1.65 "Poppins", "Segoe UI", Arial, sans-serif !important;
  letter-spacing: normal !important; text-transform: none !important; color: #c9d3e6 !important; cursor: pointer; }
#vtp_login .lg-card .lg-rem input { flex: none; width: 16px; height: 16px; margin: 3px 3px 3px 4px; accent-color: #2f6fd8; }
#vtp_login .lg-card .lg-btn:not(.pk-btn), #vtp_login .lg-card #lg_in[data-m="fp"] #pk_login { display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px !important;
  margin: 0; padding: 12px 24px !important; border: 0 !important; border-radius: 8px !important; background: #2f6fd8 !important; color: #fff !important; box-shadow: none !important;
  font: 700 15px/1.65 "Poppins", "Segoe UI", Arial, sans-serif !important; letter-spacing: .06em !important; text-transform: none !important; }
#vtp_login .lg-card .lg-btn:not(.pk-btn):hover, #vtp_login .lg-card #pk_login:hover { background: #3d7ee6 !important; }
#vtp_login .lg-card #pk_login svg { width: 20px; height: 20px; flex: none; }
html.lg-admin #vtp_login .lg-card { border-top-color: #d32f2f !important; }
html.lg-admin #vtp_login .lg-card .lgm-b.on, html.lg-admin #vtp_login .lg-card .lg-btn:not(.pk-btn) { background: #d32f2f !important; }
#vtp_login .lg-card .lg-msg { margin: 12px 0 0; padding: 9px 12px; border-radius: 8px; font: 400 13px/1.65 "Poppins", "Segoe UI", Arial, sans-serif; }
/* pattern and fingerprint panes as the NXW box */
#vtp_login .lg-card .lgm-pat .pat-pad { width: 200px; border: 1px dashed #2c4a83; border-radius: 12px; background: rgba(5,12,28,.6); }
#vtp_login .lg-card .lgm-fp { padding: 22px 14px 18px; margin: 0 0 14px; border: 1px dashed #2c4a83; border-radius: 10px; text-align: center; }
#vtp_login .lg-card .lg-pat-t { font: 500 15px/1.5 "Poppins", "Segoe UI", Arial, sans-serif; color: #fff; }
#vtp_login .lg-card .lg-pat-n { font: 400 13px/1.5 "Poppins", "Segoe UI", Arial, sans-serif; color: #aab6cc; }
#vtp_login .lg-card .lg-alt { font: 400 13.5px/1.6 "Poppins", "Segoe UI", Arial, sans-serif !important; color: #aab6cc; }
/* other views of the box (code, waiting list, forgot password, sign up): same fields and buttons */
#vtp_login .lg-card .lg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
#vtp_login .lg-card > div:not(.lg-brand) > h2 { margin: 0 0 8px !important; font: 700 24px/1.4 "Poppins", "Segoe UI", Arial, sans-serif !important; color: #fff; text-align: left; }
#vtp_login .lg-card > div:not(.lg-brand) > .lg-sub { margin: 0 0 16px !important; font: 400 14px/1.55 "Poppins", "Segoe UI", Arial, sans-serif !important; color: #aab6cc !important; text-align: left; }
@media (min-width: 861px) {
  #vtp_login .lg-card { display: grid !important; grid-template-columns: 330px minmax(0, 1fr) !important; gap: 0 36px !important; align-items: stretch !important; }
  #vtp_login .lg-card > .lg-brand { grid-column: 1; grid-row: 1; }
  #vtp_login .lg-card > div:not(.lg-brand) { grid-column: 2; grid-row: 1; padding-top: 0; }
  /* the Sign in button on the bottom line of the left column's "No account yet?" */
  #vtp_login .lg-card #lg_in[data-m="pw"] .lgm-pw { display: flex !important; flex-direction: column; flex: 1 0 auto; }
  #vtp_login .lg-card #lg_in[data-m="pw"] #lg_go { margin-top: auto !important; }
  #vtp_login .lg-card .lg-alt-in { display: none !important; }
}
@media (max-width: 860px) {
  #vtp_login .lg-card { display: block !important; max-width: 460px !important; padding: 24px 22px 22px !important; }
  #vtp_login .lg-card > .lg-brand { padding: 0 !important; border-right: 0 !important; }
  #vtp_login .lg-card .lgb-top { padding-right: 34px !important; }
  #vtp_login .lg-card .lgb-name b { font-size: 30px !important; } #vtp_login .lg-card .lgb-name span { font-size: 11.5px !important; }
  #vtp_login .lg-card .lgb-top .lg-logo { height: 42px !important; }
  #vtp_login .lg-card .lg-brand .lg-pts, #vtp_login .lg-card .lgb-foot { display: none !important; }
  #vtp_login .lg-card .lg-brand .lg-sub { margin-bottom: 16px !important; }
  #vtp_login .lg-card .lg-brand h2 { font-size: 24px !important; }
  #vtp_login .lg-card .lg-meth { display: inline-flex !important; }
  #vtp_login .lg-card .lgm-b { padding: 0 16px !important; font-size: 12.5px !important; letter-spacing: .14em !important; }
  #vtp_login .lg-card #lg_go { margin-top: 0 !important; }
  #vtp_login .lg-card .lg-alt-in { display: block !important; margin: 16px 0 0 !important; padding: 0; text-align: center !important; font: 400 13.5px/1.6 "Poppins", "Segoe UI", Arial, sans-serif !important; color: #aab6cc !important; }
}
@media (max-width: 420px) {
  #vtp_login .lg-card .lg-meth { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; align-self: stretch; }
  #vtp_login .lg-card .lgm-b { padding: 0 6px !important; letter-spacing: .08em !important; font-size: 11.5px !important; }
  #vtp_login .lg-card .lg-cap-row { grid-template-columns: minmax(0, 1.2fr) 48px minmax(0, 1fr); gap: 8px !important; }
  #vtp_login .lg-card .lg-cap-q { padding-left: 7px !important; letter-spacing: 7px !important; word-spacing: -15px; }
  #vtp_login .lg-card .lg-two { grid-template-columns: 1fr; gap: 0; }
}

/* start page like the CCPR / CCPE start page (2026-10-30): on a screen held across (PC, tablet in landscape) the start page is the
   CCPE stage, design size 1520 x 696 scaled to fit the screen (--k, set by js/vtp.js): background with the big NXW logo
   (img/starter_bg.jpg, the CCPE bg.jpg), gold name line at the top, headline, text and the button box at the CCPE places and sizes.
   Phones and tablets held upright (html.st-portrait) keep the stacked start page. Same as NXWWEB, CCPS and CCPI; replaces the 2026-10-29 NXW-model start page block above. Why: user "APPS NOT OK = ... VTP", "PLEASE APPLY OK TO NOT OK". */
html:not(.signed):not(.st-portrait), html:not(.signed):not(.st-portrait) body { overflow: hidden !important; background: #060f22 !important; }
html:not(.signed):not(.st-portrait) .home-band { position: fixed !important; inset: 0 !important; min-height: 0 !important; padding: 0 !important; display: block !important; background: radial-gradient(ellipse at 50% 55%, #0c224b 0%, #08142d 55%, #050a17 100%) !important; }
html:not(.signed):not(.st-portrait) .home-band::before { content: "" !important; position: absolute !important; left: calc(50vw - 760px * var(--k, .84)) !important; top: calc(50vh - 348px * var(--k, .84)) !important;
  width: calc(1520px * var(--k, .84)) !important; height: calc(696px * var(--k, .84)) !important; background: url("../img/starter_bg.jpg") center/100% 100% no-repeat !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 4%, #000 98.5%, transparent 100%), linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%) !important;
  -webkit-mask-composite: source-in !important; mask-image: linear-gradient(to bottom, transparent 0, #000 4%, #000 98.5%, transparent 100%), linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%) !important;
  mask-composite: intersect !important; pointer-events: none !important; }
html:not(.signed):not(.st-portrait) .home-band .hero { position: static !important; max-width: none !important; padding: 0 !important; }
:where(html:not(.signed):not(.st-portrait) .home-band .hero) > :where(:not(.st-tools)) { position: absolute !important; left: 0 !important; right: 0 !important; margin: 0 !important; }
html:not(.signed):not(.st-portrait) .home-band .hero img.logo { display: none !important; }   /* the logo is in the background, as on CCPE */
html:not(.signed):not(.st-portrait) .vtp-name { top: calc(50vh + (84.8px - 348px) * var(--k, .84)) !important; display: flex !important; justify-content: center !important; align-items: center !important; gap: 0 !important; }
html:not(.signed):not(.st-portrait) .vtp-name span { font-size: calc(20.5px * var(--k, .84)) !important; font-weight: 700 !important; letter-spacing: .145em !important; line-height: 1 !important; color: #e1bb64 !important;
  padding: 0 !important; margin: 0 calc(26px * var(--k, .84) - .145em) 0 calc(26px * var(--k, .84)) !important; }
html:not(.signed):not(.st-portrait) .vtp-name i { width: calc(110px * var(--k, .84)) !important; height: calc(1.6px * var(--k, .84)) !important; flex: none !important; }
html:not(.signed):not(.st-portrait) .vtp-name i::after { width: calc(7px * var(--k, .84)) !important; height: calc(7px * var(--k, .84)) !important; top: 50% !important; margin-top: calc(-3.5px * var(--k, .84)) !important; }
html:not(.signed):not(.st-portrait) .home-band .hero h1 { top: calc(50vh + (437.4px - 348px) * var(--k, .84)) !important; width: auto !important; max-width: none !important; white-space: nowrap !important;
  font-size: calc(44.7px * var(--k, .84)) !important; font-weight: 700 !important; letter-spacing: -.02em !important; line-height: 1.2 !important; color: #fff !important; }
html:not(.signed):not(.st-portrait) .home-band .hero h1 b { color: #d4a440 !important; font-weight: 700 !important; }
html:not(.signed):not(.st-portrait) .home-band .hero h1 + p { top: calc(50vh + (503.6px - 348px) * var(--k, .84)) !important; left: calc(50vw - 550px * var(--k, .84)) !important; right: auto !important; transform: none !important;
  width: calc(1100px * var(--k, .84)) !important; max-width: none !important; font-size: calc(17px * var(--k, .84)) !important; line-height: calc(24.8px * var(--k, .84)) !important; font-weight: 300 !important; color: #d5deec !important; }
/* the button box: the CCPE pill (SIGN UP | SIGN IN), SIGN IN gold on the right as on CCPE */
html:not(.signed):not(.st-portrait) .home-auth { top: calc(50vh + (582.5px - 348px) * var(--k, .84)) !important; left: calc(50vw - 158px * var(--k, .84) - 1px) !important; right: auto !important; transform: none !important; width: max-content !important;
  display: flex !important; align-items: center !important; gap: calc(6px * var(--k, .84)) !important; padding: calc(4px * var(--k, .84)) !important; border: 1px solid rgba(212,164,64,.35) !important;
  border-radius: calc(12px * var(--k, .84)) !important; background: rgba(5,12,28,.65) !important; backdrop-filter: none !important; }
html:not(.signed):not(.st-portrait) .home-auth .ha-div, html:not(.signed):not(.st-portrait) .home-auth .ha-sep { display: none !important; }
html:not(.signed):not(.st-portrait) .home-auth .ha-up { order: 1 !important; } html:not(.signed):not(.st-portrait) .home-auth .ha-in { order: 2 !important; }
html:not(.signed):not(.st-portrait) .ha-btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; box-sizing: border-box !important; min-width: 0 !important;
  width: calc(150px * var(--k, .84)) !important; height: calc(38px * var(--k, .84)) !important; padding: 0 !important; border-radius: calc(8px * var(--k, .84)) !important; border: 0 !important;
  font-size: calc(13px * var(--k, .84)) !important; font-weight: 800 !important; letter-spacing: .2em !important; line-height: 1 !important; }
html:not(.signed):not(.st-portrait) .ha-up { background: transparent !important; color: #fff !important; }
html:not(.signed):not(.st-portrait) .ha-up:hover { color: #e8c979 !important; }
html:not(.signed):not(.st-portrait) .ha-in { background: linear-gradient(180deg, #e8c979, #d4a440) !important; color: #0a1a3c !important; }
html:not(.signed):not(.st-portrait) .hero p.home-auth-p { top: calc(50vh + (640px - 348px) * var(--k, .84)) !important; left: 0 !important; right: 0 !important; width: auto !important; max-width: none !important; text-align: center !important; font-size: calc(13.5px * var(--k, .84)) !important; white-space: nowrap !important; color: #9DB0CC !important; }

/* start page like the CCPR / CCPE start page, step 2 (2026-10-30): phones and tablets held upright (html.st-portrait) get the
   stacked CCPE start page: name line without the gold rules, the NXW logo (img/starter_logo.png, the CCPE nxw-logo.png), headline,
   text and the CCPE button pill under it. Same as NXWWEB and CCPS. */
.st-logo-m { display: none; }
html:not(.signed).st-portrait .home-band { min-height: 100vh !important; min-height: 100svh !important; padding: 40px 18px !important; box-sizing: border-box !important; background: #08142d !important; display: block !important; }
html:not(.signed).st-portrait .home-band .hero { padding: 0 !important; }
html:not(.signed).st-portrait .vtp-name { margin: 0 !important; gap: 0 !important; justify-content: center !important; }
html:not(.signed).st-portrait .vtp-name i { display: none !important; }
html:not(.signed).st-portrait .vtp-name span { font-size: 12px !important; font-weight: 700 !important; letter-spacing: .25em !important; padding-left: .25em !important; line-height: 1.4 !important; color: #e1bb64 !important; }
html:not(.signed).st-portrait .home-band .hero img.logo { display: none !important; }
html:not(.signed).st-portrait .st-logo-m { display: block !important; width: 86% !important; max-width: 420px !important; margin: 28px auto 0 !important; }
html:not(.signed).st-portrait .home-band .hero h1 { font-size: 30px !important; font-weight: 700 !important; letter-spacing: -.02em !important; line-height: 1.2 !important; white-space: normal !important; width: auto !important; margin: 36px auto 0 !important; color: #fff !important; }
html:not(.signed).st-portrait .home-band .hero h1 b { color: #d4a440 !important; font-weight: 700 !important; }
html:not(.signed).st-portrait .home-band .hero h1 + p { font-size: 15px !important; line-height: 1.5 !important; font-weight: 300 !important; margin: 12px auto 0 !important; color: #d5deec !important; }
html:not(.signed).st-portrait .home-auth { display: flex !important; width: max-content !important; max-width: 100% !important; box-sizing: border-box !important; margin: 19.5px auto 0 !important; gap: 6px !important; padding: 4px !important;
  border: 1px solid rgba(212,164,64,.35) !important; border-radius: 12px !important; background: rgba(5,12,28,.65) !important; backdrop-filter: none !important; }
html:not(.signed).st-portrait .home-auth .ha-div, html:not(.signed).st-portrait .home-auth .ha-sep { display: none !important; }
html:not(.signed).st-portrait .home-auth .ha-up { order: 1 !important; } html:not(.signed).st-portrait .home-auth .ha-in { order: 2 !important; }
html:not(.signed).st-portrait .ha-btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; box-sizing: border-box !important; flex: 0 1 150px !important; min-width: 0 !important; width: 150px !important;
  height: 38px !important; padding: 0 6px !important; border-radius: 8px !important; border: 0 !important; font-size: 13px !important; font-weight: 800 !important; letter-spacing: .2em !important; line-height: 1 !important; white-space: nowrap !important; }
html:not(.signed).st-portrait .ha-up { background: transparent !important; color: #fff !important; }
html:not(.signed).st-portrait .ha-in { background: linear-gradient(180deg, #e8c979, #d4a440) !important; color: #0a1a3c !important; }
html:not(.signed).st-portrait .hero p.home-auth-p { font-size: 13px !important; margin: 14px auto 0 !important; white-space: normal !important; color: #9DB0CC !important; }
@media (max-width: 520px) { html:not(.signed).st-portrait .ha-btn { font-size: 12px !important; letter-spacing: .12em !important; } }
@media (max-width: 699px) { html:not(.signed).st-portrait .home-band { padding-top: 72px !important; } }   /* phones: the name line under the Share and Language buttons */
@media (min-width: 700px) {
  html:not(.signed).st-portrait .home-band { display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; padding: 60px 48px 110px !important; }
  html:not(.signed).st-portrait .vtp-name span { font-size: 17px !important; }
  html:not(.signed).st-portrait .st-logo-m { width: 70% !important; max-width: 540px !important; margin-top: 40px !important; }
  html:not(.signed).st-portrait .home-band .hero h1 { font-size: 46px !important; margin-top: 44px !important; }
  html:not(.signed).st-portrait .home-band .hero h1 + p { font-size: 19px !important; max-width: 660px !important; margin-top: 16px !important; }
  html:not(.signed).st-portrait .home-auth { margin-top: 36px !important; }
}

html:not(.signed):not(.st-portrait) .home-band .hero > .assets, html:not(.signed) .home-band .hero > .home-user { display: none !important; }
html:not(.signed).st-portrait .home-band .st-tools { top: 14px !important; right: 16px !important; }
html:not(.signed):not(.st-portrait) .home-band .hero > .vtp-name, html:not(.signed):not(.st-portrait) .home-band .hero > h1,
html:not(.signed):not(.st-portrait) .home-band .hero > p, html:not(.signed):not(.st-portrait) .home-band .hero > .home-auth { margin: 0 !important; }   /* the 2026-10-29 margins would move the blocks */
