:root {
  --bg: #090b0d;
  --panel: #0e1215;
  --panel-2: #12181c;
  --line: rgba(170, 190, 188, .13);
  --line-hot: rgba(0, 216, 150, .32);
  --text: #edf4f2;
  --muted: #859197;
  --dim: #536066;
  --accent: #00d896;
  --blue: #7fb6c8;
  --danger: #ff5270;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(0, 216, 150, .055), transparent 30%),
    linear-gradient(180deg, #090b0d 0%, #080a0c 100%);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .45;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 72%);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.wrap {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 11, 13, .9);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Unbounded, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text);
  background: rgba(255,255,255,.035);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.key-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.key-form input,
.field input,
.field textarea,
.field select {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: var(--text);
  background: rgba(0,0,0,.28);
  outline: none;
}

.key-form input {
  width: 164px;
  height: 38px;
  padding: 0 10px;
}

.key-form input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--line-hot);
  box-shadow: 0 0 0 3px rgba(0, 229, 160, .07);
}

.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255,255,255,.045);
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { border-color: var(--line-hot); }

.btn.primary {
  border-color: rgba(0, 229, 160, .55);
  color: #03130f;
  background: var(--accent);
  font-weight: 800;
}

.btn.danger {
  border-color: rgba(255, 82, 112, .45);
  color: #ffd6de;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255,255,255,.045);
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--line-hot);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn.telegram svg {
  fill: currentColor;
  stroke: none;
  width: 17px;
  height: 17px;
}

.icon-btn.primary {
  border-color: rgba(0, 216, 150, .5);
  color: #06120e;
  background: var(--accent);
}

.store-main {
  padding: 34px 0 48px;
}

.store-wrap {
  width: min(920px, calc(100% - 28px));
}

.store-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.store-aside,
.store-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 18, 23, .84);
  box-shadow: 0 18px 46px rgba(0,0,0,.24);
}

.store-aside {
  position: sticky;
  top: 76px;
  padding: 16px;
}

.eyebrow,
.section-label,
.mini-label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.store-title {
  margin: 10px 0 0;
  font-family: Unbounded, system-ui, sans-serif;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
}

.store-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
}

.quick-prices {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.quick-prices div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--muted);
}

.quick-prices strong {
  color: var(--accent);
}

.store-card {
  overflow: hidden;
}

.store-section {
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.store-section:last-child { border-bottom: 0; }

.section-label {
  margin-bottom: 10px;
}

.offer-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 14px;
  align-items: center;
  min-height: 72px;
}

.offer-line + .offer-line {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.065);
}

.offer-line h2,
.manual-row h3,
.login-box h3 {
  margin: 0;
  font-family: Unbounded, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.22;
  letter-spacing: 0;
}

.offer-line.slim h2 {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 15px;
}

.offer-line p {
  margin: 4px 0 0;
  color: var(--muted);
}

.offer-buy {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.offer-buy strong,
.protocol-line strong,
.price {
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}

.protocol-list {
  display: grid;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 7px;
  overflow: hidden;
}

.protocol-line {
  min-height: 44px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 54px;
  gap: 12px;
  align-items: center;
  padding: 0 11px;
  border-bottom: 1px solid rgba(255,255,255,.065);
}

.protocol-line:last-child { border-bottom: 0; }
.protocol-line span { font-weight: 800; }
.protocol-line small { color: var(--muted); }

.profile-buy {
  margin-top: 10px;
}

.footer {
  color: var(--dim);
}

footer {
  padding: 0 0 30px;
  color: var(--dim);
}

.inline-alert {
  margin-top: 14px;
}

.alert {
  padding: 10px 12px;
  border: 1px solid rgba(255, 82, 112, .36);
  border-radius: 7px;
  color: #ffd6de;
  background: rgba(255, 82, 112, .08);
}

.workspace,
.admin-grid {
  display: grid;
  gap: 14px;
  padding: 24px 0 54px;
}

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

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

.side,
.main,
.login-box {
  padding: 16px;
}

.muted,
.side .muted,
.login-box p,
.manual-row .muted,
.log-row {
  color: var(--muted);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
}

.field textarea {
  min-height: 82px;
  resize: vertical;
}

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

.stat {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 18, 23, .72);
}

.stat strong {
  display: block;
  color: var(--accent);
  font-size: 22px;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
}

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

.manual-row,
.log-row {
  padding: 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  background: rgba(0,0,0,.18);
}

.manual-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cabinet-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

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

.cabinet-product {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  background: rgba(0,0,0,.18);
}

.cabinet-product h3 {
  margin: 0 0 5px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 15px;
  line-height: 1.25;
}

.cabinet-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cabinet-buy strong {
  color: var(--accent);
  font-size: 20px;
}

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

.table th,
.table td {
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 8px 7px;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

.table th {
  color: var(--blue);
}

.copy {
  overflow-wrap: anywhere;
  padding: 11px;
  border: 1px solid var(--line-hot);
  border-radius: 7px;
  color: var(--accent);
  background: rgba(0,229,160,.08);
}

@media (max-width: 820px) {
  .store-layout,
  .workspace,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .store-aside {
    position: static;
  }

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

@media (max-width: 620px) {
  .wrap,
  .store-wrap {
    width: min(100% - 20px, 980px);
  }

  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
  }

  .key-form {
    min-width: 0;
  }

  .key-form input {
    width: 100%;
    min-width: 0;
  }

  .offer-line,
  .protocol-line {
    grid-template-columns: 1fr;
  }

  .offer-buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .protocol-line {
    gap: 4px;
    padding: 10px 11px;
  }

  .manual-row {
    align-items: stretch;
    flex-direction: column;
  }

  .cabinet-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cabinet-products {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .key-form .btn {
    width: auto;
  }
}

.price-main {
  min-height: calc(100vh - 58px);
  display: grid;
  align-items: start;
  padding: 46px 14px 38px;
}

.price-board {
  width: min(820px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 17, 20, .9);
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
  overflow: hidden;
}

.board-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.board-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.board-head h1 {
  margin: 5px 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 21px;
  line-height: 1.2;
}

.board-status {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.board-alert {
  margin: 14px 18px 0;
}

.price-table {
  display: grid;
}

.price-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 72px 38px;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255,255,255,.065);
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row:hover {
  background: rgba(255,255,255,.018);
}

.row-type {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.row-main h2 {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 15px;
  line-height: 1.25;
}

.row-main p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.row-price {
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
  text-align: right;
}

.price-row > .icon-btn {
  width: 34px;
  height: 34px;
}

.protocol-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.protocol-pills span {
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.footer-line {
  width: min(820px, calc(100% - 28px));
}

.service-main {
  padding: 36px 14px 38px;
}

.service-board {
  width: min(760px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 17, 20, .92);
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
  overflow: hidden;
}

.service-head {
  padding: 18px;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.service-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-head h1 {
  margin: 6px 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 23px;
  line-height: 1.2;
}

.service-head p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
}

.service-list {
  display: grid;
}

.service-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 78px 38px;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.065);
}

.service-row:last-child {
  border-bottom: 0;
}

.service-row:hover {
  background: rgba(255,255,255,.018);
}

.service-num {
  color: var(--dim);
  font-size: 12px;
  font-weight: 800;
}

.service-body h2 {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 16px;
  line-height: 1.25;
}

.service-body p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.service-price {
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.shop-main {
  width: calc(100% - 28px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 0 46px;
}

.shop-hero {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 20px;
}

.shop-hero h1 {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(36px, 7vw, 76px);
  line-height: .94;
  color: #f8fff7;
}

.shop-hero p {
  max-width: 560px;
  margin: 0;
  color: #aeb8ba;
  font-size: 15px;
}

.shop-alert {
  max-width: 680px;
  margin-bottom: 14px;
}

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

.shop-card {
  grid-column: span 2;
  min-height: 232px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(211,229,232,.18);
  border-radius: 8px;
  background: #141b20;
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
}

.shop-card.featured {
  grid-column: span 3;
  min-height: 270px;
  border-color: rgba(39, 231, 165, .42);
  background:
    linear-gradient(135deg, rgba(28, 228, 157, .22), rgba(16,21,26,.94) 54%),
    #141b20;
}

.shop-card.warm {
  border-color: rgba(255, 196, 87, .44);
  background:
    linear-gradient(135deg, rgba(255,196,87,.24), rgba(16,21,26,.94) 54%),
    #141b20;
}

.shop-card:nth-child(3) {
  border-color: rgba(123, 182, 255, .38);
  background:
    linear-gradient(135deg, rgba(123,182,255,.17), rgba(16,21,26,.94) 48%),
    #141b20;
}

.shop-card:nth-child(4) {
  border-color: rgba(255, 109, 109, .38);
  background:
    linear-gradient(135deg, rgba(255,109,109,.17), rgba(16,21,26,.94) 48%),
    #141b20;
}

.shop-card:nth-child(5) {
  grid-column: span 2;
  border-color: rgba(188, 236, 112, .34);
  background:
    linear-gradient(135deg, rgba(188,236,112,.16), rgba(16,21,26,.94) 48%),
    #141b20;
}

.shop-card h2 {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(18px, 2.2vw, 27px);
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.shop-card p {
  margin: 12px 0 0;
  color: #b1babc;
}

.shop-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.shop-card-bottom strong {
  color: #f8fff7;
  font-size: 30px;
  line-height: 1;
}

@media (max-width: 760px) {
  .price-main {
    padding-top: 24px;
  }

  .board-head {
    align-items: start;
    flex-direction: column;
  }

  .price-row {
    grid-template-columns: 1fr 78px;
    gap: 8px 12px;
  }

  .row-type {
    grid-column: 1 / -1;
  }

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

  .row-price {
    text-align: right;
  }

  .price-row > .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .price-row > .icon-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .service-main {
    padding-top: 22px;
  }

  .service-row {
    grid-template-columns: 34px minmax(0, 1fr) 74px;
    gap: 8px 10px;
    align-items: start;
  }

  .service-row > .icon-btn {
    grid-column: 2 / -1;
    width: 100%;
  }

  .service-price {
    padding-top: 1px;
    font-size: 18px;
  }

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

  .shop-card,
  .shop-card.featured,
  .shop-card:nth-child(5) {
    grid-column: auto;
  }

  .shop-card {
    min-height: 188px;
    padding: 15px;
  }

  .shop-card-bottom {
    margin-top: 22px;
  }

  .shop-hero h1 {
    font-size: clamp(38px, 15vw, 58px);
  }
}
