/* ═══════════════════════════════════════════
   GROOPY.ID — B2C REDESIGN — PREMIUM CSS
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* === GROOPY BRAND COLORS === */
  --P:        #1B4BB5;   /* primary blue (from logo) */
  --PM:       #1A3FA0;
  --PL:       #3D6DD4;
  --PPale:    #DBEAFE;
  --PUltra:   #EFF6FF;
  /* Teal accent (from logo robot element) */
  --Tl:       #00B4C8;
  --TlD:      #0096A8;
  --TlL:      #CFFAFE;
  /* Keep other accents */
  --Grn:      #10B981;   /* emerald */
  --GrnD:     #059669;
  --GrnL:     #D1FAE5;
  --Amb:      #F59E0B;   /* amber */
  --AmbL:     #FEF3C7;
  --Red:      #EF4444;
  --Bl:       #3B82F6;   /* blue accent */
  --BlL:      #DBEAFE;
  --Pk:       #EC4899;   /* pink */
  --Dk:       #0B1B4A;   /* dark navy */
  --DkM:      #0F2060;
  --Sur:      #FFFFFF;
  --Sur2:     #F4F7FB;
  --BG:       #E8EEF8;
  --Tx:       #0D1B3E;
  --Tx2:      #4B5563;
  --Tx3:      #9CA3AF;
  --Bd:       #D9E4F5;
  --r-sm:     10px;
  --r-md:     16px;
  --r-lg:     24px;
  --r-xl:     32px;
  --font:     'Plus Jakarta Sans', sans-serif;
  --nav-h:    68px;
  --hd-h:     58px;
  --sh-sm:    0 2px 10px rgba(27,75,181,.09);
  --sh-md:    0 4px 24px rgba(27,75,181,.16);
  --sh-lg:    0 8px 40px rgba(27,75,181,.22);
}

html, body { height: 100%; font-family: var(--font); background: var(--BG); color: var(--Tx); overflow: hidden; }

/* ┌─────────────────────────────────────────
   │ APP SHELL
   └───────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: 270px 1fr 285px;
  height: 100vh; overflow: hidden;
}

/* ┌─────────────────────────────────────────
   │ SIDEBAR (LEFT)
   └───────────────────────────────────────── */
.sidebar {
  background: var(--Sur); border-right: 1.5px solid var(--Bd);
  display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin;
}
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 14px; border-bottom: 1px solid var(--Bd);
  position: sticky; top: 0; background: var(--Sur); z-index: 5;
}
.sb-logo-wrap { display: flex; align-items: center; }
.sb-logo { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: var(--P); }
.sb-logo span { font-size: 22px; }
.sb-tag { background: linear-gradient(135deg,var(--P),var(--Tl)); color: #fff; font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 20px; letter-spacing: .5px; }
.sb-section { padding: 12px 14px; border-bottom: 1px solid var(--Bd); }
.sb-label { font-size: 9px; font-weight: 800; letter-spacing: 1.2px; color: var(--Tx3); text-transform: uppercase; margin-bottom: 8px; }
.sb-tree { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sb-node {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--Tx2);
  transition: background .15s, color .15s;
}
.sb-node:hover { background: var(--PUltra); color: var(--P); }
.sb-node.active { background: var(--PPale); color: var(--P); font-weight: 700; }
.sb-ico { font-size: 14px; flex-shrink: 0; }
.sb-arr { margin-left: auto; color: var(--Tx3); }
.sb-sub {
  display: none; list-style: none; width: 100%;
  padding: 4px 0 0 22px; flex-direction: column; gap: 2px;
}
.sb-node:hover .sb-sub, .sb-node.active .sb-sub { display: flex; }
.sb-sub li { font-size: 10px; padding: 4px 8px; border-radius: 6px; color: var(--Tx3); cursor: pointer; }
.sb-sub li:hover { background: var(--PPale); color: var(--P); }

/* OTB list */
.otb-list { display: flex; flex-direction: column; gap: 6px; }
.otb-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 10px; border-radius: var(--r-sm);
  cursor: pointer; border: 1px solid var(--Bd);
  transition: border-color .15s, background .15s;
}
.otb-item:hover { background: var(--PUltra); border-color: var(--PL); }
.otb-item span { font-size: 18px; flex-shrink: 0; }
.otb-item b { font-size: 11px; font-weight: 700; color: var(--Tx); }
.otb-item p { font-size: 10px; color: var(--Tx3); line-height: 1.3; margin-top: 1px; }
.new { border-color: #DDD6FE; }

.persona-row { display: flex; flex-wrap: wrap; gap: 6px; }
.p-chip { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: var(--Bd); color: var(--Tx2); cursor: pointer; transition: all .15s; }
.active-p { background: var(--P); color: #fff; }

.sb-footer { padding: 12px 14px; }
.sb-problem-text { font-size: 10px; color: var(--Tx3); padding: 2px 0; line-height: 1.4; }

/* ┌─────────────────────────────────────────
   │ PHONE AREA
   └───────────────────────────────────────── */
.phone-area { display: flex; align-items: center; justify-content: center; padding: 16px 0; }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.phone-label { font-size: 10px; color: var(--Tx3); font-weight: 500; }
.phone-frame {
  width: 375px; height: 790px;
  background: var(--Sur);
  border-radius: 50px;
  box-shadow: 0 0 0 10px #0F0A1E, 0 24px 70px rgba(15,10,30,.55), 0 4px 20px rgba(0,0,0,.25);
  overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 126px; height: 30px;
  background: #0F0A1E;
  border-bottom-left-radius: 20px; border-bottom-right-radius: 20px;
  z-index: 100; display: flex; align-items: center; justify-content: center;
}
.notch-c { width: 56px; height: 10px; background: #080510; border-radius: 5px; }
.screens { position: relative; flex: 1; overflow: hidden; }
.screen {
  position: absolute; inset: 0;
  background: var(--Sur); display: none;
  flex-direction: column; overflow: hidden;
  animation: fadeIn .22s ease;
}
.screen.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }

/* ─── SCREEN HEADER ─── */
.sh {
  display: flex; align-items: center; justify-content: space-between;
  padding: 36px 16px 12px; background: var(--Sur);
  flex-shrink: 0; min-height: var(--hd-h);
  position: relative; z-index: 10;
}
.st { font-size: 16px; font-weight: 800; color: var(--Tx); }
.back-btn { background: none; border: none; font-size: 28px; font-weight: 300; color: var(--Tx); cursor: pointer; line-height: 1; padding: 0 2px; }

/* ─── SCREEN BODY ─── */
.screen-body {
  flex: 1; overflow-y: auto; padding: 8px 14px 14px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: none;
}
.screen-body::-webkit-scrollbar { display: none; }

/* ─── CARD ─── */
.card {
  background: var(--Sur); border-radius: var(--r-md);
  padding: 13px; border: 1px solid #F0ECF9;
  box-shadow: var(--sh-sm); flex-shrink: 0;
  transition: transform .15s, box-shadow .15s;
}
.card:active { transform: scale(.986); }
.card-lbl { font-size: 10px; font-weight: 700; letter-spacing: .6px; color: var(--Tx3); text-transform: uppercase; margin-bottom: 4px; }

/* ─── BOTTOM NAV ─── */
.bnav {
  display: flex; align-items: center; justify-content: space-around;
  height: var(--nav-h); background: var(--Sur);
  border-top: 1px solid var(--Bd); padding: 4px 8px 8px;
  flex-shrink: 0; position: relative; z-index: 20;
}
.bn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font); padding: 4px;
  transition: transform .15s;
}
.bn span:first-child { font-size: 20px; transition: transform .2s; }
.bn span:last-child { font-size: 9px; font-weight: 600; color: var(--Tx3); }
.bn.active span:first-child { filter: drop-shadow(0 0 5px var(--P)); transform: translateY(-2px); }
.bn.active span:last-child { color: var(--P); font-weight: 800; }
.bn:hover { transform: translateY(-2px); }
.bn-center {
  flex: none; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--P), var(--Tl));
  box-shadow: 0 4px 20px rgba(27,75,181,.5);
  border: none; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 18px; position: relative;
  transition: transform .15s, box-shadow .15s;
  animation: glowPulse 2.5s ease-in-out infinite;
}
.bn-center:hover { transform: scale(1.06); box-shadow: 0 6px 28px rgba(27,75,181,.65); }
@keyframes glowPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(27,75,181,.5); }
  50% { box-shadow: 0 4px 28px rgba(0,180,200,.8), 0 0 0 6px rgba(27,75,181,.15); }
}
.bnc-inner { display: flex; align-items: center; justify-content: center; font-size: 22px; }

/* ─── TAB NAV ─── */
.tab-nav {
  display: flex; gap: 0; padding: 0 14px; background: var(--Sur);
  border-bottom: 2px solid var(--Bd); flex-shrink: 0;
}
.tab {
  flex: 1; padding: 9px 4px; background: none; border: none;
  font-size: 11px; font-weight: 600; color: var(--Tx3);
  cursor: pointer; font-family: var(--font);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.tab.active { color: var(--P); border-bottom-color: var(--P); }
.tab-content { display: none; flex-direction: column; gap: 10px; }
.tab-content.active { display: flex; }

/* ─── SECTION TITLE ─── */
.section-ttl { font-size: 13px; font-weight: 800; color: var(--Tx); flex-shrink: 0; }

/* ─── PROGRESS BAR ─── */
.pbar { height: 5px; border-radius: 3px; background: #F0ECF9; overflow: hidden; }
.pfill { height: 100%; border-radius: 3px; background: linear-gradient(90deg,var(--P),var(--Grn)); transition: width .7s cubic-bezier(.34,1.56,.64,1); }

/* ─── BUTTONS ─── */
.btn-cta {
  width: 100%; padding: 14px;
  border-radius: var(--r-md); border: none;
  background: linear-gradient(135deg,var(--P),var(--Tl));
  color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: var(--font);
  box-shadow: 0 4px 18px rgba(27,75,181,.35);
  transition: transform .15s, box-shadow .15s;
}
.btn-cta:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(27,75,181,.5); }
.btn-cta:disabled { opacity: .45; cursor: not-allowed; }
.btn-cta-outline {
  width: 100%; padding: 12px;
  border-radius: var(--r-md);
  border: 2px solid var(--Grn);
  background: transparent; color: var(--Grn);
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: var(--font); transition: all .15s;
}
.btn-cta-outline:hover { background: var(--Grn); color: #fff; }
.btn-sm-purple {
  padding: 6px 12px; border-radius: 16px; border: none;
  background: var(--P); color: #fff; font-size: 10px;
  font-weight: 700; cursor: pointer; font-family: var(--font);
  flex-shrink: 0; transition: opacity .15s;
}
.btn-sm-purple:hover { opacity: .85; }

/* ┌─────────────────────────────────────────
   │ ONBOARDING
   └───────────────────────────────────────── */
#s-onboarding {
  background: linear-gradient(160deg,#150B30,#1E1B4B,#0D2A1F);
}
.ob-bg { position: absolute; inset: 0; pointer-events: none; }
.ob-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .3; }
.b1 { width: 280px; height: 280px; background: var(--P); top: -80px; right: -60px; }
.b2 { width: 220px; height: 220px; background: var(--Grn); bottom: 120px; left: -60px; }
.b3 { width: 180px; height: 180px; background: var(--Pk); top: 40%; right: -40px; }
.ob-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; height: 100%; padding: 40px 24px 28px; }
.ob-logo-wrap { animation: float 3s ease-in-out infinite; }
.ob-logo { font-size: 60px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.ob-title {
  font-size: 36px; font-weight: 900; letter-spacing: -1px;
  background: linear-gradient(135deg,#fff 40%,#34D399);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 4px;
}
.ob-title span { color: #34D399; }
.ob-slogan { font-size: 14px; color: rgba(255,255,255,.7); font-weight: 500; margin-bottom: 6px; }
.ob-sub { font-size: 12px; color: rgba(255,255,255,.5); text-align: center; line-height: 1.5; margin-bottom: 20px; }
.persona-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-bottom: 20px; }
.p-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--r-md); padding: 14px 10px;
  text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}
.p-card:hover { transform: translateY(-2px); }
.p-card.selected { background: rgba(108,58,232,.35); border-color: var(--PL); }
.p-card-icon { font-size: 28px; margin-bottom: 6px; }
.p-card-name { font-size: 12px; font-weight: 700; color: #fff; }
.p-card-desc { font-size: 9px; color: rgba(255,255,255,.5); margin-top: 2px; }
.ob-login { margin-top: 12px; font-size: 11px; color: rgba(255,255,255,.5); }
.ob-login a { color: var(--Grn); font-weight: 700; cursor: pointer; text-decoration: none; }

/* ┌─────────────────────────────────────────
   │ HOME SCREEN
   └───────────────────────────────────────── */
.home-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 36px 16px 8px; background: var(--Sur); flex-shrink: 0;
}
.home-hi { font-size: 20px; font-weight: 800; color: var(--Tx); }
.home-date { font-size: 11px; color: var(--Tx3); font-weight: 500; }
.home-top-right { display: flex; align-items: center; gap: 8px; }
.notif-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--PUltra); display: flex;
  align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; position: relative;
}
.nb-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; background: var(--Red); border-radius: 50%; border: 2px solid #fff; }
.top-ava {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg,var(--P),var(--Grn));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff;
  cursor: pointer; box-shadow: var(--sh-sm);
}

/* GrooScore Card */
.groo-score-card {
  background: linear-gradient(145deg,var(--Dk),#0B2272);
  border-radius: var(--r-lg); padding: 16px;
  display: flex; gap: 12px; cursor: pointer;
  box-shadow: 0 8px 32px rgba(27,75,181,.3);
  flex-shrink: 0;
}
.gsc-left { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gsc-label { font-size: 9px; font-weight: 700; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .6px; }
.gsc-ring-wrap { position: relative; width: 130px; height: 130px; }
.gsc-svg { width: 100%; height: 100%; }
.score-ring { transition: stroke-dasharray 1.2s cubic-bezier(.34,1.56,.64,1); }
.gsc-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gsc-num { font-size: 28px; font-weight: 900; color: #fff; line-height: 1; }
.gsc-max { font-size: 11px; color: rgba(255,255,255,.5); font-weight: 500; }
.gsc-status { font-size: 11px; font-weight: 700; color: var(--Grn); margin-top: 2px; }
.gsc-right { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.gsc-breakdown { display: flex; flex-direction: column; gap: 5px; }
.gbd-row { display: flex; align-items: center; gap: 5px; }
.gbd-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.gbd-name { font-size: 9px; color: rgba(255,255,255,.6); font-weight: 600; width: 36px; }
.gbd-bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.gbd-fill { height: 100%; border-radius: 2px; }
.gbd-val { font-size: 9px; font-weight: 700; color: rgba(255,255,255,.8); width: 26px; text-align: right; }
.gsc-gp-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; padding: 6px 8px; background: rgba(255,255,255,.08); border-radius: 10px; }
.gp-coin { font-size: 16px; }
.gp-total { font-size: 14px; font-weight: 800; color: var(--Amb); }
.gp-today { font-size: 10px; font-weight: 600; color: var(--Grn); background: rgba(16,185,129,.15); padding: 2px 6px; border-radius: 8px; }

/* AI Brief */
.ai-brief-card {
  background: linear-gradient(135deg,var(--PUltra),#fff);
  border: 1.5px solid var(--PPale); border-radius: var(--r-md);
  padding: 13px; cursor: pointer; flex-shrink: 0;
}
.ai-brief-tag { font-size: 10px; font-weight: 800; color: var(--P); margin-bottom: 6px; letter-spacing: .4px; }
.ai-brief-text { font-size: 12px; color: var(--Tx2); line-height: 1.55; }
.ai-brief-chips { display: flex; gap: 6px; margin-top: 8px; }
.ai-brief-chips span {
  font-size: 10px; font-weight: 700; color: var(--P);
  background: var(--PPale); padding: 4px 10px; border-radius: 14px;
  cursor: pointer; border: 1px solid #DDD6FE;
  transition: background .15s;
}
.ai-brief-chips span:hover { background: var(--P); color: #fff; }

/* Quick Stats */
.quick-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; flex-shrink: 0; }
.qs-card {
  background: var(--Sur); border: 1px solid #F0ECF9; border-radius: var(--r-md);
  padding: 10px 8px; text-align: center; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: var(--sh-sm);
}
.qs-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.qs-ico { font-size: 20px; margin-bottom: 3px; }
.qs-val { font-size: 13px; font-weight: 800; color: var(--Tx); line-height: 1; }
.qs-lbl { font-size: 8px; color: var(--Tx3); font-weight: 600; margin: 2px 0 4px; }
.qs-bar { height: 3px; border-radius: 2px; background: #F0ECF9; overflow: hidden; }
.qs-fill { height: 100%; border-radius: 2px; }

/* Quest Banner */
.quest-banner {
  background: linear-gradient(135deg,#1C1007,#3D1F00);
  border-radius: var(--r-md); padding: 14px;
  display: flex; gap: 12px; cursor: pointer; flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(180,83,9,.25);
}
.qb-left { flex: 1; }
.qb-tag { font-size: 9px; font-weight: 800; color: var(--Amb); letter-spacing: .8px; margin-bottom: 4px; }
.qb-title { font-size: 16px; font-weight: 900; color: #fff; }
.qb-desc { font-size: 11px; color: rgba(255,255,255,.6); margin: 3px 0 6px; }
.qb-bar-wrap { display: flex; align-items: center; gap: 6px; }
.qb-bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.qb-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg,var(--Amb),var(--Red)); }
.qb-bar-wrap span { font-size: 10px; font-weight: 700; color: var(--Amb); }
.qb-right { flex-shrink: 0; display: flex; align-items: center; }
.qb-reward { text-align: center; }
.qb-reward p { font-size: 9px; color: rgba(255,255,255,.6); font-weight: 600; }
.qb-pts { font-size: 20px; font-weight: 900; color: var(--Amb); }

/* Social Pulse */
.social-pulse { background: var(--Sur); border-radius: var(--r-md); padding: 12px; border: 1px solid #F0ECF9; box-shadow: var(--sh-sm); cursor: pointer; flex-shrink: 0; }
.sp-title { font-size: 11px; font-weight: 700; color: var(--Tx); margin-bottom: 8px; }
.sp-items { display: flex; flex-direction: column; gap: 8px; }
.sp-item { display: flex; align-items: center; gap: 8px; }
.sp-av { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 808; color: #fff; flex-shrink: 0; }
.sp-name { font-size: 11px; font-weight: 700; color: var(--Tx); }
.sp-act { font-size: 10px; color: var(--Tx3); }
.sp-badge { font-size: 16px; margin-left: auto; }
.sp-cta { margin-left: auto; padding: 5px 10px; border-radius: 12px; border: none; background: var(--P); color: #fff; font-size: 10px; font-weight: 700; cursor: pointer; font-family: var(--font); }

/* Horoscope */
.horoscope-card {
  background: linear-gradient(135deg,#1A1040,#251A5E);
  border-radius: var(--r-md); padding: 13px; cursor: pointer; flex-shrink: 0;
}
.horo-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.horo-header span:first-child { font-size: 20px; }
.horo-title { font-size: 12px; font-weight: 700; color: #fff; }
.horo-sub { font-size: 10px; color: rgba(255,255,255,.5); }
.horo-new { margin-left: auto; background: var(--Amb); color: var(--Dk); font-size: 8px; font-weight: 900; padding: 2px 6px; border-radius: 6px; letter-spacing: .5px; }
.horo-text { font-size: 11px; color: rgba(255,255,255,.75); line-height: 1.6; font-style: italic; }

/* Merchant CTA */
.merchant-card { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg,var(--GrnL),#fff); border: 1px solid #A7F3D0; border-radius: var(--r-md); padding: 12px; cursor: pointer; flex-shrink: 0; }
.mc-icon { font-size: 28px; }
.mc-title { font-size: 12px; font-weight: 700; color: #065F46; }
.mc-sub { font-size: 10px; color: #059669; }
.mc-arr { margin-left: auto; font-size: 20px; color: var(--Grn); }

/* ┌─────────────────────────────────────────
   │ AKTIVITAS
   └───────────────────────────────────────── */
.act-ring-card { background: linear-gradient(135deg,var(--PUltra),#fff); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: var(--sh-md); flex-shrink: 0; }
.act-ring { position: relative; cursor: pointer; }
.act-ring-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ari-num { font-size: 24px; font-weight: 900; color: var(--P); line-height: 1; }
.ari-lbl { font-size: 10px; color: var(--Tx3); font-weight: 600; }
.ari-pct { font-size: 12px; font-weight: 700; color: var(--Grn); }
.act-3stats { display: flex; gap: 20px; }
.a3s { text-align: center; }
.a3s span { font-size: 18px; }
.a3s p { font-size: 16px; font-weight: 800; color: var(--Tx); }
.a3s small { font-size: 10px; color: var(--Tx3); }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 70px; margin-top: 8px; }
.mb-w { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.mb-b { width: 100%; border-radius: 3px 3px 0 0; background: var(--PPale); min-height: 8px; transition: height .5s ease; }
.mb-today { background: linear-gradient(180deg,var(--P),var(--PM)); }
.mb-w span { font-size: 9px; color: var(--Tx3); font-weight: 600; }
.water-hub { background: linear-gradient(135deg,#EFF6FF,#fff); border: 1px solid #BFDBFE; border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; flex-shrink: 0; }
.wh-visual { display: flex; align-items: center; justify-content: center; gap: 12px; }
.wh-bottle { width: 40px; height: 80px; border: 3px solid var(--Bl); border-radius: 6px 6px 10px 10px; overflow: hidden; position: relative; background: rgba(255,255,255,.5); }
.wh-fill { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(180deg,#60A5FA,#2563EB); }
.wh-info { text-align: center; }
.wh-amount { font-size: 28px; font-weight: 900; color: var(--Bl); }
.wh-glasses { display: flex; gap: 5px; justify-content: center; }
.wg { width: 24px; height: 30px; border: 2px solid #BFDBFE; border-radius: 3px 3px 5px 5px; background: transparent; transition: background .3s; }
.wg.full { background: linear-gradient(180deg,#7DD3FC,#2563EB); border-color: var(--Bl); }
.wg.half { background: linear-gradient(180deg,transparent 50%,#7DD3FC 50%); border-color: #60A5FA; }
.meal-log-list { display: flex; flex-direction: column; gap: 6px; }
.mll-item { display: flex; align-items: center; gap: 10px; background: var(--Sur); border: 1px solid var(--Bd); border-radius: 12px; padding: 10px 12px; font-size: 12px; font-weight: 600; color: var(--Tx); cursor: pointer; }
.mll-item span:first-child { font-size: 18px; flex-shrink: 0; }
.mll-item p { flex: 1; }
.mll-arr { color: var(--Tx3); font-size: 18px; }
.mll-item.empty { border-style: dashed; color: var(--Tx3); }
.mll-item button { margin-left: auto; padding: 5px 10px; border-radius: 10px; border: none; background: var(--P); color: #fff; font-size: 10px; font-weight: 700; cursor: pointer; font-family: var(--font); }
/* Sleep quick card */
.sleep-card { background: linear-gradient(135deg,#FDF4FF,#fff); border: 1px solid #F3E8FF; border-radius: var(--r-md); padding: 12px; cursor: pointer; flex-shrink: 0; }
.sc-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sc-score { font-size: 28px; font-weight: 900; color: var(--Pk); line-height: 1; }
.sc-score span { font-size: 14px; color: var(--Tx3); font-weight: 500; }
.sc-times { display: flex; gap: 10px; }
.sc-times div { text-align: center; }
.sleep-bars { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.slb { border-radius: 0; }
.sleep-legend { display: flex; gap: 10px; font-size: 9px; color: var(--Tx3); }

/* ┌─────────────────────────────────────────
   │ STEPS SCREEN
   └───────────────────────────────────────── */
.steps-hero {
  background: linear-gradient(145deg,var(--P),#1A3FA0);
  border-radius: var(--r-lg); padding: 20px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  flex-shrink: 0; box-shadow: var(--sh-lg);
}
.sh-ring { position: relative; }
.sh-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sh-num { font-size: 30px; font-weight: 900; color: #fff; line-height: 1; }
.sh-lbl { font-size: 11px; color: rgba(255,255,255,.6); font-weight: 600; }
.sh-pct { font-size: 14px; font-weight: 700; color: #34D399; }
.sh-stats { display: flex; gap: 20px; }
.shs { text-align: center; }
.shs span { font-size: 20px; }
.shs p { font-size: 16px; font-weight: 900; color: #fff; line-height: 1.1; }
.shs small { font-size: 10px; color: rgba(255,255,255,.6); }
.step-ring-anim { transition: stroke-dasharray 1s ease; }
.week-bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; margin-top: 10px; }
.wb-w { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.wb-b { width: 100%; border-radius: 4px 4px 0 0; background: var(--PPale); min-height: 8px; position: relative; transition: height .5s ease; }
.wb-active { background: linear-gradient(180deg,var(--P),var(--PM)); }
.wb-tip { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 8px; font-weight: 700; color: var(--Tx3); white-space: nowrap; }
.wb-day { font-size: 9px; color: var(--Tx3); font-weight: 600; }
.badge-row { display: flex; gap: 8px; margin-top: 8px; }
.bdg { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: var(--r-sm); background: var(--PUltra); opacity: .35; cursor: pointer; }
.bdg span { font-size: 18px; }
.bdg p { font-size: 9px; font-weight: 700; color: var(--Tx3); }
.earned { opacity: 1; background: var(--PPale); }
.earned p { color: var(--P); }
.glow { opacity: 1; background: linear-gradient(135deg,#FEF3C7,#FDE68A); animation: badgeGlow 2s ease-in-out infinite; }
.glow p { color: var(--Amb); }
@keyframes badgeGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); } 50% { box-shadow: 0 0 12px 4px rgba(245,158,11,.4); } }
.bdg-prog { font-size: 8px; font-weight: 800; color: var(--Amb); background: rgba(245,158,11,.15); padding: 1px 5px; border-radius: 6px; }

/* ┌─────────────────────────────────────────
   │ SMART MEAL
   └───────────────────────────────────────── */
.scan-hero {
  height: 180px; background: linear-gradient(135deg,#0F172A,#1E1B4B);
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  cursor: pointer; flex-shrink: 0;
}
.scan-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.scan-frame { width: 120px; height: 100px; border: 2px solid var(--Grn); border-radius: 12px; position: relative; box-shadow: 0 0 20px rgba(16,185,129,.3); animation: scanPulse 1.5s ease-in-out infinite; }
@keyframes scanPulse { 0%,100% { box-shadow: 0 0 10px rgba(16,185,129,.3); } 50% { box-shadow: 0 0 30px rgba(16,185,129,.6); } }
.scan-instructions { font-size: 11px; color: rgba(255,255,255,.6); }
.scan-result {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(15,23,42,.9); backdrop-filter: blur(10px);
  padding: 10px 14px; display: none; align-items: center; gap: 10px;
  border-top: 1px solid rgba(16,185,129,.3);
}
.scan-result.show { display: flex; animation: slideUp .3s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sr-icon { font-size: 28px; }
.sr-info { flex: 1; }
.sr-name { font-size: 13px; font-weight: 700; color: #fff; }
.sr-kal { font-size: 10px; color: rgba(255,255,255,.6); }
.sr-add { padding: 6px 12px; border-radius: 10px; border: none; background: var(--Grn); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; font-family: var(--font); }
.meal-today-log { display: flex; flex-direction: column; gap: 6px; }
.mtl-item { display: flex; align-items: center; gap: 10px; background: var(--Sur); border: 1px solid var(--Bd); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.mtl-item span:first-child { font-size: 18px; flex-shrink: 0; }
.mtl-info { flex: 1; }
.mtl-info p { font-size: 12px; font-weight: 700; color: var(--Tx); }
.mtl-foods { font-size: 10px; color: var(--Tx3); }
.mtl-kal { font-size: 13px; font-weight: 800; color: var(--Amb); flex-shrink: 0; }
.mtl-item.empty-slot { border-style: dashed; }
.mtl-item.empty-slot .mtl-info p { color: var(--Tx3); }
.btn-scan { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg,var(--Grn),var(--GrnD)); border-radius: var(--r-md); padding: 14px; cursor: pointer; flex-shrink: 0; }
.btn-scan span:first-child { font-size: 28px; }

/* ┌─────────────────────────────────────────
   │ WATER SCREEN
   └───────────────────────────────────────── */
.water-hero { background: linear-gradient(145deg,#1E40AF,#1D4ED8); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }
.wtr-visual { display: flex; align-items: center; justify-content: center; gap: 20px; }
.wtr-bottle-big { width: 56px; height: 110px; border: 3px solid rgba(255,255,255,.4); border-radius: 8px 8px 14px 14px; overflow: hidden; position: relative; background: rgba(255,255,255,.15); }
.wtr-fill-big { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(180deg,rgba(255,255,255,.5),rgba(255,255,255,.8)); transition: height .8s cubic-bezier(.34,1.56,.64,1); }
.wtr-center-info { text-align: center; }
.wtr-amount { font-size: 36px; font-weight: 900; color: #fff; line-height: 1; }
.wtr-pct { font-size: 16px; font-weight: 700; color: #93C5FD; }
.wtr-quick-btns { display: flex; gap: 8px; }
.wqb { flex: 1; padding: 9px 4px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; font-size: 10px; font-weight: 700; cursor: pointer; font-family: var(--font); transition: background .15s; }
.wqb:hover { background: rgba(255,255,255,.25); }
.water-timeline { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.wt-item { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--Tx3); }
.wt-time { font-weight: 700; color: var(--Bl); flex-shrink: 0; width: 36px; }
.wt-ico { font-size: 16px; }
.wt-ml { margin-left: auto; font-weight: 700; color: var(--Tx); }

/* ┌─────────────────────────────────────────
   │ SLEEP LAB
   └───────────────────────────────────────── */
.sleep-hero-card { background: linear-gradient(145deg,#1E1B4B,#312E81); border-radius: var(--r-lg); padding: 20px; flex-shrink: 0; }
.slh-score-area { text-align: center; margin-bottom: 14px; }
.slh-score { font-size: 56px; font-weight: 900; color: #fff; line-height: 1; }
.slh-label { font-size: 12px; color: rgba(255,255,255,.6); font-weight: 600; }
.slh-status { font-size: 14px; font-weight: 700; color: var(--Pk); margin-top: 2px; }
.slh-detail { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.slhd { text-align: center; }
.sleep-graph { display: flex; align-items: flex-end; gap: 10px; height: 90px; margin-top: 10px; }
.sg-bar { flex: 1; border-radius: 6px 6px 0 0; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 4px; font-size: 8px; font-weight: 700; color: rgba(255,255,255,.8); text-align: center; }
.sg-bar span { font-size: 10px; font-weight: 800; color: var(--Tx); display: block; margin-top: 4px; text-align: center; }

/* ┌─────────────────────────────────────────
   │ AI COACH
   └───────────────────────────────────────── */
.ai-sh { background: linear-gradient(135deg,var(--DkM),#1E3A5F) !important; }
.chat-context-bar {
  display: flex; background: rgba(108,58,232,.08);
  border-bottom: 1px solid var(--Bd);
  padding: 6px 12px; gap: 4px; flex-shrink: 0;
}
.ccb-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.ccb-item span { font-size: 14px; }
.ccb-item p { font-size: 11px; font-weight: 800; color: var(--P); line-height: 1; }
.ccb-item small { font-size: 8px; color: var(--Tx3); font-weight: 600; }
.chat-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #F8F7FD; scrollbar-width: none; }
.chat-body::-webkit-scrollbar { display: none; }
.chat-date { text-align: center; font-size: 9px; font-weight: 700; color: var(--Tx3); }
.chat-row { display: flex; gap: 8px; align-items: flex-end; animation: msgIn .2s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-row.user { flex-direction: row-reverse; }
.chat-av { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg,var(--P),var(--PM)); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.chat-bbl { max-width: 78%; border-radius: 16px; padding: 10px 13px; font-size: 12px; line-height: 1.55; }
.bot-bbl { background: #fff; color: var(--Tx); border-bottom-left-radius: 4px; box-shadow: var(--sh-sm); }
.user-bbl { background: linear-gradient(135deg,var(--P),var(--PM)); color: #fff; border-bottom-right-radius: 4px; }
.typing-dots { display: flex; gap: 4px; padding: 4px 0; }
.typing-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--PM); animation: td .6s ease-in-out infinite; }
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes td { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.chat-chips { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; background: #fff; border-top: 1px solid var(--Bd); flex-shrink: 0; }
.chat-chips::-webkit-scrollbar { display: none; }
.cc { font-size: 10px; font-weight: 700; color: var(--P); background: var(--PUltra); border: 1px solid var(--PPale); padding: 5px 10px; border-radius: 14px; white-space: nowrap; cursor: pointer; flex-shrink: 0; transition: background .15s; }
.cc:hover { background: var(--P); color: #fff; }
.chat-input-row { display: flex; gap: 8px; padding: 10px 12px 14px; background: #fff; flex-shrink: 0; }
.chat-in { flex: 1; padding: 10px 14px; border-radius: 24px; border: 2px solid var(--Bd); font-size: 12px; font-family: var(--font); outline: none; background: #F9F8FF; transition: border-color .15s; }
.chat-in:focus { border-color: var(--P); background: #fff; }
.chat-send { width: 40px; height: 40px; border-radius: 50%; border: none; background: linear-gradient(135deg,var(--P),var(--PM)); color: #fff; font-size: 16px; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

/* ┌─────────────────────────────────────────
   │ QUEST
   └───────────────────────────────────────── */
.quest-card { border-radius: var(--r-lg); padding: 16px; flex-shrink: 0; }
.main-quest { background: linear-gradient(145deg,#1C1007,#3D1F00); box-shadow: 0 6px 28px rgba(180,83,9,.3); }
.qc-tag { font-size: 9px; font-weight: 800; color: var(--Amb); letter-spacing: 1px; margin-bottom: 6px; }
.qc-title { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.qc-story { font-size: 11px; color: rgba(255,255,255,.65); line-height: 1.5; margin-bottom: 10px; font-style: italic; }
.qc-progress { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.qcp-bar { height: 7px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; }
.qc-progress span { font-size: 10px; color: var(--Amb); font-weight: 700; }
.qc-rewards { display: flex; gap: 6px; flex-wrap: wrap; }
.qc-rewards span { background: rgba(255,255,255,.12); font-size: 10px; font-weight: 700; color: var(--Amb); padding: 3px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); }
.daily-challenges { display: flex; flex-direction: column; gap: 7px; }
.dc-item { display: flex; align-items: center; gap: 10px; background: var(--Sur); border-radius: var(--r-md); padding: 11px; border: 1px solid var(--Bd); }
.dc-item.done { background: var(--GrnL); border-color: #A7F3D0; }
.dc-ico { font-size: 18px; flex-shrink: 0; }
.dc-info { flex: 1; }
.dc-info p { font-size: 12px; font-weight: 600; color: var(--Tx); }
.dc-info small { font-size: 9px; color: var(--Tx3); }
.dc-bar { height: 4px; background: var(--Bd); border-radius: 2px; overflow: hidden; margin-top: 4px; width: 100px; }
.dc-check { font-size: 16px; }
.week-dots { display: flex; gap: 5px; margin: 8px 0; }
.wd { width: 28px; height: 28px; border-radius: 50%; background: var(--Bd); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--Tx3); }
.wd.done { background: var(--Grn); color: #fff; }
.wd.active { background: var(--P); color: #fff; }

/* ┌─────────────────────────────────────────
   │ SOCIAL / GROOTYPE
   └───────────────────────────────────────── */
.social-feed { display: flex; flex-direction: column; gap: 10px; }
.sf-card { background: var(--Sur); border-radius: var(--r-md); padding: 12px; border: 1px solid var(--Bd); flex-shrink: 0; }
.sf-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sf-av { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0; }
.sf-name { font-size: 12px; font-weight: 700; color: var(--Tx); }
.sf-time { font-size: 10px; color: var(--Tx3); }
.sf-more { margin-left: auto; color: var(--Tx3); cursor: pointer; }
.sf-moment { font-size: 13px; font-weight: 600; color: var(--Tx); margin-bottom: 4px; }
.sf-groscore-mini { font-size: 10px; color: var(--Tx3); margin-bottom: 8px; }
.sf-meal-snap { font-size: 12px; color: var(--Tx2); margin-bottom: 8px; }
.sf-actions { display: flex; gap: 6px; }
.sf-react { flex: 1; padding: 6px; border-radius: 10px; border: 1px solid var(--Bd); background: #fff; font-size: 11px; font-weight: 600; color: var(--Tx2); cursor: pointer; font-family: var(--font); transition: background .15s; }
.sf-react:hover { background: var(--PUltra); color: var(--P); }
.challenge-card { background: linear-gradient(135deg,#FFF5F5,#fff); border-color: #FECACA; }
.sf-challenge-detail { margin-bottom: 10px; }
.btn-accept { flex: 1; padding: 8px; border-radius: 10px; border: none; background: var(--P); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer; font-family: var(--font); }
.btn-decline { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--Bd); background: #fff; font-size: 11px; color: var(--Tx3); cursor: pointer; font-family: var(--font); }
/* Battle */
.battle-active { display: flex; flex-direction: column; gap: 8px; }
.ba-card { background: var(--Sur); border-radius: var(--r-lg); padding: 16px; border: 2px solid var(--PPale); box-shadow: var(--sh-md); }
.ba-players { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ba-player { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ba-player.me .ba-av { background: linear-gradient(135deg,var(--P),var(--PL)); border: 2px solid var(--P); }
.ba-av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,var(--Red),#DC2626); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: #fff; }
.ba-player p { font-size: 11px; font-weight: 600; color: var(--Tx); }
.ba-steps { font-size: 15px; font-weight: 900; color: var(--P); }
.ba-vs { font-size: 20px; font-weight: 900; color: var(--Tx3); }
.ba-progress-area { margin-bottom: 8px; }
.bap-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; }
.bap-me { background: linear-gradient(90deg,var(--P),var(--PM)); }
.bap-them { background: linear-gradient(90deg,#F87171,var(--Red)); }
.ba-badge { font-size: 11px; font-weight: 700; color: var(--Amb); background: var(--AmbL); padding: 4px 8px; border-radius: 8px; }
.new-challenge-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nct { background: var(--Sur); border: 1.5px solid var(--Bd); border-radius: var(--r-md); padding: 14px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.nct:hover { border-color: var(--P); background: var(--PUltra); }
.nct span { font-size: 28px; display: block; margin-bottom: 4px; }
.nct p { font-size: 11px; font-weight: 600; color: var(--Tx2); }
/* Leaderboard */
.lb-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.lbt { padding: 5px 12px; border-radius: 14px; border: 1px solid var(--Bd); background: var(--Sur); font-size: 11px; font-weight: 600; color: var(--Tx3); cursor: pointer; font-family: var(--font); transition: all .15s; }
.active-lbt { background: var(--P); border-color: var(--P); color: #fff; }
.lb-list { display: flex; flex-direction: column; gap: 6px; }
.lb-row { display: flex; align-items: center; gap: 8px; background: var(--Sur); border: 1px solid var(--Bd); border-radius: var(--r-md); padding: 10px 12px; }
.lb-row.gold { border-left: 3px solid #FBB"024; }
.lb-row.silver { border-left: 3px solid #94A3B8; }
.lb-row.bronze { border-left: 3px solid #CD7C4A; }
.lb-row.lb-you { background: var(--PUltra); border: 2px solid var(--PPale); }
.lb-rank { width: 22px; font-size: 15px; text-align: center; }
.lb-av2 { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,var(--P),var(--Grn)); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; }
.lb-info2 { flex: 1; }
.lb-info2 p { font-size: 12px; font-weight: 700; color: var(--Tx); }
.lb-info2 small { font-size: 10px; color: var(--Tx3); }
.lb-pts2 { font-size: 12px; font-weight: 800; color: var(--P); }

/* ┌─────────────────────────────────────────
   │ GROOPY MAP - REDESIGNED
   └───────────────────────────────────────── */
/* Deprecated old styles kept for compat: */
.map-hero { background: linear-gradient(135deg,#065F46,#059669); border-radius: var(--r-lg); padding: 14px; flex-shrink: 0; }
.mh-current { display: flex; align-items: center; gap: 12px; }
.mh-city-ico { font-size: 40px; }
.mh-city { font-size: 15px; font-weight: 700; color: #fff; }
.mh-steps { font-size: 11px; color: rgba(255,255,255,.7); }
.journey-path { background: var(--Sur); border-radius: var(--r-lg); padding: 16px; border: 1px solid var(--Bd); position: relative; }
.jp-line { position: absolute; left: 30px; top: 28px; bottom: 28px; width: 3px; background: linear-gradient(180deg,var(--Grn) 40%, var(--Bd) 40%); border-radius: 2px; }
.jp-stops { display: flex; flex-direction: column; gap: 0; }
.jp-stop { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; position: relative; z-index: 1; }
.jp-dot { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; background: #fff; border: 3px solid var(--Bd); }
.done-dot { background: var(--Grn); border-color: var(--Grn); color: #fff; }
.curr-dot { background: var(--P); border-color: var(--P); font-size: 15px; }
.lock-dot { background: #F0ECF9; border-color: #DDD6FE; }
.final-dot { background: linear-gradient(135deg,var(--Amb),var(--Red)); border-color: var(--Amb); color: #fff; font-size: 16px; }
.pulse { animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 4px rgba(27,75,181,.2); } 50% { box-shadow: 0 0 0 10px rgba(27,75,181,.1); } }
.jp-info { flex: 1; padding-top: 6px; }
.jp-info strong { font-size: 13px; font-weight: 800; color: var(--Tx); }
.jp-info p { font-size: 10px; color: var(--Tx3); }
.jp-badge { font-size: 9px; font-weight: 800; padding: 2px 8px; border-radius: 10px; background: var(--Grn); color: #fff; display: inline-block; margin: 3px 0; }
.curr-badge { background: var(--P); }
.lock-badge { background: var(--Bd); color: var(--Tx3); }
.jp-reward { font-size: 10px; color: var(--Amb); font-weight: 600; }
/* NEW Map Header */
.map-sh {
  position: relative; flex-shrink: 0;
  background: linear-gradient(145deg, #0A1F5C 0%, #1B4BB5 55%, #00B4C8 100%);
}
.map-sh-bg { display: none; /* merged into .map-sh */ }
.map-sh-content { position: relative; z-index: 2; padding: 36px 16px 16px; }
.map-sh-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.map-current-city {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-md); padding: 12px;
}
.mcc-icon { font-size: 36px; flex-shrink: 0; }
.mcc-info { flex: 1; }
.mcc-label { font-size: 9px; font-weight: 700; color: rgba(255,255,255,.6); letter-spacing: .6px; text-transform: uppercase; }
.mcc-city { font-size: 20px; font-weight: 900; color: #fff; line-height: 1.1; }
.mcc-steps { font-size: 10px; color: rgba(255,255,255,.65); margin-top: 2px; }
.mcc-pct { font-size: 22px; font-weight: 900; color: var(--Tl); }
.map-progress-outer { height: 6px; background: rgba(255,255,255,.2); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.map-progress-inner { height: 100%; background: linear-gradient(90deg,#34D399,var(--Tl)); border-radius: 3px; transition: width .8s ease; }
/* Journey Cards */
.journey-cards { display: flex; flex-direction: column; gap: 0; }
.jc-card {
  display: flex; gap: 0; padding: 0 2px;
  background: transparent;
}
.jc-card.jc-current .jc-body {
  background: linear-gradient(135deg,#EFF6FF,#fff);
  border-color: var(--P); border-width: 1.5px;
}
.jc-card.jc-final .jc-body {
  background: linear-gradient(135deg,#FEF3C7,#fff);
  border-color: var(--Amb); border-width: 1.5px;
}
.jc-left { display: flex; flex-direction: column; align-items: center; width: 44px; flex-shrink: 0; }
.jc-dot {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0;
  z-index: 1; position: relative;
}
.jcd-done { background: var(--Grn); color: #fff; border: none; }
.jcd-curr { background: var(--P); color: #fff; font-size: 14px; animation: pulseDot 2s ease-in-out infinite; }
.jcd-locked { background: #F1F5F9; border: 2px solid #E2E8F0; color: #94A3B8; }
.jcd-final { background: linear-gradient(135deg,var(--Amb),#EF4444); color: #fff; font-size: 16px; }
.jc-line { flex: 1; width: 2px; background: var(--Bd); margin: 2px 0; min-height: 14px; }
.jcl-done { background: var(--Grn); }
.jc-body {
  flex: 1; background: #fff; border: 1px solid var(--Bd);
  border-radius: var(--r-md); margin: 4px 0; padding: 10px 12px;
  box-shadow: var(--sh-sm);
}
.jc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.jc-city { font-size: 13px; font-weight: 800; color: var(--Tx); }
.jc-dist { font-size: 10px; color: var(--Tx3); }
.jc-badge { font-size: 9px; font-weight: 800; padding: 2px 8px; border-radius: 10px; white-space: nowrap; flex-shrink: 0; }
.jcb-done { background: var(--GrnL); color: var(--GrnD); }
.jcb-curr { background: var(--PPale); color: var(--P); }
.jcb-locked { background: #F1F5F9; color: #94A3B8; }
.jcb-final { background: var(--AmbL); color: #92400E; }
.jc-reward { font-size: 10px; color: var(--Amb); font-weight: 600; }
.jc-curr-progress { margin-top: 6px; }
.jcp-bar { height: 5px; border-radius: 3px; background: var(--PPale); overflow: hidden; margin-bottom: 4px; }
.jcp-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg,var(--P),var(--Tl)); transition: width .8s ease; }
.jcp-text { font-size: 9px; color: var(--Tx3); font-weight: 600; }

/* ┌─────────────────────────────────────────
   │ HADIAH / REWARD - REDESIGNED
   └───────────────────────────────────────── */
/* New GP Balance Card */
.rh-gp-card {
  background: linear-gradient(145deg, var(--P), var(--Tl));
  border-radius: var(--r-lg); padding: 16px; flex-shrink: 0;
  box-shadow: 0 6px 28px rgba(27,75,181,.35);
}
.rh-gp-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.rh-gp-label { font-size: 9px; font-weight: 800; color: rgba(255,255,255,.65); letter-spacing: .8px; text-transform: uppercase; margin-bottom: 4px; }
.rh-gp-amt { font-size: 36px; font-weight: 900; color: #fff; line-height: 1; }
.rh-gp-amt span { font-size: 18px; font-weight: 600; opacity: .8; }
.rh-gp-coin { font-size: 40px; }
.rh-tier-info { display: flex; align-items: center; gap: 10px; }
.rh-tier-chip { background: rgba(255,255,255,.2); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 14px; flex-shrink: 0; }
.rh-tier-bar-new { height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; overflow: hidden; }
/* Quick buttons grid */
.rh-quick-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.rh-quick-btn {
  background: rgba(27,75,181,.06); border: 1.5px solid var(--Bd);
  border-radius: var(--r-md); padding: 12px 4px; text-align: center;
  cursor: pointer; transition: all .15s;
}
.rh-quick-btn:hover { background: var(--PPale); border-color: var(--P); }
.rh-quick-btn span { font-size: 24px; display: block; margin-bottom: 4px; }
.rh-quick-btn p { font-size: 10px; font-weight: 700; color: var(--Tx2); }
/* Today GP row */
.rh-today-gp {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 6px;
  background: linear-gradient(135deg,var(--PPale),#EFF6FF);
  border-radius: var(--r-md); padding: 10px;
}
.rtg-item { text-align: center; }
.rtg-item span { font-size: 18px; }
.rtg-item p { font-size: 9px; color: var(--Tx3); font-weight: 600; margin: 2px 0; }
.rtg-item strong { font-size: 11px; font-weight: 800; color: var(--P); }
/* Mission list improvements */
.mr-ico-wrap {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--Sur); border: 1px solid var(--Bd);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.done-ico { background: var(--GrnL); border-color: #A7F3D0; }
.mr-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.mr-prog { height: 4px; background: var(--Bd); border-radius: 2px; overflow: hidden; margin-top: 4px; }
/* Keep backward compat */
.reward-hero { background: linear-gradient(145deg,#0A2B7E,#1B4BB5); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.rh-balance { }
.rh-points { font-size: 36px; font-weight: 900; color: #fff; }
.rh-points span { font-size: 18px; font-weight: 600; opacity: .8; }
.rh-tier { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.rh-tier-badge { background: rgba(255,255,255,.2); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 14px; }
.rh-tier-bar { height: 4px; background: rgba(255,255,255,.2); border-radius: 2px; overflow: hidden; }
.rh-shortcuts { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.rhs { background: rgba(255,255,255,.15); border-radius: 12px; padding: 10px 4px; text-align: center; cursor: pointer; transition: background .15s; }
.rhs:hover { background: rgba(255,255,255,.25); }
.rhs span { font-size: 22px; display: block; margin-bottom: 4px; }
.rhs p { font-size: 9px; font-weight: 700; color: rgba(255,255,255,.85); }
.mission-list-r { display: flex; flex-direction: column; gap: 7px; }
.mr-item { display: flex; align-items: center; gap: 10px; background: var(--Sur); border: 1px solid var(--Bd); border-radius: var(--r-md); padding: 11px; }
.mr-item.done-mr { background: var(--GrnL); border-color: #A7F3D0; }
.mr-ico { font-size: 18px; flex-shrink: 0; }
.mr-info { flex: 1; }
.mr-info p { font-size: 12px; font-weight: 600; color: var(--Tx); }
.mr-info small { font-size: 9px; color: var(--Tx3); }
.mr-gp { font-size: 12px; font-weight: 800; color: var(--Amb); }
.done-gp { color: var(--Grn); }
.featured-rewards { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; padding-bottom: 4px; }
.featured-rewards::-webkit-scrollbar { display: none; }
.fr-card { flex-shrink: 0; width: 100px; background: var(--Sur); border: 1px solid var(--Bd); border-radius: var(--r-md); padding: 12px 8px; text-align: center; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.fr-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.fr-img { font-size: 28px; margin-bottom: 4px; }
.fr-name { font-size: 9px; font-weight: 700; color: var(--Tx); line-height: 1.3; }
.fr-brand { font-size: 8px; color: var(--Tx3); margin-top: 1px; }
.fr-pts { font-size: 11px; font-weight: 800; color: var(--P); margin-top: 4px; }
/* Blue button variant */
.btn-sm-blue {
  padding: 6px 12px; border-radius: 16px; border: none;
  background: var(--Tl); color: #fff; font-size: 10px;
  font-weight: 700; cursor: pointer; font-family: var(--font);
  flex-shrink: 0; transition: opacity .15s;
}
.btn-sm-blue:hover { opacity: .85; }

/* ┌─────────────────────────────────────────
   │ MARKETPLACE / TOKO
   └───────────────────────────────────────── */
.toko-balance { font-size: 11px; font-weight: 800; color: var(--Amb); }
.toko-filter { display: flex; gap: 6px; padding: 10px 14px; overflow-x: auto; scrollbar-width: none; background: var(--Sur); border-bottom: 1px solid var(--Bd); flex-shrink: 0; }
.toko-filter::-webkit-scrollbar { display: none; }
.tf { padding: 5px 12px; border-radius: 16px; border: 1.5px solid var(--Bd); background: var(--Sur); font-size: 10px; font-weight: 700; color: var(--Tx3); cursor: pointer; font-family: var(--font); white-space: nowrap; transition: all .15s; }
.active-tf { background: var(--P); border-color: var(--P); color: #fff; }
.tf:not(.active-tf):hover { border-color: var(--P); color: var(--P); }
.toko-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tg-card { background: var(--Sur); border: 1px solid var(--Bd); border-radius: var(--r-md); padding: 14px 10px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tg-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--PM); }
.tg-img { font-size: 36px; }
.tg-name { font-size: 11px; font-weight: 700; color: var(--Tx); line-height: 1.3; }
.tg-brand { font-size: 9px; color: var(--Tx3); }
.tg-pts { font-size: 14px; font-weight: 900; color: var(--Amb); margin: 2px 0; }
.tg-btn { padding: 5px 14px; border-radius: 12px; border: none; background: linear-gradient(135deg,var(--P),var(--PM)); color: #fff; font-size: 10px; font-weight: 700; cursor: pointer; font-family: var(--font); transition: opacity .15s; }
.tg-btn:hover { opacity: .85; }

/* ┌─────────────────────────────────────────
   │ PROFILE
   └───────────────────────────────────────── */
.prof-header {
  background: linear-gradient(145deg, var(--Dk), var(--P));
  flex-shrink: 0; position: relative;
  display: flex; flex-direction: column;
}
.prof-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 36px 16px 0;
}
.prof-av-area { width: 100%; display: flex; flex-direction: column; align-items: center; padding: 12px 16px 24px; }
.prof-av { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg,var(--P),var(--Tl)); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 900; color: #fff; margin-bottom: 8px; border: 3px solid rgba(255,255,255,.3); }
.prof-name { font-size: 20px; font-weight: 900; color: #fff; }
.prof-email { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 2px; }
.prof-tier-badge { margin-top: 8px; background: rgba(255,255,255,.2); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 14px; }
.prof-body { background: var(--Sur2); }
.prof-score-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 10px; }
.psr { background: var(--Sur); border-radius: var(--r-md); padding: 12px 8px; text-align: center; border: 1px solid var(--Bd); box-shadow: var(--sh-sm); display: flex; flex-direction: column; align-items: center; gap: 4px; overflow: hidden; }
.psr-ico { width: 34px; height: 34px; min-width: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; align-self: center; }
.psr-val { font-size: 20px; font-weight: 900; color: var(--P); line-height: 1; }
.psr-lbl { font-size: 9px; color: var(--Tx3); font-weight: 600; margin-top: 3px; }
.dna-card { background: linear-gradient(135deg,var(--GrnL),#fff); border: 1px solid #A7F3D0; border-radius: var(--r-md); padding: 13px; flex-shrink: 0; }
.dna-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dna-traits { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; margin-top: 0; }
.dna-trait { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.7); border-radius: 8px; padding: 6px 8px; }
.dna-trait span { font-size: 16px; }
.dna-trait p { font-size: 11px; font-weight: 600; color: #065F46; }
.otb-badge { background: linear-gradient(135deg,var(--P),var(--Grn)); color: #fff; font-size: 8px; font-weight: 800; padding: 2px 6px; border-radius: 6px; margin-left: auto; white-space: nowrap; }
.family-card { background: linear-gradient(135deg,#EFF6FF,#fff); border: 1px solid #BFDBFE; border-radius: var(--r-md); padding: 13px; cursor: pointer; flex-shrink: 0; }
.family-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.family-members { display: flex; gap: 12px; margin-top: 8px; }
.fm { text-align: center; }
.fm-av { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: #fff; margin: 0 auto 4px; }
.fm p { font-size: 9px; color: var(--Tx3); font-weight: 600; }
.fm-score { font-size: 11px; font-weight: 800; color: var(--P); }
.menu-groups { display: flex; flex-direction: column; gap: 6px; }
.mg-label { font-size: 10px; font-weight: 800; letter-spacing: 1px; color: var(--Tx3); text-transform: uppercase; padding: 4px 4px 2px; }
.mi { display: flex; align-items: center; gap: 12px; padding: 11px 12px; background: var(--Sur); border-radius: var(--r-md); cursor: pointer; border: 1px solid var(--Bd); font-size: 13px; font-weight: 600; color: var(--Tx); transition: background .15s; }
.mi:hover { background: var(--PUltra); }
.mi-ico { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.mi span:first-child { font-size: 18px; }
.mi p { flex: 1; }
.mi span:last-child { font-size: 13px; color: var(--Tx3); }
.premium-mi { border-color: #FDE68A; background: linear-gradient(135deg,#FFFBEB,#fff); }
.prem-lbl { background: linear-gradient(135deg,var(--Amb),var(--Red)); color: #fff; font-size: 10px; font-weight: 900; padding: 3px 8px; border-radius: 8px; }

/* ┌─────────────────────────────────────────
   │ RIGHT PANEL
   └───────────────────────────────────────── */
.right-panel { background: var(--Sur); border-left: 1.5px solid var(--Bd); overflow-y: auto; scrollbar-width: thin; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.rp-hd { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--Bd); }
.rp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--Bd); }
.active-dot { background: var(--Grn); box-shadow: 0 0 6px var(--Grn); animation: greenPulse 1.5s infinite; }
@keyframes greenPulse { 0%,100% { box-shadow: 0 0 4px var(--Grn); } 50% { box-shadow: 0 0 10px var(--Grn); } }
.rp-screen-lbl { font-size: 13px; font-weight: 800; color: var(--P); }
.rp-section { display: flex; flex-direction: column; gap: 6px; }
.rp-ttl { font-size: 11px; font-weight: 800; color: var(--Tx); border-bottom: 2px solid var(--PPale); padding-bottom: 4px; }
.rp-desc { font-size: 11px; color: var(--Tx2); line-height: 1.6; background: var(--PUltra); padding: 8px 10px; border-radius: var(--r-sm); }
.integration-map { display: flex; flex-direction: column; gap: 5px; }
.im-item { font-size: 10px; color: var(--Tx2); background: var(--BG); padding: 5px 8px; border-radius: 8px; display: flex; align-items: center; gap: 6px; }
.persona-rel { display: flex; flex-direction: column; gap: 5px; }
.pr-row { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--Tx2); }
.pr-chip { font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 10px; white-space: nowrap; }
.gen-z { background: linear-gradient(135deg,#EDE9FE,#DDD6FE); color: var(--P); }
.millenial { background: linear-gradient(135deg,#DBEAFE,#BFDBFE); color: #1D4ED8; }
.iburt { background: linear-gradient(135deg,#FCE7F3,#FBCFE8); color: #9D174D; }
.pekerja { background: linear-gradient(135deg,#FEF3C7,#FDE68A); color: #92400E; }
.design-principles { display: flex; flex-direction: column; gap: 5px; }
.dp-item { font-size: 10px; color: var(--Tx2); display: flex; gap: 6px; line-height: 1.4; }
.metrics-pred { display: flex; flex-direction: column; gap: 6px; }
.mp-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--Tx2); background: var(--BG); padding: 5px 8px; border-radius: 8px; }
.mp-row strong { font-weight: 800; color: var(--P); }
.gap-compare { display: flex; flex-direction: column; gap: 6px; }
.gc-row { display: flex; align-items: center; gap: 6px; font-size: 10px; }
.gc-bad { font-size: 11px; }
.gc-arr { color: var(--Tx3); flex-shrink: 0; }
.gc-good { font-weight: 700; color: var(--Grn); }

/* ┌─────────────────────────────────────────
   │ MODALS
   └───────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 9999; animation: fadeBg .2s ease; }
.modal-bg.open { display: flex; }
@keyframes fadeBg { from { opacity: 0; } to { opacity: 1; } }
.modal-box { background: var(--Sur); border-radius: var(--r-xl); padding: 28px 24px; width: 310px; max-width: 90vw; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: scaleIn .25s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
@keyframes scaleIn { from { opacity: 0; transform: scale(.88) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-ico { font-size: 52px; }
.modal-box h3 { font-size: 18px; font-weight: 800; color: var(--Tx); }
.m-pts { font-size: 22px; font-weight: 900; color: var(--P); }
.btn-cancel-m { width: 100%; padding: 10px; border-radius: var(--r-sm); border: 1px solid var(--Bd); background: #fff; font-size: 13px; font-weight: 600; color: var(--Tx3); cursor: pointer; font-family: var(--font); }

/* ┌─────────────────────────────────────────
   │ TOAST
   └───────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--Dk); color: #fff; padding: 10px 18px;
  border-radius: 20px; font-size: 12px; font-weight: 600;
  z-index: 99999; white-space: nowrap; opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none; font-family: var(--font);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ┌─────────────────────────────────────────
   │ UTILS & ANIMATIONS
   └───────────────────────────────────────── */
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: .7; } }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--PPale); border-radius: 2px; }

/* ┌─────────────────────────────────────────
   │ RESPONSIVE
   └───────────────────────────────────────── */
@media (max-width: 1200px) { .app-shell { grid-template-columns: 240px 1fr 260px; } }
@media (max-width: 1000px) { .app-shell { grid-template-columns: 220px 1fr; } .right-panel { display: none; } }
@media (max-width: 680px) { .app-shell { grid-template-columns: 1fr; } .sidebar { display: none; } .phone-frame { width: 100vw; height: 100vh; border-radius: 0; box-shadow: none; } }
