/* ==========================================================================
   screens.css — Faithful reproductions of the real Sybo.ai app screens
   Rebuilt 1:1 from the React Native source (src/components/templates/V5/*,
   src/theme/Colors.js). API-driven areas are filled with realistic mock data.
   Rendered inside the shared .phone / .phone__screen device frame.
   ========================================================================== */


/* Screen-local tokens (resolved straight from the app's Colors.js) */
.v5 {
  --sky: #1E8EE0;
  --sky2: #2D9DF0;
  --scr-bg: #F4F7FB;
  --card: #FFFFFF;
  --ink: #0F172A;
  --ink2: #64748B;
  --ink3: #94A3B8;
  --line: #E2E8F0;
  --m-text: #4DA3FF;  --m-text-bg: #E7F1FF;
  --m-voice: #22C55E; --m-voice-bg: #E6F8EC;
  --m-avatar: #F59E0B;--m-avatar-bg: #FEF3DC;
  --m-asst: #A855F7;  --m-asst-bg: #F1E6FE;
  --violet: #7C3AED;  --violet-bg: rgba(124,58,237,0.08); --violet-br: rgba(124,58,237,0.17);
  --danger: #E1353C;
  --dot: #F97316;

  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink);
  background: var(--scr-bg);
  overflow: hidden;
}
.v5 * { box-sizing: border-box; }
.v5 svg { display: block; }

/* Status bar — tinted variant sits on the blue hero */
.v5 .mock-status { padding: 12px 16px 4px; }
.v5 .mock-status--light { color: #fff; }
.v5 .mock-status--light .dots span { background: #fff; opacity: .95; }

/* Scrollable body area (clipped like a real viewport) */
.v5-body { flex: 1; min-height: 0; overflow: hidden; }
.v5-body--pad { padding: 10px 12px 12px; }

/* --------------------------------------------------------------------------
   Blue hero header + white curve — shared by Home, Conversations, Avatars,
   Memory, Settings (each screen recolors --hero)
   -------------------------------------------------------------------------- */
.v5-hero {
  --hero: var(--sky);
  position: relative;
  background: var(--hero);
  color: #fff;
  padding: 4px 14px 20px;
  overflow: hidden;
}
.v5-hero__blob {
  position: absolute; top: -60px; right: -48px;
  width: 170px; height: 170px; border-radius: 50%;
  background: rgba(255,255,255,0.09);
}
.v5-curve {
  height: 18px; margin-top: -12px;
  background: var(--scr-bg);
  border-radius: 22px 22px 0 0;
  position: relative; z-index: 2;
}

/* --------------------------------------------------------------------------
   Bottom tab bar
   -------------------------------------------------------------------------- */
.v5-tabs {
  display: flex; align-items: center;
  background: #fff; border-top: 1px solid var(--line);
  padding: 5px 2px 6px;
}
.v5-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--ink2); position: relative;
}
.v5-tab svg { width: 19px; height: 19px; }
.v5-tab span { font-size: 8.5px; font-weight: 500; }
.v5-tab.is-active { color: var(--m-text); }
.v5-tab__badge {
  position: absolute; top: -4px; right: 50%; transform: translateX(16px);
  min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px;
  background: var(--dot); color: #fff; font-size: 8px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}

/* --------------------------------------------------------------------------
   Reusable portrait avatar (stand-in for user photos) — CSS silhouette
   -------------------------------------------------------------------------- */
.v5-por {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--p1,#8FbCff), var(--p2,#5b7cf0));
}
.v5-por::before { /* head */
  content: ""; position: absolute; left: 50%; top: 30%;
  width: 34%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: rgba(255,255,255,0.9);
}
.v5-por::after { /* shoulders */
  content: ""; position: absolute; left: 50%; bottom: -18%;
  width: 74%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: rgba(255,255,255,0.85);
}
.v5-por--rose   { --p1:#ffd3c9; --p2:#f6a08c; }
.v5-por--violet { --p1:#d9c9ff; --p2:#9b7cf0; }
.v5-por--blue   { --p1:#bfe0ff; --p2:#5aa0f0; }
.v5-por--amber  { --p1:#ffe3ad; --p2:#f0b95a; }
.v5-por--green  { --p1:#bff0d3; --p2:#5ad08c; }
.v5-por--teal   { --p1:#bff0ec; --p2:#43b8ad; }

/* ==========================================================================
   1. HOME DASHBOARD
   ========================================================================== */
.v5-greet { display: flex; align-items: center; gap: 10px; padding: 2px 2px 8px; }
.v5-greet__ava {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff;
  position: relative; flex-shrink: 0;
}
.v5-greet__ava .v5-dot {
  position: absolute; right: 0; bottom: 0; width: 11px; height: 11px;
  border-radius: 50%; background: var(--m-voice); border: 2px solid #fff;
}
.v5-greet__info { flex: 1; min-width: 0; }
.v5-greet__hi { font-size: 10px; opacity: .9; }
.v5-greet__name { font-size: 15px; font-weight: 700; line-height: 1.2; }
.v5-pill-premium {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px; padding: 3px 8px; font-size: 9px; font-weight: 600;
}
.v5-pill-premium svg { width: 11px; height: 11px; }
.v5-bell {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.15); display: grid; place-items: center; position: relative;
}
.v5-bell svg { width: 16px; height: 16px; }
.v5-bell__badge {
  position: absolute; top: -3px; right: -3px; min-width: 15px; height: 15px;
  padding: 0 3px; border-radius: 8px; background: var(--dot); border: 1.5px solid var(--sky);
  color: #fff; font-size: 8px; font-weight: 700; display: grid; place-items: center; line-height: 1;
}

.v5-stats { display: flex; gap: 6px; margin-top: 2px; }
.v5-stat {
  flex: 1; text-align: center; border-radius: 12px; padding: 7px 2px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.22);
}
.v5-stat b { display: block; font-size: 17px; font-weight: 700; line-height: 1.1; }
.v5-stat span { font-size: 7.5px; font-weight: 600; opacity: .9; letter-spacing: .5px; }

.v5-newconv {
  background: #fff; border-radius: 14px; padding: 11px; margin-top: 12px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.08); color: var(--ink);
}
.v5-newconv__top { display: flex; justify-content: space-between; align-items: flex-start; }
.v5-newconv__title { font-size: 13px; font-weight: 700; }
.v5-newconv__sub { font-size: 9.5px; color: var(--ink2); margin-top: 2px; }
.v5-newconv__badge {
  border-radius: 999px; padding: 3px 8px; font-size: 8.5px; font-weight: 700; white-space: nowrap;
  background: var(--m-text-bg); border: 1px solid var(--sky); color: var(--sky);
}
.v5-modes { display: flex; gap: 6px; margin-top: 11px; }
.v5-mode {
  flex: 1; border: 1px solid var(--line); background: #F8FAFC; border-radius: 11px;
  padding: 9px 2px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  position: relative;
}
.v5-mode__ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.v5-mode__ic svg { width: 16px; height: 16px; color: var(--ink2); }
.v5-mode span { font-size: 9.5px; color: var(--ink2); font-weight: 500; }
.v5-mode.is-active { border-color: var(--ac); }
.v5-mode.is-active .v5-mode__ic { background: var(--acbg); }
.v5-mode.is-active .v5-mode__ic svg { color: var(--ac); }
.v5-mode.is-active span { color: var(--ac); font-weight: 700; }
.v5-mode.is-active::after {
  content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--ac);
}
.v5-mode--text   { --ac: var(--sky);     --acbg: var(--m-text-bg); }
.v5-mode--voice  { --ac: var(--m-voice); --acbg: var(--m-voice-bg); }
.v5-mode--avatar { --ac: var(--m-avatar);--acbg: var(--m-avatar-bg); }
.v5-mode--asst   { --ac: var(--m-asst);  --acbg: var(--m-asst-bg); }
.v5-startbtn {
  margin-top: 11px; height: 36px; border-radius: 11px; background: var(--sky);
  color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; gap: 6px;
}
.v5-startbtn svg { width: 15px; height: 15px; }

/* Section headers */
.v5-sec { display: flex; align-items: center; justify-content: space-between; margin: 14px 2px 8px; }
.v5-sec h3 { font-size: 14px; font-weight: 700; }
.v5-seeall { display: inline-flex; align-items: center; gap: 2px; color: var(--sky); font-size: 11px; font-weight: 500; }
.v5-seeall svg { width: 12px; height: 12px; }

/* Avatars row (home) */
.v5-avrow { display: flex; gap: 9px; }
.v5-avcard {
  flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.v5-avcard__thumb { width: 100%; aspect-ratio: .78; }
.v5-avcard__name { font-size: 10px; font-weight: 600; padding: 5px 7px 0; }
.v5-avpill {
  display: inline-flex; align-items: center; gap: 2px; margin: 3px 7px 7px;
  border-radius: 999px; padding: 1px 6px; font-size: 8px; font-weight: 700;
}
.v5-avpill svg { width: 8px; height: 8px; }
.v5-pill-ready   { background: #DCFCE7; color: #15803D; }
.v5-pill-active  { background: #DBEAFE; color: #1D4ED8; }
.v5-pill-pending { background: #FFEDD5; color: #C2410C; }
.v5-avnew {
  flex: 1; border: 1.5px dashed var(--line); border-radius: 12px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--ink2); font-size: 10px;
}
.v5-avnew svg { width: 18px; height: 18px; }

/* Recent conversations rows */
.v5-crow {
  position: relative; display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 10px 10px 10px 13px; margin-bottom: 7px; overflow: hidden;
}
.v5-crow__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ac,var(--m-text)); }
.v5-crow__ic { width: 34px; height: 34px; border-radius: 10px; background: var(--acbg,var(--m-text-bg)); display: grid; place-items: center; flex-shrink: 0; }
.v5-crow__ic svg { width: 16px; height: 16px; color: var(--ac,var(--m-text)); }
.v5-crow__body { flex: 1; min-width: 0; }
.v5-crow__title { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v5-crow__prev { font-size: 10px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.v5-crow__right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.v5-crow__time { font-size: 9px; color: var(--ink3); }
.v5-crow__tag { border-radius: 999px; padding: 1px 7px; font-size: 8.5px; font-weight: 700; background: var(--acbg,var(--m-text-bg)); color: var(--ac,var(--m-text)); }
.v5-crow--text   { --ac: var(--m-text);   --acbg: var(--m-text-bg); }
.v5-crow--voice  { --ac: var(--m-voice);  --acbg: var(--m-voice-bg); }
.v5-crow--avatar { --ac: var(--m-avatar); --acbg: var(--m-avatar-bg); }

/* Custom (personalized) badge on a conversation */
.v5-custom {
  display: inline-flex; align-items: center; gap: 2px; margin-left: 5px;
  border: 1px solid var(--m-asst); color: var(--m-asst); border-radius: 999px;
  padding: 0 5px; font-size: 8px; font-weight: 700; vertical-align: middle;
}
.v5-custom svg { width: 8px; height: 8px; }

/* Topic assistants */
.v5-topics { display: flex; gap: 9px; }
.v5-topic {
  flex: 1; aspect-ratio: .57; border-radius: 12px; overflow: hidden; position: relative;
  display: flex; align-items: flex-end;
}
.v5-topic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.78));
}
.v5-topic__cap { position: relative; z-index: 2; padding: 7px; color: #fff; }
.v5-topic__cap b { display: block; font-size: 10px; font-weight: 600; }
.v5-topic__cap span { font-size: 9px; color: rgba(255,255,255,0.85); }

/* Memory teaser card (home) */
.v5-memteaser {
  background: linear-gradient(135deg, rgba(124,58,237,0.07), rgba(124,58,237,0.02));
  border: 1px solid var(--violet-br); border-radius: 14px; padding: 12px;
}
.v5-memteaser__top { display: flex; align-items: center; gap: 9px; }
.v5-memteaser__ic { width: 34px; height: 34px; border-radius: 10px; background: var(--violet-bg); display: grid; place-items: center; }
.v5-memteaser__ic svg { width: 18px; height: 18px; color: var(--violet); }
.v5-memteaser__t { flex: 1; }
.v5-memteaser__t b { font-size: 13px; font-weight: 700; }
.v5-memteaser__t span { display: block; font-size: 10px; color: var(--ink2); }
.v5-memteaser__manage { color: var(--violet); font-size: 11px; font-weight: 600; }
.v5-memtags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.v5-memtag {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--violet-bg); border: 1px solid var(--violet-br); border-radius: 9px;
  padding: 4px 8px; color: var(--violet); font-size: 10px; font-weight: 600;
}
.v5-memtag svg { width: 11px; height: 11px; }

/* ==========================================================================
   2. CONVERSATIONS LIST
   ========================================================================== */
.v5-hdrtitle { font-size: 17px; font-weight: 700; padding: 4px 2px 0; }
.v5-hdrsub { font-size: 10.5px; opacity: .88; padding: 0 2px 10px; }
.v5-cstats { display: flex; gap: 6px; }
.v5-cstat {
  flex: 1; background: rgba(255,255,255,0.18); border-radius: 12px; padding: 8px 2px; text-align: center;
}
.v5-cstat b { display: block; font-size: 18px; font-weight: 700; }
.v5-cstat span { display: inline-flex; align-items: center; gap: 3px; font-size: 8px; font-weight: 600; opacity: .95; }
.v5-cstat span svg { width: 9px; height: 9px; }

.v5-searchrow { display: flex; gap: 8px; margin: 10px 0; }
.v5-search {
  flex: 1; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink3); font-size: 11px;
}
.v5-search svg { width: 15px; height: 15px; color: var(--ink3); }
.v5-filterbtn {
  width: 38px; height: 38px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center;
}
.v5-filterbtn svg { width: 17px; height: 17px; color: var(--ink2); }

.v5-chips { display: flex; gap: 6px; margin-bottom: 10px; }
.v5-chip {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 28px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 10px; font-weight: 700; color: var(--ink2);
}
.v5-chip .d { width: 7px; height: 7px; border-radius: 50%; }
.v5-chip.is-active { color: var(--ac); border-color: var(--ac); background: var(--acbg); }
.v5-chip--voice  { --ac: var(--m-voice);  --acbg: var(--m-voice-bg); }
.v5-chip--chat   { --ac: var(--m-text);   --acbg: var(--m-text-bg); }

.v5-datehdr { font-size: 9.5px; font-weight: 700; letter-spacing: 1px; color: var(--ink3); margin: 6px 2px 7px; }

/* ==========================================================================
   3. TEXT CHAT
   ========================================================================== */
.v5-chat { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #F0F0F3; }
.v5-chathdr {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; padding: 6px 12px;
}
.v5-live {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px;
  padding: 3px 10px; font-size: 10px; font-weight: 600;
  background: #ECFDF5; color: #059669;
}
.v5-live .d { width: 7px; height: 7px; border-radius: 50%; background: var(--m-voice); }
.v5-msgs { flex: 1; min-height: 0; overflow: hidden; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.v5-bin, .v5-bout { max-width: 84%; padding: 8px 11px; font-size: 11px; line-height: 1.45; }
.v5-bin {
  align-self: flex-start; background: #fff; color: #1A1A1A;
  border-radius: 16px 16px 16px 4px; box-shadow: 0 1px 3px rgba(15,23,42,0.08);
}
.v5-bout {
  align-self: flex-end; background: #2196F3; color: #fff;
  border-radius: 16px 16px 4px 16px;
}
.v5-feedback { display: flex; gap: 6px; align-self: flex-start; margin-top: -3px; }
.v5-fb {
  display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 7px; font-size: 8.5px; color: #A0AEC0;
}
.v5-fb svg { width: 10px; height: 10px; }
.v5-typing {
  align-self: flex-start; background: #fff; border-radius: 16px 16px 16px 4px;
  padding: 8px 12px; font-size: 11px; font-style: italic; color: #999;
  box-shadow: 0 1px 3px rgba(15,23,42,0.08);
}
.v5-modetabs {
  display: flex; gap: 3px; background: #E4EAF4; border-radius: 15px; padding: 3px; margin: 8px 12px 0;
}
.v5-mtab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 28px; border-radius: 13px; font-size: 10px; font-weight: 600; color: var(--ink2); position: relative;
}
.v5-mtab svg { width: 13px; height: 13px; }
.v5-mtab.is-active { background: #fdfdfc; color: var(--m-avatar); box-shadow: 0 1px 3px rgba(15,23,42,0.12); }
.v5-mtab__crown { position: absolute; top: -3px; right: 4px; color: var(--m-avatar); }
.v5-mtab__crown svg { width: 11px; height: 11px; }
.v5-inbar { display: flex; align-items: center; gap: 8px; background: #fff; padding: 8px 10px; }
.v5-inbar__attach {
  width: 34px; height: 34px; border-radius: 10px; background: #F0F4FB; border: 1px solid #E4EAF4;
  display: grid; place-items: center; flex-shrink: 0;
}
.v5-inbar__attach svg { width: 16px; height: 16px; color: #1A1A1A; }
.v5-inbar__field {
  flex: 1; background: #F0F4F8; border: 1px solid #E4EAF4; border-radius: 20px;
  min-height: 36px; display: flex; align-items: center; padding: 0 12px; color: #9AA0A6; font-size: 11px;
}
.v5-inbar__send {
  width: 34px; height: 34px; border-radius: 50%; background: #1976ED; flex-shrink: 0;
  display: grid; place-items: center;
}
.v5-inbar__send svg { width: 16px; height: 16px; color: #fff; }
.v5-unlock {
  align-self: center; display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg,#FFF4CC,#FFE49A); color: #78350F;
  border-radius: 999px; padding: 4px 12px; font-size: 9.5px; font-weight: 700;
}

/* ==========================================================================
   4. AVATAR DASHBOARD (grid)
   ========================================================================== */
.v5-createcard {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px;
  padding: 11px; color: var(--ink);
}
.v5-createcard__ic { width: 36px; height: 36px; border-radius: 10px; background: var(--m-text-bg); display: grid; place-items: center; }
.v5-createcard__ic svg { width: 17px; height: 17px; color: var(--sky); }
.v5-createcard__t { flex: 1; }
.v5-createcard__t b { font-size: 12px; font-weight: 700; }
.v5-createcard__t span { display: block; font-size: 9.5px; color: var(--ink2); }
.v5-createcard__go { width: 32px; height: 32px; border-radius: 10px; background: var(--sky); display: grid; place-items: center; }
.v5-createcard__go svg { width: 17px; height: 17px; color: #fff; }

.v5-ftabs { display: flex; gap: 5px; margin: 10px 0; overflow: hidden; }
.v5-ftab {
  height: 26px; padding: 0 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; font-size: 9.5px; font-weight: 700; color: var(--ink2); white-space: nowrap;
}
.v5-ftab.is-active { background: var(--sky); border-color: var(--sky); color: #fff; }

.v5-avgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.v5-avg {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.v5-avg__thumb { width: 100%; aspect-ratio: 4/5; }
.v5-avg__b { padding: 7px 8px 8px; }
.v5-avg__name { font-size: 11px; font-weight: 700; }
.v5-avg__desc { font-size: 9px; color: var(--ink2); line-height: 1.35; margin-top: 2px; height: 24px; overflow: hidden; }
.v5-avg__actions { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.v5-avg__icons { display: flex; gap: 5px; }
.v5-avg__ib { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.v5-avg__ib svg { width: 12px; height: 12px; }
.v5-avg__ib--edit { background: #DBEAFE; color: #1D4ED8; }
.v5-avg__ib--del  { background: var(--danger); color: #fff; }
.v5-pill-verified   { background: #D1FADF; color: #047857; }
.v5-pill-processing { background: #EDE9FE; color: #6D28D9; }
.v5-pill-failed     { background: #FEE2E2; color: #B91C1C; }
.v5-avgnew {
  border: 1.5px dashed var(--line); border-radius: 14px; background: #fff; min-height: 130px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink2); font-size: 10px; font-weight: 600;
}
.v5-avgnew__plus { width: 40px; height: 40px; border-radius: 50%; background: var(--m-text-bg); display: grid; place-items: center; }
.v5-avgnew__plus svg { width: 20px; height: 20px; color: var(--sky); }

/* ==========================================================================
   5. MEMORY
   ========================================================================== */
.v5-memcard {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px;
}
.v5-memcard__ic { width: 38px; height: 38px; border-radius: 10px; background: var(--violet-bg); display: grid; place-items: center; }
.v5-memcard__ic svg { width: 20px; height: 20px; color: var(--violet); }
.v5-memcard__t { flex: 1; }
.v5-memcard__t b { font-size: 13px; font-weight: 700; }
.v5-memcard__t span { display: block; font-size: 10px; color: var(--ink2); }
.v5-switch { width: 34px; height: 20px; border-radius: 999px; background: var(--violet); position: relative; flex-shrink: 0; }
.v5-switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }

.v5-memstats { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-top: 10px; padding: 12px 0; }
.v5-memstats > div { flex: 1; text-align: center; position: relative; }
.v5-memstats > div + div::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 1px; background: var(--line); }
.v5-memstats b { display: block; font-size: 16px; font-weight: 700; color: var(--violet); }
.v5-memstats span { font-size: 9.5px; color: var(--ink2); }

.v5-slabel { display: flex; align-items: center; gap: 8px; margin: 14px 2px 8px; }
.v5-slabel span { font-size: 9.5px; font-weight: 700; letter-spacing: 1px; color: #8899BB; }
.v5-slabel .ln { flex: 1; height: 1px; background: var(--line); }

.v5-mitem {
  display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 11px; margin-bottom: 8px;
}
.v5-mitem__ic { width: 34px; height: 34px; border-radius: 10px; background: var(--violet-bg); display: grid; place-items: center; flex-shrink: 0; }
.v5-mitem__ic svg { width: 16px; height: 16px; color: var(--violet); }
.v5-mitem__b { flex: 1; min-width: 0; }
.v5-mitem__t { font-size: 12px; font-weight: 700; }
.v5-mitem__d { font-size: 10px; color: var(--ink2); line-height: 1.4; margin-top: 2px; }
.v5-mitem__m { font-size: 9px; color: var(--ink3); margin-top: 5px; }
.v5-mitem__del { padding: 5px; border-radius: 8px; background: rgba(225,53,60,0.08); display: grid; place-items: center; }
.v5-mitem__del svg { width: 14px; height: 14px; color: var(--danger); }
.v5-clearall {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px;
  background: rgba(225,53,60,0.06); border: 1px solid rgba(225,53,60,0.18); border-radius: 12px;
  padding: 10px; color: var(--danger); font-size: 11px; font-weight: 600;
}
.v5-clearall svg { width: 15px; height: 15px; }

/* ==========================================================================
   6. SETTINGS
   ========================================================================== */
.v5-set-hero { --hero: var(--sky); }
.v5-profcard {
  display: flex; align-items: center; gap: 10px; margin-top: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px; padding: 10px;
}
.v5-profcard__ava { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; flex-shrink: 0; }
.v5-profcard__t { flex: 1; min-width: 0; }
.v5-profcard__name { font-size: 14px; font-weight: 700; }
.v5-planpill {
  display: inline-flex; align-items: center; gap: 3px; margin-top: 3px;
  background: #C9B566; color: #3B3416; border-radius: 999px; padding: 2px 8px; font-size: 9px; font-weight: 700;
}
.v5-planpill svg { width: 9px; height: 9px; }
.v5-profcard__go { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.18); display: grid; place-items: center; flex-shrink: 0; }
.v5-profcard__go svg { width: 16px; height: 16px; }

.v5-tokens {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 12px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.08); margin-bottom: 4px;
}
.v5-tokens__ic {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg,#F9CE4B,#EFA82A); display: grid; place-items: center;
  color: #fff; font-size: 17px; font-weight: 700;
}
.v5-tokens__t { flex: 1; }
.v5-tokens__t b { font-size: 13px; font-weight: 700; }
.v5-tokens__t span { display: block; font-size: 10px; color: var(--ink2); }
.v5-tokens__t span em { color: var(--sky); font-style: normal; font-weight: 600; }
.v5-tokens__num { font-size: 17px; font-weight: 700; }
.v5-tokens__num i { color: var(--ink3); font-style: normal; font-size: 12px; }
.v5-bar { grid-column: 1/-1; height: 6px; border-radius: 3px; background: #EEF1F5; margin-top: 8px; overflow: hidden; }
.v5-bar > i { display: block; height: 100%; background: #4EC77D; border-radius: 3px; }

.v5-setlabel { font-size: 9.5px; font-weight: 700; letter-spacing: 1px; color: var(--ink3); margin: 12px 2px 7px; }
.v5-setcard { background: #fff; border-radius: 16px; overflow: hidden; }
.v5-setrow { display: flex; align-items: center; gap: 10px; padding: 10px 11px; }
.v5-setrow + .v5-setrow { border-top: 1px solid #F1F5F9; }
.v5-setrow__ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.v5-setrow__ic svg { width: 16px; height: 16px; }
.v5-setrow__t { flex: 1; min-width: 0; }
.v5-setrow__t b { font-size: 11.5px; font-weight: 600; color: #0B1930; }
.v5-setrow__t span { display: block; font-size: 9.5px; color: #8596B2; }
.v5-setrow__go { color: var(--ink3); }
.v5-setrow__go svg { width: 16px; height: 16px; }
.v5-setrow__chip { font-size: 9.5px; color: var(--ink2); }
.v5-ic-amber { background: #FEF3DC; color: #F59E0B; }
.v5-ic-blue  { background: #E7F1FF; color: #1E8EE0; }
.v5-ic-indigo{ background: #EEEBFF; color: #5265FF; }
.v5-ic-red   { background: #FEE2E2; color: #E1353C; }
.v5-ic-gray  { background: #F0F4FB; color: #64748B; }
.v5-setrow--danger b { color: var(--danger); }

/* ==========================================================================
   7. CHOOSE PLAN
   ========================================================================== */
.v5-plan-scr { background: #fff; }
.v5-plan-hero {
  background: linear-gradient(180deg,#1585D1 0%,#1585D1 18%,#185A87 65%,#0C486F 100%);
  color: #fff; text-align: center; padding: 6px 16px 16px; position: relative;
}
.v5-plan-hero h2 { font-size: 18px; font-weight: 700; line-height: 1.2; }
.v5-plan-hero h2 em { color: #FFA500; font-style: normal; }
.v5-plan-hero p { font-size: 10px; opacity: .82; margin-top: 4px; }
.v5-plan-faces { display: flex; justify-content: center; margin-top: 8px; }
.v5-plan-faces .v5-por { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #185A87; margin-left: -8px; }
.v5-plan-faces .v5-por:first-child { margin-left: 0; }

.v5-billtoggle { display: flex; background: #F0F2F5; border-radius: 12px; padding: 3px; margin: 12px 0; }
.v5-billtoggle > div { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; height: 28px; border-radius: 10px; font-size: 11px; font-weight: 600; color: #666; }
.v5-billtoggle > div .d { width: 7px; height: 7px; border-radius: 50%; background: #999; }
.v5-billtoggle > div.is-active { background: #1585D1; color: #fff; }
.v5-billtoggle > div.is-active .d { background: #fff; }
.v5-savebadge { background: #4CAF50; color: #fff; font-size: 8px; font-weight: 700; border-radius: 6px; padding: 1px 5px; }

.v5-plans { display: flex; gap: 8px; }
.v5-plan {
  flex: 1; border: 1px solid #E5E7EB; border-radius: 14px; padding: 10px; background: #fff; position: relative;
}
.v5-plan__name { font-size: 14px; font-weight: 700; color: #1A1A2E; }
.v5-plan__tag { font-size: 8px; color: #888; }
.v5-plan__price { font-size: 18px; font-weight: 700; color: #111; margin: 4px 0 8px; }
.v5-plan__price small { font-size: 10px; font-weight: 500; color: #888; }
.v5-tokenbox { background: #F0F6FF; border: 1px solid #CFE0F6; border-radius: 10px; padding: 7px; display: flex; align-items: center; gap: 6px; }
.v5-tokenbox__ic { width: 24px; height: 24px; border-radius: 7px; background: #F5B729; display: grid; place-items: center; color: #fff; }
.v5-tokenbox__ic svg { width: 14px; height: 14px; }
.v5-tokenbox b { font-size: 11px; color: #1585D1; }
.v5-tokenbox span { display: block; font-size: 7.5px; color: #888; letter-spacing: .3px; }
.v5-feat { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.v5-feat__ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; }
.v5-feat__ic svg { width: 14px; height: 14px; }
.v5-feat__t b { font-size: 10px; font-weight: 600; color: #1A1A2E; }
.v5-feat__t span { display: block; font-size: 8px; color: #888; }

.v5-plan--premium {
  background: linear-gradient(135deg,#2E9BE0,#1567A8); border: 2.5px solid #FFD34D; color: #fff;
  box-shadow: 0 8px 24px rgba(21,133,209,0.35); overflow: hidden;
}
.v5-plan--premium .v5-plan__name { color: #fff; }
.v5-plan--premium .v5-plan__tag { color: rgba(255,255,255,0.75); }
.v5-plan--premium .v5-plan__price { color: #fff; }
.v5-plan--premium .v5-plan__price small { color: rgba(255,255,255,0.75); }
.v5-plan__badge {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg,#FFFAE5,#FDE790); color: #78350F;
  border-radius: 999px; padding: 2px 8px; font-size: 7.5px; font-weight: 700; white-space: nowrap;
}
.v5-statgrid { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; padding: 8px; margin-top: 24px; }
.v5-statgrid > div { display: flex; align-items: center; gap: 7px; }
.v5-statgrid > div + div { margin-top: 6px; }
.v5-statgrid__ic { width: 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,0.15); display: grid; place-items: center; }
.v5-statgrid__ic svg { width: 14px; height: 14px; color: #fff; }
.v5-statgrid b { font-size: 14px; font-weight: 700; }
.v5-statgrid span { font-size: 8.5px; color: rgba(255,255,255,0.85); }
.v5-pfeat { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 9.5px; }
.v5-pfeat svg { width: 12px; height: 12px; color: #86EFAC; flex-shrink: 0; }
.v5-plan-cta {
  height: 40px; border-radius: 13px; background: linear-gradient(135deg,#1585D1,#185A87); color: #fff;
  font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center;
  margin-top: 12px; box-shadow: 0 6px 16px rgba(21,133,209,0.35);
}
.v5-plan-legal { text-align: center; font-size: 8.5px; color: #888; margin-top: 8px; }
.v5-plan-legal em { color: #1585D1; font-style: normal; text-decoration: underline; }

/* ==========================================================================
   8. VOICE CALL
   ========================================================================== */
.v5-callhdr { display: flex; align-items: center; justify-content: center; background: #fff; padding: 8px 12px 4px; }
.v5-timer { background: #E4EAF4; color: #020202; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 12px; font-variant-numeric: tabular-nums; }
.v5-voice { flex: 1; min-height: 0; background: #F0F0F3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.v5-vbars { display: flex; align-items: center; gap: 6px; height: 120px; }
.v5-vbars span {
  width: 12px; border-radius: 7px; background: #1FD5F9;
  animation: v5eq 1.1s var(--ease-in-out) infinite;
}
.v5-vbars span:nth-child(1){ height: 32%; animation-delay: -.9s; }
.v5-vbars span:nth-child(2){ height: 62%; animation-delay: -.6s; }
.v5-vbars span:nth-child(3){ height: 100%; animation-delay: -.3s; }
.v5-vbars span:nth-child(4){ height: 68%; animation-delay: -.15s; }
.v5-vbars span:nth-child(5){ height: 40%; }
@keyframes v5eq { 0%,100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.v5-cap { max-width: 80%; background: #fff; border-radius: 14px; padding: 8px 12px; font-size: 11px; text-align: center; color: #1A1A1A; box-shadow: 0 2px 8px rgba(15,23,42,0.1); }
.v5-cap--user { background: rgba(77,171,247,0.92); color: #fff; }
.v5-callbar { display: flex; align-items: center; justify-content: center; gap: 11px; background: #fff; padding: 12px; }
.v5-cbtn { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid #E5E7EB; display: grid; place-items: center; color: #1A1A1A; }
.v5-cbtn svg { width: 18px; height: 18px; }
.v5-cbtn--mic { width: 48px; height: 48px; background: #1976ED; border: none; color: #fff; }
.v5-cbtn--mic svg { width: 22px; height: 22px; }
.v5-cbtn--end { background: #E53935; border: none; color: #fff; }
.v5-cbtn.is-off { opacity: .45; }

/* ==========================================================================
   9. AVATAR VIDEO CALL
   ========================================================================== */
.v5-video { flex: 1; min-height: 0; position: relative; overflow: hidden; background: #0b1220; display: flex; flex-direction: column; }
.v5-video__bg { position: absolute; inset: 0; }
.v5-video__bg.v5-por::before { top: 14%; width: 40%; }
.v5-video__bg.v5-por::after  { bottom: -30%; width: 92%; }
.v5-video__scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, transparent 30%, transparent 55%, rgba(0,0,0,0.65) 100%); }
.v5-video__top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 12px; }
.v5-vround { width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; color: #fff; }
.v5-vround svg { width: 17px; height: 17px; }
.v5-video__grp { display: flex; gap: 8px; }
.v5-video__caption { position: relative; z-index: 3; margin-top: auto; padding: 0 14px; }
.v5-video__caption .v5-bin { background: rgba(255,255,255,0.95); }
.v5-video__caption .v5-bout { background: rgba(77,171,247,0.92); }
.v5-video__bar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px; }
.v5-vround--bar { width: 44px; height: 44px; }
.v5-vround--mic { background: rgba(0,0,0,0.45); }
.v5-vround--end { width: 44px; height: 44px; background: #E53935; border-color: transparent; }
