@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --pulse-bg: #071315;
  --pulse-bg-soft: #0a1a1d;
  --pulse-panel: #0e2023;
  --pulse-panel-2: #12282b;
  --pulse-line: rgba(195, 238, 226, .12);
  --pulse-line-strong: rgba(195, 238, 226, .22);
  --pulse-text: #f3fbf8;
  --pulse-muted: #86a7a1;
  --pulse-lime: #b9f34b;
  --pulse-cyan: #55d9d0;
  --pulse-green: #2bd18a;
  --pulse-red: #ff6d78;
  --pulse-gold: #f5c96c;
  --pulse-ink: #07100d;
  --pulse-sidebar: 248px;
  --pulse-header: 72px;
  --pulse-radius: 18px;
  --pulse-shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--pulse-bg); }
body {
  margin: 0;
  color: var(--pulse-text);
  background:
    radial-gradient(circle at 8% -5%, rgba(85, 217, 208, .10), transparent 31rem),
    radial-gradient(circle at 95% 5%, rgba(185, 243, 75, .07), transparent 28rem),
    var(--pulse-bg) !important;
  font-family: 'Manrope', sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
.pulse-mono { font-family: 'IBM Plex Mono', monospace; }

.user-session body {
  padding: var(--pulse-header) 0 80px var(--pulse-sidebar) !important;
}
.guest-session body { padding-top: var(--pulse-header) !important; }

/* Application shell */
.app-sidebar {
  position: fixed;
  z-index: 1100;
  inset: 0 auto 0 0;
  width: var(--pulse-sidebar);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: rgba(7, 19, 21, .97);
  border-right: 1px solid var(--pulse-line);
  box-shadow: 18px 0 55px rgba(0, 0, 0, .18);
}
.sidebar-header {
  min-height: var(--pulse-header);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--pulse-line);
}
.sidebar-logo,
.mobile-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--pulse-text);
  text-decoration: none;
  min-width: 0;
}
.pulse-brand-mark,
.sidebar-logo-icon,
.logo-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 12px 5px 12px 5px;
  color: var(--pulse-ink);
  background: var(--pulse-lime);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 10px 25px rgba(185, 243, 75, .12);
  font: 800 17px 'IBM Plex Mono', monospace;
}
.pulse-brand-mark::before { content: '↗'; transform: rotate(-8deg); }
.pulse-brand-copy { min-width: 0; }
.pulse-brand-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 400 17px 'Archivo Black', sans-serif;
  letter-spacing: -.04em;
}
.pulse-brand-copy small {
  display: block;
  margin-top: 2px;
  color: var(--pulse-muted);
  font: 500 8px 'IBM Plex Mono', monospace;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.sidebar-logo-image { max-width: 154px; max-height: 42px; object-fit: contain; }
.close-sidebar-btn {
  display: none;
  margin-left: auto;
  width: 35px;
  height: 35px;
  border: 1px solid var(--pulse-line);
  border-radius: 10px;
  color: var(--pulse-text);
  background: rgba(255,255,255,.04);
}
.sidebar-nav { display: flex; flex-direction: column; gap: 5px; padding: 18px 12px 28px; }
.sidebar-group-title {
  margin: 18px 10px 6px;
  color: #54746e;
  font: 600 9px 'IBM Plex Mono', monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.sidebar-grid-2 { display: contents; }
.sidebar-item-grid,
.sidebar-item-block,
.sidebar-item-list {
  width: 100%;
  min-height: 43px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 13px;
  color: #9bb8b2;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
  transition: .18s ease;
}
.sidebar-item-grid i,
.sidebar-item-block i,
.sidebar-item-list i { width: 19px; color: #6d8e87; font-size: 17px; text-align: center; }
.sidebar-item-grid span,
.sidebar-item-block span,
.sidebar-item-list span { font: 700 11px 'Manrope', sans-serif; letter-spacing: 0; }
.sidebar-item-grid:hover,
.sidebar-item-block:hover,
.sidebar-item-list:hover { color: #fff; border-color: var(--pulse-line); background: rgba(255,255,255,.035); transform: none; box-shadow: none; }
.sidebar-item-grid.active,
.sidebar-item-block.active,
.sidebar-item-list.active {
  color: var(--pulse-ink);
  border-color: rgba(185,243,75,.34);
  background: var(--pulse-lime);
}
.sidebar-item-grid.active i,
.sidebar-item-block.active i,
.sidebar-item-list.active i { color: var(--pulse-ink); }
.sidebar-item-list.logout { color: #ff8d95; background: rgba(255,109,120,.05); }
.sidebar-item-list.logout i { color: #ff8d95; }

.app-header {
  position: fixed;
  z-index: 1050;
  top: 0;
  right: 0;
  left: var(--pulse-sidebar);
  height: var(--pulse-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  background: rgba(7, 19, 21, .88);
  border-bottom: 1px solid var(--pulse-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.guest-session .app-header { left: 0; padding-inline: max(24px, calc((100vw - 1180px) / 2)); }
.header-left,
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  padding: 9px 12px;
  border-radius: 9px;
  color: #a3bcb7;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}
.header-nav a:hover { color: #fff; background: rgba(255,255,255,.04); }
.mobile-menu-btn,
.icon-shell-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pulse-line);
  border-radius: 11px;
  color: var(--pulse-text);
  background: rgba(255,255,255,.035);
  cursor: pointer;
}
.mobile-menu-btn { display: none; }
.wallet-pill {
  min-width: 168px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 8px 7px 13px;
  border: 1px solid rgba(185,243,75,.22);
  border-radius: 12px;
  color: var(--pulse-text);
  background: linear-gradient(135deg, rgba(185,243,75,.09), rgba(255,255,255,.02));
  box-shadow: none;
  cursor: pointer;
}
.wallet-pill:hover { transform: none; box-shadow: none; border-color: rgba(185,243,75,.42); }
.wallet-meta { display: block; color: var(--pulse-muted); font: 500 8px 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .12em; }
.wallet-balance { display: block; margin-top: 2px; color: #fff; font: 600 13px 'IBM Plex Mono', monospace; text-shadow: none; }
.wallet-add-btn { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: var(--pulse-ink); background: var(--pulse-lime); }
.user-dropdown { position: relative; }
.user-dropdown-btn,
.avatar-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pulse-line-strong);
  border-radius: 50%;
  color: var(--pulse-text);
  background: var(--pulse-panel-2);
  font: 800 12px 'IBM Plex Mono', monospace;
  cursor: pointer;
}
.header-avatar-img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  display: none;
  padding: 8px;
  border: 1px solid var(--pulse-line);
  border-radius: 13px;
  background: #0b1a1c;
  box-shadow: var(--pulse-shadow);
}
.user-dropdown.active .dropdown-menu { display: block; animation: pulseDrop .16s ease both; }
@keyframes pulseDrop { from { opacity: 0; transform: translateY(-6px); } }
.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  color: #b8cbc7;
  background: transparent;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.dropdown-item:hover { color: #fff; background: rgba(255,255,255,.045); }
.dropdown-divider { height: 1px; margin: 6px; background: var(--pulse-line); }
.btn-auth,
.pulse-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid var(--pulse-line);
  border-radius: 10px;
  color: #d9e9e5;
  background: rgba(255,255,255,.035);
  box-shadow: none;
  text-decoration: none;
  font: 800 11px 'Manrope', sans-serif;
  text-transform: none;
  cursor: pointer;
  transition: .18s ease;
}
.btn-auth:hover,
.pulse-button:hover { color: #fff; border-color: var(--pulse-line-strong); transform: translateY(-1px); box-shadow: none; }
.btn-register,
.pulse-button.primary { color: var(--pulse-ink); border-color: var(--pulse-lime); background: var(--pulse-lime); }
.btn-login { background: rgba(255,255,255,.055); }
.btn-register-wrapper { display: block; }
.bonus-tag { display: none; }
.mobile-backdrop { position: fixed; inset: 0; z-index: 1080; visibility: hidden; opacity: 0; background: rgba(0,0,0,.65); transition: .2s; }
.mobile-backdrop.active { visibility: visible; opacity: 1; }
.bottom-nav { display: none; }

/* Landing and dashboard */
.pulse-page { min-height: calc(100vh - var(--pulse-header)); overflow: hidden; }
.pulse-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.pulse-hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  padding: 74px 0 84px;
  isolation: isolate;
}
.pulse-hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0 50% 0 0;
  background: radial-gradient(circle at 50% 44%, rgba(85,217,208,.16), transparent 50%);
}
.pulse-hero::after,
.pulse-grid-bg::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .18;
  background-image: linear-gradient(rgba(185,243,75,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(185,243,75,.09) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, transparent 90%);
}
.pulse-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr); gap: 58px; align-items: center; }
.pulse-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--pulse-lime);
  font: 600 10px 'IBM Plex Mono', monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.pulse-eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.pulse-hero h1,
.dashboard-welcome h1 {
  margin: 20px 0 18px;
  font: 400 clamp(46px, 6vw, 82px)/.97 'Archivo Black', sans-serif;
  letter-spacing: -.065em;
}
.pulse-hero h1 span { color: var(--pulse-lime); }
.pulse-lead { max-width: 610px; color: #9eb8b2; font-size: 16px; line-height: 1.75; }
.pulse-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pulse-button.large { min-height: 52px; padding-inline: 23px; font-size: 12px; }
.pulse-microcopy { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 25px; color: #71918a; font: 500 9px 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .1em; }
.pulse-microcopy span { display: inline-flex; align-items: center; gap: 7px; }
.pulse-microcopy i { color: var(--pulse-lime); }
.terminal-preview {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(195,238,226,.16);
  border-radius: 22px 7px 22px 7px;
  background: linear-gradient(145deg, rgba(17,39,42,.98), rgba(7,20,22,.98));
  box-shadow: 0 34px 100px rgba(0,0,0,.42), 0 0 0 8px rgba(255,255,255,.015);
  transform: perspective(1100px) rotateY(-4deg) rotateX(1.5deg);
}
.terminal-bar { height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid var(--pulse-line); }
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots i { width: 7px; height: 7px; border-radius: 50%; background: #37514c; }
.terminal-dots i:first-child { background: var(--pulse-lime); }
.terminal-account { padding: 7px 10px; border-radius: 8px; color: var(--pulse-lime); background: rgba(185,243,75,.08); font: 600 8px 'IBM Plex Mono', monospace; }
.terminal-content { display: grid; grid-template-columns: 1fr 156px; min-height: 416px; }
.terminal-chart { position: relative; padding: 19px 18px 14px; border-right: 1px solid var(--pulse-line); }
.terminal-tabs { display: flex; gap: 7px; }
.terminal-tabs span { padding: 8px 9px; border: 1px solid var(--pulse-line); border-radius: 8px; color: #95afa9; background: rgba(255,255,255,.025); font: 600 8px 'IBM Plex Mono', monospace; }
.terminal-tabs span.active { color: var(--pulse-ink); background: var(--pulse-lime); }
.terminal-price { margin: 29px 0 5px; font: 600 25px 'IBM Plex Mono', monospace; }
.terminal-change { color: var(--pulse-green); font: 600 9px 'IBM Plex Mono', monospace; }
.chart-svg { position: absolute; inset: 126px 12px 15px; width: calc(100% - 24px); height: calc(100% - 141px); }
.chart-grid line { stroke: rgba(195,238,226,.08); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--pulse-lime); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(185,243,75,.35)); }
.chart-area { fill: url(#pulseArea); }
.terminal-order { padding: 17px 13px; }
.terminal-order label { display: block; margin-bottom: 7px; color: #678780; font: 600 8px 'IBM Plex Mono', monospace; text-transform: uppercase; letter-spacing: .12em; }
.terminal-control { padding: 11px; margin-bottom: 12px; border: 1px solid var(--pulse-line); border-radius: 9px; color: #fff; background: rgba(255,255,255,.025); font: 600 11px 'IBM Plex Mono', monospace; }
.terminal-up,
.terminal-down { width: 100%; min-height: 43px; margin-top: 8px; border: 0; border-radius: 9px; color: #07110d; font-size: 10px; font-weight: 900; }
.terminal-up { background: var(--pulse-green); }
.terminal-down { background: var(--pulse-red); }
.pulse-section { position: relative; padding: 86px 0; border-top: 1px solid rgba(195,238,226,.07); }
.pulse-section-heading { max-width: 660px; margin-bottom: 34px; }
.pulse-section-heading h2 { margin: 13px 0 10px; font: 400 clamp(30px,4vw,50px)/1.05 'Archivo Black', sans-serif; letter-spacing: -.05em; }
.pulse-section-heading p { margin: 0; color: var(--pulse-muted); line-height: 1.7; }
.pulse-feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.pulse-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--pulse-line);
  border-radius: var(--pulse-radius);
  background: linear-gradient(145deg, rgba(17,39,42,.92), rgba(9,24,26,.94));
  box-shadow: 0 18px 55px rgba(0,0,0,.12);
}
.pulse-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 2px; background: linear-gradient(var(--pulse-lime), transparent); opacity: .8; }
.pulse-card-icon { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(185,243,75,.22); border-radius: 12px; color: var(--pulse-lime); background: rgba(185,243,75,.06); font-size: 19px; }
.pulse-card h3 { margin: 19px 0 9px; font-size: 16px; }
.pulse-card p { margin: 0; color: var(--pulse-muted); font-size: 12px; line-height: 1.7; }
.pulse-risk { margin-top: 18px; padding: 14px 16px; border: 1px solid rgba(245,201,108,.16); border-radius: 11px; color: #b8aa83; background: rgba(245,201,108,.035); font-size: 10px; line-height: 1.6; }

.dashboard-shell { width: min(1360px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 54px; }
.dashboard-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 22px; }
.dashboard-welcome h1 { margin: 8px 0 4px; font-size: clamp(31px,4vw,48px); }
.dashboard-welcome p { margin: 0; color: var(--pulse-muted); font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 12px; }
.dashboard-card { padding: 20px; border: 1px solid var(--pulse-line); border-radius: 15px; background: linear-gradient(145deg, rgba(17,39,42,.94), rgba(8,22,24,.97)); }
.dashboard-balance { grid-column: span 4; min-height: 180px; }
.dashboard-demo { grid-column: span 4; min-height: 180px; }
.dashboard-actions { grid-column: span 4; min-height: 180px; }
.dashboard-terminal { grid-column: span 8; padding: 0; overflow: hidden; }
.dashboard-activity { grid-column: span 4; }
.dashboard-label { color: var(--pulse-muted); font: 600 9px 'IBM Plex Mono', monospace; letter-spacing: .13em; text-transform: uppercase; }
.dashboard-number { margin-top: 18px; font: 600 clamp(24px,3vw,38px) 'IBM Plex Mono', monospace; }
.dashboard-number.lime { color: var(--pulse-lime); }
.dashboard-meta { margin-top: 10px; color: #6f918a; font-size: 10px; }
.dashboard-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 17px; }
.dashboard-quick button,
.dashboard-quick a { min-height: 43px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--pulse-line); border-radius: 9px; color: #d4e5e1; background: rgba(255,255,255,.03); text-decoration: none; font-size: 10px; font-weight: 800; cursor: pointer; }
.dashboard-quick .accent { color: var(--pulse-ink); border-color: var(--pulse-lime); background: var(--pulse-lime); }
.activity-list { display: grid; gap: 10px; margin-top: 17px; }
.activity-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid rgba(195,238,226,.07); }
.activity-row:last-child { border: 0; }
.activity-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.activity-icon { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 31px; border-radius: 9px; color: var(--pulse-lime); background: rgba(185,243,75,.07); }
.activity-copy strong { display: block; font-size: 10px; }
.activity-copy small { color: var(--pulse-muted); font-size: 8px; }
.activity-value { font: 600 9px 'IBM Plex Mono', monospace; white-space: nowrap; }

/* Existing internal pages */
.transacoes-section,
.perfil-section,
.apostas-section {
  margin-top: 0 !important;
  padding: 30px 0 56px !important;
  min-height: calc(100vh - var(--pulse-header)) !important;
  background: transparent !important;
}
.transactions-container,
.perfil-container,
.apostas-container { max-width: 1120px !important; }
.page-header,
.header-card { text-align: left !important; }
.main-container,
.profile-form,
.stat-card,
.transaction-item,
.header-card {
  border-color: var(--pulse-line) !important;
  background: linear-gradient(145deg, rgba(17,39,42,.94), rgba(8,22,24,.97)) !important;
  box-shadow: none !important;
}
.page-title,
.header-title { font-family: 'Archivo Black', sans-serif !important; letter-spacing: -.045em !important; }
.transaction-header { background: rgba(185,243,75,.05) !important; border-color: rgba(185,243,75,.14) !important; color: var(--pulse-lime) !important; }
.tab-button.active { background: var(--pulse-lime) !important; color: var(--pulse-ink) !important; }
.status-badge.approved { color: var(--pulse-green) !important; background: rgba(43,209,138,.08) !important; border-color: rgba(43,209,138,.2) !important; }

/* Existing finance modals */
.modal-backdrop { background: rgba(1,8,9,.78) !important; backdrop-filter: blur(8px) !important; }
.modal-card {
  border: 1px solid var(--pulse-line-strong) !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, #102528, #081719) !important;
  box-shadow: var(--pulse-shadow) !important;
}
.modal-card::before { display: none !important; }
.modal-card h2,
.modal-card h3 { font-family: 'Archivo Black', sans-serif !important; letter-spacing: -.04em !important; text-shadow: none !important; }
.modal-card input,
.modal-card select,
.pix-input-group {
  border: 1px solid var(--pulse-line) !important;
  border-radius: 10px !important;
  background: rgba(3,13,14,.72) !important;
  box-shadow: none !important;
}
.modal-card .chip-m { border: 1px solid var(--pulse-line) !important; border-radius: 9px !important; background: rgba(255,255,255,.03) !important; box-shadow: none !important; }
.modal-card .chip-m.active { color: var(--pulse-ink) !important; border-color: var(--pulse-lime) !important; background: var(--pulse-lime) !important; }
.btn-hw-primary,
.btn-hw-small { color: var(--pulse-ink) !important; border: 0 !important; border-radius: 10px !important; background: var(--pulse-lime) !important; box-shadow: none !important; font-family: 'Manrope', sans-serif !important; }

@media (max-width: 1040px) {
  .pulse-hero-grid { grid-template-columns: 1fr; }
  .terminal-preview { max-width: 720px; transform: none; }
  .pulse-feature-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-balance,
  .dashboard-demo,
  .dashboard-actions { grid-column: span 6; }
  .dashboard-terminal,
  .dashboard-activity { grid-column: span 12; }
}

@media (max-width: 860px) {
  .user-session body { padding: var(--pulse-header) 0 78px !important; }
  .app-sidebar { width: min(84vw, 290px); transform: translateX(-105%); transition: transform .22s ease; }
  .app-sidebar.active { transform: translateX(0); }
  .close-sidebar-btn { display: grid; place-items: center; }
  .app-header { left: 0; padding: 0 14px; }
  .mobile-menu-btn { display: grid; }
  .header-nav { display: none; }
  .mobile-logo .pulse-brand-copy small { display: none; }
  .bottom-nav {
    position: fixed;
    z-index: 1030;
    right: 10px;
    bottom: 10px;
    left: 10px;
    height: 64px;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    padding: 6px;
    border: 1px solid var(--pulse-line);
    border-radius: 16px;
    background: rgba(7,19,21,.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 50px rgba(0,0,0,.4);
  }
  .bottom-nav-item,
  .bottom-nav-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; border-radius: 10px; color: #73948d; background: transparent; text-decoration: none; font-size: 8px; font-weight: 800; }
  .bottom-nav-item i,
  .bottom-nav-action i { font-size: 17px; }
  .bottom-nav-item.active { color: var(--pulse-lime); }
  .bottom-nav-action { color: var(--pulse-ink); background: var(--pulse-lime); }
  .pulse-hero { min-height: auto; padding: 58px 0 70px; }
  .pulse-feature-grid { grid-template-columns: 1fr; }
  .dashboard-welcome { align-items: flex-start; flex-direction: column; }
  .dashboard-balance,
  .dashboard-demo,
  .dashboard-actions,
  .dashboard-terminal,
  .dashboard-activity { grid-column: span 12; }
}

@media (max-width: 590px) {
  :root { --pulse-header: 64px; }
  .guest-session .app-header { padding-inline: 12px; }
  .header-actions .btn-auth { min-height: 38px; padding: 0 12px; font-size: 9px; }
  .wallet-pill { min-width: 130px; padding-left: 9px; }
  .wallet-meta { display: none; }
  .wallet-balance { font-size: 11px; }
  .pulse-container,
  .dashboard-shell { width: min(100% - 20px, 1180px); }
  .pulse-hero h1 { font-size: clamp(42px, 14vw, 62px); }
  .pulse-lead { font-size: 14px; }
  .pulse-actions { display: grid; grid-template-columns: 1fr; }
  .pulse-button.large { width: 100%; }
  .terminal-preview { min-height: 410px; border-radius: 16px 5px; }
  .terminal-content { grid-template-columns: 1fr; }
  .terminal-chart { min-height: 355px; border-right: 0; }
  .terminal-order { display: none; }
  .dashboard-grid { display: block; }
  .dashboard-card { margin-bottom: 10px; }
}

/* Keep intrinsically wide terminal controls from expanding the mobile grid. */
html,
body { max-width: 100%; overflow-x: hidden; }
.pulse-hero-grid > *,
.terminal-preview,
.terminal-content,
.terminal-chart { min-width: 0; }

@media (max-width: 1040px) {
  .pulse-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .terminal-preview { width: 100%; }
}

@media (max-width: 590px) {
  .pulse-hero h1 {
    max-width: 100%;
    font-size: clamp(38px, 12.2vw, 49px);
    overflow-wrap: anywhere;
  }
  .pulse-microcopy { gap: 10px 14px; }
  .terminal-bar { padding-inline: 12px; }
  .terminal-account { font-size: 7px; }
  .terminal-tabs { flex-wrap: wrap; }
  .terminal-tabs span { padding: 7px; font-size: 7px; }
}
