* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: #02080d;
  color: #f4fbff;
}

body {
  background:
    radial-gradient(circle at 18% 12%, rgba(0,229,255,.16), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(0,120,255,.18), transparent 34%),
    linear-gradient(135deg,#02080d,#06131d 55%,#02070c);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  padding: 10px;
}

.topbar {
  height: 64px;
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(0,229,255,.22);
  border-radius: 18px;
  background: rgba(0,0,0,.48);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg,#00e5ff,#0077ff);
  color: #001014;
  font-weight: 900;
  font-size: 22px;
}

.brand strong {
  display: block;
  letter-spacing: 2px;
  font-size: 15px;
}

.brand span {
  display: block;
  color: #85a8b6;
  font-size: 11px;
}

.top-search {
  display: flex;
  gap: 8px;
}

.top-search input {
  width: 100%;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0,229,255,.22);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 0 16px;
  outline: none;
}

.top-search button,
.top-actions a,
.btn {
  border: 1px solid rgba(0,229,255,.34);
  background: rgba(0,229,255,.08);
  color: #00e5ff;
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 800;
  font-size: 12px;
}

.top-search button,
.btn.primary {
  background: linear-gradient(135deg,#00e5ff,#0077ff);
  color: #001014;
  border: none;
}

.top-actions {
  display: flex;
  gap: 8px;
}

.main-grid {
  height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: 270px 1fr 300px;
  gap: 10px;
  margin-top: 10px;
  overflow: hidden;
}

.left-rail,
.right-rail,
.center-screen {
  min-height: 0;
}

.module,
.center-screen {
  border: 1px solid rgba(0,229,255,.18);
  background: rgba(3,13,22,.78);
  border-radius: 18px;
  box-shadow: inset 0 0 28px rgba(255,255,255,.025);
}

.left-rail,
.right-rail {
  display: grid;
  gap: 10px;
  grid-auto-rows: min-content;
}

.module {
  padding: 14px;
  overflow: hidden;
}

.module-title {
  color: #00e5ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.broker-card {
  text-align: center;
}

.portrait-box {
  height: 185px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at center, rgba(0,229,255,.16), transparent 50%),
    rgba(255,255,255,.03);
}

.portrait-box img {
  max-width: 100%;
  max-height: 210px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}

.broker-card h1 {
  font-size: 22px;
  margin: 12px 0 4px;
}

.broker-card p {
  margin: 0;
  color: #b6cbd6;
  font-size: 12px;
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.mini-stats div {
  border: 1px solid rgba(0,229,255,.16);
  border-radius: 14px;
  padding: 9px;
  background: rgba(255,255,255,.03);
}

.mini-stats strong,
.mini-stats span {
  display: block;
}

.mini-stats strong {
  color: #fff;
  font-size: 14px;
}

.mini-stats span {
  color: #83a8b8;
  font-size: 10px;
}

.rail-btn {
  display: block;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(0,229,255,.16);
  margin-bottom: 8px;
  color: #d7f8ff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,255,255,.03);
}

.rail-btn.primary {
  background: linear-gradient(135deg,#00e5ff,#0077ff);
  color: #001014;
  border: none;
}

.chip-list,
.adv-list {
  display: grid;
  gap: 8px;
}

.chip-list span,
.adv-list span {
  border: 1px solid rgba(0,229,255,.14);
  background: rgba(255,255,255,.03);
  padding: 9px 10px;
  border-radius: 12px;
  color: #ccefff;
  font-size: 12px;
}

.center-screen {
  display: grid;
  grid-template-rows: 48px 1fr;
  overflow: hidden;
}

.screen-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid rgba(0,229,255,.16);
}

.tab {
  border: 1px solid rgba(0,229,255,.16);
  background: rgba(255,255,255,.035);
  color: #bdefff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  background: linear-gradient(135deg,#00e5ff,#0077ff);
  color: #001014;
  border: none;
}

.screen-body {
  position: relative;
  overflow: hidden;
}

.view {
  display: none;
  height: 100%;
  padding: 24px;
  overflow: hidden;
}

.view.active {
  display: block;
}

.eyebrow {
  color: #00e5ff;
  letter-spacing: 3px;
  font-size: 11px;
  font-weight: 900;
  margin: 0 0 10px;
}

.hero-window {
  height: 100%;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 18px;
  align-items: center;
}

.hero-window h2,
.view h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: .94;
  letter-spacing: -1.8px;
}

.view p {
  color: #b7c9d4;
  line-height: 1.55;
  font-size: 15px;
  max-width: 820px;
}

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.full {
  width: 100%;
}

.hero-data {
  display: grid;
  gap: 10px;
}

.hero-data div,
.info-grid div,
.result-grid div,
.review-grid div,
.book-box,
.blog-list a {
  border: 1px solid rgba(0,229,255,.16);
  background: rgba(255,255,255,.035);
  border-radius: 18px;
  padding: 16px;
}

.hero-data strong,
.info-grid strong,
.result-grid strong,
.review-grid strong,
.book-box strong,
.blog-list strong {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-bottom: 6px;
}

.hero-data span,
.info-grid span,
.result-grid span,
.blog-list span {
  color: #95b2bf;
  font-size: 13px;
  line-height: 1.4;
}

.info-grid,
.result-grid,
.review-grid,
.blog-list {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
  margin-top: 18px;
}

.result-grid {
  grid-template-columns: repeat(3,1fr);
}

.review-grid {
  grid-template-columns: repeat(3,1fr);
  margin-bottom: 18px;
}

.book-box {
  max-width: 360px;
  margin-top: 20px;
  border-color: rgba(0,229,255,.36);
}

.book-box span {
  display: block;
  color: #00e5ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-list a {
  display: block;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,229,255,.14);
  background: rgba(255,255,255,.03);
}

.nav-list strong,
.nav-list span {
  display: block;
}

.nav-list strong {
  font-size: 13px;
  color: #fff;
}

.nav-list span {
  color: #84a6b5;
  font-size: 11px;
  margin-top: 4px;
}

.contact-card h3 {
  margin: 0;
  font-size: 22px;
}

.contact-card p {
  color: #9fb5c1;
  line-height: 1.45;
  font-size: 13px;
}

.statusbar {
  height: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7fa1b0;
  font-size: 11px;
  padding: 0 10px;
}

@media (min-width: 1001px) {
  body {
    overflow: hidden;
  }
}

@media (max-width: 1000px) {
  body {
    overflow: auto;
  }

  .page-shell {
    padding: 8px;
  }

  .topbar {
    height: auto;
    grid-template-columns: 1fr;
  }

  .top-actions,
  .screen-tabs {
    flex-wrap: wrap;
  }

  .main-grid {
    height: auto;
    display: block;
    overflow: visible;
  }

  .left-rail,
  .right-rail,
  .center-screen {
    margin-bottom: 10px;
  }

  .center-screen {
    min-height: 620px;
  }

  .view {
    overflow: visible;
    height: auto;
  }

  .hero-window,
  .info-grid,
  .result-grid,
  .review-grid,
  .blog-list {
    grid-template-columns: 1fr;
  }

  .hero-window h2,
  .view h2 {
    font-size: 38px;
  }

  .statusbar {
    display: none;
  }
}