:root {
  --blue: #2457ff;
  --blue-2: #3c6bff;
  --ink: #202124;
  --muted: #7c818b;
  --line: #e9ebf0;
  --soft: #f4f5f7;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(29, 42, 77, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}

body.modal-open {
  overflow: hidden;
}

.hidden-view {
  display: none !important;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  background: #fff;
}

.auth-screen {
  display: none;
}

.auth-screen.active {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.42fr .9fr;
}

.dashboard-shell {
  display: none;
}

.dashboard-shell.active {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #f1f2f8;
}

.section-pad,
.site-header,
.site-footer {
  padding-left: max(24px, calc((100vw - 1020px) / 2));
  padding-right: max(24px, calc((100vw - 1020px) / 2));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid #f0f1f4;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #173166;
  font: 800 16px "Manrope", sans-serif;
  letter-spacing: -.3px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  color: var(--blue);
}

.nav-links {
  display: flex;
  gap: 45px;
  color: #717681;
  font-size: 11px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--blue);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.primary-btn,
.ghost-btn,
.dark-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.primary-btn {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 13px 23px rgba(36, 87, 255, .28);
}

.ghost-btn {
  color: #25272b;
  background: #fff;
  border: 1px solid var(--line);
}

.dark-btn {
  width: 100%;
  color: #fff;
  background: #1f1f20;
}

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  min-height: 335px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f8f8f9;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 23px;
  padding: 0 11px;
  border: 1px solid #edf0f5;
  border-radius: 999px;
  background: #fff;
  color: #353941;
  font-size: 10px;
  font-weight: 800;
}

.eyebrow i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.hero h1,
.section-intro h2,
.faq-copy h2,
.cta-section h2 {
  font-family: "Manrope", sans-serif;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 670px;
  margin: 26px 0 10px;
  font-size: clamp(42px, 5.1vw, 64px);
  line-height: 1.17;
}

.hero h1 em,
.cta-section h2 em {
  color: var(--blue-2);
  font-style: normal;
}

.hero p,
.cta-section p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.word-icon,
.mini-icon {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  color: #fff;
  background: linear-gradient(135deg, #1c55ff, #5f81ff);
  box-shadow: 0 9px 18px rgba(36, 87, 255, .25);
}

.word-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  margin: 0 10px;
}

.pricing-band {
  padding-top: 94px;
  padding-bottom: 82px;
  background: linear-gradient(#fff 0%, #fff 74%, #f4f5f7 74%, #f4f5f7 100%);
}

.billing-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.billing-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 37px;
  padding: 4px;
  border-radius: 999px;
  background: #f3f3f4;
  color: #5e626a;
  font-size: 10px;
  font-weight: 800;
}

.billing-toggle button {
  position: relative;
  min-width: 73px;
  height: 29px;
  border: 0;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.billing-toggle button.active {
  color: #1f232b;
  background: #fff;
  box-shadow: 0 2px 8px rgba(30, 37, 58, .08);
}

.billing-toggle strong {
  position: absolute;
  left: 4px;
  top: -18px;
  min-width: 96px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 9px;
  white-space: nowrap;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.plan-card {
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.plan-card.featured {
  border: 3px solid #bdd0ff;
  box-shadow: 0 24px 45px rgba(36, 87, 255, .14);
}

.plan-card h2 {
  margin: 0 0 14px;
  font: 800 13px "Manrope", sans-serif;
}

.plan-card p {
  min-height: 33px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.price {
  display: flex;
  align-items: baseline;
  margin-bottom: 2px;
  color: #1f2023;
}

.price span,
.price strong {
  font: 800 34px "Manrope", sans-serif;
  letter-spacing: 0;
}

.price small {
  color: #5c6068;
  font-size: 12px;
  font-weight: 800;
}

.billed {
  display: block;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.plan-card .primary-btn,
.plan-card .dark-btn {
  width: 100%;
}

.compare-section,
.faq-section {
  background: #f4f5f7;
}

.compare-section {
  padding-top: 88px;
  padding-bottom: 86px;
}

.section-intro {
  margin-bottom: 32px;
}

.split-intro {
  display: grid;
  grid-template-columns: 1fr 270px;
  align-items: end;
  gap: 28px;
}

.section-intro h2,
.faq-copy h2 {
  margin: 20px 0 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
}

.split-intro p {
  margin: 0;
  color: #666b75;
  font-size: 11px;
  line-height: 1.45;
}

.split-intro a {
  display: block;
  color: #20242c;
  font-weight: 800;
}

.compare-table {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.compare-row {
  display: grid;
  grid-template-columns: 150px repeat(3, 1fr);
  min-height: 53px;
  border-bottom: 1px solid #eceef2;
}

.compare-row:last-child {
  border-bottom: 0;
}

.compare-row > div {
  display: grid;
  place-items: center;
  padding: 12px;
  color: #5f636d;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.compare-row > div:first-child {
  place-items: center start;
  background: #f0f2f5;
  color: #2c3037;
  font-weight: 800;
  text-align: left;
}

.compare-head {
  min-height: 142px;
}

.compare-plan {
  position: relative;
  margin: 12px 8px;
  border-radius: 12px;
  background: #f7f8fa;
}

.compare-plan.active {
  border: 2px solid var(--blue);
  background: #fff;
}

.compare-plan b {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: var(--blue);
  font-size: 9px;
  white-space: nowrap;
}

.mini-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  margin-bottom: 9px;
}

.compare-plan strong {
  color: #1f232b;
  font: 800 13px "Manrope", sans-serif;
}

.compare-plan small {
  color: #8a8f99;
  font-size: 9px;
}

.check-dot {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
}

.empty-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dadde3;
}

.faq-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 105px;
  padding-top: 84px;
  padding-bottom: 96px;
}

.faq-copy p {
  max-width: 300px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.support-card {
  width: 300px;
  margin-top: 35px;
  padding: 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.support-card strong {
  font: 800 12px "Manrope", sans-serif;
}

.support-card p {
  margin: 8px 0 20px;
  font-size: 11px;
}

.support-card .primary-btn {
  min-height: 34px;
  padding: 0 16px;
}

.faq-list {
  display: grid;
  gap: 22px;
}

.faq-item {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 42, 77, .05);
}

.faq-item button {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  padding: 0 19px;
  background: transparent;
  color: #23262d;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.faq-item button i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #858b96;
  font-style: normal;
}

.faq-item p {
  display: none;
  margin: -2px 19px 24px;
  color: #777d87;
  font-size: 12px;
  line-height: 1.5;
}

.faq-item.open p {
  display: block;
}

.cta-section {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
}

.cta-section h2 {
  margin: 0 0 12px;
  font-size: clamp(35px, 4.4vw, 54px);
  line-height: 1.25;
}

.cta-section .primary-btn {
  margin-top: 24px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 120px 120px;
  gap: 60px;
  padding-top: 45px;
  padding-bottom: 44px;
  border-top: 1px solid #eef0f3;
  background: #fff;
}

.site-footer p {
  max-width: 260px;
  margin: 18px 0 18px;
  color: #666c76;
  font-size: 11px;
  line-height: 1.55;
}

.site-footer small {
  color: #9ba0a9;
  font-size: 10px;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #717781;
  font-size: 11px;
}

.site-footer nav strong {
  margin-bottom: 3px;
  color: #22252b;
  font: 800 12px "Manrope", sans-serif;
}

.socials {
  display: flex;
  gap: 9px;
  margin-bottom: 18px;
}

.socials a {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
}

.ticker-note {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  color: #fff;
  background: #1f1f20;
  font-size: 9px;
  text-align: center;
}

.login-art {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 38%, rgba(78, 146, 255, .36), transparent 20%),
    radial-gradient(circle at 44% 42%, rgba(125, 209, 255, .28), transparent 18%),
    linear-gradient(135deg, #f8fbff 0%, #edf4ff 100%);
}

.login-brand {
  position: absolute;
  top: 86px;
  left: 76px;
  z-index: 2;
}

.art-stage {
  position: relative;
  width: min(700px, 100%);
  min-height: 100vh;
  margin: 0 auto;
}

.art-glow {
  position: absolute;
  left: 68px;
  top: 205px;
  width: 470px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 142, 255, .3) 0%, rgba(64, 142, 255, .14) 34%, rgba(64, 142, 255, 0) 72%);
  filter: blur(10px);
}

.art-card {
  position: absolute;
  left: 128px;
  top: 235px;
  width: 420px;
  min-height: 315px;
}

.art-card h1 {
  position: relative;
  z-index: 1;
  max-width: 280px;
  margin: 0;
  font: 800 clamp(42px, 4vw, 58px) "Manrope", sans-serif;
  line-height: 1.07;
  letter-spacing: 0;
}

.art-chip {
  position: absolute;
  left: 98px;
  top: 18px;
  width: 174px;
  height: 216px;
  display: flex;
  align-items: end;
  padding: 0 14px 14px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, #284cff 0%, #1f7bff 100%);
  font-size: 14px;
  line-height: 1.2;
  box-shadow: 0 28px 50px rgba(27, 95, 255, .28);
}

.art-url {
  position: absolute;
  right: -26px;
  top: 116px;
  color: #23252b;
  font-size: 12px;
  transform: rotate(-90deg);
  transform-origin: center;
}

.art-footer {
  position: absolute;
  left: 114px;
  top: 505px;
  width: 300px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.art-footer small {
  display: block;
  margin-top: 8px;
  color: #525a66;
  font-size: 13px;
}

.art-footer a {
  color: #111317;
  font: 800 18px "Manrope", sans-serif;
}

.art-line {
  display: block;
  width: 72px;
  height: 7px;
  background: #21242a;
}

.art-line.blue {
  width: 70px;
  background: #2b7cff;
}

.art-mark {
  position: absolute;
  color: #1b2028;
}

.art-x::before,
.art-x::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.art-x::before {
  transform: rotate(45deg);
}

.art-x::after {
  transform: rotate(-45deg);
}

.art-diamond {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  transform: rotate(45deg);
}

.art-dash {
  width: 24px;
  height: 2px;
  background: currentColor;
}

.art-wave {
  width: 76px;
  height: 12px;
  background:
    radial-gradient(circle at 8px 8px, transparent 7px, currentColor 7px, currentColor 8px, transparent 8px) 0 0 / 18px 12px repeat-x;
  opacity: .85;
}

.top-left {
  left: 102px;
  top: 216px;
}

.top-right {
  left: 407px;
  top: 248px;
}

.left-mid {
  left: 100px;
  top: 392px;
}

.mid-left {
  left: 167px;
  top: 394px;
}

.top-wave {
  left: 356px;
  top: 213px;
}

.bottom-wave {
  left: 183px;
  top: 425px;
}

.login-panel {
  display: none;
  place-items: center;
  padding: 48px;
  background: #fff;
}

.auth-panel.active {
  display: grid;
}

.login-box {
  width: min(100%, 360px);
}

.login-box h2 {
  margin: 0 0 16px;
  color: #2373ff;
  text-align: center;
  font: 800 28px "Manrope", sans-serif;
}

.login-box > p {
  margin: 0 0 24px;
  color: #727985;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
}

.social-btn,
.login-btn {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: opacity .18s ease, transform .18s ease;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #4b5563;
  background: #f3f4f6;
}

.google-mark {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: conic-gradient(from 210deg, #34a853 0 25%, #4285f4 25% 50%, #ea4335 50% 75%, #fbbc05 75% 100%);
  font-size: 10px;
  font-weight: 800;
}

.login-divider {
  position: relative;
  margin: 22px 0;
  text-align: center;
}

.login-divider::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid #dde1e7;
}

.login-divider span {
  position: relative;
  padding: 0 10px;
  color: #9aa1ac;
  background: #fff;
  font-size: 12px;
}

.login-form input {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: #1e2127;
  background: #f3f4f6;
  outline: none;
}

.login-form input::placeholder {
  color: #868d98;
}

.login-form label {
  display: block;
  margin-bottom: 12px;
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: #8d94a0;
  background: transparent;
  transform: translateY(-50%);
}

.forgot-link {
  display: block;
  margin: -3px 0 12px;
  color: #4e82ff;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
}

.login-btn {
  color: #fff;
  background: linear-gradient(90deg, #2128ff 0%, #2a4dff 100%);
  box-shadow: 0 18px 34px rgba(41, 67, 255, .2);
}

.social-btn:disabled,
.login-btn:disabled,
.solid-mini:disabled {
  cursor: wait;
  opacity: .82;
}

.social-btn.is-loading,
.login-btn.is-loading {
  position: relative;
}

.social-btn.is-loading::after,
.login-btn.is-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-top-color: #fff;
  border-radius: 50%;
  animation: button-spin .75s linear infinite;
}

.social-btn.is-loading::after {
  border-color: rgba(67, 86, 138, .28);
  border-top-color: #3851a3;
}

.signup-copy {
  display: block;
  margin-top: 18px;
  color: #7d8490;
  text-align: center;
  font-size: 12px;
}

.signup-copy a {
  color: #4e82ff;
  font-weight: 700;
}

.auth-notice {
  min-height: 18px;
  margin: 12px 0 0;
  color: #7d8490;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
}

.auth-notice.success {
  color: #1a8f5e;
}

.auth-notice.error {
  color: #d24a4a;
}

.signup-form label {
  display: block;
  margin-bottom: 12px;
}

.forgot-request-form label,
.forgot-verify-form label {
  display: block;
  margin-bottom: 12px;
}

.forgot-request-form input,
.forgot-verify-form input {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  color: #1e2127;
  background: #edf3ff;
  outline: none;
  font-size: 16px;
}

.forgot-request-form .login-btn,
.forgot-verify-form .login-btn {
  height: 62px;
  font-size: 18px;
}

.signup-box .login-btn {
  margin-top: 4px;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #d9dce7;
  background: #fbfcff;
}

.sidebar-top {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 17px;
  border-bottom: 1px solid #e2e5ee;
  background: #fff;
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #11183d;
  font: 800 26px "Manrope", sans-serif;
}

.dashboard-brand .brand-mark svg {
  width: 31px;
  height: 31px;
}

.sidebar-collapse {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid #dde1ea;
  border-radius: 50%;
  color: #1d263a;
  background: #fff;
  box-shadow: 0 3px 10px rgba(25, 38, 78, .08);
}

.sidebar-collapse svg {
  transform: rotate(180deg);
}

.dashboard-nav {
  display: grid;
  gap: 8px;
  padding: 18px 27px 0 33px;
}

.dashboard-nav-group {
  display: grid;
  gap: 8px;
}

.dashboard-nav-item {
  height: 48px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  color: #2d3548;
  background: transparent;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.dashboard-nav-item strong {
  font-weight: 500;
}

.dashboard-nav-item > i {
  display: grid;
  place-items: center;
  margin-left: auto;
  color: currentColor;
}

.dashboard-nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, #2437ff 0%, #2442ff 100%);
  box-shadow: 0 11px 21px rgba(36, 58, 255, .24);
}

.dashboard-nav-item.active strong {
  font-weight: 800;
}

.dashboard-nav-group.has-submenu .dashboard-nav-item.active > i svg {
  transform: rotate(90deg);
}

.dashboard-subnav {
  display: none;
  gap: 12px;
  padding: 2px 0 6px 30px;
}

.dashboard-nav-group.has-submenu.open .dashboard-subnav {
  display: grid;
}

.dashboard-subnav button {
  border: 0;
  padding: 0;
  color: #7c8497;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
}

.dashboard-subnav button.active {
  color: #008cff;
  font-weight: 800;
}

.dashboard-usercard {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 24px;
}

.dashboard-usercard-wrap {
  position: relative;
  margin-top: auto;
}

.avatar {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2457ff;
  background:
    radial-gradient(circle at 50% 38%, #fee0c5 0 17%, transparent 18%),
    radial-gradient(circle at 50% 78%, #e7f3ff 0 39%, transparent 40%),
    linear-gradient(135deg, #eef4ff, #cbdff5);
  box-shadow: inset 0 0 0 1px rgba(32, 48, 77, .05);
}

.avatar svg {
  display: none;
}

.dashboard-usercard small {
  display: block;
  color: #9aa4b6;
  font-size: 14px;
  font-weight: 700;
}

.dashboard-usercard strong {
  display: block;
  margin-top: 2px;
  color: #080a12;
  font-size: 14px;
  font-weight: 800;
}

.profile-popover {
  position: absolute;
  left: 18px;
  bottom: calc(100% + 4px);
  width: 276px;
  padding: 20px 16px 14px;
  border: 1px solid #d8dfef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(32, 44, 85, .12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

.profile-popover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 8px;
}

.dashboard-usercard-wrap:hover .profile-popover,
.dashboard-usercard-wrap:focus-within .profile-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.profile-popover-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e8ef;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #b9d7ff, #74a6ff);
}

.profile-popover-head small {
  display: block;
  color: #8a93a6;
  font-size: 13px;
}

.profile-popover-head strong {
  display: block;
  margin-top: 2px;
  color: #2a3c66;
  font: 800 15px "Manrope", sans-serif;
}

.profile-status {
  display: block;
  width: 18px;
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: #d8fff2;
}

.profile-popover-actions {
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.profile-popover-actions button {
  border: 0;
  padding: 0;
  color: #445372;
  background: transparent;
  font-size: 17px;
  text-align: left;
}

.dashboard-main {
  min-width: 0;
}

.dashboard-topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border-bottom: 1px solid #d9dce7;
  background: #fff;
}

.dashboard-top-icons {
  display: flex;
  gap: 24px;
}

.dashboard-top-icons button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  color: #6b7281;
  background: transparent;
}

.dashboard-content {
  padding: 56px 15px 42px 17px;
}

.wallet-page {
  min-height: calc(100vh - 68px);
  padding: 1px 0 48px;
  background: #f1f2f8;
}

.wallet-wrap {
  width: 100%;
}

.wallet-wrap h1,
.wallet-wrap h2 {
  margin: 0;
  color: #26334f;
  font-family: "Manrope", sans-serif;
  letter-spacing: 0;
}

.wallet-wrap h1 {
  margin-bottom: 39px;
  font-size: 25px;
  line-height: 1;
}

.wallet-balance-card {
  width: min(468px, 100%);
  min-height: 216px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  border-radius: 16px;
  padding: 28px 27px;
  color: #fff;
  background: linear-gradient(105deg, #5141ed 0%, #286ef1 52%, #079eee 100%);
}

.wallet-balance-card span {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.wallet-balance-card strong,
.wallet-balance-card b {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  line-height: 1;
}

.wallet-balance-card strong {
  font-size: 38px;
}

.wallet-balance-card b {
  font-size: 23px;
}

.wallet-wrap h2 {
  margin: 38px 0 36px;
  font-size: 24px;
  line-height: 1;
}

.wallet-table {
  width: 100%;
  overflow-x: auto;
}

.wallet-table-row {
  min-width: 920px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 0 20px;
  color: #596881;
  font-weight: 700;
}

.wallet-table-row + .wallet-table-row {
  border-bottom: 1px solid #e4e9f3;
  background: rgba(255, 255, 255, .58);
}

.wallet-table-head {
  border: 1px solid #dce9f7;
  border-radius: 17px;
  color: #5879bb;
  background: #fff;
}

.dashboard-headline {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 18px;
  padding: 0 0 28px;
}

.dashboard-headline h1,
.dashboard-headline h2,
.dashboard-section h2 {
  margin: 0;
  color: #283466;
  font-family: "Manrope", sans-serif;
  letter-spacing: 0;
}

.dashboard-headline h1 {
  font-size: 27px;
  line-height: 1;
}

.deploy-head {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.deploy-head h2 {
  font-size: 27px;
  line-height: 1;
}

.deploy-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6d7482;
  font-size: 15px;
  font-weight: 700;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

.summary-card {
  height: 250px;
  border: 1px solid #d7dfee;
  border-radius: 24px;
  background: #fff;
}

.pnl-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #4d42ef 0%, #1199f4 100%);
}

.pnl-card small,
.pnl-card p,
.pnl-card h3 {
  margin: 0;
}

.pnl-card > small {
  display: block;
  padding: 30px 26px 5px;
  font-size: 14px;
  font-weight: 700;
}

.pnl-card h3 {
  padding: 0 26px;
  font: 800 34px "Manrope", sans-serif;
}

.pnl-card p {
  padding: 9px 26px 0;
  color: rgba(255, 255, 255, .8);
  font-size: 15px;
}

.pnl-card footer {
  height: 79px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 23px;
  background: rgba(255, 255, 255, .18);
}

.pnl-card footer strong {
  font: 800 20px "Manrope", sans-serif;
}

.badge-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
}

.broker-card,
.deployed-card {
  padding: 20px 19px 17px;
}

.card-label,
.broker-stats small {
  color: #7b92cf;
  font-size: 14px;
  font-weight: 700;
}

.broker-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 18px;
  color: #263150;
}

.broker-row::before {
  content: "";
  width: 18px;
  height: 12px;
  display: inline-block;
  margin-right: 8px;
  background: #ff512d;
  clip-path: polygon(0 50%, 62% 0, 100% 22%, 66% 50%, 100% 78%, 62% 100%);
}

.broker-row strong {
  color: #0b0b10;
  font-size: 18px;
}

.broker-row span {
  color: #718ac0;
  font-size: 18px;
}

.broker-row i {
  margin-left: auto;
  color: #8e96a5;
}

.broker-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 0 17px;
  border-top: 1px solid #e1e4ee;
  border-bottom: 1px solid #e1e4ee;
}

.broker-stats div:last-child {
  text-align: right;
}

.broker-stats strong {
  display: block;
  margin-top: 4px;
  color: #1f232d;
  font: 800 20px "Manrope", sans-serif;
}

.broker-switches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 18px;
}

.broker-switches div {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 8px;
  color: #6a7db0;
  font-size: 14px;
  font-weight: 700;
}

.broker-switches div:last-child {
  justify-items: end;
}

.broker-switches i {
  position: relative;
  width: 48px;
  height: 27px;
  border-radius: 999px;
  background: #d7dbe4;
  transition: background .18s ease;
}

.broker-switches i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(31, 43, 78, .16);
  transition: transform .18s ease;
}

.broker-switches i.on {
  background: #4a79ff;
}

.broker-switches i.on::after {
  transform: translateX(21px);
}

.deployed-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #36456d;
  background: #eef2fb;
}

.deployed-card h3 {
  margin: 0;
  color: #272a34;
  font: 800 20px "Manrope", sans-serif;
}

.deployed-card p {
  margin: 12px 0 18px;
  color: #8891a1;
  font-size: 15px;
}

.solid-mini,
.join-btn,
.support-btn {
  height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.solid-mini {
  color: #fff;
  background: linear-gradient(90deg, #232cff 0%, #2a43ff 100%);
}

.solid-mini.wide {
  width: 280px;
  max-width: 100%;
}

.dashboard-section {
  margin-top: 30px;
}

.dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.dashboard-section-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-dot {
  width: 10px;
  height: 10px;
  border: 1px solid #c9ccda;
  border-radius: 50%;
}

.template-pager {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #25305e;
  font-size: 20px;
}

.template-pager button {
  width: 29px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 0;
  color: #1d263f;
  background: #fff;
  cursor: pointer;
}

.template-pager button:first-child {
  border-radius: 20px 0 0 20px;
  color: #c2c6d0;
  margin-right: -18px;
}

.template-pager button:first-child svg {
  transform: rotate(180deg);
}

.template-pager button:nth-of-type(2) {
  border-radius: 0 20px 20px 0;
  margin-left: -18px;
}

.template-pager strong {
  min-width: 36px;
  height: 39px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #11131a;
  font-size: 15px;
}

.template-pager a {
  margin-left: 0;
  color: #27315f;
  font-size: 20px;
  font-weight: 700;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.template-card,
.join-card {
  border: 1px solid #d7dfee;
  border-radius: 24px;
  background: #fff;
}

.template-card {
  min-height: 203px;
  padding: 20px 18px 17px;
}

.template-card h3 {
  margin: 0 0 10px;
  color: #30426f;
  font: 800 16px "Manrope", sans-serif;
}

.template-card p {
  margin: 0 0 5px;
  color: #6980c7;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-card a {
  color: #2448ff;
  font-size: 14px;
  font-weight: 800;
}

.template-card .solid-mini {
  display: block;
  margin: 33px auto 0;
}

.strategies-page {
  padding: 78px 46px 46px;
}

.strategies-tabs {
  display: flex;
  align-items: flex-end;
  gap: 34px;
  border-bottom: 1px solid #dde2ee;
}

.strategies-tabs button {
  min-height: 40px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 18px 13px;
  color: #718ac0;
  background: transparent;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.strategies-tabs button.active {
  color: #1744ff;
  border-bottom-color: #1744ff;
}

.strategies-page-head {
  margin-top: 33px;
}

.strategies-page .dashboard-section-head {
  margin-bottom: 24px;
}

.strategies-page .dashboard-section-head h2 {
  font-size: 27px;
}

.strategies-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.filter-btn {
  min-width: 80px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d8dfec;
  border-radius: 8px;
  color: #2e3548;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.strategies-template-grid {
  gap: 18px;
}

.strategies-template-grid .template-card {
  min-height: 205px;
}

.strategy-owned-card p {
  -webkit-line-clamp: 1;
}

.strategy-status-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin-top: 7px;
  border-radius: 999px;
  padding: 0 10px;
  color: #4662b4;
  background: #edf3ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.strategies-empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 18px;
  border: 1px dashed #d6deee;
  border-radius: 18px;
  color: #657596;
  background: #fbfcff;
  text-align: center;
}

.strategies-empty strong {
  color: #2d3762;
  font: 800 18px "Manrope", sans-serif;
}

.my-strategies-toolbar,
.strategy-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.my-strategies-toolbar {
  margin-top: 29px;
}

.strategy-search {
  width: min(492px, 100%);
  height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d8dfec;
  border-radius: 8px;
  padding: 0 14px;
  color: #8392ad;
  background: #fff;
}

.strategy-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #334163;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
}

.strategy-search input::placeholder {
  color: #7d96ca;
}

.strategy-mode-tabs {
  display: flex;
  align-items: center;
  gap: 14px;
}

.strategy-mode-tabs button {
  min-height: 51px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #25304f;
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.strategy-mode-tabs button.active {
  min-width: 113px;
  color: #fff;
  background: #2440ff;
  box-shadow: 0 12px 22px rgba(36, 64, 255, .18);
}

.strategy-count-row {
  margin-top: 30px;
  color: #6381bf;
  font-size: 13px;
  font-weight: 700;
}

.strategy-count-row.bottom {
  margin-top: 40px;
}

.my-strategies-grid {
  max-width: 884px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.my-strategy-card {
  position: relative;
  min-height: 384px;
  border: 1px solid #d7dfee;
  border-radius: 14px;
  padding: 24px 22px 21px;
  background: #fff;
}

.my-strategy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.my-strategy-head h3 {
  margin: 0;
  color: #2b3556;
  font: 800 18px "Manrope", sans-serif;
}

.my-strategy-head p {
  margin: 5px 0 0;
  color: #5f7fbd;
  font-size: 13px;
  font-weight: 700;
}

.my-strategy-head p span {
  color: #537bd4;
}

.strategy-more-btn {
  width: 28px;
  height: 28px;
  border: 0;
  color: #97a4ba;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.strategy-actions-menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

.strategy-actions-menu {
  position: absolute;
  top: 34px;
  right: 0;
  z-index: 5;
  width: 176px;
  display: grid;
  gap: 4px;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  padding: 11px 0;
  background: #fff;
  box-shadow: 0 14px 30px rgba(29, 43, 82, 0.14);
}

.strategy-actions-menu button {
  height: 36px;
  border: 0;
  padding: 0 18px;
  color: #283252;
  background: transparent;
  font: 500 13px "Manrope", sans-serif;
  text-align: left;
  cursor: pointer;
}

.strategy-actions-menu button:hover {
  background: #f5f7fb;
}

.strategy-actions-menu button.danger {
  color: #f00000;
}

.strategy-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 34px;
  margin-top: 25px;
}

.strategy-meta-grid strong,
.strategy-meta-grid span {
  display: block;
}

.strategy-meta-grid strong {
  color: #5878b7;
  font-size: 14px;
  font-weight: 700;
}

.strategy-meta-grid span {
  margin-top: 4px;
  color: #6c83ba;
  font-size: 13px;
  font-weight: 800;
}

.strategy-leg-list {
  display: grid;
  gap: 8px;
  margin-top: 19px;
}

.strategy-leg-row {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 7px;
  padding: 0 13px;
  color: #5f7fbd;
  background: #f3f6f9;
}

.strategy-leg-row strong {
  font-size: 13px;
  font-weight: 800;
}

.strategy-leg-row span {
  flex: 0 0 auto;
  color: #88a0cd;
  font-size: 11px;
  font-weight: 800;
}

.strategy-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 50px;
  gap: 8px;
  margin-top: 17px;
}

.strategy-secondary-btn,
.strategy-primary-btn,
.strategy-undeploy-btn,
.strategy-tv-btn {
  height: 51px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.strategy-secondary-btn,
.strategy-tv-btn {
  border: 1px solid #dce3ee;
  color: #26304f;
  background: #fff;
}

.strategy-primary-btn {
  border: 0;
  color: #fff;
  background: #2440ff;
}

.strategy-undeploy-btn {
  border: 0;
  color: #fff;
  background: #ff4d4f;
}

.strategy-tv-btn {
  display: grid;
  place-items: center;
  font-weight: 900;
}

.strategy-tv-btn span {
  margin-left: -4px;
  font-size: 12px;
}

.backtest-page {
  padding: 38px 34px;
}

.backtest-panel {
  min-height: 650px;
  padding: 28px 30px 36px;
  background: #fff;
}

.backtest-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.backtest-head h2,
.simulator-panel h2 {
  margin: 0;
  color: #293454;
  font: 800 20px "Manrope", sans-serif;
}

.backtest-head p,
.simulator-panel p {
  margin: 5px 0 0;
  color: #97a0b4;
  font-size: 15px;
  font-weight: 600;
}

.backtest-head > span {
  color: #8d95a6;
}

.backtest-controls {
  display: grid;
  grid-template-columns: minmax(320px, 444px) 1fr;
  align-items: start;
  gap: 26px;
  margin-top: 28px;
}

.backtest-select-wrap {
  position: relative;
}

.backtest-select-btn {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 8px;
  padding: 0 17px;
  color: #25304f;
  background: #f4f7fa;
  font-size: 15px;
  cursor: pointer;
}

.backtest-select-menu {
  position: absolute;
  z-index: 10;
  top: 56px;
  left: 0;
  right: 0;
  display: grid;
  gap: 12px;
  border: 1px solid #dde3ee;
  border-radius: 8px;
  padding: 15px 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(28, 42, 82, .12);
}

.backtest-select-menu label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2b3556;
  font-weight: 600;
}

.backtest-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.backtest-selected-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  padding: 5px 8px;
  color: #3970d4;
  background: #e9f2ff;
  font-size: 11px;
  font-weight: 800;
}

.backtest-selected-chips button {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.backtest-range-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.backtest-range-row button,
.backtest-download-btn,
.backtest-run-btn {
  height: 49px;
  border: 1px solid #dfe5ef;
  border-radius: 6px;
  padding: 0 14px;
  color: #26304f;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.backtest-range-row button.active {
  border-color: #83b9ff;
  color: #1264ff;
  background: #f1f7ff;
}

.backtest-custom-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.backtest-custom-row label {
  display: grid;
  gap: 6px;
  color: #68748b;
  font-size: 12px;
  font-weight: 800;
}

.backtest-custom-row input {
  height: 40px;
  border: 1px solid #dfe5ef;
  border-radius: 6px;
  padding: 0 10px;
}

.backtest-credit-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  margin-top: 18px;
  padding: 0 18px;
}

.backtest-credit-row strong {
  color: #293454;
}

.backtest-notice {
  color: #ff4d4f;
  font-size: 13px;
  font-weight: 700;
}

.backtest-run-btn {
  margin-left: auto;
  border: 0;
  color: #fff;
  background: #2440ff;
}

.backtest-run-btn:disabled {
  opacity: .65;
  cursor: wait;
}

.backtest-empty {
  min-height: 365px;
  display: grid;
  place-items: center;
  color: #5d7fbd;
  font-weight: 600;
}

.backtest-download-btn {
  height: 39px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  border-color: #48a0ff;
  color: #2480f5;
  background: #fff;
}

.backtest-download-btn + .backtest-run-btn {
  margin-left: 0;
}

.backtest-pnl {
  display: grid;
  gap: 5px;
  margin: 8px 0 14px;
  color: #2b3556;
}

.profit {
  color: #22b96d;
}

.loss {
  color: #ff4d4f;
}

.backtest-equity-chart {
  background: #eef8ff;
  padding: 12px;
}

.backtest-equity-chart svg {
  width: 100%;
  height: 220px;
}

.backtest-equity-chart path {
  fill: none;
  stroke: #1593ff;
  stroke-width: 3;
}

.backtest-chart-axis {
  display: flex;
  justify-content: space-between;
  color: #8b95a8;
  font-size: 11px;
}

.backtest-results h3 {
  margin: 28px 0 14px;
  color: #111827;
  font-size: 16px;
}

.backtest-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.backtest-summary-grid article {
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  padding: 16px;
}

.backtest-summary-grid div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #7a8499;
  font-size: 12px;
  font-weight: 800;
}

.backtest-summary-grid div strong {
  color: #7c8497;
  font-size: 26px;
}

.backtest-summary-grid p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 0;
  font-size: 11px;
  font-weight: 800;
}

.drawdown-badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 3px solid #ff6b6b;
  border-radius: 50%;
  color: #ff4d4f;
  font-size: 16px;
}

.backtest-bars {
  height: 190px;
  display: flex;
  align-items: end;
  gap: 14px;
  border-bottom: 1px solid #e6ebf3;
  padding: 0 10px 18px;
}

.backtest-bar-item {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #7f8899;
  font-size: 11px;
  font-weight: 800;
}

.backtest-bar-item span {
  width: 22px;
  border-radius: 3px 3px 0 0;
}

.backtest-bar-item span.profit {
  background: #22c76f;
}

.backtest-bar-item span.loss {
  background: #ff4848;
}

.backtest-calendar-row {
  display: flex;
  gap: 22px;
}

.backtest-month {
  width: 118px;
  border: 1px solid #e6ebf3;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.backtest-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.backtest-month-grid span {
  aspect-ratio: 1;
  border-radius: 2px;
  background: #f2f4f7;
}

.backtest-month-grid span.profit {
  background: #20c76f;
}

.backtest-month-grid span.loss {
  background: #ff4848;
}

.backtest-month small,
.backtest-month strong {
  display: block;
  margin-top: 10px;
  font-size: 11px;
}

.backtest-transactions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 35px;
}

.backtest-transactions-head h3 {
  margin: 0;
}

.backtest-transactions-head button {
  height: 34px;
  border: 0;
  border-radius: 5px;
  padding: 0 12px;
  color: #7d8798;
  background: #f3f5f8;
  font-size: 11px;
  font-weight: 800;
}

.backtest-transaction-list {
  display: grid;
  gap: 13px;
  margin-top: 14px;
}

.backtest-transaction-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  padding: 0 18px;
  color: #7d8798;
  font-size: 13px;
}

.backtest-transaction-row b {
  display: inline-block;
  border-radius: 999px;
  margin-left: 8px;
  padding: 5px 10px;
  color: #fff;
}

.backtest-transaction-row .profit b {
  background: #22b96d;
}

.backtest-transaction-row .loss b {
  background: #ff4d4f;
}

.simulator-panel {
  min-height: 360px;
}

.simulator-page {
  margin: -56px -15px -42px -17px;
  padding: 52px 17px 48px;
}

.simulator-toolbar {
  position: relative;
  min-height: 61px;
  display: flex;
  align-items: start;
  gap: 6px;
  overflow: hidden;
  border: 1px solid #d9e1ee;
  border-radius: 9px 9px 0 0;
  padding: 8px 8px 16px;
  background: #fff;
}

.simulator-toolbar button,
.simulator-toolbar select,
.sim-date-control,
.option-chain-head label {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  padding: 0 9px;
  color: #53627b;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.simulator-toolbar select,
.sim-date-control,
.option-chain-head label {
  background: #f5f8fc;
  color: #111827;
}

.simulator-toolbar button {
  cursor: pointer;
}

.simulator-toolbar button.active,
.sim-template-btn {
  color: #155dfb !important;
  background: #eaf1ff !important;
}

.sim-template-btn {
  margin-left: auto;
  border: 1px solid #2563ff !important;
  font-size: 15px !important;
}

.sim-icon-btn {
  width: 32px;
  padding: 0 !important;
  border: 1px solid #dde5f1 !important;
  background: #f8fbff !important;
}

.sim-date-control input,
.option-chain-head input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sim-scrollbar {
  position: absolute;
  left: 4px;
  right: 86px;
  bottom: 4px;
  height: 8px;
  border-radius: 999px;
  background: #eef1f6;
}

.sim-scrollbar i {
  display: block;
  height: 6px;
  margin: 1px 0 0;
  border-radius: inherit;
  background: #c4c6ca;
}

.simulator-grid {
  display: grid;
  grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.option-chain-card,
.rolling-card {
  overflow: hidden;
  border: 1px solid #d9e1ee;
  border-radius: 14px;
  background: #fff;
}

.option-chain-head {
  height: 65px;
  display: grid;
  grid-template-columns: 1fr 166px 52px 34px;
  align-items: center;
  gap: 9px;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid #dbe3ef;
}

.option-chain-head h2 {
  margin: 0;
  color: #111;
  font: 800 20px "Manrope", sans-serif;
}

.option-chain-head label {
  border: 1px solid #dfe7f2;
}

.option-chain-head b {
  display: grid;
  place-items: center;
  height: 32px;
  border-radius: 7px;
  color: #fff;
  background: #245ee8;
}

.option-chain-head button {
  border: 0;
  color: #52617a;
  background: transparent;
}

.expiry-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 14px 13px;
  border-bottom: 1px solid #dfe5ed;
}

.expiry-tabs button {
  height: 32px;
  border: 0;
  border-radius: 7px;
  color: #61708b;
  background: transparent;
  font-weight: 900;
}

.expiry-tabs button.active {
  color: #fff;
  background: #2563eb;
}

.option-chain-meta {
  height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dfe5ed;
  padding: 0 14px;
  color: #516078;
  font-size: 14px;
}

.option-chain-meta b {
  color: #111827;
}

.option-chain-table {
  height: 548px;
  overflow: auto;
  background: linear-gradient(90deg, rgba(28, 144, 72, .04), transparent 35%, transparent 65%, rgba(255, 36, 74, .04));
}

.option-row {
  min-width: 420px;
  height: 36px;
  display: grid;
  grid-template-columns: 1.45fr .65fr 1fr .65fr 1.45fr;
  align-items: center;
  border-bottom: 1px solid #edf1f6;
  padding: 0 10px;
  color: #53647d;
  font-family: "DM Sans", sans-serif;
  font-weight: 800;
}

.option-head {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #63708a;
  background: #f8fafc;
}

.option-row strong {
  color: #111;
  text-align: center;
}

.option-row.atm {
  background: rgba(37, 99, 235, .07);
}

.call-actions,
.put-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.put-actions {
  justify-content: flex-end;
}

.call-actions b {
  color: #00a64f;
}

.put-actions b {
  color: #f20d3e;
}

.call-actions i,
.put-actions i,
.call-actions em,
.put-actions em {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.call-actions i,
.put-actions i {
  color: #039c4d;
  background: #cbf2da;
}

.call-actions em,
.put-actions em {
  color: #e90035;
  background: #ffd1dc;
}

.rolling-tabs {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #dbe3ef;
  padding: 0 18px;
}

.rolling-tabs button {
  height: 36px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  color: #63718a;
  background: transparent;
  font-size: 16px;
  font-weight: 900;
}

.rolling-tabs button.active {
  color: #fff;
  background: #2f61e8;
}

.sim-panel-trash {
  width: 36px;
  margin-left: auto;
  padding: 0 !important;
  color: #52617a !important;
  background: transparent !important;
}

.payoff-panel-content,
.positions-panel-content,
.vwap-panel-content {
  padding: 20px 18px;
}

.payoff-topline {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-height: 20px;
  margin-bottom: 18px;
  color: #52617a;
  font-size: 13px;
  font-weight: 800;
}

.payoff-topline span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.payoff-topline i,
.sim-chart-legend i.orange {
  width: 16px;
  height: 0;
  border-top: 2px solid #2ecf8d;
}

.payoff-topline i.blue,
.sim-chart-legend i.orange {
  border-top-color: #ff7a1a;
}

.payoff-topline button,
.payoff-zoom button,
.positions-actions button,
.active-position-strip button {
  border: 1px solid #dce4f1;
  border-radius: 7px;
  color: #172033;
  background: #f7f9fc;
  font-weight: 800;
}

.payoff-topline button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
}

.payoff-toggle {
  position: relative;
  width: 42px !important;
  border-radius: 999px !important;
  background: #2861df !important;
}

.payoff-toggle::after {
  content: "";
  position: absolute;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef3ff;
}

.payoff-stats {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 18px;
}

.payoff-stats div,
.greek-grid div {
  min-height: 54px;
  border-radius: 8px;
  padding: 11px 13px;
  background: #fbfcfe;
}

.payoff-stats span,
.greek-grid span {
  display: block;
  color: #60718d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.payoff-stats strong,
.greek-grid strong {
  display: block;
  margin-top: 4px;
  color: #111;
  font: 900 15px "Manrope", sans-serif;
}

.success {
  color: #00a64f !important;
}

.danger {
  color: #ff0b42 !important;
}

.payoff-chart-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid #dce4f1;
  border-radius: 12px;
  padding: 14px 16px 4px;
}

.payoff-chart-svg,
.vwap-chart-svg {
  width: 100%;
  min-width: 760px;
  display: block;
}

.payoff-fill {
  fill: rgba(47, 207, 141, .1);
  stroke: none;
}

.payoff-expiry-line {
  fill: none;
  stroke: #2ecf8d;
  stroke-width: 2.2;
}

.payoff-mtm-line {
  fill: none;
  stroke: #4d87ff;
  stroke-width: 2;
}

.payoff-current-line {
  stroke: #2ecf8d;
  stroke-width: 1.4;
}

.payoff-axis-label {
  fill: #7b879b;
  font-size: 12px;
  font-weight: 800;
}

.current-price-pill {
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #dce4f1;
  border-radius: 7px;
  color: #52617a;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.current-price-pill b {
  color: #111;
}

.payoff-zoom {
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.payoff-zoom button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 5px rgba(24, 38, 72, .08);
}

.active-position-strip {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid #dce4f1;
  border-radius: 9px;
}

.active-position-strip header {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dce4f1;
  padding: 0 15px;
  color: #52617a;
  font-weight: 900;
}

.active-position-strip header strong {
  color: #00a64f;
}

.active-position-strip > div {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 15px;
  color: #52617a;
}

.active-position-strip button {
  width: 24px;
  height: 24px;
}

.entry-copy {
  margin-left: auto;
  text-align: right;
  line-height: 1.2;
}

.positions-table {
  overflow-x: auto;
  border: 1px solid #dce4f1;
  border-radius: 8px;
}

.positions-row {
  min-width: 850px;
  min-height: 46px;
  display: grid;
  grid-template-columns: .8fr .55fr 1.25fr 1.25fr .8fr .8fr 1fr 1.1fr 1fr 1fr .7fr;
  align-items: center;
  border-bottom: 1px solid #dce4f1;
  padding: 0 12px;
  color: #111827;
  font-weight: 800;
}

.positions-head,
.positions-total {
  color: #60718d;
  background: #f4f7fb;
}

.positions-total {
  border-bottom: 0;
}

.open-pill,
.buy-pill,
.sq-off-pill {
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  padding: 4px 7px;
  color: #00a64f;
  background: #d9f6e6;
  font-size: 11px;
  font-weight: 900;
}

.buy-pill {
  width: 23px;
  height: 22px;
  padding: 0;
}

.sq-off-pill {
  color: #ff0b42;
  background: #ffdce4;
  line-height: 1;
}

.greek-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-top: 16px;
}

.greek-grid span {
  text-transform: none;
  font-size: 14px;
}

.greek-grid strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

.positions-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 15px;
}

.positions-actions button {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
}

.positions-actions button.primary {
  color: #155dfb;
  border-color: #155dfb;
  background: #fff;
}

.vwap-headline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.strike-select {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dce4f1;
  border-radius: 8px;
  padding: 0 14px;
  color: #52617a;
  font-weight: 800;
}

.strike-select strong {
  color: #111;
  font-size: 18px;
}

.strike-select b {
  border-radius: 5px;
  padding: 5px 6px;
  color: #2563eb;
  background: #eaf1ff;
  font-size: 11px;
}

.vwap-headline h2 {
  margin: 0;
  color: #111;
  font: 900 25px "Manrope", sans-serif;
}

.vwap-headline h2 span {
  color: #ff0b42;
  font-size: 13px;
}

.vwap-toggles {
  display: flex;
  gap: 8px;
}

.vwap-toggles button {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #dce4f1;
  border-radius: 7px;
  padding: 0 12px;
  color: #52617a;
  background: #fff;
  font-weight: 800;
}

.vwap-toggles button.active {
  color: #155dfb;
  background: #f4f8ff;
  border-color: #bdd1ff;
}

.vwap-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid #e8eef6;
  margin-top: 14px;
  padding-bottom: 13px;
  color: #52617a;
  font-size: 12px;
  font-weight: 800;
}

.vwap-metrics span {
  border-right: 1px solid #dce4f1;
  padding-right: 12px;
}

.vwap-metrics b {
  color: #111;
}

.vwap-metrics b.red {
  color: #ff0b42;
}

.vwap-chart-wrap {
  overflow-x: auto;
}

.vwap-straddle-line {
  fill: none;
  stroke: #2f7cff;
  stroke-width: 3;
}

.vwap-average-line {
  fill: none;
  stroke: #ff7a1a;
  stroke-width: 2;
}

.vwap-crosshair {
  stroke: #c4cedd;
  stroke-width: 1;
  stroke-dasharray: 5 5;
}

.vwap-tooltip {
  display: grid;
  gap: 8px;
  border: 1px solid #dce4f1;
  border-radius: 9px;
  padding: 12px 14px;
  color: #52617a;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 40, 73, .12);
  font: 800 13px "DM Sans", sans-serif;
}

.vwap-tooltip strong {
  color: #111;
  font-size: 15px;
}

.vwap-tooltip span {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.vwap-tooltip b {
  color: #111;
}

.vwap-tooltip .blue {
  color: #155dfb;
}

.vwap-tooltip .red {
  color: #ff0b42;
}

.rolling-content {
  padding: 18px 18px 17px;
}

.rolling-title-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.rolling-title-row small,
.atm-shifts h3 {
  color: #60718d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rolling-title-row h2 {
  margin: 4px 0 0;
  color: #111;
  font: 900 24px "Manrope", sans-serif;
}

.rolling-title-row h2 span,
.rolling-stats .danger {
  color: #ff0b42;
}

.rolling-title-row h2 span {
  font-size: 13px;
}

.rolling-split {
  align-self: center;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #dce4f1;
  border-radius: 8px;
}

.rolling-split button {
  height: 26px;
  border: 0;
  padding: 0 12px;
  color: #5a6780;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.rolling-split button.active {
  color: #fff;
  background: #2861df;
}

.rolling-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.rolling-stats div {
  min-height: 78px;
  border-radius: 8px;
  padding: 13px 14px;
  background: #fbfcfe;
}

.rolling-stats span,
.rolling-stats small {
  display: block;
  color: #61718c;
  font-size: 12px;
  font-weight: 700;
}

.rolling-stats strong {
  display: block;
  margin: 5px 0 4px;
  color: #111;
  font: 900 18px "Manrope", sans-serif;
}

.sim-chart {
  margin-top: 12px;
  border-top: 1px solid #eef2f7;
  padding-top: 4px;
}

.sim-chart-svg {
  width: 100%;
  height: 310px;
  display: block;
}

.split-chart-svg {
  width: 100%;
  height: 330px;
  display: block;
}

.sim-grid line {
  stroke: #edf2f8;
  stroke-dasharray: 4 4;
}

.sim-axis text {
  fill: #8291a8;
  font-size: 12px;
  font-weight: 700;
}

.sim-area {
  fill: rgba(47, 124, 255, .05);
  stroke: none;
}

.sim-straddle-line {
  fill: none;
  stroke: #2f7cff;
  stroke-width: 3;
}

.sim-spot-line {
  fill: none;
  stroke: #9aabc4;
  stroke-width: 1.2;
  stroke-dasharray: 5 5;
}

.split-ce-line,
.split-pe-line {
  fill: none;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.split-ce-line {
  stroke: #19c766;
}

.split-pe-line {
  stroke: #ff4242;
}

.sim-chart-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  color: #52617a;
  font-size: 12px;
}

.sim-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sim-chart-legend i.line,
.sim-chart-legend i.dash {
  width: 14px;
  height: 0;
  border-top: 2px solid #2f7cff;
}

.sim-chart-legend i.dash {
  border-top-color: #9aabc4;
  border-top-style: dashed;
}

.sim-chart-legend i.bars {
  width: 12px;
  height: 12px;
  border-left: 4px solid #7de0ac;
  border-right: 4px solid #ffb1b8;
}

.sim-chart-legend i.ce,
.sim-chart-legend i.pe {
  width: 14px;
  height: 0;
  border-top: 2px solid #2463ff;
}

.sim-chart-legend i.pe {
  border-top-color: #ff0b42;
}

.sim-chart-legend small {
  color: #a4afbf;
}

.atm-shifts {
  margin-top: 13px;
  border-top: 1px solid #e9eef6;
  padding-top: 12px;
}

.atm-shifts h3 {
  margin: 0 0 10px;
}

.atm-shifts div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.atm-shifts span {
  border-radius: 5px;
  padding: 4px 9px;
  color: #52617a;
  background: #f5f7fb;
  font-size: 12px;
  font-weight: 800;
}

.atm-shifts b.up {
  color: #00a953;
}

.atm-shifts b.down {
  color: #f20d3e;
}

.sim-loading,
.sim-chart-loading,
.simulator-error {
  padding: 24px;
  color: #63718a;
  font-weight: 800;
}

.sim-chart-loading {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.simulator-error {
  margin-top: 12px;
  border: 1px solid #ffd2db;
  border-radius: 10px;
  color: #cf123d;
  background: #fff5f7;
}

.reports-page {
  padding: 54px 34px;
}

.reports-panel {
  min-height: 540px;
  border: 1px solid #dce3ee;
  border-radius: 16px;
  padding: 28px 24px 36px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(31, 43, 78, .04);
}

.reports-tabs {
  display: flex;
  gap: 34px;
  border-bottom: 1px solid #dbe3f0;
}

.reports-tabs button {
  height: 38px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0;
  color: #66748c;
  background: transparent;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.reports-tabs button.active {
  color: #161d2f;
  border-bottom-color: #008cff;
}

.reports-filter-bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 8px;
  margin-top: 18px;
  padding: 0 14px;
  background: #f7f8fb;
}

.reports-filter-bar label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #63728c;
  font-weight: 800;
}

.reports-filter-bar input,
.reports-filter-bar select {
  height: 35px;
  border: 1px solid #d8dfeb;
  border-radius: 6px;
  padding: 0 11px;
  color: #111827;
  background: #fff;
  font-size: 14px;
}

.reports-filter-bar select {
  min-width: 134px;
}

.reports-mode-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  margin-left: auto;
  border: 1px solid #d8dfeb;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.reports-mode-toggle button {
  height: 35px;
  border: 0;
  padding: 0 20px;
  color: #63728c;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.reports-mode-toggle button.active {
  color: #008cff;
  background: #eaf6ff;
}

.reports-primary-btn {
  height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  color: #fff;
  background: #2440ff;
  font-weight: 800;
  cursor: pointer;
}

.reports-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.reports-breakdown-card,
.reports-overview-card {
  min-height: 206px;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  padding: 20px;
}

.reports-breakdown-card h3 {
  margin: 0;
  color: #38445f;
  font-size: 15px;
}

.reports-donut-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 16px;
}

.reports-donut {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#2440ff calc(var(--value) * 1%), #eef2f7 0);
  position: relative;
}

.reports-donut::after {
  content: "";
  position: absolute;
  inset: 21px;
  border-radius: 50%;
  background: #fff;
}

.reports-donut span,
.reports-donut strong {
  position: relative;
  z-index: 1;
  text-align: center;
}

.reports-donut span {
  align-self: end;
  color: #8494b2;
  font-size: 11px;
  font-weight: 800;
}

.reports-donut strong {
  align-self: start;
  color: #2d3856;
}

.reports-breakdown-copy {
  display: grid;
  gap: 6px;
  color: #8898b6;
  font-weight: 800;
}

.reports-stat-grid {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reports-stat-grid div {
  border-radius: 8px;
  padding: 14px;
  background: #f7f9fc;
}

.reports-stat-grid span {
  display: block;
  color: #8390a8;
  font-size: 12px;
  font-weight: 800;
}

.reports-stat-grid strong {
  display: block;
  margin-top: 8px;
  color: #27324f;
  font-size: 24px;
}

.reports-table-wrap {
  margin-top: 34px;
}

.reports-table {
  width: 100%;
  border-collapse: collapse;
  color: #34405d;
}

.reports-table th {
  padding: 12px 14px;
  color: #7f8ba2;
  background: #f7f9fc;
  font-size: 12px;
  text-align: left;
}

.reports-table td {
  border-bottom: 1px solid #edf1f6;
  padding: 15px 14px;
  font-weight: 700;
}

.reports-table td span {
  border-radius: 999px;
  padding: 5px 10px;
  background: #edf4ff;
  color: #3970d4;
  font-size: 12px;
}

.reports-empty {
  min-height: 80px;
  display: grid;
  place-items: center;
  color: #526382;
  font-weight: 700;
}

.reports-log-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.reports-log-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.reports-log-row {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #e1e7f0;
  border-left: 4px solid #8ba0c2;
  border-radius: 8px;
  padding: 12px 16px;
}

.reports-log-row.warning {
  border-left-color: #ffb020;
}

.reports-log-row.error {
  border-left-color: #ff4d4f;
}

.reports-log-row strong {
  color: #27324f;
}

.reports-log-row p {
  margin: 4px 0 0;
  color: #748198;
}

.reports-log-row > span {
  flex: 0 0 auto;
  color: #8b96a8;
  font-size: 12px;
  font-weight: 800;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 450px minmax(520px, 1fr);
  gap: 26px;
}

.join-card {
  padding: 17px 27px;
  border: 0;
  border-radius: 10px;
}

.join-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.join-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.join-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #2472ff 0%, #475eff 100%);
}

.join-icon.video {
  background: #f14545;
}

.join-icon.instagram {
  background: #ec3d90;
}

.join-row strong {
  color: #354267;
  font-size: 16px;
}

.join-btn {
  min-width: 83px;
  color: #fff;
  background: #2737ff;
}

.support-banner {
  min-height: 211px;
  padding: 28px 27px;
  border-radius: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, .08) 0 85px, transparent 86px),
    linear-gradient(135deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(90deg, #415cff 0%, #1923f0 48%, #3248ff 100%);
}

.support-banner h3 {
  margin: 0 0 12px;
  font: 800 24px "Manrope", sans-serif;
}

.support-banner p {
  max-width: 820px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .84);
  font-size: 16px;
  line-height: 1.5;
}

.support-actions {
  display: flex;
  gap: 10px;
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.support-btn.white {
  color: #2553db;
  background: #fff;
}

.support-btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
}

.broker-page {
  padding: 26px 22px 0;
}

.broker-page-card {
  border: 1px solid #dde2ed;
  border-radius: 24px;
  background: #fff;
  overflow: visible;
}

.broker-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 26px 18px;
  border-bottom: 1px solid #e6e8f0;
}

.broker-page-head h1 {
  margin: 0 0 4px;
  color: #2b3566;
  font: 800 26px "Manrope", sans-serif;
}

.broker-page-head p {
  margin: 0;
  color: #5c82d9;
  font-size: 15px;
}

.broker-add-btn {
  min-width: 128px;
  height: 48px;
  font-size: 14px;
}

.broker-list-stack {
  display: grid;
  gap: 20px;
  padding: 0 26px 26px;
}

.broker-list-card {
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: 1.5fr .7fr .7fr auto;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  border: 1px solid #dde2ed;
  border-radius: 18px;
  background: #fff;
}

.broker-list-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed #d8dfed;
  border-radius: 18px;
  color: #667799;
  background: #fbfcff;
  text-align: center;
}

.broker-list-empty strong {
  display: block;
  margin-bottom: 6px;
  color: #2c3a5c;
  font: 800 18px "Manrope", sans-serif;
}

.broker-list-empty p {
  margin: 0;
  font-size: 14px;
}

.broker-empty-action {
  margin-top: 18px;
  min-width: 136px;
  justify-self: center;
}

.broker-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.broker-logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ff5a2d;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e5e8f0;
}

.broker-identity strong {
  display: block;
  color: #2b3762;
  font: 800 18px "Manrope", sans-serif;
}

.broker-identity small {
  display: block;
  margin-top: 3px;
  color: #6a88cf;
  font-size: 13px;
}

.broker-static-ip.assigned {
  color: #16945c;
}

.broker-static-ip.missing {
  color: #ff643c;
}

.broker-state {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}

.broker-state.disconnected {
  color: #ff643c;
}

.broker-state.connected,
.broker-state.simulated {
  color: #16945c;
}

.broker-performance {
  text-align: center;
}

.broker-performance small {
  display: block;
  color: #5f86d7;
  font-size: 13px;
}

.broker-performance strong {
  display: block;
  margin-top: 3px;
  color: #2f3859;
  font: 800 17px "Manrope", sans-serif;
}

.broker-toggle-group {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.broker-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5f86d7;
  font-size: 13px;
  cursor: pointer;
}

.broker-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.broker-toggle-group i {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #d9dde5;
  transition: background .18s ease;
}

.broker-toggle-group i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(35, 45, 73, .15);
  transition: transform .18s ease;
}

.broker-toggle-input:checked + i {
  background: #4a79ff;
}

.broker-toggle-input:checked + i::after {
  transform: translateX(20px);
}

.broker-toggle-input:disabled + i {
  opacity: .7;
}

.broker-more-btn {
  width: 36px;
  height: 36px;
  border: 0;
  color: #48516d;
  background: #f7f8fb;
  border-radius: 10px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.broker-more-wrap {
  position: relative;
}

.broker-actions-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 194px;
  display: none;
  padding: 12px 0;
  border: 1px solid #dde2ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(23, 38, 76, .12);
  z-index: 5;
}

.broker-actions-menu.open {
  display: grid;
}

.broker-actions-menu button {
  min-height: 40px;
  border: 0;
  padding: 0 14px;
  color: #20262f;
  background: transparent;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}

.broker-actions-menu button:hover {
  background: #f7f9fd;
}

.broker-actions-menu button.danger {
  color: #ff3e34;
}

.subscription-page {
  min-height: calc(100vh - 68px);
  padding: 76px 34px 64px;
  background: #f1f2f8;
}

.subscription-wrap {
  max-width: 1320px;
  margin: 0 auto;
}

.subscription-wrap h1 {
  margin: 0 0 26px;
  color: #26334f;
  font: 800 28px "Manrope", sans-serif;
}

.subscription-tabs {
  display: flex;
  gap: 34px;
  border-bottom: 1px solid #dfe4ee;
  margin-bottom: 22px;
}

.subscription-tabs button,
.subscription-billing button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.subscription-tabs button {
  min-width: 92px;
  padding: 0 0 14px;
  color: #778196;
  font-weight: 800;
  text-align: center;
  border-bottom: 2px solid transparent;
}

.subscription-tabs button.active {
  color: #1695ff;
  border-bottom-color: #1695ff;
}

.subscription-active-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #cdeedc;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 18px 0;
  color: #16945c;
  background: #effcf5;
}

.subscription-active-banner strong,
.subscription-active-banner span {
  display: block;
}

.subscription-active-banner strong {
  color: #26334f;
  font: 900 16px "Manrope", sans-serif;
}

.subscription-active-banner span {
  margin-top: 4px;
  color: #4f6f60;
  font-weight: 800;
}

.subscription-active-banner b {
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  background: #16a35b;
  font-size: 12px;
}

.subscription-billing {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 18px;
}

.subscription-billing button {
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  color: #768198;
  font-weight: 800;
}

.subscription-billing button.active {
  color: #fff;
  background: #2457ff;
}

.subscription-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.subscription-card {
  min-height: 378px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  padding: 30px;
  background: #fff;
}

.subscription-card h3 {
  margin: 0 0 22px;
  color: #303c5d;
  font: 800 20px "Manrope", sans-serif;
}

.subscription-price {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
  color: #2c3655;
  font: 900 34px "Manrope", sans-serif;
}

.subscription-price span {
  padding-bottom: 7px;
  color: #717b91;
  font: 800 14px "DM Sans", sans-serif;
}

.subscription-card p {
  margin: 0 0 22px;
  color: #657089;
  font-size: 15px;
  font-weight: 700;
}

.subscription-validity {
  display: grid;
  gap: 4px;
  border: 1px solid #cdeedc;
  border-radius: 10px;
  padding: 12px 14px;
  margin: -6px 0 18px;
  color: #16945c;
  background: #effcf5;
  font-weight: 900;
}

.subscription-validity span {
  color: #4f6f60;
  font-size: 13px;
}

.subscription-card button {
  min-height: 56px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}

.subscription-primary-btn {
  border: 0;
  color: #fff;
  background: #2457ff;
}

.subscription-outline-btn {
  border: 1px solid #d8dfeb;
  color: #27324f;
  background: #fff;
}

.subscription-active-btn {
  border: 1px solid #cdeedc;
  color: #13a85b;
  background: #effcf5;
}

.subscription-addon {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  padding: 14px;
  margin: 0 0 18px;
  color: #313c5b;
  background: #f8fbff;
}

.subscription-addon strong,
.subscription-addon small {
  display: block;
}

.subscription-addon small {
  margin-top: 4px;
  color: #68738b;
  font-weight: 700;
}

.subscription-included {
  display: block;
  margin: 22px 0 8px;
  color: #303c5d;
  font-size: 15px;
}

.subscription-card ul {
  margin: 0;
  padding-left: 0;
  color: #47556f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  list-style: none;
}

.subscription-card li::before {
  content: "• ";
}

.subscription-faq {
  margin-top: 28px;
  border-radius: 14px;
  padding: 30px 26px;
  background: #fff;
}

.subscription-faq h2 {
  margin: 0 0 8px;
  color: #26334f;
  font: 900 26px "Manrope", sans-serif;
}

.subscription-faq > p {
  margin: 0 0 26px;
  color: #7a8497;
  font-size: 15px;
  font-weight: 700;
}

.subscription-faq-list {
  display: grid;
  gap: 12px;
}

.subscription-faq-list article {
  border: 1px solid #e2e7ef;
  border-radius: 8px;
  background: #fbfcff;
  overflow: hidden;
}

.subscription-faq-list button {
  width: 100%;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  padding: 0 20px;
  color: #3d4964;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.subscription-faq-list b {
  color: #2457ff;
  font-size: 20px;
}

.subscription-faq-list p {
  margin: 0;
  border-top: 1px solid #e2e7ef;
  padding: 18px 20px 22px;
  color: #667188;
  font-weight: 700;
}

.static-ip-panel {
  border-radius: 14px;
  padding: 28px 22px 22px;
  background: #fff;
}

.static-ip-intro {
  max-width: 920px;
  margin: 0 0 10px;
  color: #5d697e;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
}

.static-ip-warning {
  display: block;
  margin-bottom: 24px;
  color: #dc3f3f;
  font-size: 15px;
}

.static-ip-success {
  display: block;
  margin-bottom: 24px;
  color: #16945c;
  font-size: 15px;
}

.static-ip-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
}

.static-ip-purchase-card,
.static-ip-details-card {
  min-height: 560px;
  border: 1px solid #e0e6ef;
  border-radius: 14px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(23, 38, 76, .02);
}

.static-ip-purchase-card h3,
.static-ip-details-card h3 {
  margin: 0 0 22px;
  color: #303c5d;
  font: 900 18px "Manrope", sans-serif;
}

.static-ip-purchase-card p {
  margin: 0 0 22px;
  color: #6c7589;
  font-size: 14px;
  font-weight: 800;
}

.static-ip-quantity {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  padding: 0 14px 0 18px;
  color: #303c5d;
  background: #f8fbff;
  font-weight: 900;
}

.static-ip-quantity div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.static-ip-quantity button {
  width: 34px;
  height: 34px;
  border: 1px solid #dbe2ed;
  border-radius: 6px;
  color: #43506d;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.static-ip-disabled-btn {
  width: 100%;
  min-height: 46px;
  margin: 28px 0 24px;
  border: 0;
  border-radius: 10px;
  color: #9ca8b9;
  background: #edf1f6;
  font-weight: 900;
}

.static-ip-purchase-card h4 {
  margin: 0 0 12px;
  color: #303c5d;
  font-size: 14px;
}

.static-ip-purchase-card dl {
  display: grid;
  gap: 10px;
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  padding: 18px;
  margin: 0 0 24px;
  background: #f8fbff;
}

.static-ip-purchase-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.static-ip-purchase-card dt,
.static-ip-purchase-card dd {
  margin: 0;
  color: #6c7589;
  font-weight: 800;
}

.static-ip-purchase-card dd {
  color: #303c5d;
}

.static-ip-purchase-card small {
  color: #7a8497;
  font-weight: 800;
}

.static-ip-empty {
  min-height: 430px;
  display: grid;
  place-items: center;
  color: #8a94a8;
  font-weight: 900;
  text-align: center;
}

.static-ip-empty p {
  margin: 0;
  color: #303c5d;
  line-height: 1.7;
}

.static-ip-faq {
  margin-top: 22px;
}

.static-ip-faq .subscription-faq-list {
  gap: 14px;
}

.static-ip-faq .subscription-faq-list p {
  line-height: 1.7;
}

.trade-engine-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.trade-engine-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 39, 55, .28);
  backdrop-filter: blur(7px);
}

.trade-engine-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(424px, calc(100vw - 32px));
  padding: 28px 28px 26px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 50px rgba(18, 31, 64, .18);
  transform: translate(-50%, -50%);
}

.trade-engine-modal h3 {
  margin: 0 0 14px;
  color: #151d2d;
  font: 800 18px "Manrope", sans-serif;
}

.trade-engine-modal p {
  margin: 0 0 8px;
  color: #48556f;
  font-size: 13px;
  line-height: 1.5;
}

.trade-engine-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.trade-engine-cancel,
.trade-engine-confirm {
  min-width: 74px;
  height: 42px;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.trade-engine-cancel {
  border: 1px solid #d8deea;
  color: #33425d;
  background: #fff;
}

.trade-engine-confirm {
  border: 0;
  color: #fff;
  background: #2b49ff;
  box-shadow: 0 10px 24px rgba(43, 73, 255, .2);
}

.trade-engine-confirm:disabled {
  opacity: .75;
  cursor: wait;
}

.deploy-backdrop {
  background: rgba(24, 28, 36, .42);
  backdrop-filter: blur(5px);
}

.deploy-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(632px, calc(100vw - 32px));
  padding: 28px 27px 27px;
  border: 1px solid #d9dfeb;
  border-radius: 11px;
  color: #283251;
  background: #fff;
  box-shadow: 0 24px 54px rgba(20, 27, 48, .18);
  transform: translate(-50%, -50%);
}

.deploy-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}

.deploy-modal-head h3 {
  margin: 0;
  font: 800 22px "Manrope", sans-serif;
}

.deploy-modal-head p {
  margin: 4px 0 0;
  color: #7180a1;
  font-size: 13px;
  font-weight: 700;
}

.deploy-close-btn {
  border: 0;
  padding: 4px 0;
  color: #5f687a;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}

.deploy-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 18px;
}

.deploy-field {
  display: grid;
  gap: 7px;
  color: #2d3757;
  font-size: 13px;
  font-weight: 800;
}

.deploy-field input[type="number"],
.deploy-field input[type="text"] {
  width: 100%;
  height: 41px;
  border: 1px solid #cfd7e4;
  border-radius: 8px;
  padding: 0 14px;
  color: #2d3757;
  background: #fff;
  outline: 0;
  font-size: 16px;
}

.deploy-type-row {
  min-height: 41px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5d78bb;
  font-size: 14px;
  font-weight: 700;
}

.deploy-switch {
  position: relative;
  width: 49px;
  height: 27px;
}

.deploy-switch input {
  position: absolute;
  opacity: 0;
}

.deploy-switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #1f4aa3;
}

.deploy-switch i::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
}

.deploy-broker-box {
  min-height: 92px;
  border: 1px solid #cfd7e4;
  border-radius: 7px;
  padding: 10px 12px;
}

.deploy-broker-row {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #2d3757;
  font-size: 15px;
  font-weight: 500;
}

.deploy-broker-row input,
.deploy-terms input {
  width: 14px;
  height: 14px;
  accent-color: #145cff;
}

.deploy-broker-divider {
  height: 1px;
  margin: 6px 0;
  background: #e2e6ef;
}

.deploy-broker-empty {
  color: #7b8498;
  font-size: 13px;
  font-weight: 700;
}

.deploy-time-input {
  position: relative;
}

.deploy-time-input svg {
  position: absolute;
  right: 13px;
  top: 50%;
  color: #111827;
  transform: translateY(-50%);
}

.deploy-terms {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: #24304f;
  font-size: 15px;
}

.deploy-terms a {
  color: #003cff;
}

.deploy-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}

.deploy-cancel-btn,
.deploy-submit-btn {
  min-width: 91px;
  height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.deploy-cancel-btn {
  border: 1px solid #d2d9e6;
  color: #2d3757;
  background: #fff;
}

.deploy-submit-btn {
  border: 0;
  color: #fff;
  background: #8399ff;
}

.strategy-builder-page {
  padding: 24px 18px 28px;
}

.strategy-builder-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(320px, 1.15fr) minmax(420px, 1.95fr);
  gap: 18px;
  align-items: start;
}

.strategy-builder-card {
  border: 1px solid #dce2ee;
  border-radius: 20px;
  padding: 18px;
  background: #fff;
}

.strategy-builder-card h2 {
  margin: 0 0 10px;
  color: #202938;
  font: 800 17px "Manrope", sans-serif;
}

.strategy-builder-card p {
  margin: 0 0 14px;
  color: #66728b;
  line-height: 1.45;
}

.strategy-builder-type-card,
.strategy-builder-instruments-card {
  min-height: 184px;
}

.strategy-builder-legs-card {
  grid-row: span 2;
}

.strategy-builder-order-card,
.strategy-builder-risk-card {
  grid-column: span 2;
}

.strategy-builder-risk-card,
.strategy-builder-features-card {
  align-self: stretch;
}

.strategy-builder-name-card {
  min-height: 124px;
}

.trade-strategy-card,
.indicator-conditions-card,
.indicator-order-card {
  grid-column: span 2;
}

.strategy-builder-option-list,
.feature-grid {
  display: grid;
  gap: 12px;
}

.builder-check-row,
.builder-radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #354056;
  font-size: 14px;
}

.builder-check-row.active span {
  color: #21356f;
  font-weight: 700;
}

.builder-check-row small {
  color: #8a95aa;
}

.builder-check-row.compact,
.builder-radio-row {
  min-height: 30px;
}

.instrument-mode-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #dbe2ef;
  border-radius: 16px;
  background: #f8fbff;
}

.instrument-mode-box strong {
  display: block;
  margin-bottom: 4px;
  color: #32446f;
  font: 800 15px "Manrope", sans-serif;
}

.instrument-mode-box p {
  margin: 0;
  max-width: 180px;
  font-size: 13px;
}

.builder-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-segmented button {
  flex: 1 1 0;
  min-width: 74px;
  height: 38px;
  border: 1px solid #cfd7e6;
  border-radius: 12px;
  color: #546176;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.builder-segmented button.active {
  color: #fff;
  border-color: #244dff;
  background: #244dff;
}

.builder-segmented button.active.success {
  color: #148344;
  border-color: #3dc870;
  background: #ecfff3;
}

.builder-segmented button.active.danger {
  color: #ff4747;
  border-color: #ffb0b0;
  background: #fff5f5;
}

.builder-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  min-height: 34px;
}

.builder-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #2342a2;
  background: #eef3ff;
  font-size: 13px;
  font-weight: 700;
}

.builder-chip button {
  border: 0;
  color: #5e78ca;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.instrument-add-tile {
  width: 100%;
  min-height: 108px;
  margin-top: 16px;
  border: 1px dashed #cfd8eb;
  border-radius: 16px;
  color: #96a2ba;
  background: #fff;
  font: 700 22px "Manrope", sans-serif;
  cursor: pointer;
}

.builder-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.builder-card-head.left {
  align-items: start;
}

.builder-card-head.left p {
  margin-bottom: 0;
}

.builder-info {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: #6a7488;
  background: #f1f4f9;
}

.inline-info {
  display: inline-flex;
  vertical-align: middle;
  color: #7b879e;
}

.leg-stack {
  display: grid;
  gap: 14px;
}

.leg-card {
  border: 1px solid #9fc2ff;
  border-radius: 18px;
  padding: 16px;
}

.leg-card.collapsed {
  border-color: #d8e1ef;
  background: #fff;
}

.leg-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8edf6;
}

.leg-card.collapsed .leg-card-head {
  padding-bottom: 0;
  border-bottom: 0;
}

.leg-card h3 {
  margin: 0 0 6px;
  color: #2e3f63;
  font: 800 15px "Manrope", sans-serif;
}

.leg-inline-accent {
  color: #2a56ff;
  font-size: 14px;
}

.leg-card-head p {
  margin: 0;
  color: #61708f;
  font-size: 13px;
}

.leg-badge {
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #2b5cff;
  background: #e8f0ff;
  font-size: 12px;
  font-weight: 800;
}

.leg-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.leg-inline-btn {
  height: 34px;
  border: 1px solid #8db0ff;
  border-radius: 10px;
  padding: 0 14px;
  color: #2457ff;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.leg-inline-btn.danger {
  border-color: #ff6c6c;
  color: #fff;
  background: #ff4f4f;
}

.leg-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.indicator-condition-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8edf6;
}

.condition-heading {
  font-weight: 800;
}

.condition-heading.long {
  color: #148344;
}

.condition-heading.short {
  color: #c4362d;
}

.indicator-leg-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 14px;
}

.builder-field {
  display: grid;
  gap: 8px;
}

.builder-field label {
  color: #354056;
  font-size: 14px;
  font-weight: 700;
}

.builder-field input,
.builder-field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d8deea;
  border-radius: 8px;
  padding: 0 14px;
  color: #374457;
  background: #fff;
}

.builder-field small {
  color: #7f8ba2;
  font-size: 12px;
}

.qty-stepper {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  gap: 6px;
}

.qty-stepper button {
  border: 1px solid #d8deea;
  border-radius: 6px;
  color: #30405a;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}

.qty-stepper input {
  text-align: center;
}

.leg-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.icon-action {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #5f6f8a;
  background: #f5f7fb;
  cursor: pointer;
}

.icon-action.danger {
  color: #ff4433;
  background: #fff3f3;
}

.inline-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.inline-choice-list.spread {
  gap: 18px 28px;
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.three-col-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.builder-time-field {
  position: relative;
}

.builder-time-field input {
  padding-right: 42px;
}

.builder-time-field span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #526077;
}

.weekday-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.weekday-pill {
  min-width: 58px;
  height: 36px;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
  color: #2d5fff;
  background: #f7fbff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.weekday-pill.active {
  color: #fff;
  border-color: #2457ff;
  background: #2457ff;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trade-strategy-list {
  display: grid;
  gap: 14px;
}

.trade-strategy-info {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  border-radius: 50%;
  color: #8290a8;
  background: #f3f6fb;
}

.indicator-settings-grid {
  align-items: end;
}

.builder-segmented-tight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.builder-segmented-tight button {
  min-width: 0;
  flex: 0 0 auto;
}

.indicator-settings-grid .builder-field:last-child .builder-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.interval-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.interval-pill {
  min-width: 64px;
  height: 40px;
  border: 1px solid #d3dbeb;
  border-radius: 10px;
  color: #5b687e;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

.interval-pill.active {
  color: #2457ff;
  border-color: #8db0ff;
  background: #f3f7ff;
}

.indicator-conditions-shell {
  display: grid;
  gap: 16px;
}

.indicator-column {
  display: grid;
  gap: 12px;
}

.condition-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.condition-row select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8deea;
  border-radius: 10px;
  padding: 0 14px;
  color: #374457;
  background: #fff;
  font-size: 14px;
}

.indicator-conditions-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e8edf6;
}

.strategy-builder-page.indicator-mode .strategy-builder-grid {
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 0.95fr) minmax(520px, 1.55fr);
}

.strategy-name-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d8deea;
  border-radius: 14px;
  padding: 0 16px;
  color: #39465a;
  background: #f5f8ff;
}

.strategy-builder-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.primary-builder-btn {
  min-width: 122px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #244dff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.strategy-modal {
  width: min(560px, calc(100vw - 32px));
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 50;
  transform: translate(-50%, -50%);
  border: 1px solid #d9e0ed;
  border-radius: 24px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(30, 45, 78, 0.2);
}

.strategy-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.strategy-modal-head h3 {
  margin: 0 0 6px;
  color: #25344e;
  font: 800 22px "Manrope", sans-serif;
}

.strategy-modal-head p {
  margin: 0;
  color: #66728b;
  line-height: 1.5;
}

.strategy-modal-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #d7deeb;
  border-radius: 12px;
  color: #4b5870;
  background: #fff;
  cursor: pointer;
  transform: rotate(45deg);
}

.strategy-instrument-list {
  display: grid;
  gap: 12px;
}

.strategy-instrument-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid #dbe2ef;
  border-radius: 16px;
  text-align: left;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.strategy-instrument-option:hover {
  border-color: #a8bced;
  background: #fafcff;
}

.strategy-instrument-option.active {
  border-color: #2a56ff;
  background: #f4f7ff;
  box-shadow: 0 0 0 1px rgba(42, 86, 255, 0.08);
}

.strategy-instrument-copy {
  display: grid;
  gap: 4px;
}

.strategy-instrument-copy strong {
  color: #23314b;
  font: 800 16px "Manrope", sans-serif;
}

.strategy-instrument-copy small {
  color: #70809b;
  font-size: 13px;
  line-height: 1.45;
}

.strategy-instrument-check {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: #fff;
  background: #2a56ff;
}

.strategy-instrument-option:not(.active) .strategy-instrument-check {
  color: #8d9ab0;
  background: #edf1f7;
}

.strategy-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

@media (max-width: 1500px) {
  .simulator-toolbar {
    overflow-x: auto;
  }

  .sim-template-btn {
    margin-left: 0;
  }

  .my-strategies-grid {
    max-width: none;
  }

  .strategies-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-builder-grid {
    grid-template-columns: minmax(220px, 0.88fr) minmax(280px, 1fr) minmax(380px, 1.55fr);
  }

  .leg-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-builder-page.indicator-mode .strategy-builder-grid {
    grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 0.95fr) minmax(420px, 1.35fr);
  }
}

@media (max-width: 1320px) {
  .simulator-grid {
    grid-template-columns: 1fr;
  }

  .option-chain-card,
  .rolling-card {
    min-width: 0;
  }

  .option-chain-table {
    height: 430px;
  }

  .rolling-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payoff-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .greek-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .my-strategies-toolbar,
  .strategy-count-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .strategy-mode-tabs {
    flex-wrap: wrap;
  }

  .my-strategies-grid {
    grid-template-columns: 1fr;
  }

  .strategy-builder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-builder-legs-card,
  .strategy-builder-order-card,
  .strategy-builder-risk-card,
  .trade-strategy-card,
  .indicator-conditions-card,
  .indicator-order-card {
    grid-column: span 2;
  }

  .strategy-builder-legs-card {
    grid-row: auto;
  }
}

.add-broker-page {
  padding: 26px 22px 0;
}

.broker-back-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid #d9dfeb;
  border-radius: 12px;
  color: #314164;
  background: #fff;
  font: 700 14px "Manrope", sans-serif;
  cursor: pointer;
}

.broker-back-btn span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.add-broker-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, .9fr);
  border: 1px solid #dde2ed;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
}

.add-broker-panel {
  padding: 28px 26px;
}

.detail-panel {
  border-left: 1px solid #e4e8f1;
}

.add-broker-copy h1,
.detail-head h2 {
  margin: 0;
  color: #2b3566;
  font: 800 26px "Manrope", sans-serif;
}

.add-broker-copy p,
.detail-head p {
  margin: 8px 0 0;
  color: #5c82d9;
  font-size: 15px;
  line-height: 1.45;
}

.add-broker-copy small {
  display: block;
  margin-top: 24px;
  color: #6f87b7;
  font-size: 13px;
  line-height: 1.45;
}

.broker-search {
  margin-top: 28px;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 14px;
  background: #f4f7fb;
  color: #98a6c2;
}

.broker-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #49639d;
  background: transparent;
  font-size: 16px;
}

.popular-brokers-head {
  margin-top: 28px;
  color: #314164;
  font: 800 17px "Manrope", sans-serif;
}

.broker-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.broker-catalog-card {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid #dbe1ed;
  border-radius: 16px;
  color: #2f3e63;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.broker-catalog-card:hover,
.broker-catalog-card.active {
  border-color: #4f86ff;
  box-shadow: 0 18px 35px rgba(51, 93, 201, .1);
  transform: translateY(-1px);
}

.broker-catalog-card strong {
  font: 700 16px "Manrope", sans-serif;
}

.broker-badge {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 800 24px "Manrope", sans-serif;
  box-shadow: inset 0 0 0 1px rgba(21, 33, 64, .08), 0 10px 20px rgba(49, 65, 100, .08);
}

.broker-badge.green { color: #19a760; background: #fff; }
.broker-badge.violet { color: #fff; background: #5a2a84; font-size: 22px; text-transform: lowercase; }
.broker-badge.gold { color: #4b3c0b; background: linear-gradient(135deg, #f7d46b, #d8a62a); }
.broker-badge.blue { color: #2557d6; background: #fff; }
.broker-badge.forest { color: #fff; background: #2da26a; }
.broker-badge.teal { color: #fff; background: linear-gradient(135deg, #5b6dff 0%, #13e2b7 100%); }
.broker-badge.orange { color: #ff5b2b; background: #fff; }
.broker-badge.mint { color: #2d7f9a; background: #f6fcff; }
.broker-badge.amber { color: #dc7c1a; background: #fff8f0; font-size: 18px; }
.broker-badge.sky { color: #2586d4; background: #f2f8ff; font-size: 18px; }

.broker-empty-state {
  grid-column: 1 / -1;
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed #d5dceb;
  border-radius: 16px;
  color: #7e89a7;
  background: #fafcff;
  font-size: 15px;
}

.selected-broker-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 26px 22px;
  border: 1px solid #dde2ed;
  border-radius: 18px;
}

.selected-broker-card strong {
  display: block;
  color: #2c3a5c;
  font: 800 16px "Manrope", sans-serif;
}

.selected-broker-card a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: #5f86d7;
  font-size: 13px;
  font-weight: 700;
}

.video-pill {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #ff4646;
  font-size: 10px;
}

.broker-connect-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.broker-connect-form label {
  display: grid;
  gap: 9px;
}

.broker-connect-form label span,
.redirect-copy-label span {
  color: #314164;
  font: 700 14px "Manrope", sans-serif;
}

.broker-connect-form input {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  color: #445d93;
  background: #f4f7fb;
  outline: 0;
}

.broker-ip-hint {
  margin: -8px 0 0;
  color: #6f7890;
  font-size: 12px;
  font-weight: 700;
}

.redirect-copy-block {
  display: grid;
  gap: 10px;
}

.redirect-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.redirect-copy-row strong {
  color: #2a63ff;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-all;
}

.copy-redirect-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #d9dfeb;
  border-radius: 10px;
  color: #6e86bd;
  background: #fff;
  cursor: pointer;
}

.copy-redirect-btn.copied {
  color: #2457ff;
  border-color: #8cb0ff;
  background: #f5f8ff;
}

.broker-submit-btn {
  margin-top: 6px;
}

@media (max-width: 860px) {
  .simulator-page {
    margin: -18px;
    padding: 18px;
  }

  .rolling-tabs {
    gap: 8px;
    overflow-x: auto;
  }

  .rolling-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .vwap-headline {
    grid-template-columns: 1fr;
  }

  .active-position-strip > div,
  .positions-actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .sim-chart-svg {
    min-width: 720px;
  }

  .sim-chart {
    overflow-x: auto;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links,
  .header-actions {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .nav-links.open,
  .header-actions.open {
    position: absolute;
    left: 18px;
    right: 18px;
    display: flex;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    top: 70px;
    flex-direction: column;
    gap: 0;
    border-radius: 12px 12px 0 0;
    padding: 8px;
  }

  .nav-links.open a {
    padding: 12px;
  }

  .header-actions.open {
    top: 250px;
    justify-content: stretch;
    border-radius: 0 0 12px 12px;
    padding: 12px;
  }

  .header-actions.open a {
    flex: 1;
  }

  .pricing-grid,
  .faq-section,
  .site-footer,
  .split-intro {
    grid-template-columns: 1fr;
  }

  .faq-section {
    gap: 40px;
  }

  .compare-table {
    overflow-x: auto;
  }

  .compare-row {
    min-width: 760px;
  }

  .auth-screen.active {
    grid-template-columns: 1fr;
  }

  .dashboard-shell.active,
  .summary-grid,
  .template-grid,
  .bottom-grid,
  .broker-list-card,
  .add-broker-layout,
  .strategy-builder-grid,
  .two-col-grid,
  .three-col-grid,
  .feature-grid,
  .leg-form-grid,
  .condition-row,
  .indicator-condition-band {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard-content {
    padding: 18px;
  }

  .broker-page {
    padding: 18px 0 0;
  }

  .add-broker-page {
    padding: 18px 0 0;
  }

  .broker-page-head,
  .broker-list-card {
    margin-left: 0;
    margin-right: 0;
  }

  .detail-panel {
    border-left: 0;
    border-top: 1px solid #e4e8f1;
  }

  .broker-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .broker-page-head {
    align-items: start;
    gap: 12px;
    flex-direction: column;
  }

  .broker-toggle-group {
    justify-content: start;
  }

  .strategy-builder-page {
    padding: 18px 0 24px;
  }

  .builder-card-head,
  .instrument-mode-box {
    flex-direction: column;
    align-items: start;
  }

  .inline-choice-list {
    gap: 12px;
  }

  .builder-segmented {
    flex-wrap: wrap;
  }

  .builder-segmented-tight,
  .indicator-settings-grid .builder-field:last-child .builder-segmented {
    grid-template-columns: 1fr;
  }

  .indicator-conditions-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .reports-card-grid,
  .reports-stat-grid {
    grid-template-columns: 1fr;
  }

  .reports-filter-bar {
    flex-wrap: wrap;
    align-items: stretch;
    padding: 14px;
  }

  .reports-mode-toggle {
    margin-left: 0;
  }

  .strategy-modal {
    width: min(100vw - 24px, 560px);
    padding: 18px;
    border-radius: 18px;
  }

  .dashboard-headline,
  .deploy-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .login-art {
    min-height: 560px;
  }

  .login-brand {
    top: 30px;
    left: 24px;
  }

  .art-stage {
    min-height: 560px;
  }

  .art-card {
    left: 28px;
    top: 130px;
    width: 320px;
  }

  .art-chip {
    left: 112px;
    width: 150px;
    height: 188px;
  }

  .art-glow {
    left: -18px;
    top: 118px;
    width: 360px;
    height: 230px;
  }

  .art-footer {
    left: 28px;
    top: 420px;
    width: 250px;
  }

  .top-left {
    left: 14px;
    top: 110px;
  }

  .top-right {
    left: 264px;
    top: 160px;
  }

  .left-mid {
    left: 18px;
    top: 296px;
  }

  .mid-left {
    left: 88px;
    top: 296px;
  }

  .top-wave {
    left: 214px;
    top: 104px;
  }

  .bottom-wave {
    left: 112px;
    top: 327px;
  }
}

@media (max-width: 620px) {
  .rolling-stats,
  .payoff-stats,
  .greek-grid,
  .option-chain-head {
    grid-template-columns: 1fr;
  }

  .option-chain-head {
    height: auto;
    padding: 14px;
  }

  .deploy-modal-grid {
    grid-template-columns: 1fr;
  }

  .deploy-modal-actions {
    justify-content: stretch;
  }

  .deploy-cancel-btn,
  .deploy-submit-btn {
    flex: 1;
  }

  .section-pad,
  .site-header,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    min-height: 365px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .word-icon {
    width: 38px;
    height: 38px;
    margin: 0 5px;
  }

  .pricing-band {
    padding-top: 62px;
  }

  .billing-toggle {
    width: 100%;
    justify-content: center;
  }

  .billing-toggle button {
    min-width: 0;
    flex: 1;
  }

  .support-card {
    width: 100%;
  }

  .cta-section h2,
  .section-intro h2,
  .faq-copy h2 {
    font-size: 34px;
  }

  .site-footer {
    gap: 28px;
  }

  .login-panel {
    padding: 32px 18px 42px;
  }

  .dashboard-topbar {
    padding: 0 18px;
  }

  .reports-page {
    padding: 24px 14px;
  }

  .reports-panel {
    padding: 20px 14px;
  }

  .subscription-page {
    padding: 26px 14px 42px;
  }

  .subscription-tabs {
    gap: 12px;
    overflow-x: auto;
  }

  .subscription-grid {
    grid-template-columns: 1fr;
  }

  .subscription-card {
    min-height: 0;
    padding: 22px;
  }

  .subscription-billing {
    overflow-x: auto;
  }

  .subscription-faq {
    padding: 22px 14px;
  }

  .static-ip-panel {
    padding: 22px 14px;
  }

  .static-ip-grid {
    grid-template-columns: 1fr;
  }

  .static-ip-purchase-card,
  .static-ip-details-card {
    min-height: 0;
    padding: 20px;
  }

  .static-ip-quantity {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .reports-filter-bar label,
  .reports-filter-bar input,
  .reports-filter-bar select,
  .reports-primary-btn,
  .reports-mode-toggle {
    width: 100%;
  }

  .reports-log-row,
  .backtest-transactions-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-box {
    width: 100%;
  }

  .art-card h1 {
    font-size: 34px;
    max-width: 220px;
  }

  .art-chip {
    left: 96px;
    width: 138px;
    height: 180px;
    font-size: 12px;
  }

  .art-url,
  .top-right,
  .top-wave {
    display: none;
  }
}
