@import url("https://fonts.googleapis.com/css2?family=VT323&family=Teko:wght@500;600&display=swap");

:root {
  --bg: #16061f;
  --bg2: #220a30;
  --card: #2a0f3d;
  --ink: #fff4ff;
  --muted: #d7b3e8;
  --line: #ff4fc0;
  --accent: #ff2d9b;
  --accent2: #7afcff;
}
html[data-theme="light"] {
  --bg: #f4e8ff;
  --bg2: #ffffff;
  --card: #fff7ff;
  --ink: #2a0838;
  --muted: #6b3d78;
  --line: #c2186e;
  --accent: #d81b60;
  --accent2: #00838f;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; background: var(--bg); }
body {
  font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(#ffffff 1px, transparent 1px),
    radial-gradient(#ff79c6 1px, transparent 1px);
  background-size: 48px 48px, 72px 72px;
  background-position: 0 0, 24px 36px;
}
html[data-theme="light"] body {
  background-image:
    radial-gradient(#c2186e 1px, transparent 1px);
  background-size: 28px 28px;
}
a { color: var(--accent2); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; max-width: 1080px; margin: 10px auto;
  background: var(--card);
  border: 3px outset var(--line);
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.logo { height: 32px; width: auto; display: block; image-rendering: pixelated; }
nav ul { display: flex; gap: 12px; list-style: none; color: var(--muted); font-size: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: #ffe27a; text-decoration: underline; }
nav a:hover { color: #fff; }
.cart-link {
  border: 2px outset #888;
  background: #3a184f;
  border-radius: 0;
  padding: 4px 10px;
  color: #fff !important;
  text-decoration: none !important;
}
.icon-btn {
  width: 34px; height: 34px; border-radius: 0; border: 2px outset #888;
  background: #3a184f; color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0;
  margin-top: 0;
}
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.welcome {
  font-family: VT323, monospace;
  font-size: 28px;
  color: #ffe27a;
  letter-spacing: 3px;
  text-shadow: 2px 2px 0 #000;
}
.hero { text-align: center; padding: 36px 16px 18px; }
.hero h1 {
  font-family: Teko, Impact, sans-serif;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: 1px;
  line-height: 1.05;
  text-shadow: 3px 3px 0 #000;
  color: #fff;
}
.hero p { max-width: 620px; margin: 12px auto 0; color: var(--muted); line-height: 1.6; }
.hero .cta { margin-top: 18px; }
.tape {
  display: block;
  margin: 18px auto 0;
  max-width: 720px;
  background: #000;
  color: #7afcff;
  font-family: VT323, monospace;
  font-size: 22px;
  border: 2px inset #444;
  padding: 4px 0;
}
h2.sec {
  text-align: center;
  font-family: Teko, Impact, sans-serif;
  font-size: 34px;
  margin: 40px 0 6px;
  text-shadow: 2px 2px 0 #000;
  color: #ffe27a;
}
.sub { text-align: center; color: var(--muted); margin-bottom: 22px; }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.why article {
  background: var(--card);
  border: 3px outset var(--line);
  border-radius: 0;
  padding: 14px;
  box-shadow: 4px 4px 0 #000;
}
.why h3 { margin: 8px 0 6px; font-size: 16px; color: #ffe27a; }
.why p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.ico {
  width: 30px; height: 30px; border-radius: 0;
  background: #000; color: #7afcff; border: 2px inset #ff4fc0;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  font-family: VT323, monospace;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; padding-bottom: 40px; }
.product {
  text-align: center;
  background: var(--card);
  border: 3px outset #888;
  padding: 10px;
  box-shadow: 5px 5px 0 #000;
}
.product h3 { font-size: 16px; margin-top: 6px; }
.badge {
  height: 160px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 800;
  color: #ffe27a;
  margin-bottom: 8px;
  background: #000;
  border: 2px inset #666;
  overflow: hidden;
  font-family: VT323, monospace;
  position: relative;
}
.badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.badge.pdp-badge {
  height: auto;
  min-height: 160px;
  max-height: 400px;
  margin-bottom: 16px;
  background: #000;
  border: 2px inset #666;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.badge.pdp-badge img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #000;
  border: 2px inset #666;
  display: block;
  flex-shrink: 0;
}
#photoPrev { margin: 8px 0; }
#photoPrev .thumb {
  width: auto;
  max-width: 240px;
  max-height: 140px;
  height: auto;
  object-fit: contain;
}
.blurb { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 8px 0; min-height: 38px; }
.price { color: #7afcff; font-weight: 700; margin-top: 4px; }
.old { color: #887099; text-decoration: line-through; margin-left: 6px; font-weight: 500; }
.qty { width: 72px; margin: 8px auto; text-align: center; padding: 6px; }
.actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.cta, button.teal, button {
  display: inline-block;
  margin-top: 0;
  background: linear-gradient(#ff63b4, #c2186e);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 0;
  border: 3px outset #ff9ad5;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 3px 3px 0 #000;
  text-decoration: none;
}
.cta:active, button:active { border-style: inset; box-shadow: none; }
.cta.ghost, button.ghost {
  background: #2a0f3d;
  color: #ffe27a;
  border: 3px outset #666;
}
footer {
  border-top: 3px ridge var(--line);
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
  background: #000;
}
.foot { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page { max-width: 720px; margin: 28px auto; padding: 0 16px 60px; line-height: 1.65; }
.page h1 { font-family: Teko, Impact, sans-serif; font-size: 34px; margin-bottom: 12px; }
.page h2 { margin: 22px 0 8px; font-size: 18px; }
form label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 4px; color: #ffe27a; }
input, textarea, select {
  width: 100%; padding: 8px 10px; border: 2px inset #666; border-radius: 0;
  font: inherit; background: #12081c; color: var(--ink);
}
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select { background: #fff; }
textarea { min-height: 100px; }
.note { color: var(--muted); font-size: 13px; margin-top: 8px; }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border: 2px inset #444; margin: 8px 0; }
.on { background: #16301f; color: #86efac; }
.off { background: #3b2a12; color: #fbbf24; }
.err { background: #3f1212; color: #fca5a5; }
.admin-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px dotted var(--line); }
.stars { color: #ffe27a; }
.banner {
  background: #000;
  border: 3px outset var(--line);
  padding: 12px; margin: 16px 0;
}
.fb { background: var(--card); border: 3px outset #666; padding: 12px; margin-bottom: 10px; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dotted var(--line); }
.thumb { width: 48px; height: 48px; object-fit: contain; background: #000; border: 2px inset #666; display: block; flex-shrink: 0; }
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
  padding: 22px 0 64px;
}
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; }
}
.pdp-main, .pdp-about {
  background: var(--card);
  border: 3px outset var(--line);
  overflow: hidden;
  box-shadow: 6px 6px 0 #000;
}
.pdp-pad { padding: 16px 18px 20px; }
.pdp-main h1 { font-size: 22px; margin: 0 0 10px; font-family: Teko, Impact, sans-serif; }
.pdp-desc { color: var(--muted); line-height: 1.65; margin-bottom: 18px; }
.pdp-main h2, .pdp-kicker { font-size: 15px; font-weight: 700; margin: 8px 0 12px; }
.pdp-kicker {
  background: #000;
  margin: 0;
  padding: 8px 14px;
  border-bottom: 3px ridge var(--line);
  color: #ffe27a;
  font-family: VT323, monospace;
  font-size: 22px;
  letter-spacing: 1px;
}
html[data-theme="light"] .pdp-kicker { background: #2a0838; color: #ffe27a; }
.feats { list-style: none; margin: 0 0 22px; }
.feats li {
  position: relative;
  padding: 4px 0 4px 22px;
  font-size: 14px;
}
.feats li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #7afcff;
  font-weight: 800;
  font-family: VT323, monospace;
}
.faq { border-bottom: 1px dotted var(--line); }
.faq:first-of-type { border-top: 1px dotted var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 2px;
  font-size: 14px;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "[+]"; color: #7afcff; font-family: VT323, monospace; }
.faq[open] summary::after { content: "[-]"; }
.faq p { color: var(--muted); font-size: 14px; padding: 0 0 12px; line-height: 1.6; }
.pdp-price {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  margin: 8px 0 12px;
  color: #7afcff;
  font-family: VT323, monospace;
  font-size: 26px;
}
.var-btn {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  background: #12081c;
  color: var(--ink);
  border: 3px outset #666;
  border-radius: 0;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 2px 2px 0 #000;
}
html[data-theme="light"] .var-btn { background: #fff; color: #2a0838; }
.var-btn.picked {
  border: 3px inset #7afcff;
  background: #001a22;
  color: #7afcff;
  box-shadow: none;
}
.pdp-about .qty { width: 100%; margin: 12px 0 8px; }
.pdp-about .actions { flex-direction: column; }
.pdp-about .cta { width: 100%; text-align: center; }
.pdp-note { color: var(--muted); font-size: 12px; text-align: center; margin-top: 12px; }

/* ==================== TICKETS STYLING ==================== */
.req { color: #ff2d9b; font-weight: bold; }
.ticket-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.tab-btn {
  background: var(--card);
  border: 2px outset #888;
  color: var(--muted);
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}
.tab-btn:hover { color: #fff; border-color: #aaa; }
.tab-btn.active {
  background: linear-gradient(#ff63b4, #c2186e);
  color: #fff;
  border: 2px inset #ff4fc0;
  box-shadow: 2px 2px 0 #000;
}
.ticket-notice {
  background: #110519;
  border: 2px inset #7afcff;
  color: #7afcff;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}
html[data-theme="light"] .ticket-notice {
  background: #e0f7fa;
  border-color: #00838f;
  color: #006064;
}
.ticket-card {
  background: var(--card);
  border: 2px outset var(--line);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 3px 3px 0 #000;
}
.ticket-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.t-date { font-size: 12px; color: var(--muted); font-family: monospace; }
.t-badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 2px;
}
.t-cat { background: #220a30; border: 1px solid #7afcff; color: #7afcff; }
.t-sync { background: #0b1a28; border: 1px solid #38bdf8; color: #38bdf8; font-size: 10px; }
.t-status-open { background: #451a03; border: 1px solid #f59e0b; color: #fbbf24; }
.t-status-customer_reply { background: #3b0764; border: 1px solid #c084fc; color: #e9d5ff; }
.t-status-answered { background: #064e3b; border: 1px solid #10b981; color: #6ee7b7; }
.t-status-closed { background: #1f2937; border: 1px solid #6b7280; color: #9ca3af; }

.sync-badge {
  display: inline-block;
  background: #022c22;
  color: #34d399;
  border: 1px solid #059669;
  padding: 2px 6px;
  font-size: 12px;
}

.ticket-thread-box {
  background: var(--card);
  border: 3px outset var(--line);
  padding: 18px;
  box-shadow: 4px 4px 0 #000;
}
.thread-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px dashed var(--line);
  padding-bottom: 14px;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}
.thread-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 4px;
}
.msg-bubble {
  padding: 12px 16px;
  border: 2px outset #555;
  background: #190524;
  position: relative;
  line-height: 1.5;
}
html[data-theme="light"] .msg-bubble { background: #fdf6ff; border-color: #ccc; }
.msg-customer {
  border-left: 5px solid #7afcff;
}
.msg-admin {
  border-left: 5px solid #ff2d9b;
  background: #250933;
}
html[data-theme="light"] .msg-admin { background: #fae8f3; }
.msg-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 6px;
}
.msg-time { margin-left: auto; font-size: 11px; color: var(--muted); font-family: monospace; }
.admin-chip {
  background: #ff2d9b;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  font-weight: 800;
  text-transform: uppercase;
}
.msg-content {
  font-size: 14px;
  word-break: break-word;
  white-space: pre-wrap;
}

.ticket-closed-banner {
  background: #1f2937;
  border: 2px inset #4b5563;
  color: #d1d5db;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  text-align: center;
}

.reply-box {
  background: #14041c;
  border: 2px inset #666;
  padding: 14px;
  margin-top: 10px;
}
html[data-theme="light"] .reply-box { background: #f4e8ff; }
.reply-box textarea { width: 100%; margin: 8px 0; }

.err-box {
  background: #450a0a;
  border: 2px inset #ef4444;
  color: #fca5a5;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 13px;
  line-height: 1.4;
}
.success-box {
  background: #052e16;
  border: 2px inset #22c55e;
  color: #86efac;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Admin ticket styling */
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.stat-card {
  background: var(--card);
  border: 2px outset var(--line);
  padding: 10px;
  text-align: center;
}
.stat-card .num {
  font-family: VT323, monospace;
  font-size: 28px;
  color: #ffe27a;
}
.stat-card .lbl {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
}
.admin-filters-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.admin-ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 2px outset #666;
  padding: 10px 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.admin-ticket-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 16px;
}
.admin-ticket-modal-content {
  background: var(--bg);
  border: 3px outset var(--line);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 6px 6px 0 #000;
}
