:root {
  --ink: #111816;
  --ink-2: #24342f;
  --muted: #b9d8cd;
  --soft: #d1fae5;
  --paper: #f7fffb;
  --panel: rgba(247, 255, 251, .96);
  --line: rgba(167, 243, 208, .28);
  --brand: #059669;
  --brand-dark: #064e3b;
  --brand-mid: #047857;
  --brand-light: #a7f3d0;
  --gold: #d7b56d;
  --gold-2: #f6e7bd;
  --danger: #b42318;
  --ok: #147a4d;
  --shadow: 0 28px 80px rgba(0, 24, 18, .32);
  --shadow-soft: 0 16px 42px rgba(0, 24, 18, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  color: #ecfdf5;
  background:
    radial-gradient(circle at 10% 4%, rgba(16,185,129,.34), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(52,211,153,.16), transparent 28%),
    linear-gradient(180deg, #021c16 0%, #063f32 38%, #032821 100%);
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(22px, 6vw);
  background: rgba(2, 28, 22, .82);
  border-bottom: 1px solid rgba(167, 243, 208, .18);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 168px; height: auto; display: block; }
nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
nav a {
  padding: 9px 12px;
  color: #d1fae5;
  font-weight: 800;
  border-radius: 10px;
  transition: .2s ease;
}
nav a:hover { background: rgba(167,243,208,.12); color: #fff; }
.nav-cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border: 1px solid var(--brand-dark);
  box-shadow: 0 10px 24px rgba(11, 41, 37, .18);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(167,243,208,.24);
  background: rgba(236,253,245,.98);
  color: var(--brand-dark);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(30, 24, 14, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(30,24,14,.13); }
.button.primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 48%, #064e3b 100%);
  border-color: #059669;
  color: #fff;
  box-shadow: 0 18px 38px rgba(5, 150, 105, .28);
}
.button.ghost {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.32);
  color: #fff;
  box-shadow: none;
}
.button.full { width: 100%; }
main { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 58px; }
.hero {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  align-items: center;
  gap: 36px;
  padding: clamp(30px, 6vw, 68px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(2,28,22,.98), rgba(4,120,87,.92) 55%, rgba(2,44,34,.98)),
    linear-gradient(45deg, transparent 0 48%, rgba(167,243,208,.1) 49% 51%, transparent 52%);
  border: 1px solid rgba(167,243,208,.22);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.06;
  margin: 0 0 16px;
  letter-spacing: 0;
}
.hero p { max-width: 740px; font-size: 20px; color: rgba(255,255,255,.84); }
.eyebrow {
  margin: 0 0 12px;
  color: #d1fae5;
  font-weight: 900;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.trust-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.trust-row span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 800;
  font-size: 13px;
}
.hero-panel {
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, rgba(236,253,245,.18), rgba(236,253,245,.08));
  border: 1px solid rgba(167,243,208,.28);
  border-radius: 18px;
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.hero-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(167,243,208,.24);
  box-shadow: 0 18px 42px rgba(2,44,34,.22);
}
.panel-kicker { color: #a7f3d0; font-weight: 900; }
.hero-panel strong { font-size: 31px; line-height: 1.35; }
.mini-metrics {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: baseline;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.mini-metrics b { font-size: 26px; color: #d1fae5; }
.mini-metrics small { color: rgba(255,255,255,.78); font-weight: 800; }
.section-head, .page-title, .admin-nav {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 42px 0 18px;
}
.page-title { align-items: start; flex-direction: column; max-width: 760px; }
.page-title h1, .section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.25; }
.page-title p { margin: 0; color: #b9d8cd; font-size: 18px; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-card, .auth, .checkout-box, .invoice, .editor, .stats > div {
  background: linear-gradient(180deg, rgba(247,255,251,.98), rgba(225,252,240,.96));
  border: 1px solid rgba(167, 243, 208, .46);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 430px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-art {
  display: grid;
  place-items: center;
  height: 178px;
  margin: -10px -10px 4px;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 25% 16%, rgba(110,231,183,.55), transparent 30%),
    linear-gradient(135deg, #022c22, #047857 62%, #10b981);
  border: 1px solid rgba(167,243,208,.75);
}
.product-art img {
  width: min(88%, 360px);
  height: 138px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 18px 20px rgba(0, 38, 28, .28));
}
.product-card:before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-dark), #10b981, #6ee7b7);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spark { color: var(--brand-mid); font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: 0; }
.product-card h3 { margin: 0; font-size: 23px; line-height: 1.45; color: var(--brand-dark); }
.product-card p { color: #5b6f67; margin: 0; flex: 1; }
.card-bottom { display: grid; gap: 10px; margin-top: auto; }
.tag {
  display: inline-flex;
  width: fit-content;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(5,150,105,.12);
  color: var(--brand);
  font-weight: 900;
  font-size: 13px;
}
.price { display: flex; gap: 10px; align-items: center; }
.price strong, .price.xl { font-size: 30px; font-weight: 900; color: var(--brand); }
.price span { color: var(--muted); text-decoration: line-through; font-size: 15px; }
.meta { color: var(--brand-mid); font-weight: 900; }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 24px;
  align-items: start;
}
.product-detail > div:first-child {
  background: rgba(247,255,251,.96);
  border: 1px solid rgba(167,243,208,.46);
  border-radius: 18px;
  padding: 28px;
}
.product-detail h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.22; margin: 16px 0; color: var(--brand-dark); }
.product-detail h2 { margin-top: 32px; color: var(--brand-dark); }
.product-detail li { margin-bottom: 8px; }
.checkout-box { position: sticky; top: 92px; }
label { display: grid; gap: 7px; margin-bottom: 14px; font-weight: 900; color: var(--ink-2); }
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fbfffd;
  color: var(--ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.18);
}
.auth { max-width: 540px; margin: 46px auto; }
.auth h1 { margin-top: 0; color: var(--brand-dark); }
.auth p, .auth-link { color: #5b6f67; }
.auth-link a { color: var(--brand); font-weight: 900; }
.flash { margin: 0 0 16px; padding: 13px 16px; border-radius: 14px; border: 1px solid; font-weight: 900; box-shadow: var(--shadow-soft); }
.flash.success { background: #effaf3; color: var(--ok); border-color: #bfe8cc; }
.flash.error { background: #fff2f0; color: var(--danger); border-color: #ffd0c9; }
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
}
th, td { padding: 14px 15px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: #d1fae5; color: var(--brand-dark); font-weight: 900; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.stats span { color: var(--muted); font-weight: 900; display: block; }
.stats strong { font-size: 30px; color: var(--brand-dark); }
.admin-nav { align-items: center; justify-content: flex-start; flex-wrap: wrap; }
.admin-nav a {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 15px;
  border-radius: 12px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(30,24,14,.07);
}
.editor form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.editor textarea { min-height: 116px; }
.check { display: flex; grid-column: auto; align-items: center; gap: 10px; }
.check input { width: auto; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline select { min-width: 135px; }
.inline button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 900;
}
.totals { width: min(360px, 100%); margin-right: auto; margin-top: 18px; text-align: left; }
footer {
  text-align: center;
  color: #b9d8cd;
  padding: 30px;
  border-top: 1px solid rgba(167,243,208,.18);
  background: rgba(2,28,22,.74);
}
@media (max-width: 980px) {
  .site-header, .hero, .product-detail { grid-template-columns: 1fr; }
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero { min-height: auto; }
  .grid, .stats, .editor form { grid-template-columns: 1fr; }
  .checkout-box { position: static; }
}
@media (max-width: 620px) {
  main { width: min(100% - 22px, 1200px); padding-top: 18px; }
  nav { width: 100%; }
  nav a { padding: 8px 9px; }
  .brand { font-size: 20px; }
  .hero { padding: 28px 18px; border-radius: 18px; }
  .hero p { font-size: 17px; }
  .product-card, .auth, .checkout-box, .invoice, .editor, .product-detail > div:first-child { padding: 20px; }
  table { display: block; overflow-x: auto; }
}
@media print {
  .site-header, footer, .button { display: none; }
  body, main { background: #fff; width: 100%; }
  .invoice { box-shadow: none; border: 0; }
}
