:root {
  --bg: #080103;
  --bg-2: #140006;
  --card: rgba(30, 4, 10, 0.78);
  --line: rgba(255, 41, 84, 0.42);
  --line-hot: rgba(255, 52, 92, 0.88);
  --text: #fff7f8;
  --muted: #dcc7ce;
  --dim: #a98691;
  --red: #ff1f52;
  --red-2: #ff476b;
  --gold: #ffb13b;
  --green: #19e479;
  --purple: #ff47dd;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 7%, rgba(255, 35, 79, 0.34), transparent 29rem),
    radial-gradient(circle at 14% 45%, rgba(255, 35, 79, 0.14), transparent 34rem),
    radial-gradient(circle at 92% 82%, rgba(255, 35, 79, 0.3), transparent 23rem),
    linear-gradient(180deg, #100004 0%, #090104 52%, #040102 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
}

body::before {
  background-image:
    linear-gradient(rgba(255, 41, 84, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 41, 84, 0.13) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.88) 62%, transparent 100%);
}

body::after {
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 18%, rgba(255, 31, 82, 0.18) 39%, transparent 56%),
    radial-gradient(ellipse at 62% 28%, rgba(255, 31, 82, 0.22), transparent 34rem);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.42; }

.auth-loading .modules-page,
.auth-required .modules-page,
.auth-ok .signin-page {
  display: none !important;
}

.signin-page {
  width: min(760px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 42px 0;
}

.signin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: #fff;
  font-weight: 950;
}

.signin-card {
  position: relative;
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid var(--line-hot);
  border-radius: 12px;
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 31, 82, 0.28), transparent 16rem),
    linear-gradient(145deg, rgba(38, 4, 12, 0.95), rgba(7, 0, 2, 0.96));
  box-shadow: var(--shadow), 0 0 54px rgba(255, 31, 82, 0.18);
  overflow: hidden;
}

.signin-card::before {
  position: absolute;
  inset: -30% -10% auto 18%;
  height: 220px;
  border: 10px solid rgba(255, 31, 82, 0.52);
  border-radius: 50%;
  transform: rotate(-8deg);
  filter: blur(1px);
  content: "";
}

.signin-card > * {
  position: relative;
}

.signin-card h1 {
  max-width: 560px;
  margin: 12px 0 14px;
  font-size: clamp(40px, 9vw, 76px);
  line-height: 0.94;
}

.signin-card p {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.quiet-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
}

.signin-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 24px;
}

.signin-actions .solid-button { margin: 0; }

.modules-page {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 56px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid rgba(255, 41, 84, 0.25);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.login-pill,
.hero-pills,
.modules-head,
.filter-pills,
.module-tags,
.request-strip,
.answer-row,
.pager,
.result-field { display: flex; }

.brand {
  align-items: center;
  gap: 12px;
  justify-self: start;
  font-size: 15px;
  font-weight: 950;
}

.brand-mark,
.module-logo,
.request-icon {
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line-hot);
  background: linear-gradient(145deg, rgba(255, 31, 82, 0.16), rgba(0, 0, 0, 0.74));
  box-shadow: 0 0 32px rgba(255, 31, 82, 0.26), inset 0 0 24px rgba(255, 31, 82, 0.08);
}

.brand-mark { width: 44px; height: 44px; }
.brand-mark img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; }
.nav-links { justify-content: center; gap: 22px; }

.nav-links a,
.login-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: #f5d9df;
  font-size: 13px;
  font-weight: 950;
}

.profile-pill {
  justify-self: end;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 0, 2, 0.78);
}

.profile-pill.premium { border-color: rgba(255, 41, 84, 0.6); }
.profile-pill > span:last-child { min-width: 0; display: grid; }
.profile-pill b { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.profile-pill small { color: var(--dim); font-size: 11px; }
.profile-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 31, 82, 0.2);
  font-weight: 950;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.nav-links a.active {
  color: #fff;
  border: 1px solid rgba(255, 41, 84, 0.55);
  background: rgba(255, 31, 82, 0.1);
  box-shadow: 0 0 18px rgba(255, 31, 82, 0.16);
}

.login-pill {
  justify-self: end;
  border: 1px solid var(--line-hot);
  color: #fff;
  background: rgba(5, 0, 2, 0.72);
}

.hero {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  padding: 76px 20px 46px;
  text-align: center;
  overflow: hidden;
}

.hero-ring {
  position: absolute;
  width: min(860px, 78vw);
  height: 250px;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  border: 13px solid rgba(255, 31, 82, 0.84);
  border-left-color: rgba(255, 31, 82, 0.18);
  border-bottom-color: rgba(255, 31, 82, 0.32);
  border-radius: 50%;
  filter: blur(1px) drop-shadow(0 0 32px rgba(255, 31, 82, 0.8));
  opacity: 0.86;
}

.eyebrow {
  margin: 0;
  color: var(--red-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 1000;
}

.hero h1 {
  position: relative;
  margin: 12px 0 14px;
  font-size: clamp(54px, 10vw, 104px);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 0 32px rgba(255, 255, 255, 0.2);
}

.hero-copy {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  color: #ead8dd;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.55;
}

.hero-pills {
  position: relative;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-pills span,
.filter-pills button,
.module-tags span,
.solid-button,
.open-module,
.pager button,
.choice-button,
.result-field button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 950;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  justify-content: center;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
  background: rgba(255, 31, 82, 0.08);
}

.login-gate {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -4px 0 38px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 31, 82, 0.1), rgba(12, 0, 4, 0.86));
  box-shadow: var(--shadow);
}

.login-gate span {
  color: var(--red-2);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 1000;
}

.login-gate h2,
.request-strip h2 { margin: 6px 0; }

.login-gate p,
.request-strip p,
.module-card p,
.prompt-panel p,
.detail-hero p {
  color: var(--muted);
  line-height: 1.5;
}

.modules-head {
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
}

.modules-head h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); }
.modules-head p {
  margin: 8px 0 0;
  color: var(--green);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 1000;
}

.green-dot,
.live-badge span {
  width: 11px;
  height: 11px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(25, 228, 121, 0.9);
}

.filter-pills { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.filter-pills button.active,
.solid-button,
.open-module {
  border-color: transparent;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 14px 32px rgba(255, 31, 82, 0.26);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.module-card {
  position: relative;
  min-height: 320px;
  padding: 28px;
  border: 1px solid var(--line-hot);
  border-radius: 8px;
  background:
    radial-gradient(circle at 84% 0%, rgba(255, 31, 82, 0.24), transparent 14rem),
    linear-gradient(145deg, rgba(47, 6, 15, 0.86), rgba(11, 1, 4, 0.84));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 18px 52px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.module-card.locked { opacity: 0.82; }
.module-card::after {
  position: absolute;
  inset: auto -18% -40% 28%;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 31, 82, 0.2);
  filter: blur(42px);
  content: "";
}

.module-logo {
  width: 86px;
  height: 86px;
  color: var(--gold);
  font-size: 40px;
  font-weight: 1000;
  overflow: hidden;
}

.module-logo.big {
  width: 108px;
  height: 108px;
  margin: 0 auto 18px;
  font-size: 48px;
}

.module-logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.12));
}

.module-logo.greggs img {
  width: 82%;
  height: 82%;
}

.module-logo.popeyes {
  background: linear-gradient(145deg, rgba(255, 106, 0, 0.24), rgba(0, 0, 0, 0.74));
  border-color: rgba(255, 126, 31, 0.88);
  box-shadow: 0 0 28px rgba(255, 126, 31, 0.2);
}

.module-logo.popeyes img {
  width: 90%;
  height: 90%;
  border-radius: 12px;
}

.module-logo.tacobell {
  background: linear-gradient(145deg, rgba(96, 29, 161, 0.32), rgba(0, 0, 0, 0.74));
  border-color: rgba(172, 98, 255, 0.82);
  box-shadow: 0 0 30px rgba(172, 98, 255, 0.22);
}

.module-logo.fallback span {
  color: #fff;
  font-size: 28px;
  font-weight: 1000;
}

.live-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(25, 228, 121, 0.5);
  border-radius: 999px;
  color: #96ffc4;
  background: rgba(0, 50, 23, 0.45);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 1000;
}

.module-card h3 {
  margin: 22px 0 8px;
  font-size: 28px;
  line-height: 1.08;
}

.module-tags { flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.module-tags.centered { justify-content: center; }

.module-tags span {
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  color: #ffe8ed;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.module-tags .tag-free {
  border-color: rgba(25, 228, 121, 0.65);
  color: #7affb3;
  background: rgba(25, 228, 121, 0.13);
}

.module-tags .tag-premium {
  border-color: rgba(255, 71, 221, 0.62);
  color: #ff9aef;
  background: rgba(255, 71, 221, 0.14);
}

.open-module {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 22px;
}

.request-strip {
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(26, 3, 9, 0.78);
}

.request-icon {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  color: var(--red-2);
  font-size: 28px;
}

.request-strip .solid-button { margin-left: auto; white-space: nowrap; }

.module-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: block;
  padding: 0;
}

.cancel-confirm {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}

.cancel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 0, 1, 0.72);
  backdrop-filter: blur(12px);
}

.cancel-card {
  position: relative;
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--line-hot);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 31, 82, 0.22), transparent 14rem),
    linear-gradient(145deg, rgba(30, 4, 10, 0.98), rgba(5, 0, 2, 0.98));
  box-shadow: var(--shadow);
}

.cancel-card h2 {
  margin: 10px 0;
  font-size: 32px;
}

.cancel-card p {
  color: var(--muted);
  line-height: 1.55;
}

.cancel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.ghost-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 950;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 31, 82, 0.26), transparent 32rem),
    rgba(2, 0, 1, 0.88);
  backdrop-filter: blur(10px);
}

.module-dialog {
  position: relative;
  width: 100%;
  min-height: 100vh;
  max-height: 100vh;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(rgba(255, 41, 84, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 41, 84, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 82% 0%, rgba(255, 31, 82, 0.22), transparent 26rem),
    linear-gradient(160deg, rgba(18, 1, 6, 0.98), rgba(5, 0, 2, 0.98));
  background-size: 64px 64px, 64px 64px, auto, auto;
  box-shadow: none;
}

.modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 38px;
  height: 38px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
}

.detail-hero,
.prompt-panel {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: 84px 0 56px;
}
.detail-hero { text-align: center; }

.detail-hero h2,
.prompt-panel h2 {
  margin: 10px 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
}

.dashboard-back {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  font-weight: 950;
}

.dashboard-back::before {
  content: "←";
}

.solid-button.wide {
  width: 100%;
  max-width: 520px;
  margin-top: 22px;
}

.loader {
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  border: 4px solid rgba(255, 31, 82, 0.16);
  border-top-color: var(--red-2);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 31, 82, 0.22);
  animation: spin 0.8s linear infinite;
}

.context-line {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.search-input,
.answer-row input {
  width: 100%;
  min-height: 62px;
  border: 1px solid rgba(255, 52, 92, 0.58);
  border-radius: 12px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.46);
  outline: none;
  font-size: 16px;
}

.search-input:focus,
.answer-row input:focus {
  border-color: var(--line-hot);
  box-shadow: 0 0 0 3px rgba(255, 31, 82, 0.13);
}

.choices {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.choice-button {
  width: 100%;
  height: auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 31, 82, 0.045));
}

.choice-copy { min-width: 0; display: block; }
.choice-button b,
.choice-button small { display: block; }
.choice-button small { margin-top: 4px; color: var(--dim); }
.choice-thumb {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #080103;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}
.choice-thumb img { width: 84%; height: 84%; object-fit: contain; }
.answer-row { gap: 10px; margin-top: 16px; }

.name-answer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.name-answer label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.name-answer input {
  width: 100%;
  min-height: 62px;
  border: 1px solid rgba(255, 52, 92, 0.58);
  border-radius: 12px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.46);
  outline: none;
  font-size: 16px;
}

.name-answer input:focus {
  border-color: var(--line-hot);
  box-shadow: 0 0 0 3px rgba(255, 31, 82, 0.13);
}

.name-answer .solid-button {
  grid-column: 1 / -1;
}

.pager {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.pager span {
  color: var(--dim);
  font-size: 13px;
  font-weight: 950;
}

.result-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.result-field {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.result-field span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.result-field code {
  flex: 1;
  color: #fff;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-field button {
  min-height: 34px;
  padding: 0 12px;
}

.result-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.result-images img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050002;
}

.skeleton-card {
  min-height: 300px;
  background: linear-gradient(100deg, rgba(255, 31, 82, 0.08), rgba(255, 255, 255, 0.05), rgba(255, 31, 82, 0.08));
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}

.empty-card {
  grid-column: 1 / -1;
  min-height: 170px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 80;
  transform: translateX(-50%);
  max-width: min(520px, calc(100% - 24px));
  padding: 13px 16px;
  border: 1px solid var(--line-hot);
  border-radius: 8px;
  color: var(--text);
  background: rgba(9, 0, 3, 0.96);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.modal-open { overflow: hidden; }
[hidden] { display: none !important; }

@keyframes shimmer {
  from { background-position: 220% 0; }
  to { background-position: -220% 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 940px) {
  .modules-page { width: min(100% - 22px, 680px); }
  .topbar { grid-template-columns: auto 1fr auto; min-height: 68px; }
  .brand span:last-child { display: none; }
  .nav-links { justify-content: center; }
  .hero { min-height: 350px; padding-top: 58px; }
  .hero-ring { width: 680px; height: 200px; top: 76px; }
  .modules-head,
  .login-gate,
  .request-strip,
  .answer-row {
    align-items: stretch;
    flex-direction: column;
  }
  .filter-pills { justify-content: flex-start; }
  .module-grid { grid-template-columns: 1fr; }
  .request-strip .solid-button { margin-left: 0; }
}

@media (max-width: 560px) {
  .modules-page { width: min(100% - 16px, 440px); }
  .topbar { min-height: 62px; }
  .brand-mark { width: 40px; height: 40px; }
  .nav-links a,
  .login-pill {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
  .hero h1 { font-size: clamp(46px, 17vw, 68px); }
  .hero-copy { font-size: 15px; }
  .hero-pills span { width: 100%; }
  .module-card { min-height: 290px; padding: 22px; }
  .module-card h3 { font-size: 25px; }
  .detail-hero,
  .prompt-panel { padding: 6px 18px 24px; }
  .cancel-actions { grid-template-columns: 1fr; }
  .name-answer { grid-template-columns: 1fr; }
}

/* Focused live-gen dashboard */
body {
  background: #070709;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 45, 84, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 84, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

body::after { display: none; }

.modules-page { width: min(1120px, calc(100% - 36px)); }

.topbar {
  min-height: 68px;
  border-bottom-color: rgba(255, 255, 255, 0.09);
  background: rgba(7, 7, 9, 0.9);
}

.brand-mark,
.module-logo,
.request-icon {
  border-color: rgba(255, 52, 91, 0.46);
  background: #101014;
  box-shadow: none;
}

.nav-links a.active {
  border-color: rgba(255, 255, 255, 0.11);
  background: #111116;
  box-shadow: none;
}

.hero {
  min-height: 0;
  place-items: start;
  padding: 58px 0 36px;
  text-align: left;
  overflow: visible;
}

.hero-ring { display: none; }

.hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(48px, 8vw, 82px);
  line-height: 0.96;
  text-shadow: none;
}

.hero-copy {
  max-width: 620px;
  margin: 0;
  color: #bcbcc5;
  font-size: 17px;
}

.hero-pills {
  justify-content: flex-start;
  margin-top: 20px;
}

.hero-pills span {
  min-width: 0;
  border-color: rgba(255, 255, 255, 0.1);
  background: #0e0e12;
}

.modules-head {
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modules-head h2 { font-size: 30px; }

.filter-pills button {
  border-color: rgba(255, 255, 255, 0.1);
  background: #0e0e12;
}

.filter-pills button.active,
.solid-button,
.open-module {
  background: #f32650;
  box-shadow: none;
}

.module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  min-height: 300px;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.1);
  background: #0d0d11;
  box-shadow: none;
}

.module-card::after { display: none; }
.module-card:hover { border-color: rgba(255, 45, 84, 0.7); }
.module-card h3 { margin-top: 20px; font-size: 25px; }
.module-card p { min-height: 48px; color: #b9b9c2; }

.module-logo { width: 72px; height: 72px; border-radius: 10px; }
.module-logo.popeyes { background: #15100c; box-shadow: none; }
.live-badge { top: 20px; right: 20px; min-height: 30px; }

.module-dialog {
  background:
    linear-gradient(rgba(255, 45, 84, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 84, 0.055) 1px, transparent 1px),
    #08080b;
  background-size: 56px 56px;
}

.detail-hero,
.prompt-panel { width: min(760px, calc(100% - 32px)); }

.detail-hero h2,
.prompt-panel h2 { font-size: clamp(32px, 5vw, 52px); }

.choice-button {
  border-color: rgba(255, 255, 255, 0.1);
  background: #101015;
}

.choice-button:hover { border-color: rgba(255, 45, 84, 0.65); background: #151116; }

.search-input,
.answer-row input,
.name-answer input { background: #0d0d12; }

.signin-page { width: min(560px, calc(100% - 28px)); }
.signin-card {
  padding: 36px;
  border-color: rgba(255, 255, 255, 0.12);
  background: #0d0d11;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.5);
}
.signin-card::before { display: none; }
.signin-card h1 { margin: 10px 0 12px; font-size: clamp(36px, 8vw, 54px); line-height: 1; }

@media (max-width: 760px) {
  .modules-page { width: min(100% - 20px, 560px); }
  .topbar { grid-template-columns: auto 1fr auto; }
  .nav-links a { padding: 0 12px; }
  .profile-pill b { max-width: 84px; }
  .profile-pill small { display: none; }
  .hero { padding: 40px 2px 28px; }
  .hero h1 { font-size: 52px; }
  .hero-pills { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hero-pills span { width: 100%; min-width: 0; }
  .modules-head { align-items: stretch; flex-direction: column; }
  .filter-pills { display: grid; grid-template-columns: 1fr 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 280px; }
  .detail-hero,
  .prompt-panel { padding: 70px 0 28px; }
}

@media (max-width: 520px) {
  .signin-card { padding: 26px 20px; }
  .signin-actions { grid-template-columns: 1fr; }
  .signin-actions .quiet-link { width: 100%; }
  .nav-links { display: none; }
  .topbar { grid-template-columns: auto 1fr; }
  .profile-pill { justify-self: end; }
  .hero-pills { grid-template-columns: 1fr; }
  .filter-pills { grid-template-columns: 1fr 1fr; }
  .module-tags span { font-size: 11px; }
  .result-field { align-items: stretch; flex-direction: column; }
  .result-field button { width: 100%; }
}
