/* ═══════════════════════════════════════════════════════════════
   Gaia Hub — sistema visual
   Extraído literal del diseño (Gaia Hub.dc.html).
   ═══════════════════════════════════════════════════════════════ */

:root {
  --olive: #363b10;
  --cream: #fefee5;
  --gold: #776300;
  --lime: #eef2bf;
  --alt: #f4f7ce;
  --rust: #b23d21;
  --spark: #F0B800;

  --line: rgba(54, 59, 16, .1);
  --line-soft: rgba(54, 59, 16, .07);
  --border: rgba(54, 59, 16, .16);
  --border-input: rgba(54, 59, 16, .12);
  --shadow: 0 8px 40px rgba(54, 59, 16, .06);
  --shadow-lift: 0 8px 40px rgba(54, 59, 16, .1);

  --epi: Epilogue, system-ui, sans-serif;
  --man: Manrope, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--olive);
  font-family: var(--man);
  font-size: 16px;
  line-height: 25.6px;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

a { color: var(--gold); text-decoration: none; font-weight: 700; }
a:hover { color: var(--olive); }
button { font-family: var(--epi); }
input, textarea { font-family: var(--man); }
input::placeholder, textarea::placeholder { color: rgba(54, 59, 16, .38); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(54, 59, 16, .15);
  border-radius: 9999px;
  border: 3px solid var(--cream);
}

/* ── animaciones ──────────────────────────────────────────── */
@keyframes gRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes gFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gRing { 0% { transform: scale(.92); opacity: .5; } 100% { transform: scale(1.85); opacity: 0; } }
@keyframes gSpin { to { transform: rotate(360deg); } }
@keyframes gDrift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, -14px); } }

.rise { animation: gRise .4s ease both; }
.fade { animation: gFade .25s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── tipografía ───────────────────────────────────────────── */
.eyebrow {
  font-family: var(--epi); font-weight: 700; font-size: 12px; line-height: 16px;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold);
}
.eyebrow.on-dark { color: var(--olive); opacity: .6; }
.h1 {
  margin: 0; font-family: var(--epi); font-weight: 900;
  font-size: clamp(40px, 5.2vw, 72px); line-height: .98; letter-spacing: -3.6px;
}
.h2 { margin: 0; font-family: var(--epi); font-weight: 900; font-size: 36px; line-height: 40px; letter-spacing: -1.2px; }
.h3 { margin: 0; font-family: var(--epi); font-weight: 900; font-size: 30px; line-height: 36px; letter-spacing: -1px; }
.h4 { font-family: var(--epi); font-weight: 900; font-size: 20px; line-height: 28px; letter-spacing: -.4px; }
.big-num { font-family: var(--epi); font-weight: 900; font-size: 36px; line-height: 40px; }
.muted { color: var(--gold); }
.small { font-size: 14px; line-height: 20px; }
.tiny { font-size: 12px; line-height: 16px; }
.lead { margin: 0; font-size: 16px; line-height: 25.6px; color: var(--gold); }

.icon {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap;
  word-wrap: normal; direction: ltr; -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased; font-size: 20px;
}

/* ── botones ──────────────────────────────────────────────── */
.cta {
  width: 100%; height: 56px; border: none; border-radius: 9999px;
  background: var(--olive); color: var(--cream);
  font-family: var(--epi); font-weight: 700; font-size: 16px;
  letter-spacing: .8px; text-transform: uppercase; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .15s;
}
.cta:hover:not(:disabled) { background: #4a5117; }
.cta:disabled { background: rgba(54, 59, 16, .18); cursor: default; }

.sec {
  width: 100%; height: 52px; border: 1px solid rgba(54, 59, 16, .2);
  border-radius: 9999px; background: none; color: var(--olive);
  font-family: var(--epi); font-weight: 700; font-size: 14px; letter-spacing: -.35px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px;
}
.sec:hover { background: var(--olive); color: var(--cream); border-color: var(--olive); }

.link-btn {
  background: none; border: none; color: var(--gold);
  font-family: var(--epi); font-weight: 700; font-size: 14px; letter-spacing: -.35px;
  cursor: pointer; padding: 0;
}
.link-btn:hover { color: var(--olive); }

.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 9999px;
  border: 1px solid var(--border); background: none; color: var(--olive);
  cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-btn:hover { background: var(--olive); color: var(--cream); }
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px; width: 7px; height: 7px;
  border-radius: 9999px; background: var(--rust);
}

.chip {
  height: 42px; padding: 0 20px; border-radius: 9999px;
  border: 1px solid var(--border); background: none; color: var(--gold);
  font-family: var(--epi); font-weight: 700; font-size: 14px; letter-spacing: -.35px;
  cursor: pointer; white-space: nowrap;
}
.chip.on { border-color: var(--olive); background: var(--olive); color: var(--cream); }

.tag {
  font-family: var(--epi); font-weight: 700; font-size: 12px; line-height: 16px;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 9999px; background: var(--lime); color: var(--gold);
}
.tag.removable {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border: none; cursor: pointer;
}

/* ── formularios ──────────────────────────────────────────── */
.input {
  width: 100%; padding: 18px 24px; background: #fff;
  border: 1px solid var(--border-input); border-radius: 9999px;
  color: var(--olive); font-size: 16px; outline: none; box-shadow: var(--shadow);
}
.input:focus { border-color: var(--olive); }
.input.code {
  font-family: var(--epi); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
}
.textarea {
  width: 100%; padding: 16px 22px; background: #fff;
  border: 1px solid var(--border-input); border-radius: 32px;
  color: var(--olive); font-size: 16px; line-height: 25.6px; outline: none; resize: vertical;
}
.textarea:focus { border-color: var(--olive); }

/* ── superficies ──────────────────────────────────────────── */
.card { background: #fff; border-radius: 48px; box-shadow: var(--shadow); }
.card-sm { background: #fff; border-radius: 32px; box-shadow: var(--shadow); }
.lime { background: var(--lime); border-radius: 32px; }
.alt { background: var(--alt); border-radius: 32px; }
.dark { background: var(--olive); color: var(--cream); border-radius: 32px; }
.r48 { border-radius: 48px; }

/* ── avatares ─────────────────────────────────────────────── */
.av {
  border-radius: 9999px; display: flex; align-items: center; justify-content: center;
  font-family: var(--epi); font-weight: 900; flex-shrink: 0;
}
.av.dark { background: var(--olive); color: var(--cream); }
.av.lime { background: var(--lime); color: var(--gold); }
.av.spark { background: var(--spark); color: var(--olive); }
.av-38 { width: 38px; height: 38px; font-size: 13px; }
.av-48 { width: 48px; height: 48px; font-size: 16px; }
.av-52 { width: 52px; height: 52px; font-size: 18px; }
.av-56 { width: 56px; height: 56px; font-size: 19px; }
.av-64 { width: 64px; height: 64px; font-size: 22px; }
.av-88 { width: 88px; height: 88px; font-size: 32px; }

/* ═══════════ ARRANQUE ═══════════ */
.boot {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px; background: var(--cream);
}
.boot-mark {
  width: 46px; height: 46px; border-radius: 9999px; background: var(--olive);
  color: var(--cream); display: flex; align-items: center; justify-content: center;
  font-family: var(--epi); font-weight: 900; font-size: 22px;
}
.spinner {
  width: 20px; height: 20px; border: 2px solid rgba(119, 99, 0, .25);
  border-top-color: var(--gold); border-radius: 9999px;
  animation: gSpin .8s linear infinite; flex-shrink: 0;
}
.spinner.on-dark { border-color: rgba(254, 254, 229, .3); border-top-color: var(--cream); }

/* ═══════════ AUTH / ONBOARDING ═══════════ */
.auth {
  min-height: 100vh; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  background: var(--cream);
}
.auth-brand {
  position: relative; overflow: hidden; padding: 48px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--alt); min-height: 380px;
}
.auth-brand .blob-a {
  position: absolute; width: 560px; height: 560px; left: -180px; bottom: -260px;
  border-radius: 9999px; background: var(--lime); pointer-events: none;
  animation: gDrift 14s ease-in-out infinite;
}
.auth-brand .blob-b {
  position: absolute; width: 300px; height: 300px; right: -90px; top: -110px;
  border-radius: 9999px; background: var(--spark); opacity: .32; pointer-events: none;
}
.auth-brand > * { position: relative; }
.brand-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9999px; background: var(--olive);
  display: flex; align-items: center; justify-content: center; color: var(--cream);
  font-family: var(--epi); font-weight: 900; font-size: 17px;
}
.brand-name { font-family: var(--epi); font-weight: 900; font-size: 20px; letter-spacing: -.6px; }
.brand-host {
  font-family: var(--epi); font-weight: 700; font-size: 12px; line-height: 16px;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--border); border-radius: 9999px; padding: 4px 10px;
}
.auth-copy { max-width: 480px; margin: 64px 0; }
.auth-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.auth-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px; background: var(--cream);
}
.auth-form { width: 100%; max-width: 412px; }

.feature {
  display: flex; gap: 16px; padding: 20px; background: #fff;
  border-radius: 32px; box-shadow: var(--shadow);
}
.feature .icon { flex-shrink: 0; font-size: 24px; }

.key-disc-wrap {
  position: relative; width: 150px; height: 150px; margin: 0 auto 30px;
  display: flex; align-items: center; justify-content: center;
}
.key-disc {
  width: 112px; height: 112px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
}
.key-disc .icon { font-size: 52px; }
.key-ring {
  position: absolute; inset: 0; border-radius: 9999px;
  border: 2px solid var(--spark); animation: gRing 1.8s ease-out infinite;
}

/* ── grabación por voz ── */
.rec-box {
  background: #fff; border-radius: 48px; padding: 32px 26px;
  text-align: center; margin-bottom: 12px; box-shadow: 0 8px 40px rgba(54, 59, 16, .08);
}
.mic-wrap {
  position: relative; width: 124px; height: 124px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
}
.mic-btn {
  width: 88px; height: 88px; border-radius: 9999px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
  background: var(--spark); color: var(--olive);
}
.mic-btn .icon { font-size: 42px; }
.mic-btn.recording { background: var(--rust); color: var(--cream); }
.mic-btn.done { background: var(--lime); color: var(--gold); }
.mic-ring {
  position: absolute; inset: 0; border-radius: 9999px;
  border: 2px solid var(--rust); animation: gRing 1.6s ease-out infinite;
}
.bars { height: 40px; display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 16px; }
.bars i { width: 4px; border-radius: 9999px; height: 5px; background: rgba(54, 59, 16, .14); transition: height .12s linear; }
.bars.on i { background: var(--spark); }
.rec-time { font-family: var(--epi); font-weight: 900; font-size: 30px; line-height: 36px; color: var(--gold); }
.rec-time.recording { color: var(--rust); }
.transcript-box { background: var(--lime); border-radius: 32px; padding: 22px; margin-bottom: 12px; }
.transcript-box textarea {
  width: 100%; background: none; border: none; color: var(--olive);
  font-size: 16px; line-height: 25.6px; resize: vertical; outline: none; padding: 0;
  font-family: var(--man);
}

/* ═══════════ APP ═══════════ */
.app { min-height: 100vh; display: flex; background: var(--cream); }

.rail {
  width: 272px; flex-shrink: 0; padding: 24px 20px;
  display: flex; flex-direction: column; background: var(--alt);
  position: sticky; top: 0; height: 100vh;
}
.rail-head { display: flex; align-items: center; gap: 11px; padding: 6px 12px 26px; }
.rail nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border: none; border-radius: 9999px; cursor: pointer;
  font-family: var(--epi); font-weight: 700; font-size: 14px; letter-spacing: -.35px;
  text-align: left; transition: all .15s; background: none; color: var(--gold); width: 100%;
}
.nav-item:hover { background: rgba(54, 59, 16, .06); }
.nav-item.on { background: var(--olive); color: var(--cream); }
.nav-item.on:hover { background: #4a5117; }
.nav-item .icon { font-size: 22px; flex-shrink: 0; }
.nav-item span:nth-child(2) { flex: 1; }
.nav-badge {
  font-family: var(--epi); font-weight: 700; font-size: 12px; line-height: 16px;
  background: var(--olive); color: var(--cream); border-radius: 9999px;
  padding: 3px 9px; min-width: 24px; text-align: center;
}
.nav-item.on .nav-badge { background: var(--spark); color: var(--olive); }

.rail-foot { margin-top: auto; padding-top: 20px; }
.rail-me {
  width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px;
  background: #fff; border: none; border-radius: 9999px; cursor: pointer;
  color: var(--olive); text-align: left; box-shadow: var(--shadow);
}
.rail-me:hover { background: var(--lime); }

main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(254, 254, 229, .9); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  padding: 18px 32px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.topbar-title { min-width: 0; flex: 1; }
.topbar h1 { margin: 0; font-family: var(--epi); font-weight: 900; font-size: 30px; line-height: 36px; letter-spacing: -1px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.recompute {
  height: 44px; padding: 0 22px; border-radius: 9999px; border: none;
  background: var(--olive); color: var(--cream);
  font-family: var(--epi); font-weight: 700; font-size: 14px; letter-spacing: -.35px;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.recompute:hover:not(:disabled) { background: #4a5117; }
.recompute:disabled { opacity: .6; cursor: default; }

.scroll { flex: 1; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 28px 32px 48px; }
.wrap.narrow { max-width: 880px; }
.wrap.slim { max-width: 720px; }
.wrap.tight { max-width: 800px; }

/* ── feed ── */
.computing {
  background: var(--lime); border-radius: 9999px; padding: 18px 26px;
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
  animation: gFade .3s ease both;
}
.computing .label {
  font-family: var(--epi); font-weight: 700; font-size: 16px;
  letter-spacing: .8px; text-transform: uppercase; color: var(--gold);
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat { border-radius: 32px; padding: 22px 24px; background: #fff; box-shadow: var(--shadow); }
.stat.dark { background: var(--olive); color: var(--cream); box-shadow: none; }
.stat.dark .eyebrow, .stat.dark .big-num { color: var(--spark); }
.stat.alt { background: var(--alt); box-shadow: none; }
.filters { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.match-list { display: flex; flex-direction: column; gap: 12px; }

.match {
  background: #fff; border-radius: 48px; overflow: hidden;
  animation: gRise .35s ease both; box-shadow: var(--shadow);
}
.match.open { box-shadow: var(--shadow-lift); }
.match.connected { outline: 2px solid var(--spark); outline-offset: -2px; }
.match-head { display: flex; align-items: flex-start; gap: 18px; padding: 24px 26px; }
.match-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.badge {
  font-family: var(--epi); font-weight: 700; font-size: 12px; line-height: 16px;
  letter-spacing: 1.2px; text-transform: uppercase; padding: 6px 12px; border-radius: 9999px;
}
.badge.alta { color: var(--olive); background: var(--spark); }
.badge.media { color: var(--gold); background: var(--lime); }
.badge.baja { color: var(--gold); background: rgba(127, 132, 82, .14); }
.score { font-family: var(--man); font-weight: 700; font-size: 14px; line-height: 14px; color: var(--gold); }
.place { font-size: 14px; line-height: 20px; color: var(--gold); display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.place .icon { font-size: 15px; }
.chev {
  width: 44px; height: 44px; border-radius: 9999px; border: 1px solid rgba(54, 59, 16, .14);
  background: none; color: var(--olive); cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform .2s;
}
.match.open .chev { transform: rotate(180deg); }
.match-body { padding: 0 26px 26px; animation: gFade .25s ease both; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-bottom: 16px; }
.duo > div { border-radius: 32px; padding: 20px 22px; }
.next-step {
  display: flex; gap: 14px; padding: 20px 22px; background: var(--olive);
  border-radius: 32px; margin-bottom: 18px; color: var(--cream);
}
.next-step .icon { font-size: 20px; flex-shrink: 0; opacity: .7; }
.match-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-connect {
  flex: 1; min-width: 200px; height: 52px; padding: 0 26px; border: none;
  border-radius: 9999px; background: var(--olive); color: var(--cream);
  font-family: var(--epi); font-weight: 700; font-size: 16px;
  letter-spacing: .8px; text-transform: uppercase; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.btn-connect:hover { background: #4a5117; }
.btn-skip {
  height: 52px; padding: 0 26px; border: 1px solid rgba(54, 59, 16, .2);
  border-radius: 9999px; background: none; color: var(--gold);
  font-family: var(--epi); font-weight: 700; font-size: 14px; letter-spacing: -.35px; cursor: pointer;
}
.btn-skip:hover { border-color: var(--olive); color: var(--olive); }
.state-pill {
  display: flex; align-items: center; gap: 11px; padding: 18px 22px;
  background: var(--alt); border-radius: 9999px;
  font-size: 14px; line-height: 20px; color: var(--gold);
}
.draft-box { background: var(--lime); border-radius: 32px; padding: 22px; }

.footnote {
  margin-top: 28px; padding: 32px; background: var(--alt);
  border-radius: 48px; text-align: center;
}

.empty {
  padding: 48px 32px; background: var(--alt); border-radius: 48px; text-align: center;
}

/* ── directorio ── */
.search-wrap { position: relative; margin-bottom: 16px; }
.search-wrap .icon {
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--gold); pointer-events: none;
}
.search-wrap .input { padding-left: 58px; padding-right: 26px; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.dir-card {
  background: #fff; border-radius: 48px; padding: 26px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow);
}
.dir-card .see {
  margin-top: auto; height: 46px; border: 1px solid var(--border);
  border-radius: 9999px; background: none; color: var(--olive);
  font-family: var(--epi); font-weight: 700; font-size: 14px; letter-spacing: -.35px; cursor: pointer;
}
.dir-card .see:hover { background: var(--olive); color: var(--cream); border-color: var(--olive); }

/* ── mapa ── */
.map-card { background: #fff; border-radius: 48px; overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow); }
.map-head {
  padding: 22px 28px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.map-legend { display: flex; gap: 18px; font-size: 12px; line-height: 16px; color: var(--gold); }
.map-legend span { display: flex; align-items: center; gap: 6px; }
.map-legend i { width: 9px; height: 9px; border-radius: 9999px; display: block; }
.map-body { padding: 20px; background: var(--alt); }
.map-body svg { width: 100%; height: auto; display: block; }
.region-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }

/* ── oportunidades ── */
.opp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.opp {
  border-radius: 48px; padding: 28px; display: flex; flex-direction: column; gap: 13px;
  background: var(--alt);
}
.opp.offers { background: #fff; box-shadow: var(--shadow); }
.opp-kind {
  font-family: var(--epi); font-weight: 700; font-size: 12px; line-height: 16px;
  letter-spacing: 1.2px; text-transform: uppercase; padding: 7px 14px; border-radius: 9999px;
  background: var(--spark); color: var(--olive);
}
.opp.offers .opp-kind { background: var(--lime); color: var(--gold); }
.opp-foot {
  display: flex; align-items: center; gap: 11px; margin-top: auto;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.opp-foot button {
  height: 40px; padding: 0 18px; border: 1px solid var(--border); border-radius: 9999px;
  background: none; color: var(--olive); font-family: var(--epi); font-weight: 700;
  font-size: 14px; letter-spacing: -.35px; cursor: pointer; flex-shrink: 0;
}
.opp-foot button:hover { background: var(--olive); color: var(--cream); border-color: var(--olive); }

/* ── mensajes ── */
.chats { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.thread-list { display: flex; flex-direction: column; gap: 8px; }
.thread {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  border-radius: 9999px; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: none; color: var(--olive); width: 100%;
}
.thread.on { border-color: transparent; background: #fff; box-shadow: var(--shadow); }
.chat-pane {
  background: #fff; border-radius: 48px; display: flex; flex-direction: column;
  min-height: 520px; overflow: hidden; box-shadow: var(--shadow);
}
.chat-head { padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 13px; }
.chat-body { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 12px; overflow: auto; max-height: 60vh; }
.chat-reason {
  align-self: center; font-family: var(--epi); font-weight: 700; font-size: 12px; line-height: 16px;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold);
  background: var(--lime); border-radius: 9999px; padding: 8px 18px; text-align: center;
}
.msg { max-width: 78%; padding: 16px 22px; border-radius: 32px; font-size: 16px; line-height: 25.6px; }
.msg.them { align-self: flex-start; background: var(--alt); color: var(--olive); }
.msg.me { align-self: flex-end; background: var(--olive); color: var(--cream); }
.composer { padding: 20px 24px; border-top: 1px solid var(--line); }
.composer-row { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { flex: 1; background: var(--cream); resize: none; }
.send-btn {
  width: 52px; height: 52px; border-radius: 9999px; border: none;
  background: var(--olive); color: var(--cream); cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.send-btn:hover { background: #4a5117; }

/* ── notificaciones ── */
.notif {
  display: flex; gap: 16px; padding: 22px 26px; border-radius: 32px;
  border: 1px solid var(--line); background: none;
}
.notif.unread { background: #fff; border-color: transparent; box-shadow: var(--shadow); }
.notif-icon {
  width: 44px; height: 44px; border-radius: 9999px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  background: rgba(127, 132, 82, .14); color: var(--olive);
}
.notif-icon.dark { background: var(--olive); color: var(--cream); }
.notif-icon.spark { background: var(--spark); color: var(--olive); }
.notif-icon.lime { background: var(--lime); color: var(--gold); }
.notif .dot { width: 9px; height: 9px; border-radius: 9999px; background: var(--rust); flex-shrink: 0; margin-top: 9px; }

/* ── ajustes ── */
.setting-group { background: #fff; border-radius: 48px; overflow: hidden; box-shadow: var(--shadow); }
.setting-head { padding: 24px 28px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.setting-row { padding: 20px 28px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line-soft); }
.setting-row.toggle { padding: 22px 28px; gap: 18px; }
.pill-now {
  font-family: var(--epi); font-weight: 700; font-size: 12px;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--cream); background: var(--olive); border-radius: 9999px; padding: 6px 14px;
}
.switch {
  width: 56px; height: 32px; border-radius: 9999px; border: none; cursor: pointer;
  flex-shrink: 0; padding: 3px; display: flex; justify-content: flex-start;
  background: rgba(54, 59, 16, .18); transition: background .2s;
}
.switch.on { justify-content: flex-end; background: var(--olive); }
.switch i { width: 26px; height: 26px; border-radius: 9999px; background: #fff; display: block; transition: all .2s; }
.switch.on i { background: var(--spark); }
.danger {
  height: 56px; width: 100%; border: 1px solid rgba(178, 61, 33, .35); border-radius: 9999px;
  background: none; color: var(--rust); font-family: var(--epi); font-weight: 700;
  font-size: 16px; letter-spacing: .8px; text-transform: uppercase; cursor: pointer;
}
.danger:hover { background: var(--rust); color: var(--cream); border-color: var(--rust); }
.invite-code {
  font-family: var(--epi); font-weight: 700; font-size: 16px; letter-spacing: 1.6px;
  color: var(--olive); background: var(--lime); border-radius: 9999px; padding: 8px 16px;
}
.qr { display: block; width: 200px; height: 200px; margin: 0 auto 26px; border-radius: 32px; background: #fff; padding: 14px; box-shadow: 0 8px 40px rgba(54, 59, 16, .08); }

/* ── hoja de perfil ── */
.sheet-scrim {
  position: fixed; inset: 0; z-index: 60; background: rgba(54, 59, 16, .4);
  backdrop-filter: blur(8px); display: flex; align-items: flex-end; justify-content: center;
  animation: gFade .2s ease both;
}
.sheet {
  width: 100%; max-width: 660px; max-height: 90vh; overflow: auto;
  background: var(--cream); border-radius: 48px 48px 0 0; padding: 32px;
  animation: gRise .3s cubic-bezier(.16, 1, .3, 1) both;
}

/* ── tab bar móvil ── */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: rgba(254, 254, 229, .94); backdrop-filter: blur(24px);
  border-top: 1px solid var(--line);
  display: flex; padding: 8px 8px calc(12px + env(safe-area-inset-bottom)); gap: 4px;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 2px; border: none; cursor: pointer; border-radius: 9999px;
  background: none; color: var(--gold);
}
.tab.on { background: var(--lime); color: var(--olive); }
.tab .icon { font-size: 24px; }
.tab span:last-child { font-family: var(--epi); font-weight: 700; font-size: 12px; line-height: 16px; }

/* ── toast ── */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 90; max-width: min(520px, calc(100vw - 32px));
  background: var(--olive); color: var(--cream);
  padding: 16px 24px; border-radius: 9999px;
  font-size: 14px; line-height: 20px; box-shadow: 0 12px 48px rgba(54, 59, 16, .28);
  animation: gRise .25s ease both;
}
.toast.error { background: var(--rust); }

/* ── utilidades ── */
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; }
.wrap-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-8 { margin-bottom: 8px; } .mb-10 { margin-bottom: 10px; } .mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; } .mb-18 { margin-bottom: 18px; } .mb-20 { margin-bottom: 20px; }
.mb-22 { margin-bottom: 22px; } .mb-24 { margin-bottom: 24px; } .mb-26 { margin-bottom: 26px; } .mb-28 { margin-bottom: 28px; }
.mt-10 { margin-top: 10px; } .mt-16 { margin-top: 16px; } .mt-18 { margin-top: 18px; } .mt-24 { margin-top: 24px; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* ── responsive ── */
@media (max-width: 939px) {
  .rail { display: none; }
  .scroll { padding-bottom: 84px; }
  .wrap { padding: 20px 18px 40px; }
  .topbar { padding: 16px 18px; }
  .topbar h1 { font-size: 24px; line-height: 30px; letter-spacing: -.6px; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 32px 24px; min-height: 0; }
  .auth-copy { margin: 40px 0; }
  .auth-panel { padding: 32px 20px 48px; }
  .h1 { letter-spacing: -1.8px; }
  .h2 { font-size: 30px; line-height: 36px; letter-spacing: -1px; }
  .match-head { padding: 20px; gap: 14px; }
  .match-body { padding: 0 20px 20px; }
  .sheet { padding: 24px 20px; }
}
@media (min-width: 940px) { .tabbar { display: none; } }
