:root {
  --bg: #0b1220;
  --panel: #121a2b;
  --line: rgba(239, 68, 68, 0.22);
  --line2: rgba(59, 130, 246, 0.25);
  --text: #f8fafc;
  --muted: #94a3b8;
  --faint: #64748b;
  --red: #ef4444;
  --blue: #3b82f6;
  --white: #f1f5f9;
  --cash: #00d632;
  --radius: 14px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Bebas Neue", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 60% 40% at 90% -10%, rgba(239, 68, 68, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 20%, rgba(59, 130, 246, 0.14), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 64px;
}
a { color: inherit; }
button, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 1.1rem;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 0.65rem; text-decoration: none; min-width: 0;
}
.brand img {
  width: 44px; height: 44px; border-radius: 12px; object-fit: cover;
  border: 1px solid var(--line2); flex-shrink: 0;
}
.brand strong { display: block; font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.04em; line-height: 1; }
.brand span { display: block; font-size: 0.72rem; color: var(--faint); }
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem; align-items: center; font-size: 0.9rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.pill {
  padding: 0.35rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
}
.pill.x { color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.35); }
.pill.cash { color: var(--cash); border: 1px solid rgba(0, 214, 50, 0.35); }
.burger {
  display: none; border: 1px solid var(--line); background: var(--panel);
  border-radius: 8px; padding: 0.35rem 0.55rem; cursor: pointer;
}

main { width: min(var(--max), calc(100% - 1.5rem)); margin: 0 auto; }

.hero {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 1.5rem; align-items: center;
  padding: 2.5rem 0 1.5rem;
}
.badge {
  display: inline-block; margin: 0 0 0.75rem; padding: 0.35rem 0.7rem;
  border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  color: #86efac; background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3);
}
.hero h1 {
  margin: 0 0 0.85rem; font-family: var(--display); font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 0.95; letter-spacing: 0.02em;
}
.lead { margin: 0 0 1.2rem; color: var(--muted); font-size: 1.05rem; max-width: 36rem; }
.lead strong { color: #fca5a5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1rem; }
.checks { margin: 0; padding: 0; list-style: none; color: var(--faint); font-size: 0.92rem; }
.checks li { margin: 0.25rem 0; }
.checks li::before { content: "★ "; color: var(--red); }
.hero-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  padding: 1.1rem; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.hero-logo { width: 140px; height: 140px; margin: 0 auto 0.85rem; border-radius: 20px; object-fit: cover; border: 1px solid var(--line2); }
#statsLine { margin: 0; font-family: var(--mono); font-size: 0.78rem; color: var(--faint); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0.75rem 1.15rem; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; font-weight: 700; background: transparent;
}
.btn.primary {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff; box-shadow: 0 10px 28px rgba(239, 68, 68, 0.3);
}
.btn.ghost { border-color: var(--line2); color: var(--text); }
.btn.cash { border-color: rgba(0,214,50,0.4); color: var(--cash); }
.btn.slim { padding: 0.4rem 0.75rem; font-size: 0.8rem; border-color: var(--line); }
.btn.wide { width: 100%; padding: 1rem; margin: 0.4rem 0 0.9rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.link { border: 0; background: none; color: #93c5fd; cursor: pointer; padding: 0; font-size: 0.88rem; }

.section { padding: 2.25rem 0 1rem; }
.sec-head { margin-bottom: 1rem; }
.eyebrow { margin: 0; color: var(--red); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.sec-head h2 { margin: 0.3rem 0 0; font-family: var(--display); font-size: 2rem; letter-spacing: 0.03em; }
.sec-sub { margin: 0.4rem 0 0; color: var(--muted); max-width: 36rem; font-size: 0.95rem; }

.mode-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  margin-bottom: 0.9rem; background: var(--panel);
}
.mode-btn {
  border: 0; background: transparent; color: var(--muted); padding: 0.55rem 1.15rem;
  cursor: pointer; font-weight: 700; font-size: 0.9rem;
}
.mode-btn.on { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }

.simple-panel { margin-bottom: 0.5rem; }
.tip-line {
  margin: 0 0 0.85rem; padding: 0.7rem 0.85rem; border-radius: 10px;
  background: rgba(59, 130, 246, 0.1); border: 1px solid var(--line2);
  color: var(--muted); font-size: 0.9rem;
}
.tip-line strong { color: var(--text); }
.simple-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; margin-bottom: 0.65rem;
}
.simple-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 0.8rem;
  background: rgba(11, 18, 32, 0.65); min-width: 0; transition: opacity 0.15s, border-color 0.15s;
}
.simple-card.off { opacity: 0.45; border-style: dashed; }
.simple-card.off .dim-select,
.simple-card.off .joke-box { pointer-events: none; }
.simple-card-top {
  display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.45rem;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); font-weight: 700;
}
.toggle {
  border: 1px solid var(--line); border-radius: 999px; min-width: 3.2rem;
  padding: 0.25rem 0.55rem; font-size: 0.72rem; font-weight: 800; cursor: pointer;
  background: rgba(100, 116, 139, 0.25); color: var(--muted); text-transform: uppercase;
}
.simple-card.on .toggle {
  background: rgba(34, 197, 94, 0.2); border-color: rgba(34, 197, 94, 0.45); color: #86efac;
}
.simple-card.off .toggle {
  background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5;
}
.dim-select {
  display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.55rem 0.6rem; color: var(--text); font-size: 0.9rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dim-help { margin: 0.4rem 0 0; font-size: 0.78rem; color: var(--faint); }
.joke-card { margin-bottom: 0.25rem; }
.joke-box {
  width: 100%; max-width: 100%; box-sizing: border-box; resize: vertical;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.65rem 0.75rem; color: var(--text); font-size: 0.95rem; font-family: var(--font);
  min-height: 3.2rem;
}
.joke-box:focus, .dim-select:focus { outline: 1px solid var(--blue); border-color: var(--blue); }
.hint-count { font-size: 0.85rem; color: var(--muted); }
.pro-panel { margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px dashed var(--line); }
.toolbar.essentials { margin-bottom: 0.85rem; }

@media (max-width: 700px) {
  .simple-grid { grid-template-columns: 1fr; }
}

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.85rem; }
.chips button {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  border-radius: 999px; padding: 0.4rem 0.8rem; cursor: pointer; font-size: 0.85rem;
}
.chips button:hover, .chips button.on {
  border-color: var(--red); color: var(--text); background: rgba(239, 68, 68, 0.12);
}

.card.lab {
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18, 26, 43, 0.9);
  padding: 1rem; overflow: hidden; max-width: 100%;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}
.watermark-row {
  margin-bottom: 0.9rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
}
.wm {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.wm input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  color: var(--text);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
}
.wm input:focus {
  outline: 1px solid var(--blue);
  border-color: var(--blue);
}
.wm-hint {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.toolbar {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 0.9rem;
}
.gen-pick {
  display: flex; flex-direction: column; gap: 0.3rem; min-width: min(100%, 280px); flex: 1;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint);
}
.gen-pick select, .toolbar select {
  background: var(--bg); border: 1px solid var(--line2); border-radius: 10px;
  padding: 0.55rem 0.65rem; color: var(--text); text-transform: none; letter-spacing: 0; font-size: 0.92rem;
  width: 100%; max-width: 100%;
}
.toolbar > label:not(.gen-pick):not(.chk) {
  display: flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: var(--faint); text-transform: uppercase;
}
.chk { display: flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.chk input { accent-color: var(--red); }

/* locks stay inside box */
.locks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.55rem;
}
.locks label {
  display: flex; flex-direction: column; gap: 0.28rem;
  min-width: 0; max-width: 100%; overflow: hidden;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint);
}
.locks select {
  display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  background: #0b1220; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.5rem 1.45rem 0.5rem 0.5rem; color: var(--text);
  font-size: 0.78rem; text-transform: none; letter-spacing: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  appearance: none; -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #ef4444 50%),
    linear-gradient(135deg, #ef4444 50%, transparent 50%);
  background-position: calc(100% - 12px) calc(50% - 2px), calc(100% - 7px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.locks select:focus { outline: 1px solid var(--blue); border-color: var(--blue); }
.meta-row {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 0.45rem;
}
#sys { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); }

.results-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.results-bar h3 { margin: 0; font-family: var(--display); font-size: 1.4rem; letter-spacing: 0.03em; }
.row-btns { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.prompt {
  border: 1px solid var(--line); border-radius: 12px; background: rgba(11, 18, 32, 0.8);
  padding: 0.85rem 0.95rem; margin-bottom: 0.55rem;
}
.prompt header {
  display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap;
  font-size: 0.72rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem;
}
.prompt pre {
  margin: 0 0 0.6rem; white-space: pre-wrap; word-break: break-word;
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.55; cursor: pointer;
}
.prompt .acts { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.prompt .acts button {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 0.28rem 0.65rem; font-size: 0.75rem; cursor: pointer;
}
.prompt .acts button:hover { border-color: var(--red); color: var(--text); }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 0.85rem; }
.mini {
  border: 1px solid var(--line); border-radius: 12px; background: rgba(11, 18, 32, 0.55); padding: 0.75rem 0.85rem;
}
.mini-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.mini h3 { margin: 0; font-size: 0.95rem; }
.mini ul { list-style: none; margin: 0; padding: 0; max-height: 180px; overflow: auto; }
.mini li {
  padding: 0.45rem 0; border-bottom: 1px solid rgba(239, 68, 68, 0.08);
  font-size: 0.78rem; color: var(--muted); cursor: pointer;
}
.mini li.empty { cursor: default; color: var(--faint); border: 0; }

.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.safety-grid article {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: var(--panel);
}
.safety-grid h3 { margin: 0 0 0.4rem; font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.03em; }
.safety-grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.support-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.foot {
  width: min(var(--max), calc(100% - 1.5rem)); margin: 2rem auto 1rem;
  padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.foot-brand { margin-bottom: 0.5rem; }
.foot p { margin: 0; color: var(--faint); font-size: 0.8rem; }

.dock {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  justify-content: space-around; padding: 0.5rem;
  background: rgba(11, 18, 32, 0.95); border-top: 1px solid var(--line);
}
.dock a {
  text-decoration: none; color: var(--muted); font-weight: 700; font-size: 0.8rem;
  padding: 0.4rem 0.65rem; border-radius: 999px;
}
.dock a.cash { color: var(--cash); border: 1px solid rgba(0,214,50,0.35); }

@media (max-width: 900px) {
  .hero, .cols, .safety-grid { grid-template-columns: 1fr; }
  .locks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: rgba(11, 18, 32, 0.98); border-bottom: 1px solid var(--line); padding: 0.4rem 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 1.1rem; }
  .locks { grid-template-columns: minmax(0, 1fr); }
  .dock { display: flex; }
}
