:root {
  color-scheme: dark;
  --bg: #030806;
  --panel: rgba(5, 16, 12, 0.88);
  --panel-strong: rgba(4, 11, 9, 0.96);
  --line: rgba(104, 220, 173, 0.24);
  --mint: #68dcad;
  --gold: #e5d08c;
  --red: #f06b52;
  --text: #edf7e9;
  --muted: #abc6b7;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(3, 8, 6, 0.05), #030806 720px),
    radial-gradient(circle at 14% 10%, rgba(104, 220, 173, 0.18), transparent 30%),
    radial-gradient(circle at 86% 4%, rgba(229, 208, 140, 0.12), transparent 24%),
    url("beastmaster-heaven-bg.png") center top / cover fixed;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 53, 36, 0.96), rgba(4, 11, 9, 0.98));
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}
button:hover, .button:hover { border-color: rgba(104, 220, 173, .66); box-shadow: 0 0 22px rgba(104, 220, 173, .16); }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary { border-color: rgba(104, 220, 173, .58); background: linear-gradient(180deg, rgba(28, 91, 67, .98), rgba(8, 28, 20, .98)); color: #d8ffef; }
.danger { border-color: rgba(240, 107, 82, .48); color: #ffd6cc; }
.shell { width: min(1360px, calc(100% - 28px)); margin: 0 auto; padding: 16px 0 56px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 950; }
.brand img { width: 210px; max-width: 68vw; }
.nav { display: flex; flex-wrap: wrap; gap: 8px; }
.user-control-panel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(104, 220, 173, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(6, 22, 16, 0.86), rgba(3, 8, 6, 0.72)),
    radial-gradient(circle at 14% 0%, rgba(104, 220, 173, 0.16), transparent 38%);
  box-shadow: 0 16px 44px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}
.account-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: #d8ffef;
  background: rgba(3,8,6,.66);
  font-weight: 900;
}
.account-pill.premium { border-color: rgba(229, 208, 140, .62); color: #fff3c2; }
.hero, .panel, .product-card, .cart-panel, .faq-card, .empty-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(5, 19, 14, .9), rgba(3, 8, 6, .84));
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}
.hero {
  min-height: 360px;
  display: grid;
  align-items: center;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(90deg, rgba(3,8,6,.96), rgba(3,8,6,.54)),
    url("https://img.youtube.com/vi/IFXrtiiZzfE/maxresdefault.jpg") center / cover;
}
.kicker { color: var(--mint); font-size: .78rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 14px; color: #fff3c2; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.02; }
.lead { max-width: 780px; color: #d9eadd; font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.58; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; margin-top: 18px; align-items: start; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button.active { color: #03100b; background: var(--mint); }
.search { min-height: 42px; width: min(340px, 100%); border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.5); color: var(--text); padding: 0 12px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.product-card { min-height: 280px; display: grid; gap: 12px; align-content: start; padding: 18px; }
.product-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-badge, .product-category, .chip { display: inline-flex; min-height: 26px; align-items: center; border: 1px solid rgba(229, 208, 140, .34); border-radius: 999px; padding: 0 10px; color: #fff3c2; background: rgba(72, 50, 12, .38); font-size: .78rem; font-weight: 950; }
.product-category { border-color: var(--line); color: var(--mint); background: rgba(12, 54, 39, .32); }
.product-card p, .muted { color: var(--muted); line-height: 1.55; }
.product-meta { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; }
.product-meta strong { color: #fff3c2; font-size: 1.45rem; }
.product-meta span { color: var(--muted); font-size: .88rem; text-align: right; }
.cart-panel { position: sticky; top: 14px; padding: 18px; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.account-state, .notice { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: #d8ffef; background: rgba(3,8,6,.58); }
.cart-list { display: grid; gap: 10px; margin: 14px 0; }
.cart-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px; border: 1px solid rgba(104,220,173,.16); border-radius: 8px; background: rgba(0,0,0,.22); }
.cart-row span, .cart-empty { display: block; color: var(--muted); font-size: .86rem; }
.qty-row { display: inline-grid; grid-template-columns: 32px 30px 32px; align-items: center; text-align: center; }
.qty-row button { min-height: 32px; padding: 0; }
.totals { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
.totals strong { color: #fff3c2; font-size: 1.25rem; }
.checkout-notes { margin: 14px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.55; }
.benefits, .faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.panel, .faq-card, .empty-card { padding: 18px; }
.faq-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.faq-card p { color: var(--muted); line-height: 1.5; }
.tech-panel code { color: var(--mint); }
[data-type="error"] { border-color: rgba(240, 107, 82, .48); color: #ffd6cc; }
[data-type="ok"] { border-color: rgba(104, 220, 173, .5); color: #d8ffef; }
@media (max-width: 1100px) {
  .shop-layout { grid-template-columns: 1fr; }
  .cart-panel { position: static; }
  .product-grid, .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .shell { width: min(100% - 18px, 1360px); }
  .product-grid, .benefits, .faq-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2rem, 12vw, 3rem); }
}
