/* Ducer · portal para agentes inmobiliarios
   Layout: menú lateral fijo a la izquierda (cajón en móvil) + barra superior + área de trabajo con tarjetas.
   Dirección: negro grafito y oro de la marca, como el logo. Un único look oscuro, elegido a propósito. */
:root {
  --ink: #0b0b0d;
  --ink-2: #101013;
  --panel: #141418;
  --panel-2: #1b1b21;
  --panel-3: #23232a;
  --line: #2b2a30;
  --line-2: #3a3840;
  --text: #efebe3;
  --muted: #a39e93;
  --faint: #6f6b63;
  --gold: #c9a44c;
  --gold-2: #e9cf86;
  --gold-deep: #7d6227;
  --gold-wash: rgba(201, 164, 76, .12);
  --ok: #45bd84;
  --ok-wash: rgba(69, 189, 132, .12);
  --warn: #e3a13a;
  --warn-wash: rgba(227, 161, 58, .13);
  --err: #e8584f;
  --err-wash: rgba(232, 88, 79, .12);
  --info: #74a9e6;
  --info-wash: rgba(116, 169, 230, .12);
  --brand: #c9a44c;

  --f-display: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --side-w: 272px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 15px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold-2); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); height: 100%; }
.side {
  background: linear-gradient(180deg, #0e0e11, #0b0b0d 60%);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
.side-brand { padding: 18px 18px 14px; display: grid; gap: 12px; border-bottom: 1px solid var(--line); position: relative; }
.side-brand img.logo { width: 100%; max-width: 200px; margin: 0 auto; border-radius: 6px; }
.side-brand .bell { position: absolute; right: 12px; top: 12px; }
.net-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.net-dot { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; opacity: .45; }
.net-dot.on { opacity: 1; box-shadow: 0 0 0 1.5px var(--gold); }
.nav { flex: 1; overflow-y: auto; padding: 12px 10px; display: grid; gap: 2px; align-content: start; }
.nav-sec { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 6px; }
.nav a {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500;
  border: 1px solid transparent;
}
.nav a small { display: block; font-size: 11px; color: var(--faint); font-weight: 400; line-height: 1.2; }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: var(--panel-2); color: var(--text); border-color: var(--line-2); }
.nav a.active svg { color: var(--gold-2); }
.nav a.gold { color: var(--gold-2); }
.pill-ia { font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 2px 7px; border-radius: 99px; background: var(--gold-wash); color: var(--gold-2); border: 1px solid rgba(201,164,76,.3); }
.side-foot { border-top: 1px solid var(--line); padding: 12px 14px 14px; display: grid; gap: 10px; }
.me { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #1a1406; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.me b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me span { display: block; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-sel { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.lang-sel select { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 13px; }
.side-foot .legal { font-size: 11px; color: var(--faint); }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.banner {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  background: linear-gradient(90deg, #1c160a, #15120c 60%, #0f0e0c);
  border-bottom: 1px solid rgba(201,164,76,.25);
  font-size: 14px; color: var(--muted);
}
.banner b { color: var(--text); }
.banner .grow { flex: 1; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--ink-2); }
.topbar .crumb { flex: 1; min-width: 0; color: var(--faint); font-size: 13px; }
.btn.burger { display: none; }
.content { flex: 1; overflow-y: auto; min-height: 0; }
.page { max-width: 1040px; margin: 0 auto; padding: 28px 24px 64px; display: grid; gap: 20px; align-content: start; }
.page.narrow { max-width: 860px; }

/* ---------- Type ---------- */
.ph { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.ph .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-wash); color: var(--gold-2); border: 1px solid rgba(201,164,76,.25); flex: none; }
.ph .tx { flex: 1; min-width: 220px; }
.ph h1 { font: 400 28px/1.15 var(--f-display); letter-spacing: .01em; }
.ph p { color: var(--muted); margin-top: 4px; }
.ph .acts { display: flex; gap: 8px; flex-wrap: wrap; }
h2.sec { font: 400 21px/1.2 var(--f-display); }
.label-up { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.gold-t { color: var(--gold-2); }
.ok-t { color: var(--ok); }
.err-t { color: var(--err); }

/* ---------- Surfaces ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; display: grid; gap: 16px; min-width: 0; }
.card.flat { background: transparent; }
.card.hl { border-color: rgba(201,164,76,.45); background: linear-gradient(180deg, rgba(201,164,76,.07), var(--panel) 40%); }
.card-h { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.card-h .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-3); color: var(--gold-2); flex: none; }
.card-h .tx { flex: 1; min-width: 180px; }
.card-h h3 { font-size: 16px; font-weight: 600; }
.card-h p { font-size: 13px; color: var(--muted); }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-m); font-size: 14px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.note svg { flex: none; margin-top: 2px; }
.note b { color: var(--text); }
.note.ok { background: var(--ok-wash); border-color: rgba(69,189,132,.35); color: #bfe8d3; }
.note.ok b { color: var(--ok); }
.note.warn { background: var(--warn-wash); border-color: rgba(227,161,58,.35); color: #f0d6aa; }
.note.err { background: var(--err-wash); border-color: rgba(232,88,79,.35); color: #f2c2be; }
.note.gold { background: var(--gold-wash); border-color: rgba(201,164,76,.35); color: #eadbb3; }
.divider { height: 1px; background: var(--line); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 10px; }
.stack-s { display: grid; gap: 6px; }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--panel-3); border-color: #4a4750; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1406; border-color: transparent; }
.btn.gold:hover { background: linear-gradient(180deg, #f2db9c, #d4b05a); }
.btn.outline-gold { background: transparent; border-color: rgba(201,164,76,.55); color: var(--gold-2); }
.btn.outline-gold:hover { background: var(--gold-wash); }
.btn.ok { background: var(--ok); border-color: transparent; color: #06170e; }
.btn.danger { background: transparent; border-color: rgba(232,88,79,.5); color: var(--err); }
.btn.danger:hover { background: var(--err-wash); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel-2); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.icon-btn { width: 38px; height: 38px; padding: 0; border-radius: 10px; position: relative; }
.badge-n { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; border-radius: 99px; background: var(--err); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }

.field { display: grid; gap: 6px; min-width: 0; }
.field label, .flabel { font-size: 13px; font-weight: 600; color: var(--text); }
.field .hint { font-size: 12px; color: var(--faint); }
.in, select.in, textarea.in {
  width: 100%; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; color: var(--text); min-width: 0;
}
textarea.in { resize: vertical; min-height: 96px; line-height: 1.5; }
.in:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash); }
.in::placeholder { color: var(--faint); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2);
  color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.chip:hover { color: var(--text); }
.chip.on { background: var(--gold-wash); border-color: var(--gold); color: var(--gold-2); }
.chip .n { font-size: 11px; color: var(--faint); }
.chip.day { width: 40px; justify-content: center; padding: 8px 0; }
.chip small { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 5px; background: var(--ok-wash); color: var(--ok); }

.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--muted); font-weight: 600; padding: 8px 16px; border-radius: 9px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.seg button.on { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg.wide { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
.save-tag { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--ok); color: #06170e; }

.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--panel-3); border: 1px solid var(--line-2); transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; top: 2px; left: 2px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked + span { background: var(--gold-deep); border-color: var(--gold); }
.switch input:checked + span::after { left: 22px; background: var(--gold-2); }
.switch input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.toggle-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row .tx { flex: 1; min-width: 0; }
.toggle-row .tx b { display: block; font-weight: 600; font-size: 14px; }
.toggle-row .tx span { font-size: 13px; color: var(--muted); }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); background: var(--panel-2); white-space: nowrap; }
.tag.ok { color: var(--ok); background: var(--ok-wash); border-color: rgba(69,189,132,.35); }
.tag.warn { color: var(--warn); background: var(--warn-wash); border-color: rgba(227,161,58,.35); }
.tag.err { color: var(--err); background: var(--err-wash); border-color: rgba(232,88,79,.35); }
.tag.gold { color: var(--gold-2); background: var(--gold-wash); border-color: rgba(201,164,76,.35); }
.tag.info { color: var(--info); background: var(--info-wash); border-color: rgba(116,169,230,.35); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 11px 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--gold); }

/* ---------- Home (Trabaja con Ducer) ---------- */
.home { min-height: 100%; display: grid; place-items: center; padding: 40px 20px; }
.home-in { width: 100%; max-width: 620px; display: grid; gap: 22px; justify-items: center; text-align: center; }
.home .orb { width: 96px; height: 96px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--gold-deep), var(--gold-2), var(--gold), var(--gold-deep)); box-shadow: 0 0 60px rgba(201,164,76,.18); }
.home .orb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #0a0a0b; }
.home h1 { font: 400 34px/1.1 var(--f-display); }
.home p { color: var(--muted); max-width: 46ch; }
.home-acts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; width: 100%; }
.home-acts button {
  display: flex; gap: 12px; align-items: center; text-align: left; padding: 16px 18px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-weight: 600; font-size: 15px;
}
.home-acts button:hover { border-color: var(--gold); background: var(--panel-2); }
.home-acts button.prim { border-color: rgba(201,164,76,.45); background: linear-gradient(135deg, rgba(201,164,76,.14), var(--panel)); }
.home-acts button .cnt { margin-left: auto; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--panel-3); color: var(--muted); }
.home-acts svg { color: var(--gold-2); flex: none; }
.home-quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---------- Chat ---------- */
.chat { display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; height: 100%; }
.chat-h { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.chat-h h2 { font-size: 16px; font-weight: 600; flex: 1; }
.msgs { overflow-y: auto; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; max-width: 760px; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .av { width: 34px; height: 34px; border-radius: 50%; flex: none; overflow: hidden; border: 1px solid var(--gold-deep); background: #0a0a0b; }
.msg .av img { width: 100%; height: 100%; object-fit: cover; }
.bubble { padding: 12px 16px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.msg.me .bubble { background: linear-gradient(180deg, #2a2312, #221c0f); border-color: rgba(201,164,76,.4); }
.msg time { display: block; font-size: 11px; color: var(--faint); margin-top: 4px; }
.msg.me time { text-align: right; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-right: 4px; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.chat-chips { display: flex; justify-content: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.chat-in { display: flex; gap: 8px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); align-items: center; background: var(--ink-2); }
.chat-in .in { flex: 1; }
.draft { display: grid; gap: 12px; margin-top: 10px; padding: 14px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line-2); white-space: normal; }
.draft .media { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.draft .media > * { aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.draft .media img { width: 100%; height: 100%; object-fit: cover; }
.draft .copy { white-space: pre-wrap; font-size: 14px; }
.draft .hash { color: var(--gold-2); font-size: 13px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 8px; margin-top: 10px; white-space: normal; }
.pick-grid button { text-align: left; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--panel); cursor: pointer; color: var(--text); }
.pick-grid button:hover { border-color: var(--gold); }
.pick-grid .ph-img { aspect-ratio: 4/3; }
.pick-grid .t { padding: 6px 8px; font-size: 12px; font-weight: 600; }

/* ---------- Property cards ---------- */
.props { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.prop { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); display: grid; position: relative; cursor: pointer; transition: border-color .15s; }
.prop:hover { border-color: var(--line-2); }
.prop.nopub { border-color: rgba(232,88,79,.5); }
.prop.nopub .ph-img { filter: grayscale(.85) brightness(.6); }
.prop .ph-img { aspect-ratio: 4/3; position: relative; }
.ph-img { background: var(--panel-3); overflow: hidden; }
.ph-img img, .ph-img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.prop .chk { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 7px; background: rgba(11,11,13,.7); border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; color: #fff; }
.prop.nopub .chk { background: var(--err); border-color: var(--err); }
.prop .src { position: absolute; top: 10px; left: 10px; }
.prop .np { position: absolute; left: 10px; bottom: 10px; }
.prop .b { padding: 12px 14px 14px; display: grid; gap: 4px; }
.prop .b h4 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.prop .price { font: 400 19px/1.2 var(--f-display); color: var(--gold-2); }
.prop .meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.prop .cnt-ph { position: absolute; right: 10px; bottom: 10px; font-size: 11px; padding: 2px 7px; border-radius: 6px; background: rgba(11,11,13,.75); color: #fff; }

/* ---------- Sources ---------- */
.src-item { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.src-head { display: flex; gap: 14px; align-items: center; padding: 16px 18px; flex-wrap: wrap; }
.src-head .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-3); color: var(--gold-2); flex: none; }
.src-head .tx { flex: 1; min-width: 200px; }
.src-head h4 { font-size: 15px; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.src-head p { font-size: 13px; color: var(--muted); }
.src-body { border-top: 1px solid var(--line); padding: 18px; display: grid; gap: 14px; background: var(--ink-2); }
.drop { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 24px; text-align: center; display: grid; gap: 8px; justify-items: center; color: var(--muted); cursor: pointer; background: var(--ink-2); }
.drop:hover, .drop.over { border-color: var(--gold); color: var(--text); background: var(--gold-wash); }
.url-list { display: grid; gap: 8px; }
.url-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.url-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Socials ---------- */
.nets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.net { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 18px; display: grid; gap: 14px; grid-template-rows: 1fr auto; }
.net.on { border-color: rgba(69,189,132,.4); }
.net-top { display: flex; gap: 14px; align-items: flex-start; }
.net-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff; flex: none; }
.net-top b { display: block; font-size: 15px; }
.net-top .st { font-size: 13px; color: var(--muted); }
.net-top .st.on { color: var(--ok); }
.net-top p { font-size: 12px; color: var(--faint); margin-top: 4px; }

/* ---------- Billing ---------- */
.meter { display: grid; gap: 6px; }
.meter .row { justify-content: space-between; font-size: 14px; }
.bar { height: 6px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); border-radius: 99px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 22px; display: grid; gap: 14px; grid-template-rows: auto auto auto 1fr auto; position: relative; }
.plan.pop { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 20px 50px -20px rgba(201,164,76,.35); }
.plan .ribbon { position: absolute; top: -11px; left: 22px; }
.plan h3 { font: 400 20px/1.2 var(--f-display); }
.plan .pr { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan .pr b { font: 600 36px/1 var(--f-body); letter-spacing: -.02em; }
.plan .pr s { color: var(--faint); font-size: 15px; }
.plan .lim { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.plan .lim b { color: var(--text); font-weight: 600; }
.feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; align-content: start; }
.feat li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.feat li.off { color: var(--faint); }
.feat li svg { margin-top: 3px; }
.feat li.on svg { color: var(--ok); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 12px 16px; background: var(--panel-2); }
.tbl td { padding: 12px 16px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tbl td.r, .tbl th.r { text-align: right; }

/* ---------- Calendar ---------- */
.cal-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-h h3 { font-size: 16px; font-weight: 600; min-width: 150px; text-align: center; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; }
.cal .dow { text-align: center; font-size: 12px; color: var(--faint); font-weight: 600; padding: 4px 0; }
.cal .d { min-height: 74px; border-radius: 10px; border: 1px solid var(--line); background: var(--ink-2); padding: 7px 8px; display: grid; align-content: start; gap: 4px; cursor: pointer; text-align: left; color: var(--text); font-size: 13px; font-weight: 600; min-width: 0; }
.cal .d.out { background: transparent; border-color: transparent; color: var(--faint); cursor: default; }
.cal .d.today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.cal .d.sel { background: var(--panel-2); }
.cal .d .ev { font-size: 11px; font-weight: 500; padding: 2px 6px; border-radius: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ev.sch { background: var(--warn-wash); color: var(--warn); }
.ev.pub { background: var(--ok-wash); color: var(--ok); }
.ev.fail { background: var(--err-wash); color: var(--err); }
.ev.pend { background: var(--info-wash); color: var(--info); }

.post-row { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.post-row .ph-img { width: 64px; height: 64px; border-radius: 10px; }
.post-row h4 { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-row p { font-size: 12px; color: var(--muted); }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .ico { width: 60px; height: 60px; border-radius: 16px; background: var(--panel-2); display: grid; place-items: center; color: var(--faint); }
.empty b { color: var(--text); font-size: 16px; }

/* ---------- Videos ---------- */
.vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.vid { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); display: grid; }
.vid .scr { position: relative; background: #000; overflow: hidden; }
.vid .scr.v916 { aspect-ratio: 9/16; max-height: 360px; }
.vid .scr.v169 { aspect-ratio: 16/9; }
.slides { position: absolute; inset: 0; }
.slides > * { position: absolute; inset: 0; opacity: 0; animation: slide 9s infinite; }
.slides > * img, .slides > * svg { width: 100%; height: 100%; object-fit: cover; animation: kb 9s infinite; }
@keyframes slide { 0% { opacity: 0; } 4% { opacity: 1; } 30% { opacity: 1; } 36% { opacity: 0; } 100% { opacity: 0; } }
@keyframes kb { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1.12); } }
.vid .ovl { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 12px 12px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); display: grid; gap: 4px; }
.vid .ovl .bandc { height: 3px; width: 40px; border-radius: 2px; background: var(--brand); }
.vid .ovl b { font: 400 15px/1.2 var(--f-display); color: #fff; }
.vid .ovl span { font-size: 12px; color: #ddd; }
.vid .prog { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; gap: 8px; align-content: center; justify-items: center; font-size: 13px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--gold-2); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.vid .b { padding: 12px; display: grid; gap: 8px; }
.vid .b h4 { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--ink-2); }
.track b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.track span { font-size: 12px; color: var(--faint); }
.track.fixed { border-color: var(--gold); }
.opt { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; text-align: left; color: var(--text); }
.opt b { display: block; font-size: 14px; }
.opt span { font-size: 12px; color: var(--muted); }
.opt.on { border-color: var(--gold); background: linear-gradient(135deg, rgba(201,164,76,.12), var(--panel-2)); }
.opt svg { color: var(--gold-2); margin-top: 2px; }

/* ---------- Autopilot ---------- */
.ap-status { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ap-status .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-3); color: var(--faint); flex: none; }
.ap-status.on .ico { background: var(--ok-wash); color: var(--ok); }
.ap-status .tx { flex: 1; min-width: 200px; }
.ap-status b { font-size: 16px; display: block; }
.ap-sum { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.ap-sum span { display: inline-flex; gap: 8px; align-items: center; }
.ap-sum b { color: var(--text); }
.ap-sum svg { color: var(--gold-2); }
.big-opt { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.big-opt button { padding: 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); cursor: pointer; display: grid; gap: 4px; justify-items: center; text-align: center; }
.big-opt button b { font-size: 26px; font-weight: 600; line-height: 1; }
.big-opt button span { font-size: 13px; color: var(--muted); }
.big-opt button.on { border-color: var(--gold); background: linear-gradient(180deg, rgba(201,164,76,.12), var(--panel-2)); }
.big-opt button em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--gold-2); }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; }
.stat { padding: 14px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); display: grid; gap: 4px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat b { font: 600 24px/1 var(--f-body); font-variant-numeric: tabular-nums; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; align-items: end; height: 90px; }
.week .c { display: grid; gap: 6px; justify-items: center; align-content: end; height: 100%; }
.week .c i { width: 70%; max-width: 32px; border-radius: 6px 6px 2px 2px; background: var(--panel-3); min-height: 4px; display: block; }
.week .c.has i { background: linear-gradient(180deg, var(--gold-2), var(--gold-deep)); }
.week .c span { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.week .c.today span { color: var(--gold-2); font-weight: 700; }
.next-list { display: grid; gap: 8px; }
.next-item { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); }
.next-item .ph-img { width: 56px; height: 56px; border-radius: 10px; }
.next-item b { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-item span { font-size: 12px; color: var(--muted); }

/* ---------- Premium ---------- */
.prem { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.video-thumb { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 120% at 80% 20%, #3a2c0e 0%, #141418 55%, #0b0b0d 100%); display: grid; align-content: end; padding: 20px; cursor: pointer; text-align: left; color: #fff; width: 100%; }
.video-thumb .big { font: 400 34px/1.05 var(--f-display); color: var(--gold-2); text-transform: uppercase; }
.video-thumb .sub { font-size: 14px; color: #ddd; margin-top: 6px; }
.video-thumb .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 66px; height: 66px; border-radius: 50%; background: rgba(201,164,76,.92); display: grid; place-items: center; color: #1a1406; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.price-big { font: 600 44px/1 var(--f-body); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.btn.orange { background: linear-gradient(180deg, #f39a3d, #e07a1c); color: #1d0e00; border-color: transparent; }

/* ---------- App install ---------- */
.app-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 28px; align-items: center; padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(90% 120% at 10% 90%, rgba(201,164,76,.16), transparent 60%), var(--panel); }
.phone { width: 230px; max-width: 100%; aspect-ratio: 9/18.5; margin: 0 auto; border-radius: 36px; padding: 10px; background: #1e1d22; border: 1px solid #3a3840; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), inset 0 0 0 2px #0b0b0d; transform: rotate(-6deg); }
.phone .scr { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, #17140c, #0b0b0d 70%); display: grid; grid-template-rows: auto 1fr auto; justify-items: center; padding: 12px 14px 18px; position: relative; }
.phone .notch { width: 80px; height: 22px; border-radius: 99px; background: #000; }
.phone .bar-t { position: absolute; top: 14px; left: 18px; right: 18px; display: flex; justify-content: space-between; font-size: 11px; color: #ddd; font-weight: 600; }
.phone .mid { display: grid; gap: 8px; justify-items: center; align-content: center; text-align: center; }
.phone .mid img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 30px rgba(201,164,76,.25); }
.phone .mid b { font: 400 22px/1 var(--f-display); letter-spacing: .14em; color: var(--gold-2); }
.phone .mid span { font-size: 9px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.phone .dock { display: flex; gap: 10px; }
.phone .dock i { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.08); display: block; }
.qr-box { background: #fff; border-radius: 18px; padding: 16px; display: grid; gap: 10px; justify-items: center; width: max-content; max-width: 100%; color: #111; }
.qr-box .qr { width: 180px; height: 180px; display: grid; place-items: center; }
.qr-box .qr img, .qr-box .qr canvas { width: 180px !important; height: 180px !important; }
.qr-box span { font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.steps { display: grid; gap: 10px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 14px; color: var(--muted); counter-increment: s; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--gold-wash); color: var(--gold-2); font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 1px solid rgba(201,164,76,.35); }
.steps li b { color: var(--text); }

/* ---------- Brand color preview ---------- */
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sw { width: 32px; height: 32px; border-radius: 9px; border: 2px solid transparent; cursor: pointer; padding: 0; }
.sw.on { border-color: #fff; }
.color-in { width: 46px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; padding: 2px; cursor: pointer; }
.brand-prev { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.bp { border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 16/10; border: 1px solid var(--line); }
.bp .lt { position: absolute; left: 12px; bottom: 12px; right: 12px; display: grid; gap: 3px; }
.bp .lt b { background: var(--brand); color: #fff; padding: 4px 9px; border-radius: 6px; font-size: 13px; width: max-content; max-width: 100%; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.bp .lt span { background: rgba(0,0,0,.7); color: #fff; padding: 3px 8px; border-radius: 5px; font-size: 11px; width: max-content; max-width: 100%; }
.bp .corner { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 8px; background: #0b0b0d center/cover; border: 2px solid var(--brand); }
.logo-box { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.logo-prev { width: 120px; height: 120px; border-radius: 14px; border: 1.5px dashed var(--line-2); display: grid; place-items: center; overflow: hidden; background: var(--ink-2); flex: none; }
.logo-prev img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Overlays ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(5,5,6,.72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .15s ease; }
.modal { width: 100%; max-width: 560px; max-height: calc(100% - 20px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; display: grid; gap: 16px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.7); }
.modal.wide { max-width: 760px; }
.modal-h { display: flex; gap: 12px; align-items: flex-start; }
.modal-h h3 { font: 400 22px/1.2 var(--f-display); flex: 1; }
.modal-f { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.toasts { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; width: max-content; max-width: calc(100% - 32px); }
.toast { padding: 11px 16px; border-radius: 12px; background: #24221d; border: 1px solid rgba(201,164,76,.45); color: var(--text); font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); display: flex; gap: 10px; align-items: center; animation: fade .2s ease; }
.toast svg { color: var(--gold-2); flex: none; }
.notif-pop { position: absolute; z-index: 40; top: 54px; left: 14px; right: 14px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 30px 60px -10px rgba(0,0,0,.7); padding: 8px; display: grid; gap: 2px; max-height: 360px; overflow-y: auto; }
.notif-pop .ni { padding: 10px; border-radius: 10px; display: grid; grid-template-columns: 8px 1fr; gap: 10px; font-size: 13px; }
.notif-pop .ni:hover { background: var(--panel-2); }
.notif-pop .ni i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 6px; }
.notif-pop .ni.read i { background: transparent; }
.notif-pop .ni span { color: var(--faint); font-size: 11px; display: block; }
.progress-steps { display: grid; gap: 8px; }
.progress-steps div { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--faint); }
.progress-steps div.done { color: var(--text); }
.progress-steps div.done svg { color: var(--ok); }
.progress-steps div.cur { color: var(--gold-2); }
.suggest { border-left: 3px solid var(--gold); padding: 8px 12px; background: var(--gold-wash); border-radius: 0 8px 8px 0; font-size: 13px; color: #eadbb3; }

/* ---------- Login ---------- */
.login { min-height: 100%; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
.login .art { background: radial-gradient(80% 80% at 30% 30%, rgba(201,164,76,.18), transparent 60%), #08080a; display: grid; place-items: center; padding: 40px; border-right: 1px solid var(--line); }
.login .art img { max-width: 440px; width: 100%; }
.login .art p { font: 400 22px/1.4 var(--f-display); color: var(--muted); max-width: 26ch; text-align: center; margin-top: 18px; }
.login .frm { display: grid; place-items: center; padding: 32px 20px; }
.login .frm form { width: 100%; max-width: 380px; display: grid; gap: 16px; }
.login h1 { font: 400 30px/1.15 var(--f-display); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .prem { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: min(86vw, 300px); z-index: 45; transform: translateX(-105%); transition: transform .25s ease; padding-top: env(safe-area-inset-top, 0px); }
  .shell.open .side { transform: none; box-shadow: 30px 0 60px rgba(0,0,0,.6); }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 44; }
  .btn.burger { display: inline-flex; }
  .app-hero { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login .art { padding: 28px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login .art img { max-width: 260px; }
  .login .art p { font-size: 17px; }
}
@media (max-width: 640px) {
  .page { padding: 20px 16px 56px; gap: 16px; }
  .ph h1 { font-size: 24px; }
  .grid2, .grid3, .form-grid, .brand-prev, .home-acts, .big-opt { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .banner { padding: 10px 16px; font-size: 13px; flex-wrap: wrap; }
  .topbar { padding: 8px 16px; }
  .card { padding: 16px; }
  .cal { gap: 3px; }
  .cal .d { min-height: 52px; padding: 5px; font-size: 12px; }
  .cal .d .ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
  .home h1 { font-size: 28px; }
  .msgs { padding: 16px; }
  .chat-h { padding: 10px 16px; }
  .post-row { grid-template-columns: 52px minmax(0,1fr); }
  .post-row .ph-img { width: 52px; height: 52px; }
  .post-row > .row { grid-column: 1 / -1; }
  .app-hero { padding: 20px 16px; }
  .seg button { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .slides > *:first-child { opacity: 1; }
}
