/* The three modern designs share templates/modern/ and this file. <body data-style="..."> picks
   one; everything that differs is a variable below:
   - playful: loud on purpose. Orange and black, thick borders, offset shadows, stickers.
   - dark:    navy like jarllindquist.com, cyan and teal, soft glow.
   - clean:   a calm, light shop; orange only as the accent.
   - terminal: green on black in a monospace font; soft green for text, bright green for what
              matters, so it stays readable.
   The classic design (base.css and friends) does not use this file. */

/* ---------- Playful (the default values) ---------- */
:root,
[data-style="playful"] {
  --bg: #fff8ec;
  --text: #111111;
  --muted: #5b5b5b;
  --card: #ffffff;
  --card-text: #111111;
  --img-bg: #ffffff;
  --border-color: #111111;
  --border: 3px solid var(--border-color);
  --radius: 14px;
  --shadow: 6px 6px 0 #111111;
  --shadow-small: 4px 4px 0 #111111;
  --shadow-hover: 6px 6px 0 #111111;
  --nav-bg: #111111;
  --nav-text: #ffffff;
  --nav-muted: #dddddd;
  --accent: #ff9900;
  --accent-text: #111111;
  --btn-bg: #ff9900;
  --btn-text: #111111;
  --btn-border: 3px solid #111111;
  --ghost-bg: #ffffff;
  --ghost-text: #111111;
  --danger: #ff3d57;
  --ticker-bg: #ff9900;
  --ticker-text: #111111;
  --ticker-border: 3px solid #111111;
  --ticker-size: 14px;
  --highlight-bg: #ffd23f;
  --highlight-text: #111111;
  --highlight-border: 3px solid #111111;
  --highlight-rotate: -2deg;
  --title-transform: uppercase;
  --title-weight: 900;
  --hero-size: clamp(40px, 7vw, 84px);
  --sticker-rotate: 6deg;
  --sticker-border: 3px solid #111111;
  --sticker-shadow: 3px 3px 0 #111111;
  --sticker-0: #ff3d57;
  --sticker-0-text: #ffffff;
  --sticker-1: #ffd23f;
  --sticker-2: #2dd4bf;
  --sticker-3: #ffffff;
  --sticker-text: #111111;
  --card-tilt: -0.4deg;
  --bot-tilt: 1;
  --field-bg: #ffffff;
  --field-text: #111111;
  --focus: #ff3d57;
  --message-bg: #ffd23f;
  --message-text: #111111;
  --up-bg: #c9f7e5;
  --down-bg: #ffd1d8;
  --status-text: #111111;
  --foot-bg: #111111;
  --foot-text: #dddddd;
  --foot-strong: #ffffff;
  --foot-accent: #ff9900;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Dark: like the portfolio ---------- */
[data-style="dark"] {
  --bg: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --card: #1e293b;
  --card-text: #f1f5f9;
  --img-bg: #ffffff;
  --border-color: rgba(148, 163, 184, 0.25);
  --border: 1px solid var(--border-color);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-small: 0 4px 14px rgba(56, 189, 248, 0.25);
  --shadow-hover: 0 14px 34px rgba(56, 189, 248, 0.2);
  --nav-bg: #0b1222;
  --nav-text: #f1f5f9;
  --nav-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-text: #0f172a;
  --btn-bg: linear-gradient(90deg, #38bdf8, #2dd4bf);
  --btn-text: #0f172a;
  --btn-border: 0 solid transparent;
  --ghost-bg: #0f172a;
  --ghost-text: #e2e8f0;
  --danger: #f43f5e;
  --ticker-bg: #111c33;
  --ticker-text: #7dd3fc;
  --ticker-border: 1px solid rgba(148, 163, 184, 0.2);
  --ticker-size: 12px;
  --highlight-bg: transparent;
  --highlight-text: #2dd4bf;
  --highlight-border: 0 solid transparent;
  --highlight-rotate: 0deg;
  --title-transform: none;
  --title-weight: 800;
  --hero-size: clamp(38px, 6vw, 72px);
  --sticker-rotate: 0deg;
  --sticker-border: 1px solid rgba(255, 255, 255, 0.15);
  --sticker-shadow: none;
  --sticker-0: #f43f5e;
  --sticker-0-text: #ffffff;
  --sticker-1: #fbbf24;
  --sticker-2: #2dd4bf;
  --sticker-3: #e2e8f0;
  --sticker-text: #0f172a;
  --card-tilt: 0deg;
  --bot-tilt: 0;
  --field-bg: #0f172a;
  --field-text: #f1f5f9;
  --focus: #fbbf24;
  --message-bg: #12324a;
  --message-text: #e0f2fe;
  --up-bg: #0f3d33;
  --down-bg: #4c1d2a;
  --status-text: #f1f5f9;
  --foot-bg: #0b1222;
  --foot-text: #94a3b8;
  --foot-strong: #f1f5f9;
  --foot-accent: #38bdf8;
}

/* ---------- Clean: a calm, light shop ---------- */
[data-style="clean"] {
  --bg: #f6f7f9;
  --text: #1f2937;
  --muted: #6b7280;
  --card: #ffffff;
  --card-text: #111827;
  --img-bg: #ffffff;
  --border-color: #e5e7eb;
  --border: 1px solid var(--border-color);
  --radius: 12px;
  --shadow: 0 1px 3px rgba(17, 24, 39, 0.08);
  --shadow-small: 0 1px 2px rgba(17, 24, 39, 0.1);
  --shadow-hover: 0 10px 24px rgba(17, 24, 39, 0.12);
  --nav-bg: #ffffff;
  --nav-text: #111827;
  --nav-muted: #4b5563;
  --accent: #e07800;
  --accent-text: #ffffff;
  --btn-bg: #ff9900;
  --btn-text: #111827;
  --btn-border: 0 solid transparent;
  --ghost-bg: #ffffff;
  --ghost-text: #1f2937;
  --danger: #dc2626;
  --ticker-bg: #fff7ed;
  --ticker-text: #9a4b00;
  --ticker-border: 1px solid #fde4c4;
  --ticker-size: 12px;
  --highlight-bg: transparent;
  --highlight-text: #e07800;
  --highlight-border: 0 solid transparent;
  --highlight-rotate: 0deg;
  --title-transform: none;
  --title-weight: 800;
  --hero-size: clamp(36px, 5.5vw, 64px);
  --sticker-rotate: 0deg;
  --sticker-border: 0 solid transparent;
  --sticker-shadow: none;
  --sticker-0: #dc2626;
  --sticker-0-text: #ffffff;
  --sticker-1: #fef3c7;
  --sticker-2: #d1fae5;
  --sticker-3: #f3f4f6;
  --sticker-text: #111827;
  --card-tilt: 0deg;
  --bot-tilt: 0;
  --field-bg: #ffffff;
  --field-text: #111827;
  --focus: #e07800;
  --message-bg: #fff7ed;
  --message-text: #7c2d12;
  --up-bg: #ecfdf5;
  --down-bg: #fef2f2;
  --status-text: #111827;
  --foot-bg: #111827;
  --foot-text: #9ca3af;
  --foot-strong: #f9fafb;
  --foot-accent: #ff9900;
}

/* ---------- Terminal: green on black, monospace ---------- */
[data-style="terminal"] {
  --bg: #0a0e0a;
  --text: #b8f2bf;
  --muted: #7cc488;
  --card: #0e150f;
  --card-text: #b8f2bf;
  --img-bg: #ffffff;
  --border-color: #2a7a3b;
  --border: 1px solid var(--border-color);
  --radius: 2px;
  --shadow: none;
  --shadow-small: none;
  --shadow-hover: 0 0 0 1px #3dff6e, 0 0 18px rgba(61, 255, 110, 0.25);
  --nav-bg: #050805;
  --nav-text: #b8f2bf;
  --nav-muted: #7cc488;
  --accent: #3dff6e;
  --accent-text: #050805;
  --btn-bg: transparent;
  --btn-text: #3dff6e;
  --btn-border: 1px solid #3dff6e;
  --ghost-bg: transparent;
  --ghost-text: #b8f2bf;
  --danger: #ff6b6b;
  --ticker-bg: #050805;
  --ticker-text: #3dff6e;
  --ticker-border: 1px solid #1d4d27;
  --ticker-size: 13px;
  --highlight-bg: #3dff6e;
  --highlight-text: #050805;
  --highlight-border: 0 solid transparent;
  --highlight-rotate: 0deg;
  --title-transform: none;
  --title-weight: 700;
  --hero-size: clamp(30px, 5vw, 60px);
  --sticker-rotate: 0deg;
  --sticker-border: 0 solid transparent;
  --sticker-shadow: none;
  --sticker-0: #ff6b6b;
  --sticker-0-text: #050805;
  --sticker-1: #3dff6e;
  --sticker-2: #3dff6e;
  --sticker-3: #b8f2bf;
  --sticker-text: #050805;
  --card-tilt: 0deg;
  --bot-tilt: 0;
  --field-bg: #050805;
  --field-text: #3dff6e;
  --focus: #fffb7a;
  --message-bg: #0e2a14;
  --message-text: #b8f2bf;
  --up-bg: #0e2a14;
  --down-bg: #3a1010;
  --status-text: #b8f2bf;
  --foot-bg: #050805;
  --foot-text: #7cc488;
  --foot-strong: #3dff6e;
  --foot-accent: #3dff6e;
  --font: "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, "DejaVu Sans Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

/* The footer sits at the bottom even on a short page: header, main (grows), footer */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--highlight-bg);
  color: var(--text);
  padding: 8px 12px;
  border: var(--border);
  z-index: 10;
}

.skip:focus {
  left: 8px;
  background: var(--card);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: var(--btn-border);
  border-radius: 999px;
  box-shadow: var(--shadow-small);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: var(--title-transform);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}

.btn:active {
  transform: translate(2px, 2px);
}

.btn-small {
  padding: 7px 14px;
  font-size: 14px;
}

.btn-ghost {
  background: var(--ghost-bg);
  color: var(--ghost-text);
  border: var(--border);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

/* ---------- Header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 10px 24px;
  background: var(--nav-bg);
  color: var(--nav-text);
  border-bottom: var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.04em;
}

.brand svg {
  width: 40px;
  color: var(--accent);
}

[data-style="clean"] .brand svg {
  color: #ff9900;
}

.brand sup {
  font-size: 11px;
  color: var(--accent);
}

.links {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
}

.links a {
  text-decoration: none;
}

.links a:hover {
  color: var(--accent);
}

.tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tools form {
  margin: 0;
}

.tools select {
  font: inherit;
  font-weight: 700;
  padding: 4px 8px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--nav-bg);
  color: var(--nav-text);
  cursor: pointer;
}

.me {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
}

.me img {
  border-radius: 8px;
  border: 2px solid var(--accent);
}

.cart {
  position: relative;
  display: flex;
  color: var(--nav-text);
}

.cart svg {
  width: 30px;
}

.cart .count {
  position: absolute;
  top: -8px;
  right: -12px;
  min-width: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  line-height: 22px;
  border: 2px solid var(--nav-bg);
}

.plain {
  font-weight: 700;
  color: var(--nav-muted);
}

.ticker {
  overflow: hidden;
  background: var(--ticker-bg);
  color: var(--ticker-text);
  border-bottom: var(--ticker-border);
  font-weight: 900;
  font-size: var(--ticker-size);
  letter-spacing: 0.08em;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker-track span {
  padding: 6px 22px;
  white-space: nowrap;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

/* ---------- Page ---------- */

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.rate-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.page-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: var(--title-weight);
  text-transform: var(--title-transform);
  margin: 8px 0 20px;
}

.panel {
  background: var(--card);
  color: var(--card-text);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 26px;
}

.muted {
  color: var(--muted);
}

/* ---------- Home ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: var(--hero-size);
  font-weight: var(--title-weight);
  text-transform: var(--title-transform);
  margin: 0 0 14px;
  line-height: 0.98;
}

.hero h1 em {
  font-style: normal;
  background: var(--highlight-bg);
  color: var(--highlight-text);
  padding: 0 8px;
  border: var(--highlight-border);
  display: inline-block;
  transform: rotate(var(--highlight-rotate));
}

[data-style="dark"] .hero h1 em {
  padding: 0;
  background: linear-gradient(90deg, #38bdf8, #2dd4bf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 20px;
  max-width: 34em;
}

.hero-bots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.hero-bots img {
  width: 100%;
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-small);
}

.hero-bots img:nth-child(odd) {
  transform: rotate(calc(-4deg * var(--bot-tilt)));
}

.hero-bots img:nth-child(even) {
  transform: rotate(calc(3deg * var(--bot-tilt))) translateY(calc(10px * var(--bot-tilt)));
}

.section-title {
  font-size: 28px;
  font-weight: var(--title-weight);
  text-transform: var(--title-transform);
  margin: 0 0 16px;
}

/* ---------- Product cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 26px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  color: var(--card-text);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.12s, box-shadow 0.12s;
}

.card:hover {
  transform: translate(-2px, -2px) rotate(var(--card-tilt));
  box-shadow: var(--shadow-hover);
}

.card-img {
  height: 210px;
  background: var(--img-bg);
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img img {
  max-height: 100%;
  width: 100%;
  object-fit: contain;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 18px;
  flex: 1;
}

.card-name {
  font-weight: 800;
  font-size: 18px;
  margin: 0;
}

.card-cat {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.price {
  margin: 4px 0 8px;
  font-size: 28px;
  font-weight: 900;
}

.was {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 6px;
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.sticker {
  position: absolute;
  top: 12px;
  right: -6px;
  padding: 4px 12px;
  border: var(--sticker-border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--sticker-text);
  transform: rotate(var(--sticker-rotate));
  box-shadow: var(--sticker-shadow);
}

[data-style="dark"] .sticker,
[data-style="clean"] .sticker {
  right: 12px;
  border-radius: 999px;
  font-size: 12px;
}

.sticker-0 {
  background: var(--sticker-0);
  color: var(--sticker-0-text);
}

.sticker-1 {
  background: var(--sticker-1);
}

.sticker-2 {
  background: var(--sticker-2);
}

.sticker-3 {
  background: var(--sticker-3);
}

/* ---------- Products page tools ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.filters form {
  margin: 0;
}

.filters select,
.field input {
  font: inherit;
  padding: 9px 12px;
  border: var(--border);
  border-radius: 10px;
  background: var(--field-bg);
  color: var(--field-text);
}

.pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.pages a {
  display: block;
  min-width: 42px;
  padding: 6px 10px;
  text-align: center;
  font-weight: 800;
  text-decoration: none;
  background: var(--card);
  color: var(--card-text);
  border: var(--border);
  border-radius: 10px;
}

.pages a[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-text);
}

/* ---------- Forms ---------- */

.field {
  display: block;
  margin-bottom: 14px;
  font-weight: 700;
}

.field input {
  display: block;
  width: 100%;
  margin-top: 4px;
  font-weight: 400;
}

.avatar-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: none;
  padding: 0;
  margin: 0 0 16px;
}

.avatar-pick legend {
  font-weight: 700;
  margin-bottom: 6px;
}

.avatar-pick input {
  position: absolute;
  opacity: 0;
}

.avatar-pick img {
  display: block;
  border-radius: 12px;
  border: var(--border);
  cursor: pointer;
}

.avatar-pick input:checked + img {
  box-shadow: 0 0 0 4px var(--accent);
  transform: rotate(calc(-4deg * var(--bot-tilt)));
}

.avatar-pick input:focus-visible + img {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.message,
.demo {
  background: var(--message-bg);
  color: var(--message-text);
  border: var(--border);
  border-radius: 10px;
  padding: 10px 14px;
}

.message {
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 26px;
  align-items: start;
}

/* ---------- Cart ---------- */

.cart-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
}

.cart-row img {
  width: 90px;
  height: 70px;
  object-fit: contain;
  background: var(--img-bg);
  border-radius: 8px;
}

.cart-row:last-child {
  border-bottom: none;
}

.total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 24px;
  font-weight: 900;
}

/* ---------- Status ---------- */

.status-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.status-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: var(--border);
  border-radius: 12px;
  font-weight: 800;
  color: var(--status-text);
}

.status-up {
  background: var(--up-bg);
}

.status-down {
  background: var(--down-bg);
}

/* ---------- Footer ---------- */

.foot {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 30px;
  /* Extra room at the bottom for the design picker in the corner */
  padding: 36px 24px 80px;
  background: var(--foot-bg);
  color: var(--foot-text);
}

.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.foot li {
  margin-bottom: 6px;
}

.foot-brand {
  font-weight: 900;
  font-size: 22px;
  color: var(--foot-strong);
  margin-top: 0;
}

.foot-brand sup {
  color: var(--foot-accent);
  font-size: 11px;
}

.foot-title {
  font-weight: 900;
  color: var(--foot-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0;
}

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .nav {
    gap: 12px;
    padding: 10px 16px;
  }

  .links {
    order: 3;
    width: 100%;
    gap: 16px;
  }

  .tools {
    gap: 10px;
  }

  .me span {
    display: none;
  }

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

  main {
    padding: 22px 16px 50px;
  }

  .cart-row {
    grid-template-columns: 64px 1fr;
  }

  .cart-row img {
    width: 64px;
  }

  .cart-row .btn {
    grid-column: 2;
    justify-self: start;
  }
}

/* ---------- The dark patterns (on purpose) and "Reveal the tricks" ---------- */

.deadline {
  font-weight: 800;
  margin: 0 0 16px;
}

.countdown {
  display: inline-block;
  min-width: 3.2em;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--danger);
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.viewers {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--danger);
}

.reveal-btn {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--nav-text);
  cursor: pointer;
}

.reveal-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-text);
}

.checkout-extras {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
}

.addon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.addon input {
  width: 18px;
  height: 18px;
}

.shame {
  align-self: flex-start;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
  cursor: pointer;
}

/* Revealed: every trick gets a dashed outline and its number from the panel */
.reveal [data-trick] {
  outline: 3px dashed #e11d48;
  outline-offset: 3px;
}

/* The number is placed against the trick; the sticker is already positioned (absolute) */
.reveal [data-trick]:not(.sticker) {
  position: relative;
}

.trick-tag {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e11d48;
  color: #fff;
  font: 900 13px/24px var(--font);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* The sticker is rotated and placed at the edge: its number goes inside instead */
.sticker .trick-tag {
  top: -10px;
  right: 10px;
}

.trick-panel {
  margin: 0 0 26px;
  padding: 16px 20px;
  border: 3px dashed #e11d48;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--card-text);
}

.trick-panel-title {
  margin: 0 0 8px;
  font-weight: 900;
}

.trick-list {
  margin: 0 0 8px;
  padding-left: 22px;
}

.trick-list li {
  margin-bottom: 6px;
}

.trick-list li::marker {
  color: #e11d48;
  font-weight: 900;
}

/* ---------- Terminal details ---------- */

/* Faint scan lines over the page; text stays sharp on top */
[data-style="terminal"] {
  background-image: repeating-linear-gradient(0deg, rgba(61, 255, 110, 0.035) 0 1px, transparent 1px 3px);
}

[data-style="terminal"] h1,
[data-style="terminal"] h2,
[data-style="terminal"] h3,
[data-style="terminal"] .price,
[data-style="terminal"] .brand {
  color: #3dff6e;
  text-shadow: 0 0 8px rgba(61, 255, 110, 0.35);
}

/* Titles read like a prompt, with a blinking cursor */
[data-style="terminal"] .page-title::before,
[data-style="terminal"] .hero h1::before {
  content: "$ ";
  color: #7cc488;
}

[data-style="terminal"] .page-title::after {
  content: "_";
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-style="terminal"] .page-title::after {
    animation: none;
  }
}

[data-style="terminal"] .btn::before {
  content: "[ ";
}

[data-style="terminal"] .btn::after {
  content: " ]";
}

[data-style="terminal"] .btn:hover {
  background: #3dff6e;
  color: #050805;
}

[data-style="terminal"] .btn-danger {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

[data-style="terminal"] .btn-danger:hover {
  background: #ff6b6b;
  color: #050805;
}

[data-style="terminal"] .sticker {
  right: 12px;
  border-radius: 0;
  font-size: 12px;
}

[data-style="terminal"] .hero-bots img {
  filter: saturate(0.6);
}

[data-style="terminal"] .countdown {
  background: transparent;
  color: #ff6b6b;
  border: 1px solid #ff6b6b;
  border-radius: 0;
}

[data-style="terminal"] .btn,
[data-style="terminal"] .reveal-btn,
[data-style="terminal"] .tools select,
[data-style="terminal"] .filters select,
[data-style="terminal"] .field input,
[data-style="terminal"] .pages a {
  border-radius: 2px;
}

/* ---------- Product page, reviews, orders ---------- */

.card-name a {
  text-decoration: none;
}

.card-name a:hover {
  text-decoration: underline;
}

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 36px;
}

.product-photo {
  background: var(--img-bg);
  display: flex;
  justify-content: center;
}

.product-photo img {
  max-height: 420px;
  object-fit: contain;
}

.big-price {
  font-size: 40px;
}

.stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.review {
  display: flex;
  gap: 14px;
  margin: 0;
}

.review img {
  border-radius: 10px;
  flex-shrink: 0;
}

.review p {
  margin: 0 0 6px;
}

.review-date {
  font-size: 13px;
}

.order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

.order-head h2 {
  margin: 0;
  font-size: 22px;
}

.order-total {
  margin-left: auto;
  font-size: 22px;
}

.order-lines {
  list-style: none;
  padding: 0;
  margin: 14px 0 6px;
}

.order-lines li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-color);
}

.order-lines li:last-child {
  border-bottom: none;
}

.order-lines img {
  object-fit: contain;
  background: var(--img-bg);
  border-radius: 6px;
}

.order-extra > span:first-child {
  text-align: center;
  font-size: 22px;
}

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

/* ---------- Service status ---------- */

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 22px;
  margin-bottom: 8px;
}

.status-card {
  margin-bottom: 0;
}

.status-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.status-top h2 {
  margin: 0;
  font-size: 17px;
}

.status-pill {
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  background: var(--up-bg);
  color: var(--status-text);
  border: var(--border);
}

.is-down .status-pill {
  background: var(--down-bg);
}

.status-ms {
  margin: 12px 0 4px;
  font-size: 15px;
}

.status-ms .ms {
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}

.spark {
  display: block;
  width: 100%;
  height: 48px;
  color: var(--accent);
}

[data-style="clean"] .spark {
  color: #e07800;
}

.is-down .spark {
  color: var(--danger);
}

.status-uptime {
  margin: 6px 0 0;
  font-size: 14px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  font-weight: 700;
}

.check-list li {
  padding: 4px 0;
}

.check-ok {
  color: #15803d;
}

.check-fail {
  color: var(--danger);
}

[data-style="dark"] .check-ok,
[data-style="terminal"] .check-ok {
  color: #4ade80;
}

/* ---------- Admin dashboard ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.stat-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.stat-value {
  font-size: 30px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.stat-note {
  font-size: 13px;
}

.bars {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0 12px;
}

.bars-bar {
  fill: var(--accent);
}

[data-style="clean"] .bars-bar {
  fill: #ff9900;
}

.bars g:hover .bars-bar {
  opacity: 0.75;
}

.bars-axis {
  stroke: var(--border-color);
  stroke-width: 1;
}

.bars-label,
.bars-value {
  font: 600 11px var(--font);
  fill: var(--muted);
}

.bars-value {
  fill: var(--card-text);
}

.data-table {
  border-collapse: collapse;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  padding: 4px 14px 4px 0;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

/* ---------- Admin products ---------- */

.admin-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 0 16px;
  flex: 1;
}

.admin-products {
  display: grid;
  gap: 18px;
}

.admin-product {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 0;
}

.admin-product img {
  object-fit: contain;
  background: var(--img-bg);
  border-radius: 8px;
  flex-shrink: 0;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 760px) {
  .admin-product {
    flex-direction: column;
  }
}
