/* ─── App shell (sidebar dashboard layout) ─── */
.app-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-deep);
}

.app-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--surface-solid);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  transition: transform 0.3s ease;
}

.app-sidebar-brand {
  padding: 1.35rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.app-sidebar-brand .logo {
  --brand-logo-size: 34px;
}

.app-sidebar-brand .logo-aurexa {
  font-size: 0.88rem;
  letter-spacing: 0.12em;
}

.app-sidebar-brand .logo-capital {
  font-size: 0.52rem;
  letter-spacing: 0.3em;
}

.app-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.app-sidebar-user #sidebarAvatar {
  flex-shrink: 0;
}

.app-sidebar-user-info {
  min-width: 0;
  flex: 1;
}

.app-sidebar-user-info strong {
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar-user-info small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.app-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.65rem;
}

.app-nav-section {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 0.75rem 0.35rem;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 0.15rem;
}

.app-nav-link:hover {
  background: rgba(var(--brand-rgb), 0.06);
  color: var(--text);
}

.app-nav-link.active {
  background: rgba(var(--brand-rgb), 0.12);
  color: var(--cyan);
  border: 1px solid var(--border-strong);
}

.app-nav-icon {
  width: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
  opacity: 0.9;
}

.app-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.app-wrapper {
  flex: 1;
  margin-left: 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.75rem;
  min-height: var(--app-topbar-h, 4.25rem);
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.app-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

.app-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: var(--success-dim);
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
}

.live-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.app-notify-btn {
  position: relative;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.app-notify-btn .notify-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-notify-wrap {
  position: relative;
}

.app-notify-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(360px, 92vw);
  max-height: 420px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  z-index: 300;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-notify-panel.hidden {
  display: none;
}

.app-notify-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
}

.app-notify-panel-head button {
  background: none;
  border: none;
  color: var(--cyan);
  font-size: 0.75rem;
  cursor: pointer;
}

.app-notify-list {
  overflow-y: auto;
  padding: 0.5rem;
}

.app-notify-item {
  padding: 0.85rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  margin-bottom: 0.35rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.app-notify-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

.app-notify-item.unread {
  background: rgba(var(--brand-rgb), 0.06);
  border-color: rgba(var(--brand-rgb), 0.15);
}

.app-notify-item.unread:hover {
  background: rgba(var(--brand-rgb), 0.1);
}

.app-notify-item strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.app-notify-item p {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-notify-item small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.app-notify-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.app-notify-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.65);
}

.app-notify-modal.hidden {
  display: none;
}

.app-notify-modal-card {
  width: 100%;
  max-width: 520px;
  max-height: min(80vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-notify-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.app-notify-modal-head h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
}

.app-notify-modal-meta {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.app-copy-modal-card {
  max-width: 420px;
}

.app-notify-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  color: var(--text);
  font-size: 0.92rem;
}

.app-topbar-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
}

.app-topbar-user .avatar-slot {
  flex-shrink: 0;
}

#sidebarAvatar .avatar-slot {
  flex-shrink: 0;
}

/* Dashboard feature strip — stacked crossfade showcase */
.dash-feature-strip {
  position: relative;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 120% at 12% 50%, rgba(var(--brand-rgb), 0.14), transparent 55%),
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.04), transparent 42%),
    var(--bg-elevated);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.dash-feature-glow {
  position: absolute;
  inset: -40% auto -40% -10%;
  width: 42%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), 0.16), transparent 68%);
  pointer-events: none;
  animation: dashFeatureGlowDrift 12s ease-in-out infinite alternate;
}

@keyframes dashFeatureGlowDrift {
  from { transform: translateX(0) scale(1); opacity: 0.55; }
  to { transform: translateX(18%) scale(1.08); opacity: 0.85; }
}

.dash-feature-stage {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  pointer-events: none;
}

.dash-feature-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(88px, 118px) 1fr;
  gap: 0.65rem 0.95rem;
  align-items: center;
  padding: 0.65rem 1.35rem 0.7rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.985);
  filter: blur(8px);
  pointer-events: none;
  will-change: opacity, transform, filter;
}

.dash-feature-slide.is-active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  z-index: 2;
}

a.dash-feature-slide-link {
  text-decoration: none;
  color: inherit;
}

a.dash-feature-slide-link.is-active {
  pointer-events: auto;
  cursor: pointer;
}

.dash-feature-slide.is-entering {
  animation: dashFeatureEnter 780ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dash-feature-slide.is-leaving {
  animation: dashFeatureLeave 620ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
  z-index: 1;
}

@keyframes dashFeatureEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.978);
    filter: blur(10px);
  }
  55% {
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes dashFeatureLeave {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(-16px) scale(1.012);
    filter: blur(8px);
  }
}

.dash-feature-accent-rail {
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, transparent, var(--slide-accent, var(--cyan)), transparent);
  opacity: 0;
  transform: scaleY(0.2);
  transform-origin: center;
}

.dash-feature-slide.is-active .dash-feature-accent-rail {
  animation: dashFeatureRail 680ms cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

@keyframes dashFeatureRail {
  from { opacity: 0; transform: scaleY(0.15); }
  to { opacity: 1; transform: scaleY(1); }
}

.dash-feature-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid rgba(var(--brand-rgb), 0.22);
  background: rgba(var(--brand-rgb), 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.22);
  transform: perspective(800px) rotateY(-4deg) rotateX(2deg);
  transform-origin: center left;
}

.dash-feature-slide.is-active .dash-feature-visual {
  animation: dashFeatureVisualIn 820ms cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

@keyframes dashFeatureVisualIn {
  from {
    opacity: 0;
    transform: perspective(800px) rotateY(-14deg) rotateX(6deg) translateX(-10px);
  }
  to {
    opacity: 1;
    transform: perspective(800px) rotateY(-4deg) rotateX(2deg) translateX(0);
  }
}

.dash-feature-visual-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
  pointer-events: none;
  z-index: 3;
}

.dash-feature-slide.is-active .dash-feature-visual-shine {
  animation: dashFeatureShine 1.1s ease-out 0.35s both;
}

@keyframes dashFeatureShine {
  to { transform: translateX(120%); }
}

.dash-feature-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.55;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1);
}

.dash-feature-visual.has-photo .dash-feature-photo {
  opacity: 0.9;
}

.dash-feature-slide.is-active .dash-feature-visual.has-photo .dash-feature-photo {
  animation: dashFeatureKenBurns 5.6s ease-out forwards;
}

@keyframes dashFeatureKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

.dash-feature-visual.has-photo .dash-feature-art {
  display: none;
}

.dash-feature-photo.is-hidden {
  display: none;
}

.dash-feature-art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.35rem;
}

.dash-feature-art svg {
  width: 100%;
  max-width: 96px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
}

.dash-feature-copy {
  min-width: 0;
}

.dash-feature-tag,
.dash-feature-title,
.dash-feature-sub {
  opacity: 0;
  transform: translateX(-14px);
}

.dash-feature-slide.is-active .dash-feature-tag {
  animation: dashFeatureCopyIn 560ms cubic-bezier(0.22, 1, 0.36, 1) 0.14s forwards;
}

.dash-feature-slide.is-active .dash-feature-title {
  animation: dashFeatureCopyIn 620ms cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

.dash-feature-slide.is-active .dash-feature-sub {
  animation: dashFeatureCopyIn 680ms cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes dashFeatureCopyIn {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dash-feature-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slide-accent, var(--cyan));
  margin-bottom: 0.25rem;
}

.dash-feature-title {
  font-size: clamp(0.85rem, 1.8vw, 0.98rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.dash-feature-sub {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 52ch;
}

.dash-feature-segments {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1.35rem 0.55rem;
}

.dash-feature-segment {
  flex: 1;
  position: relative;
  height: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  overflow: hidden;
}

.dash-feature-segment-track {
  position: absolute;
  inset: 0;
  background: rgba(var(--brand-rgb), 0.14);
  border-radius: inherit;
}

.dash-feature-segment-fill {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--brand-blue, var(--cyan)), var(--brand-green, var(--purple)));
  border-radius: inherit;
  box-shadow: 0 0 10px rgba(var(--brand-rgb), 0.35);
}

.dash-feature-segment.is-active .dash-feature-segment-track {
  background: rgba(var(--brand-rgb), 0.22);
}

.dash-feature-segment:focus-visible {
  outline: 2px solid rgba(var(--brand-rgb), 0.55);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .dash-feature-glow,
  .dash-feature-slide.is-entering,
  .dash-feature-slide.is-leaving,
  .dash-feature-slide.is-active .dash-feature-accent-rail,
  .dash-feature-slide.is-active .dash-feature-visual,
  .dash-feature-slide.is-active .dash-feature-visual-shine,
  .dash-feature-slide.is-active .dash-feature-visual.has-photo .dash-feature-photo,
  .dash-feature-slide.is-active .dash-feature-tag,
  .dash-feature-slide.is-active .dash-feature-title,
  .dash-feature-slide.is-active .dash-feature-sub {
    animation: none !important;
  }

  .dash-feature-slide {
    filter: none;
    transform: none;
  }

  .dash-feature-slide.is-active {
    opacity: 1;
    visibility: visible;
  }

  .dash-feature-tag,
  .dash-feature-title,
  .dash-feature-sub {
    opacity: 1;
    transform: none;
  }
}

.app-topbar-balance {
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.app-content[style*="max-width"] {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.app-content {
  padding: 1.5rem 1.75rem 2.5rem;
  flex: 1;
}

.app-greeting {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.app-greeting span {
  color: var(--cyan);
}

/* Hero cards */
.dash-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.dash-balance-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.85rem;
  background:
    linear-gradient(145deg, rgba(var(--brand-rgb), 0.06) 0%, transparent 42%),
    linear-gradient(180deg, rgba(13, 40, 71, 0.95) 0%, rgba(10, 22, 40, 0.98) 100%);
  border: 1px solid rgba(var(--brand-rgb), 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  min-height: 200px;
}

.dash-balance-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
  pointer-events: none;
}

.dash-balance-card::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 55%;
  height: 100%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), 0.12), transparent 68%);
  pointer-events: none;
}

.dash-balance-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 168px;
}

.dash-balance-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dash-balance-meta {
  min-width: 0;
}

.dash-balance-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.35rem;
}

.dash-balance-desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.dash-balance-currency {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.22);
}

.dash-balance-amount {
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0;
  padding-bottom: 0.35rem;
  line-height: 1.1;
}

.dash-today-pnl {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-bottom: auto;
  padding-bottom: 1.1rem;
}

.dash-today-pnl-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dash-today-pnl-value {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dash-today-pnl-value.is-positive {
  color: var(--success);
}

.dash-today-pnl-value.is-negative {
  color: var(--danger);
}

.dash-today-pnl-value.is-neutral {
  color: var(--text-muted);
}

.dash-balance-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .dash-balance-card {
  background:
    linear-gradient(145deg, rgba(0, 140, 160, 0.08) 0%, transparent 42%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-color: rgba(0, 120, 140, 0.16);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .dash-balance-card::before {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .dash-balance-currency {
  background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .dash-balance-actions {
  border-top-color: rgba(15, 23, 42, 0.08);
}

/* ─── Language switcher ─── */
.lang-switcher-wrap {
  display: flex;
  align-items: center;
  list-style: none;
}

.lang-switcher-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.lang-switcher-icon {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.85;
}

.lang-select {
  appearance: none;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 1.75rem 0.45rem 0.55rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238898aa' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  max-width: 160px;
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--cyan);
  outline: none;
}

[dir="rtl"] .lang-select {
  padding: 0.45rem 0.55rem 0.45rem 1.75rem;
  background-position: left 0.45rem center;
}

.lang-switcher-topbar {
  margin-right: 0.35rem;
}

.lang-switcher-fixed {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1099;
}

.lang-switcher-fixed .lang-select {
  max-width: 150px;
}

.app-sidebar-lang-slot {
  width: 100%;
  margin-bottom: 0.75rem;
}

.app-sidebar-lang-slot .lang-switcher-wrap,
.app-sidebar-lang-slot .lang-switcher-sidebar {
  width: 100%;
}

.app-sidebar-lang-slot .lang-switcher-label {
  width: 100%;
}

.app-sidebar-lang-slot .lang-select {
  flex: 1;
  width: 100%;
  max-width: none;
  font-size: 0.85rem;
}

.app-sidebar-theme-slot {
  width: 100%;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.app-theme-mount {
  width: 100%;
}

.app-theme-mount .theme-toggle.theme-toggle-row {
  width: 100%;
  height: auto;
  min-height: 40px;
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  box-shadow: none;
}

.app-theme-mount .theme-toggle.theme-toggle-row:hover {
  transform: none;
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.app-theme-mount .theme-toggle-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.user-dropdown-lang-slot {
  padding: 0.65rem 1rem 0.75rem;
}

.user-dropdown-lang-slot .lang-switcher-label {
  width: 100%;
}

.user-dropdown-lang-slot .lang-select {
  width: 100%;
  max-width: none;
  font-size: 0.85rem;
}

body.app-layout {
  --app-topbar-h: 4.25rem;
}

@media (max-width: 768px) {
  body.app-layout {
    --app-topbar-h: 3.75rem;
    --app-bottom-nav-h: calc(3.75rem + env(safe-area-inset-bottom, 0px));
  }

  body.app-layout.has-bottom-nav .app-content {
    padding-bottom: calc(1rem + var(--app-bottom-nav-h));
  }

  body.app-layout.has-bottom-nav.page-trading .app-content {
    padding-bottom: calc(0.75rem + var(--app-bottom-nav-h));
  }

  .app-notify-modal {
    padding-bottom: max(1rem, calc(1rem + var(--app-bottom-nav-h)));
  }

  body.app-layout.has-bottom-nav .app-copy-modal,
  body.app-layout.has-bottom-nav #userConfirmModal {
    align-items: center;
    padding-bottom: calc(1.25rem + var(--app-bottom-nav-h));
  }

  body.app-layout.has-bottom-nav .app-copy-modal-card {
    max-height: min(calc(100vh - var(--app-bottom-nav-h) - 2rem), 640px);
    overflow-y: auto;
  }

  .app-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 450;
    display: flex;
    align-items: stretch;
    min-height: 3.75rem;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--surface-solid);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
    -webkit-tap-highlight-color: transparent;
  }

  .app-bottom-nav.hidden {
    display: none !important;
  }

  .app-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.45rem 0.2rem 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.01em;
    transition: color 0.15s ease;
  }

  .app-bottom-nav-item:hover,
  .app-bottom-nav-item:focus-visible {
    color: var(--text);
  }

  .app-bottom-nav-item.active {
    color: var(--cyan);
  }

  .app-bottom-nav-icon {
    font-size: 1.15rem;
    line-height: 1;
  }

  .app-bottom-nav-label {
    max-width: 4.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
  }

  .dash-hide-mobile-tx {
    display: none !important;
  }

  /* Smartsupp — mobile app shell */
  body.app-layout:not(.app-sidebar-open) #smartsupp-widget-container,
  body.app-layout:not(.app-sidebar-open) #chat-application,
  body.app-layout:not(.app-sidebar-open) [id*="smartsupp"],
  body.app-layout:not(.app-sidebar-open) iframe[src*="smartsupp"] {
    z-index: 99999 !important;
  }

  /* Closed bubble: left side, above bottom nav */
  body.app-layout:not(.app-sidebar-open):not(.smartsupp-chat-open) #smartsupp-widget-container,
  body.app-layout:not(.app-sidebar-open):not(.smartsupp-chat-open) #chat-application {
    bottom: calc(var(--app-bottom-nav-h) + 0.5rem) !important;
    left: 0.85rem !important;
    right: auto !important;
  }

  /* Open panel: hide bottom nav, use full space below top bar */
  body.app-layout:not(.app-sidebar-open).smartsupp-chat-open .app-bottom-nav {
    display: none !important;
  }

  body.app-layout:not(.app-sidebar-open).smartsupp-chat-open #smartsupp-widget-container,
  body.app-layout:not(.app-sidebar-open).smartsupp-chat-open #chat-application {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100dvh - var(--app-topbar-h)) !important;
    max-height: calc(100dvh - var(--app-topbar-h)) !important;
  }

  body.app-layout:not(.app-sidebar-open).smartsupp-chat-open #smartsupp-widget-container iframe,
  body.app-layout:not(.app-sidebar-open).smartsupp-chat-open #chat-application iframe,
  body.app-layout:not(.app-sidebar-open).smartsupp-chat-open iframe[src*="smartsupp"] {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
  }

  .app-topbar-right > .lang-switcher-wrap.lang-switcher-topbar {
    display: none !important;
  }

  .navbar .nav-links > .lang-switcher-wrap-li {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .app-sidebar-lang-slot,
  .user-dropdown-lang-slot {
    display: none;
  }
}

.dash-status-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-status-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dash-status-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--btn-glow-text, #020817);
  flex-shrink: 0;
}

.dash-status-meta h3 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.dash-status-meta p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.dash-verify-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dash-verify-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.dash-verify-list li:last-child {
  border-bottom: none;
}

.dash-verify-ok {
  color: var(--success);
  font-weight: 600;
  font-size: 0.8rem;
}

.dash-verify-pending {
  color: var(--warning);
  font-weight: 600;
  font-size: 0.8rem;
}

/* Quick actions */
.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.dash-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.25rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}

.dash-quick-item:hover {
  border-color: var(--border-strong);
  color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.dash-quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--brand-rgb), 0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Crypto assets row */
.dash-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.dash-assets-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.dash-asset-chip {
  padding: 0.75rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.dash-asset-chip:hover {
  border-color: var(--border-strong);
}

.dash-asset-head {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.dash-asset-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--surface-2, rgba(255, 255, 255, 0.04));
}

.dash-asset-logo-fallback {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--surface-2, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border);
}

.dash-asset-meta {
  flex: 1;
  min-width: 0;
}

.dash-asset-meta strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.2;
}

.dash-asset-name {
  display: block;
  font-size: 0.62rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-asset-chip .price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-asset-chip .change {
  font-size: 0.68rem;
  font-weight: 600;
  flex-shrink: 0;
}

.dash-asset-chip .change.up { color: var(--success); }
.dash-asset-chip .change.down { color: var(--danger); }

/* Dashboard crypto news */
.dash-news-section {
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.dash-news-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.dash-news-section-head .dash-section-title {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.dash-news-section-head .crypto-news-updated {
  font-size: 0.72rem;
}

.dash-news-section .crypto-news-carousel-xs {
  padding: 0 1.75rem 0.85rem;
  margin: 0;
}

.dash-news-section .crypto-news-carousel-xs .crypto-news-item-carousel {
  flex: 0 0 min(178px, 64vw);
}

.dash-news-section .crypto-news-carousel-xs .crypto-news-thumb,
.dash-news-section .crypto-news-carousel-xs .crypto-news-thumb-fallback {
  height: 78px;
}

.dash-news-section .crypto-news-carousel-xs .crypto-news-thumb-fallback {
  font-size: 1.2rem;
}

.dash-news-section .crypto-news-carousel-xs .crypto-news-item-body {
  padding: 0.6rem 0.7rem 0.65rem;
}

.dash-news-section .crypto-news-carousel-xs .crypto-news-source {
  font-size: 0.6rem;
}

.dash-news-section .crypto-news-carousel-xs .crypto-news-title {
  font-size: 0.78rem;
  margin: 0.2rem 0 0.25rem;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.dash-news-section .crypto-news-carousel-xs .crypto-news-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  font-size: 0.68rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.dash-news-section .crypto-news-carousel-xs .crypto-news-time {
  font-size: 0.65rem;
}

.dash-news-section .crypto-news-carousel-xs .carousel-btn {
  width: 30px;
  height: 30px;
  font-size: 1.05rem;
}

.dash-news-section .crypto-news-carousel-xs .crypto-news-dots {
  margin-top: 0.55rem;
}

.dash-news-section .crypto-news-carousel-xs .carousel-dot {
  width: 6px;
  height: 6px;
}

.dash-panels {
  display: grid;
  gap: 1.25rem;
}

.dash-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.95rem;
}

.dash-panel-head a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
}

.dash-panel-head-tabs {
  gap: 0.75rem;
}

.dash-panel-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.dash-panel-tab {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.dash-panel-tab.active {
  color: var(--text);
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 12%, transparent);
}

.dash-panel-body {
  padding: 0;
}

.dash-panel-body .table-wrap {
  border: none;
  border-radius: 0;
}

.copy-trader-label {
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

.dash-tx-filters {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0;
  flex-wrap: wrap;
}

.dash-tx-filter {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.dash-tx-filter:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.dash-tx-filter.active {
  background: rgba(var(--brand-rgb), 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.dash-link-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dash-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s;
}

.dash-link-card strong {
  font-size: 0.95rem;
  color: var(--text);
}

.dash-link-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dash-link-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.dash-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.dash-accordion summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  background: var(--surface);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-accordion summary::-webkit-details-marker {
  display: none;
}

.dash-accordion[open] summary {
  border-bottom: 1px solid var(--border);
}

.dash-accordion-body {
  padding: 1.25rem;
  background: var(--surface-solid);
}

.dash-accordion-body .grid-2 {
  gap: 1.25rem;
}

.app-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 199;
}

@media (max-width: 1024px) {
  .app-topbar {
    padding: 0.75rem 1.25rem;
  }

  .app-greeting {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
  }

  .dash-hero-grid {
    grid-template-columns: 1fr;
  }

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

  .dash-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .dash-quick-item {
    padding: 0.75rem 0.4rem;
    font-size: 0.68rem;
  }

  .dash-quick-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .dash-balance-amount {
    font-size: clamp(2.15rem, 5vw, 2.75rem);
  }

  .dash-balance-card {
    padding: 1.5rem 1.4rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .app-sidebar {
    width: 72px;
  }

  .app-sidebar-user-info,
  .app-sidebar-brand .logo-name,
  .app-nav-link span:not(.app-nav-icon),
  .app-nav-section,
  .app-sidebar-footer .btn,
  .app-sidebar-theme-slot .theme-toggle-label {
    display: none;
  }

  .app-sidebar-theme-slot {
    margin-bottom: 0.5rem;
  }

  .app-sidebar-theme-slot .theme-toggle.theme-toggle-row {
    width: 40px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
    margin: 0 auto;
  }

  .app-nav-link {
    justify-content: center;
    padding: 0.75rem;
  }

  .app-nav-icon {
    margin: 0;
    font-size: 1.2rem;
  }

  .app-sidebar-user {
    justify-content: center;
    padding: 1rem 0.5rem;
  }

  .app-wrapper {
    margin-left: 72px;
  }

  .app-sidebar-brand {
    text-align: center;
    padding: 1rem 0.5rem;
  }

  .app-sidebar-brand .logo {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .app-sidebar {
    transform: translateX(-100%);
  }

  .app-sidebar.open {
    transform: translateX(0);
    z-index: 1110;
  }

  .app-sidebar-overlay.open {
    display: block;
    z-index: 1100;
  }

  body.app-sidebar-open .app-bottom-nav {
    display: none !important;
  }

  .app-sidebar-footer {
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }

  .app-wrapper {
    margin-left: 0;
  }

  .app-menu-toggle {
    display: block;
  }

  .app-topbar {
    padding: 0.65rem 1rem;
  }

  .dash-feature-stage {
    min-height: 86px;
  }

  .dash-feature-slide {
    grid-template-columns: 68px 1fr;
    gap: 0.55rem;
    padding: 0.5rem 0.9rem;
    align-items: center;
  }

  .dash-feature-visual {
    transform: none;
  }

  .dash-feature-slide.is-active .dash-feature-visual {
    animation: none;
    opacity: 1;
  }

  .dash-feature-title {
    font-size: 0.82rem;
  }

  .dash-feature-sub {
    font-size: 0.7rem;
    line-height: 1.45;
    max-width: none;
  }

  .dash-feature-art svg {
    max-width: 72px;
  }

  .dash-feature-segments {
    padding: 0 0.9rem 0.4rem;
    gap: 0.35rem;
  }

  .app-greeting {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .app-content {
    padding: 1rem;
  }

  .dash-quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .dash-quick-item {
    padding: 0.55rem 0.3rem 0.6rem;
    gap: 0.35rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.15;
    border-radius: var(--radius);
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }

  .dash-quick-item:hover {
    transform: none;
    box-shadow: none;
  }

  .dash-quick-item:active {
    transform: scale(0.97);
    border-color: var(--cyan);
    color: var(--cyan);
  }

  .dash-quick-item > span:last-child {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    max-width: 100%;
  }

  .dash-quick-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.9rem;
    background: rgba(var(--brand-rgb), 0.06);
  }

  .dash-assets-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .dash-asset-chip {
    padding: 0.65rem 0.55rem;
  }

  .dash-asset-meta strong {
    font-size: 0.78rem;
  }

  .dash-asset-chip .price {
    font-size: 0.72rem;
  }

  .dash-balance-amount {
    font-size: clamp(1.9rem, 5.5vw, 2.2rem);
    padding-bottom: 1.1rem;
  }

  .dash-balance-card {
    padding: 1.35rem 1.25rem;
    min-height: auto;
  }

  .dash-balance-inner {
    min-height: auto;
  }

  .dash-balance-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding-top: 1rem;
  }

  .dash-balance-actions .btn {
    flex: none;
    width: 100%;
    min-height: 42px;
    max-height: none;
    padding: 0.5rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    border-radius: 12px;
    white-space: normal;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }

  .dash-balance-actions .btn-glow {
    box-shadow: 0 2px 10px rgba(var(--brand-rgb), 0.22);
  }

  .dash-balance-actions .btn-glow:hover,
  .dash-balance-actions .btn-glow:active {
    transform: none;
    box-shadow: 0 2px 10px rgba(var(--brand-rgb), 0.22);
  }

  .dash-balance-actions .btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text);
  }

  .dash-balance-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(var(--brand-rgb), 0.35);
    color: var(--text);
    box-shadow: none;
    transform: none;
  }

  .dash-balance-actions .btn-outline:active {
    transform: scale(0.98);
    background: rgba(var(--brand-rgb), 0.08);
  }

  [data-theme="light"] .dash-balance-actions .btn-outline {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.12);
    color: var(--text);
  }

  [data-theme="light"] .dash-balance-actions .btn-outline:hover {
    background: rgba(15, 23, 42, 0.07);
    border-color: rgba(0, 140, 160, 0.35);
  }

  .dash-news-section .crypto-news-carousel-xs .crypto-news-item-carousel {
    flex: 0 0 min(168px, 62vw);
  }

  .dash-hero-grid {
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .dash-status-card {
    padding: 1rem 1.05rem;
    gap: 0;
    border-radius: 14px;
    align-items: stretch;
    overflow: hidden;
  }

  .dash-status-header {
    gap: 0.75rem;
    padding-bottom: 0.9rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
  }

  .dash-status-header .avatar-img,
  .dash-status-header .avatar-fallback {
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0;
  }

  .dash-status-meta {
    min-width: 0;
    flex: 1;
  }

  .dash-status-meta h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dash-status-meta p {
    font-size: 0.72rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dash-verify-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .dash-verify-list li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 0.65rem 0.7rem;
    min-height: 58px;
    border-bottom: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .dash-verify-list li > span:first-child {
    color: var(--text-muted);
    font-weight: 500;
    white-space: normal;
    word-break: break-word;
  }

  .dash-verify-list li > span:last-child,
  .dash-verify-list li > strong {
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .dash-verify-list li #kycVerifyStatus,
  .dash-verify-list li #twoFaStatus {
    display: flex;
    align-items: center;
  }

  .dash-verify-list #positionCount {
    color: var(--cyan);
    font-size: 0.82rem;
    font-weight: 700;
  }

  .dash-verify-ok,
  .dash-verify-pending {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
  }

  .dash-verify-ok {
    background: rgba(0, 230, 118, 0.14);
    color: var(--success);
  }

  .dash-verify-pending {
    background: rgba(255, 193, 7, 0.14);
    color: var(--warning);
  }

  [data-theme="light"] .dash-verify-list li {
    background: rgba(15, 23, 42, 0.035);
  }

  [data-theme="light"] .dash-verify-ok {
    background: rgba(0, 180, 90, 0.12);
  }

  [data-theme="light"] .dash-verify-pending {
    background: rgba(200, 140, 0, 0.12);
  }

  .dash-section-title {
    font-size: 0.98rem;
  }
}

@media (max-width: 480px) {
  .dash-assets-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .dash-quick-grid {
    gap: 0.4rem;
    margin-bottom: 1rem;
  }

  .dash-quick-item {
    padding: 0.48rem 0.2rem 0.52rem;
    font-size: 0.58rem;
  }

  .dash-quick-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-size: 0.82rem;
  }

  .dash-balance-amount {
    font-size: clamp(1.85rem, 5vw, 2.1rem);
    line-height: 1.1;
  }

  .dash-balance-card {
    padding: 1.2rem 1rem;
  }

  .dash-status-card {
    padding: 0.9rem 0.95rem;
  }

  .dash-status-header {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .dash-verify-list {
    gap: 0.4rem;
  }

  .dash-verify-list li {
    padding: 0.55rem 0.6rem;
    min-height: 54px;
    font-size: 0.64rem;
  }

  .dash-verify-list li > span:last-child,
  .dash-verify-list li > strong {
    font-size: 0.7rem;
  }

  .dash-balance-actions {
    gap: 0.4rem;
  }

  .dash-balance-actions .btn {
    min-height: 40px;
    padding: 0.45rem 0.3rem;
    font-size: 0.68rem;
  }

  .app-content {
    padding: 0.85rem;
  }
}

.traders-toolbar {
  margin-bottom: 1.25rem;
  max-width: 420px;
}

.traders-empty {
  color: var(--text-muted);
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.5rem 0;
  text-align: center;
}

/* Trading Signals — dashboard widget */
.dash-signals-card {
  margin-bottom: 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(var(--brand-rgb), 0.16);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.dash-signals-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.dash-signals-head-left {
  min-width: 0;
  flex: 1;
}

.dash-signals-eyebrow {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.12rem;
}

.dash-signals-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.dash-signals-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-signals-status {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
}

.dash-signals-status.is-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.dash-signals-status.is-paused {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.dash-signals-link {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-signals-body {
  display: grid;
  gap: 0.5rem;
}

.dash-signals-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.dash-signals-progress-track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.1);
  overflow: hidden;
}

.dash-signals-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #059669, #34d399);
  transition: width 0.6s ease;
}

.dash-signals-progress-pct {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 2.4rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dash-signals-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem 0.65rem;
  margin: 0;
}

.dash-signals-stat {
  min-width: 0;
}

.dash-signals-stat dt {
  font-size: 0.56rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.08rem;
}

.dash-signals-stat dd {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.dash-signals-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.dash-signals-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.1rem 0.38rem;
  border-radius: 5px;
  font-size: 0.64rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.12);
  line-height: 1.3;
}

.dash-signals-chip strong {
  font-size: 0.7rem;
  font-weight: 700;
}

.dash-signals-chip.is-win {
  color: #10b981;
}

.dash-signals-chip.is-loss {
  color: #ef4444;
}

.dash-signals-chip.is-today strong.is-positive {
  color: #10b981;
}

.dash-signals-chip.is-today strong.is-negative {
  color: #ef4444;
}

.dash-signals-status.is-running {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
}

.dash-signals-status.is-manual {
  background: rgba(234, 179, 8, 0.14);
  color: #ca8a04;
}

.dash-signals-status.is-mixed {
  background: rgba(var(--brand-rgb), 0.14);
  color: rgb(var(--brand-rgb));
}

.dash-signals-status.is-paused {
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
}

.dash-signals-list {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.45rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(var(--brand-rgb), 0.1);
}

.dash-signals-list-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.dash-signals-list-item strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .dash-signals-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-signals-stat--perf {
    grid-column: 1 / -1;
  }

  .dash-signals-head {
    align-items: flex-start;
  }
}

.signals-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.signals-plan-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.signals-plan-card.is-active-plan {
  border-color: rgba(var(--brand-rgb), 0.45);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.15);
}

.signals-plan-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.35rem;
}

.signals-plan-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.signals-plan-price {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.signals-plan-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.signals-plan-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.signals-plan-meta li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.signals-plan-meta span {
  color: var(--text-muted);
}

.home-signals-snippet {
  margin-top: 2rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(var(--brand-rgb), 0.12), transparent 55%),
    var(--surface);
}

.home-signals-snippet h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.home-signals-snippet p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.6;
}

.home-signals-plans {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.home-signals-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(var(--brand-rgb), 0.1);
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  color: var(--text);
}

/* Trading signals — card layout */
.app-content--signals {
  max-width: 720px;
}

.signals-balance-bar {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
}

.signals-balance-bar.is-low {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger-dim);
}

.signals-balance-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.signals-balance-bar-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.signals-balance-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.signals-balance-amount {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.signals-balance-amount.is-low,
.signals-balance-bar.is-low .signals-balance-amount {
  color: var(--danger);
}

.signals-balance-hint {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--danger);
}

.signals-page-title {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.signals-section-title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.signals-card-grid {
  display: grid;
  gap: 1rem;
}

.signals-card-grid--active {
  margin-bottom: 1.25rem;
}

.signals-card {
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg, rgba(255, 255, 255, 0.03));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.signals-card--active {
  border-color: rgba(var(--brand-rgb), 0.25);
}

.signals-card-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgb(var(--brand-rgb));
  letter-spacing: -0.01em;
}

.signals-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.signals-card-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.signals-card-value,
.signals-card-balance {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.signals-card-value--price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.signals-price-approx {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.signals-card-balance {
  color: var(--text-muted);
  font-weight: 500;
}

.signals-card-strength-row {
  align-items: flex-start;
}

.signals-card-strength {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.signals-strength-pct {
  font-size: 0.95rem;
  font-weight: 700;
  min-width: 2.5rem;
  text-align: right;
}

.signals-strength-pct.is-low { color: #ef4444; }
.signals-strength-pct.is-medium { color: #eab308; }
.signals-strength-pct.is-high { color: #10b981; }

.signals-meter {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.signals-meter-bar {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0.35;
}

.signals-meter-bar.is-lit.is-low {
  background: #ef4444;
  opacity: 1;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

.signals-meter-bar.is-lit.is-medium {
  background: #eab308;
  opacity: 1;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.45);
}

.signals-meter-bar.is-lit.is-high {
  background: #10b981;
  opacity: 1;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.45);
}

.signals-card-field {
  margin-bottom: 0.85rem;
}

.signals-card-field .signals-card-label {
  display: block;
  margin-bottom: 0.45rem;
}

.signals-amount-wrap {
  position: relative;
}

.signals-amount-input {
  width: 100%;
  padding-right: 4.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 48px;
}

.signals-amount-currency {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.signals-card-balance-row {
  margin-bottom: 1rem;
}

.signals-card-purchase {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.signals-card-purchase:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.signals-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
}

.signals-active-section {
  margin-bottom: 0.5rem;
}

.signals-active-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.12);
  overflow: hidden;
  margin-top: 0.25rem;
}

.signals-active-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(var(--brand-rgb)), #10b981);
}

@media (min-width: 640px) {
  .signals-card-grid:not(.signals-card-grid--active) {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .app-content--signals {
    max-width: none;
  }
}

.signals-strength-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.signals-strength-badge.is-low {
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
}

.signals-strength-badge.is-medium {
  background: rgba(234, 179, 8, 0.14);
  color: #ca8a04;
}

.user-confirm-card {
  max-width: 420px;
}

.user-confirm-message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.user-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.user-confirm-actions .btn {
  min-width: 7rem;
}

@media (max-width: 480px) {
  .user-confirm-actions {
    flex-direction: column-reverse;
  }

  .user-confirm-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

.signals-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.signals-plan-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.signals-plan-card.is-active-plan {
  border-color: rgba(var(--brand-rgb), 0.45);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb), 0.15);
}

.signals-plan-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.35rem;
}

.signals-plan-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.signals-plan-price {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.signals-plan-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.signals-plan-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.signals-plan-meta li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.signals-plan-meta span {
  color: var(--text-muted);
}

.home-signals-snippet {
  margin-top: 2rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(var(--brand-rgb), 0.12), transparent 55%),
    var(--surface);
}

.home-signals-snippet h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.home-signals-snippet p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.6;
}

.home-signals-plans {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.home-signals-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(var(--brand-rgb), 0.1);
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  color: var(--text);
}

/* Trading signals — card layout */
.app-content--signals {
  max-width: 720px;
}

.signals-balance-bar {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
}

.signals-balance-bar.is-low {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger-dim);
}

.signals-balance-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.signals-balance-bar-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.signals-balance-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.signals-balance-amount {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.signals-balance-amount.is-low,
.signals-balance-bar.is-low .signals-balance-amount {
  color: var(--danger);
}

.signals-balance-hint {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--danger);
}

.signals-page-title {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.signals-section-title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.signals-card-grid {
  display: grid;
  gap: 1rem;
}

.signals-card-grid--active {
  margin-bottom: 1.25rem;
}

.signals-card {
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg, rgba(255, 255, 255, 0.03));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.signals-card--active {
  border-color: rgba(var(--brand-rgb), 0.25);
}

.signals-card-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgb(var(--brand-rgb));
  letter-spacing: -0.01em;
}

.signals-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.signals-card-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.signals-card-value,
.signals-card-balance {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.signals-card-value--price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.signals-price-approx {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.signals-card-balance {
  color: var(--text-muted);
  font-weight: 500;
}

.signals-card-strength-row {
  align-items: flex-start;
}

.signals-card-strength {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.signals-strength-pct {
  font-size: 0.95rem;
  font-weight: 700;
  min-width: 2.5rem;
  text-align: right;
}

.signals-strength-pct.is-low { color: #ef4444; }
.signals-strength-pct.is-medium { color: #eab308; }
.signals-strength-pct.is-high { color: #10b981; }

.signals-meter {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.signals-meter-bar {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0.35;
}

.signals-meter-bar.is-lit.is-low {
  background: #ef4444;
  opacity: 1;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

.signals-meter-bar.is-lit.is-medium {
  background: #eab308;
  opacity: 1;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.45);
}

.signals-meter-bar.is-lit.is-high {
  background: #10b981;
  opacity: 1;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.45);
}

.signals-card-field {
  margin-bottom: 0.85rem;
}

.signals-card-field .signals-card-label {
  display: block;
  margin-bottom: 0.45rem;
}

.signals-amount-wrap {
  position: relative;
}

.signals-amount-input {
  width: 100%;
  padding-right: 4.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-height: 48px;
}

.signals-amount-currency {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.signals-card-balance-row {
  margin-bottom: 1rem;
}

.signals-card-purchase {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.signals-card-purchase:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.signals-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
}

.signals-active-section {
  margin-bottom: 0.5rem;
}

.signals-active-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.12);
  overflow: hidden;
  margin-top: 0.25rem;
}

.signals-active-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(var(--brand-rgb)), #10b981);
}

@media (min-width: 640px) {
  .signals-card-grid:not(.signals-card-grid--active) {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .app-content--signals {
    max-width: none;
  }
}

.signals-strength-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.signals-strength-badge.is-low {
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
}

.signals-strength-badge.is-medium {
  background: rgba(234, 179, 8, 0.14);
  color: #ca8a04;
}

.user-confirm-card {
  max-width: 420px;
}

.user-confirm-message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.user-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.user-confirm-actions .btn {
  min-width: 7rem;
}

@media (max-width: 480px) {
  .user-confirm-actions {
    flex-direction: column-reverse;
  }

  .user-confirm-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* --- AI trading, portfolio modals, dash widget --- */
#portfolioActionModal.app-notify-modal,#portfolioCatalogModal.app-notify-modal,.app-notify-modal.portfolio-modal{z-index:2147483010}
body.mobile-keyboard-open.has-bottom-nav .app-bottom-nav{display:none!important}
body.mobile-keyboard-open #smartsupp-widget-container,
body.mobile-keyboard-open #chat-application,
body.mobile-keyboard-open [id*="smartsupp"] {
  visibility: hidden !important;
  pointer-events: none !important;
}
body.app-layout.mobile-modal-open #smartsupp-widget-container,
body.app-layout.mobile-modal-open #chat-application,
body.app-layout.mobile-modal-open [id*="smartsupp"] {
  z-index: 1 !important;
}
@media (max-width: 768px) {
  body.app-layout input.form-control,
  body.app-layout select.form-control,
  body.app-layout textarea.form-control {
    font-size: 16px;
  }
}
.ai-symbol-picker-wrap{margin-top:.75rem}
.ai-symbol-class-tabs{display:flex;flex-wrap:wrap;gap:.35rem;margin:.5rem 0}
.ai-symbol-class-tab{border:1px solid var(--border);background:var(--surface-2);color:var(--text-muted);font-size:.72rem;text-transform:uppercase;padding:.25rem .55rem;border-radius:999px;cursor:pointer}
.ai-symbol-class-tab.active{border-color:rgba(var(--brand-rgb),.45);color:var(--text);background:rgba(var(--brand-rgb),.08)}
.ai-symbol-checkbox-list{display:flex;flex-direction:column;gap:.35rem;max-height:14rem;overflow-y:auto;padding:.35rem;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-2)}
.ai-symbol-check{display:flex;align-items:flex-start;gap:.45rem;font-size:.82rem;cursor:pointer;margin:0}
.ai-symbol-check small{color:var(--text-muted);font-weight:400}
.ai-symbol-selected-summary{margin:.5rem 0 0;font-size:.78rem;color:var(--text-muted);line-height:1.4}
.ai-symbol-selected-chips{display:flex;flex-wrap:wrap;gap:.35rem;margin:.5rem 0 .65rem;min-height:1.75rem;align-items:center}
.ai-symbol-chip{display:inline-flex;align-items:center;gap:.25rem;border:1px solid rgba(var(--brand-rgb),.35);background:rgba(var(--brand-rgb),.1);color:var(--text);font-size:.75rem;padding:.2rem .45rem;border-radius:999px;cursor:pointer}
.ai-symbol-chip:hover{border-color:rgba(var(--brand-rgb),.55)}
.ai-symbol-chip-empty{font-size:.78rem;color:var(--text-muted)}
.ai-program-pairs-list{font-size:.82rem;line-height:1.45;color:var(--text-muted)}
@media (max-width:768px){body.mobile-modal-open .portfolio-modal.app-notify-modal,body.mobile-modal-open .app-notify-modal:not(.hidden){align-items:flex-start;padding-top:max(.5rem,var(--app-vv-offset-top,0px))}body.mobile-keyboard-open .portfolio-modal.app-notify-modal .portfolio-modal-card{max-height:min(calc(var(--app-vv-height,100vh) - 1rem),92vh)}}

.signals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.signal-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.35rem;
}

.signal-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.signal-card-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.signal-card-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.signal-card-price-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.signal-card-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.15rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.signal-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  padding-top: 0.45rem;
}

.signal-card-row span {
  color: var(--text-muted);
}

.signal-card-row strong {
  font-weight: 600;
}

.signal-card-note {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.signal-card .btn {
  width: 100%;
}

.signals-empty {
  color: var(--text-muted);
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.5rem 0;
  text-align: center;
}

.signal-active-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.signal-active-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem;
}

.signal-active-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.signal-active-head-text {
  flex: 1;
  min-width: 0;
}

.signal-active-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.signal-active-stats--two {
  grid-template-columns: repeat(2, 1fr);
}

.signal-active-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.signal-active-stat span {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.signal-active-stat strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.signal-active-stat strong.is-positive {
  color: var(--success);
}

.signal-active-stat strong.is-negative {
  color: var(--danger);
}

.signal-active-card--live {
  position: relative;
  overflow: hidden;
  border-color: rgba(var(--brand-rgb), 0.35);
}

.signal-active-card--live::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 0% 50%, rgba(var(--brand-rgb), 0.12), transparent 55%);
}

.signal-card-tagline {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.signal-card-stake {
  margin: 0.75rem 0 0;
}

.signal-card-hint {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.signal-card .btn.btn-glow.is-running:disabled {
  opacity: 1;
  background: rgba(var(--brand-rgb), 0.22);
  border-color: rgba(var(--brand-rgb), 0.45);
  color: rgb(var(--brand-rgb));
  box-shadow: none;
  cursor: default;
}

/* Dashboard AI trading widget */
.dash-ai-card {
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
}

.dash-ai-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 12% 50%, rgba(var(--brand-rgb), 0.14), transparent 55%);
  opacity: 0.9;
}

.dash-ai-layout {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.dash-ai-visual {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ai-orb {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(var(--brand-rgb), 0.45);
  opacity: 0;
}

.dash-ai-visual.is-live .ai-orb-ring--1 {
  animation: ai-orb-pulse 2.4s ease-out infinite;
}

.dash-ai-visual.is-live .ai-orb-ring--2 {
  animation: ai-orb-pulse 2.4s ease-out 0.8s infinite;
}

.dash-ai-visual.is-live .ai-orb-ring--3 {
  animation: ai-orb-pulse 2.4s ease-out 1.6s infinite;
}

.ai-orb-core {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(var(--brand-rgb), 0.5), rgba(var(--brand-rgb), 0.22));
  border: 1px solid rgba(var(--brand-rgb), 0.55);
  box-shadow: 0 0 24px rgba(var(--brand-rgb), 0.35);
}

.dash-ai-visual.is-live .ai-orb-core {
  animation: ai-orb-glow 2s ease-in-out infinite alternate;
}

.dash-ai-visual.is-idle .ai-orb-core {
  opacity: 0.75;
  box-shadow: none;
}

.ai-orb-icon {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgb(var(--brand-rgb));
}

.ai-orb-dot {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.dash-ai-visual.is-live .ai-orb-dot {
  animation: ai-dot-blink 1.2s ease-in-out infinite;
}

.dash-ai-visual.is-idle .ai-orb-dot {
  background: var(--warning);
  box-shadow: none;
}

.ai-data-stream {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  height: 12px;
  align-items: flex-end;
  opacity: 0.5;
}

.dash-ai-visual.is-live .ai-data-stream span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: rgb(var(--brand-rgb));
  animation: ai-bar-dance 0.9s ease-in-out infinite;
}

.dash-ai-visual.is-live .ai-data-stream span:nth-child(1) { animation-delay: 0s; height: 6px; }
.dash-ai-visual.is-live .ai-data-stream span:nth-child(2) { animation-delay: 0.15s; height: 10px; }
.dash-ai-visual.is-live .ai-data-stream span:nth-child(3) { animation-delay: 0.3s; height: 7px; }
.dash-ai-visual.is-live .ai-data-stream span:nth-child(4) { animation-delay: 0.45s; height: 11px; }

.dash-ai-visual.is-idle .ai-data-stream {
  opacity: 0.25;
}

.ai-orb-wrap--compact {
  width: 56px;
  height: 56px;
}

.ai-orb-wrap--compact .ai-orb {
  width: 48px;
  height: 48px;
}

.ai-orb-wrap--compact .ai-orb-core {
  width: 38px;
  height: 38px;
}

.ai-orb-wrap--compact .ai-orb-icon {
  font-size: 0.58rem;
}

.ai-orb-wrap--compact .ai-orb-dot {
  width: 5px;
  height: 5px;
  top: 6px;
  right: 7px;
}

.ai-orb-wrap--compact .ai-data-stream {
  display: none;
}

.dash-ai-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dash-ai-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.dash-ai-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple, #a78bfa);
}

.dash-ai-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
}

.dash-ai-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.dash-ai-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.55rem;
  border-radius: 50px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.dash-ai-pill.is-live {
  background: rgba(124, 58, 237, 0.18);
  color: var(--purple, #a78bfa);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.2);
}

.dash-ai-pill.is-paused {
  background: rgba(255, 176, 32, 0.16);
  color: var(--warning);
}

.dash-ai-link {
  font-size: 0.78rem;
  color: rgb(var(--brand-rgb));
  text-decoration: none;
}

.dash-ai-link:hover {
  text-decoration: underline;
}

.dash-ai-manage-link {
  align-self: flex-start;
  margin-top: 0.15rem;
}

.dash-ai-tagline {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  word-break: break-word;
}

.dash-ai-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 0.75rem;
  margin-top: 0.15rem;
}

.dash-ai-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dash-ai-stat span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dash-ai-stat strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.dash-ai-pnl-positive {
  color: var(--success);
}

.dash-ai-pnl-negative {
  color: var(--danger);
}

.dash-ai-others {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.dash-ai-other {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.dash-ai-other strong {
  color: var(--text);
  font-weight: 600;
}

@keyframes ai-orb-pulse {
  0% { transform: scale(0.65); opacity: 0.85; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes ai-orb-glow {
  0% { box-shadow: 0 0 16px rgba(var(--brand-rgb), 0.28); }
  100% { box-shadow: 0 0 28px rgba(var(--brand-rgb), 0.48); }
}

@keyframes ai-dot-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

@keyframes ai-bar-dance {
  0%, 100% { transform: scaleY(0.45); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .dash-ai-visual.is-live .ai-orb-ring,
  .dash-ai-visual.is-live .ai-orb-core,
  .dash-ai-visual.is-live .ai-orb-dot,
  .dash-ai-visual.is-live .ai-data-stream span {
    animation: none;
  }
}

@media (max-width: 768px) {
  .dash-ai-card {
    padding: 1rem 1rem 1.05rem;
  }

  .dash-ai-layout {
    align-items: flex-start;
    gap: 0.85rem;
  }

  .dash-ai-visual {
    width: 72px;
    height: 72px;
    margin-top: 0.15rem;
  }

  .dash-ai-visual .ai-orb {
    width: 64px;
    height: 64px;
  }

  .dash-ai-visual .ai-orb-core {
    width: 46px;
    height: 46px;
  }

  .dash-ai-body {
    min-width: 0;
  }

  .dash-ai-name {
    font-size: 0.92rem;
  }

  .dash-ai-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .dash-ai-stat strong {
    font-size: 0.82rem;
  }

  .dash-ai-manage-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.35rem 0;
  }

  .dash-ai-manage-link:hover {
    text-decoration: none;
  }

  .dash-ai-other {
    flex-direction: column;
    gap: 0.15rem;
  }

  .dash-ai-other span {
    font-size: 0.72rem;
  }
}
.dash-quick-item--live{border-color:rgba(var(--brand-rgb),.45);box-shadow:0 0 0 1px rgba(var(--brand-rgb),.15),0 0 18px rgba(var(--brand-rgb),.12)}
.ai-program-grid,.ai-session-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.ai-program-card--active{border-color:rgba(var(--brand-rgb),.35)}
.ai-program-head,.ai-session-head{display:flex;gap:.75rem;align-items:flex-start;margin-bottom:.75rem}
.ai-program-meta,.ai-session-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem .75rem;font-size:.82rem;margin:0 0 .75rem}
.ai-program-meta dt,.ai-session-stats dt{color:var(--text-muted);font-size:.68rem;text-transform:uppercase}
.ai-stake-label{display:block;font-size:.78rem;margin-bottom:.35rem}
.ai-program-start{display:grid;gap:.5rem}
.home-ai-bullets{max-width:42rem;margin:1rem auto .75rem;padding-left:1.25rem;color:var(--text-muted);line-height:1.6}
.home-ai-tagline{text-align:center;color:var(--text-muted);max-width:46rem;margin:0 auto}
