:root {
  color-scheme: dark;
  --bg: #020910;
  --surface: rgba(10, 24, 39, 0.92);
  --surface-2: rgba(12, 31, 51, 0.88);
  --ink: #f4f8ff;
  --muted: #a6b2c4;
  --line: rgba(126, 174, 221, 0.22);
  --line-strong: rgba(126, 174, 221, 0.38);
  --green: #18e0be;
  --blue: #2688ff;
  --amber: #ffba52;
  --red: #ff6578;
  --soft-green: rgba(19, 226, 190, 0.13);
  --soft-blue: rgba(38, 136, 255, 0.14);
  --soft-amber: rgba(255, 186, 82, 0.14);
  --soft-red: rgba(255, 101, 120, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --hub-panel: rgba(10, 24, 39, 0.88);
  --hub-panel-2: rgba(12, 31, 51, 0.9);
  --hub-line: rgba(126, 174, 221, 0.22);
  --hub-text: #f4f8ff;
  --hub-muted: #a6b2c4;
  --hub-cyan: #10d4ff;
  --hub-blue: #267bff;
  --hub-purple: #9b38ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 6%, rgba(25, 124, 255, 0.18), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(142, 56, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #020910 0%, #02070d 48%, #030b13 100%);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.app-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(8, 23, 39, 0.96), rgba(5, 15, 26, 0.98)),
    radial-gradient(circle at 40% 0%, rgba(38, 136, 255, 0.18), transparent 34%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  padding: 0 4px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0de0ff 0%, #166fff 52%, #9c37ff 100%);
  color: white;
  font-weight: 950;
  font-style: italic;
  font-size: 0.92rem;
  letter-spacing: 0;
  box-shadow: 0 0 28px rgba(30, 125, 255, 0.45);
  transform: skew(-10deg);
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.eyebrow,
.metrics small,
.service-meta,
.control-list span,
.selected-summary span,
.subtle-count,
.select-field span,
.form-grid label span {
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 4px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 11px;
  border-radius: 8px;
  font-weight: 720;
  border: 1px solid transparent;
  font-size: 0.92rem;
}

.nav-icon {
  width: 18px;
  flex: 0 0 18px;
  color: #eef8ff;
  font-size: 0.9rem;
  line-height: 1;
  text-align: center;
}

.nav a.active,
.nav a:hover {
  background: linear-gradient(90deg, rgba(38, 136, 255, 0.2), rgba(155, 56, 255, 0.12));
  border-color: rgba(126, 174, 221, 0.2);
  color: #eef8ff;
}

.side-note {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  background: rgba(15, 39, 64, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.side-note span {
  font-weight: 800;
}

.side-balance-action {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(45, 137, 255, 0.65);
  border-radius: 7px;
  background: rgba(16, 55, 94, 0.8);
  color: #eff8ff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 850;
}

main {
  padding: 24px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.topbar,
.section-head,
.status-row,
.split,
.inline-form {
  display: flex;
  align-items: center;
}

.topbar,
.section-head {
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  min-height: 72px;
  padding: 4px 0 12px;
  border-bottom: 1px solid rgba(126, 174, 221, 0.12);
}

.eyebrow {
  margin: 0 0 5px;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 2.1rem;
  line-height: 1.1;
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.32);
}

h2 {
  font-size: 1.1rem;
  line-height: 1.2;
}

.status-row {
  gap: 10px;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 16, 27, 0.72);
}

.segmented button {
  min-width: 42px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.segmented button.active {
  background: linear-gradient(95deg, #10d4ff, #267bff 55%, #9b38ff);
  color: white;
}

.status-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(19, 226, 190, 0.12);
  color: var(--green);
  border: 1px solid rgba(19, 226, 190, 0.22);
  font-weight: 850;
  font-size: 0.86rem;
  white-space: nowrap;
}

.status-pill.muted {
  background: rgba(126, 174, 221, 0.1);
  color: var(--muted);
  border-color: rgba(126, 174, 221, 0.18);
}

.icon-button,
.primary-button,
.secondary-button {
  border: 0;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 850;
}

.icon-button {
  width: 42px;
  background: linear-gradient(135deg, #0de0ff, #166fff 58%, #9c37ff);
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 0 24px rgba(38, 136, 255, 0.28);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metrics div,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.metrics div {
  padding: 14px;
  display: grid;
  gap: 6px;
  min-width: 0;
  background: linear-gradient(145deg, rgba(14, 35, 56, 0.95), rgba(7, 20, 34, 0.96));
}

.metrics strong {
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}

.order-desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(14, 35, 56, 0.95), rgba(7, 20, 34, 0.96)),
    radial-gradient(circle at 90% 0%, rgba(38, 136, 255, 0.12), transparent 28%);
}

.catalog-panel {
  min-height: 560px;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: start;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.compact-form,
.admin-form {
  display: grid;
  gap: 10px;
}

.compact-form {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 25, 42, 0.86);
}

.compact-form input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  outline: 0;
  background: rgba(5, 16, 27, 0.82);
  color: var(--ink);
}

.admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.admin-form label {
  display: grid;
  gap: 7px;
}

.admin-form label span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 780;
}

.admin-form .wide,
.admin-form button {
  grid-column: 1 / -1;
}

.cabinet-box {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 25, 42, 0.86);
}

.cabinet-box div {
  display: grid;
  gap: 4px;
}

.cabinet-box span,
.empty-line,
.order-item span {
  color: var(--muted);
}

.orders-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.order-item,
.empty-line {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 25, 42, 0.86);
}

.order-item {
  display: grid;
  gap: 4px;
}

.details-panel {
  position: sticky;
  top: 18px;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(210px, 0.5fr) 170px;
  gap: 10px;
  margin-top: 16px;
}

.search,
.select-field {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(9, 25, 42, 0.86);
  min-width: 0;
}

.select-field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 6px 10px;
}

.select-field span {
  font-size: 0.7rem;
  font-weight: 780;
}

.search input,
.select-field select,
.form-grid input,
.form-grid select,
.form-grid textarea,
.inline-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  outline: 0;
}

input::placeholder,
textarea::placeholder {
  color: rgba(166, 178, 196, 0.64);
}

.search input,
.select-field select {
  border: 0;
  background: transparent;
  height: 100%;
  min-width: 0;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.filter-row button,
.load-more {
  border: 1px solid var(--line);
  background: rgba(9, 25, 42, 0.86);
  color: var(--muted);
  border-radius: 999px;
  min-height: 34px;
  padding: 7px 12px;
  font-weight: 780;
}

.filter-row button.active {
  color: white;
  border-color: rgba(38, 136, 255, 0.68);
  background: linear-gradient(95deg, #10d4ff, #267bff 55%, #9b38ff);
}

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

.service-row {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(14, 35, 56, 0.95), rgba(7, 20, 34, 0.96));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
}

.service-row-detailed {
  min-height: 150px;
}

.service-row.selected {
  border-color: rgba(38, 136, 255, 0.72);
  box-shadow: inset 3px 0 0 var(--blue), 0 0 34px rgba(38, 136, 255, 0.14);
}

.service-row.blocked {
  opacity: 0.62;
}

.service-row.live .compliance-badge {
  color: var(--green);
  background: var(--soft-green);
}

.service-row.review .compliance-badge {
  color: var(--amber);
  background: var(--soft-amber);
}

.service-row.blocked .compliance-badge {
  color: var(--red);
  background: var(--soft-red);
}

.service-main {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 13px 14px;
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
}

.service-main:hover,
.service-row.selected .service-main {
  background: rgba(38, 136, 255, 0.08);
}

.service-title {
  font-weight: 850;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-meta {
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-description {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-list span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(19, 226, 190, 0.12);
  border: 1px solid rgba(19, 226, 190, 0.18);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
}

.muted-pills span {
  background: rgba(126, 174, 221, 0.1);
  border-color: rgba(126, 174, 221, 0.16);
  color: var(--muted);
}

.service-stats {
  width: 258px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  align-content: center;
  border-left: 1px solid var(--line);
  background: rgba(5, 16, 27, 0.44);
}

.service-row-detailed .service-stats {
  grid-template-columns: 1fr;
  width: 190px;
}

.service-stats span {
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.mini-action {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(95deg, #10d4ff, #267bff 55%, #9b38ff);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.service-id,
.range {
  background: rgba(126, 174, 221, 0.1);
  color: var(--muted);
}

.rate {
  background: var(--soft-blue);
  color: var(--blue);
}

.load-more {
  width: 100%;
  margin-top: 12px;
  border-radius: 8px;
}

.service-hint {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 9px 11px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.selected-summary {
  margin-top: 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.selected-summary strong {
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.detail-grid div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.detail-grid small {
  color: var(--muted);
  font-weight: 780;
}

.detail-grid strong {
  overflow-wrap: anywhere;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.badge-row span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 850;
  color: var(--muted);
  background: rgba(126, 174, 221, 0.1);
}

.badge-row span.good {
  color: var(--green);
  background: var(--soft-green);
}

.badge-row span.muted {
  color: var(--muted);
  background: rgba(126, 174, 221, 0.1);
}

.description-block {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.description-block h3 {
  margin: 0;
  font-size: 0.9rem;
}

.description-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.form-grid {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.form-grid label span {
  font-size: 0.86rem;
  font-weight: 780;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.inline-form input {
  min-height: 42px;
  padding: 10px 12px;
}

.form-grid textarea {
  resize: vertical;
}

.split {
  gap: 10px;
}

.split label {
  flex: 1;
}

.stepper {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 6px;
}

.stepper button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 25, 42, 0.86);
  color: var(--ink);
  font-weight: 900;
}

.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: linear-gradient(95deg, #10d4ff, #267bff 55%, #9b38ff);
  color: white;
  padding: 0 16px;
  box-shadow: 0 0 26px rgba(38, 136, 255, 0.22);
}

.primary-button:disabled {
  opacity: 0.68;
}

.secondary-button {
  background: rgba(5, 16, 27, 0.82);
  border: 1px solid rgba(126, 174, 221, 0.22);
  color: white;
  padding: 0 15px;
}

.result-box,
.json-box {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 25, 42, 0.86);
}

.result-box {
  padding: 14px;
  color: var(--green);
  font-weight: 800;
}

.result-box.error {
  color: var(--red);
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
}

.inline-form {
  gap: 10px;
  margin-top: 16px;
}

.json-box {
  min-height: 120px;
  padding: 14px;
  white-space: pre-wrap;
  overflow: auto;
}

.control-list {
  margin-top: 14px;
  display: grid;
  gap: 0;
}

.control-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.control-list div:last-child {
  border-bottom: 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.narrow-panel {
  max-width: 860px;
}

.spaced {
  margin-top: 22px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
}

.data-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

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

.data-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 6px;
  background: linear-gradient(145deg, rgba(14, 35, 56, 0.95), rgba(7, 20, 34, 0.96));
}

.data-card span,
.data-card small,
.muted-text {
  color: var(--muted);
}

.code-block,
pre.result-box {
  white-space: pre-wrap;
  overflow: auto;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88rem;
}

.copy-box {
  margin-top: 12px;
  display: grid;
  gap: 7px;
}

.check-list {
  display: grid;
  gap: 14px;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  padding: 0 18px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

@media (max-width: 1180px) {
  .account-grid,
  .order-desk,
  .lower-grid,
  .two-column,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .details-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav {
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .side-note {
    margin-left: auto;
    margin-top: 0;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr 1fr;
  }

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

  .search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  main {
    padding: 16px;
  }

  h1 {
    font-size: 1.55rem;
  }

  .topbar,
  .section-head,
  .split,
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .service-stats {
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--line);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    padding: 16px;
  }
}

body[data-page="landing"] {
  --hub-bg: #020910;
  --hub-panel: rgba(10, 24, 39, 0.88);
  --hub-panel-2: rgba(12, 31, 51, 0.9);
  --hub-line: rgba(126, 174, 221, 0.22);
  --hub-text: #f4f8ff;
  --hub-muted: #a6b2c4;
  --hub-cyan: #10d4ff;
  --hub-blue: #267bff;
  --hub-purple: #9b38ff;
  color-scheme: dark;
  background:
    radial-gradient(circle at 18% 9%, rgba(25, 124, 255, 0.18), transparent 28%),
    radial-gradient(circle at 83% 20%, rgba(142, 56, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #020910 0%, #02070d 48%, #030b13 100%);
  color: var(--hub-text);
}

body[data-page="landing"]::before {
  content: "";
  position: fixed;
  inset: 68px 0 auto;
  height: 1px;
  background: rgba(140, 180, 225, 0.14);
  pointer-events: none;
}

.hub-header,
.hub-page {
  width: min(1340px, calc(100% - 56px));
  margin: 0 auto;
}

.hub-header {
  min-height: 68px;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: 24px;
}

.hub-brand,
.hub-nav,
.hub-actions,
.hero-buttons,
.hero-stats,
.dash-brand,
.dash-top,
.mini-head,
.feed-card div,
.steps-row,
.hub-cta,
.hub-cta ul {
  display: flex;
  align-items: center;
}

.hub-brand,
.hub-nav a,
.hub-actions a,
.hub-primary,
.hub-secondary,
.center-link,
.platform-grid a {
  color: inherit;
  text-decoration: none;
}

.hub-brand {
  gap: 12px;
  font-size: 1.45rem;
}

.hub-logo {
  width: 39px;
  height: 39px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 950;
  font-style: italic;
  background: linear-gradient(135deg, #0de0ff 0%, #166fff 52%, #9c37ff 100%);
  box-shadow: 0 0 28px rgba(30, 125, 255, 0.45);
  transform: skew(-10deg);
}

.hub-logo.small {
  width: 23px;
  height: 23px;
  border-radius: 5px;
  font-size: 0.78rem;
}

.hub-nav {
  justify-content: center;
  gap: 48px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 750;
}

.hub-actions {
  gap: 14px;
  justify-content: flex-end;
}

.hub-login,
.hub-register,
.hub-primary,
.hub-secondary {
  min-height: 48px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 850;
}

.hub-login {
  min-width: 112px;
  border: 1px solid rgba(178, 205, 242, 0.32);
  background: rgba(3, 11, 20, 0.45);
}

.hub-register,
.hub-primary {
  border: 0;
  background: linear-gradient(95deg, var(--hub-cyan), var(--hub-blue) 55%, var(--hub-purple));
  box-shadow: 0 0 32px rgba(55, 127, 255, 0.28);
}

.hub-register {
  min-width: 160px;
}

.hub-page {
  padding: 26px 0 42px;
}

.hub-hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 48px;
  align-items: center;
}

.hub-hero.marketing-only {
  grid-template-columns: minmax(0, 900px);
  min-height: 560px;
  justify-content: center;
  text-align: center;
}

.hub-hero.marketing-only .hero-copy {
  padding-left: 0;
}

.hub-hero.marketing-only .hero-copy p,
.hub-hero.marketing-only .hero-stats {
  margin-left: auto;
  margin-right: auto;
}

.hub-hero.marketing-only .hero-buttons {
  justify-content: center;
}

.hero-copy {
  padding: 34px 0 0 10px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(40, 245, 244, 0.55);
  border-radius: 999px;
  background: rgba(17, 40, 62, 0.7);
  color: #d7efff;
  box-shadow: inset 0 0 18px rgba(26, 220, 255, 0.08);
}

.hero-badge::first-letter {
  color: #15f2f3;
}

.hero-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(3.2rem, 5vw, 5rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.hero-copy h1 span {
  color: #fff;
}

.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #14d8ff, #2a8dff 48%, #a840ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 610px;
  margin: 0;
  color: var(--hub-muted);
  font-size: 1.28rem;
  line-height: 1.55;
}

.hero-buttons {
  gap: 18px;
  margin-top: 34px;
}

.hub-primary {
  min-width: 255px;
  padding: 0 26px;
  font-size: 1.02rem;
}

.hub-secondary {
  min-width: 235px;
  padding: 0 24px;
  border: 1px solid rgba(178, 205, 242, 0.28);
  background: rgba(3, 11, 20, 0.62);
}

.hero-stats {
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  max-width: 560px;
}

.hero-stats div {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.hero-stats span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(55, 141, 255, 0.4);
  border-radius: 50%;
  color: #27a7ff;
  background: rgba(10, 29, 49, 0.82);
  box-shadow: inset 0 0 20px rgba(40, 150, 255, 0.14);
}

.hero-stats strong,
.hero-stats small {
  display: block;
}

.hero-stats strong {
  font-size: 1.08rem;
}

.hero-stats small {
  color: var(--hub-muted);
}

.hero-dashboard {
  min-height: 610px;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  border: 1px solid rgba(135, 180, 228, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(14, 38, 63, 0.96), rgba(5, 15, 26, 0.98)),
    radial-gradient(circle at 80% 0%, rgba(44, 130, 255, 0.18), transparent 30%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.dash-sidebar {
  display: grid;
  grid-auto-rows: max-content;
  gap: 8px;
  padding: 22px 12px;
  border-right: 1px solid rgba(135, 180, 228, 0.16);
  background: rgba(8, 23, 39, 0.76);
}

.dash-brand {
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.dash-sidebar > span {
  padding: 10px 11px;
  border-radius: 7px;
  color: #aebbd0;
  font-size: 0.78rem;
}

.dash-sidebar > span.active {
  color: #eaf6ff;
  background: rgba(38, 123, 255, 0.22);
}

.dash-balance {
  align-self: end;
  margin-top: auto;
  padding: 14px 11px;
  border: 1px solid rgba(135, 180, 228, 0.18);
  border-radius: 8px;
  background: rgba(15, 39, 64, 0.9);
}

.dash-balance small,
.dash-balance strong {
  display: block;
}

.dash-balance small {
  color: var(--hub-muted);
}

.dash-balance button,
.dash-top button {
  margin-top: 9px;
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(45, 137, 255, 0.65);
  border-radius: 7px;
  background: rgba(16, 55, 94, 0.8);
  color: #eff8ff;
  font-size: 0.75rem;
  font-weight: 800;
}

.dash-main {
  padding: 22px;
  min-width: 0;
}

.dash-top {
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-top h2 {
  font-size: 1.32rem;
}

.dash-top button {
  width: auto;
  min-width: 130px;
  margin: 0;
  border-color: rgba(126, 174, 221, 0.25);
  background: rgba(5, 16, 27, 0.7);
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.dash-metrics article,
.chart-card,
.popular-card,
.status-card,
.feed-card,
.platform-grid article,
.benefit-grid article,
.steps-row article,
.hub-cta {
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(14, 35, 56, 0.95), rgba(7, 20, 34, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dash-metrics article {
  min-height: 120px;
  padding: 15px;
  position: relative;
  overflow: hidden;
}

.dash-metrics small,
.dash-metrics em {
  color: var(--hub-muted);
}

.dash-metrics strong {
  display: block;
  margin-top: 5px;
  font-size: 1.55rem;
}

.dash-metrics em {
  display: block;
  margin-top: 4px;
  color: #13e7c3;
  font-style: normal;
  font-size: 0.78rem;
}

.dash-metrics svg {
  position: absolute;
  right: 0;
  bottom: 10px;
  width: 82%;
  height: 46px;
  fill: none;
  stroke: #287eff;
  stroke-width: 3;
}

.dash-metrics article:nth-child(2) svg {
  stroke: #9b38ff;
}

.dash-metrics article:nth-child(3) svg {
  stroke: #13c9d5;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 13px;
  margin-top: 13px;
}

.chart-card,
.popular-card,
.status-card,
.feed-card {
  min-height: 150px;
  padding: 15px;
}

.chart-card {
  position: relative;
  min-height: 238px;
}

.chart-card h3,
.popular-card h3,
.status-card h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.chart {
  height: 170px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  padding-top: 20px;
  border-bottom: 1px solid rgba(135, 180, 228, 0.14);
  background: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 100% 42px;
}

.chart span {
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #258bff, rgba(37, 139, 255, 0.18));
  box-shadow: 0 0 20px rgba(37, 139, 255, 0.35);
}

.chart-tip {
  position: absolute;
  top: 62px;
  right: 30px;
  padding: 8px 12px;
  border-radius: 7px;
  background: #f6fbff;
  color: #152234;
  font-size: 0.72rem;
  text-align: center;
}

.popular-card ul,
.platform-grid ul,
.hub-cta ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mini-head {
  justify-content: space-between;
  gap: 10px;
}

.mini-head a {
  color: #24a9ff;
  text-decoration: none;
  font-size: 0.75rem;
}

.popular-card li {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  color: #d4dfed;
  font-size: 0.82rem;
}

.i,
.platform-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  font-weight: 900;
}

.i {
  width: 24px;
  height: 24px;
}

.tg { background: linear-gradient(135deg, #20c8ff, #2478ff); }
.tk { background: #07111c; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.ig { background: linear-gradient(135deg, #7048ff, #ff3d8b 52%, #ffc33b); }
.yt { background: #ff2737; }
.fb { background: #2779ff; }
.x { background: #050b12; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); }

.status-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.status-card h3 {
  grid-column: 1 / -1;
}

.status-card div {
  display: grid;
  gap: 4px;
}

.status-card span {
  color: var(--hub-muted);
  font-size: 0.75rem;
}

.status-card strong {
  color: #1e9dff;
}

.status-card div:nth-child(3) strong { color: #ff9347; }
.status-card div:nth-child(4) strong { color: #1be2bf; }
.status-card div:nth-child(5) strong { color: #ff4b4b; }

.feed-card {
  display: grid;
  gap: 10px;
}

.feed-card div {
  gap: 10px;
}

.feed-card p {
  margin: 0;
  min-width: 0;
  flex: 1;
  font-size: 0.82rem;
}

.feed-card small {
  display: block;
  color: var(--hub-muted);
  margin-top: 3px;
}

.feed-card b {
  font-size: 0.78rem;
}

.feed-card em {
  min-width: 72px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(20, 218, 174, 0.12);
  color: #1fe1be;
  text-align: center;
  font-style: normal;
  font-size: 0.68rem;
}

.feed-card em.work {
  background: rgba(255, 186, 82, 0.14);
  color: #ffc36b;
}

.feed-card em.bad {
  background: rgba(255, 101, 120, 0.14);
  color: #ff7382;
}

body[data-page="account"] .dashboard-main {
  padding: 28px 30px;
  align-content: start;
}

.dashboard-shell {
  width: min(100%, 980px);
  display: grid;
  gap: 16px;
}

.dashboard-head,
.dashboard-controls {
  display: flex;
  align-items: center;
}

.dashboard-head {
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 6px;
}

.dashboard-head h1 {
  font-size: 1.8rem;
}

.dashboard-controls {
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.period-button {
  min-height: 38px;
  border: 1px solid rgba(126, 174, 221, 0.25);
  border-radius: 8px;
  background: rgba(5, 16, 27, 0.72);
  color: #eff8ff;
  padding: 0 12px;
  font-weight: 850;
}

body[data-page="account"] .dash-metrics article {
  min-height: 122px;
}

body[data-page="account"] .dashboard-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
}

body[data-page="account"] .chart-card {
  min-height: 250px;
}

body[data-page="account"] .status-card,
body[data-page="account"] .feed-card {
  min-height: 205px;
}

.dashboard-status-card {
  align-content: start;
}

.dashboard-auth {
  margin-top: 2px;
}

.dashboard-auth .quick-actions {
  margin-top: 12px;
}

.popular-card li span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.hub-section {
  margin-top: 42px;
}

.hub-section > h2 {
  margin-bottom: 22px;
  text-align: center;
  font-size: 1.75rem;
}

.platform-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.platform-grid article,
.benefit-grid article,
.price-grid article {
  padding: 20px 18px 16px;
}

.price-grid article {
  border: 1px solid var(--hub-line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(14, 35, 56, 0.95), rgba(7, 20, 34, 0.96));
}

.price-grid h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.price-grid strong {
  display: block;
  color: #14d8ff;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.price-grid p {
  min-height: 70px;
  margin: 0;
  color: var(--hub-muted);
  line-height: 1.45;
}

.price-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 16px;
  color: #26aaff;
  text-decoration: none;
  font-weight: 850;
}

.platform-icon {
  width: 54px;
  height: 54px;
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.platform-grid h3,
.benefit-grid h3 {
  margin: 0 0 14px;
  font-size: 1.12rem;
}

.platform-grid li {
  margin: 8px 0;
  color: #c6d2e0;
  font-size: 0.92rem;
}

.platform-grid li::before,
.hub-cta li::before {
  content: "•";
  color: #dce8f8;
  margin-right: 8px;
}

.platform-grid a {
  display: grid;
  place-items: center;
  min-height: 48px;
  margin-top: 16px;
  border: 1px solid rgba(126, 174, 221, 0.26);
  border-radius: 7px;
  background: rgba(19, 46, 74, 0.7);
  font-weight: 850;
}

.center-link {
  display: table;
  margin: 26px auto 0;
  color: #26aaff;
  font-size: 1.04rem;
}

.benefit-grid article {
  text-align: center;
  min-height: 235px;
}

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

.safety-grid article {
  min-height: 170px;
}

.benefit-grid span {
  display: block;
  margin-bottom: 16px;
  color: #24a8ff;
  font-size: 3rem;
  line-height: 1;
}

.benefit-grid p,
.steps-row p,
.hub-cta p {
  margin: 0;
  color: var(--hub-muted);
  line-height: 1.48;
}

.steps-row {
  justify-content: space-between;
  gap: 20px;
}

.steps-row article {
  flex: 1;
  min-height: 112px;
  padding: 18px 18px;
  gap: 18px;
}

.steps-row article strong {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #287eff;
  color: white;
  font-size: 2rem;
  box-shadow: 0 0 24px rgba(40, 126, 255, 0.35);
}

.steps-row article:nth-of-type(2) strong {
  border-color: #13d7e4;
  box-shadow: 0 0 24px rgba(19, 215, 228, 0.35);
}

.steps-row article:nth-of-type(3) strong {
  border-color: var(--hub-purple);
  box-shadow: 0 0 24px rgba(155, 56, 255, 0.35);
}

.steps-row h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
}

.step-arrow {
  color: #1fa7ff;
  font-size: 2rem;
}

.step-arrow.purple {
  color: var(--hub-purple);
}

.hub-cta {
  position: relative;
  justify-content: space-between;
  gap: 36px;
  margin-top: 34px;
  padding: 32px 40px;
  overflow: hidden;
}

.hub-cta::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% 35%;
  height: 150px;
  background:
    radial-gradient(circle at 25% 45%, rgba(23, 147, 255, 0.95), transparent 5%),
    radial-gradient(circle at 66% 20%, rgba(155, 56, 255, 0.95), transparent 5%),
    linear-gradient(160deg, transparent 14%, rgba(28, 151, 255, 0.44), transparent 32%, rgba(155, 56, 255, 0.44), transparent 62%);
  filter: blur(0.2px);
  opacity: 0.75;
  pointer-events: none;
}

.hub-cta h2 {
  margin: 0 0 12px;
  font-size: 2.25rem;
}

.hub-cta h2 span {
  color: #2f89ff;
}

.hub-cta ul {
  display: grid;
  gap: 10px;
  min-width: 230px;
  color: #eef5ff;
}

.hub-cta li::before {
  content: "✓";
  color: #11e2db;
}

.hub-footer {
  margin-top: 28px;
  padding: 22px 0 8px;
  border-top: 1px solid rgba(126, 174, 221, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: center;
  color: var(--hub-muted);
}

.hub-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 750;
}

.hub-footer a:hover {
  color: #26aaff;
}

@media (max-width: 1180px) {
  .hub-header {
    grid-template-columns: 1fr auto;
  }

  .hub-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .hub-hero {
    grid-template-columns: 1fr;
  }

  .hero-dashboard {
    min-height: 560px;
  }

  .platform-grid,
  .benefit-grid,
  .price-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hub-header,
  .hub-page {
    width: min(100% - 28px, 1340px);
  }

  .hub-header {
    grid-template-columns: 1fr;
    padding: 16px 0;
  }

  .hub-actions {
    justify-content: stretch;
  }

  .hub-actions a {
    flex: 1;
  }

  .hub-hero {
    min-height: 0;
    gap: 28px;
  }

  .hero-copy {
    padding: 20px 0 0;
  }

  .hero-copy h1 {
    font-size: 3.1rem;
  }

  .hero-copy p {
    font-size: 1.05rem;
  }

  .hero-buttons,
  .hero-stats,
  .hub-cta,
  .steps-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-dashboard {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    display: none;
  }

  .dash-metrics,
  .dash-grid,
  .platform-grid,
  .benefit-grid,
  .price-grid,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .steps-row .step-arrow {
    display: none;
  }
}
