:root {
  --bg: #030711;
  --panel: #080d18;
  --panel-soft: #0d1320;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(72, 139, 255, 0.46);
  --text: #f7f9ff;
  --muted: #8d96aa;
  --blue: #2f7dff;
  --blue-light: #62b8ff;
  --blue-deep: #0d48e5;
  --danger: #aab5c9;
  --radius: 24px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 86% 9%, rgba(32, 104, 255, 0.17), transparent 28rem),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 42px 42px, 42px 42px, auto;
  -webkit-font-smoothing: antialiased;
}

button, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  min-height: 292px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(92deg, #030711 0%, #030711 68%, rgba(3,7,17,.78) 100%),
    url('/assets/store.jpg') center/cover;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(255,255,255,.025);
}

.hero-grid {
  position: absolute;
  inset: 0 0 0 56%;
  opacity: .38;
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent, #000);
}

.hero-glow {
  position: absolute;
  width: 230px;
  height: 230px;
  right: -70px;
  top: 10px;
  border-radius: 50%;
  background: rgba(39, 108, 255, .25);
  filter: blur(62px);
}

.brand-logo {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.hero-copy {
  position: relative;
  z-index: 2;
  margin-top: 34px;
  max-width: 100%;
}

.eyebrow, .section-kicker {
  margin: 0 0 8px;
  color: var(--blue-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

h1, h2, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(54px, 15vw, 94px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.hero-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.hero-subtitle {
  flex: 1 1 220px;
  max-width: 360px;
  margin: 0;
  color: #c4cada;
  font-size: 14px;
  line-height: 1.45;
}

.brand-star, .mini-star {
  position: absolute;
  z-index: 2;
  width: 78px;
  height: 78px;
  right: 27px;
  top: 104px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-deep));
  clip-path: polygon(50% 0, 59% 40%, 100% 50%, 59% 60%, 50% 100%, 41% 60%, 0 50%, 41% 40%);
  filter: drop-shadow(0 0 18px rgba(48, 126, 255, .5));
}

.hero-stat {
  display: flex;
  flex: 0 1 230px;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  max-width: 230px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(6, 10, 20, .72);
  backdrop-filter: blur(14px);
}

.hero-stat span { font-size: 22px; font-weight: 900; }
.hero-stat small { color: var(--muted); font-size: 10px; line-height: 1.25; }

main { display: grid; gap: 16px; margin-top: 16px; }

.review-panel, .reviews-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(14, 20, 34, .96), rgba(6, 10, 18, .98));
  box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
}

.review-panel { padding: 22px; }

.verified-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 13px 0 0;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: linear-gradient(120deg, rgba(35, 100, 246, .18), rgba(10, 18, 34, .54));
}

.verified-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.verified-order strong { display: block; font-size: 16px; }
.verified-mark {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  font-weight: 900;
  box-shadow: 0 0 24px rgba(47, 125, 255, .45);
}

.order-number { margin: 9px 3px 24px; color: var(--muted); font-size: 11px; }
.review-panel h2, .reviews-section h2 { margin: 0; font-size: 25px; letter-spacing: -.02em; }
.review-hint { margin: 8px 0 17px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.sentiment-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sentiment-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b111d;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s, transform .18s, background .18s, box-shadow .18s;
}
.sentiment-option:active { transform: scale(.98); }
.sentiment-option[aria-pressed="true"].good {
  border-color: var(--blue-light);
  background: linear-gradient(135deg, rgba(36, 111, 255, .48), rgba(15, 55, 154, .45));
  box-shadow: 0 0 28px rgba(47, 125, 255, .18);
}
.sentiment-option[aria-pressed="true"].bad {
  border-color: #b9c4da;
  background: linear-gradient(135deg, rgba(135, 149, 177, .25), rgba(48, 57, 76, .42));
}
.option-symbol { font-size: 20px; }

.textarea-label { display: block; margin: 20px 0 8px; font-size: 12px; font-weight: 800; }
textarea {
  display: block;
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 14px;
  color: var(--text);
  caret-color: var(--blue-light);
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: rgba(2, 6, 13, .72);
  line-height: 1.5;
  transition: border-color .18s, box-shadow .18s;
}
textarea::placeholder { color: #616b7e; }
textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,125,255,.12); }
.form-meta { display: flex; justify-content: space-between; margin: 7px 2px 0; color: var(--muted); font-size: 10px; }

.submit-button, .load-more {
  width: 100%;
  min-height: 52px;
  margin-top: 17px;
  color: white;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(105deg, var(--blue-deep), var(--blue-light));
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 13px 30px rgba(26, 88, 232, .24);
}
.submit-button:disabled { color: #687286; background: #111827; box-shadow: none; cursor: default; }
.form-status { min-height: 18px; margin: 10px 2px 0; color: var(--muted); font-size: 12px; text-align: center; }
.form-status.error { color: #c7d2e7; }
.form-status.success { color: var(--blue-light); }

.reviews-section { padding: 22px 16px 16px; }
.section-heading { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 17px; }
.mini-star { position: static; width: 38px; height: 38px; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(2, 6, 13, .72);
}
.tab {
  min-height: 43px;
  color: var(--muted);
  border: 0;
  border-radius: 11px;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.tab span { display: inline-grid; min-width: 22px; margin-left: 4px; padding: 2px 5px; place-items: center; border-radius: 8px; background: rgba(255,255,255,.07); font-size: 10px; }
.tab.active { color: white; background: linear-gradient(120deg, rgba(38, 105, 247, .72), rgba(24, 58, 130, .55)); box-shadow: 0 8px 22px rgba(19, 71, 191, .18); }

.list-status { padding: 28px 8px; color: var(--muted); font-size: 13px; text-align: center; }
.reviews-list { display: grid; gap: 10px; margin-top: 14px; }
.review-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(15, 22, 37, .92), rgba(5, 9, 17, .92));
}
.review-card::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 58px;
  height: 58px;
  background: rgba(47, 125, 255, .15);
  clip-path: polygon(50% 0, 59% 40%, 100% 50%, 59% 60%, 50% 100%, 41% 60%, 0 50%, 41% 40%);
}
.review-top, .review-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-author { font-size: 13px; font-weight: 900; }
.review-date { color: var(--muted); font-size: 10px; white-space: nowrap; }
.sentiment-badge, .product-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 9px; font-size: 10px; font-weight: 800; }
.sentiment-badge.positive { color: var(--blue-light); border-color: rgba(70, 144, 255, .4); background: rgba(34, 104, 242, .13); }
.sentiment-badge.negative { color: #c3cbdc; border-color: rgba(190, 200, 220, .22); background: rgba(145, 158, 181, .1); }
.product-badge { color: #dce4f4; }
.review-text { margin: 14px 0; color: #e4e8f1; font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.review-order { color: var(--muted); font-size: 10px; }
.load-more { margin-top: 14px; background: #111927; box-shadow: none; border: 1px solid var(--line); }

footer { display: flex; justify-content: space-between; padding: 22px 8px 4px; color: #596377; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
footer a { color: #71809a; text-decoration: none; }

.hidden { display: none !important; }

@media (max-width: 430px) {
  .page-shell { padding-left: 10px; padding-right: 10px; }
  .hero { min-height: 0; padding: 19px; border-radius: 25px; }
  .brand-logo { width: 52px; height: 52px; border-radius: 15px; }
  .hero-copy { margin-top: 38px; }
  h1 { font-size: clamp(50px, 15vw, 68px); line-height: 1.05; }
  .brand-star { width: 62px; height: 62px; right: 18px; top: 112px; }
  .hero-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 20px;
  }
  .hero-subtitle { max-width: 100%; font-size: 13px; }
  .hero-stat {
    width: 100%;
    max-width: none;
    padding: 11px 12px;
  }
  .hero-stat small { font-size: 10px; }
  .review-panel { padding: 18px; }
  .reviews-section { padding: 19px 12px 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  .brand-star, .mini-star { animation: pulse-star 3.8s ease-in-out infinite; }
  @keyframes pulse-star { 50% { filter: drop-shadow(0 0 27px rgba(48, 126, 255, .72)); transform: scale(1.035); } }
}
