:root {
  /* Brand */
  --brand-1: #4f46e5;
  --brand-2: #6366f1;
  --brand-3: #818cf8;
  --accent-teal: #14b8a6;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --success: #10b981;
  --danger: #ef4444;

  /* Legacy aliases so existing rules keep working */
  --blue: #4f46e5;
  --blue-2: #6366f1;
  --indigo: #4338ca;
  --amber: #f59e0b;

  /* Neutrals */
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-2: #eef2f6;
  --soft: #f5f7fb;
  --card: #ffffff;
  --page: #f4f6fb;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, .08), 0 8px 16px rgba(15, 23, 42, .04);
  --shadow-xl: 0 32px 60px rgba(15, 23, 42, .12), 0 12px 24px rgba(15, 23, 42, .05);
  --shadow: var(--shadow-lg);
  --glow-brand: 0 12px 28px rgba(79, 70, 229, .28);

  /* Radii */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Type scale */
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-base: 14px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 20px;
  --fs-2xl: 26px;
  --fs-3xl: 34px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(99, 102, 241, .22);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Landing page animations */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, .45); }
  50%      { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0); }
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes drift-x {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}

@keyframes shine-slide {
  0%   { transform: translateX(-120%) skewX(-20deg); }
  100% { transform: translateX(220%) skewX(-20deg); }
}

.reveal {
  opacity: 0;
  animation: fade-in-up .8s cubic-bezier(.2, .8, .2, 1) forwards;
}

.reveal-delay-1 { animation-delay: .12s; }
.reveal-delay-2 { animation-delay: .24s; }
.reveal-delay-3 { animation-delay: .36s; }
.reveal-delay-4 { animation-delay: .48s; }

.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .scroll-reveal,
  .hero .eyebrow,
  .hero h1,
  .hero p,
  .hero-actions,
  .hero-highlights li,
  .word-icon,
  .plan-card,
  .whats-new-card,
  .blog-card,
  .policy-card,
  .cta-section h2,
  .cta-section p,
  .cta-section .primary-btn {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

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: #ffffff;
}

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

.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: var(--page);
}

.dashboard-shell.active.sidebar-collapsed {
  grid-template-columns: 82px 1fr;
}

.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: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, .78);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 800 18px "Manrope", sans-serif;
  letter-spacing: -.01em;
}

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

.brand-logo {
  display: block;
  width: var(--brand-logo-size, auto);
  height: var(--brand-logo-size, auto);
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 36px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.nav-links a {
  position: relative;
  transition: color .2s ease;
}

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

.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-1), var(--accent-cyan));
}

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

.primary-btn,
.ghost-btn,
.dark-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--r-sm);
  padding: 0 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background-position .5s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.primary-btn {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--accent-cyan) 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow: var(--glow-brand);
}

.primary-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: translateX(-120%) skewX(-20deg);
  pointer-events: none;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(79, 70, 229, .32);
  background-position: 100% 50%;
}

.primary-btn:hover::after {
  animation: shine-slide 1s ease forwards;
}

.primary-btn:active {
  transform: translateY(0);
}

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

.ghost-btn:hover {
  border-color: var(--brand-2);
  color: var(--brand-1);
  background: rgba(99, 102, 241, .04);
}

.dark-btn {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.dark-btn:hover {
  background: linear-gradient(135deg, #1f2937, #374151);
}

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

.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 {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 800px 400px at 20% -10%, rgba(99, 102, 241, .18), transparent 60%),
    radial-gradient(ellipse 700px 400px at 90% 10%, rgba(6, 182, 212, .14), transparent 60%),
    radial-gradient(ellipse 900px 500px at 50% 100%, rgba(20, 184, 166, .10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 80%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  top: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(99, 102, 241, .3), transparent 70%);
  filter: blur(40px);
  animation: float-y 8s ease-in-out infinite;
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero .eyebrow {
  opacity: 0;
  animation: fade-in-up .7s cubic-bezier(.2, .8, .2, 1) forwards;
}

.hero h1 {
  opacity: 0;
  animation: fade-in-up .8s cubic-bezier(.2, .8, .2, 1) .1s forwards;
}

.hero p {
  opacity: 0;
  animation: fade-in-up .8s cubic-bezier(.2, .8, .2, 1) .2s forwards;
}

.hero .hero-actions {
  opacity: 0;
  animation: fade-in-up .8s cubic-bezier(.2, .8, .2, 1) .3s forwards;
}

.hero .hero-highlights li {
  opacity: 0;
  animation: fade-in-up .7s cubic-bezier(.2, .8, .2, 1) forwards;
}

.hero .hero-highlights li:nth-child(1) { animation-delay: .42s; }
.hero .hero-highlights li:nth-child(2) { animation-delay: .5s; }
.hero .hero-highlights li:nth-child(3) { animation-delay: .58s; }

.hero .hero-highlights li:hover {
  transform: translateY(-3px);
  transition: transform .18s ease;
}

.hero h1 em {
  background-size: 200% 200%;
  animation: gradient-shift 6s ease-in-out infinite;
}

.hero .word-icon {
  animation: float-y 4s ease-in-out infinite;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(226, 232, 240, .8);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(8px);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}

.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .18);
}

.hero h1,
.section-intro h2,
.faq-copy h2,
.cta-section h2 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -.025em;
  color: var(--ink);
}

.hero h1 {
  max-width: 820px;
  margin: 28px 0 18px;
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1.08;
  font-weight: 800;
}

.hero h1 em,
.cta-section h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 45%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.word-icon,
.mini-icon {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 12px 22px rgba(79, 70, 229, .32);
}

.word-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin: 0 10px;
  transform: translateY(-6px) rotate(-3deg);
}

.pricing-band {
  padding-top: 80px;
  padding-bottom: 96px;
  background: linear-gradient(180deg, #fff 0%, #f8faff 100%);
}

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

.billing-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 46px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: #f1f5f9;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.billing-toggle button {
  position: relative;
  min-width: 92px;
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-pill);
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: color .18s ease;
}

.billing-toggle button:hover {
  color: var(--ink);
}

.billing-toggle button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 8px 16px rgba(79, 70, 229, .28);
}

.billing-toggle strong {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -14px;
  min-width: 108px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  color: #fff;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(20, 184, 166, .3);
}

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

.plan-card {
  position: relative;
  min-height: 200px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.plan-card.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--brand-1), var(--brand-2), var(--accent-cyan)) border-box;
  box-shadow: 0 24px 50px rgba(79, 70, 229, .16);
}

.plan-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: var(--glow-brand);
  animation: pulse-glow 2.4s ease-in-out infinite;
}

.plan-card h2 {
  margin: 0 0 12px;
  font: 800 18px "Manrope", sans-serif;
  letter-spacing: -.01em;
  color: var(--ink);
}

.plan-card p {
  min-height: 42px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 4px;
  color: var(--ink);
}

.price span,
.price strong {
  font: 800 42px "Manrope", sans-serif;
  letter-spacing: -.03em;
  line-height: 1;
}

.price small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.billed {
  display: block;
  margin-bottom: 20px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

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

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

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

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

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

.section-intro h2,
.faq-copy h2 {
  margin: 20px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--ink);
}

.split-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.split-intro a {
  display: inline-block;
  margin-top: 8px;
  color: var(--brand-1);
  font-weight: 700;
}

.compare-table {
  overflow: hidden;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.compare-row {
  display: grid;
  grid-template-columns: 200px repeat(3, 1fr);
  min-height: 58px;
  border-bottom: 1px solid var(--line-2);
}

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

.compare-row > div {
  display: grid;
  place-items: center;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.compare-row > div:first-child {
  place-items: center start;
  background: #f8faff;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  padding-left: 24px;
}

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

.compare-plan {
  position: relative;
  margin: 12px 8px;
  border-radius: var(--r-lg);
  background: #f8faff;
  border: 1px solid var(--line-2);
}

.compare-plan.active {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--brand-1), var(--brand-2)) border-box;
}

.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: var(--ink);
  font: 800 15px "Manrope", sans-serif;
  letter-spacing: -.01em;
}

.compare-plan small {
  color: var(--muted-2);
  font-size: 11px;
}

.check-dot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
  box-shadow: 0 4px 10px rgba(20, 184, 166, .28);
}

.empty-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

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

.faq-copy p {
  max-width: 340px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.support-card {
  width: 320px;
  margin-top: 32px;
  padding: 26px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.support-card strong {
  font: 800 15px "Manrope", sans-serif;
  color: var(--ink);
}

.support-card p {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.support-card .primary-btn {
  min-height: 40px;
  padding: 0 18px;
}

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

.faq-item {
  overflow: hidden;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line-2);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item.open {
  border-color: rgba(99, 102, 241, .3);
  box-shadow: 0 12px 30px rgba(79, 70, 229, .08);
}

.faq-item button {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  padding: 0 20px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.faq-item button i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: var(--r-xs);
  color: var(--brand-1);
  background: rgba(99, 102, 241, .1);
  font-style: normal;
}

.faq-item p {
  display: none;
  margin: -2px 20px 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-actions .primary-btn,
.hero-actions .ghost-btn {
  min-height: 50px;
  padding: 0 24px;
  font-size: 14px;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: center;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, .8);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}

.hero-highlights li span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 4px 10px rgba(79, 70, 229, .28);
}

.pricing-band.pricing-intro {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.pricing-band.pricing-intro h2 {
  margin: 22px 0 12px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -.025em;
  max-width: 720px;
  color: var(--ink);
}

.pricing-band.pricing-intro h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-band.pricing-intro p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.whats-new-section,
.blogs-section,
.policy-section {
  background: #fff;
}

.whats-new-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.blogs-section {
  background: #fff;
}

.policy-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.whats-new-grid,
.blogs-grid,
.policy-grid {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}

.whats-new-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.whats-new-card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 24px 26px 26px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.whats-new-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, .3);
}

.whats-new-card small {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.whats-new-card h3 {
  margin: 8px 0 6px;
  font-size: 18px;
  line-height: 1.3;
  font-family: "Manrope", sans-serif;
  letter-spacing: -.015em;
  color: var(--ink);
}

.whats-new-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.whats-new-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(6, 182, 212, .12));
  color: var(--brand-1);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.blogs-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.blog-card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-thumb {
  position: relative;
  height: 160px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .18em;
  overflow: hidden;
}

.blog-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, .18), transparent 40%);
}

.blog-thumb span {
  position: relative;
  z-index: 1;
}

.blog-thumb-teal { background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 55%, #6366f1 100%); }
.blog-thumb-blue { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #1e293b 100%); }
.blog-thumb-violet { background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%); }

.blog-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-body small {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.blog-body h3 {
  margin: 4px 0;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--ink);
}

.blog-body p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.blog-body .link-button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-1);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: gap .18s ease;
}

.blog-body .link-button:hover {
  gap: 10px;
}

.policy-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.policy-card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.policy-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, .3);
}

.policy-card h3 {
  margin: 4px 0;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--ink);
}

.policy-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.policy-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(6, 182, 212, .12));
  color: var(--brand-1);
}

.cta-section {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 800px 500px at 50% -20%, rgba(6, 182, 212, .35), transparent 60%),
    radial-gradient(ellipse 600px 400px at 20% 100%, rgba(139, 92, 246, .32), transparent 60%),
    radial-gradient(ellipse 700px 400px at 80% 80%, rgba(20, 184, 166, .28), transparent 60%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}

.cta-section > * {
  position: relative;
}

.cta-section h2 {
  margin: 0 0 16px;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.15;
  letter-spacing: -.025em;
  color: #fff;
}

.cta-section h2 em {
  background: linear-gradient(135deg, #34d399 0%, #06b6d4 50%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-section p {
  color: rgba(226, 232, 240, .82);
  font-size: 15px;
}

.cta-section .primary-btn {
  margin-top: 30px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
}

.cta-section .primary-btn:hover {
  background: #f1f5f9;
}

.cta-section .word-icon {
  background: linear-gradient(135deg, #34d399, #06b6d4);
  box-shadow: 0 12px 22px rgba(6, 182, 212, .38);
  animation: float-y 4s ease-in-out infinite;
}

.cta-section h2 em {
  background-size: 200% 200%;
  animation: gradient-shift 6s ease-in-out infinite;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 140px 140px;
  gap: 72px;
  padding-top: 64px;
  padding-bottom: 56px;
  border-top: 1px solid var(--line-2);
  background: #ffffff;
}

.site-footer p {
  max-width: 320px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.site-footer small {
  color: var(--muted-2);
  font-size: 11px;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav a {
  transition: color .18s ease;
}

.site-footer nav a:hover {
  color: var(--brand-1);
}

.site-footer nav strong {
  margin-bottom: 6px;
  color: var(--ink);
  font: 800 13px "Manrope", sans-serif;
  letter-spacing: -.005em;
}

.socials {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.socials a:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  border-color: transparent;
  color: #fff;
}

.ticker-note {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  color: rgba(226, 232, 240, .8);
  background: #0f172a;
  font-size: 10.5px;
  text-align: center;
  letter-spacing: .02em;
}

.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;
}

.toast-host {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  gap: 12px;
  width: min(380px, calc(100vw - 44px));
  pointer-events: none;
}

.trade-toast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--toast-border);
  border-left: 5px solid var(--toast-accent);
  border-radius: 10px;
  padding: 14px 13px 14px 15px;
  color: #172033;
  background: var(--toast-bg);
  box-shadow: 0 18px 42px rgba(15, 45, 62, .16);
  pointer-events: auto;
  animation: toast-in .22s ease-out;
}

.trade-toast.success {
  --toast-accent: #16a34a;
  --toast-border: #bbf7d0;
  --toast-bg: #f0fdf4;
}

.trade-toast.error {
  --toast-accent: #dc2626;
  --toast-border: #fecaca;
  --toast-bg: #fef2f2;
}

.trade-toast.pending {
  --toast-accent: #2563eb;
  --toast-border: #bfdbfe;
  --toast-bg: #eff6ff;
}

.trade-toast.leaving {
  animation: toast-out .22s ease-in forwards;
}

.trade-toast strong {
  display: block;
  color: var(--toast-accent);
  font: 800 14px "Manrope", sans-serif;
}

.trade-toast p {
  margin: 5px 0 0;
  color: #293548;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.trade-toast small {
  display: block;
  margin-top: 7px;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.trade-toast button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #64748b;
  background: rgba(255, 255, 255, .72);
  cursor: pointer;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px); }
}

.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 var(--line);
  background: #ffffff;
}

.sidebar-top {
  position: relative;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 22px;
  border-bottom: 1px solid var(--line-2);
  background: #ffffff;
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 800 22px "Manrope", sans-serif;
  letter-spacing: -.015em;
}

.dashboard-brand .brand-logo {
  width: 34px;
  height: 34px;
}

.sidebar-collapse {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.sidebar-collapse:hover {
  background: var(--soft);
}

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

.dashboard-shell.sidebar-collapsed .sidebar-top {
  justify-content: center;
  padding: 0;
}

.dashboard-shell.sidebar-collapsed .dashboard-brand span:last-child,
.dashboard-shell.sidebar-collapsed .dashboard-nav-item strong,
.dashboard-shell.sidebar-collapsed .dashboard-nav-item > i,
.dashboard-shell.sidebar-collapsed .dashboard-subnav,
.dashboard-shell.sidebar-collapsed .dashboard-usercard div:not(.avatar),
.dashboard-shell.sidebar-collapsed .profile-popover {
  display: none;
}

.dashboard-shell.sidebar-collapsed .sidebar-collapse {
  position: absolute;
  left: 67px;
  transform: rotate(180deg);
}

.dashboard-shell.sidebar-collapsed .dashboard-nav {
  padding: 18px 14px 0;
}

.dashboard-shell.sidebar-collapsed .dashboard-nav-item {
  justify-content: center;
  padding: 0;
}

.dashboard-shell.sidebar-collapsed .dashboard-usercard {
  justify-content: center;
  padding: 17px 0;
}

.dashboard-nav {
  display: grid;
  gap: 4px;
  padding: 22px 18px 0;
}

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

.dashboard-nav-item {
  height: 46px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: var(--r-sm);
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.dashboard-nav-item:hover {
  color: var(--ink);
  background: var(--soft);
}

.dashboard-nav-item strong {
  font-weight: 600;
  letter-spacing: -.01em;
}

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

.dashboard-nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);
  box-shadow: var(--glow-brand);
}

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

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

.dashboard-subnav {
  display: none;
  gap: 8px;
  padding: 4px 0 6px 46px;
}

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

.dashboard-subnav button {
  height: 30px;
  display: flex;
  align-items: center;
  border: 0;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}

.dashboard-subnav button:hover {
  color: var(--ink);
}

.dashboard-subnav button.active {
  color: var(--brand-1);
  background: rgba(99, 102, 241, .1);
  font-weight: 700;
}

.dashboard-usercard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  margin: 0 12px 12px;
  cursor: pointer;
  transition: background .18s ease;
}

.dashboard-usercard:hover {
  background: var(--soft);
}

.dashboard-usercard-wrap {
  position: relative;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: var(--glow-brand);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 14px;
}

.avatar svg {
  display: block;
  color: #fff;
}

.dashboard-usercard small {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dashboard-usercard strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.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: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}

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

.dashboard-top-icons button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink-2);
  background: #fff;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.dashboard-top-icons button:hover {
  background: var(--soft);
  border-color: var(--brand-3);
  color: var(--brand-1);
}

.dashboard-top-icons button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow-brand);
}

.dashboard-content {
  padding: 40px 32px 48px;
}

body.dashboard-dark.dashboard-mode {
  --page: #111827;
}

body.dashboard-dark .dashboard-sidebar,
body.dashboard-dark .sidebar-top,
body.dashboard-dark .dashboard-topbar,
body.dashboard-dark .summary-card,
body.dashboard-dark .template-card,
body.dashboard-dark .join-card,
body.dashboard-dark .broker-page-card,
body.dashboard-dark .broker-list-card,
body.dashboard-dark .wallet-table,
body.dashboard-dark .wallet-balance-card,
body.dashboard-dark .reports-panel,
body.dashboard-dark .subscription-card,
body.dashboard-dark .notification-card,
body.dashboard-dark .notifications-empty,
body.dashboard-dark .profile-card {
  border-color: #263244;
  background: #172033;
}

body.dashboard-dark .notification-card.is-unread {
  background: linear-gradient(180deg, #172033, #1f2c48);
  border-color: rgba(56, 189, 248, .4);
}

body.dashboard-dark .notifications-header h1,
body.dashboard-dark .notification-body-head strong,
body.dashboard-dark .profile-card h2,
body.dashboard-dark .profile-dl dd,
body.dashboard-dark .profile-stats strong,
body.dashboard-dark .profile-toggle-row strong {
  color: #eef4ff;
}

body.dashboard-dark .notifications-header p,
body.dashboard-dark .notification-body p,
body.dashboard-dark .notification-body-head small,
body.dashboard-dark .profile-dl dt,
body.dashboard-dark .profile-stats span,
body.dashboard-dark .profile-toggle-row small,
body.dashboard-dark .profile-support-card p {
  color: #94a3b8;
}

body.dashboard-dark .profile-stats div {
  background: #1f2b44;
}

body.dashboard-dark .ghost-mini {
  background: #1f2b44;
  border-color: #2b3a58;
  color: #eef4ff;
}

body.dashboard-dark .ghost-mini:hover {
  background: #253357;
}

body.dashboard-dark .dashboard-main,
body.dashboard-dark .dashboard-content {
  background: #111827;
}

body.dashboard-dark .dashboard-brand,
body.dashboard-dark .dashboard-headline h1,
body.dashboard-dark .dashboard-headline h2,
body.dashboard-dark .dashboard-section h2,
body.dashboard-dark .template-card h3,
body.dashboard-dark .join-row strong,
body.dashboard-dark .broker-row strong,
body.dashboard-dark .broker-stats strong,
body.dashboard-dark .deployed-card h3 {
  color: #eef4ff;
}

body.dashboard-dark .dashboard-nav-item,
body.dashboard-dark .dashboard-top-icons button,
body.dashboard-dark .deploy-head button,
body.dashboard-dark .template-pager .link-button,
body.dashboard-dark .template-pager strong {
  color: #cbd5e1;
}

body.dashboard-dark .template-card p,
body.dashboard-dark .deployed-card p,
body.dashboard-dark .broker-row span,
body.dashboard-dark .broker-stats small,
body.dashboard-dark .card-label {
  color: #94a3b8;
}

body.dashboard-dark .template-pager button,
body.dashboard-dark .template-pager strong,
body.dashboard-dark .sidebar-collapse,
body.dashboard-dark .empty-icon {
  border-color: #334155;
  background: #1f2937;
}

.notifications-page,
.profile-page {
  min-height: calc(100vh - 72px);
  padding: 8px 0 56px;
  background: transparent;
}

.notifications-wrap,
.profile-wrap {
  width: 100%;
  max-width: 980px;
}

.notifications-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.notifications-header h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.notifications-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.notifications-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notifications-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-1);
  background: linear-gradient(135deg, rgba(99, 102, 241, .1), rgba(6, 182, 212, .1));
  padding: 7px 12px;
  border-radius: var(--r-pill);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.ghost-mini {
  padding: 9px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.ghost-mini:hover {
  background: var(--soft);
  border-color: var(--brand-3);
  color: var(--brand-1);
}

/* solid-mini defined below in the dashboard button block */

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.notification-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.notification-card.is-unread {
  border-color: rgba(99, 102, 241, .3);
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}

.notification-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: #fff;
}

.notif-tone-blue { background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 8px 16px rgba(79, 70, 229, .28); }
.notif-tone-teal { background: linear-gradient(135deg, #14b8a6, #06b6d4); box-shadow: 0 8px 16px rgba(20, 184, 166, .28); }
.notif-tone-violet { background: linear-gradient(135deg, #8b5cf6, #ec4899); box-shadow: 0 8px 16px rgba(139, 92, 246, .28); }
.notif-tone-slate { background: linear-gradient(135deg, #475569, #0f172a); box-shadow: 0 8px 16px rgba(15, 23, 42, .28); }

.notification-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.notification-body-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.notification-body-head strong {
  font-size: 15.5px;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  letter-spacing: -.01em;
}

.notification-body-head small {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.notification-body p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.notification-body .link-button {
  align-self: flex-start;
  margin-top: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--brand-1);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .18s ease;
}

.notification-body .link-button:hover {
  gap: 10px;
}

.notification-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-1);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .18);
  align-self: center;
}

.notifications-empty {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.notifications-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(6, 182, 212, .12));
  color: var(--brand-1);
}

.notifications-empty strong {
  color: var(--ink);
  font-size: 17px;
}

.profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 30px 34px;
  border-radius: var(--r-xl);
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .2), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(6, 182, 212, .35), transparent 50%),
    linear-gradient(135deg, #4f46e5 0%, #6366f1 45%, #8b5cf6 100%);
  margin-bottom: 26px;
  box-shadow: var(--shadow-lg);
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, #000 60%, transparent);
  pointer-events: none;
}

.profile-hero > * {
  position: relative;
}

.profile-hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
  font-family: "Manrope", sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .35);
}

.profile-hero-body h1 {
  margin: 8px 0 6px;
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.profile-hero-body p {
  margin: 0;
  font-size: 14px;
  opacity: .88;
}

.profile-hero-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .18);
}

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

.profile-hero-actions .ghost-mini {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  backdrop-filter: blur(8px);
}

.profile-hero-actions .ghost-mini:hover {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.profile-hero-actions .solid-mini {
  background: #fff;
  color: var(--brand-1);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .18);
}

.profile-hero-actions .solid-mini:hover {
  background: #f8fafc;
  color: var(--brand-1);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, .22);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.profile-card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 24px 26px 26px;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease;
}

.profile-card:hover {
  box-shadow: var(--shadow-lg);
}

.profile-card h2 {
  margin: 0 0 16px;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  letter-spacing: -.015em;
  color: var(--ink);
}

.profile-dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.profile-dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  font-size: 13.5px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}

.profile-dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-dl > div:first-child {
  padding-top: 0;
}

.profile-dl dt {
  color: var(--muted);
  font-weight: 600;
}

.profile-dl dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  word-break: break-word;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.profile-stats div {
  padding: 14px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #f8faff 0%, #f1f5ff 100%);
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.profile-stats strong {
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1;
}

.profile-stats span {
  color: var(--muted);
  font-size: 11px;
}

.profile-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
}

.profile-toggle-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.profile-toggle-row strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.01em;
}

.profile-toggle-row small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.profile-toggle-row input[type="checkbox"] {
  width: 46px;
  height: 26px;
  appearance: none;
  background: #e2e8f0;
  border-radius: var(--r-pill);
  position: relative;
  cursor: pointer;
  transition: background .2s ease;
  flex: none;
}

.profile-toggle-row input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .18);
  transition: transform .2s ease;
}

.profile-toggle-row input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
}

.profile-toggle-row input[type="checkbox"]:checked::before {
  transform: translateX(20px);
}

.profile-support-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.profile-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.profile-support-actions .ghost-mini {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.wallet-page {
  min-height: calc(100vh - 72px);
  padding: 8px 0 56px;
  background: transparent;
}

.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, #0f766e 0%, #2563eb 58%, #7c3aed 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 24px;
}

.dashboard-headline h1,
.dashboard-headline h2,
.dashboard-section h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  letter-spacing: -.02em;
}

.dashboard-headline h1 {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
}

.dashboard-section h2 {
  font-size: 20px;
  font-weight: 700;
}

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

.deploy-head h2 {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
}

.deploy-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.deploy-head button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

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

.summary-card {
  height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease;
}

.summary-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.summary-card[role="button"] {
  cursor: pointer;
}

.summary-card[role="button"]:focus-visible {
  outline: 3px solid rgba(74, 121, 255, .22);
  outline-offset: 3px;
}

.pnl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .18), transparent 40%),
    linear-gradient(135deg, #4f46e5 0%, #6366f1 45%, #06b6d4 100%);
  border-color: transparent;
}

.pnl-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 85%, rgba(255, 255, 255, .1), transparent 40%);
  pointer-events: none;
}

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

.pnl-card > small {
  display: block;
  padding: 28px 28px 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}

.pnl-card h3 {
  padding: 0 28px;
  font: 800 40px "Manrope", sans-serif;
  letter-spacing: -.03em;
  line-height: 1;
}

.pnl-card p {
  padding: 10px 28px 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.5;
}

.pnl-card footer {
  height: 68px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, .12);
  border-top: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}

.pnl-card footer strong {
  font: 700 15px "Manrope", sans-serif;
  letter-spacing: -.01em;
}

.badge-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
}

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

.card-label,
.broker-stats small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.broker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 18px;
  color: var(--ink);
}

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

.broker-row strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.broker-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.broker-row i {
  margin-left: auto;
  color: var(--muted-2);
}

.broker-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

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

.broker-stats strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font: 700 17px "Manrope", sans-serif;
  letter-spacing: -.02em;
}

.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: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

.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: linear-gradient(135deg, var(--brand-1), var(--brand-2));
}

.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: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: var(--r-md);
  color: var(--brand-1);
  background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(6, 182, 212, .12));
}

.deployed-card h3 {
  margin: 0;
  color: var(--ink);
  font: 700 18px "Manrope", sans-serif;
  letter-spacing: -.02em;
}

.deployed-card p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.solid-mini,
.join-btn,
.support-btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--r-sm);
  padding: 0 22px;
  font-family: "DM Sans", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, filter .18s ease;
}

.solid-mini {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--accent-cyan) 100%);
  box-shadow: var(--glow-brand);
}

.solid-mini:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(79, 70, 229, .32);
  filter: none;
}

.solid-mini:active {
  transform: translateY(0);
}

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

.join-btn {
  color: var(--brand-1);
  background: rgba(99, 102, 241, .1);
  border: 1px solid rgba(99, 102, 241, .25);
}

.join-btn:hover {
  background: rgba(99, 102, 241, .16);
  border-color: rgba(99, 102, 241, .4);
}

.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: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--accent-cyan));
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

.template-pager {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
}

.template-pager button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.template-pager button:hover {
  background: var(--soft);
  border-color: var(--brand-3);
  color: var(--brand-1);
}

.template-pager button:first-child {
  margin-right: 0;
  color: var(--muted);
}

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

.template-pager button:nth-of-type(2) {
  margin-left: 0;
}

.template-pager button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.template-pager strong {
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--r-xs);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.template-pager a,
.template-pager .link-button {
  width: auto;
  height: auto;
  padding: 0 6px;
  margin-left: 8px;
  border: 0;
  border-radius: 0;
  color: var(--brand-1);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.template-pager .link-button:hover {
  color: var(--brand-2);
}

.template-read-link {
  display: inline;
  border: 0;
  padding: 0;
  color: #2047ff;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

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

.template-card,
.join-card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.template-card:hover,
.join-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, .3);
}

.template-card {
  min-height: 220px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
}

.template-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font: 800 15px "Manrope", sans-serif;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.template-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-card a {
  color: var(--brand-1);
  font-size: 12.5px;
  font-weight: 700;
}

.template-card .solid-mini {
  display: inline-flex;
  align-self: stretch;
  margin-top: auto;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 22px;
  padding-right: 22px;
}

.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: #0f766e;
  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: #0f766e;
}

.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: #0f766e;
}

.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-results {
  margin-top: 18px;
}

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

.backtest-result-strip div {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}

.backtest-result-strip span {
  color: #8190aa;
  font-size: 11px;
  font-weight: 800;
}

.backtest-result-strip strong {
  color: #27324f;
  font-size: 14px;
  line-height: 1.25;
}

.profit {
  color: #22b96d;
}

.loss {
  color: #ff4d4f;
}

.backtest-equity-chart {
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  background: #eef8ff;
  padding: 14px 14px 10px;
}

.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: 15px;
}

.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;
  background: #fff;
}

.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: 1px solid #e6ebf3;
  border-radius: 10px;
  padding: 18px 18px 18px;
  background: #fff;
}

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

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

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

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

.backtest-bar-item span:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .22);
  outline-offset: 3px;
}

.backtest-bar-item span::after {
  content: attr(data-bar-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 12;
  width: max-content;
  max-width: 240px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  border-radius: 5px;
  padding: 8px 10px;
  color: #fff;
  background: #050505;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: opacity .14s ease, transform .14s ease;
}

.backtest-bar-item span::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 13;
  width: 8px;
  height: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) rotate(45deg);
  background: #050505;
  transition: opacity .14s ease, transform .14s ease;
}

.backtest-bar-item span:hover::after,
.backtest-bar-item span:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.backtest-bar-item span:hover::before,
.backtest-bar-item span:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
}

.backtest-calendar-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 206px;
  gap: 18px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0 0 18px;
  scroll-snap-type: x proximity;
  scrollbar-color: #8f8f8f #edf1f5;
  scrollbar-width: thin;
}

.backtest-calendar-row::-webkit-scrollbar {
  height: 12px;
}

.backtest-calendar-row::-webkit-scrollbar-track {
  background: #edf1f5;
  border-radius: 999px;
}

.backtest-calendar-row::-webkit-scrollbar-thumb {
  border: 3px solid #edf1f5;
  border-radius: 999px;
  background: #8f8f8f;
}

.backtest-month {
  position: relative;
  width: 206px;
  min-height: 246px;
  scroll-snap-align: start;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  padding: 17px 17px 16px;
  background: #fbfdff;
  text-align: center;
}

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

.backtest-month-weekdays {
  margin-bottom: 11px;
  color: #8b96aa;
  font-size: 13px;
  font-weight: 700;
}

.backtest-month-grid button,
.backtest-month-grid i {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  border-radius: 5px;
  background: #f2f4f7;
}

.backtest-month-grid button {
  cursor: pointer;
}

.backtest-month-grid i.empty {
  background: transparent;
}

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

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

.backtest-month-grid button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .22);
  outline-offset: 2px;
}

.backtest-month-grid button::after {
  content: attr(data-calendar-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 10;
  width: max-content;
  max-width: 220px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  border-radius: 5px;
  padding: 8px 10px;
  color: #fff;
  background: #050505;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: opacity .14s ease, transform .14s ease;
}

.backtest-month-grid button::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  z-index: 11;
  width: 8px;
  height: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) rotate(45deg);
  background: #050505;
  transition: opacity .14s ease, transform .14s ease;
}

.backtest-month-grid button:hover::after,
.backtest-month-grid button:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.backtest-month-grid button:hover::before,
.backtest-month-grid button:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
}

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

.backtest-month strong {
  font-size: 16px;
  font-weight: 900;
}

.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-table-wrap {
  overflow-x: auto;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  margin-top: 14px;
  background: #fff;
}

.backtest-transaction-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  color: #647086;
  font-size: 12px;
}

.backtest-transaction-table th {
  padding: 12px 14px;
  color: #8793a8;
  background: #f7f9fc;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.backtest-transaction-table td {
  padding: 12px 14px;
  border-top: 1px solid #eef2f7;
  font-weight: 700;
}

.backtest-transaction-table td:last-child,
.backtest-transaction-table th:last-child {
  text-align: right;
}

.trade-side {
  display: inline-flex;
  align-items: center;
  min-width: 58px;
  height: 24px;
  justify-content: center;
  border-radius: 999px;
  color: #2563eb;
  background: #eaf2ff;
  font-size: 11px;
  font-weight: 900;
}

.trade-side.short {
  color: #9333ea;
  background: #f3e8ff;
}

.backtest-transaction-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: #7d8798;
  font-size: 12px;
  font-weight: 800;
}

.backtest-transaction-pager div {
  display: inline-flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border: 1px solid #e6ebf3;
  border-radius: 999px;
  background: #fff;
}

.backtest-transaction-pager button,
.backtest-transaction-pager strong {
  width: 38px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  color: #25305e;
  background: transparent;
}

.backtest-transaction-pager button {
  cursor: pointer;
}

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

.backtest-transaction-pager button:disabled {
  color: #c2c6d0;
  cursor: not-allowed;
}

.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: #0f766e !important;
  background: #eaf1ff !important;
}

.sim-template-btn {
  margin-left: auto;
  border: 1px solid #2563eb !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: #0f766e;
  border-color: #0f766e;
  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: #0f766e;
  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: #0f766e;
}

.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 #d5e2e2;
  border-radius: 16px;
  padding: 28px 24px 36px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(15, 45, 62, .07);
  overflow: hidden;
}

.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: #0f766e;
}

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

.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: #0f766e;
  background: #e6f5f2;
}

.reports-primary-btn {
  height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  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 #d5e2e2;
  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(#0f766e 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: #f4f8f8;
}

.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;
  overflow-x: auto;
}

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

.reports-table th {
  padding: 12px 14px;
  color: #7f8ba2;
  background: #f4f8f8;
  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: #e6f5f2;
  color: #0f766e;
  font-size: 12px;
}

.reports-detail-row > td {
  padding: 0 14px 18px;
  background: #fbfdfc;
}

.reports-trade-breakdown {
  border: 1px solid #dbe7e5;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.reports-trade-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  color: #26354d;
  background: #f4f8f8;
}

.reports-trade-head strong {
  font: 800 13px "Manrope", sans-serif;
}

.reports-trade-head span {
  color: #6f7f98;
  font-size: 12px;
  font-weight: 800;
}

.reports-trade-list {
  display: grid;
}

.reports-trade-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) 96px 90px minmax(260px, 1.4fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-top: 1px solid #eef2f5;
}

.reports-trade-row strong {
  display: block;
  color: #26354d;
  font-size: 13px;
}

.reports-trade-row small {
  display: block;
  margin-top: 4px;
  color: #7b8798;
  font-size: 11px;
}

.reports-trade-row > span {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}

.reports-trade-row.filled > span {
  color: #15803d;
  background: #ecfdf3;
}

.reports-trade-row.placed > span {
  color: #2563eb;
  background: #eff6ff;
}

.reports-trade-row.rejected > span,
.reports-trade-row.failed > span,
.reports-trade-row.cancelled > span,
.reports-trade-row.canceled > span,
.reports-trade-row.error > span {
  color: #dc2626;
  background: #fef2f2;
}

.reports-trade-row b {
  color: #26354d;
  font-size: 12px;
}

.reports-trade-row p {
  margin: 0;
  color: #526178;
  font-size: 12px;
  line-height: 1.4;
}

.reports-trade-empty {
  padding: 14px;
  color: #6f7f98;
  font-size: 12px;
  font-weight: 800;
}

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

.failed-orders-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.failed-orders-summary div {
  min-height: 88px;
  border: 1px solid #dbe7e5;
  border-radius: 8px;
  padding: 16px;
  background: #fbfdfc;
}

.failed-orders-summary span {
  display: block;
  color: #728098;
  font-size: 12px;
  font-weight: 800;
}

.failed-orders-summary strong {
  display: block;
  margin-top: 8px;
  color: #23304a;
  font-size: 26px;
}

.failed-orders-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.failed-orders-table {
  min-width: 920px;
  width: 100%;
  border-collapse: collapse;
  color: #34405d;
}

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

.failed-orders-table td {
  border-bottom: 1px solid #edf1f6;
  padding: 15px 14px;
  vertical-align: top;
}

.failed-orders-table td strong {
  display: block;
  color: #26354d;
  font-size: 13px;
  font-weight: 800;
}

.failed-orders-table td span {
  display: block;
  margin-top: 5px;
  color: #7b8798;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}

.failed-orders-table mark {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  color: #dc2626;
  background: #fef2f2;
  font-size: 11px;
  font-weight: 900;
  text-transform: capitalize;
}

.failed-orders-table mark.cancelled,
.failed-orders-table mark.canceled {
  color: #b45309;
  background: #fffbeb;
}

.failed-orders-table p {
  max-width: 460px;
  margin: 0;
  color: #526178;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.failed-orders-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid #dbe7e5;
  border-radius: 10px;
  color: #526382;
  background: #fbfdfc;
  text-align: center;
}

.failed-orders-empty strong {
  color: #27324f;
  font-size: 15px;
}

.failed-orders-empty span {
  color: #7888a1;
  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;
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 8px 0 20px;
}

.market-chip {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.market-chip.up { border-top: 3px solid #16a34a; }
.market-chip.down { border-top: 3px solid #dc2626; }

.market-chip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #748198;
  letter-spacing: .3px;
}

.market-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0d5dd;
}

.market-live-dot.live {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .18);
}

.market-chip-price {
  font-size: 18px;
  font-weight: 800;
  color: #0d1220;
}

.market-chip-change {
  font-size: 12px;
  font-weight: 700;
}

.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 24px;
}

.activity-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.activity-card .dashboard-section-head {
  margin-bottom: 12px;
}

.live-strategy-list,
.recent-orders-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.live-strategy-list li,
.recent-orders-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  gap: 12px;
}

.live-strategy-list li:last-child,
.recent-orders-list li:last-child {
  border-bottom: 0;
}

.live-strategy-list li > div,
.recent-orders-list li > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.live-strategy-list li > div strong,
.recent-orders-list li > div strong {
  font-size: 14px;
  color: #0d1220;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-strategy-list li > div span,
.recent-orders-list li > div span {
  font-size: 12px;
  color: #748198;
  margin-top: 2px;
}

.order-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: #eef1f6;
  color: #4b5563;
}

.order-status.filled,
.order-status.placed { background: rgba(22, 163, 74, .12); color: #16a34a; }
.order-status.rejected,
.order-status.failed,
.order-status.cancelled,
.order-status.canceled,
.order-status.error { background: rgba(220, 38, 38, .12); color: #dc2626; }
.order-status.pending { background: rgba(245, 158, 11, .12); color: #b45309; }

.activity-empty {
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: #748198;
  font-size: 13px;
}

.activity-card .dashboard-section-head .link-button {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--brand-1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.activity-card .dashboard-section-head .link-button:hover {
  background: rgba(79, 70, 229, .08);
  border-color: rgba(79, 70, 229, .35);
  color: var(--brand-2);
}

.activity-empty .link-button {
  padding: 9px 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 70, 229, .2);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.activity-empty .link-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, .28);
  filter: brightness(1.03);
}

body.dashboard-dark .activity-card .dashboard-section-head .link-button {
  border-color: rgba(255, 255, 255, .12);
  color: #a5b4fc;
}

body.dashboard-dark .activity-card .dashboard-section-head .link-button:hover {
  background: rgba(129, 140, 248, .12);
  border-color: rgba(129, 140, 248, .4);
  color: #c7d2fe;
}

body.dashboard-dark .market-chip,
body.dashboard-dark .activity-card {
  background: #171d2a;
  border-color: rgba(255, 255, 255, .08);
}

body.dashboard-dark .market-chip-price {
  color: #e6ebf5;
}

body.dashboard-dark .live-strategy-list li > div strong,
body.dashboard-dark .recent-orders-list li > div strong {
  color: #e6ebf5;
}

body.dashboard-dark .live-strategy-list li,
body.dashboard-dark .recent-orders-list li {
  border-bottom-color: rgba(255, 255, 255, .06);
}

@media (max-width: 900px) {
  .activity-grid { grid-template-columns: 1fr; }
  .market-strip { grid-template-columns: repeat(2, 1fr); }
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 4px 0 20px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  color: #0d1220;
  min-height: 62px;
  box-shadow: var(--shadow-md);
}

.quick-action:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 121, 255, .4);
  box-shadow: var(--shadow-lg);
}

.quick-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(74, 121, 255, .12);
  color: #4a79ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.quick-action.done .quick-action-icon {
  background: rgba(22, 163, 74, .14);
  color: #16a34a;
}

.quick-action-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.quick-action-body strong {
  font-size: 13px;
  font-weight: 800;
  color: #0d1220;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-action-body span {
  font-size: 11px;
  color: #748198;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-action-status {
  color: #a5adb9;
  flex: 0 0 auto;
}

.quick-action.done .quick-action-status {
  color: #16a34a;
}

.positions-panel {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
  margin-top: 22px;
}

.positions-panel .dashboard-section-head {
  margin-bottom: 14px;
}

.positions-capital {
  display: block;
  font-size: 12px;
  color: #748198;
  margin-top: 4px;
}

.positions-capital strong {
  color: #0d1220;
  font-weight: 800;
}

.positions-table-wrap {
  overflow-x: auto;
}

.positions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.positions-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #748198;
  border-bottom: 1px solid var(--line-2);
  font-weight: 700;
}

.positions-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}

.positions-table tr:last-child td {
  border-bottom: 0;
}

.positions-table td strong {
  display: block;
  font-size: 13px;
  color: #0d1220;
  font-weight: 700;
}

.positions-table td span {
  display: block;
  font-size: 11px;
  color: #748198;
  margin-top: 2px;
}

body.dashboard-dark .quick-action,
body.dashboard-dark .positions-panel {
  background: #171d2a;
  border-color: rgba(255, 255, 255, .08);
}

body.dashboard-dark .quick-action-body strong,
body.dashboard-dark .positions-table td strong,
body.dashboard-dark .positions-capital strong {
  color: #e6ebf5;
}

body.dashboard-dark .positions-table th,
body.dashboard-dark .positions-capital {
  color: #a5adb9;
}

body.dashboard-dark .positions-table td,
body.dashboard-dark .positions-table th {
  border-bottom-color: rgba(255, 255, 255, .06);
}

.join-card {
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}

.join-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
}

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

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

.join-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 8px 18px rgba(79, 70, 229, .22);
}

.join-icon.video {
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 8px 18px rgba(239, 68, 68, .22);
}

.join-icon.instagram {
  background: linear-gradient(135deg, #ec4899, #f97316);
  box-shadow: 0 8px 18px rgba(236, 72, 153, .22);
}

.join-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.support-banner {
  position: relative;
  min-height: 220px;
  padding: 30px;
  border-radius: var(--r-xl);
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .16), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, .35), transparent 55%),
    linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #8b5cf6 100%);
  box-shadow: var(--shadow-md);
}

.support-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}

.support-banner > * {
  position: relative;
}

.support-banner h3 {
  margin: 0 0 12px;
  font: 800 22px "Manrope", sans-serif;
  letter-spacing: -.02em;
}

.support-banner p {
  max-width: 820px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  line-height: 1.6;
}

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

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

.support-btn.white {
  color: var(--brand-1);
  background: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .18);
}

.support-btn.white:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, .22);
}

.support-btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(8px);
}

.support-btn.ghost:hover {
  background: rgba(255, 255, 255, .22);
}

.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: 24px;
}

.broker-toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #5f86d7;
  font-size: 13px;
  line-height: 1.25;
  cursor: pointer;
  user-select: none;
}

.broker-toggle-row span {
  white-space: nowrap;
}

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

.broker-toggle-group i {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  border: 1px solid #d8deea;
  border-radius: 999px;
  background: #eef2f8;
  box-shadow: inset 0 1px 2px rgba(42, 52, 86, .08);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

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

.broker-toggle-input:checked + i {
  background: #4a79ff;
  border-color: #4a79ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

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

.broker-toggle-input:focus-visible + i {
  outline: 3px solid rgba(74, 121, 255, .22);
  outline-offset: 2px;
}

.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: #0f766e;
}

.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: #0f766e;
}

.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: #0f766e;
  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: #0f766e;
  background: #0f766e;
}

.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: #2563eb;
  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: #0f766e;
  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: #0f766e;
  background: #0f766e;
}

.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: #0f766e;
  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: #0f766e;
  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: #2563eb;
  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: #2563eb;
}

.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: #2563eb;
  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,
.selected-broker-card .broker-help-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5f86d7;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.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: #0f766e;
  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-shell.active {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: block;
    border-right: 0;
    border-bottom: 1px solid #d5e2e2;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
    min-width: 0;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .sidebar-top {
    height: 58px;
    padding: 0 16px;
    width: 100%;
  }

  .dashboard-brand {
    font-size: 20px;
  }

  .dashboard-brand .brand-logo {
    width: 32px;
    height: 32px;
  }

  .sidebar-collapse,
  .dashboard-usercard-wrap {
    display: none;
  }

  .dashboard-nav {
    display: flex;
    gap: 8px;
    padding: 10px 12px 12px;
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .dashboard-nav::-webkit-scrollbar {
    display: none;
  }

  .dashboard-nav-group {
    display: block;
    flex: 0 0 auto;
  }

  .dashboard-nav-item {
    width: auto;
    height: 40px;
    gap: 8px;
    border: 1px solid #dbe6e5;
    border-radius: 999px;
    padding: 0 13px;
    background: #fff;
    font-size: 14px;
    white-space: nowrap;
  }

  .dashboard-nav-item > i,
  .dashboard-subnav {
    display: none !important;
  }

  .dashboard-content {
    padding: 18px;
  }

  .dashboard-main,
  .dashboard-content,
  .dashboard-headline,
  .summary-grid,
  .template-grid,
  .bottom-grid,
  .dashboard-section {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .dashboard-shell.active,
  .dashboard-main {
    overflow-x: hidden;
  }

  .dashboard-topbar {
    height: 54px;
    padding: 0 18px;
  }

  .dashboard-headline h1,
  .deploy-head h2 {
    font-size: 24px;
  }

  .summary-card {
    height: auto;
    min-height: 210px;
    border-radius: 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: 14px 0 24px;
  }

  .strategy-builder-grid {
    gap: 14px;
  }

  .strategy-builder-card,
  .strategy-builder-type-card,
  .strategy-builder-instruments-card,
  .strategy-builder-legs-card,
  .strategy-builder-order-card,
  .strategy-builder-risk-card,
  .strategy-builder-features-card,
  .strategy-builder-name-card,
  .trade-strategy-card,
  .indicator-conditions-card,
  .indicator-order-card {
    grid-column: 1 / -1;
    grid-row: auto;
    min-width: 0;
  }

  .strategy-builder-card {
    border-radius: 14px;
    padding: 16px;
  }

  .strategy-builder-card h2 {
    font-size: 16px;
  }

  .strategy-builder-card p {
    font-size: 13px;
  }

  .builder-card-head,
  .instrument-mode-box {
    flex-direction: column;
    align-items: start;
  }

  .inline-choice-list {
    gap: 12px;
  }

  .builder-segmented {
    flex-wrap: wrap;
  }

  .builder-segmented button {
    min-width: 0;
    min-height: 38px;
    padding: 0 10px;
  }

  .builder-check-row,
  .builder-radio-row {
    align-items: flex-start;
    min-width: 0;
  }

  .builder-check-row input,
  .builder-radio-row input {
    flex: none;
    margin-top: 3px;
  }

  .builder-check-row span,
  .builder-radio-row span {
    min-width: 0;
    line-height: 1.25;
  }

  .instrument-mode-box {
    padding: 12px;
  }

  .instrument-mode-box p {
    max-width: none;
  }

  .leg-card {
    border-radius: 14px;
    padding: 14px;
  }

  .leg-card-head {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .leg-head-actions {
    justify-content: flex-start;
  }

  .qty-stepper {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

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

  .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,
  .failed-orders-summary {
    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) {
  .toast-host {
    left: 12px;
    right: 12px;
    bottom: 14px;
    width: auto;
  }

  .trade-toast {
    padding: 13px 12px;
  }

  .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 14px;
  }

  .dashboard-content {
    padding: 12px 10px 20px;
  }

  .strategy-builder-page {
    padding: 10px 0 88px;
  }

  .strategy-builder-grid {
    gap: 12px;
  }

  .strategy-builder-card {
    border-radius: 12px;
    padding: 14px;
  }

  .strategy-builder-option-list,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .builder-field label {
    font-size: 13px;
    line-height: 1.25;
  }

  .builder-field input,
  .builder-field select,
  .strategy-name-input {
    min-height: 42px;
    font-size: 13px;
  }

  .inline-choice-list.spread {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }

  .inline-choice-list.spread .builder-radio-row {
    min-height: 44px;
    align-items: center;
    border: 1px solid #d8deea;
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
  }

  .strategy-builder-footer {
    position: sticky;
    bottom: 0;
    z-index: 12;
    margin: 14px -10px -20px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(237, 244, 242, 0), var(--page) 32%);
  }

  .primary-builder-btn {
    width: 100%;
    height: 46px;
    border-radius: 12px;
  }

  .reports-page {
    padding: 20px 10px;
  }

  .reports-panel {
    border-radius: 12px;
    padding: 18px 12px;
  }

  .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-donut-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .reports-mode-toggle button {
    padding: 0 12px;
  }

  .reports-trade-row {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }

  .reports-trade-row p {
    grid-column: 1 / -1;
  }

  .reports-trade-row b {
    justify-self: end;
  }

  .failed-orders-summary div {
    min-height: 72px;
  }

  .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;
  }
}
