/* =============================================================
   HARDCORE RECOVERY — VISUAL SYSTEM
   Matched to /design ref: black steel, blood red, grunge type.
   ============================================================= */

:root {
  --bg: #0c0b0b;
  --card: #161514;
  --card-2: #1d1b1a;
  --line: #2a2726;
  --ink: #f0ece7;
  --dim: #9b948d;
  --hot: #e2402c;          /* blood red */
  --hot-2: #ff6a3d;        /* ember orange */
  --good: #5bd267;
  --warn: #ffb648;
  --radius: 14px;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  /* procedural grunge noise, used as mask + overlay */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

/* ambient vignette + ember glow, like the ref splash screens */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 55% at 50% -10%, rgba(226, 64, 44, 0.10), transparent 60%),
    radial-gradient(90% 40% at 50% 110%, rgba(226, 64, 44, 0.06), transparent 60%);
}

/* film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image: var(--noise);
  opacity: 0.05;
  mix-blend-mode: overlay;
}

#onboarding, #app { position: relative; z-index: 1; }

/* ---------- type ---------- */
.grunge {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  -webkit-mask-image: var(--noise), linear-gradient(#000, #000);
  -webkit-mask-composite: source-in;
  mask-image: var(--noise), linear-gradient(#000, #000);
  mask-composite: intersect;
  -webkit-mask-size: 260px, 100%;
  mask-size: 260px, 100%;
}

.hot { color: var(--hot); }
.dim { color: var(--dim); font-weight: 400; }

.screen-kicker {
  font-family: var(--font-cond);
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--dim);
  font-size: 13px;
  margin-bottom: 4px;
}

.screen-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 52px);
  line-height: 0.98;
  text-transform: uppercase;
  margin: 2px 0 10px;
  position: relative;
}
.screen-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--hot), transparent);
}

.screen-sub {
  color: var(--dim);
  font-size: 15px;
  margin-bottom: 18px;
  max-width: 46ch;
}

/* ---------- brand ---------- */
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-hard {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.brand-recovery {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--hot);
  margin-top: 3px;
}
.brand-stack { align-items: center; text-align: center; margin-bottom: 26px; }
.brand-stack .brand-hard { font-size: 34px; }
.brand-stack .brand-recovery { font-size: 13px; }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.card-kicker {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--dim);
  margin-bottom: 10px;
}
.card-kicker.hot { color: var(--hot); }

/* ---------- buttons ---------- */
.btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-cond);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 17px;
  padding: 15px 18px;
  color: var(--ink);
  text-transform: uppercase;
  transition: transform 0.06s ease, filter 0.15s ease;
}
.btn:active { transform: scale(0.985); }

.btn-hot {
  background: linear-gradient(180deg, #f04a30, #b52a1a);
  box-shadow: 0 6px 24px rgba(226, 64, 44, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.btn-hot:hover { filter: brightness(1.08); }

/* distressed texture on red CTAs, like the ref mockups */
.grunge-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  background-size: 220px;
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.btn-big { padding: 17px 18px; font-size: 18px; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--dim);
}
.btn-ghost:hover { border-color: var(--dim); color: var(--ink); }

/* ---------- forms ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--dim);
}

input[type="text"], input[type="date"], textarea {
  background: #121110;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: normal;
  padding: 13px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
}
input:focus, textarea:focus { border-color: var(--hot); }
textarea { resize: vertical; }
::placeholder { color: #5c564f; }

input[type="date"] { color-scheme: dark; }

/* craving slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--good), var(--warn), var(--hot));
  outline: none;
  margin: 10px 0 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--hot);
  box-shadow: 0 0 12px rgba(226, 64, 44, 0.5);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); border: 4px solid var(--hot); cursor: pointer;
}

.big-val { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.02em; }

.form-error {
  color: var(--hot-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: normal;
  min-height: 1.2em;
}
.shake { animation: shake 0.35s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.fine-print { color: #6f6962; font-size: 13px; margin-top: 14px; max-width: 48ch; }

.legal {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #6f6962;
  font-size: 12.5px;
  line-height: 1.6;
}
.legal strong { color: var(--dim); }

/* ---------- onboarding ---------- */
#onboarding {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(12, 11, 11, 0.35), rgba(12, 11, 11, 0.82) 46%, var(--bg) 68%),
    url("../assets/bg-onboarding.jpg") top center / min(100%, 720px) auto no-repeat,
    var(--bg);
}
.badge-img {
  width: min(72vw, 300px);
  height: auto;
  filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.8));
}
.ob-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 22px 60px;
  animation: rise 0.7s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.ob-title {
  font-size: clamp(44px, 12vw, 72px);
  line-height: 0.99;
  text-align: center;
  margin-bottom: 18px;
}
.ob-sub {
  color: var(--dim);
  text-align: center;
  max-width: 42ch;
  margin: 0 auto 28px;
}

.contract-box { margin-bottom: 26px; }
.contract-box ol { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contract-box li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: #cfc9c2;
  border-left: 2px solid var(--hot);
  padding-left: 12px;
}
.c-num {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--hot);
  font-size: 13px;
  padding-top: 2px;
}

/* ---------- app shell ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(12, 11, 11, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr-right {
  font-family: var(--font-cond);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 14px;
  color: var(--dim);
}
.hdr-right .flame { color: var(--hot); }
#hdr-score { color: var(--ink); font-size: 16px; }
.sound-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  padding: 4px 8px;
  margin-left: 10px;
  cursor: pointer;
  vertical-align: middle;
}
.sound-btn:hover { border-color: var(--hot); }

.clk-days-wrap, .quote-banner { cursor: pointer; }

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 18px 110px;
}

.screen { animation: rise 0.4s ease both; }

/* ---------- dashboard ---------- */
.day-greeting { margin-bottom: 16px; }
.day-num { font-family: var(--font-body); font-weight: 700; font-size: 30px; }
.day-sub { color: var(--dim); font-size: 14.5px; }

.streak-card {
  text-align: left;
  background:
    linear-gradient(90deg, rgba(18, 16, 15, 0.96) 38%, rgba(18, 16, 15, 0.6) 70%, rgba(18, 16, 15, 0.35)),
    url("../assets/bg-streak.jpg") right -30px center / cover no-repeat,
    linear-gradient(180deg, var(--card-2), var(--card));
  margin-bottom: 14px;
}
.clk-days-wrap { display: flex; align-items: baseline; gap: 14px; }
.clk-days {
  font-family: var(--font-display);
  font-size: clamp(84px, 24vw, 130px);
  line-height: 0.9;
  color: var(--ink);
}
.clk-days-label {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.05;
  color: var(--hot);
  text-transform: uppercase;
}
.clk-hms {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--hot-2);
  letter-spacing: 0.12em;
  margin-top: 8px;
}
.streak-note { color: #6f6962; font-size: 13px; margin-top: 10px; }

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}
.quick-card {
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, transform 0.06s ease;
}
.quick-card:hover { border-color: #4a443f; }
.quick-card:active { transform: scale(0.98); }
.q-title { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.03em; }
.q-sub { font-size: 13px; color: var(--dim); }
.q-sub .bad { color: var(--hot-2); font-weight: 600; }
.q-sub .good { color: var(--good); font-weight: 600; }
.q-fell { border-color: rgba(226, 64, 44, 0.45); background:
  radial-gradient(120% 120% at 90% 0%, rgba(226, 64, 44, 0.16), transparent 60%),
  linear-gradient(180deg, var(--card-2), var(--card));
}
.q-fell .q-title { color: var(--hot); }

.quote-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(226, 64, 44, 0.10), transparent 55%),
    linear-gradient(180deg, var(--card-2), var(--card));
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 0.7;
  color: var(--hot);
}
.quote-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
}

/* ---------- check-in ---------- */
.history-strip {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.day-cell {
  flex: 1;
  height: 12px;
  border-radius: 3px;
  background: #221f1d;
  border: 1px solid var(--line);
}
.day-cell.hit { background: var(--good); border-color: transparent; opacity: 0.85; }
.day-cell.fell { background: var(--hot); border-color: transparent; }

.verdict-box {
  border-left: 3px solid var(--hot);
  font-weight: 600;
  font-size: 17px;
}
.dash-verdict { margin-bottom: 14px; font-size: 15px; }

/* ---------- excuse destroyer ---------- */
.stamp {
  display: none;
  margin: 22px auto 8px;
  max-width: 92%;
  padding: 18px 20px;
  border: 3px solid var(--hot);
  border-radius: 8px;
  color: var(--hot);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(-2.5deg);
  -webkit-mask-image: var(--noise), linear-gradient(#000, #000);
  -webkit-mask-composite: source-in;
  mask-image: var(--noise), linear-gradient(#000, #000);
  mask-composite: intersect;
  -webkit-mask-size: 300px, 100%;
  mask-size: 300px, 100%;
}
.stamp.stamped {
  display: block;
  animation: stamp-in 0.35s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
@keyframes stamp-in {
  from { opacity: 0; transform: rotate(-2.5deg) scale(1.6); }
  to { opacity: 1; transform: rotate(-2.5deg) scale(1); }
}

.excuse-log { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.excuse-entry {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.excuse-text { color: var(--dim); font-style: italic; font-size: 14.5px; }
.excuse-verdict {
  margin-top: 8px;
  color: var(--hot-2);
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- training ---------- */
.track { margin-bottom: 26px; }
.track-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 10px;
  border-bottom: 2px solid var(--hot);
  margin-bottom: 12px;
}
.track-txt { display: flex; flex-direction: column; gap: 2px; }
.track-title {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.track-sub { font-size: 12.5px; color: var(--dim); }
.track-count {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--hot-2);
  border: 1px solid rgba(226, 64, 44, 0.45);
  border-radius: 7px;
  padding: 4px 9px;
  white-space: nowrap;
}
.track-count.full { color: var(--good); border-color: rgba(91, 210, 103, 0.5); }

.module {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.module summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}
.module summary::-webkit-details-marker { display: none; }
.mod-tag {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--hot);
  border: 1px solid rgba(226, 64, 44, 0.5);
  border-radius: 5px;
  padding: 3px 8px;
  white-space: nowrap;
}
.mod-title { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.03em; flex: 1; }
.mod-state {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.module.done .mod-state { color: var(--good); }
.module.done .mod-tag { color: var(--good); border-color: rgba(91, 210, 103, 0.5); }
.mod-body { padding: 0 16px 18px; }
.mod-body p { color: #cfc9c2; font-size: 15px; margin-bottom: 12px; }
.mod-assignment {
  border-left: 3px solid var(--hot);
  padding: 10px 12px;
  background: rgba(226, 64, 44, 0.06);
  border-radius: 0 8px 8px 0;
}

/* ---------- goals: past normal ---------- */
.goal-form { margin-bottom: 18px; }
.goal-item { margin-bottom: 12px; }
.goal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.goal-title { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.02em; }
.goal-del {
  background: none;
  border: none;
  color: #5c564f;
  font-size: 15px;
  cursor: pointer;
  padding: 2px 6px;
}
.goal-del:hover { color: var(--hot); }
.goal-bar {
  height: 10px;
  border-radius: 5px;
  background: #221f1d;
  border: 1px solid var(--line);
  margin: 12px 0;
  overflow: hidden;
}
.goal-fill {
  height: 100%;
  background: linear-gradient(90deg, #b52a1a, var(--hot-2));
  transition: width 0.4s ease;
}
.goal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.goal-count {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--dim);
}
.goal-count.good { color: var(--good); }
.goal-foot .btn { width: auto; padding: 10px 16px; font-size: 14px; }
.goal-conquered {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  opacity: 0.85;
  border-color: rgba(91, 210, 103, 0.35);
}

/* ---------- journal ---------- */
.journal-text { color: var(--ink); font-size: 14.5px; margin-top: 6px; white-space: pre-wrap; }
#journal-list { margin-top: 22px; }

/* ---------- toolkit / craving response ---------- */
.urge-wrap { text-align: center; margin: 8px 0 18px; }
.urge-ring {
  width: 230px;
  height: 230px;
  margin: 6px auto 18px;
  border-radius: 50%;
  padding: 9px;
  background: conic-gradient(var(--hot) 0%, #262220 0);
  box-shadow: 0 0 60px rgba(226, 64, 44, 0.18);
  transition: background 0.5s linear;
}
.urge-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(100% 100% at 50% 30%, #1b1917, #0f0e0d);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.urge-label {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--hot-2);
}
.urge-label.dim { color: var(--dim); }
.urge-time {
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1;
  color: var(--ink);
}
.tool-msg { color: var(--good); font-weight: 600; margin-top: 12px; min-height: 1.4em; }
.tool-sub { color: var(--dim); font-size: 14px; margin-bottom: 14px; }

.crisis-card { margin-bottom: 14px; }
.crisis-line {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(226, 64, 44, 0.14), rgba(226, 64, 44, 0.07));
  border: 1px solid rgba(226, 64, 44, 0.45);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-cond);
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: filter 0.15s ease;
}
.crisis-line:hover { filter: brightness(1.15); }
.c-ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--hot);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.c-body { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.c-body span { color: var(--hot-2); font-size: 19px; letter-spacing: 0.06em; }
.c-go { color: var(--hot); font-size: 26px; }

.fist-card { display: flex; align-items: center; gap: 14px; }
.fist { font-size: 30px; }
.fist-card p { font-size: 15.5px; }

/* ---------- modal ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 4, 4, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  padding: 26px 20px 32px;
  animation: slide-up 0.3s ease both;
}
#ownit-modal .modal-card {
  background:
    linear-gradient(180deg, rgba(12, 11, 11, 0.68), rgba(12, 11, 11, 0.94) 42%, var(--bg) 62%),
    url("../assets/bg-stairs.jpg") top center / 100% auto no-repeat,
    var(--bg);
}
@keyframes slide-up {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (min-width: 640px) {
  .modal { align-items: center; }
  .modal-card { border-radius: 20px; }
}

/* ---------- PRO / paywall ---------- */
.pro-list { list-style: none; margin: 0 0 20px; display: flex; flex-direction: column; gap: 9px; }
.pro-list li { color: #cfc9c2; font-size: 15.5px; }
.pro-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pro-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  text-align: center;
  padding: 22px 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.08s ease;
}
.pro-plan:hover { border-color: var(--hot); }
.pro-plan:active { transform: scale(0.98); }
.pp-best {
  border-color: rgba(226, 64, 44, 0.65);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(226, 64, 44, 0.18), transparent 65%),
    linear-gradient(180deg, var(--card-2), var(--card));
}
.pp-badge {
  position: absolute;
  top: -10px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #fff;
  background: linear-gradient(180deg, #f04a30, #b52a1a);
  border-radius: 6px;
  padding: 3px 10px;
}
.pp-price { font-family: var(--font-display); font-size: 38px; line-height: 1; }
.pp-per { font-family: var(--font-cond); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; color: var(--hot-2); }
.pp-note { font-size: 12px; color: var(--dim); }
#pro-restore, #pro-close { margin-top: 10px; }

.pro-locked {
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-color: rgba(226, 64, 44, 0.4);
  background:
    radial-gradient(120% 120% at 90% 0%, rgba(226, 64, 44, 0.12), transparent 60%),
    linear-gradient(180deg, var(--card-2), var(--card));
}
.pro-locked:hover { border-color: var(--hot); }

.module.locked { cursor: pointer; opacity: 0.6; }
.module.locked:hover { opacity: 0.85; border-color: rgba(226, 64, 44, 0.5); }
.mod-locked-row { display: flex; align-items: center; gap: 12px; padding: 16px; }
.mod-locked-row .mod-title { flex: 1; }
.mod-locked-row .mod-state { color: var(--hot-2); }

.announce-banner {
  margin-bottom: 14px;
  border-color: rgba(226, 64, 44, 0.5);
  background:
    radial-gradient(120% 140% at 10% 0%, rgba(226, 64, 44, 0.14), transparent 60%),
    linear-gradient(180deg, var(--card-2), var(--card));
}
.announce-body { color: #cfc9c2; font-size: 14.5px; margin: 6px 0 14px; white-space: pre-wrap; }
.announce-banner .btn { width: auto; padding: 9px 18px; font-size: 13px; }

.trial-banner {
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  border-color: rgba(255, 182, 72, 0.45);
  background:
    radial-gradient(120% 140% at 10% 0%, rgba(255, 182, 72, 0.12), transparent 60%),
    linear-gradient(180deg, var(--card-2), var(--card));
}

/* ---------- bottom nav ---------- */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: 2px;
  background: rgba(14, 13, 12, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
}
.nav-btn {
  flex: 1;
  max-width: 96px;
  background: none;
  border: none;
  cursor: pointer;
  color: #7a736c;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  border-radius: 10px;
  transition: color 0.15s ease;
}
.nav-ico { font-size: 18px; line-height: 1; }
.nav-btn.active { color: var(--hot); }
.nav-btn.active .nav-ico { text-shadow: 0 0 14px rgba(226, 64, 44, 0.6); }
.nav-btn:hover { color: var(--ink); }
.nav-emergency { color: #a8493c; }

/* ---------- arsenal / why / crew / breath / data ---------- */
.arsenal-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  border-color: rgba(226, 64, 44, 0.35);
  transition: border-color 0.15s ease;
}
.arsenal-card:hover { border-color: var(--hot); }

.money-line {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--good);
  margin-top: 8px;
}

.milestone-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  border-color: rgba(226, 64, 44, 0.55);
  background:
    radial-gradient(130% 140% at 10% 0%, rgba(226, 64, 44, 0.2), transparent 60%),
    linear-gradient(180deg, var(--card-2), var(--card));
  animation: rise 0.5s ease both;
}
.mb-days {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--hot);
  min-width: 64px;
  text-align: center;
}
.mb-txt { display: flex; flex-direction: column; gap: 3px; }
.mb-title {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.14em;
}
.mb-caption { color: var(--dim); font-size: 14px; }

.why-card { margin-bottom: 14px; border-left: 3px solid var(--hot); }
.why-text { font-size: 17px; font-weight: 600; font-style: italic; line-height: 1.5; }

.breath-card { margin-bottom: 14px; text-align: center; }
.breath-card .card-kicker, .breath-card .tool-sub { text-align: left; }
.breath-stage { display: grid; place-items: center; height: 190px; margin: 8px 0 14px; }
.breath-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(100% 100% at 50% 30%, rgba(226, 64, 44, 0.5), rgba(160, 34, 20, 0.85));
  box-shadow: 0 0 44px rgba(226, 64, 44, 0.35);
  transition: transform 600ms ease-in-out;
}
.breath-circle span {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #fff;
  max-width: 90px;
  line-height: 1.3;
}

.war-paint { margin-top: 14px; }
.war-paint .card-kicker { margin-bottom: 8px; }
.war-paint-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.data-card { margin-top: 14px; }
.data-row { display: flex; gap: 10px; }
.data-row .btn { flex: 1; font-size: 14px; padding: 11px; }

/* ---------- logo ---------- */
.logo { width: 34px; height: 34px; flex-shrink: 0; filter: drop-shadow(0 0 10px rgba(226, 64, 44, 0.35)); }
.logo-big { width: 58px; height: 65px; margin-bottom: 12px; }

.brand-row { flex-direction: row; align-items: center; gap: 10px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }

/* ---------- streak card CTA (VIEW PROGRESS) ---------- */
.streak-cta {
  display: block;
  width: calc(100% + 36px);
  margin: 16px -18px -18px;
  border: none;
  border-top: 1px solid rgba(226, 64, 44, 0.4);
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(180deg, rgba(226, 64, 44, 0.85), rgba(160, 34, 20, 0.9));
  color: #fff;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  padding: 13px;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.streak-cta:hover { filter: brightness(1.12); }

/* ---------- daily challenge ---------- */
.challenge-card { margin-top: 14px; }
.challenge-text { font-weight: 600; font-size: 17px; margin-bottom: 14px; }
.challenge-btn { font-size: 15px; padding: 12px; }
.challenge-btn.challenge-done {
  border-color: rgba(91, 210, 103, 0.5);
  color: var(--good);
  cursor: default;
}

/* ---------- progress ---------- */
.p-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.p-stat { padding: 14px 8px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.p-num { font-family: var(--font-display); font-size: 30px; color: var(--hot-2); line-height: 1; }
.p-label {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--dim);
  line-height: 1.25;
}

.chart-card { margin-bottom: 14px; }
.chart-card + .card { margin-bottom: 14px; }

.milestone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0.45;
}
.milestone:last-child { border-bottom: none; }
.milestone.hit, .milestone.next { opacity: 1; }
.ms-days {
  font-family: var(--font-display);
  font-size: 26px;
  min-width: 56px;
  text-align: center;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 4px;
}
.milestone.hit .ms-days { color: #fff; background: linear-gradient(180deg, #f04a30, #b52a1a); border-color: transparent; }
.milestone.next .ms-days { color: var(--hot); border-color: rgba(226, 64, 44, 0.6); }
.ms-caption { flex: 1; font-size: 14px; color: var(--dim); display: flex; flex-direction: column; }
.ms-caption strong {
  font-family: var(--font-cond);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.ms-state {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--dim);
}
.milestone.hit .ms-state { color: var(--good); font-size: 18px; }
.milestone.next .ms-state { color: var(--hot-2); }

.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.badge {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  opacity: 0.4;
}
.badge.earned {
  opacity: 1;
  border-color: rgba(226, 64, 44, 0.55);
  background: radial-gradient(120% 100% at 50% 0%, rgba(226, 64, 44, 0.14), transparent 70%);
}
.badge-shield { font-size: 20px; color: var(--hot); }
.badge-name {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.badge-desc { font-size: 9.5px; color: var(--dim); line-height: 1.3; }

@media (max-width: 420px) {
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .p-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- wider screens ---------- */
@media (min-width: 900px) {
  main { max-width: 640px; }
  .ob-wrap { max-width: 640px; }
}
