/* ==========================================================================
   MY WEIZEROUTER · ULTRA-PREMIUM UNIFIED DASHBOARD POLISH
   Elevates ALL views (Dashboard, Wallet, Models, Usage, Activity, Help, Account)
   ========================================================================== */

/* Universal Scroll & Viewport Polish */
.control-room {
  scroll-padding-top: 24px;
  -webkit-overflow-scrolling: touch;
}

.control-room > * {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   DASHBOARD HERO & LAUNCHPAD HUD
   -------------------------------------------------------------------------- */
.hero-deck {
  background: linear-gradient(145deg, rgba(14, 21, 33, 0.7) 0%, rgba(8, 12, 19, 0.85) 100%) !important;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  position: relative;
  overflow: hidden;
}

.hero-deck::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(212, 184, 120, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.hero-title {
  letter-spacing: -1.8px !important;
}

.gradient-name {
  background: linear-gradient(135deg, #fff 40%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-pill {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  font-family: var(--mono);
}

/* Quick Launchpad Buttons on Dashboard */
.dash-launchpad {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.dash-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: 12px;
  background: #0f1c2b;
  border: 1px solid var(--border-cyan);
  color: var(--cyan-bright);
  font: 600 12px var(--font);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-launch-btn:hover {
  background: #172d45;
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.25);
  color: #fff;
}

.dash-launch-btn.gold {
  background: #1c1912;
  border-color: var(--border);
  color: var(--gold-bright);
}

.dash-launch-btn.gold:hover {
  background: #2a2517;
  border-color: var(--gold);
  box-shadow: 0 4px 18px rgba(212, 184, 120, 0.25);
  color: #fff;
}

/* --------------------------------------------------------------------------
   WALLET TREASURY VIEW (?view=wallet)
   -------------------------------------------------------------------------- */
.wallet-view-wrap {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 64px;
}

.wallet-hero-head {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 30px;
}

.wallet-overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(212, 184, 120, 0.08);
  border: 1px solid rgba(212, 184, 120, 0.28);
  color: var(--gold-bright);
  font: 700 10px var(--mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.wallet-hero-head h1 {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 0 0 10px;
  background: linear-gradient(135deg, #ffffff 40%, #cce2f5 75%, #8cb3d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wallet-hero-head p {
  font-size: clamp(14px, 1.2vw, 15px);
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
}

.wallet-vault-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 32px;
}

.wallet-vault-card {
  position: relative;
  overflow: hidden;
  padding: 28px 32px;
  border-radius: 24px;
  background: rgba(10, 16, 26, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.wallet-vault-card:hover {
  transform: translateY(-4px);
}

.wallet-vault-card.regular {
  border-color: var(--border-cyan);
  background: linear-gradient(145deg, rgba(8, 20, 32, 0.85) 0%, rgba(4, 9, 16, 0.95) 100%);
}

.wallet-vault-card.regular:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 36px rgba(0, 242, 254, 0.2);
  border-color: var(--cyan);
}

.wallet-vault-card.premium {
  border-color: var(--border);
  background: linear-gradient(145deg, rgba(24, 20, 10, 0.85) 0%, rgba(10, 8, 4, 0.95) 100%);
}

.wallet-vault-card.premium:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 36px rgba(255, 215, 0, 0.2);
  border-color: var(--gold);
}

.wallet-vault-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 11px var(--mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.wallet-vault-card.regular .wallet-vault-badge { color: var(--cyan); }
.wallet-vault-card.premium .wallet-vault-badge { color: var(--gold); }

.wallet-vault-num {
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  color: #fff;
  display: block;
  margin: 12px 0 8px;
}

.wallet-vault-card.regular .wallet-vault-num {
  text-shadow: 0 0 24px rgba(0, 242, 254, 0.3);
}

.wallet-vault-card.premium .wallet-vault-num {
  text-shadow: 0 0 24px rgba(255, 215, 0, 0.3);
}

.wallet-vault-sub {
  font: 500 12px var(--mono);
  color: var(--text-dim);
  margin-bottom: 20px;
}

.wallet-vault-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: #101c2b;
  color: #fff;
  font: 700 13px var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: auto;
}

.wallet-vault-card.regular .wallet-vault-cta:hover {
  background: #172d45;
  border-color: var(--cyan);
  color: var(--cyan-bright);
}

.wallet-vault-card.premium .wallet-vault-cta {
  background: #1a1710;
  border-color: var(--border);
  color: var(--gold-bright);
}

.wallet-vault-card.premium .wallet-vault-cta:hover {
  background: #262114;
  border-color: var(--gold);
}

/* Secondary KPI grid for wallet */
.wallet-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.wallet-metric-box {
  padding: 20px 24px;
  border-radius: 18px;
  background: rgba(11, 17, 27, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
}

.wallet-metric-box small {
  font: 600 10px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.wallet-metric-box strong {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: #fff;
}

.wallet-metric-box p {
  font-size: 12px;
  color: var(--text-dim);
  margin: 6px 0 0;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   AI MODEL CATALOG VIEW (?view=models)
   -------------------------------------------------------------------------- */
.models-box {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 64px;
}

.models-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(10, 16, 26, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.model-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.model-tab-btn {
  font: 600 12px var(--mono) !important;
  padding: 9px 16px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--text-dim) !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.model-tab-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.model-tab-btn.active {
  color: #fff !important;
  background: #111d2c !important;
  border-color: var(--border-cyan) !important;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.15) !important;
}

.search-model-box {
  position: relative;
  min-width: 280px;
}

.search-model-box input {
  width: 100%;
  min-height: 42px;
  padding: 8px 16px 8px 36px !important;
  border-radius: 11px !important;
  background: #060b12 !important;
  border: 1px solid var(--border-subtle) !important;
  color: #fff !important;
  font: 13px var(--font) !important;
}

.search-model-box input:focus {
  outline: none;
  border-color: var(--cyan) !important;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2) !important;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

/* Neural Model Cartridge Cards */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr)) !important;
  gap: 20px !important;
}

.model-card {
  position: relative;
  padding: 24px !important;
  border-radius: 20px !important;
  background: rgba(11, 17, 27, 0.72) !important;
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3) !important;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.model-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45) !important;
}

.model-card[data-tier="regular"]:hover {
  border-color: var(--border-cyan) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 242, 254, 0.12) !important;
}

.model-card[data-tier="premium"]:hover {
  border-color: var(--border) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 24px rgba(212, 184, 120, 0.12) !important;
}

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

.model-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}

.model-brand-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.model-card h4 {
  font-size: 17px !important;
  font-weight: 700 !important;
  margin: 0 0 6px !important;
  color: #fff;
}

.model-card code {
  font: 600 11px var(--mono) !important;
  color: var(--cyan) !important;
  padding: 4px 8px;
  border-radius: 6px;
  background: #060b12;
  display: inline-block;
  margin-bottom: 12px;
  user-select: all;
}

.model-specs-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.model-spec-pill {
  font: 600 10px var(--mono);
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.model-card-btn-copy {
  margin-top: auto;
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  background: #101c2b;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font: 600 12px var(--font);
  cursor: pointer;
  transition: all 0.2s ease;
}

.model-card-btn-copy:hover {
  background: #172a3e;
  border-color: var(--border-cyan);
  color: var(--cyan-bright);
}

/* --------------------------------------------------------------------------
   USAGE ANALYTICS VIEW (?view=usage)
   -------------------------------------------------------------------------- */
.analytics-box {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 64px;
}

.analytics-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 22px;
  border-radius: 18px;
  background: rgba(10, 16, 26, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.period-tabs {
  display: flex;
  gap: 6px;
  background: #060a12;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.period-btn {
  font: 600 12px var(--mono) !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  border: none !important;
  background: transparent !important;
  color: var(--text-dim) !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.period-btn:hover {
  color: #fff !important;
}

.period-btn.active {
  background: #112030 !important;
  color: var(--cyan-bright) !important;
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.2) !important;
}

/* KPI Telemetry Capsules */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 28px;
}

.kpi-pill {
  padding: 16px !important;
  border-radius: 16px !important;
  background: rgba(11, 17, 27, 0.72) !important;
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpi-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}

.kpi-title {
  font: 600 10px var(--mono) !important;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  margin-bottom: 6px;
}

.kpi-val {
  font-size: 20px !important;
  font-weight: 800 !important;
  font-family: var(--mono) !important;
  line-height: 1.1;
}

.kpi-val.cyan { color: var(--cyan) !important; text-shadow: 0 0 12px rgba(0, 242, 254, 0.25); }
.kpi-val.gold { color: var(--gold) !important; text-shadow: 0 0 12px rgba(255, 215, 0, 0.25); }
.kpi-val.green { color: var(--green) !important; }
.kpi-val.amber { color: var(--amber) !important; }
.kpi-val.red { color: var(--red) !important; }

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

.chart-card {
  padding: 24px !important;
  border-radius: 20px !important;
  background: rgba(11, 17, 27, 0.75) !important;
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3) !important;
}

.chart-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  margin: 0;
}

/* --------------------------------------------------------------------------
   REQUEST ACTIVITY VIEW (?view=activity)
   -------------------------------------------------------------------------- */
.activity-box {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 64px;
}

.subtab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.subtab-btn {
  font: 600 12px var(--mono) !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-subtle) !important;
  color: var(--text-dim) !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subtab-btn.active {
  background: #112030 !important;
  border-color: var(--border-cyan) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.15);
}

.table-responsive {
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: rgba(11, 17, 27, 0.75);
  backdrop-filter: blur(16px);
  overflow-x: auto;
}

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

.custom-table th {
  font: 700 10px var(--mono) !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  text-align: left;
}

.custom-table td {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
}

.custom-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.custom-table td button {
  font: 600 11px var(--mono);
  padding: 5px 11px;
  border-radius: 6px;
  background: #111e2d;
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   HELP & TUTORIALS VIEW (?view=help)
   -------------------------------------------------------------------------- */
.help-view-wrap {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 64px;
}

.help-hero-head {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 30px;
}

.help-hero-head h1 {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 0 0 10px;
  background: linear-gradient(135deg, #ffffff 40%, #cce2f5 75%, #8cb3d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.help-hero-head p {
  font-size: clamp(14px, 1.2vw, 15px);
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
}

.help-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.help-step-card {
  padding: 26px;
  border-radius: 20px;
  background: rgba(11, 17, 27, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.help-step-num {
  font: 800 12px var(--mono);
  color: var(--cyan);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.help-step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

.help-step-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}

.help-step-card a {
  font: 600 12px var(--mono);
  color: var(--cyan-bright);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.help-step-card a:hover {
  text-decoration: underline;
}

.help-faq-section {
  padding: 30px;
  border-radius: 22px;
  background: rgba(11, 17, 27, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.help-faq-section h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin: 0 0 20px;
}

.help-faq-item {
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}

.help-faq-item summary {
  font: 600 14px var(--font);
  color: #fff;
  cursor: pointer;
}

.help-faq-item p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 12px 0 0;
}

/* --------------------------------------------------------------------------
   ACCOUNT SETTINGS VIEW (?view=account)
   -------------------------------------------------------------------------- */
.account-view-wrap {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 64px;
}

.account-hero-head {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 30px;
}

.account-hero-head h1 {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 0 0 10px;
  background: linear-gradient(135deg, #ffffff 40%, #cce2f5 75%, #8cb3d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.account-hero-head p {
  font-size: clamp(14px, 1.2vw, 15px);
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 32px;
}

.account-card {
  padding: 28px;
  border-radius: 22px;
  background: rgba(11, 17, 27, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

.account-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 20px;
}

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

.account-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.account-info-row span {
  color: var(--text-muted);
}

.account-info-row strong {
  color: #fff;
  font-family: var(--mono);
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .wallet-vault-grid, .account-grid, .charts-grid, .help-steps-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .models-grid {
    grid-template-columns: 1fr !important;
  }
  .models-toolbar, .analytics-toolbar, .wallet-hero-head, .help-hero-head, .account-hero-head {
    padding: 16px;
  }
  .search-model-box {
    width: 100%;
    min-width: 0;
  }
}
/* ==========================================================================
   MY WEIZEROUTER · CUSTOM CONFIRMATION & LOGOUT DIALOG
   ========================================================================== */
.wr-dialog {
  margin: auto;
  border: none;
  background: transparent;
  padding: 0;
  max-width: min(480px, calc(100vw - 32px));
  width: 100%;
  color: #fff;
  overflow: visible;
}

.wr-dialog::backdrop {
  background: rgba(3, 7, 13, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: wrBackdropFade 0.25s ease-out forwards;
}

.wr-dialog[open] .wr-dialog-card {
  animation: wrModalEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wrBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wrModalEnter {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(14px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.wr-dialog-card {
  position: relative;
  background: linear-gradient(155deg, rgba(14, 22, 35, 0.94) 0%, rgba(8, 13, 21, 0.98) 100%);
  border: 1px solid rgba(212, 184, 120, 0.35);
  border-radius: 26px;
  padding: 34px 32px 30px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 45px rgba(212, 184, 120, 0.12);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wr-dialog-icon-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.wr-dialog-icon-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(212, 184, 120, 0.15) 60%, transparent 80%);
  filter: blur(8px);
  pointer-events: none;
}

.wr-dialog-icon {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(30, 20, 24, 0.9) 0%, rgba(18, 10, 14, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: #f87171;
}

.wr-dialog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 700 10px var(--mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.wr-dialog-card h2 {
  font-size: clamp(22px, 2.5vw, 26px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #fff;
}

.wr-dialog-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 18px;
  max-width: 380px;
}

.wr-dialog-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font: 500 11px var(--mono);
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.4;
  text-align: left;
}

.wr-dialog-meta-pill svg {
  color: var(--green);
  flex-shrink: 0;
}

.wr-dialog-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.wr-dialog-btn {
  flex: 1;
  min-height: 48px;
  border-radius: 13px;
  font: 700 13px var(--font);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.wr-dialog-btn-cancel {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
}

.wr-dialog-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.wr-dialog-btn-confirm {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fff;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

.wr-dialog-btn-confirm:hover {
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  box-shadow: 0 8px 28px rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

.wr-dialog-btn-confirm:disabled, .wr-dialog-btn-cancel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 600px) {
  .wr-dialog-card {
    padding: 26px 20px 22px;
  }
  .wr-dialog-actions {
    flex-direction: column-reverse;
  }
  .wr-dialog-btn {
    width: 100%;
  }
}

/* ==========================================================================
   ULTRA-PREMIUM DASHBOARD SUMMARY HUD & CARDS (FINAL TYPOGRAPHY POLISH)
   ========================================================================== */

/* Compact Refined Launchpad HUD */
.dash-launchpad {
  display: flex;
  flex-wrap: wrap;
  gap: 6px !important;
  margin-top: 14px !important;
  margin-bottom: 14px !important;
}

.dash-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px !important;
  border-radius: 9px !important;
  background: rgba(15, 28, 43, 0.7) !important;
  border: 1px solid rgba(112, 197, 212, 0.22) !important;
  color: var(--cyan-bright) !important;
  font: 600 11px var(--font) !important;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dash-launch-btn:hover {
  background: rgba(23, 45, 69, 0.9) !important;
  border-color: var(--cyan) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.22);
  color: #fff !important;
}

.dash-launch-btn.gold {
  background: rgba(28, 25, 18, 0.7) !important;
  border-color: rgba(212, 184, 120, 0.25) !important;
  color: var(--gold-bright) !important;
}

.dash-launch-btn.gold:hover {
  background: rgba(42, 37, 23, 0.9) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 4px 14px rgba(212, 184, 120, 0.22);
  color: #fff !important;
}

/* Summary HUD Main Block */
.dash-summary-block {
  margin-top: 12px;
  background: linear-gradient(155deg, rgba(10, 16, 26, 0.78) 0%, rgba(6, 10, 16, 0.92) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 18px 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.dash-summary-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.35), rgba(212, 184, 120, 0.35), transparent);
  pointer-events: none;
}

.dash-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dash-summary-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dash-summary-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.dash-summary-kicker {
  font: 700 9px var(--mono);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.dash-summary-note {
  font: 500 10px var(--mono);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   PRIMARY BALANCE CARDS (ROW 1) - REFINED COMPACT TYPOGRAPHY
   -------------------------------------------------------------------------- */
.dash-balances-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.dash-balance-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 14px 16px 12px;
  border-radius: 14px;
  background: rgba(12, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}

.dash-balance-card:hover {
  transform: translateY(-2px);
}

.dash-balance-card.regular {
  border-color: rgba(0, 242, 254, 0.25);
  background: linear-gradient(145deg, rgba(8, 20, 32, 0.85) 0%, rgba(5, 11, 18, 0.95) 100%);
}

.dash-balance-card.regular:hover {
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 242, 254, 0.16);
}

.dash-balance-card.premium {
  border-color: rgba(212, 184, 120, 0.28);
  background: linear-gradient(145deg, rgba(22, 19, 11, 0.85) 0%, rgba(10, 8, 4, 0.95) 100%);
}

.dash-balance-card.premium:hover {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 215, 0, 0.16);
}

.dash-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-label-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-icon-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dash-icon-box.cyan {
  background: rgba(0, 242, 254, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.dash-icon-box.gold {
  background: rgba(212, 184, 120, 0.12);
  color: var(--gold-bright);
  border: 1px solid rgba(212, 184, 120, 0.25);
}

.dash-card-label {
  font: 700 10.5px var(--mono);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.dash-badge {
  font: 700 8.5px var(--mono);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 2.5px 6px;
  border-radius: 4px;
}

.dash-badge.cyan {
  background: rgba(0, 242, 254, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.dash-badge.gold {
  background: rgba(212, 184, 120, 0.1);
  color: var(--gold-bright);
  border: 1px solid rgba(212, 184, 120, 0.25);
}

/* Scaled to perfect proportion: not too big, crisp, readable */
.dash-num-val {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 800;
  letter-spacing: -0.7px;
  font-family: var(--mono);
  line-height: 1.15;
  margin: 6px 0 3px;
  display: block;
  overflow-wrap: anywhere;
}

.dash-num-val.cyan {
  color: #fff;
  text-shadow: 0 0 14px rgba(0, 242, 254, 0.3);
}

.dash-num-val.gold {
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.3);
}

.dash-rate-desc {
  font: 500 10px var(--mono);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   TELEMETRY SECONDARY 4-CARD GRID (ROW 2) - HARMONIOUS PROPORTIONS
   -------------------------------------------------------------------------- */
.dash-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dash-mini-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 15, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 78px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.dash-mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.dash-mini-top {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.dash-mini-icon {
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}

.dash-mini-icon.purple { color: #c084fc; }
.dash-mini-icon.emerald { color: #10b981; }
.dash-mini-icon.cyan { color: var(--cyan); }
.dash-mini-icon.gold { color: var(--gold); }

/* Ensure labels never truncate awkwardly */
.dash-mini-label {
  font: 700 9px var(--mono);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: normal;
  line-height: 1.25;
  overflow: visible;
  text-overflow: clip;
}

.dash-mini-val {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  font-family: var(--mono);
  line-height: 1.15;
  color: #fff;
  display: block;
}

.dash-mini-val.key-val {
  color: #c084fc;
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dash-mini-val.cyan-dim {
  color: #8de9f5;
}

.dash-mini-val.gold-dim {
  color: #f6e05e;
}

.dash-mini-sub {
  font: 500 9px var(--mono);
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   RESPONSIVENESS (MOBILE-FIRST PRECISION)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .dash-balances-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .dash-telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .dash-summary-block {
    padding: 14px 12px;
  }
}

@media (max-width: 480px) {
  .dash-balances-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .dash-telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
  }
  .dash-num-val {
    font-size: 21px;
  }
  .dash-mini-card {
    padding: 10px 10px;
    min-height: 74px;
  }
  .dash-launch-btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }
}
