/* ==========================================================================
   StockAi application styles
   Loaded after Bootstrap (reboot/grid/utilities) and stockai.css.
   1. Fonts             5. Auth pages            9. Motion (scroll reveals)   13. Showcase panels
   2. Bootstrap bridge  6. Interactive states   10. How It Works slider      14. Cookie banner
   3. Accessibility     7. Legal pages          11. Market charts            15. Activity notifications
   4. Form states       8. 404 page             12. Why StockAi              16. Strategy profiles
   ========================================================================== */

/* 1. Fonts — Urbanist (SIL OFL 1.1, see /assets/fonts/OFL.txt), self-hosted. */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/urbanist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/urbanist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Bootstrap bridge — point Bootstrap's reboot variables at StockAi tokens
      so Bootstrap never overrides the design. */
.sa {
  --bs-body-font-family: 'Urbanist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-font-size: 16px;
  --bs-body-line-height: normal;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-heading-color: inherit;
  --bs-border-color: var(--line);
  color-scheme: light;
}
.sa[data-theme="dark"] { color-scheme: dark; }
/* Element-level resets use :where(.sa) so they beat reboot's element selectors
   but never outrank the design's class rules. */
:where(.sa) body { margin: 0; background: transparent; }
:where(.sa) :is(h1, h2, h3, h4, h5, h6) { line-height: normal; font-weight: 700; }
:where(.sa) :is(img, svg) { vertical-align: baseline; }
:where(.sa) :is(p, ul) { margin-bottom: 0; }

/* 3. Accessibility */
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 12px;
  background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none;
  box-shadow: 0 0 0 1px var(--ring), 0 10px 24px var(--shade);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }
.sa a:focus-visible, .cat-btn:focus-visible, .chk-input:focus-visible + .chk-box, .pw-toggle:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  .track, .toggle, .toggle .knob, .skip-link { transition: none !important; }
}

/* 4. Form states (validation feedback is rendered by assets/js/components/form-validation.js) */
.field-control { position: relative; }
.field-control input { padding-right: 0; }
.field-control.has-toggle input { padding-right: 52px; }
.field .hint { font-size: 13.5px; line-height: 1.45; color: var(--ink-3); margin: 2px 0 0; }
.field .error { display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; font-weight: 600; color: var(--accent-text); margin: 2px 0 0; }
.field .error svg { flex: none; margin-top: 2px; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--accent); }
.field.is-invalid label { color: var(--accent-text); }
.field-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.field-row a { font-size: 14.5px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.field-row a:hover { text-decoration: underline; }

.pw-toggle {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
}
.pw-toggle:hover { color: var(--ink); }
.pw-toggle .ico-hide { display: none; }
.pw-toggle[aria-pressed="true"] .ico-show { display: none; }
.pw-toggle[aria-pressed="true"] .ico-hide { display: block; }

.chk { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.chk a { color: var(--accent-text); font-weight: 600; }
.chk-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chk-box {
  width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 7px;
  display: grid; place-items: center; color: transparent;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2);
  transition: background .15s, box-shadow .15s;
}
.chk-input:checked + .chk-box { background: var(--accent); color: #FFFFFF; box-shadow: 0 4px 10px rgba(255,56,47,.3); }
.field.is-invalid .chk-box { box-shadow: inset 0 0 0 1.5px var(--accent); }

.pw-meter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.pw-meter span { height: 5px; border-radius: 4px; background: var(--line); transition: background .2s; }
.pw-meter[data-score="1"] span:nth-child(-n+1),
.pw-meter[data-score="2"] span:nth-child(-n+2) { background: #F0A23B; }
.pw-meter[data-score="3"] span:nth-child(-n+3),
.pw-meter[data-score="4"] span:nth-child(-n+4) { background: #1FA463; }

.form-status {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: 16px; font-size: 15px; line-height: 1.55;
}
.form-status[hidden] { display: none; }
.form-status svg { flex: none; margin-top: 2px; }
.form-status strong { color: var(--ink); }
.form-status--info { background: rgba(255,184,0,.12); color: var(--ink); }
.form-status--info svg { color: #B07400; }
.sa[data-theme="dark"] .form-status--info svg { color: #FFCF5C; }
.form-status--error { background: var(--accent-soft); color: var(--ink); }
.form-status--error svg { color: var(--accent-text); }
.form-status--success { background: rgba(31,164,99,.12); color: var(--ink); }
.form-status--success svg { color: #1FA463; }

.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: sa-spin .7s linear infinite; }
@keyframes sa-spin { to { transform: rotate(360deg); } }

/* 5. Auth pages (login / register) — built from the contact-page pattern */
.auth-frame { min-height: 900px; }
.auth-split { padding-top: 72px; padding-bottom: 96px; align-items: center; }
.auth-points { display: flex; flex-direction: column; gap: 14px; }
.auth-points .hrow { gap: 12px; font-size: 16.5px; font-weight: 500; color: var(--ink); }
.auth-switch { text-align: center; font-size: 15.5px; color: var(--ink-2); margin: 0; }
.auth-switch a { color: var(--accent-text); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.form-divider { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 899px) {
  .auth-frame { min-height: 0; }
  .auth-split { padding-top: 48px; padding-bottom: 56px; }
}
@media (max-width: 767px) {
  .auth-split { padding-top: 32px; }
}

/* 6. Interactive states */
.btn { transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; }
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(2px); }
.round-btn:not([disabled]):hover { color: var(--accent-text); }
.card.acc-card .acc-btn:hover .h-card { color: var(--ink); }
a.card { transition: transform .15s ease; }
a.card:hover { transform: translateY(-2px); }
.faq-q .ico-minus { display: none; }
.faq-q[aria-expanded="true"] .ico-minus { display: block; }
.faq-q[aria-expanded="true"] .ico-plus { display: none; }
.faq-a { padding: 0 28px 26px; max-width: 680px; }
.cat-btn { background: transparent; color: var(--ink); }
.cat-btn[aria-pressed="true"], .cat-btn[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }
.cat-btn:not([aria-pressed="true"]):not([aria-current="page"]):hover { background: var(--nest); }
a.cat-btn { text-decoration: none; }
.mobile-menu[hidden] { display: none; }
.menu-btn .ico-close { display: none; }
.menu-btn[aria-expanded="true"] .ico-open { display: none; }
.menu-btn[aria-expanded="true"] .ico-close { display: block; }

/* 7. Legal pages */
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent-text); }
.legal-sec { scroll-margin-top: 24px; }

/* 8. 404 page */
.nf-code { font-size: clamp(96px, 18vw, 200px); font-weight: 600; letter-spacing: -.06em; line-height: .9; color: var(--ink-h); margin: 0; }
.nf-code span { color: var(--accent); }

/* 9. Motion — coordinated scroll reveals (assets/js/components/reveal.js).
   Elements are only given .reveal by JavaScript, and only when they start below
   the fold, so nothing is hidden if scripts fail. One easing and duration for all. */
.sa { --ease-out: cubic-bezier(.2, .7, .2, 1); --reveal-duration: .8s; --meter-duration: 1.2s; }
.sa .reveal {
  opacity: 0;
  transition: opacity var(--reveal-duration) var(--ease-out) var(--reveal-delay, 0ms),
              transform var(--reveal-duration) var(--ease-out) var(--reveal-delay, 0ms);
}
.sa .reveal[data-reveal-type="up"] { transform: translate3d(0, 28px, 0); }
.sa .reveal[data-reveal-type="left"] { transform: translate3d(-28px, 0, 0); }
.sa .reveal[data-reveal-type="right"] { transform: translate3d(28px, 0, 0); }
.sa .reveal[data-reveal-type="scale"] { transform: translate3d(0, 20px, 0) scale(.97); }
.sa .reveal.is-in { opacity: 1; }
.sa .reveal.is-in:not([data-reveal-type="fade"]) { transform: none; }
@media (max-width: 767px) {
  /* Columns are stacked on phones, so side slides become slide-ups (and can't cause sideways overflow). */
  .sa .reveal:is([data-reveal-type="left"], [data-reveal-type="right"]) { transform: translate3d(0, 24px, 0); }
}
@media print { .sa .reveal { opacity: 1 !important; transform: none !important; } }

/* 10. How It Works slider (assets/js/components/step-slider.js).
   The viewport is a native scroll-snap container on every screen size, so touch
   swipe and trackpads work; the arrows, dots and autoplay scroll it. */
.sa .track-box {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-inline: 6px;
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.sa .track-box::-webkit-scrollbar { display: none; }
.sa .track { transform: none !important; }
.sa .track > * { scroll-snap-align: start; }
.step-card { outline: 1.5px solid transparent; outline-offset: -1.5px; transition: outline-color .4s ease; }
.step-card.is-active { outline-color: rgba(255, 56, 47, .45); }
.slider-status { gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.slider-status[hidden] { display: none; }
.slider-status .dotb { transition: width .35s var(--ease-out), background-color .35s ease; }
.slider-status .dotb.on { width: 26px; border-radius: 6px; }
.slider-count { font-size: 15px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.slider-count b { color: var(--ink); font-weight: 700; }
.slider-toggle {
  width: 34px; height: 34px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
}
.slider-toggle:hover { color: var(--accent-text); }
.slider-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.slider-toggle[data-state="playing"] .ico-play,
.slider-toggle[data-state="paused"] .ico-pause { display: none; }
@media (max-width: 767px) { .sa .track-box { scroll-padding-inline: 20px; } }
@media (max-width: 479px) { .sa .track-box { scroll-padding-inline: 16px; } }

/* 11. Live market charts (assets/js/components/market-chart.js, TradingView embed) */
.tv-chart { position: relative; flex: 1; min-height: 0; border-radius: 10px; overflow: hidden; background: inherit; }
.tv-chart-host, .tv-chart-host .tradingview-widget-container { position: absolute; inset: 0; }
.tv-chart-host iframe { display: block; width: 100% !important; height: 100% !important; border: 0; }
.tv-chart-state {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; text-align: center; font-size: 14px; line-height: 1.45; color: var(--ink-3); background: inherit;
}
.tv-chart-state[hidden] { display: none; }
.tv-chart-state a { color: var(--accent-text); font-weight: 600; }
.tv-chart[data-state="error"] .tv-chart-state { color: var(--ink-2); }
/* No consent for third-party content yet: themed fallback instead of the chart. */
.tv-chart[data-state="blocked"] .tv-chart-state { gap: 8px; }
.tv-blocked-ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.tv-blocked-title { font-weight: 700; font-size: 15.5px; color: var(--ink); }
.tv-blocked-text { max-width: 320px; font-size: 13px; color: var(--ink-3); }
.tv-blocked-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 4px; }
.sa .tv-chart[data-state="blocked"] .tv-chart-state a {
  display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: 999px;
  font-size: 13px; font-weight: 700; text-decoration: none; color: var(--surface); background: var(--ink);
}
.sa .tv-chart[data-state="blocked"] .tv-chart-state a:hover { background: var(--accent); color: #FFFFFF; }
.tv-blocked-btn { all: unset; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.tv-blocked-btn:hover { color: var(--accent-text); }
.tv-chart-state a:focus-visible, .tv-blocked-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; }
.tv-chart[data-compact] .tv-blocked-text { display: none; }
.tv-chart[data-compact] .tv-blocked-ico { width: 34px; height: 34px; border-radius: 11px; }
.tv-chart[data-compact] .tv-blocked-title { font-size: 14px; }
.tv-spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: tv-spin .8s linear infinite; }
@keyframes tv-spin { to { transform: rotate(360deg); } }
.tv-credit { align-self: flex-end; margin-top: -2px; font-size: 11.5px; line-height: 1.2; color: var(--ink-3); text-decoration: none; }
.tv-credit:hover { color: var(--accent-text); text-decoration: underline; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; animation: live-pulse 2.4s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: .35; } }
.sa .tf-btn { height: 30px; font-size: 12px; font-family: inherit; cursor: pointer; }
.sa .tf-btn[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: transparent; }
.sa .tf-btn:not([aria-pressed="true"]):hover { color: var(--accent-text); }
.tf-btn:focus-visible, .pos-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pos-list { gap: 12px; }
@media (max-width: 767px) { .dash-chart { height: 340px; } }
@media (max-width: 479px) { .dash-chart { height: 320px; } }
.pos-row {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer; border-radius: 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px;
}
.pos-pair { font-weight: 600; transition: color .2s ease; }
.pos-row:hover .pos-pair, .pos-row[aria-pressed="true"] .pos-pair { color: var(--accent-text); }

/* 12. Why StockAi — example bot profile meters, practice steps, account controls */
.profile-head { justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.meter-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.meter { position: relative; height: 40px; overflow: hidden; }
.meter-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--value);
  background: linear-gradient(90deg, rgba(255, 56, 47, .12), rgba(255, 56, 47, .30));
  box-shadow: inset -2px 0 0 var(--accent);
  transform-origin: left center;
  transition: transform var(--meter-duration) var(--ease-out) calc(var(--i, 0) * 140ms);
}
.is-pending .meter-fill { transform: scaleX(0); }
.meter-text {
  position: relative; height: 100%; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.meter-text b { font-weight: 700; font-variant-numeric: tabular-nums; }
.meter-rest { color: var(--ink-3); font-weight: 500; }
.meter-label { gap: 8px; height: 40px; padding: 0 14px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.chk-step { position: relative; width: 120px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sa .chk-step .chk-tile { margin: 0; }
.chk-label { font-size: 13.5px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--ink-2); padding: 0 4px; }
.chk-rail { overflow: hidden; }
.chk-rail-fill {
  position: absolute; inset: 0; border-radius: inherit; opacity: .5;
  background: linear-gradient(90deg, rgba(255, 56, 47, .2), var(--accent));
  transform-origin: left center; transition: transform var(--meter-duration) var(--ease-out);
}
.is-pending .chk-rail-fill { transform: scaleX(0); }
.chk-tile path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease-out) calc(.3s + var(--i, 0) * .3s); }
.is-pending .chk-tile path { stroke-dashoffset: 1; }
.ctl-chips { list-style: none; margin: 0; padding: 0; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ctl-chip { gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.ctl-status { justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; padding: 11px 16px; border-radius: 14px; font-size: 14px; }
.ctl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.ctl-dot.on { background: #1FA463; }
.bubble { align-self: flex-end; width: 210px; margin-top: 24px; padding: 16px 18px; border-radius: 22px; display: flex; flex-direction: column; gap: 6px; }
.bubble .meta { font-size: 10.5px; }
.bubble p { margin: 0; font-size: 13.5px; line-height: 1.45; font-weight: 500; color: var(--ink); }
.phone-stats { padding: 12px 14px; border-radius: 14px; display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.phone-stats > .hrow { justify-content: space-between; gap: 8px; }
.phone-stats > .hrow > span { color: var(--ink-3); }
.phone-stats b { font-weight: 700; color: var(--ink); }
@media (max-width: 767px) {
  .chk-step { width: 78px; }
  .chk-label { font-size: 12px; padding: 0; }
}
@media (max-width: 479px) {
  .meter-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .meter-label { order: -1; justify-self: start; height: 32px; padding: 0 12px; font-size: 13.5px; }
  .chk-step { width: 70px; }
  .chk-label { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .step-card, .slider-status .dotb, .pos-pair { transition: none; }
  .live-dot { animation: none; }
  .tv-spinner { animation-duration: 2.4s; }
}

/* 13. Platform Showcase panels (assets/js/components/showcase.js).
   Every panel sits in the same grid cell, so the frame keeps the height of the tallest
   one and switching slides never shifts the page. Only the active panel is shown. */
.dash > .sc-panels { grid-column: 1 / -1; display: grid; min-width: 0; }
.sc-panels > .sc-panel {
  grid-area: 1 / 1; min-width: 0; display: grid; gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.sc-panels > .sc-panel.is-active { opacity: 1; visibility: visible; transition: opacity .45s var(--ease-out) .12s, visibility 0s; }
.sc-panels > .sc-panel-dash { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.sc-box { padding: 18px; border-radius: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sc-span { grid-column: 1 / -1; }
.sc-bots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; flex: 1; }
.sc-bot { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--ring); }
.sa[data-theme="dark"] .sc-bot { background: #2B2C31; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.sc-bot .small { font-size: 13px; line-height: 1.45; }
.sc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.sc-name { font-weight: 700; font-size: 16.5px; color: var(--ink); }
.sc-pill { height: 28px; padding: 0 11px; font-size: 11.5px; }
.sc-foot { justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sc-big { font-weight: 800; font-size: 34px; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.sc-big small { font-size: 15px; font-weight: 700; color: var(--ink-3); }
.sc-live { width: 8px; height: 8px; border-radius: 50%; background: #1FA463; }
.sc-checks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sc-checks li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.sc-checks li.is-done { color: var(--ink); }
.sc-tick { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1.5px dashed var(--line-2); color: #FFFFFF; }
.is-done .sc-tick { border: 0; background: #1FA463; }
.sc-avatar { --av: var(--accent); width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 800; letter-spacing: .02em; color: #FFFFFF; background: var(--av); box-shadow: inset 0 0 0 3px rgba(255,255,255,.22); }
.sc-avatar.sm { width: 38px; height: 38px; font-size: 12.5px; }
.sc-curve { width: 100%; height: 110px; display: block; }
.sc-curve-line { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.sc-curve-area { fill: var(--accent-soft); }
.sc-row { display: flex; align-items: center; gap: 12px; }
.sc-row-t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.sc-row-t b { font-size: 14.5px; color: var(--ink); }
.sc-row-t span { font-size: 12.5px; color: var(--ink-3); }
.sc-status { margin-top: 0; }
@media (max-width: 899px) {
  .sc-panels > .sc-panel-dash { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .sc-panels > .sc-panel { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sc-bots { grid-template-columns: minmax(0, 1fr); }
  .sc-bot { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; }
  .sc-bot .small { flex-basis: 100%; }
  .sc-bot .hrow { margin-top: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-panels > .sc-panel, .sc-panels > .sc-panel.is-active { transition: none; }
}

/* 14. Cookie consent banner (assets/js/components/cookie-consent.js).
   Always dark, as on the footer, so it reads as a system message on both themes. */
.cc-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 1000; width: min(440px, calc(100vw - 48px));
  opacity: 0; transform: translateY(16px);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.cc-banner.is-open { opacity: 1; transform: none; }
.cc-card {
  padding: 22px 22px 20px; border-radius: 24px; color: #E4E5E7;
  background: linear-gradient(180deg, #2A2B30 0%, #1C1D20 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.08), 0 18px 48px rgba(0,0,0,.38), 0 4px 0 #0A0A0B;
}
.cc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cc-icon { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #FF6E64; background: rgba(255,56,47,.16); }
.cc-title { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: #FFFFFF; }
.cc-text { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: #B9BCC1; }
.cc-text a { color: #FF8A82; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cc-actions { display: flex; gap: 10px; }
.cc-btn {
  flex: 1; height: 46px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.cc-btn:focus-visible { outline: 3px solid #FF6E64; outline-offset: 3px; }
.cc-btn:active { transform: translateY(1px); }
.cc-btn-primary { color: #17181A; background: linear-gradient(180deg, #FFFFFF 0%, #E2E3E5 100%); box-shadow: 0 3px 0 #8C8F95, inset 0 1px 0 #FFFFFF; }
.cc-btn-primary:hover { background: #FFFFFF; }
.cc-btn-ghost { color: #F1F1F2; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.cc-btn-ghost:hover { background: rgba(255,255,255,.11); }
@media (max-width: 575px) {
  .cc-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .cc-card { padding: 18px 18px 16px; border-radius: 20px; }
  .cc-text { font-size: 14px; margin-bottom: 14px; }
}
.foot-linkbtn { all: unset; cursor: pointer; color: #C9CBCF; font-size: 15.5px; }
.foot-linkbtn:hover { color: #FFFFFF; }
.foot-linkbtn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* 15. Example activity notifications (assets/js/components/activity-feed.js) */
.act-region { position: fixed; left: 24px; bottom: 24px; z-index: 900; width: min(360px, calc(100vw - 48px)); pointer-events: none; }
.act-region.is-muted, .cc-banner ~ .act-region { display: none; }
.act-toast {
  pointer-events: auto; position: relative; display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 40px 14px 14px; border-radius: 18px; background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ring), 0 4px 0 var(--ledge), 0 16px 34px var(--shade);
  opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.sa[data-theme="dark"] .act-toast { background: #25262A; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 4px 0 #050506, 0 16px 34px rgba(0,0,0,.45); }
.act-toast.is-in { opacity: 1; transform: none; }
.act-ico { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #FFFFFF; background: var(--act, var(--accent)); }
.act-forex { --act: #FF382F; }
.act-crypto { --act: #F7931A; }
.act-deposit { --act: #1FA463; }
.act-withdrawal { --act: #2F7DFF; }
.act-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.act-title { font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.act-title b { font-weight: 700; }
.act-detail { font-size: 13px; color: var(--ink-2); }
.act-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.act-tag { padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--bg-2); color: var(--ink-2); }
.act-close {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; background: transparent; color: var(--ink-3);
}
.act-close:hover { background: var(--bg-2); color: var(--ink); }
.act-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
@media (max-width: 575px) {
  .act-region { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .act-toast { padding: 11px 38px 11px 11px; gap: 10px; border-radius: 16px; }
  .act-ico { width: 32px; height: 32px; border-radius: 10px; }
  .act-title { font-size: 13.5px; }
  .act-detail { font-size: 12.5px; }
}
@media print { .act-region, .cc-banner { display: none; } }

/* 16. Copy Trading strategy profiles (assets/js/components/strategy-profiles.js) */
.sp-avatar { --av: var(--accent); width: 60px; height: 60px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 800; letter-spacing: .02em; color: #FFFFFF; background: var(--av); box-shadow: inset 0 0 0 3px rgba(255,255,255,.22), 0 6px 14px var(--shade); }
.sp-avatar.sm { width: 44px; height: 44px; font-size: 14px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.22); }
.sp-name { font-weight: 700; font-size: 20px; color: var(--ink); }
.sp-perf { padding: 16px; border-radius: 16px; display: flex; flex-direction: column; gap: 8px; }
.sp-curve { width: 100%; height: 130px; display: block; }
.sp-grid { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; }
.sp-line { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.sp-area { fill: var(--accent-soft); }
.sp-axis { justify-content: space-between; font-size: 11.5px; color: var(--ink-3); }
.sp-desc { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.sp-risk { display: inline-flex; gap: 3px; }
.sp-risk i { width: 6px; height: 12px; border-radius: 2px; background: var(--line-2); }
.sp-risk[data-sp-risk="1"] i:nth-child(-n+1), .sp-risk[data-sp-risk="2"] i:nth-child(-n+2),
.sp-risk[data-sp-risk="3"] i:nth-child(-n+3), .sp-risk[data-sp-risk="4"] i:nth-child(-n+4),
.sp-risk[data-sp-risk="5"] i { background: var(--accent); }
.sp-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; border: 0; border-radius: 18px;
  font: inherit; text-align: left; color: var(--ink); cursor: pointer;
  transition: transform .2s var(--ease-out), box-shadow .2s ease;
}
.sp-row:hover { transform: translateY(-2px); }
.sp-row:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sp-row[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent), 0 4px 0 var(--ledge), 0 16px 32px var(--shade); }
.sp-row-t { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.sp-row-t b { font-size: 15.5px; font-weight: 700; }
.sp-row-t span { font-size: 13px; color: var(--ink-3); }
.sp-view { height: 32px; font-size: 12px; flex: none; }
.sp-row[aria-pressed="true"] .sp-view { color: #FFFFFF; background: var(--accent); border-color: var(--accent); }
@media (max-width: 479px) {
  .sp-row { padding: 12px; gap: 10px; }
  .sp-avatar.sm { width: 38px; height: 38px; font-size: 12.5px; }
  .sp-row-t b { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-banner, .act-toast, .sp-row { transition: none; }
}

/* Contact form honeypot: hidden from people, visible to naive spam bots. */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
