:root {
  --bg1: #040816;
  --bg2: #081127;
  --panel: rgba(10, 17, 36, 0.84);
  --panel-soft: rgba(255, 255, 255, 0.05);
  --line: rgba(140, 190, 255, 0.14);
  --text: #eef4ff;
  --muted: #9aa8c7;
  --green: #39e58c;
  --red: #ff5d7c;
  --cyan: #3de3ff;
  --violet: #8a5cff;
  --blue: #54a8ff;
  --orange: #ffb84d;
  --pink: #c45cff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 15%, rgba(90, 90, 255, 0.16), transparent 20%),
    radial-gradient(circle at 87% 10%, rgba(117, 41, 255, 0.18), transparent 20%),
    radial-gradient(circle at 50% 85%, rgba(0, 195, 255, 0.14), transparent 24%),
    linear-gradient(135deg, var(--bg1), var(--bg2) 42%, #030611 100%);
}

body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.hidden { display: none !important; }

.page {
  min-height: 100vh;
  padding: 20px;
}

.startup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(112, 84, 255, 0.22), transparent 28%),
    rgba(5, 7, 16, 0.88);
  backdrop-filter: blur(14px);
  transition: opacity .35s ease, visibility .35s ease;
}

.startup-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.broker-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.broker-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 16, 0.78);
  backdrop-filter: blur(10px);
}

.broker-modal__card {
  position: relative;
  z-index: 2;
  width: min(430px, 100%);
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(154, 124, 255, 0.24);
  background: linear-gradient(180deg, rgba(28, 29, 59, 0.98), rgba(16, 18, 34, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.broker-modal__badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(143, 99, 255, 0.14);
  color: #d8c8ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.broker-modal__card h3 {
  margin: 16px 0 0;
  font: 700 28px "Oxanium", sans-serif;
}

.broker-modal__card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.broker-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.broker-field span {
  color: #d9e3ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.broker-field input,
.broker-field select {
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(154, 124, 255, 0.26);
  background: rgba(18, 20, 42, 0.98);
  color: #f8fbff;
  padding: 0 14px;
  font: 700 15px "Rajdhani", sans-serif;
}

.broker-modal__error {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 78, 122, 0.12);
  color: #ffd3df;
  border: 1px solid rgba(255, 78, 122, 0.18);
}

.broker-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.broker-btn {
  flex: 1;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(154, 124, 255, 0.22);
  font: 700 15px "Rajdhani", sans-serif;
  cursor: pointer;
}

.broker-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #eef2ff;
}

.broker-btn--primary {
  background: linear-gradient(180deg, #37db84, #19985a);
  color: #fff;
  border: 0;
}

.startup-modal {
  width: min(520px, 100%);
  padding: 28px 26px;
  border-radius: 28px;
  border: 1px solid rgba(154, 124, 255, 0.24);
  background: linear-gradient(180deg, rgba(28, 29, 59, 0.98), rgba(16, 18, 34, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.startup-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(143, 99, 255, 0.16);
  color: #d9c9ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.startup-modal h2 {
  margin: 18px 0 0;
  font: 700 34px "Oxanium", sans-serif;
  line-height: 1.08;
}

.startup-modal p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.market-loader {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 118px;
  height: 58px;
  margin-right: 4px;
}

.market-loader--hero {
  width: 220px;
  height: 94px;
  margin: 22px auto 8px;
}

.market-loader__track {
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
}

.market-loader__candles {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.candle {
  position: relative;
  display: inline-block;
  width: 12px;
  border-radius: 4px;
  transform-origin: center bottom;
  animation: candleFloat 1.45s ease-in-out infinite;
  box-shadow: 0 0 14px rgba(255,255,255,0.12);
}

.market-loader--hero .candle {
  width: 18px;
  border-radius: 6px;
}

.candle::before,
.candle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
}

.candle::before {
  top: -10px;
  height: 10px;
}

.candle::after {
  bottom: -12px;
  height: 12px;
}

.market-loader--hero .candle::before {
  top: -16px;
  height: 16px;
}

.market-loader--hero .candle::after {
  bottom: -18px;
  height: 18px;
}

.candle--up {
  height: 28px;
  background: linear-gradient(180deg, #48f0bd, #1f9e70);
  box-shadow: 0 0 20px rgba(38, 241, 175, 0.24);
}

.candle--down {
  height: 22px;
  background: linear-gradient(180deg, #ff6e95, #cb2f5b);
  box-shadow: 0 0 20px rgba(255, 78, 122, 0.24);
}

.market-loader--hero .candle:nth-child(1) { height: 36px; animation-delay: 0s; }
.market-loader--hero .candle:nth-child(2) { height: 52px; animation-delay: .12s; }
.market-loader--hero .candle:nth-child(3) { height: 42px; animation-delay: .24s; }
.market-loader--hero .candle:nth-child(4) { height: 58px; animation-delay: .36s; }
.market-loader--hero .candle:nth-child(5) { height: 34px; animation-delay: .48s; }
.market-loader--hero .candle:nth-child(6) { height: 48px; animation-delay: .60s; }

.market-loader .candle:nth-child(1) { animation-delay: 0s; }
.market-loader .candle:nth-child(2) { animation-delay: .12s; }
.market-loader .candle:nth-child(3) { animation-delay: .24s; }
.market-loader .candle:nth-child(4) { animation-delay: .36s; }
.market-loader .candle:nth-child(5) { animation-delay: .48s; }

@keyframes candleFloat {
  0%, 100% { transform: translateY(0) scaleY(1); opacity: .82; }
  50% { transform: translateY(-4px) scaleY(1.06); opacity: 1; }
}

.startup-loader {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.startup-loader span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, #37db84, #15874f);
  box-shadow: 0 0 16px rgba(55, 219, 132, 0.45);
  animation: startupPulse 1.1s infinite ease-in-out;
}

.startup-loader span:nth-child(2) { animation-delay: .15s; }
.startup-loader span:nth-child(3) { animation-delay: .3s; }

.startup-modal small {
  display: block;
  margin-top: 16px;
  color: #cdd5ff;
  font-size: 13px;
  letter-spacing: .04em;
}

@keyframes startupPulse {
  0%, 80%, 100% { transform: scale(.72); opacity: .45; }
  40% { transform: scale(1); opacity: 1; }
}

.auth-gate {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  overflow: hidden;
}

.auth-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(110px);
  opacity: 0.95;
}

.auth-orb--left {
  left: -110px;
  top: 72px;
  width: 300px;
  height: 300px;
  background: rgba(34, 211, 238, 0.14);
}

.auth-orb--right {
  right: -70px;
  top: -30px;
  width: 340px;
  height: 340px;
  background: rgba(139, 92, 246, 0.16);
}

.auth-orb--bottom {
  left: 32%;
  bottom: -110px;
  width: 320px;
  height: 320px;
  background: rgba(16, 185, 129, 0.08);
}

.auth-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 576px;
}

.auth-shell__frame {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px);
}

.auth-shell__frame::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 255, 0.74), transparent);
}

.auth-shell__inner {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.08), transparent 26%),
    radial-gradient(circle at left center, rgba(139, 92, 246, 0.10), transparent 32%),
    rgba(13, 16, 32, 0.90);
  padding: 24px 28px 28px;
}

.auth-logo-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  margin: 0 auto 26px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.auth-logo-box__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,211,238,0.12), transparent 45%, rgba(139,92,246,0.12));
}

.auth-logo-box__corner {
  position: absolute;
  width: 24px;
  height: 24px;
}

.auth-logo-box__corner--tl {
  left: -2px;
  top: -2px;
  border-left: 2px solid rgba(34, 211, 238, 0.40);
  border-top: 2px solid rgba(34, 211, 238, 0.40);
  border-top-left-radius: 16px;
}

.auth-logo-box__corner--br {
  right: -2px;
  bottom: -2px;
  border-right: 2px solid rgba(167, 139, 250, 0.40);
  border-bottom: 2px solid rgba(167, 139, 250, 0.40);
  border-bottom-right-radius: 16px;
}

.auth-logo-box__label {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  color: #7d87b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .30em;
  text-transform: uppercase;
}

.trader-core {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
}

.trader-core__halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.12);
  filter: blur(20px);
}

.trader-core__ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(196, 181, 253, 0.20);
  background: radial-gradient(circle at center, rgba(167,139,250,0.14), rgba(15,23,42,0.04));
  box-shadow: 0 0 35px rgba(167, 139, 250, 0.18);
}

.trader-core__candles {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.trader-core__candle {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.22);
}

.trader-core__candle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -11px;
  width: 2px;
  height: calc(100% + 18px);
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
}

.trader-core__candle--violet {
  background: linear-gradient(180deg, #c084fc, #d946ef);
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.70);
}

.trader-core__candle--cyan {
  background: linear-gradient(180deg, #67e8f9, #8b5cf6);
  box-shadow: 0 0 16px rgba(103, 232, 249, 0.65);
}

.trader-core__candle--pink {
  background: linear-gradient(180deg, #f9a8d4, #8b5cf6);
  box-shadow: 0 0 14px rgba(244, 114, 182, 0.60);
}

.trader-core__candle--tall {
  height: 46px;
  width: 18px;
}

.trader-core__candle--small {
  height: 24px;
}

.trader-core__line {
  position: absolute;
  bottom: 10px;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,181,253,0.82), transparent);
  box-shadow: 0 0 12px rgba(196, 181, 253, 0.72);
}

.auth-copy__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.auth-copy__text {
  flex: 1;
  min-width: 0;
}

.auth-copy__eyebrow {
  color: #7b849f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.auth-copy__title {
  margin: 12px 0 0;
  font: 600 30px "Oxanium", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #f4f7ff;
}

.auth-copy__subtitle {
  margin: 12px 0 0;
  max-width: 520px;
  color: #878fb0;
  font-size: 14px;
  line-height: 1.7;
}

.auth-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.auth-tab,
.auth-back-button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  color: #7d87a8;
  font: 700 12px "Rajdhani", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}

.auth-tab:hover,
.auth-back-button:hover {
  color: #e2e8ff;
  transform: translateY(-1px);
}

.auth-tab--active {
  background: rgba(34, 211, 238, 0.14);
  color: #c2f5ff;
}

.auth-back-button {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255, 255, 255, 0.04);
  color: #d7ddf5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color .28s ease, background .28s ease, box-shadow .28s ease, transform .28s ease;
}

.auth-field:hover {
  border-color: rgba(34, 211, 238, 0.20);
  background: rgba(255,255,255,0.06);
}

.auth-field:focus-within {
  border-color: rgba(103, 232, 249, 0.35);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.auth-field__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5d667f;
  transition: color .25s ease;
}

.auth-field:focus-within .auth-field__icon {
  color: #a6f1ff;
}

.auth-field__icon svg {
  width: 20px;
  height: 20px;
}

.auth-field input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #eef2ff;
  font: 700 15px "Rajdhani", sans-serif;
}

.auth-field input::placeholder {
  color: #646d89;
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  margin-top: 2px;
  border: 0;
  border-radius: 22px;
  padding: 0 18px;
  color: #081019;
  font: 700 12px "Rajdhani", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .24s ease, box-shadow .24s ease, filter .24s ease;
}

.auth-submit:hover {
  transform: translateY(-1px) scale(1.01);
}

.auth-submit:disabled,
.auth-resend-button:disabled,
.auth-back-button:disabled,
.auth-tab:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.auth-submit--sky {
  background: linear-gradient(90deg, #22d3ee, #38bdf8, #8b5cf6);
  box-shadow: 0 18px 50px rgba(34, 211, 238, 0.25);
}

.auth-submit--violet {
  background: linear-gradient(90deg, #22d3ee, #60a5fa, #a78bfa);
  box-shadow: 0 18px 50px rgba(96, 165, 250, 0.24);
}

.auth-submit--emerald {
  background: linear-gradient(90deg, #34d399, #22d3ee, #38bdf8);
  box-shadow: 0 18px 50px rgba(45, 212, 191, 0.23);
}

.auth-submit__icon {
  display: inline-flex;
  align-items: center;
}

.auth-submit__icon svg {
  width: 16px;
  height: 16px;
}

.auth-footnote-panel {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #7f89a8;
  font-size: 12px;
  line-height: 1.7;
}

.auth-verify-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(34, 211, 238, 0.10);
  background: rgba(34, 211, 238, 0.05);
}

.auth-verify-card__eyebrow {
  color: #b2f5ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.auth-verify-card p {
  margin: 12px 0 0;
  color: #c5cae0;
  font-size: 14px;
  line-height: 1.8;
}

.auth-verify-card strong {
  color: #f4f7ff;
  margin: 0 4px;
}

.auth-code-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.auth-code-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  color: #eef2ff;
  font: 700 21px "Oxanium", sans-serif;
  letter-spacing: .18em;
}

.auth-code-box.is-filled {
  border-color: rgba(110, 231, 255, 0.26);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 1px rgba(110, 231, 255, 0.08);
}

.auth-verify-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #7f89a8;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.auth-resend-button {
  border: 0;
  background: transparent;
  color: #8be9ff;
  font: 700 12px "Rajdhani", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-inline-message {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #dde6ff;
  font-size: 13px;
  line-height: 1.6;
}

.auth-inline-message--success {
  border-color: rgba(16, 185, 129, 0.20);
  background: rgba(16, 185, 129, 0.10);
  color: #abf5d0;
}

.auth-inline-message--error {
  border-color: rgba(255, 78, 122, 0.20);
  background: rgba(255, 78, 122, 0.10);
  color: #ffd1dd;
}

.auth-inline-message--info {
  border-color: rgba(110, 231, 255, 0.18);
  background: rgba(110, 231, 255, 0.08);
  color: #d3f8ff;
}

.catalog-app {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 28px;
  background: rgba(14, 15, 31, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.45);
}

.topbar,
.live-strip,
.headline,
.status-box,
.info-box,
.catalog-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(28, 29, 59, 0.96), rgba(20, 21, 42, 0.96));
  box-shadow: 0 18px 40px rgba(3, 6, 18, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #2a2455, #241f49);
}

.topbar__filters,
.live-strip__badges,
.live-strip__meta,
.headline__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__filters {
  flex: 1 1 auto;
}

.topbar__filters,
.headline__actions,
.live-strip__badges {
  flex-wrap: wrap;
}

.topbar__account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  gap: 10px;
}

.profile-menu {
  position: relative;
  min-width: 0;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 208px;
  height: 44px;
  padding: 0 38px 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(154, 124, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(18, 20, 42, 0.98);
  color: #f8fbff;
  font: 700 14px "Rajdhani", sans-serif;
  letter-spacing: 0.03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
}

.profile-trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid #d6ddff;
  border-bottom: 2px solid #d6ddff;
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.88;
}

.profile-trigger strong {
  display: block;
  flex: 1 1 auto;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(55, 219, 132, 0.14);
  border: 1px solid rgba(38, 241, 175, 0.18);
  color: #8fffd0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(38, 241, 175, 0.10);
}

.plan-badge[data-plan="free"],
.plan-status-pill[data-plan="free"] {
  color: #dbe5ff;
  border-color: rgba(146, 164, 255, 0.18);
  background: rgba(104, 122, 214, 0.12);
  box-shadow: 0 0 18px rgba(104, 122, 214, 0.14);
}

.plan-badge[data-plan="vip"],
.plan-status-pill[data-plan="vip"] {
  color: #9dffef;
  border-color: rgba(74, 241, 224, 0.24);
  background: linear-gradient(135deg, rgba(25, 158, 255, 0.14), rgba(139, 92, 246, 0.16));
  box-shadow: 0 0 20px rgba(74, 241, 224, 0.14);
}

.plan-badge[data-plan="premium"],
.plan-status-pill[data-plan="premium"] {
  color: #ffe5a6;
  border-color: rgba(255, 196, 88, 0.24);
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.16), rgba(168, 85, 247, 0.16));
  box-shadow: 0 0 24px rgba(255, 196, 88, 0.16);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  width: 210px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(154, 124, 255, 0.26);
  background: linear-gradient(180deg, rgba(24, 27, 52, 0.98), rgba(16, 18, 34, 0.98));
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42);
}

.profile-dropdown__item {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(154, 124, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef2ff;
  font: 700 14px "Rajdhani", sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.profile-dropdown__item + .profile-dropdown__item {
  margin-top: 8px;
}

.profile-dropdown__item:hover {
  transform: translateY(-1px);
  background: rgba(143, 99, 255, 0.12);
  border-color: rgba(154, 124, 255, 0.28);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.profile-dropdown__item--danger {
  color: #ffd6df;
  border-color: rgba(255, 78, 122, 0.18);
  background: rgba(255, 78, 122, 0.08);
}

.profile-dropdown__item--danger:hover {
  background: rgba(255, 78, 122, 0.14);
  border-color: rgba(255, 78, 122, 0.30);
}

.filter {
  min-width: 138px;
}

.filter-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 2;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  opacity: 0.92;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 0 10px rgba(119, 145, 255, 0.18));
}

.filter-icon--mode {
  background-image: url("/assets/icons/cil-options-horizontal.png");
}

.filter-icon--broker {
  background-image: url("/assets/icons/cil-briefcase.png");
}

.filter-icon--pairs {
  background-image: url("/assets/icons/cil-view-module.png");
}

.filter-icon--time {
  background-image: url("/assets/icons/cil-clock.png");
}

.filter-icon--gale {
  background-image: url("/assets/icons/cil-chart-line.png");
}

.filter--mode {
  min-width: 208px;
}

.filter--small {
  min-width: 118px;
}

.filter select,
.multi-select-trigger,
.refresh-btn,
.telegram-btn {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(154, 124, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(18, 20, 42, 0.98);
  color: #f8fbff;
  padding: 0 38px 0 42px;
  font: 700 15px "Rajdhani", sans-serif;
  letter-spacing: 0.03em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.filter {
  position: relative;
}

.filter.is-plan-locked select,
.filter.is-plan-locked .multi-select-trigger {
  border-color: rgba(255, 196, 88, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 196, 88, 0.06),
    0 16px 32px rgba(7, 10, 24, 0.26);
}

.filter.is-plan-locked::before,
.filter--multi.is-plan-locked::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  border: 1px solid rgba(255, 196, 88, 0.16);
  box-shadow: 0 0 22px rgba(255, 196, 88, 0.08);
  pointer-events: none;
}

.plan-lock-chip {
  position: absolute;
  top: -10px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 88, 0.20);
  background: linear-gradient(180deg, rgba(255, 184, 77, 0.18), rgba(108, 46, 230, 0.18));
  color: #fff1c7;
  font: 700 10px "Rajdhani", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 10px 18px rgba(6, 9, 22, 0.26);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.plan-lock-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 214, 130, 0.30);
  box-shadow: 0 14px 22px rgba(6, 9, 22, 0.32);
}

.filter:not(.filter--multi)::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #cfd8ff;
  border-bottom: 2px solid #cfd8ff;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
  opacity: 0.9;
}

.filter--multi {
  min-width: 150px;
}

.multi-select-trigger {
  position: relative;
  padding-right: 38px;
  text-align: left;
  cursor: pointer;
}

.filter--multi::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #cfd8ff;
  border-bottom: 2px solid #cfd8ff;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
  opacity: 0.9;
}

.multi-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: min(300px, 86vw);
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(154, 124, 255, 0.26);
  background: linear-gradient(180deg, rgba(24, 27, 52, 0.98), rgba(16, 18, 34, 0.98));
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.36);
}

.multi-option {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  color: #eef2ff;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.multi-option__label {
  flex: 1;
  min-width: 0;
}

.multi-option__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font: 700 10px "Rajdhani", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 18px rgba(6, 9, 22, 0.22);
}

.multi-option__badge--vip {
  color: #9dffef;
  border: 1px solid rgba(74, 241, 224, 0.24);
  background: linear-gradient(135deg, rgba(25, 158, 255, 0.14), rgba(139, 92, 246, 0.16));
}

.multi-option__badge--premium {
  color: #ffe5a6;
  border: 1px solid rgba(255, 196, 88, 0.24);
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.16), rgba(168, 85, 247, 0.16));
}

.multi-option--locked {
  border: 1px solid rgba(255, 196, 88, 0.14);
  background: rgba(255, 196, 88, 0.05);
}

.multi-option--locked:hover {
  background: rgba(255, 196, 88, 0.09);
  border-color: rgba(255, 196, 88, 0.22);
}

.multi-option--locked input {
  pointer-events: none;
  opacity: 0.35;
}

.broker-modal__card--wide {
  width: min(720px, 100%);
}

.broker-modal__hint {
  margin-top: -4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(56, 189, 248, 0.08);
  color: #d7f1ff;
  font-size: 13px;
  line-height: 1.45;
}

.auth-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.profile-overview__item {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(154, 124, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.profile-overview__item span {
  display: block;
  color: #98a2d2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.profile-overview__item strong {
  display: block;
  margin-top: 8px;
  font: 700 18px "Oxanium", sans-serif;
  color: #ffffff;
}

.profile-password-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(154, 124, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.profile-password-card h4 {
  margin: 0 0 2px;
  font: 700 20px "Oxanium", sans-serif;
  color: #ffffff;
}

.profile-password-card p {
  margin: 0;
}

.multi-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.multi-option input {
  accent-color: #37db84;
}

.filter select:hover,
.filter select:focus {
  outline: none;
  border-color: rgba(38, 241, 175, 0.36);
  box-shadow: 0 0 0 1px rgba(38, 241, 175, 0.12), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.filter select option {
  color: #eef2ff;
  background: #171b34;
}

.telegram-btn,
.refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
}

.telegram-btn {
  min-width: 112px;
  background: linear-gradient(180deg, #28b6ff, #1589e0);
}

.refresh-btn {
  min-width: 134px;
  background: linear-gradient(180deg, #37db84, #19985a);
}

.refresh-btn {
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease;
}

.refresh-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(11, 24, 18, 0.30);
}

.refresh-btn.is-plan-locked {
  color: #ffeab8;
  border-color: rgba(255, 196, 88, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 196, 88, 0.10), rgba(97, 45, 179, 0.12)),
    rgba(18, 20, 42, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 32px rgba(8, 11, 24, 0.26);
}

.refresh-btn.is-plan-locked:hover {
  filter: brightness(1.06);
}

.refresh-btn__lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  opacity: 0.92;
}

.plan-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(154, 124, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.catalog-more-indicator {
  margin: 18px auto 8px;
  width: fit-content;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(154, 124, 255, 0.18);
  background: linear-gradient(180deg, rgba(38, 42, 83, 0.92), rgba(23, 25, 48, 0.96));
  color: #d9e0ff;
  font: 700 12px "Rajdhani", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(5, 8, 18, 0.22);
}

.plan-status-pill strong {
  color: #fff;
}

.upgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 940;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.8vw, 26px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.upgrade-modal::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.upgrade-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.upgrade-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(109, 66, 255, 0.18), transparent 28%),
    rgba(5, 7, 16, 0.82);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .22s ease;
}

.upgrade-modal.is-open .upgrade-modal__backdrop {
  opacity: 1;
}

.upgrade-modal__card {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100vw - 32px));
  max-height: min(840px, calc(100dvh - 40px));
  padding: 24px;
  border-radius: 32px;
  border: 1px solid rgba(154, 124, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(27, 30, 58, 0.98), rgba(13, 15, 29, 0.98));
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.48),
    0 0 56px rgba(61, 227, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  opacity: 0;
  transform: translateY(18px) scale(0.972);
  transition: transform .24s ease, opacity .24s ease;
}

.upgrade-modal__card::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.upgrade-modal.is-open .upgrade-modal__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.upgrade-modal__card:focus {
  outline: none;
}

.upgrade-modal__card::before {
  content: "";
  position: absolute;
  inset: -140px auto auto -140px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(88, 93, 255, 0.18);
  filter: blur(90px);
  pointer-events: none;
}

.upgrade-modal__card[data-accent="premium"]::before {
  background: rgba(255, 184, 77, 0.20);
}

.upgrade-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #eef3ff;
  font: 700 15px "Rajdhani", sans-serif;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.upgrade-modal__close:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.20);
}

.upgrade-modal__badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.16);
  color: #ddd0ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.upgrade-modal__card h3 {
  margin: 14px 0 0;
  max-width: 760px;
  font: 700 34px "Oxanium", sans-serif;
  line-height: 1.05;
}

.upgrade-modal__card p {
  margin: 10px 0 0;
  max-width: 820px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.48;
}

.upgrade-modal__reason {
  display: inline-flex;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 196, 88, 0.16);
  background: rgba(255, 196, 88, 0.08);
  color: #ffe5ab;
  font-weight: 600;
  line-height: 1.4;
}

.upgrade-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.upgrade-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 16px 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(154, 124, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(12, 15, 29, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.upgrade-plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.9;
}

.upgrade-plan-card--free::before {
  box-shadow: inset 0 0 0 1px rgba(126, 145, 255, 0.06);
}

.upgrade-plan-card--vip::before {
  box-shadow: inset 0 0 0 1px rgba(74, 241, 224, 0.08), 0 0 36px rgba(74, 241, 224, 0.06);
}

.upgrade-plan-card--premium::before {
  box-shadow: inset 0 0 0 1px rgba(255, 196, 88, 0.10), 0 0 42px rgba(255, 196, 88, 0.08);
}

.upgrade-plan-card.is-current {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.upgrade-plan-card.is-target {
  border-color: rgba(255, 196, 88, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.24);
}

.upgrade-plan-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.upgrade-plan-card__identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.upgrade-plan-card__tier {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.upgrade-plan-card--vip .upgrade-plan-card__tier {
  background: linear-gradient(135deg, rgba(25, 158, 255, 0.18), rgba(139, 92, 246, 0.18));
  color: #abfff6;
}

.upgrade-plan-card--premium .upgrade-plan-card__tier {
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.20), rgba(168, 85, 247, 0.18));
  color: #ffe9b4;
}

.upgrade-plan-card__spotlight {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.upgrade-plan-card__spotlight--vip {
  color: #c7fff6;
  border-color: rgba(74, 241, 224, 0.16);
  background: linear-gradient(135deg, rgba(40, 213, 255, 0.12), rgba(139, 92, 246, 0.14));
  box-shadow: 0 0 18px rgba(40, 213, 255, 0.08);
}

.upgrade-plan-card__spotlight--premium {
  color: #ffe7b5;
  border-color: rgba(255, 196, 88, 0.18);
  background: linear-gradient(135deg, rgba(255, 207, 109, 0.14), rgba(168, 85, 247, 0.12));
  box-shadow: 0 0 20px rgba(255, 196, 88, 0.10);
}

.upgrade-plan-card__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 13px 11px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(10, 13, 24, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.upgrade-plan-card--vip .upgrade-plan-card__price {
  border-color: rgba(40, 213, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 26px rgba(40, 213, 255, 0.04);
}

.upgrade-plan-card--premium .upgrade-plan-card__price {
  border-color: rgba(255, 196, 88, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 30px rgba(255, 196, 88, 0.05);
}

.upgrade-plan-card__price-note {
  color: #98a2d2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.upgrade-plan-card__price-old {
  width: fit-content;
  color: rgba(230, 236, 255, 0.48);
  font: 600 15px "Rajdhani", sans-serif;
  letter-spacing: .04em;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(230, 236, 255, 0.34);
}

.upgrade-plan-card__price-current {
  display: inline-flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  color: #ffffff;
  font: 700 30px "Oxanium", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1;
}

.upgrade-plan-card__price-current span {
  color: #c8d3f7;
  font: 700 14px "Rajdhani", sans-serif;
  letter-spacing: .10em;
  text-transform: uppercase;
  padding-bottom: 3px;
}

.upgrade-plan-card__price--free {
  gap: 6px;
}

.upgrade-plan-card__price--free .upgrade-plan-card__price-current {
  font-size: 28px;
}

.upgrade-plan-card__range {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  width: fit-content;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #eef3ff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.2;
}

.upgrade-plan-card__features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #e9eefc;
  font-size: 14px;
}

.upgrade-plan-card__features li {
  position: relative;
  padding-left: 16px;
  line-height: 1.4;
}

.upgrade-plan-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee7ff;
  box-shadow: 0 0 10px rgba(110, 231, 255, 0.65);
}

.upgrade-plan-card--premium .upgrade-plan-card__features li::before {
  background: #ffcf6d;
  box-shadow: 0 0 10px rgba(255, 207, 109, 0.65);
}

.upgrade-plan-card__button {
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  border-radius: 16px;
  border: 1px solid rgba(154, 124, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #eef2ff;
  font: 700 14px "Rajdhani", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.upgrade-plan-card__button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.upgrade-plan-card__button:disabled {
  opacity: 0.68;
  cursor: default;
  transform: none;
  filter: none;
  box-shadow: none;
}

.upgrade-plan-card__button--ghost {
  color: #cbd5f7;
}

.upgrade-plan-card__button--vip {
  color: #0b1522;
  border-color: rgba(74, 241, 224, 0.22);
  background: linear-gradient(135deg, #28d5ff, #8b5cf6);
  box-shadow: 0 18px 34px rgba(39, 180, 255, 0.18);
}

.upgrade-plan-card__button--premium {
  color: #1c1102;
  border-color: rgba(255, 196, 88, 0.22);
  background: linear-gradient(135deg, #ffcf6d, #f59e0b);
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.18);
}

.upgrade-plan-card.is-current .upgrade-plan-card__button {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: #f3f6ff;
}

.upgrade-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.upgrade-modal__footnote {
  color: var(--muted);
  line-height: 1.45;
}

.upgrade-modal__compare {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(154, 124, 255, 0.20);
  background: rgba(255, 255, 255, 0.04);
  color: #eef2ff;
  font: 700 13px "Rajdhani", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .upgrade-modal,
  .upgrade-modal__backdrop,
  .upgrade-modal__card {
    transition: none;
  }

  .upgrade-modal__card {
    transform: none;
  }
}

.upgrade-toast-host {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 930;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
}

.upgrade-toast {
  width: min(360px, calc(100vw - 28px));
  padding: 16px 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(154, 124, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(24, 27, 52, 0.96), rgba(12, 15, 28, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity .26s ease, transform .26s ease;
  pointer-events: auto;
}

.upgrade-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.upgrade-toast.is-hiding {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
}

.upgrade-toast[data-target-plan="vip"] {
  border-color: rgba(74, 241, 224, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34), 0 0 28px rgba(74, 241, 224, 0.08);
}

.upgrade-toast[data-target-plan="premium"] {
  border-color: rgba(255, 196, 88, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34), 0 0 28px rgba(255, 196, 88, 0.08);
}

.upgrade-toast__eyebrow {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #eef2ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.upgrade-toast__title {
  margin-top: 12px;
  font: 700 22px "Oxanium", sans-serif;
  line-height: 1.1;
}

.upgrade-toast__body {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.upgrade-toast__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.upgrade-toast__badges span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #eef2ff;
  font-size: 11px;
  font-weight: 700;
}

.upgrade-toast__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.upgrade-toast__button,
.upgrade-toast__dismiss {
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(154, 124, 255, 0.18);
  font: 700 13px "Rajdhani", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.upgrade-toast__button {
  flex: 1;
  color: #081019;
  background: linear-gradient(135deg, #28d5ff, #8b5cf6);
}

.upgrade-toast[data-target-plan="premium"] .upgrade-toast__button {
  background: linear-gradient(135deg, #ffcf6d, #f59e0b);
  color: #1c1102;
}

.upgrade-toast__dismiss {
  width: 42px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef2ff;
}

@media (max-width: 980px) {
  .upgrade-modal {
    padding: 14px 10px;
  }

  .upgrade-modal__card {
    width: min(100%, 720px);
    max-height: calc(100dvh - 28px);
    padding: 20px 16px 18px;
    border-radius: 24px;
  }

  .upgrade-plan-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .upgrade-modal__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .upgrade-modal__compare {
    width: 100%;
  }

  .upgrade-plan-card__button {
    min-height: 52px;
  }
}

.live-strip,
.headline,
.status-box,
.info-box {
  margin-top: 14px;
  border-radius: 20px;
}

.live-strip {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.live-badge,
.priority-badge,
.meta-pill,
.service-badge,
.results-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .03em;
}

.live-badge {
  color: #81ffc4;
  background: rgba(16, 185, 129, 0.12);
}

.priority-badge {
  color: #d8c8ff;
  background: rgba(143, 99, 255, 0.12);
}

.meta-pill {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.meta-pill strong {
  color: #fff;
  margin-left: 6px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background: #2cf3a9;
  box-shadow: 0 0 10px rgba(44, 243, 169, 0.9);
}

.headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
}

.headline__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 700px;
}

.headline__eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(143, 99, 255, 0.14);
  color: #d8c8ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.headline h1 {
  margin: 0;
  font: 700 34px "Oxanium", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.headline p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.headline__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.service-badge {
  color: #d9cbff;
  background: rgba(143, 99, 255, 0.14);
  transition: background .24s ease, color .24s ease, transform .24s ease, box-shadow .24s ease;
}

.results-badge {
  color: #d6dbf8;
  background: rgba(255, 255, 255, 0.05);
  gap: 10px;
  padding: 0 16px;
  transition: background .24s ease, transform .24s ease, box-shadow .24s ease;
}

.results-badge strong {
  font: 700 22px "Oxanium", sans-serif;
  color: #ffffff;
}

.results-badge span {
  display: inline-block;
  max-width: 118px;
  line-height: 1.05;
  text-align: left;
}

.status-box {
  padding: 14px 16px;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.status-box__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.status-box__line strong {
  font-size: 20px;
}

.status-box__line span {
  color: var(--muted);
}

.status-box__line--small {
  margin-top: 8px;
}

.status-box__line--small span {
  line-height: 1.45;
}

.info-box {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: opacity .24s ease, transform .24s ease;
}

.info-box strong {
  display: block;
  font-size: 20px;
}

.info-box span,
.info-box p {
  margin: 5px 0 0;
  color: var(--muted);
}

#loadingState {
  align-items: center;
}

.error-box strong {
  color: #fff;
}

.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid rgba(143, 99, 255, 0.2);
  border-top-color: #8f63ff;
  animation: spin 1s linear infinite;
}

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

.cards-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  transition: opacity .3s ease, transform .3s ease, filter .3s ease;
}

.cards-grid.is-empty {
  opacity: 0.22;
  filter: grayscale(0.15) brightness(0.78);
}

.cards-grid.is-updating {
  opacity: 0.5;
  transform: translateY(6px);
  filter: saturate(0.88);
}

.catalog-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 18px;
  min-height: 338px;
  animation: cardReveal .36s ease both;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(38, 241, 175, 0.35);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35), 0 0 24px rgba(38, 241, 175, 0.12);
}

.catalog-card__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(38, 241, 175, 0.10), transparent 38%);
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.catalog-card__header,
.catalog-card__body,
.catalog-card__footer,
.card-chips {
  display: flex;
}

.catalog-card__header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.pair-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pair-copy {
  min-width: 0;
}

.pair-flags {
  display: flex;
  align-items: center;
}

.flag {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06) center/cover no-repeat;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.flag--quote {
  margin-left: -10px;
}

.otc-badge {
  margin-left: -10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(255, 124, 47, 0.28);
}

.pair-name {
  font: 700 23px "Oxanium", sans-serif;
}

.pair-sub {
  margin-top: 3px;
  font-size: 11px;
  color: #8f99ca;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.card-rank {
  text-align: right;
}

.strategy-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a3addb;
}

.assertividade {
  margin-top: 6px;
  font: 700 24px "Oxanium", sans-serif;
  color: var(--green);
}

.seal {
  display: none !important;
}

.card-chips {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.chip--direction { background: rgba(16, 185, 129, 0.12); color: #7af3bf; }
.chip--trend { background: rgba(30, 167, 255, 0.12); color: #89ddff; }
.chip--timeframe { background: rgba(143, 99, 255, 0.12); color: #d2b7ff; }

.catalog-card__body {
  flex-direction: row;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  align-items: flex-end;
}

.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 0 0 44%;
  min-width: 150px;
  max-width: 172px;
}

.stats-row {
  display: grid;
  gap: 10px;
}

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

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

.stat span {
  display: block;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7f89bc;
}

.stat strong {
  display: block;
  margin-top: 4px;
  color: #22efaa;
  font-size: 13px;
}

.stat small {
  display: block;
  margin-top: 2px;
  color: #9ea8d8;
  font-size: 11px;
}

.stat--hit strong {
  color: #6ef6ff;
}

.stat--loss strong {
  color: #ffb8c9;
}

.history-wrap {
  flex: 0 0 128px;
  width: 128px;
  min-width: 128px;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  width: 100%;
}

.history-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(4, 8, 18, 0.24);
}

.history-box::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 70%);
  opacity: 0.34;
}

.history-box.win {
  border-color: rgba(66, 252, 177, 0.24);
}

.history-box.history-box--gale-0 {
  background: linear-gradient(180deg, rgba(44, 243, 169, 0.98), rgba(18, 188, 121, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 16px rgba(44, 243, 169, 0.22);
}

.history-box.history-box--gale-1 {
  background: linear-gradient(180deg, rgba(35, 223, 149, 0.94), rgba(12, 148, 96, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 14px rgba(35, 223, 149, 0.16);
}

.history-box.history-box--gale-2 {
  background: linear-gradient(180deg, rgba(18, 186, 121, 0.92), rgba(8, 108, 72, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 12px rgba(18, 186, 121, 0.14);
}

.history-box.loss,
.history-box.history-box--loss-cycle {
  background: linear-gradient(180deg, rgba(255, 93, 124, 0.98), rgba(198, 29, 73, 0.84));
  border-color: rgba(255, 161, 183, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 0 16px rgba(255, 93, 124, 0.18);
}

.history-box.neutral {
  background: linear-gradient(180deg, rgba(119, 133, 197, 0.60), rgba(82, 96, 155, 0.36));
}

.history-box__markers,
.history-box__loss-marker {
  position: relative;
  z-index: 1;
}

.history-box__markers {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.history-box__marker {
  width: 2px;
  height: 9px;
  border-radius: 999px;
  background: rgba(246, 252, 255, 0.95);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.42);
}

.history-box__loss-marker {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ff7a9b, #d71c55);
  border: 1px solid rgba(255, 224, 232, 0.32);
  box-shadow: 0 0 10px rgba(255, 93, 124, 0.44);
}

.history-legend,
.catalog-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.history-legend {
  flex-wrap: wrap;
  margin-top: 8px;
  color: #7f89bc;
  font-size: 9px;
  letter-spacing: .10em;
  text-transform: uppercase;
  justify-content: flex-start;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
}

.dot--win { background: #2cf3a9; box-shadow: 0 0 8px rgba(44, 243, 169, 0.8); }
.dot--g1 { background: #22df95; box-shadow: 0 0 8px rgba(34, 223, 149, 0.74); }
.dot--g2 { background: #12ba79; box-shadow: 0 0 8px rgba(18, 186, 121, 0.68); }
.dot--loss { background: #ff5d7c; box-shadow: 0 0 8px rgba(255, 93, 124, 0.78); }

.catalog-card__footer {
  margin-top: 12px;
  color: #7f89bc;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.catalog-app,
.catalog-app button,
.catalog-app input,
.catalog-app select,
.catalog-app textarea,
.broker-modal,
.broker-modal button,
.broker-modal input,
.broker-modal select,
.upgrade-modal,
.upgrade-modal button {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.catalog-app {
  position: relative;
  max-width: 1220px;
  padding: 18px;
  border-radius: 32px;
  border: 1px solid rgba(140, 190, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(61, 227, 255, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(138, 92, 255, 0.10), transparent 32%),
    linear-gradient(180deg, rgba(10, 17, 36, 0.84), rgba(7, 12, 26, 0.92));
  box-shadow:
    0 30px 120px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(61, 227, 255, 0.04);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.catalog-app::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(61, 227, 255, 0.06), transparent 22%, transparent 72%, rgba(138, 92, 255, 0.08)),
    radial-gradient(circle at top right, rgba(94, 127, 255, 0.10), transparent 24%);
}

.catalog-app > * {
  position: relative;
  z-index: 1;
}

.topbar,
.control-surface,
.live-strip,
.headline,
.status-box,
.info-box,
.catalog-card {
  border: 1px solid rgba(140, 190, 255, 0.12);
  background: linear-gradient(180deg, rgba(10, 17, 36, 0.80), rgba(7, 12, 26, 0.92));
  box-shadow:
    0 20px 48px rgba(3, 6, 18, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.topbar {
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(10, 17, 36, 0.82), rgba(7, 12, 26, 0.95));
}

.topbar__intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}

.topbar__eyebrow,
.refresh-hub__eyebrow,
.filters-board__eyebrow,
.headline__eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(130, 160, 255, 0.14);
  background: rgba(10, 18, 40, 0.46);
  color: #c9d5f7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(61, 227, 255, 0.05), 0 0 28px rgba(97, 120, 255, 0.10);
}

.topbar__intro h2,
.refresh-hub h3,
.filters-board__header h3,
.headline h1,
.status-box__line strong,
.info-box strong,
.upgrade-modal__card h3,
.profile-password-card h4 {
  font-family: "Oxanium", sans-serif;
}

.topbar__intro h2 {
  margin: 0;
  font: 700 34px "Oxanium", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.topbar__intro p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.control-surface {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 16px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.refresh-hub,
.filters-board {
  position: relative;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(140, 190, 255, 0.12);
  background: linear-gradient(180deg, rgba(10, 17, 36, 0.82), rgba(7, 12, 26, 0.94));
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.refresh-hub::before,
.filters-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(61, 227, 255, 0.08), transparent 26%),
    radial-gradient(circle at bottom left, rgba(138, 92, 255, 0.10), transparent 32%);
}

.refresh-hub > *,
.filters-board > * {
  position: relative;
  z-index: 1;
}

.refresh-hub__header,
.filters-board__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.refresh-hub__copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.refresh-hub h3,
.filters-board__header h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
}

.refresh-hub__message,
.filters-board__header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.filters-board__header p {
  max-width: 360px;
}

.refresh-status-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 214px;
  min-height: 116px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(140, 190, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(8, 14, 30, 0.84);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.refresh-status-button__label {
  color: #a7b6dc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.refresh-status-button strong {
  font: 700 34px "Oxanium", sans-serif;
  line-height: 1;
  color: #f4f7ff;
}

.refresh-status-button[data-plan="free"] strong {
  color: #dbe5ff;
}

.refresh-status-button[data-plan="vip"] strong {
  color: #9ff7ef;
}

.refresh-status-button[data-plan="premium"] strong {
  color: #ffe7b5;
}

.refresh-status-button.is-loading strong {
  color: #d9f8ff;
}

.refresh-upsell-hint {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 196, 88, 0.16);
  background: linear-gradient(135deg, rgba(255, 207, 109, 0.10), rgba(138, 92, 255, 0.10));
  color: #ffe8b7;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.filters-board__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.filter-tier {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(140, 190, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(7, 12, 26, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.filter-tier--vip {
  border-color: rgba(61, 227, 255, 0.14);
}

.filter-tier--premium {
  border-color: rgba(255, 196, 88, 0.16);
}

.filter-tier__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-tier__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.filter-tier__badge[data-plan="free"] {
  color: #dbe5ff;
  border: 1px solid rgba(146, 164, 255, 0.18);
  background: rgba(104, 122, 214, 0.12);
}

.filter-tier__badge[data-plan="vip"] {
  color: #9dffef;
  border: 1px solid rgba(74, 241, 224, 0.24);
  background: linear-gradient(135deg, rgba(25, 158, 255, 0.14), rgba(139, 92, 246, 0.16));
}

.filter-tier__badge[data-plan="premium"] {
  color: #ffe5a6;
  border: 1px solid rgba(255, 196, 88, 0.24);
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.16), rgba(168, 85, 247, 0.16));
}

.filter-tier__copy strong {
  display: block;
  font: 700 18px "Oxanium", sans-serif;
}

.filter-tier__copy span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.filter-tier__controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.filter-tier__controls .filter--mode,
.filter-tier__controls .filter--multi,
.filter-tier__controls #galeFilter {
  grid-column: 1 / -1;
}

.filter,
.filter--mode,
.filter--multi {
  min-width: 0;
}

.filter select,
.multi-select-trigger,
.telegram-btn,
.refresh-btn {
  height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(140, 190, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(8, 14, 30, 0.84);
  color: #eef4ff;
  padding: 0 42px 0 44px;
  font: 600 14px Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.filter select:hover,
.filter select:focus,
.multi-select-trigger:hover,
.multi-select-trigger:focus {
  outline: none;
  border-color: rgba(61, 227, 255, 0.26);
  box-shadow: 0 0 0 1px rgba(61, 227, 255, 0.08), 0 14px 32px rgba(0, 0, 0, 0.20);
}

.filter.is-plan-locked select,
.filter.is-plan-locked .multi-select-trigger {
  border-color: rgba(255, 196, 88, 0.20);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 196, 88, 0.05),
    0 18px 34px rgba(7, 10, 24, 0.24);
}

.multi-select-menu {
  width: min(360px, 90vw);
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(140, 190, 255, 0.14);
  background: linear-gradient(180deg, rgba(10, 17, 36, 0.96), rgba(7, 12, 26, 0.98));
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.multi-section + .multi-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(140, 190, 255, 0.10);
}

.multi-section__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.multi-section__title span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #eef4ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.multi-section__title small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.multi-option {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
}

.multi-option:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(140, 190, 255, 0.12);
}

.multi-option__label {
  font-size: 14px;
  font-weight: 600;
}

.multi-option__badge {
  font: 700 10px Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.10em;
}

.unlock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.unlock-chip {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(140, 190, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.unlock-chip.is-locked {
  opacity: 0.76;
  border-style: dashed;
}

.unlock-chip__group {
  display: block;
  color: #9eb0d9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.unlock-chip strong {
  display: block;
  margin-top: 8px;
  color: #f4f7ff;
  font-size: 14px;
  line-height: 1.35;
}

.unlock-chip small {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.unlock-chip[data-plan="vip"] small {
  color: #9dffef;
  border: 1px solid rgba(74, 241, 224, 0.24);
  background: linear-gradient(135deg, rgba(25, 158, 255, 0.14), rgba(139, 92, 246, 0.16));
}

.unlock-chip[data-plan="premium"] small {
  color: #ffe5a6;
  border: 1px solid rgba(255, 196, 88, 0.24);
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.16), rgba(168, 85, 247, 0.16));
}

.live-strip,
.headline,
.status-box,
.info-box {
  margin-top: 16px;
  border-radius: 24px;
}

.plan-status-pill,
.live-badge,
.priority-badge,
.meta-pill,
.service-badge,
.results-badge {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.headline {
  padding: 22px;
}

.headline h1 {
  font-size: 36px;
  line-height: 1.04;
}

.headline p,
.status-box__line span,
.info-box span,
.info-box p {
  line-height: 1.65;
}

.profile-trigger,
.profile-dropdown__item,
.broker-field input,
.broker-field select,
.broker-btn {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

@media (max-width: 1080px) {
  .control-surface,
  .filters-board__grid {
    grid-template-columns: 1fr;
  }

  .refresh-hub__header,
  .filters-board__header {
    flex-direction: column;
  }

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

  .auth-copy__header {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-tabs {
    align-self: flex-start;
  }

  .topbar,
  .live-strip,
  .headline,
  .catalog-card__body {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar__filters,
  .live-strip__badges,
  .live-strip__meta,
  .headline__actions {
    flex-wrap: wrap;
  }

  .topbar__account {
    width: 100%;
    justify-content: flex-start;
  }

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

  .headline {
    align-items: stretch;
  }

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

  .multi-select-menu {
    width: 100%;
  }

  .stats-grid,
  .history-wrap {
    max-width: none;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }
}

@media (max-width: 680px) {
  .control-surface {
    gap: 12px;
  }

  .topbar__intro h2 {
    font-size: 28px;
  }

  .refresh-hub,
  .filters-board {
    padding: 18px;
    border-radius: 22px;
  }

  .refresh-status-button {
    width: 100%;
    min-width: 0;
    min-height: 96px;
  }

  .filters-board__grid,
  .unlock-grid,
  .filter-tier__controls {
    grid-template-columns: 1fr;
  }

  .filter-tier__controls .filter--mode,
  .filter-tier__controls .filter--multi,
  .filter-tier__controls #galeFilter {
    grid-column: auto;
  }

  .auth-gate {
    padding: 18px 10px;
  }

  .auth-shell__frame {
    padding: 10px;
    border-radius: 26px;
  }

  .auth-shell__inner {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .auth-logo-box {
    width: 138px;
    height: 138px;
    margin-bottom: 22px;
  }

  .auth-copy__title {
    font-size: 30px;
  }

  .auth-tabs {
    width: 100%;
  }

  .auth-tab,
  .auth-back-button {
    flex: 1;
    justify-content: center;
    display: inline-flex;
    align-items: center;
  }

  .auth-code-grid {
    gap: 8px;
  }

  .auth-code-box {
    min-height: 48px;
    font-size: 18px;
  }

  .auth-verify-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .page {
    padding: 10px;
  }

  .startup-modal h2 {
    font-size: 28px;
  }

  .startup-modal p {
    font-size: 16px;
  }

  .catalog-app {
    padding: 10px;
    border-radius: 20px;
  }

  .topbar {
    padding: 12px;
    gap: 12px;
  }

  .topbar__intro p,
  .refresh-hub__message,
  .filters-board__header p {
    font-size: 13px;
  }

  .topbar,
  .live-strip,
  .headline,
  .status-box,
  .info-box,
  .catalog-card {
    border-radius: 18px;
  }

  .topbar__filters,
  .live-strip__badges,
  .live-strip__meta,
  .headline__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar__account {
    order: -1;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .topbar__filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .topbar__filters > * {
    min-width: 0;
  }

  .filter--mode,
  .filter--multi,
  #galeFilter {
    grid-column: 1 / -1;
  }

  .topbar__account,
  .profile-menu,
  .profile-trigger {
    width: 100%;
  }

  .profile-trigger {
    min-width: 0;
    min-height: 48px;
    justify-content: space-between;
    padding-right: 42px;
  }

  .profile-trigger strong {
    max-width: none;
  }

  .profile-dropdown {
    position: static;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
  }

  .auth-row,
  .profile-overview {
    grid-template-columns: 1fr;
  }

  .filter,
  .telegram-btn,
  .refresh-btn,
  .service-badge,
  .results-badge,
  .meta-pill,
  .live-badge,
  .priority-badge {
    width: 100%;
  }

  .filter,
  .filter--mode,
  .filter--multi {
    min-width: 0;
  }

  .filter select,
  .multi-select-trigger,
  .telegram-btn,
  .refresh-btn {
    min-height: 48px;
    font-size: 16px;
  }

  .multi-select-menu {
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
  }

  .headline h1 {
    font-size: 26px;
    line-height: 1.08;
  }

  .headline p {
    font-size: 14px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .catalog-card {
    padding: 16px 14px;
    min-height: 0;
  }

  .catalog-card__header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .pair-wrap {
    gap: 10px;
    align-items: center;
  }

  .pair-name {
    font-size: 21px;
    line-height: 1.04;
  }

  .pair-sub {
    font-size: 10px;
    letter-spacing: .12em;
  }

  .card-rank {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
  }

  .strategy-name {
    font-size: 12px;
    letter-spacing: .12em;
  }

  .assertividade {
    margin-top: 0;
    font-size: 22px;
    white-space: nowrap;
  }

  .card-chips {
    gap: 8px;
    margin-top: 14px;
  }

  .chip {
    min-height: 26px;
    font-size: 10px;
    letter-spacing: .10em;
  }

  .catalog-card__body {
    margin-top: 14px;
    gap: 12px;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .stats-row {
    display: contents;
  }

  .stat {
    min-width: 0;
    padding: 10px 11px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
  }

  .stat span {
    font-size: 9px;
  }

  .stat strong {
    font-size: 13px;
  }

  .stat small {
    font-size: 10px;
  }

  .history-wrap {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
  }

  .history-grid {
    gap: 4px;
  }

  .history-box {
    height: 14px;
  }

  .history-legend {
    gap: 10px 12px;
    font-size: 8px;
  }

  .catalog-card__footer {
    margin-top: 14px;
    gap: 6px 12px;
    font-size: 9px;
  }

  .results-badge span {
    max-width: none;
  }

  .plan-lock-chip {
    top: -8px;
    right: 10px;
  }

  .upgrade-modal {
    padding: 10px 8px;
  }

  .upgrade-modal__card {
    width: min(100%, calc(100vw - 16px));
    max-height: calc(100dvh - 16px);
    padding: 18px 14px 14px;
    border-radius: 22px;
  }

  .upgrade-modal__card h3 {
    font-size: 26px;
    max-width: none;
  }

  .upgrade-modal__card p {
    max-width: none;
    font-size: 14px;
    line-height: 1.44;
  }

  .upgrade-plan-card__identity {
    gap: 8px;
  }

  .upgrade-plan-card {
    padding: 15px 14px 16px;
    border-radius: 20px;
  }

  .upgrade-plan-card__spotlight {
    min-height: 26px;
    padding: 0 10px;
    font-size: 9px;
  }

  .upgrade-plan-card__price {
    padding: 12px 12px 11px;
  }

  .upgrade-plan-card__price-current {
    font-size: 28px;
  }

  .upgrade-plan-card__price-current span {
    font-size: 12px;
    padding-bottom: 2px;
  }

  .upgrade-plan-card__features {
    font-size: 13px;
  }

  .upgrade-plan-card__button {
    min-height: 50px;
    font-size: 13px;
    letter-spacing: .1em;
  }

  .upgrade-plan-card__price-old {
    font-size: 14px;
  }

  .upgrade-plan-card__range {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .upgrade-toast-host {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .upgrade-toast {
    width: 100%;
  }
}

@media (max-height: 860px) and (min-width: 981px) {
  .upgrade-modal {
    padding: 14px;
  }

  .upgrade-modal__card {
    max-height: calc(100dvh - 28px);
    padding: 22px;
  }

  .upgrade-modal__card h3 {
    font-size: 31px;
  }

  .upgrade-plan-card {
    gap: 10px;
    padding: 15px 15px 16px;
  }

  .upgrade-plan-card__features {
    gap: 7px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .topbar__filters {
    grid-template-columns: 1fr;
  }

  .filter--mode,
  .filter--multi,
  #galeFilter {
    grid-column: auto;
  }

  .card-rank {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Compact catalog polish */
.catalog-app,
.catalog-app button,
.catalog-app input,
.catalog-app select {
  font-family: "Rajdhani", Inter, "Segoe UI", Arial, sans-serif;
}

.catalog-app {
  max-width: 1180px;
  padding: 14px;
  border-radius: 28px;
  background: rgba(14, 15, 31, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.45);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #2a2455, #241f49);
}

.topbar__filters,
.live-strip__badges,
.live-strip__meta,
.headline__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__filters {
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.topbar__account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  gap: 10px;
}

.filter {
  min-width: 138px;
}

.filter--mode {
  min-width: 208px;
}

.filter--multi {
  min-width: 150px;
}

.filter select,
.multi-select-trigger,
.telegram-btn {
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(154, 124, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    rgba(18, 20, 42, 0.98);
  color: #f8fbff;
  padding: 0 38px 0 42px;
  font: 700 15px "Rajdhani", Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.filter select:hover,
.filter select:focus,
.multi-select-trigger:hover,
.multi-select-trigger:focus {
  outline: none;
  border-color: rgba(61, 227, 255, 0.24);
  box-shadow: 0 0 0 1px rgba(61, 227, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.multi-select-menu {
  width: min(300px, 86vw);
  padding: 10px;
  border-radius: 16px;
}

.multi-option {
  min-height: 42px;
}

.multi-option__label,
.profile-trigger,
.profile-dropdown__item,
.broker-field input,
.broker-field select,
.broker-btn,
.meta-pill,
.live-badge,
.priority-badge,
.service-badge,
.results-badge,
.chip,
.strategy-name,
.pair-sub,
.catalog-card__footer,
.stat span,
.stat small,
.status-box__line span,
.headline p {
  font-family: "Rajdhani", Inter, "Segoe UI", Arial, sans-serif;
}

.live-strip,
.headline,
.status-box,
.info-box {
  margin-top: 14px;
  border-radius: 20px;
}

.live-strip {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
}

.live-strip__badges,
.live-strip__meta,
.headline__actions {
  flex-wrap: wrap;
}

.meta-pill {
  min-height: 34px;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.meta-pill--premium {
  color: #ffe5a6;
  border: 1px solid rgba(255, 196, 88, 0.24);
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.16), rgba(168, 85, 247, 0.16));
}

.headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}

.headline h1 {
  margin: 0;
  font: 700 30px "Oxanium", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

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

.headline__eyebrow,
.filter span,
.plan-status-pill,
.plan-badge,
.profile-upgrade__status {
  font-family: "Rajdhani", Inter, "Segoe UI", Arial, sans-serif;
}

.profile-upgrade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(154, 124, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.profile-upgrade__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-upgrade__copy strong {
  font: 700 16px "Oxanium", sans-serif;
  color: #ffffff;
}

.profile-upgrade__copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.profile-upgrade__button {
  min-width: 210px;
  border: 0;
  color: #081019;
  background: linear-gradient(135deg, #28d5ff, #8b5cf6);
  box-shadow: 0 16px 32px rgba(39, 180, 255, 0.18);
}

.profile-upgrade__button[data-plan="premium"] {
  color: #1c1102;
  background: linear-gradient(135deg, #ffcf6d, #f59e0b);
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.18);
}

.profile-upgrade__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 196, 88, 0.22);
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.16), rgba(168, 85, 247, 0.14));
  color: #ffe8b7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .topbar,
  .live-strip,
  .headline,
  .catalog-card__body {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar__account {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .catalog-app {
    padding: 10px;
    border-radius: 20px;
  }

  .topbar {
    padding: 12px;
    gap: 12px;
  }

  .topbar__filters,
  .live-strip__badges,
  .live-strip__meta,
  .headline__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar__filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .topbar__filters > * {
    min-width: 0;
  }

  .filter--mode,
  .filter--multi,
  #galeFilter {
    grid-column: 1 / -1;
  }

  .profile-upgrade {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-upgrade__button,
  .profile-upgrade__status {
    width: 100%;
    min-width: 0;
  }
}

/* Fine tuning only: dropdown layering, compact upsell and discrete profile upgrade in the top menu. */
.topbar {
  position: relative;
  z-index: 40;
  overflow: visible;
}

.topbar__filters,
.topbar__account,
.profile-menu {
  position: relative;
}

.filter--multi {
  z-index: 45;
}

.filter--multi.is-open {
  z-index: 120;
}

.multi-select-menu {
  z-index: 140;
}

.profile-menu.is-open {
  z-index: 160;
}

.profile-dropdown {
  z-index: 170;
  width: 236px;
}

.profile-dropdown__item--upgrade {
  border-color: rgba(74, 241, 224, 0.18);
  background: linear-gradient(135deg, rgba(40, 213, 255, 0.16), rgba(139, 92, 246, 0.18));
}

.profile-dropdown__status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 196, 88, 0.18);
  background: rgba(255, 196, 88, 0.08);
  color: #ffe3a0;
  font: 700 11px "Rajdhani", Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-dropdown__status + .profile-dropdown__item,
.profile-dropdown__item + .profile-dropdown__status {
  margin-top: 8px;
}

#planStatusPill[role="button"],
#profilePlanView[role="button"],
#profileMaxPlanBadge[role="button"] {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease;
}

#planStatusPill[role="button"]:hover,
#profileMaxPlanBadge[role="button"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

#profilePlanView[role="button"] {
  display: inline-flex;
  width: fit-content;
  border-bottom: 1px dashed rgba(61, 227, 255, 0.34);
}

#profilePlanView[role="button"]:hover {
  color: #ffffff;
  border-bottom-color: rgba(61, 227, 255, 0.72);
}

#planStatusPill[role="button"]:focus-visible,
#profilePlanView[role="button"]:focus-visible,
#profileMaxPlanBadge[role="button"]:focus-visible {
  outline: 2px solid rgba(61, 227, 255, 0.72);
  outline-offset: 3px;
}

.meta-pill--premium {
  min-height: 30px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #d9caa0;
  border-color: rgba(255, 196, 88, 0.16);
  background: rgba(255, 196, 88, 0.08);
  box-shadow: none;
}
