/* ---- brand header — layout from longevity-shared/css/brand.css ---- */
.brand { justify-content: space-between; }
.brand-icon {
  background: linear-gradient(135deg, var(--purple), var(--purple-d));
  box-shadow: 0 0 20px -4px var(--glow-purple), 0 0 50px -10px var(--glow-purple-soft);
  color: #fff;
  border: none;
}
.lvlpill {
  font-size: 12.5px;
  color: var(--ink-soft);
  border: 1px solid var(--card-line);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  white-space: nowrap;
}
.lvlpill b { color: var(--amber); font-weight: 600; }

/* ---- card — cardless neon minimal ---- */
.card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 28px 0;
  box-shadow: none;
  backdrop-filter: none;
}
.card + .card {
  margin-top: 0;
  border-top: 1px solid rgba(168,85,247,0.12);
}
.label {
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--purple); font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
  opacity: .7;
}
.label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(168,85,247,.3), transparent); }

/* ---- hero ---- */
.hero { text-align: center; padding: 48px 22px 40px; position: relative; overflow: visible; }
.hero .ring { display: none; }
.streaknum {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(96px,26vw,160px);
  line-height: .85;
  color: var(--purple);
  text-shadow:
    0 0 20px var(--glow-purple),
    0 0 60px var(--glow-purple-soft),
    0 0 120px rgba(168,85,247,0.15);
  position: relative;
  letter-spacing: -.04em;
}
.streaklab { font-size: 11px; color: var(--purple); margin-top: 12px; letter-spacing: .28em; text-transform: uppercase; font-weight: 700; position: relative; opacity: .7; }
.herosub { font-size: 13px; color: var(--ink-faint); margin-top: 20px; position: relative; }
.xpbar {
  height: 2px;
  border-radius: 99px;
  background: rgba(168,85,247,0.15);
  margin: 24px auto 10px;
  max-width: 280px;
  overflow: visible;
  position: relative;
}
.xpfill {
  height: 100%;
  border-radius: 99px;
  background: var(--purple);
  box-shadow: 0 0 12px var(--glow-purple), 0 0 24px var(--glow-purple-soft);
  transition: width .8s cubic-bezier(.2,.7,.2,1);
}
.xpmeta { font-size: 12px; color: var(--ink-faint); position: relative; }
.xpmeta b { color: var(--ink-soft); }

/* ---- danger zone panel ---- */
.zone { border-top-color: rgba(168,85,247,0.12); }
.zone.hot { border-top-color: rgba(251,191,36,0.3); }
.zone h2 { font-family: 'DM Sans', system-ui, sans-serif; font-weight: 600; font-size: 21px; margin-bottom: 6px; line-height: 1.25; }
.zone p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.rituals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ritchip { font-size: 13px; padding: 8px 13px; border-radius: 11px; border: 1px solid var(--card-line); background: rgba(255,255,255,.03); color: var(--ink-soft); }
.zonebtns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ---- buttons — mapped to shared button system (longevity-shared/css/buttons.css) ---- */
/* .btn base comes from shared; these extend/remap for dry-evenings contexts */
.btn { flex: 1 1 auto; min-width: 130px; }
.btn-primary  { /* use base .btn styles — purple ghost */ }
.btn-ghost    { border-color: rgba(255,255,255,0.12); color: var(--ink-faint); }
.btn-ghost:hover { border-color: rgba(168,85,247,0.35); color: var(--ink); box-shadow: none; }
.btn-amber    { border-color: rgba(251,191,36,0.4); color: var(--amber); box-shadow: 0 0 20px -8px var(--glow-amber); }
.btn-amber:hover { border-color: var(--amber); background: rgba(251,191,36,0.1); color: #fff; box-shadow: 0 0 30px -6px var(--glow-amber); }
.btn.done     { border-color: rgba(52,211,153,0.35); color: var(--teal); box-shadow: 0 0 16px -8px var(--glow-teal); }
.btn.done:hover { border-color: var(--teal); background: rgba(52,211,153,0.1); color: #fff; }

/* ---- why card ---- */
.why { position: relative; }
.why .quote { font-family: 'DM Sans', system-ui, sans-serif; font-style: italic; font-size: 18px; line-height: 1.5; color: var(--ink); }
.why .quote::before { content: "\201C"; color: var(--amber); font-size: 30px; line-height: 0; vertical-align: -8px; margin-right: 2px; }
.editlink { position: absolute; top: 20px; right: 20px; font-size: 12px; color: var(--ink-faint); background: none; border: none; cursor: pointer; }
.editlink:hover { color: var(--ink-soft); }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; }
@media(min-width:560px) { .stats { grid-template-columns: repeat(4,1fr); } }
.stat { background: transparent; border: none; padding: 20px 0; text-align: left; }
.stat .num { font-family: 'DM Sans', system-ui, sans-serif; font-weight: 800; font-size: 32px; color: var(--purple); line-height: 1;
  text-shadow: 0 0 20px var(--glow-purple-soft); }
.stat .num.s { color: var(--teal); text-shadow: 0 0 20px rgba(52,211,153,0.4); }
.stat .num.a { color: var(--amber); text-shadow: 0 0 20px rgba(251,191,36,0.4); }
.stat .cap { font-size: 10px; color: var(--ink-faint); margin-top: 6px; line-height: 1.3; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }

/* ---- achievements ---- */
.ach { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media(min-width:520px) { .ach { grid-template-columns: repeat(4,1fr); } }
.badge { border: none; background: transparent; border-radius: 0; padding: 12px 0; text-align: center; transition: .3s; position: relative; opacity: .2; }
.badge.on { opacity: 1; }
.badge.on .ico { color: var(--purple); filter: drop-shadow(0 0 8px var(--glow-purple)); }
.badge .ico { font-size: 23px; }
.badge .t { font-size: 12px; font-weight: 600; margin-top: 8px; color: var(--ink); }
.badge .d { font-size: 10.5px; color: var(--ink-faint); margin-top: 3px; line-height: 1.3; }
.badge.on .chk { position: absolute; top: 8px; right: 9px; color: var(--teal); font-size: 12px; }

/* ---- log ---- */
.logrow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13.5px; }
.logrow:last-child { border-bottom: none; }
.logrow .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.logrow .txt { color: var(--ink-soft); flex: 1; }
.logrow .when { color: var(--ink-faint); font-size: 12px; }
.empty { font-size: 13.5px; color: var(--ink-faint); font-style: italic; }

/* ---- footer ---- */
.footer { text-align: center; margin-top: 28px; }
.footer button { background: none; border: none; color: rgba(255,255,255,.3); font-size: 12px; cursor: pointer; font-family: inherit; letter-spacing: .04em; transition: color .2s; }
.footer button:hover { color: var(--rose); }
.slipline { text-align: center; margin-top: 20px; }
.slipline button { background: none; border: none; color: rgba(255,255,255,.35); font-size: 12.5px; cursor: pointer; font-family: inherit; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.slipline button:hover { color: var(--ink-soft); }
