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

:root {
  --bg: #09090C;
  --s1: #111116;
  --s2: #18181F;
  --s3: #222230;
  --border: rgba(255, 255, 255, 0.06);
  --border2: rgba(255, 255, 255, 0.1);
  --text: #EEEAE0;
  --muted: rgba(238, 234, 224, 0.38);
  --muted2: rgba(238, 234, 224, 0.6);
  --accent: #C8FF00;
  --fd: 'Syne', sans-serif;
  --fb: 'DM Sans', sans-serif;
}

html,
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

/* grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: .5
}

.page {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  animation: fu .45s ease forwards
}

.page.active {
  display: flex
}

@keyframes fu {
  from {
    opacity: 0;
    transform: translateY(14px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(9, 9, 12, 0.95);
  backdrop-filter: blur(14px)
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px
}

.nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--s3);
  border: 1.5px solid var(--border2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: var(--fd);
  font-weight: 700;
  color: var(--accent);
  overflow: hidden
}

.btn-nav {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text);
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 100px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap
}

.btn-nav:hover {
  background: var(--s2)
}

.btn-nav.acc {
  background: var(--accent);
  color: #09090C;
  border-color: transparent;
  font-family: var(--fd);
  font-weight: 700
}

.btn-nav.acc:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(200, 255, 0, .2)
}

.streak-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--s2);
  border: 1px solid rgba(255, 166, 0, .2);
  padding: 5px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #FFA600
}

/* ── AUTH MODAL ── */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 12, .9);
  backdrop-filter: blur(12px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px
}

.modal-bg.open {
  display: flex
}

.modal {
  background: var(--s1);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 36px 28px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  animation: fu .3s ease
}

.modal-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px
}

.modal-logo-icon {
  width: 24px;
  height: 36px;
  position: relative
}

.mli-body {
  width: 24px;
  height: 34px;
  border: 2px solid var(--accent);
  border-radius: 5px;
  overflow: hidden;
  position: relative
}

.mli-tip {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 5px;
  background: var(--accent);
  border-radius: 2px 2px 0 0
}

.mli-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: var(--accent);
  border-radius: 3px
}

.modal-logo-words {
  text-align: left
}

.modal-logo-my {
  font-family: var(--fd);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted2)
}

.modal-logo-battery {
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1
}

.modal h2 {
  font-family: var(--fd);
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px
}

.modal p {
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.65;
  margin-bottom: 24px
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  padding: 14px;
  background: var(--s2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 10px
}

.btn-google:hover {
  background: var(--s3)
}

.btn-google svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  margin-top: 12px;
  text-decoration: underline;
  text-underline-offset: 3px
}

.modal-close:hover {
  color: var(--text)
}

/* ── LANDING ── */
#landing {
  padding-top: 60px;
  background: #0A0A0A;
  position: relative;
  z-index: 10
}

/* override grain with higher index or dark bg */
.land-wrap {
  max-width: 540px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10
}

@media (max-width: 768px) {
  #landing {
    touch-action: none;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--fd);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted2);
  letter-spacing: 0.08em;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.02)
}

.hb-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(200, 255, 0, 0.5)
}

.hero-batt-horiz {
  position: relative;
  width: 40px;
  height: 20px;
  margin-bottom: 28px
}

.hbh-body {
  width: 40px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  position: relative
}

.hbh-tip {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0 2px 2px 0
}

.hbh-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 30%;
  background: var(--accent);
  border-radius: 2px
}

.hero-title-massive {
  display: flex;
  flex-direction: column;
  font-family: var(--fd);
  font-weight: 702;
  font-size: clamp(50px, 12vw, 70px);
  line-height: 0.95;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 24px;
  text-transform: uppercase
}

.hero-title-massive .hl-green {
  color: var(--accent)
}

.land-sub {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted2);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto 40px
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #000;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 16px;
  padding: 18px 48px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 45px rgba(200, 255, 0, .15);
  width: 100%;
  max-width: 320px
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(200, 255, 0, .25)
}

.btn-cta:active {
  transform: scale(.97)
}

.land-stats {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%
}

.stat {
  text-align: center;
  padding: 0 24px;
  position: relative
}

.stat+.stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 26px;
  width: 1px;
  background: var(--border)
}

.stat-n {
  font-family: var(--fd);
  font-size: 21px;
  font-weight: 800;
  color: var(--accent)
}

.stat-l {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 2px
}

/* ── QUIZ ── */
#quiz {
  padding-top: 90px
}

.quiz-wrap {
  max-width: 500px;
  width: 100%
}

.q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px
}

.q-brand {
  display: flex;
  align-items: center;
  gap: 7px
}

.q-brand-icon {
  width: 12px;
  height: 18px;
  position: relative
}

.qbi-body {
  width: 12px;
  height: 17px;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  overflow: hidden
}

.qbi-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: var(--accent);
  border-radius: 1px
}

.q-brand-name {
  font-family: var(--fd);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted)
}

.q-num {
  font-family: var(--fd);
  font-size: 13px;
  color: var(--muted)
}

.q-num b {
  color: var(--text);
  font-size: 14px
}

.prog-track {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 40px;
  overflow: hidden
}

.prog-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 0 10px rgba(200, 255, 0, .5)
}

.q-text {
  font-family: var(--fd);
  font-size: clamp(17px, 4.5vw, 23px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-bottom: 26px;
  min-height: 66px
}

.opts {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.opt {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .18s;
  text-align: left;
  width: 100%;
  color: var(--text);
  font-family: var(--fb);
  font-size: 13px;
  line-height: 1.45;
  position: relative;
  overflow: hidden
}

.opt::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity .2s
}

.opt:hover {
  border-color: rgba(200, 255, 0, .28);
  transform: translateX(3px)
}

.opt:hover::after {
  opacity: .03
}

.opt.sel {
  border-color: var(--accent);
  background: rgba(200, 255, 0, .06)
}

.opt-em {
  font-size: 19px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1
}

.opt-tx {
  position: relative;
  z-index: 1;
  font-size: 12.5px
}

/* ── LOADING ── */
.load-wrap {
  text-align: center
}

.load-batt {
  width: 32px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  margin: 0 auto 28px;
  position: relative;
  overflow: hidden
}

.load-tip {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 5px;
  background: rgba(255, 255, 255, .12);
  border-radius: 2px 2px 0 0
}

.load-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--accent);
  border-radius: 3px;
  animation: lcharge 1.9s ease-in-out infinite
}

@keyframes lcharge {
  0% {
    height: 0
  }

  70% {
    height: 100%
  }

  100% {
    height: 100%;
    opacity: 0
  }
}

.load-t {
  font-family: var(--fd);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px
}

.load-s {
  font-size: 12px;
  color: var(--muted);
  animation: blink 1.4s infinite
}

@keyframes blink {

  0%,
  100% {
    opacity: .35
  }

  50% {
    opacity: .9
  }
}

/* ── MOOD ── */
#mood {
  padding-top: 90px
}

.mood-wrap {
  max-width: 440px;
  width: 100%;
  text-align: center
}

.mood-title {
  font-family: var(--fd);
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -.01em
}

.mood-sub {
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto
}

.mood-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px
}

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

.mood-opt {
  padding: 15px 10px;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .18s;
  text-align: center
}

.mood-opt:hover {
  border-color: rgba(200, 255, 0, .25);
  background: var(--s2)
}

.mood-opt.sel {
  border-color: var(--accent);
  background: rgba(200, 255, 0, .07)
}

.mood-emoji {
  font-size: 22px;
  margin-bottom: 5px
}

.mood-text {
  font-size: 12px;
  color: var(--muted2);
  line-height: 1.3
}

.btn-mood-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #09090C;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  margin-top: 4px;
  opacity: .35;
  pointer-events: none
}

.btn-mood-next.ready {
  opacity: 1;
  pointer-events: all
}

.btn-mood-next.ready:hover {
  opacity: .9;
  transform: translateY(-1px)
}

.mood-skip {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 10px;
  display: block;
  width: 100%;
  text-align: center
}

/* ── RESULT ── */
#result {
  padding-top: 90px
}

.res-wrap {
  max-width: 400px;
  width: 100%
}

.ach-banner {
  background: linear-gradient(135deg, rgba(200, 255, 0, .12), rgba(200, 255, 0, .04));
  border: 1px solid rgba(200, 255, 0, .3);
  border-radius: 13px;
  padding: 13px 16px;
  margin-bottom: 12px;
  display: none;
  animation: fu .4s ease
}

.ach-banner-row {
  display: flex;
  align-items: center;
  gap: 10px
}

.ach-b-icon {
  font-size: 26px
}

.ach-b-title {
  font-family: var(--fd);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--accent)
}

.ach-b-desc {
  font-size: 11.5px;
  color: var(--muted2);
  margin-top: 2px
}

.res-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 32px 24px 28px;
  margin-bottom: 10px;
  text-align: center;
  position: relative;
  overflow: hidden
}

.res-card::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  filter: blur(65px);
  opacity: .11;
  background: var(--rc, var(--accent))
}

/* small logo in result card */
.res-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
  opacity: .35
}

.res-brand-icon {
  width: 10px;
  height: 15px;
  position: relative
}

.rbi-body {
  width: 10px;
  height: 14px;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  overflow: hidden
}

.rbi-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: var(--accent);
  border-radius: 1px
}

.res-brand-text {
  font-family: var(--fd);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted2);
  letter-spacing: .05em
}

.res-pct {
  font-family: var(--fd);
  font-size: clamp(80px, 20vw, 108px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--rc, var(--accent))
}

.res-pct sup {
  font-size: .38em;
  vertical-align: super;
  opacity: .55
}

.res-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, .07);
  border-radius: 4px;
  margin: 12px 0 20px;
  overflow: hidden
}

.res-bar {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 1.5s cubic-bezier(.4, 0, .2, 1)
}

.res-title {
  font-family: var(--fd);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -.01em
}

.res-desc {
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.65
}

.res-avg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 13px;
  font-size: 11.5px;
  color: var(--muted2);
  margin-top: 12px
}

.res-avg b {
  color: var(--text)
}

.opp-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 13px
}

.opp-left {
  text-align: center;
  flex-shrink: 0;
  min-width: 52px
}

.opp-pct {
  font-family: var(--fd);
  font-size: 26px;
  font-weight: 800;
  line-height: 1
}

.opp-label {
  font-size: 9.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-top: 2px
}

.opp-div {
  width: 1px;
  height: 44px;
  background: var(--border);
  flex-shrink: 0
}

.opp-right {
  flex: 1
}

.opp-title {
  font-family: var(--fd);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 3px
}

.opp-desc {
  font-size: 11.5px;
  color: var(--muted2);
  line-height: 1.5
}

.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px
}

.btn-sh {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--s1);
  color: var(--text);
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s
}

.btn-sh:hover {
  background: var(--s2)
}

.btn-sh svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0
}

.btn-sh.wa:hover {
  background: rgba(37, 211, 102, .07);
  border-color: rgba(37, 211, 102, .3)
}

.btn-sh.ig:hover {
  background: rgba(225, 48, 108, .07);
  border-color: rgba(225, 48, 108, .3)
}

.btn-sh.fb:hover {
  background: rgba(24, 119, 242, .07);
  border-color: rgba(24, 119, 242, .3)
}

.btn-sh.xw:hover {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .18)
}

.btn-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #09090C;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 13.5px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 8px
}

.btn-copy:hover {
  opacity: .9;
  transform: translateY(-1px)
}

.btn-friend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: var(--s2);
  border: 1px solid rgba(200, 255, 0, .2);
  color: var(--accent);
  font-family: var(--fd);
  font-weight: 700;
  font-size: 13px;
  border-radius: 11px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 8px
}

.btn-friend:hover {
  background: rgba(200, 255, 0, .07)
}

.btn-retry {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted2);
  font-family: var(--fb);
  font-size: 13px;
  border-radius: 11px;
  cursor: pointer;
  transition: all .2s
}

.btn-retry:hover {
  background: var(--s2);
  color: var(--text)
}

.save-note {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px
}

.save-note b {
  color: var(--accent)
}

/* ── COMPARE ── */
#compare {
  padding-top: 90px
}

.cmp-wrap {
  max-width: 400px;
  width: 100%;
  text-align: center
}

.cmp-title {
  font-family: var(--fd);
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 8px
}

.cmp-sub {
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.6;
  margin-bottom: 24px
}

.cmp-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px
}

.cmp-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center
}

.cmp-card-label {
  font-size: 9.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px
}

.cmp-card-pct {
  font-family: var(--fd);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em
}

.cmp-card-title {
  font-size: 11px;
  color: var(--muted2);
  margin-top: 5px;
  line-height: 1.4
}

.cmp-compat {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px
}

.cmp-compat-label {
  font-size: 9.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px
}

.cmp-compat-score {
  font-family: var(--fd);
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 5px
}

.cmp-compat-desc {
  font-size: 12.5px;
  color: var(--muted2);
  line-height: 1.6
}

.cmp-link-box {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 15px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px
}

.cmp-link-text {
  flex: 1;
  font-size: 11.5px;
  color: var(--muted2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left
}

.cmp-link-copy {
  background: var(--accent);
  color: #09090C;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 12px;
  padding: 7px 13px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  flex-shrink: 0
}

.cmp-link-copy:hover {
  opacity: .85
}

.btn-cmp-back {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted2);
  font-family: var(--fb);
  font-size: 13px;
  border-radius: 11px;
  cursor: pointer;
  transition: all .2s
}

.btn-cmp-back:hover {
  background: var(--s2);
  color: var(--text)
}

/* ── DASHBOARD ── */
#dashboard {
  padding-top: 90px;
  justify-content: flex-start;
  padding-bottom: 48px
}

.dash-wrap {
  max-width: 500px;
  width: 100%;
  padding-top: 16px
}

.dash-header {
  margin-bottom: 22px
}

.dash-hello {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 3px
}

.dash-name {
  font-family: var(--fd);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.02em
}

.dash-name span {
  color: var(--accent)
}

.pred-card {
  background: linear-gradient(135deg, rgba(200, 255, 0, .08), rgba(200, 255, 0, .03));
  border: 1px solid rgba(200, 255, 0, .2);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden
}

.pred-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(45px);
  opacity: .07
}

.pred-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(200, 255, 0, .55);
  margin-bottom: 10px
}

.pred-row {
  display: flex;
  align-items: center;
  gap: 12px
}

.pred-pct {
  font-family: var(--fd);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent)
}

.pred-info {
  flex: 1
}

.pred-title {
  font-family: var(--fd);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 3px
}

.pred-sub {
  font-size: 12px;
  color: var(--muted2);
  line-height: 1.45
}

.pred-basis {
  font-size: 10px;
  color: rgba(200, 255, 0, .45);
  margin-top: 8px
}

.streak-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px
}

.streak-card {
  flex: 1;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 14px;
  text-align: center
}

.streak-num {
  font-family: var(--fd);
  font-size: 26px;
  font-weight: 800;
  color: #FFA600
}

.streak-num.neutral {
  color: var(--text)
}

.streak-lbl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: 3px
}

.dash-today {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .2s;
  position: relative;
  overflow: hidden
}

.dash-today:hover {
  border-color: rgba(200, 255, 0, .3)
}

.dash-today::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: .07;
  background: var(--accent)
}

.dt-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px
}

.dt-row {
  display: flex;
  align-items: flex-end;
  gap: 12px
}

.dt-pct {
  font-family: var(--fd);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em
}

.dt-pct sup {
  font-size: .38em;
  opacity: .6;
  vertical-align: super
}

.dt-info {
  padding-bottom: 4px
}

.dt-title {
  font-family: var(--fd);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px
}

.dt-date {
  font-size: 11px;
  color: var(--muted)
}

.dt-bar-track {
  height: 3px;
  background: rgba(255, 255, 255, .06);
  border-radius: 3px;
  margin-top: 12px;
  overflow: hidden
}

.dt-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(.4, 0, .2, 1)
}

.dt-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted2)
}

.dt-cta-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite
}

@keyframes pulse {

  0%,
  100% {
    opacity: .4
  }

  50% {
    opacity: 1
  }
}

.notif-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 15px 17px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  transition: border-color .2s
}

.notif-card:hover {
  border-color: var(--border2)
}

.notif-icon {
  font-size: 19px;
  flex-shrink: 0
}

.notif-text {
  flex: 1
}

.notif-title {
  font-size: 13px;
  font-weight: 600
}

.notif-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px
}

.toggle {
  width: 38px;
  height: 21px;
  background: var(--s3);
  border-radius: 100px;
  position: relative;
  flex-shrink: 0;
  transition: background .25s
}

.toggle.on {
  background: var(--accent)
}

.toggle::after {
  content: '';
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3)
}

.toggle.on::after {
  transform: translateX(17px)
}

.ds-title {
  font-family: var(--fd);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  margin-bottom: 10px
}

.dash-section {
  margin-bottom: 22px
}

.chart-area {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 16px 13px 10px;
  height: 145px
}

.ach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}

.ach-item {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 11px;
  text-align: center;
  transition: all .2s
}

.ach-item.unlocked {
  border-color: rgba(200, 255, 0, .2);
  background: rgba(200, 255, 0, .04)
}

.ach-item.locked {
  opacity: .4;
  filter: grayscale(1)
}

.ach-emoji {
  font-size: 22px;
  margin-bottom: 5px
}

.ach-name {
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.3
}

.ach-desc {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.4
}

.ach-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  color: var(--accent);
  background: rgba(200, 255, 0, .1);
  border-radius: 100px;
  padding: 2px 7px;
  margin-top: 5px
}

.hist-list {
  display: flex;
  flex-direction: column;
  gap: 7px
}

.hist-item {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 14px
}

.hi-dot {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-size: 11.5px;
  font-weight: 800;
  flex-shrink: 0
}

.hi-info {
  flex: 1;
  min-width: 0
}

.hi-title {
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.hi-meta {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap
}

.mood-tag {
  background: var(--s2);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 10px
}

.hi-pct {
  font-family: var(--fd);
  font-size: 15px;
  font-weight: 800
}

.empty-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65
}

.empty-state b {
  display: block;
  font-family: var(--fd);
  font-size: 14px;
  color: var(--muted2);
  margin-bottom: 5px
}

/* toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 100px;
  opacity: 0;
  transition: all .3s;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1000;
  font-family: var(--fb)
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

.btn-logout {
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(238, 234, 224, 0.45);
  font-size: 12px;
}

.btn-logout:hover {
  border-color: rgba(255, 80, 80, 0.35);
  color: #FF6B6B;
  background: rgba(255, 80, 80, 0.06);
}

.btn-back {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-back:hover {
  background: var(--s2);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-2px);
}