/* SocialMuseo Notify — theme matched to socialmuseo.com (charcoal + lime, pill buttons) */
:root {
  color-scheme: dark;
  --bg: #17191d;
  --side: #131519;
  --panel: #1f2228;
  --panel-2: #272b32;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.8);
  --ink-3: rgba(255, 255, 255, 0.58);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.24);
  --accent: #c7f464;
  --accent-hover: #d6f88a;
  --accent-ink: #17191d;
  --accent-soft: rgba(199, 244, 100, 0.12);
  --warn: #f5c451;
  --warn-soft: rgba(245, 196, 81, 0.12);
  --bad: #ff7a6b;
  --bad-soft: rgba(255, 122, 107, 0.12);
  --info-soft: rgba(255, 255, 255, 0.05);
  --radius: 22px;
  --font: 'Century Gothic', 'URW Gothic', 'Avant Garde', Futura, 'Segoe UI', system-ui, sans-serif;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--accent); text-underline-offset: 3px; }
code, .mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.86em; }
h1 { font-size: 2rem; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.02em; text-transform: lowercase; line-height: 1.1; }
h1::after { content: '.'; color: var(--accent); }
h2 { font-size: 1.08rem; margin: 0 0 14px; font-weight: 700; }
h3 { font-size: 0.95rem; margin: 20px 0 8px; font-weight: 700; }
p { margin: 0 0 10px; line-height: 1.55; }
b, strong { font-weight: 700; }
.muted { color: var(--ink-3); }
.small { font-size: 0.85rem; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* brand */
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 12px 26px; }
.brand-logo { height: 32px; width: auto; display: block; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark { font-size: 0.72rem; letter-spacing: 0.24em; font-weight: 700; color: #fff; white-space: nowrap; }
.wordmark .lime { color: var(--accent); }
.product { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.24em; color: var(--ink); margin-top: 3px; }

/* layout */
.layout { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { background: var(--side); border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sidebar nav a { color: var(--ink-2); text-decoration: none; padding: 10px 14px; border-radius: 999px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar nav a:hover { background: var(--panel-2); color: #fff; }
.sidebar nav a.active { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.sidebar nav a.active .dot { box-shadow: 0 0 0 2px var(--accent-ink); }
.sidebar .logout { background: none; border: 1.6px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); cursor: pointer; padding: 9px 14px; font: inherit; width: 100%; }
.sidebar .logout:hover { color: #fff; border-color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); display: inline-block; flex: none; }
.dot.ok { background: var(--accent); }
.dot.bad { background: var(--bad); }
.dot.warn { background: var(--warn); }
main { padding: 34px 38px 70px; max-width: 1120px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
section[hidden] { display: none; }

/* panels */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.card.tight { padding: 18px 20px; }
.grid { display: grid; gap: 16px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat .num { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.stat .label { color: var(--ink-3); font-size: 0.85rem; margin-top: 4px; }
.stat:first-child .num { color: var(--accent); }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist .tick { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; flex: none; border: 1.6px solid var(--line-strong); color: var(--ink-2); font-weight: 700; }
.checklist .done .tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.checklist .text { flex: 1; min-width: 0; }
.checklist .text b { display: block; margin-bottom: 2px; }

/* forms */
label { display: block; font-weight: 700; font-size: 0.88rem; margin: 16px 0 7px; }
label.inline { display: flex; align-items: center; gap: 9px; font-weight: 400; margin: 9px 0; }
.hint { font-size: 0.82rem; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
input[type='text'], input[type='password'], input[type='tel'], input:not([type]), select, textarea {
  width: 100%; padding: 11px 15px; border: 1.6px solid var(--line-strong); border-radius: 14px; font: inherit; background: var(--bg); color: var(--ink);
}
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.36); }
option { background: var(--panel); color: var(--ink); }
input[type='checkbox'], input[type='radio'] { accent-color: var(--accent); width: 16px; height: 16px; }
textarea { resize: vertical; min-height: 90px; }
textarea.mono { font-size: 0.85rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(199, 244, 100, 0.45); outline-offset: 1px; border-color: var(--accent); }
input:disabled, textarea:disabled { opacity: 0.55; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 200px; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; background: var(--panel-2); }

/* buttons — pills like socialmuseo.com */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: 999px; border: 1.6px solid var(--line-strong); background: transparent; color: var(--ink); font: inherit; font-size: 0.92rem; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { border-color: #fff; background: rgba(255, 255, 255, 0.05); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--bad); border-color: rgba(255, 122, 107, 0.4); }
.btn.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn.small { padding: 6px 13px; font-size: 0.82rem; }
.btn:disabled, .btn.disabled { opacity: 0.5; cursor: not-allowed; }

/* badges / notes */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; background: rgba(255, 255, 255, 0.08); color: var(--ink-2); letter-spacing: 0.02em; }
.badge.ok { background: var(--accent-soft); color: var(--accent); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.note { padding: 13px 16px; border-radius: 16px; background: var(--info-soft); border: 1px solid var(--line); font-size: 0.88rem; line-height: 1.55; margin: 12px 0; color: var(--ink-2); }
.note.warn { background: var(--warn-soft); border-color: rgba(245, 196, 81, 0.25); color: #f9dfa3; }
.note.bad { background: var(--bad-soft); border-color: rgba(255, 122, 107, 0.3); color: #ffc7bf; }
.note.ok { background: var(--accent-soft); border-color: rgba(199, 244, 100, 0.3); color: #e3fab0; }
ol.steps { padding-left: 20px; margin: 6px 0 0; line-height: 1.7; color: var(--ink-2); }
ol.steps li { margin-bottom: 4px; }
ol.steps b { color: #fff; }

/* tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 8px; border-top: 1px solid var(--line); vertical-align: top; font-size: 0.9rem; }
th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); border-top: 0; font-weight: 700; }
td .sub { color: var(--ink-3); font-size: 0.8rem; margin-top: 2px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; align-content: flex-start; }

/* connections */
.conn { display: grid; grid-template-columns: 1fr auto; gap: 14px; }
.conn-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-weight: 700; font-size: 1.05rem; }
.conn-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin-top: 12px; font-size: 0.88rem; color: var(--ink-2); }
.conn-meta dt { color: var(--ink-3); }
.conn-meta dd { margin: 0; word-break: break-word; }
.empty { text-align: center; padding: 44px 20px; color: var(--ink-2); }

/* whatsapp */
.qr-wrap { display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap; }
.qr-wrap img { width: 268px; height: 268px; border-radius: 20px; padding: 10px; background: #fff; }
.pair-code { font-family: ui-monospace, Consolas, monospace; font-size: 2rem; letter-spacing: 0.14em; font-weight: 700; padding: 12px 20px; background: var(--accent-soft); color: var(--accent); border-radius: 16px; display: inline-block; }

/* activity */
.log { display: grid; grid-template-columns: 136px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.87rem; }
.log:first-child { border-top: 0; }
.log time { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.log .msg { color: var(--ink-2); }
.log.error .msg { color: var(--bad); }
.log.warn .msg { color: var(--warn); }
.log.success .msg { color: var(--accent); }

/* dialog */
dialog { border: 1px solid var(--line); border-radius: 26px; padding: 0; width: min(760px, 96vw); max-height: 92vh; background: var(--panel); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
dialog::backdrop { background: rgba(8, 9, 11, 0.7); }
.dlg-head { padding: 20px 26px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--panel); z-index: 1; }
.dlg-body { padding: 6px 26px 20px; }
.dlg-foot { padding: 16px 26px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; background: var(--panel); }
.forms-list { max-height: 190px; overflow: auto; border: 1px solid var(--line-strong); border-radius: 14px; padding: 6px 12px; margin-top: 6px; }
/* WhatsApp dark-mode chat preview */
.preview { white-space: pre-wrap; background: #0b141a; border-radius: 18px; padding: 14px; font-size: 0.88rem; font-family: 'Segoe UI', system-ui, sans-serif; }
.preview .bubble { background: #005c4b; color: #e9edef; border-radius: 10px; padding: 10px 12px; display: inline-block; max-width: 100%; }
.vars { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.vars code { background: var(--panel-2); color: var(--ink-2); padding: 3px 8px; border-radius: 999px; cursor: pointer; }
.vars code:hover { background: var(--accent-soft); color: var(--accent); }

/* toast */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 12px 22px; border-radius: 999px; font-size: 0.9rem; opacity: 0; pointer-events: none; transition: opacity 0.2s; max-width: 90vw; z-index: 100; }
#toast.show { opacity: 1; }
#toast.bad { background: var(--bad); color: #fff; }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(400px, 100%); padding: 30px 30px 26px; }
.login-card .brand { padding: 0 0 22px; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar .logout { width: auto; }
  .brand { padding: 4px 10px; }
  main { padding: 22px 16px 44px; }
  h1 { font-size: 1.6rem; }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .conn { grid-template-columns: 1fr; }
  .actions { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { #toast, .btn { transition: none; } }
