:root {
  --bg: #080a10;
  --panel: #131720;
  --panel2: #19202c;
  --line: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: #9ba6b6;
  --green: #27e7a2;
  --blue: #52a9ff;
  --violet: #815cff;
  --danger: #ff4778;
  --accent: #27e7a2;
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(39, 231, 162, 0.08), transparent 260px),
    linear-gradient(135deg, #070910 0%, #0e1119 48%, #070910 100%);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  border: 0;
  min-height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2ff0a8, #58b7ff);
  color: #071019;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(39, 231, 162, 0.18);
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.05;
}

.is-hidden {
  display: none !important;
}

.intro {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 16px;
  padding: 28px 18px 92px;
  background:
    linear-gradient(180deg, rgba(8, 10, 16, 0.4), #080a10 78%),
    linear-gradient(135deg, rgba(39, 231, 162, 0.12), rgba(82, 169, 255, 0.08));
}

.intro-center {
  display: grid;
  place-content: center;
  text-align: center;
}

.intro h1,
.app-head strong {
  margin: 0;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--violet));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 34px;
  font-weight: 950;
}

.intro h1 span,
.app-head strong span {
  color: var(--green);
}

.intro p {
  font-size: 18px;
  font-weight: 800;
  color: #dfe7f1;
}

.start-btn {
  width: 100%;
  min-height: 54px;
  font-size: 16px;
  text-transform: uppercase;
}

.rules {
  max-width: 330px;
  margin: 0 auto;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.app {
  width: min(460px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 10px 104px;
}

.app-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 2px 18px;
  background: rgba(8, 10, 16, 0.90);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.app-head strong {
  font-size: 24px;
  white-space: nowrap;
}

.pvz-btn,
.outline-btn {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(0, 245, 155, 0.52);
  background: rgba(39, 231, 162, 0.09);
  color: var(--green);
  box-shadow: none;
}

.tab {
  display: none;
  padding-top: 24px;
}

.tab.is-active {
  display: block;
}

.tools-row {
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}

.round-tool {
  width: 86px;
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.055);
  color: var(--text);
  box-shadow: none;
  font-size: 26px;
}

.round-tool::first-line {
  border-radius: 50%;
}

.round-tool span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product,
.order-card,
.review-card,
.rating-box,
.profile-actions article,
.profile-card,
.panel,
.stats > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(19, 23, 32, 0.94);
  box-shadow: var(--shadow);
}

.product {
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.product:hover {
  transform: translateY(-2px);
  border-color: rgba(39, 231, 162, 0.34);
}

.product-media {
  position: relative;
}

.product img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  display: block;
  background: #201e2b;
}

.badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(39, 231, 162, 0.16);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.product-body {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.product-body button {
  min-height: 42px;
  margin-top: 2px;
}

.product-body h3 {
  margin-bottom: 0;
  font-size: 16px;
}

.product-body p,
.hint,
.order-card p,
.review-card p,
.profile-card p,
.profile-actions p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
}

.price-line strong,
.price {
  color: var(--green);
  font-size: 18px;
  font-weight: 950;
}

.price-line span {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 12px;
}

.orders-list,
.reviews,
.profile-actions {
  display: grid;
  gap: 14px;
}

.order-card,
.review-card,
.rating-box,
.profile-card {
  padding: 16px;
}

.order-card.is-clickable {
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.order-card.is-clickable:hover {
  border-color: rgba(39, 231, 162, 0.42);
  transform: translateY(-1px);
}

.order-top,
.review-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.timer {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 71, 120, 0.16);
  color: #ffd3df;
  font-size: 12px;
  font-weight: 950;
}

.timer.is-paid {
  background: rgba(0, 245, 155, 0.14);
  color: var(--green);
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.reviews-head span {
  padding: 7px 10px;
  border: 1px solid rgba(0, 245, 155, 0.42);
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.rating-box {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.rating-big {
  color: var(--green);
  font-size: 52px;
  font-weight: 950;
  line-height: 1;
}

.rating-box p {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.rating-bars {
  display: grid;
  gap: 7px;
}

.rating-bars div {
  display: grid;
  grid-template-columns: 28px 1fr 22px;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.rating-bars i {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) var(--w), rgba(255,255,255,0.06) var(--w));
}

.outline-btn {
  width: 100%;
  margin-bottom: 16px;
}

.stars {
  margin-bottom: 7px;
  color: #ffbf2f;
  letter-spacing: 1px;
}

.review-card img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 10px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.avatar {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: linear-gradient(135deg, #171527, #332366);
  background-size: cover;
  background-position: center;
  font-weight: 950;
}

.profile-card strong {
  font-size: 20px;
}

.profile-actions article {
  min-height: 86px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.profile-actions article div {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 22px;
}

.profile-actions article button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(0, 245, 155, 0.62);
  background: rgba(39, 231, 162, 0.08);
  color: var(--green);
}

.worker-cabinet {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
}

.worker-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.worker-head h3,
.worker-cabinet h3 {
  margin: 0;
}

.worker-nick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.worker-nick input {
  min-width: 0;
}

.worker-links {
  display: grid;
  gap: 8px;
}

.worker-links p,
.worker-list > div {
  margin: 0;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
}

.worker-links span,
.worker-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.worker-links strong,
.worker-list strong {
  display: block;
  overflow-wrap: anywhere;
}

.worker-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.worker-stats div {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 245, 155, 0.09);
}

.worker-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.worker-list {
  display: grid;
  gap: 8px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 10;
  width: min(430px, calc(100% - 20px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 18, 25, 0.96);
  backdrop-filter: blur(18px);
}

.nav-btn {
  position: relative;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 22px;
}

.nav-btn span {
  font-size: 11px;
}

.nav-btn.is-active {
  background: linear-gradient(135deg, rgba(39, 231, 162, 0.18), rgba(82, 169, 255, 0.16));
  color: var(--green);
  border: 1px solid rgba(0, 245, 155, 0.32);
}

.nav-btn b {
  display: none;
  position: absolute;
  top: 4px;
  right: 8px;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--green);
  color: #071019;
  font-size: 11px;
}

.nav-btn b.is-visible {
  display: block;
}

dialog {
  width: min(430px, calc(100% - 22px));
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: #111620;
  color: var(--text);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.checkout,
.payment {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.checkout > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  background: #201e2b;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--text);
  box-shadow: none;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  background: #171d28;
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.pay-methods {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.pay-methods button {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  text-align: left;
  padding-left: 14px;
  box-shadow: none;
}

.pay-methods button.is-active {
  color: var(--green);
  border-color: rgba(39, 231, 162, 0.58);
  outline: 0;
  background: rgba(39, 231, 162, 0.10);
}

.qr {
  display: none;
  width: 220px;
  aspect-ratio: 1;
  margin: 0 auto;
  border: 10px solid #fff;
  border-radius: 8px;
}

.qr.is-visible {
  display: block;
}

.qr img {
  width: 100%;
  height: 100%;
  display: block;
}

.wallet,
.delivery {
  overflow-wrap: anywhere;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  color: var(--muted);
}

.copy-requisites {
  width: 100%;
  margin-top: 10px;
  min-height: 40px;
  box-shadow: none;
}

.status-steps {
  display: grid;
  gap: 10px;
}

.status-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}

.status-step span {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  color: var(--text);
  font-weight: 950;
}

.status-step.is-done,
.status-step.is-active {
  border-color: rgba(39, 231, 162, 0.5);
  color: var(--text);
}

.status-step.is-done span,
.status-step.is-active span {
  background: var(--green);
  color: #071019;
}

.pickup-qr {
  display: none;
  text-align: center;
  padding: 12px;
  border: 1px solid rgba(39, 231, 162, 0.35);
  border-radius: 12px;
  background: rgba(39, 231, 162, 0.08);
}

.pickup-qr.is-visible {
  display: grid;
  gap: 10px;
}

.pickup-qr img {
  width: min(260px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  justify-self: center;
  border-radius: 10px;
  background: #fff;
}

.crypto-amount {
  display: none;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(39, 231, 162, 0.24);
  border-radius: 12px;
  background: rgba(39, 231, 162, 0.10);
  color: var(--green);
  font-size: 18px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.crypto-amount.is-visible {
  display: block;
}

.preview {
  display: none;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
}

.admin {
  width: min(920px, 100%);
  padding-bottom: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.eyebrow {
  color: var(--green);
  margin-bottom: 5px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 950;
}

.admin-key {
  max-width: 260px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stats > div,
.panel {
  padding: 14px;
}

.panel {
  margin-bottom: 14px;
}

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

.panel-head h2 {
  margin-bottom: 0;
}

.list,
.orders {
  display: grid;
  gap: 10px;
}

.row {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
}

.row img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 12px;
}

.admin-order {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
}

.admin-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.admin-order-controls {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.admin-order-qr {
  width: 128px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.user-row {
  grid-template-columns: 16px 1fr auto;
}

.user-card {
  display: grid;
  gap: 3px;
  justify-items: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  text-align: left;
}

.user-card:hover {
  border-color: var(--accent);
  background: rgba(34, 188, 214, 0.12);
}

.user-card span,
.user-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.user-card small {
  font-size: 12px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
}

.status-dot.is-banned {
  background: var(--danger);
}

.danger {
  background: var(--danger);
  color: #fff;
}

@media (max-width: 430px) {
  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-body {
    padding: 10px;
  }

  .profile-actions article {
    grid-template-columns: 46px 1fr;
  }

  .profile-actions article button {
    grid-column: 1 / -1;
  }

  .worker-head,
  .worker-nick,
  .search-row,
  .admin-order-controls {
    grid-template-columns: 1fr;
  }

  .worker-head,
  .admin-order-head,
  .panel-head {
    display: grid;
  }

  .user-row,
  .row {
    grid-template-columns: 1fr;
  }
}
