:root {
  color-scheme: light;
  --ink: #071b2a;
  --muted: #5a6b78;
  --surface: #ffffff;
  --soft: #f2fbfa;
  --teal: #0f9f9a;
  --teal-dark: #087a77;
  --indigo: #4f46e5;
  --line: #d7e8e6;
  --danger: #b42318;
  --shadow: 0 22px 70px rgba(7, 27, 42, 0.11);
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f7fbfb; color: var(--ink); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% 4%, rgba(79, 70, 229, .10), transparent 32rem), radial-gradient(circle at 10% 12%, rgba(15, 159, 154, .14), transparent 28rem), #f7fbfb; }
a { color: var(--teal-dark); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 0; border-radius: 999px; padding: .7rem 1.2rem; background: linear-gradient(135deg, var(--teal), var(--indigo)); color: #fff; font-weight: 800; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { filter: brightness(.94); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(79, 70, 229, .35); outline-offset: 3px; }
.button--secondary { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button--danger { background: var(--danger); }
.commerce-shell { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; }
.commerce-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.commerce-header img { width: 180px; height: auto; display: block; }
.commerce-header nav { display: flex; align-items: center; gap: 1.1rem; }
.commerce-header nav a { text-decoration: none; color: var(--ink); font-weight: 700; }
.commerce-hero { max-width: 850px; padding: 4.5rem 0 2.3rem; }
.commerce-hero h1 { margin: .55rem 0 1rem; font-size: clamp(2.35rem, 6vw, 5rem); line-height: .98; letter-spacing: -.055em; }
.commerce-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.7; }
.eyebrow { display: inline-block; color: var(--teal-dark); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; }
.commerce-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); gap: 1.4rem; align-items: start; padding-bottom: 5rem; }
.panel, .product-card, .review-card, .order-card { background: rgba(255,255,255,.94); border: 1px solid rgba(15,159,154,.18); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(1.2rem, 3vw, 2rem); }
.product-card h2, .panel h2 { margin: .3rem 0 .7rem; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.price { display: block; margin: 1rem 0; font-size: 2rem; font-weight: 900; color: var(--indigo); }
.stack { display: grid; gap: 1rem; }
.field { display: grid; gap: .45rem; }
.field span { font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1px solid #bcd6d3; border-radius: 13px; background: #fff; color: var(--ink); padding: .72rem .85rem; }
.field textarea { min-height: 120px; resize: vertical; }
.field--honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0 0 1.2rem; padding: 1rem 1.1rem; border-radius: 14px; background: #eaf9f7; border: 1px solid #b9e4df; }
.notice--error { background: #fff1f0; border-color: #f7b5af; color: #7a271a; }
.notice ul { margin-bottom: 0; }
.payment-options { display: grid; gap: .7rem; }
.payment-option { display: flex; align-items: center; gap: .65rem; border: 1px solid var(--line); border-radius: 14px; padding: .8rem; }
.payment-option input { width: 1.1rem; height: 1.1rem; }
.payment-session { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 1.5rem; align-items: center; }
.payment-session img { width: 260px; max-width: 100%; border-radius: 20px; }
.code { display: block; overflow-wrap: anywhere; padding: .8rem; border-radius: 12px; background: #eef7f6; color: var(--ink); }
.countdown { display: inline-flex; margin-top: .4rem; border-radius: 999px; padding: .5rem .8rem; background: #fff7df; color: #775b00; font-weight: 900; }
.countdown[data-expired="true"] { background: #fff1f0; color: var(--danger); }
.admin-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1.3rem; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.4rem; }
.review-card, .order-card { box-shadow: none; }
.review-card__head, .order-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.status { display: inline-flex; border-radius: 999px; padding: .3rem .65rem; background: #eaf9f7; color: var(--teal-dark); font-size: .8rem; font-weight: 900; }
.status--draft, .status--pending { background: #fff7df; color: #775b00; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.actions form { margin: 0; }
.commerce-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .commerce-header { align-items: flex-start; padding: 1rem 0; }
  .commerce-header nav { display: none; }
  .commerce-hero { padding-top: 2.8rem; }
  .commerce-grid, .payment-session { grid-template-columns: 1fr; }
  .payment-session img { margin-inline: auto; }
  .admin-toolbar, .commerce-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
