:root {
  --bg: #0d080b;
  --bg-2: #140c11;
  --panel: #1a1016;
  --panel-2: #221420;
  --line: #33202c;
  --line-2: #46293a;
  --ink: #f6ece7;
  --ink-2: #d9c3bd;
  --muted: #a78c96;
  --muted-2: #8a727d;
  --ember: #f2356e;
  --ember-2: #ff5c8a;
  --ember-soft: #3a1526;
  --wine: #8e1f4a;
  --wine-soft: #301026;
  --pink: #ff2f6d;
  --pink-soft: #3a1026;
  --gold: #d4a259;
  --gold-soft: #33271a;
  --green: #6fae8f;
  --green-soft: #16281f;
  --red: #e06c5f;
  --red-soft: #331a1a;
  --blue: #7d97c4;
  --blue-soft: #1a2233;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 85% -10%, rgba(242, 53, 110, 0.07), transparent 40%),
    radial-gradient(circle at -10% 110%, rgba(142, 31, 74, 0.12), transparent 45%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- Age gate ---------------- */
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
}
.gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(242, 53, 110, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(142, 31, 74, 0.18), transparent 60%);
  pointer-events: none;
}
.gate-card {
  position: relative;
  width: min(560px, 100%);
  padding: 44px 44px 36px;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(34, 20, 32, 0.92), rgba(16, 10, 14, 0.96));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.gate-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.gate-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ember), var(--wine));
  color: #fff3ec;
  box-shadow: 0 10px 30px rgba(242, 53, 110, 0.35);
}
.gate-mark .icon { width: 20px; height: 20px; stroke-width: 1.9; }
.gate-brand strong { display: block; font-family: var(--serif); font-size: 26px; letter-spacing: -0.02em; }
.gate-brand span { display: block; color: var(--muted); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; }
.gate h1 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.gate-copy { margin-bottom: 22px; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.gate-steps { display: flex; gap: 6px; margin-bottom: 26px; }
.gate-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.gate-step i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.gate-step.is-active { border-color: rgba(242, 53, 110, 0.4); background: var(--ember-soft); color: var(--ember-2); }
.gate-step.is-active i { background: var(--ember); }
.gate-step.is-done { color: var(--ink-2); }
.gate-step.is-done i { background: var(--green); }
.gate-panel { min-height: 120px; }
.gate-options { display: flex; gap: 10px; margin-bottom: 18px; }
.gate-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
}
.gate-option:hover { border-color: var(--ember); background: var(--ember-soft); }
.gate-option .big { font-family: var(--serif); font-size: 19px; }
.gate-option .small { color: var(--muted); font-size: 10px; }
.gate-option.danger:hover { border-color: var(--red); background: var(--red-soft); }
.gate-id { display: grid; gap: 10px; }
.gate-id label { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 0.04em; }
.gate-id input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--ink);
  font-size: 13px;
}
.gate-id input:focus { outline: 2px solid rgba(242, 53, 110, 0.4); outline-offset: 1px; border-color: var(--ember); }
.gate-scan {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel);
  font-size: 11px;
  color: var(--ink-2);
}
.gate-scan.is-on { display: flex; }
.scan-orb {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--ember), transparent 70%);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.scan-orb::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--panel-2); }
.gate-verified {
  display: none;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(111, 174, 143, 0.4);
  border-radius: 12px;
  background: var(--green-soft);
}
.gate-verified.is-on { display: flex; }
.gate-verified .icon { width: 17px; height: 17px; color: var(--green); margin-top: 1px; }
.gate-verified strong { display: block; font-size: 12px; }
.gate-verified p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.gate-actions { display: flex; gap: 9px; margin-top: 20px; }
.gate-actions .button { flex: 1; min-height: 46px; }
.gate-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 9.5px; line-height: 1.6; }

.blocked { min-height: 100vh; display: grid; place-items: center; padding: 28px; text-align: center; }
.blocked .gate-mark { margin: 0 auto 18px; }
.blocked h1 { font-family: var(--serif); font-size: 34px; font-weight: 400; }
.blocked p { max-width: 400px; margin: 0 auto 22px; color: var(--muted); font-size: 13px; }

/* ---------------- App shell ---------------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: 232px;
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background: rgba(13, 8, 11, 0.92);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 24px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ember), var(--wine));
  color: #fff3ec;
}
.brand-mark .icon { width: 16px; height: 16px; stroke-width: 1.9; }
.brand strong { display: block; font-family: var(--serif); font-size: 21px; letter-spacing: -0.02em; }
.brand span { display: block; color: var(--muted-2); font-size: 7.5px; letter-spacing: 0.24em; text-transform: uppercase; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  text-align: left;
  transition: all 140ms ease;
}
.nav-item .icon { width: 16px; height: 16px; }
.nav-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.nav-item.is-active { border-color: rgba(242, 53, 110, 0.3); background: var(--ember-soft); color: var(--ember-2); }
.side-foot { margin-top: auto; padding-top: 14px; }
.member-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
}
.member-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3d2233, #241320);
  color: var(--ember-2);
  font-size: 10px;
  font-weight: 700;
}
.member-card strong { display: block; font-size: 11px; }
.member-card span:not(.member-avatar) { display: block; color: var(--muted-2); font-size: 9px; }
.reset-button {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin-top: 9px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-2);
  font-size: 10px;
  text-align: left;
}
.reset-button:hover { background: rgba(255, 255, 255, 0.04); color: var(--muted); }
.reset-button .icon { width: 13px; height: 13px; }

.app-main { width: calc(100% - 232px); margin-left: 232px; min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  padding: 13px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 8, 11, 0.88);
  backdrop-filter: blur(14px);
}
.page-heading { min-width: 160px; }
.page-heading h1 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 400; letter-spacing: -0.02em; }
.page-heading p { margin: 1px 0 0; color: var(--muted-2); font-size: 10.5px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink-2);
  font-size: 9.5px;
  font-weight: 650;
  white-space: nowrap;
}
.pill .icon { width: 11px; height: 11px; }
.pill.gold { border-color: rgba(212, 162, 89, 0.4); background: var(--gold-soft); color: var(--gold); }
.pill.ember { border-color: rgba(242, 53, 110, 0.4); background: var(--ember-soft); color: var(--ember-2); }
.pill.green { border-color: rgba(111, 174, 143, 0.4); background: var(--green-soft); color: var(--green); }
.token-chip { cursor: pointer; }
.token-chip:hover { border-color: var(--gold); }
.mobile-menu { display: none; }
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--ember-2);
  font-size: 10px;
  font-weight: 700;
}

.view-root { padding: 26px 30px 46px; }
.view-root:focus { outline: none; }

/* ---------------- Buttons ---------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 650;
  white-space: nowrap;
  transition: all 140ms ease;
}
.button:hover { border-color: var(--muted-2); background: var(--panel-2); }
.button:active { transform: translateY(1px); }
.button .icon { width: 14px; height: 14px; }
.button-ember {
  border-color: var(--ember);
  background: linear-gradient(145deg, var(--ember), var(--wine));
  color: #fff5ef;
  box-shadow: 0 8px 24px rgba(242, 53, 110, 0.25);
}
.button-ember:hover { background: linear-gradient(145deg, var(--ember-2), var(--ember)); border-color: var(--ember-2); }
.button-gold {
  border-color: rgba(212, 162, 89, 0.55);
  background: linear-gradient(145deg, #b98540, #8a6030);
  color: #fff8ec;
}
.button-gold:hover { border-color: var(--gold); }
.button-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.button-ghost:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--ink); }
.button-danger { border-color: rgba(224, 108, 95, 0.5); background: var(--red-soft); color: var(--red); }
.button-small { min-height: 28px; padding: 5px 9px; font-size: 10px; }
.button[disabled] { opacity: 0.5; pointer-events: none; }
.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--panel);
  color: var(--ink-2);
}
.icon-button:hover { border-color: var(--muted-2); color: var(--ink); }
.icon-button .icon { width: 15px; height: 15px; }

/* ---------------- Layout ---------------- */
.eyebrow { margin: 0 0 6px; color: var(--ember-2); font-size: 9px; font-weight: 750; letter-spacing: 0.18em; text-transform: uppercase; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.view-head h2 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -0.035em; }
.view-head p { max-width: 640px; margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.view-actions { display: flex; flex: 0 0 auto; gap: 8px; flex-wrap: wrap; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(34, 20, 32, 0.5), rgba(20, 12, 17, 0.85));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 19px 11px; }
.card-head h3 { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.card-head p { margin: 2px 0 0; color: var(--muted-2); font-size: 10px; }
.card-body { padding: 0 19px 19px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.hr { height: 1px; background: var(--line); margin: 14px 0; }
.muted { color: var(--muted); }
.tiny { font-size: 10px; }
.grow { flex: 1; min-width: 0; }
.mt-10 { margin-top: 10px; }
.mt-14 { margin-top: 14px; }
.hide { display: none !important; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.badge .icon { width: 10px; height: 10px; }
.badge-ember { border-color: rgba(242, 53, 110, 0.45); background: var(--ember-soft); color: var(--ember-2); }
.badge-gold { border-color: rgba(212, 162, 89, 0.45); background: var(--gold-soft); color: var(--gold); }
.badge-green { border-color: rgba(111, 174, 143, 0.4); background: var(--green-soft); color: var(--green); }
.badge-red { border-color: rgba(224, 108, 95, 0.45); background: var(--red-soft); color: var(--red); }
.badge-blue { border-color: rgba(125, 151, 196, 0.4); background: var(--blue-soft); color: var(--blue); }

/* ---------------- Discover / hero ---------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 460px;
  min-height: 390px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(212, 162, 89, 0.2);
  background:
    radial-gradient(circle at 88% 20%, rgba(242, 53, 110, 0.24), transparent 34%),
    radial-gradient(circle at 8% 100%, rgba(142, 31, 74, 0.34), transparent 42%),
    linear-gradient(130deg, #1b0e16 10%, #2c1420 55%, #43192a 100%);
  box-shadow: 0 0 0 1px rgba(212, 162, 89, 0.06), 0 30px 80px rgba(0, 0, 0, 0.45);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 240, 220, 0.08) 42%, transparent 62%);
  transform: translateX(-120%);
  animation: hero-sheen 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hero-sheen { 0%, 55% { transform: translateX(-120%); } 80%, 100% { transform: translateX(120%); } }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 34px 32px; }
.hero-copy h2 {
  max-width: 460px;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.04em;
}
.hero-copy p { max-width: 440px; margin: 0 0 20px; color: var(--ink-2); font-size: 12px; line-height: 1.65; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-portrait { position: relative; display: grid; place-items: center; }
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(242, 53, 110, 0.12);
}
.portrait {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 310px;
  height: 410px;
  border-radius: 155px 155px 22px 22px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--serif);
  font-size: 110px;
  font-weight: 400;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 162, 89, 0.12);
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.25), transparent 36%);
}
.p-rue { background: linear-gradient(160deg, #b0483c, #571c2c 55%, #26101f); }
.p-lena { background: linear-gradient(160deg, #8a5a3f, #4a2a33 55%, #221019); }
.p-sasha { background: linear-gradient(160deg, #4f6470, #2c3a52 55%, #151d2e); }
.p-imani { background: linear-gradient(160deg, #7c4a68, #452244 55%, #1e1124); }
.p-vega { background: linear-gradient(160deg, #a3763d, #5c3d2a 55%, #241811); }
.p-noa { background: linear-gradient(160deg, #3f7a6a, #26464a 55%, #101f22); }
.portrait small {
  position: absolute;
  right: 13px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-note { position: absolute; right: 20px; bottom: 16px; color: rgba(255, 255, 255, 0.35); font-size: 8.5px; letter-spacing: 0.08em; }

/* ---------------- Companion cards ---------------- */
.companion-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.companion-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(34, 20, 32, 0.6), rgba(18, 11, 16, 0.9));
  transition: all 180ms ease;
}
.companion-card:hover { transform: translateY(-4px); border-color: rgba(212, 162, 89, 0.4); box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 162, 89, 0.12); }
.companion-card.is-active { border-color: rgba(242, 53, 110, 0.55); box-shadow: 0 0 0 2px rgba(242, 53, 110, 0.15); }
.companion-top { display: flex; gap: 12px; align-items: flex-start; }
.companion-cover {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}
.companion-cover .avatar-img { position: absolute; inset: 0; z-index: 1; }
.cover-initials {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--serif);
  font-size: 78px;
}
.cover-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 38%, rgba(10, 6, 9, 0.15) 58%, rgba(10, 6, 9, 0.92) 100%);
}
.cover-info {
  position: absolute;
  right: 14px;
  bottom: 13px;
  left: 14px;
  z-index: 3;
}
.cover-info h4 { margin: 0; color: #fff7f1; font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -0.02em; }
.cover-info span { display: block; margin-top: 1px; color: #d8b9bf; font-size: 10px; }
.cover-live {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(111, 174, 143, 0.45);
  border-radius: 999px;
  background: rgba(10, 6, 9, 0.62);
  color: #a9e4c5;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
  backdrop-filter: blur(5px);
}
.cover-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.cover-live.off { border-color: var(--line-2); color: var(--muted); }
.cover-live.off i { background: var(--muted-2); box-shadow: none; }
.cover-current {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 3;
  padding: 4px 8px;
  border: 1px solid rgba(212, 162, 89, 0.5);
  border-radius: 999px;
  background: rgba(10, 6, 9, 0.62);
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .05em;
  backdrop-filter: blur(5px);
}
.companion-body { display: flex; flex-direction: column; padding: 14px 16px 16px; }
.mini-portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--serif);
  font-size: 21px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.portrait small { z-index: 2; }
.companion-card h4 { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.companion-card .cover-info h4 { color: #fff7f1; font-size: 25px; }
.companion-card .meta { color: var(--muted-2); font-size: 10px; margin-top: 1px; }
.tagline { margin: 11px 0 12px; color: var(--ink-2); font-size: 11px; line-height: 1.5; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 13px; }
.tag {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.03em;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.online { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 9px; }
.online i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.online.off { color: var(--muted-2); }
.online.off i { background: var(--muted-2); }

/* ---------------- Chat ---------------- */
.chat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 16px; align-items: start; }
.chat-card { display: flex; flex-direction: column; min-height: calc(100vh - 150px); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 11px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.chat-head .mini-portrait { width: 38px; height: 38px; font-size: 15px; }
.chat-head h3 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 400; }
.chat-head p { margin: 1px 0 0; color: var(--muted-2); font-size: 9.5px; }
.chat-head .head-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.mode-toggle .icon { width: 12px; height: 12px; }
.mode-toggle.is-on { border-color: rgba(242, 53, 110, 0.55); background: var(--ember-soft); color: var(--ember-2); }
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 280px;
  max-height: calc(100vh - 330px);
  overflow-y: auto;
  padding: 20px;
  scroll-behavior: smooth;
}
.chat-thread::-webkit-scrollbar { width: 8px; }
.chat-thread::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.chat-date { align-self: center; color: var(--muted-2); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.msg-row { display: flex; align-items: flex-end; gap: 8px; }
.msg-row.you { justify-content: flex-end; }
.msg-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  overflow: hidden;
  border-radius: 50%;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  font-weight: 700;
  font-family: var(--serif);
}
.msg-avatar.you-a { background: linear-gradient(145deg, #3d2233, #241320); color: var(--ember-2); }
.msg-bubble {
  max-width: min(440px, 76%);
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 15px 15px 15px 4px;
  background: var(--panel-2);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.55;
}
.msg-row.you .msg-bubble { border-radius: 15px 15px 4px 15px; background: #33202c; color: var(--ink); }
.msg-time { display: block; margin-top: 4px; color: var(--muted-2); font-size: 8px; }
.msg-row.you .msg-time { text-align: right; }
.msg-bubble.spicy { border-color: rgba(242, 53, 110, 0.35); background: linear-gradient(160deg, rgba(58, 29, 28, 0.9), rgba(34, 20, 32, 0.9)); }

/* locked media card in thread */
.thread-media {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 380px;
  padding: 11px;
  border: 1px solid rgba(212, 162, 89, 0.35);
  border-radius: 13px;
  background: linear-gradient(150deg, rgba(51, 39, 26, 0.5), rgba(26, 16, 22, 0.9));
}
.thread-media .thumb { width: 64px; height: 64px; border-radius: 9px; }
.thread-media strong { display: block; font-size: 11px; }
.thread-media p { margin: 2px 0 7px; color: var(--muted); font-size: 9.5px; }
.thread-media .row { display: flex; gap: 6px; }
.thread-media.unlocked { border-color: rgba(111, 174, 143, 0.4); }

/* media thumbnail (blurred placeholder art) */
.thumb {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: linear-gradient(150deg, #3a2030, #1c1017);
}
.thumb::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 30%, rgba(242, 53, 110, 0.5), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(212, 162, 89, 0.4), transparent 40%),
    radial-gradient(circle at 55% 20%, rgba(142, 31, 74, 0.55), transparent 45%);
  filter: blur(18px);
}
.thumb .thumb-lock { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(10, 6, 9, 0.6); color: #fff; backdrop-filter: blur(4px); }
.thumb .thumb-lock .icon { width: 13px; height: 13px; }
.thumb.unlocked::before { filter: blur(8px); opacity: 0.7; }
.thumb.voice-thumb::before {
  background:
    radial-gradient(circle at 25% 50%, rgba(125, 151, 196, 0.5), transparent 50%),
    radial-gradient(circle at 70% 40%, rgba(242, 53, 110, 0.4), transparent 45%);
}

.typing { display: inline-flex; gap: 3px; align-items: center; padding: 12px 14px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); animation: pulse 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.16s; }
.typing i:nth-child(3) { animation-delay: 0.32s; }
@keyframes pulse { 0%, 80%, 100% { opacity: 0.35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

.suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 18px 0; }
.suggestion {
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink-2);
  font-size: 10px;
  transition: all 130ms ease;
}
.suggestion:hover { border-color: var(--ember); background: var(--ember-soft); color: var(--ember-2); }
.composer { display: flex; align-items: center; gap: 7px; padding: 12px 18px 14px; border-top: 1px solid var(--line); }
.composer input {
  flex: 1;
  min-height: 39px;
  padding: 9px 13px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--bg-2);
  color: var(--ink);
  font-size: 12px;
}
.composer input:focus { outline: 2px solid rgba(242, 53, 110, 0.35); outline-offset: 1px; border-color: var(--ember); }
.send-button {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ember), var(--wine));
  color: #fff5ef;
  box-shadow: 0 8px 20px rgba(242, 53, 110, 0.3);
}
.send-button:hover { filter: brightness(1.1); }
.send-button .icon { width: 15px; height: 15px; }
.chat-foot { padding: 0 18px 13px; color: var(--muted-2); font-size: 9px; }
.chat-foot strong { color: var(--ink-2); }
.side-card { padding: 16px; }
.side-card h4 { margin: 0 0 3px; font-family: var(--serif); font-size: 17px; font-weight: 400; }
.side-card > p { margin: 0 0 12px; color: var(--muted-2); font-size: 9.5px; }
.memory-list { display: flex; flex-direction: column; gap: 8px; }
.memory-item { padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.02); }
.memory-item strong { display: block; font-size: 10px; color: var(--ink-2); }
.memory-item span { display: block; margin-top: 1px; color: var(--muted); font-size: 9.5px; line-height: 1.45; }
.boundary-list { display: flex; flex-direction: column; gap: 8px; }
.boundary { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 10px; }
.boundary .icon { width: 12px; height: 12px; color: var(--green); }
.boundary.locked .icon { color: var(--gold); }

/* ---------------- Media library ---------------- */
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.media-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(34, 20, 32, 0.6), rgba(18, 11, 16, 0.9));
  overflow: hidden;
  transition: all 150ms ease;
}
.media-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.media-thumb { position: relative; aspect-ratio: 4 / 5; }
.media-thumb .thumb { position: absolute; inset: 0; border: 0; }
.media-thumb .badge { position: absolute; top: 9px; left: 9px; z-index: 2; background: rgba(10, 6, 9, 0.72); backdrop-filter: blur(4px); }
.media-thumb .type-badge { top: auto; bottom: 9px; right: 9px; left: auto; display: inline-flex; align-items: center; gap: 4px; }
.media-thumb .type-badge .icon { width: 10px; height: 10px; }
.media-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 13px 13px; }
.media-body strong { font-size: 11.5px; }
.media-body .by { color: var(--muted-2); font-size: 9px; }
.media-body .card-foot { margin-top: auto; }
.waveform { display: flex; align-items: center; gap: 2px; height: 20px; flex: 1; }
.waveform i { width: 2px; border-radius: 2px; background: rgba(242, 53, 110, 0.75); }
.voice-row { display: flex; align-items: center; gap: 10px; }
.voice-play {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ember), var(--wine));
  color: #fff5ef;
  flex: 0 0 auto;
}
.voice-play .icon { width: 11px; height: 11px; }
.voice-duration { color: var(--muted-2); font-size: 9px; font-family: var(--mono); }

/* filter bar */
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-row .select {
  min-height: 32px;
  padding: 6px 26px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239c828c' fill='none'/%3E%3C/svg%3E") no-repeat right 9px center;
  color: var(--ink-2);
  font-size: 10.5px;
  appearance: none;
}
.filter-row .select:focus { outline: 2px solid rgba(242, 53, 110, 0.35); }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 6px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}
.chip.is-on { border-color: rgba(242, 53, 110, 0.55); background: var(--ember-soft); color: var(--ember-2); }

/* ---------------- Membership ---------------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(170deg, rgba(34, 20, 32, 0.6), rgba(18, 11, 16, 0.92));
}
.plan-card.featured {
  border-color: rgba(212, 162, 89, 0.5);
  background:
    radial-gradient(circle at 90% -10%, rgba(212, 162, 89, 0.12), transparent 40%),
    linear-gradient(170deg, rgba(42, 30, 20, 0.6), rgba(20, 13, 12, 0.94));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.plan-card.current { box-shadow: 0 0 0 2px rgba(242, 53, 110, 0.3); }
.plan-card h3 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.plan-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { margin: 13px 0 2px; font-family: var(--serif); font-size: 38px; letter-spacing: -0.05em; }
.price small { font-family: var(--sans); font-size: 10px; letter-spacing: 0; color: var(--muted); }
.plan-desc { min-height: 30px; margin: 0 0 14px; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.plan-features { display: grid; gap: 7px; margin: 0 0 18px; padding: 0; list-style: none; }
.plan-features li { display: flex; align-items: flex-start; gap: 7px; font-size: 10px; color: var(--ink-2); line-height: 1.45; }
.plan-features .icon { width: 12px; height: 12px; margin-top: 1px; color: var(--ember-2); }
.plan-features li.dim { color: var(--muted-2); }
.plan-features li.dim .icon { color: var(--muted-2); }
.plan-card .button { margin-top: auto; width: 100%; }
.current-tag { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 9.5px; font-weight: 700; }
.current-tag .icon { width: 12px; height: 12px; }
.token-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
  transition: all 140ms ease;
}
.pack:hover { border-color: var(--gold); background: var(--gold-soft); }
.pack .amt { font-family: var(--serif); font-size: 21px; }
.pack .amt small { font-size: 10px; font-family: var(--sans); color: var(--muted); }
.pack .cost { color: var(--gold); font-size: 11px; font-weight: 700; }
.pack .sub { color: var(--muted-2); font-size: 9px; }

/* usage */
.usage-card { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: center; padding: 20px; }
.usage-meter { height: 7px; overflow: hidden; border-radius: 99px; background: var(--line); }
.usage-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--ember)); }
.billing-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 10.5px; }
.billing-row:first-child { border-top: 0; padding-top: 0; }
.billing-row span:last-child { color: var(--muted); }

/* ---------------- Operator ---------------- */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { padding: 15px 16px; }
.metric-label { margin: 0 0 5px; color: var(--muted-2); font-size: 8.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.metric-value { margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 400; letter-spacing: -0.04em; }
.metric-meta { margin: 5px 0 0; color: var(--muted-2); font-size: 9px; }
.metric-meta strong { color: var(--green); }
.queue { display: flex; flex-direction: column; }
.queue-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.queue-row:first-child { border-top: 0; padding-top: 0; }
.queue-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold);
  flex: 0 0 auto;
}
.queue-icon.high { background: var(--red-soft); color: var(--red); }
.queue-icon.low { background: var(--blue-soft); color: var(--blue); }
.queue-icon .icon { width: 13px; height: 13px; }
.queue-main { min-width: 0; flex: 1; }
.queue-main strong { display: block; font-size: 10.5px; color: var(--ink-2); }
.queue-main p { margin: 2px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.45; }
.queue-actions { display: flex; gap: 5px; flex: 0 0 auto; }
.queue-actions .button { min-height: 26px; padding: 4px 8px; font-size: 8.5px; }
.channel-list { display: flex; flex-direction: column; gap: 12px; }
.channel-row { display: grid; grid-template-columns: 128px minmax(0, 1fr) 92px; gap: 10px; align-items: center; }
.channel-row strong { color: var(--ink-2); font-size: 9.5px; font-weight: 600; }
.channel-bar { height: 6px; overflow: hidden; border-radius: 99px; background: var(--line); }
.channel-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ember), var(--gold)); }
.channel-row span { color: var(--muted-2); font-size: 8.5px; text-align: right; }
.health-list { display: flex; flex-direction: column; gap: 8px; }
.health-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 10px; }
.health-row:first-child { border-top: 0; padding-top: 0; }
.health-row span { color: var(--muted); }
.health-row strong { color: var(--ink-2); font-size: 10px; text-align: right; }
.safety-list { display: flex; flex-direction: column; gap: 9px; }
.safety-row { display: flex; align-items: flex-start; gap: 9px; font-size: 10px; color: var(--ink-2); line-height: 1.45; }
.safety-row .icon { width: 13px; height: 13px; margin-top: 1px; flex: 0 0 auto; }
.safety-row .icon.ok { color: var(--green); }
.safety-row .icon.auto { color: var(--red); }
.safety-row span { flex: 1; }
.safety-row em { color: var(--muted-2); font-style: normal; font-size: 9px; }
.operator-note {
  padding: 18px 20px;
  border: 1px solid rgba(212, 162, 89, 0.3);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(51, 39, 26, 0.5), rgba(30, 20, 16, 0.8));
}
.operator-note strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.operator-note p { margin: 4px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.55; }

/* ---------------- Modal ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 3, 5, 0.72);
  backdrop-filter: blur(5px);
}
.modal {
  width: min(520px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(170deg, #241521, #160d13);
  box-shadow: var(--shadow);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 21px 22px 10px; }
.modal-head h3 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 400; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.modal-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
}
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-close .icon { width: 14px; height: 14px; }
.modal-body { padding: 10px 22px 8px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 21px; }
.checkout-summary { padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); }
.checkout-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; color: var(--ink-2); font-size: 10.5px; }
.checkout-row span:last-child { color: var(--muted); }
.checkout-row.total { margin-top: 5px; padding-top: 11px; border-top: 1px solid var(--line-2); font-weight: 700; color: var(--ink); }
.checkout-row.total span:last-child { color: var(--gold); }
.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 11px;
  border: 1px dashed rgba(212, 162, 89, 0.45);
  border-radius: 9px;
  background: var(--gold-soft);
  color: #e8cf9f;
  font-size: 9.5px;
  line-height: 1.5;
}
.demo-note .icon { width: 13px; height: 13px; margin-top: 1px; flex: 0 0 auto; }

/* toast */
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: 360px;
  padding: 12px 15px;
  border: 1px solid rgba(242, 53, 110, 0.5);
  border-radius: 10px;
  background: linear-gradient(150deg, #33191f, #241119);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-size: 11px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 180ms ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

.empty { padding: 28px 16px; color: var(--muted-2); font-size: 11px; text-align: center; }

/* onboarding */
.onboard-card { padding: 28px; }
.onboard-card h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -0.03em; }
.onboard-card > p { margin: 0 0 20px; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.heat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.heat-option {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  transition: all 140ms ease;
}
.heat-option:hover { border-color: var(--ember); }
.heat-option.is-on { border-color: var(--ember); background: var(--ember-soft); box-shadow: 0 0 0 2px rgba(242, 53, 110, 0.18); }
.heat-option .heat-flame { color: var(--ember-2); }
.heat-option .heat-flame .icon { width: 17px; height: 17px; }
.heat-option strong { font-family: var(--serif); font-size: 17px; font-weight: 400; }
.heat-option span { color: var(--muted); font-size: 9.5px; line-height: 1.45; }
.theme-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.hard-limits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(212, 162, 89, 0.35);
  border-radius: 12px;
  background: var(--gold-soft);
  margin-bottom: 20px;
}
.hard-limits .hl-title { display: flex; align-items: center; gap: 7px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hard-limits .hl-title .icon { width: 13px; height: 13px; }
.hard-limits li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 10.5px; }
.hard-limits .icon { width: 12px; height: 12px; color: var(--gold); }
.hard-limits em { margin-left: auto; color: var(--muted-2); font-style: normal; font-size: 8.5px; }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 20px; }
.pick {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  transition: all 140ms ease;
}
.pick:hover { border-color: var(--ember); }
.pick.is-on { border-color: var(--ember); background: var(--ember-soft); }
.pick .mini-portrait { width: 34px; height: 34px; font-size: 13px; }
.pick strong { display: block; font-size: 11.5px; font-family: var(--serif); font-weight: 400; }
.pick span { display: block; color: var(--muted-2); font-size: 8.5px; }

/* ---------------- New product surfaces ---------------- */
.p-ember { background: linear-gradient(160deg, #e07a5f, #7e2d42 58%, #2a111d); }
.p-gold { background: linear-gradient(160deg, #d4a259, #7d5427 58%, #241811); }
.p-plum { background: linear-gradient(160deg, #9d5c8a, #4b2d50 58%, #1c1024); }
.p-teal { background: linear-gradient(160deg, #5f9e91, #2d5e5a 58%, #0f2222); }
.p-rose { background: linear-gradient(160deg, #d994a5, #7e3c52 58%, #2a121c); }
.p-slate { background: linear-gradient(160deg, #8292a8, #3d4a62 58%, #141a26); }

.media-fav {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(10, 6, 9, 0.55);
  color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
}
.media-fav:hover { border-color: var(--gold); color: var(--gold); }
.media-fav.is-on { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.media-fav .icon { width: 13px; height: 13px; }

.ledger { display: flex; flex-direction: column; }
.ledger-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ledger-row:first-child { border-top: 0; padding-top: 0; }
.ledger-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  flex: 0 0 auto;
}
.ledger-icon.plus { background: var(--green-soft); color: var(--green); }
.ledger-icon.minus { background: var(--gold-soft); color: var(--gold); }
.ledger-icon .icon { width: 13px; height: 13px; }
.ledger-row strong { display: block; font-size: 10.5px; color: var(--ink-2); }
.ledger-row .grow span { display: block; color: var(--muted-2); font-size: 9px; }
.ledger-amount { color: var(--muted); font-size: 11px; font-weight: 700; }
.ledger-amount.plus { color: var(--green); }
.ledger-amount.minus { color: var(--gold); }

.scene-list { display: flex; flex-direction: column; gap: 6px; }
.scene-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink-2);
  font-size: 10px;
  text-align: left;
}
.scene-chip:hover { border-color: var(--ember); color: var(--ink); }
.scene-chip.is-on { border-color: rgba(242, 53, 110, 0.55); background: var(--ember-soft); color: var(--ember-2); }
.scene-chip .icon { width: 12px; height: 12px; }

.chat-safety-actions { display: flex; gap: 6px; margin-top: 12px; }
.chat-safety-actions .button { flex: 1; }

.paused {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 18px 4px;
  padding: 12px 14px;
  border: 1px solid rgba(212, 162, 89, 0.4);
  border-radius: 10px;
  background: var(--gold-soft);
}
.paused strong { display: block; color: var(--ink); font-size: 11px; }
.paused span { display: block; color: var(--muted); font-size: 9.5px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink-2); font-size: 9.5px; font-weight: 700; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--bg-2);
  color: var(--ink);
  font-size: 11.5px;
}
.field textarea { min-height: 70px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid rgba(242, 53, 110, 0.35); outline-offset: 1px; border-color: var(--ember); }

.generating { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); }
.generating strong { display: block; font-size: 12px; }
.generating span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.portrait-preview { display: grid; place-items: center; padding: 18px 0 8px; }
.portrait-preview .portrait { width: 150px; height: 200px; font-size: 56px; }

.settings-profile { display: flex; align-items: center; gap: 12px; }
.settings-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3d2233, #241320);
  color: var(--ember-2);
  font-family: var(--serif);
  font-size: 18px;
}
.settings-profile strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.settings-profile .grow span { display: block; color: var(--muted); font-size: 9.5px; }
.referral-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(212, 162, 89, 0.55);
  border-radius: 10px;
  background: var(--gold-soft);
}
.referral-code span { color: var(--gold); font-family: var(--mono); font-size: 17px; letter-spacing: 0.08em; }
.settings-actions { display: flex; flex-direction: column; gap: 8px; }
.settings-actions .button { justify-content: flex-start; }

.funnel-list { display: flex; flex-direction: column; gap: 11px; }
.funnel-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) 52px; gap: 9px; align-items: center; }
.funnel-row span { color: var(--ink-2); font-size: 9.5px; }
.funnel-row strong { color: var(--muted); font-size: 9px; text-align: right; }
.funnel-bar { height: 7px; overflow: hidden; border-radius: 99px; background: var(--line); }
.funnel-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--wine), var(--ember), var(--gold)); }

.top-list { display: flex; flex-direction: column; gap: 10px; }
.top-row { display: flex; align-items: center; gap: 9px; }
.top-rank { width: 16px; color: var(--muted-2); font-family: var(--serif); font-size: 14px; }
.top-meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.top-meta strong { font-size: 10px; color: var(--ink-2); }
.top-meta span { color: var(--muted-2); font-size: 8.5px; }
.top-bar { height: 5px; overflow: hidden; border-radius: 99px; background: var(--line); }
.top-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ember), var(--gold)); }
.top-row > strong { width: 52px; color: var(--gold); font-size: 9.5px; text-align: right; }

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .funnel-row { grid-template-columns: 88px minmax(0, 1fr) 46px; }
  .settings-actions { flex-direction: column; }
}

/* ---------------- Auth ---------------- */
.auth-card { width: min(520px, 100%); }
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 26px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.auth-tab {
  flex: 1;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.is-on { border-color: rgba(242, 53, 110, 0.4); background: var(--ember-soft); color: var(--ember-2); }
.auth-card .field { margin-bottom: 12px; }
.auth-age {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  color: var(--ink-2);
  font-size: 10.5px;
}
.auth-age input { width: 14px; height: 14px; accent-color: var(--ember); }
.auth-submit { width: 100%; min-height: 44px; }
.auth-error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(224, 108, 95, 0.45);
  border-radius: 9px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 10.5px;
  line-height: 1.45;
}
.auth-error .icon { width: 13px; height: 13px; margin-top: 1px; flex: 0 0 auto; }

/* ---------------- Casino / dopamine layer ---------------- */
.token-chip { animation: token-glow 3.2s ease-in-out infinite; }
@keyframes token-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(212, 162, 89, 0); }
  50% { box-shadow: 0 0 18px rgba(212, 162, 89, 0.22); }
}
.streak-chip { border-color: rgba(242, 53, 110, 0.4); background: var(--ember-soft); color: var(--ember-2); }
.button-glow { animation: button-glow 2.2s ease-in-out infinite; }
@keyframes button-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(212, 162, 89, 0); }
  50% { box-shadow: 0 0 26px rgba(212, 162, 89, 0.45); }
}

.ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(51, 39, 26, 0.45), rgba(24, 14, 20, 0.9));
  overflow: hidden;
}
.ticker-live { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ticker-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: dot-pulse 1.6s infinite; }
.ticker-window { flex: 1; overflow: hidden; }
.ticker-track { display: flex; gap: 26px; width: max-content; animation: ticker-scroll 26s linear infinite; }
.ticker-track span { color: var(--muted); font-size: 9.5px; white-space: nowrap; }
.ticker-track span::before { content: "◆"; margin-right: 26px; color: var(--gold); font-size: 7px; opacity: .6; }
.ticker-reward { color: var(--gold); font-size: 9px; font-weight: 700; white-space: nowrap; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
@keyframes dot-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.casino-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, .9fr); gap: 12px; }
.drop-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-color: rgba(212, 162, 89, 0.28); background: linear-gradient(135deg, rgba(51, 39, 26, 0.55), rgba(27, 16, 20, 0.92)); }
.drop-orb {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe0a8, #c9955f 45%, #7d5427);
  color: #2a1710;
  box-shadow: 0 0 32px rgba(212, 162, 89, 0.35);
  animation: drop-float 3s ease-in-out infinite;
}
.drop-orb .icon { width: 22px; height: 22px; stroke-width: 2; }
@keyframes drop-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.drop-card h3 { margin: 0 0 2px; font-family: var(--serif); font-size: 25px; font-weight: 400; color: var(--gold); }
.drop-card p { margin: 0; color: var(--muted); font-size: 9.5px; }
.drop-card .button { margin-left: auto; flex: 0 0 auto; }
.streak-card { padding: 16px 18px; }
.streak-row { display: flex; align-items: baseline; gap: 8px; }
.streak-row strong { font-family: var(--serif); font-size: 42px; font-weight: 400; color: var(--ember-2); line-height: 1; }
.streak-row span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.streak-dots { display: flex; gap: 5px; margin: 12px 0 8px; }
.streak-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.streak-dots i.on { background: var(--gold); box-shadow: 0 0 10px rgba(212, 162, 89, 0.4); }
.streak-card .tiny { margin: 0; }
.pulse-card { padding: 16px 18px; }
.pulse-card h3 { font-size: 17px; }
.pulse-list { display: flex; flex-direction: column; gap: 7px; }
.pulse-list span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9.5px; }
.pulse-list .icon { width: 12px; height: 12px; color: var(--ember-2); }
.pulse-list strong { color: var(--ink-2); font-weight: 600; }
.badge .dot-pulse { width: 5px; height: 5px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 8px var(--green); animation: dot-pulse 1.6s infinite; }

.confetti-layer { position: fixed; inset: 0; z-index: 120; pointer-events: none; overflow: hidden; }
.confetti-layer i {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: 7px;
  height: 11px;
  border-radius: 2px;
  background: var(--c);
  animation: confetti-fall var(--d) ease-in forwards;
  transform: rotate(var(--r));
}
@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(var(--r)); opacity: 1; }
  100% { transform: translateY(105vh) rotate(calc(var(--r) + 520deg)); opacity: .9; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after, .token-chip, .button-glow, .drop-orb, .ticker-track, .ticker-live i, .badge .dot-pulse { animation: none !important; }
  .confetti-layer { display: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1240px) {
  .companion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) 330px; }
  .portrait { width: 270px; height: 360px; font-size: 92px; }
}

@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); transition: transform 180ms ease; box-shadow: 30px 0 70px rgba(0, 0, 0, 0.5); }
  .sidebar.is-open { transform: translateX(0); }
  .app-main { width: 100%; margin-left: 0; }
  .mobile-menu { display: grid; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-side { display: grid; grid-template-columns: 1fr; }
  .grid-2, .grid-3, .plan-grid, .heat-grid, .pick-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .token-packs { grid-template-columns: 1fr; }
  .casino-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .topbar { padding: 11px 16px; gap: 10px; }
  .page-heading { min-width: 0; }
  .page-heading h1 { font-size: 18px; }
  .page-heading p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
  .view-root { padding: 20px 16px 38px; }
  .view-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 26px 20px; }
  .hero-copy h2 { font-size: 34px; }
  .hero-portrait { min-height: 270px; padding-bottom: 20px; }
  .hero-portrait .portrait { width: 190px; height: 250px; font-size: 64px; }
  .hero-note { display: none; }
  .ticker-reward { display: none; }
  .drop-card { flex-wrap: wrap; }
  .drop-card .button { width: 100%; }
  .metrics, .companion-grid { grid-template-columns: 1fr 1fr; }
  .topbar .pill:not(.token-chip) { display: none; }
  .chat-card { min-height: 620px; }
  .chat-thread { max-height: 430px; }
  .chat-head .head-actions .mode-toggle span { display: none; }
  .usage-card { grid-template-columns: 1fr; }
  .channel-row { grid-template-columns: 104px minmax(0, 1fr) 80px; }
  .queue-actions { flex-direction: column; }
  .gate-card { padding: 30px 24px; }
  .gate-steps { flex-direction: column; }
}

@media (max-width: 480px) {
  .metrics, .companion-grid, .media-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .topbar .avatar { display: none; }
  .topbar .button span { display: none; }
}

/* Hamburger must never show on desktop, regardless of .icon-button ordering. */
.icon-button.mobile-menu { display: none; }
@media (max-width: 980px) {
  .icon-button.mobile-menu { display: grid; }
}

/* ---------------- Companion profile + photo browse ---------------- */
.companion-card-actions { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.side-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.profile-modal-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: start; }
.profile-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--panel-2), var(--bg-2));
}
.profile-photo .avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-photo-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 4px 7px;
  border: 1px solid rgba(111, 174, 143, 0.4);
  border-radius: 99px;
  background: rgba(10, 6, 9, 0.72);
  color: #a9e4c5;
  font-size: 7.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.profile-bio { margin: 0 0 12px; color: var(--ink-2); font-size: 11px; line-height: 1.6; }
.profile-facts { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 9px 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profile-facts span { color: var(--muted-2); font-size: 8.5px; }
.profile-facts strong { display: block; color: var(--ink-2); font-size: 10px; font-weight: 650; }
.profile-list { margin-top: 12px; }
.profile-list h4 { display: flex; align-items: center; gap: 5px; margin: 0 0 6px; color: var(--ink-2); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.profile-list h4 .icon { width: 12px; height: 12px; color: var(--ember-2); }
.profile-list .tags { margin-bottom: 0; }
.tag-muted { color: var(--muted); border-color: var(--line); }
.tag-gold { color: var(--gold); border-color: rgba(212, 162, 89, 0.3); background: var(--gold-soft); }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.photo-tile {
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  color: var(--muted);
  text-align: left;
}
.photo-tile:hover { border-color: var(--ember); }
.photo-tile img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.photo-tile span { display: block; padding: 7px 8px; font-size: 8px; line-height: 1.3; }
.photo-large { display: block; width: 100%; max-height: 64vh; object-fit: contain; border-radius: 12px; background: var(--bg-2); }
@media (max-width: 620px) {
  .profile-modal-body { grid-template-columns: 1fr; }
  .profile-photo { width: min(210px, 70%); }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .companion-card-actions { justify-content: flex-start; }
}

/* ---------------- R-18 / NSFW chrome ---------------- */
.r18 {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 5px;
  background: var(--pink); color: #fff;
  font-size: 8.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255, 47, 109, .45), 0 0 16px rgba(255, 47, 109, .3);
}
.chip {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 99px;
  color: var(--muted); font-size: 8.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
}
.pill.pink { border: 1px solid rgba(255, 47, 109, .35); background: var(--pink-soft); color: #ff7aa6; cursor: pointer; }
.pill.pink:hover { border-color: var(--pink); color: #ffa3bf; }
.tag-nude { border-color: rgba(255, 47, 109, .45); color: #ff7aa6; background: var(--pink-soft); }
body.blur-nsfw img[src*="-nude"], body.blur-nsfw img[src*="-full"] { filter: blur(16px); }
body.blur-nsfw img[src*="-nude"]:hover, body.blur-nsfw img[src*="-full"]:hover { filter: blur(0); }
img[src*="-nude"], img[src*="-full"] { transition: filter .2s ease; }

/* ---------------- RP action beats in chat ---------------- */
.msg-bubble em.rp { font-style: italic; color: var(--ember-2); opacity: .95; }

/* ---------------- Real media thumbs (no more gradient placeholders) ---------------- */
.thumb { position: relative; overflow: hidden; }
.thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .thumb-lock { z-index: 2; }

/* ---------------- Video thumbs ---------------- */
video.thumb-img { display: block; background: #000; }
body.blur-nsfw video[src*="-video"] { filter: blur(16px); }
body.blur-nsfw video[src*="-video"]:hover { filter: blur(0); }
video[src*="-video"] { transition: filter .2s ease; }

/* ---------------- Animated cover loops ---------------- */
video.avatar-img { background: #000; z-index: 1; }
body.blur-nsfw video[src*="-loop"] { filter: blur(16px); }
body.blur-nsfw video[src*="-loop"]:hover { filter: blur(0); }
video[src*="-loop"] { transition: filter .2s ease; }
