/* ─── 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 {
  font-size: 1.15rem;
  --brand-logo-size: 22px;
}

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

.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(0, 242, 255, 0.06);
  color: var(--text);
}

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

.app-nav-icon {
  width: 20px;
  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(0, 242, 255, 0.06);
  border-color: rgba(0, 242, 255, 0.15);
}

.app-notify-item.unread:hover {
  background: rgba(0, 242, 255, 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: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  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-notify-modal-body {
  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-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(0, 242, 255, 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(0, 242, 255, 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(0, 242, 255, 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: auto;
  padding-bottom: 1.35rem;
  line-height: 1.1;
}

.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-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, #060a14);
  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(0, 242, 255, 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-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(0, 242, 255, 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);
  }

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

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

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

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

  .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(0, 242, 255, 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(0, 242, 255, 0.22);
  }

  .dash-balance-actions .btn-glow:hover,
  .dash-balance-actions .btn-glow:active {
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 242, 255, 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(0, 242, 255, 0.35);
    color: var(--text);
    box-shadow: none;
    transform: none;
  }

  .dash-balance-actions .btn-outline:active {
    transform: scale(0.98);
    background: rgba(0, 242, 255, 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;
  }
}
