:root {
  --bg: #f5f8fc;
  --panel: #ffffff;
  --ink: #081225;
  --muted: #526079;
  --soft: #eef3f9;
  --line: #dde6f1;
  --blue: #006dff;
  --blue-strong: #005ce6;
  --navy: #020713;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.48;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 109, 255, 0.07), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0, var(--bg) 18rem);
}

a {
  color: var(--blue-strong);
  font-weight: 650;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 84px;
  background: linear-gradient(100deg, #020713 0%, #06101d 58%, #020713 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.topbar-inner {
  width: min(100%, 1536px);
  height: 100%;
  margin: 0 auto;
  padding: 0 54px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  color: #fff;
}

.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-name {
  display: block;
  font-size: 28px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-name span {
  color: #2384ff;
}

.brand-tagline {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 2px;
  margin: 0 auto;
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.desktop-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn,
.outline-btn,
.primary-btn,
.ghost-btn {
  min-height: 40px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.icon-btn {
  width: 44px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 22px;
}

.outline-btn {
  padding: 0 26px;
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  font-weight: 700;
}

.primary-btn {
  padding: 0 24px;
  background: linear-gradient(180deg, #127cff, #0064f4);
  border-color: #127cff;
  color: #fff;
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(0, 109, 255, 0.24);
}

.mobile-menu {
  display: none;
}

.mobile-only {
  display: none !important;
}

.page {
  width: min(100%, 1536px);
  margin: 0 auto;
  padding: 24px 54px 28px;
}

.app-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel + .panel {
  margin-top: 14px;
}

.panel-pad {
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-title {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.panel-action {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.circle-icon,
.small-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #10203a;
}

.circle-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #60a7ff, #006dff);
  color: #fff;
  font-size: 21px;
}

.small-icon {
  width: 24px;
  height: 24px;
  font-size: 21px;
}

.sidebar {
  padding: 16px 14px;
}

.user-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #127cff, #005ce6);
  color: #fff;
  font-size: 24px;
}

.user-name {
  font-weight: 800;
}

.user-role,
.section-label,
.post-time,
.muted {
  color: var(--muted);
}

.user-role {
  font-size: 12px;
}

.section-label {
  margin: 24px 0 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.side-link {
  min-height: 31px;
  padding: 0 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2c3850;
  font-size: 13px;
  font-weight: 600;
}

.side-link[aria-current="page"] {
  background: #eaf3ff;
  color: var(--blue-strong);
}

.side-block {
  display: grid;
  gap: 12px;
  font-size: 12px;
}

.forum-post {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.forum-post:last-child {
  border-bottom: 0;
}

.forum-post strong {
  display: block;
  color: #0b2361;
  line-height: 1.22;
}

.main-stack {
  min-width: 0;
}

.card-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.card-table th,
.card-table td {
  height: 29px;
  padding: 0 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-table th {
  color: #0c1628;
  font-weight: 800;
}

.card-table tr:last-child td {
  border-bottom: 0;
}

.chev {
  width: 20px;
  color: #30415c;
  font-size: 22px;
  text-align: right;
}

.table-btn,
.outline-link {
  min-height: 32px;
  padding: 0 16px;
  border: 1px solid #bdd7ff;
  border-radius: 6px;
  background: #f7fbff;
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 800;
}

.right-feed {
  padding: 16px;
}

.feed-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.feed-item:first-of-type {
  padding-top: 0;
}

.feed-item:last-child {
  border-bottom: 0;
}

.feed-meta {
  color: #14213d;
  font-style: italic;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.full-btn {
  width: 100%;
  margin-top: 10px;
  min-height: 33px;
  border: 1px solid #bdd7ff;
  border-radius: 6px;
  background: #f8fbff;
  color: var(--blue-strong);
  font-weight: 800;
}

.cta-card {
  position: relative;
  min-height: 210px;
  padding: 28px 164px 26px 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 52%, rgba(0, 123, 255, 0.52), transparent 70px),
    linear-gradient(135deg, #06111f 0%, #020713 74%);
  color: #fff;
}

.cta-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.1;
}

.cta-card h3 span {
  display: block;
  color: #1782ff;
}

.cta-card p {
  margin: 14px 0 22px;
  max-width: 190px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.tower {
  position: absolute;
  right: 26px;
  bottom: 18px;
  width: 92px;
  height: 144px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: linear-gradient(90deg, #07121f, #111e30);
  box-shadow: 0 0 34px rgba(0, 109, 255, 0.48);
}

.tower::before,
.tower::after {
  content: "";
  position: absolute;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 7px solid #0a73ff;
  box-shadow: 0 0 14px rgba(0, 213, 255, 0.9);
}

.tower::before {
  top: 24px;
}

.tower::after {
  top: 84px;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 14px auto 0;
  width: min(100%, 860px);
}

.stat-item {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #26344e;
  font-size: 13px;
  border-right: 1px solid var(--line);
}

.stat-item:last-child {
  border-right: 0;
}

.mobile-user-card {
  display: none;
}

.profile-summary {
  padding: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.info-col {
  padding: 18px 20px;
}

.info-col + .info-col {
  border-left: 1px solid var(--line);
}

.info-row {
  display: grid;
  grid-template-columns: 36px 130px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 50px;
  font-size: 13px;
}

.value {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.rating {
  color: #ffb21a;
  font-size: 18px;
  letter-spacing: 0;
  white-space: nowrap;
}

.rating-muted {
  color: #c3ccd8;
}

.signature {
  position: relative;
  min-height: 126px;
  padding: 22px 210px 20px 28px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), transparent 34%),
    repeating-linear-gradient(150deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, #33495b, #142536);
  color: #fff;
}

.signature-name {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1;
  font-weight: 850;
}

.signature-specs {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2px 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.signature-rating {
  position: absolute;
  top: 20px;
  right: 34px;
  width: 92px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(7, 18, 31, 0.62);
  font-size: 54px;
  font-weight: 900;
}

.signature-site {
  position: absolute;
  right: 34px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 17px;
}

.spec-list {
  display: grid;
  gap: 10px;
}

.spec-row {
  display: grid;
  grid-template-columns: 36px 140px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  font-size: 14px;
}

.spec-row:first-child strong {
  grid-column: 2 / -1;
}

.comment-box {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  border: 1px solid #bdd7ff;
  border-radius: 5px;
  padding: 10px;
  color: var(--ink);
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 1180px) {
  .topbar-inner {
    padding: 0 28px;
  }

  .desktop-nav a {
    padding: 0 9px;
  }

  .app-grid {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .right-col {
    display: none;
  }
}

@media (max-width: 900px) {
  html,
  body {
    height: 100%;
  }

  body {
    height: 100dvh;
    overflow: hidden;
    padding-bottom: 0;
  }

  .topbar {
    height: 86px;
  }

  .topbar-inner {
    justify-content: space-between;
    padding: 0 24px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-name {
    font-size: 34px;
  }

  .brand-tagline,
  .desktop-nav,
  .outline-btn,
  .primary-btn,
  .desktop-sidebar,
  .desktop-only,
  .stats-bar {
    display: none;
  }

  .mobile-only {
    display: initial !important;
  }

  article.mobile-only,
  section.mobile-only {
    display: block !important;
  }

  .icon-btn.mobile-only {
    display: inline-flex !important;
  }

  .panel-action.mobile-only {
    display: inline-flex !important;
  }

  .mobile-menu {
    display: inline-flex;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 36px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
  }

  .top-actions {
    gap: 12px;
  }

  .icon-btn {
    border: 0;
    background: transparent;
    width: 46px;
    height: 46px;
    font-size: 34px;
  }

  .page {
    height: calc(100dvh - 86px - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 16px 18px;
  }

  .app-grid {
    display: block;
  }

  .mobile-user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 94px;
    padding: 16px 18px;
    margin-bottom: 14px;
  }

  .mobile-user-card .avatar {
    width: 58px;
    height: 58px;
    font-size: 32px;
  }

  .mobile-user-card h1 {
    margin: 0 0 2px;
    font-size: 22px;
    line-height: 1.15;
  }

  .mobile-user-card .chev {
    margin-left: auto;
  }

  .panel {
    border-radius: 12px;
  }

  .panel + .panel {
    margin-top: 14px;
  }

  .panel-pad,
  .profile-summary {
    padding: 16px;
  }

  .panel-title {
    font-size: 22px;
  }

  .panel-header {
    gap: 12px;
    margin-bottom: 16px;
  }

  .panel-action {
    font-size: 16px;
  }

  .table-btn {
    min-height: 44px;
    margin-left: auto;
    font-size: 17px;
  }

  .card-table th,
  .card-table td {
    height: 44px;
    font-size: 16px;
  }

  .card-table .hide-mobile {
    display: none;
  }

  .table-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 14px;
    font-size: 18px;
  }

  .right-feed {
    padding: 16px;
  }

  .feed-item {
    font-size: 16px;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .info-col {
    padding: 14px 16px;
  }

  .info-row {
    grid-template-columns: 34px 1fr;
    gap: 8px 12px;
    align-items: start;
    min-height: 58px;
    font-size: 15px;
  }

  .info-row strong,
  .info-row .value {
    grid-column: 2;
  }

  .signature {
    min-height: 130px;
    padding: 22px 122px 18px 26px;
  }

  .signature-name {
    font-size: 34px;
  }

  .signature-specs {
    grid-template-columns: 92px 1fr;
    font-size: 14px;
  }

  .signature-rating {
    right: 22px;
    width: 82px;
    height: 80px;
    font-size: 50px;
  }

  .signature-site {
    right: 20px;
    bottom: 14px;
    font-size: 15px;
  }

  .spec-row {
    grid-template-columns: 34px minmax(120px, 1fr) 1fr;
    font-size: 15px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 30;
    min-height: 78px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
  }

  .mobile-bottom-nav a {
    display: grid;
    gap: 3px;
    justify-items: center;
    color: #25344d;
    font-size: 12px;
    font-weight: 650;
  }

  .mobile-bottom-nav a[aria-current="page"] {
    color: var(--blue-strong);
  }

  .mobile-bottom-nav .nav-icon {
    font-size: 27px;
    line-height: 1;
  }
}

@media (max-width: 620px) {
  .topbar-inner {
    padding: 0 18px;
  }

  .brand-name {
    font-size: 26px;
    white-space: nowrap;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .page {
    padding-inline: 14px;
  }

  .panel-title {
    font-size: 20px;
  }

  .panel-header {
    flex-wrap: wrap;
  }

  .panel-action {
    font-size: 15px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-col + .info-col {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .signature {
    padding: 18px;
  }

  .signature-rating,
  .signature-site {
    position: static;
    margin-top: 12px;
  }

  .signature-rating {
    width: 88px;
    height: 70px;
    font-size: 46px;
  }

  .card-table th,
  .card-table td {
    padding-inline: 4px;
    font-size: 14px;
  }

  .spec-row {
    grid-template-columns: 30px 1fr;
  }

  .spec-row .value {
    grid-column: 2;
  }
}
