:root {
  color-scheme: dark;
  --bg: #020b19;
  --panel: rgba(3, 16, 35, 0.86);
  --panel-strong: rgba(4, 22, 49, 0.96);
  --line: rgba(83, 231, 255, 0.22);
  --text: #eafaff;
  --muted: #8db7d6;
  --soft: #071b36;
  --mint: #8af7d4;
  --amber: #7ce8ff;
  --coral: #4db7ff;
  --blue: #1f83d8;
  --violet: #2632a3;
  --radius: 8px;
  --shadow: 0 22px 90px rgba(0, 20, 54, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(2, 11, 25, 0.92), rgba(1, 5, 12, 0.98)),
    repeating-linear-gradient(90deg, rgba(83, 231, 255, 0.035) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(83, 231, 255, 0.025) 0 1px, transparent 1px 76px),
    var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(83, 231, 255, 0.08), transparent 22%, transparent 78%, rgba(38, 50, 163, 0.1)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
  opacity: 0.42;
  mix-blend-mode: screen;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

input[type="file"] {
  min-height: auto;
  padding: 0.7rem;
}

input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 0.75rem;
  border: 1px solid rgba(83, 231, 255, 0.42);
  border-radius: 4px;
  color: var(--text);
  background: rgba(83, 231, 255, 0.08);
  font-weight: 800;
}

button {
  cursor: pointer;
}

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

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.1rem;
  padding: 2rem;
  background:
    repeating-linear-gradient(0deg, rgba(83, 231, 255, 0.06) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #00040a, #020b19 62%, #01040a);
  transition: opacity 420ms ease, visibility 420ms ease;
}

.splash-screen::before,
.splash-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.splash-screen::before {
  border: 1px solid rgba(83, 231, 255, 0.28);
  box-shadow: inset 0 0 80px rgba(31, 131, 216, 0.22);
}

.splash-screen::after {
  background:
    linear-gradient(90deg, transparent, rgba(83, 231, 255, 0.2), transparent),
    repeating-linear-gradient(90deg, transparent 0 56px, rgba(83, 231, 255, 0.08) 56px 58px);
  animation: scanSweep 1.5s linear infinite;
  opacity: 0.55;
}

.splash-screen img {
  width: min(290px, 58vw);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 24px rgba(83, 231, 255, 0.52));
}

.splash-title {
  z-index: 1;
  color: #8ff8ff;
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(83, 231, 255, 0.8);
}

.loader-track {
  z-index: 1;
  width: min(360px, 70vw);
  height: 18px;
  padding: 3px;
  border: 1px solid rgba(83, 231, 255, 0.72);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.54);
  box-shadow: 0 0 24px rgba(31, 131, 216, 0.42);
}

.loader-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 1px;
  background:
    repeating-linear-gradient(90deg, #53e7ff 0 12px, #1f83d8 12px 20px, #2632a3 20px 30px),
    linear-gradient(90deg, #53e7ff, #2632a3);
  transform-origin: left;
  transform: scaleX(0.08);
  animation: loadBar 900ms steps(14, end) forwards;
}

.splash-screen.hide {
  visibility: hidden;
  opacity: 0;
}

.splash-screen.navigate {
  opacity: 1;
  visibility: visible;
}

.splash-screen.navigate .loader-track span {
  animation: loadBar 760ms steps(14, end) infinite;
}

@keyframes loadBar {
  0% {
    transform: scaleX(0.08);
  }
  70% {
    transform: scaleX(0.88);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes scanSweep {
  from {
    transform: translateX(-28%);
  }
  to {
    transform: translateX(28%);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-height: 132px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(1, 9, 22, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 41, 95, 0.22);
  overflow: hidden;
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  position: absolute;
  inset: 0;
  z-index: 0;
  gap: 0.7rem;
  font-weight: 800;
}

.top-banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  image-rendering: pixelated;
  opacity: 0.95;
  filter: drop-shadow(0 0 18px rgba(83, 231, 255, 0.4));
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(1, 9, 22, 0.08), rgba(1, 9, 22, 0.22) 62%, rgba(1, 9, 22, 0.72));
}

.brand-mark {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--mint), transparent 50%),
    linear-gradient(315deg, var(--amber), var(--blue));
  box-shadow: 0 0 30px rgba(83, 231, 255, 0.25);
}

.nav {
  position: relative;
  z-index: 2;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 0.85rem 5vw;
  margin-left: auto;
}

.nav a,
.link-button {
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
}

.nav a:hover,
.link-button:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(83, 231, 255, 0.08);
}

.telegram-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.telegram-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 18px;
  background: currentColor;
  clip-path: polygon(2% 46%, 100% 4%, 78% 96%, 51% 68%, 31% 88%, 35% 62%);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 1.5rem;
  align-items: end;
  padding: 4rem 0 1.5rem;
}

.headline h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.35rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.animated-headline {
  background: linear-gradient(90deg, #8af7d4, #53e7ff, #1f83d8, #53e7ff, #8af7d4);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(83, 231, 255, 0.28);
  animation: headlineFlow 4.5s linear infinite;
}

@keyframes headlineFlow {
  from {
    background-position: 0 50%;
  }
  to {
    background-position: 260% 50%;
  }
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lead {
  max-width: 680px;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.lead a {
  color: #8ff8ff;
  font-weight: 900;
  text-decoration: none;
  text-shadow: 0 0 14px rgba(83, 231, 255, 0.5);
}

.lead a:hover {
  color: var(--text);
}

.status-strip {
  display: grid;
  gap: 0.65rem;
  min-height: 128px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 19, 43, 0.76);
  box-shadow: var(--shadow);
}

.status-strip span,
.soft-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(83, 231, 255, 0.07);
  font-size: 0.82rem;
  font-weight: 700;
}

.product-section,
.reviews-section,
.order-shell,
.admin-shell {
  padding: 1.5rem 0 4rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title h1,
.section-title h2 {
  margin: 0;
}

.section-title h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.section-title h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-card,
.review-card,
.order-panel,
.admin-panel,
.admin-login {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.product-card {
  position: relative;
  display: grid;
  gap: 1rem;
  min-height: 520px;
  padding: 1rem;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent, var(--amber)), var(--blue), var(--violet));
  box-shadow: 0 0 18px var(--accent, var(--amber));
}

.product-media {
  display: grid;
  place-items: center;
  height: 168px;
  border: 1px solid rgba(83, 231, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(83, 231, 255, 0.12), rgba(38, 50, 163, 0.12)),
    rgba(0, 0, 0, 0.3);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

.product-media img[src$="sanity-logo.png"] {
  width: 78%;
  height: 78%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 18px rgba(83, 231, 255, 0.45));
}

.product-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-title h3 {
  margin: 0.25rem 0 0;
  font-size: 1.3rem;
  line-height: 1.18;
}

.product-desc {
  min-height: 68px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.price {
  font-size: 2rem;
  font-weight: 850;
  color: #8ff8ff;
  text-shadow: 0 0 18px rgba(83, 231, 255, 0.42);
}

.stock-pill {
  align-self: start;
  min-width: 104px;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--text);
  background: rgba(83, 231, 255, 0.07);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stock-pill.out {
  color: #ffd6d6;
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(77, 183, 255, 0.1);
}

.checkout-form,
.review-form,
.admin-form,
.compact-form {
  display: grid;
  gap: 0.8rem;
}

.buy-btn {
  align-self: end;
}

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

label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  color: var(--text);
  background: rgba(0, 5, 12, 0.78);
}

input,
select {
  padding: 0 0.75rem;
}

textarea {
  min-height: 108px;
  resize: vertical;
  padding: 0.75rem;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(83, 231, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(83, 231, 255, 0.13);
}

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

.coin-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.coin-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.coin-grid span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 850;
}

.coin-grid input:checked + span {
  color: #020b19;
  border-color: transparent;
  background: linear-gradient(135deg, #8af7d4, #53e7ff 52%, #1f83d8);
}

.primary-btn,
.ghost-btn,
.danger-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  padding: 0 0.9rem;
  font-weight: 850;
}

.primary-btn {
  border: 0;
  color: #020b19;
  background: linear-gradient(135deg, #8af7d4, #53e7ff 52%, #1f83d8);
  box-shadow: 0 0 18px rgba(83, 231, 255, 0.22);
}

.primary-btn:hover {
  filter: brightness(1.05);
}

.primary-btn:disabled,
.ghost-btn:disabled,
.danger-btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.ghost-btn,
.icon-btn {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.danger-btn {
  border: 1px solid rgba(255, 107, 107, 0.42);
  color: #ffd4d4;
  background: rgba(255, 107, 107, 0.12);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.review-card {
  display: grid;
  gap: 0.7rem;
  min-height: 190px;
  padding: 1rem;
}

.stars {
  color: var(--amber);
  font-size: 1rem;
}

.review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.muted-box,
.payment-box {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(83, 231, 255, 0.045);
}

.order-shell {
  display: grid;
  gap: 1rem;
  max-width: 920px;
}

.order-panel,
.admin-panel,
.admin-login {
  padding: 1rem;
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.metric {
  min-height: 76px;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(83, 231, 255, 0.06);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.metric strong {
  display: block;
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
}

.payment-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 1rem;
  padding: 1rem;
}

.payment-data {
  display: grid;
  gap: 0.7rem;
}

.payment-row {
  display: grid;
  gap: 0.25rem;
}

.payment-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.payment-row code {
  display: block;
  padding: 0.7rem;
  border-radius: var(--radius);
  overflow-wrap: anywhere;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
}

.qr-wrap {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(83, 231, 255, 0.06);
}

.qr-wrap img {
  width: min(150px, 100%);
  height: auto;
  border-radius: 4px;
}

.delivery-box {
  min-height: 160px;
  padding: 1rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  line-height: 1.6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at center, rgba(83, 231, 255, 0.14), transparent 28rem),
    rgba(0, 3, 8, 0.78);
  backdrop-filter: blur(10px);
}

.buy-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 2rem));
  overflow: auto;
  padding: 1rem;
  border: 1px solid rgba(83, 231, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(2, 12, 29, 0.96);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.66), 0 0 36px rgba(83, 231, 255, 0.16);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(83, 231, 255, 0.32);
  border-radius: 4px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.32);
  font-weight: 900;
}

.modal-product {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding-right: 2.6rem;
}

.modal-media {
  display: grid;
  place-items: center;
  height: 132px;
  border: 1px solid rgba(83, 231, 255, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(83, 231, 255, 0.14), rgba(38, 50, 163, 0.12)),
    rgba(0, 0, 0, 0.34);
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-media img[src$="sanity-logo.png"] {
  width: 82%;
  height: 82%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 18px rgba(83, 231, 255, 0.45));
}

.modal-product h2 {
  margin: 0.55rem 0 0.35rem;
}

.modal-product p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.modal-form {
  display: grid;
  gap: 0.85rem;
}

.field-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.modal-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 58px;
  padding: 0.8rem;
  border: 1px solid rgba(83, 231, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(83, 231, 255, 0.06);
}

.modal-total span {
  color: var(--muted);
  font-weight: 800;
}

.modal-total strong {
  color: #8ff8ff;
  font-size: 1.45rem;
  text-shadow: 0 0 18px rgba(83, 231, 255, 0.4);
}

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

.admin-login {
  max-width: 420px;
  margin: 5rem auto;
}

.admin-login h1 {
  margin-top: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.25fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-card {
  min-height: 92px;
  padding: 0.9rem;
  border: 1px solid rgba(83, 231, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(83, 231, 255, 0.13), transparent 55%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #8ff8ff;
  font-size: 1.55rem;
  line-height: 1.1;
  text-shadow: 0 0 18px rgba(83, 231, 255, 0.35);
}

.admin-panel {
  margin-bottom: 1rem;
}

.admin-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.admin-list,
.table-list {
  display: grid;
  gap: 0.75rem;
}

.admin-item,
.table-row {
  display: grid;
  gap: 0.65rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.admin-item-head,
.table-row-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.admin-thumb {
  flex: 0 0 86px;
  width: 86px;
  height: 66px;
  border: 1px solid rgba(83, 231, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.32);
}

.admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-thumb img[src$="sanity-logo.png"] {
  object-fit: contain;
  padding: 0.35rem;
  image-rendering: pixelated;
}

.admin-item h3,
.table-row h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stock-input {
  min-height: 142px;
}

.small-text {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  max-width: min(420px, calc(100vw - 2rem));
  min-height: 44px;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(18, 23, 31, 0.94);
  box-shadow: var(--shadow);
  transform: translateY(150%);
  opacity: 0;
  transition: 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.hidden {
  display: none !important;
}

@media (max-width: 940px) {
  .hero-grid,
  .product-grid,
  .reviews-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

  .product-card {
    min-height: auto;
  }

  .product-desc {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: row;
    min-height: 112px;
    padding: 0;
  }

  .top-banner {
    width: 100%;
    height: 100%;
  }

  .nav {
    width: auto;
    justify-content: flex-end;
    gap: 0.2rem;
    padding: 0.65rem 0.8rem;
  }

  .nav a,
  .link-button {
    min-height: 34px;
    padding: 0.45rem 0.55rem;
    font-size: 0.82rem;
  }

  .hero-grid {
    padding-top: 2rem;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .order-meta,
  .payment-box,
  .review-form,
  .admin-form,
  .modal-product {
    grid-template-columns: 1fr;
  }

  .modal-product {
    padding-right: 2.4rem;
  }

  .modal-media {
    height: 160px;
  }
}

@media (max-width: 420px) {
  .shell {
    width: min(100% - 20px, 1180px);
  }

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

  .headline h1 {
    font-size: 2.2rem;
    line-height: 1;
  }

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

  .admin-item-head,
  .table-row-head {
    flex-direction: column;
  }

  .admin-thumb {
    width: 100%;
    height: 120px;
  }
}
