/* Inforclever · Área de clientes — estética basada en inforclever.es */
:root {
  --ic-navy: #002278;
  --ic-sky: #4faeee;
  --ic-blue: #0864c7;
  --ic-blue-dark: #054c98;
  --ic-cyan: #089ec7;
  --ic-ice: #e0f7fa;
  --ic-ink: #1d1e20;
  --ic-muted: #56585e;
  --ic-line: #e4e7ec;
  --ic-bg: #f5f8fc;
  --ic-white: #ffffff;
  --ic-ok: #12805c;
  --ic-warn: #b25e09;
  --ic-danger: #c0362c;
  --ic-gradient: linear-gradient(135deg, var(--ic-navy), var(--ic-sky));
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 34, 120, .08);
  --font-head: 'Roboto', sans-serif;
  --font-body: 'DM Sans', 'Roboto', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ic-ink);
  background: var(--ic-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; margin: 0 0 .5em; line-height: 1.15; }
p { line-height: 1.55; margin: 0 0 1em; }
a { color: var(--ic-blue); }
[hidden] { display: none !important; }
/* Tamaño por defecto de los iconos SVG (baja especificidad: cada componente puede cambiarlo) */
:where([data-icon], .btn, .avatar, .menu-toggle) > svg { width: 22px; height: 22px; display: block; flex-shrink: 0; }
:where(.btn) > svg { width: 18px; height: 18px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 500 15px var(--font-head);
  padding: 12px 28px; border-radius: 999px; border: 1px solid transparent;
  background: var(--ic-blue); color: #fff; cursor: pointer; text-decoration: none;
  transition: background .2s, transform .1s, box-shadow .2s;
}
.btn:hover { background: var(--ic-blue-dark); box-shadow: 0 6px 18px rgba(8, 100, 199, .25); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; box-shadow: none; }
.btn-outline { background: transparent; color: var(--ic-ink); border-color: var(--ic-ink); }
.btn-outline:hover { background: var(--ic-ink); color: #fff; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ic-blue); padding: 8px 14px; }
.btn-ghost:hover { background: var(--ic-ice); box-shadow: none; }
.btn-danger { background: var(--ic-danger); }
.btn-danger:hover { background: #9c2a22; }
.btn-sm { padding: 7px 16px; font-size: 14px; }
.btn-white { background: #fff; color: var(--ic-blue); }
.btn-white:hover { background: var(--ic-ice); }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font: 500 14px var(--font-head); }
.input, select.input, textarea.input {
  font: 16px var(--font-body); color: var(--ic-ink);
  padding: 12px 16px; border: 1px solid var(--ic-line); border-radius: 12px; background: #fff;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.input:focus { outline: none; border-color: var(--ic-blue); box-shadow: 0 0 0 3px rgba(8, 100, 199, .15); }
.input-group { display: flex; align-items: center; gap: 4px; }
.input-group .input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; letter-spacing: .02em; }
.field label .sub { color: var(--ic-muted); font-weight: 400; font-size: 13px; }
.form-error { color: var(--ic-danger); font-size: 14px; min-height: 1.2em; margin: 4px 0 12px; }

/* ---------- Cabecera ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: #fff; border-bottom: 1px solid var(--ic-line);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ic-ink); }
.logo img { height: 56px; width: auto; display: block; }
.logo span { font: 500 13px var(--font-head); color: var(--ic-muted); border-left: 1px solid var(--ic-line); padding-left: 12px; }
.nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  font: 400 15px var(--font-head); white-space: nowrap; color: var(--ic-ink); text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a.active { border-bottom-color: var(--ic-ink); }
.user-chip { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ic-gradient); color: #fff;
  display: grid; place-items: center; font: 600 15px var(--font-head); flex-shrink: 0;
}
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }

/* ---------- Hero ---------- */
.hero { background: var(--ic-gradient); color: #fff; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px 96px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 12px; }
.hero p { font-size: 18px; opacity: .9; max-width: 640px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.stat {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius); padding: 14px 22px; min-width: 150px; backdrop-filter: blur(4px);
}
.stat b { display: block; font: 600 28px var(--font-head); }
.stat small { opacity: .85; font-size: 14px; }

/* ---------- Contenido ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.main { margin-top: -56px; padding-bottom: 64px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0 20px; flex-wrap: wrap; }
.section-title h2 { font-size: 28px; margin: 0; }
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgba(0, 34, 120, .05); padding: 28px;
}
.main > .card:first-child, .main > section:first-child > .card:first-child { position: relative; }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.service {
  display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 34, 120, .12); }
.service .icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--ic-ice); color: var(--ic-blue);
  display: grid; place-items: center;
}
.service .icon svg { width: 28px; height: 28px; }
.service h3 { font-size: 21px; margin: 0; }
.service p { color: var(--ic-muted); margin: 0; font-size: 15px; }
.service dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 4px 0 0; font-size: 14px; }
.service dt { color: var(--ic-muted); }
.service dd { margin: 0; font-weight: 500; text-align: right; }
.service .actions { margin-top: auto; padding-top: 8px; }
.service.featured { border: 2px solid var(--ic-blue); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--font-head);
  text-transform: uppercase; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.activo { background: #e3f6ee; color: var(--ic-ok); }
.badge.pendiente { background: #fff3e0; color: var(--ic-warn); }
.badge.suspendido { background: #fdecea; color: var(--ic-danger); }
.badge.off { background: #f0f1f3; color: var(--ic-muted); }
.service .badge { position: absolute; top: 24px; right: 24px; }

/* ---------- Facturas y presupuestos ---------- */
.tabs { display: inline-flex; gap: 4px; background: var(--ic-bg); padding: 4px; border-radius: 999px; flex-wrap: wrap; }
.tabs button {
  font: 500 14px var(--font-head); border: 0; background: transparent; color: var(--ic-muted);
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
}
.tabs button[aria-selected=true] { background: #fff; color: var(--ic-blue); box-shadow: 0 2px 8px rgba(0, 34, 120, .1); }
.doc-name { display: flex; align-items: center; gap: 12px; }
.doc-type {
  font: 600 11px var(--font-head); text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap;
}
.doc-type.factura { background: var(--ic-ice); color: var(--ic-blue-dark); }
.doc-type.presupuesto { background: #f1ecff; color: #5b3cc4; }
th.num, td.num { text-align: right; white-space: nowrap; }
.file-drop {
  display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed var(--ic-line);
  border-radius: 12px; background: var(--ic-bg); cursor: pointer;
}
.file-drop:hover, .file-drop.drag { border-color: var(--ic-blue); background: var(--ic-ice); }
.file-drop input { display: none; }
.file-drop .sub { color: var(--ic-muted); font-size: 13px; }

/* ---------- Licencias y descargas ---------- */
.license-key {
  display: flex; align-items: center; gap: 4px; background: var(--ic-bg); border: 1px solid var(--ic-line);
  border-radius: 10px; padding: 6px 6px 6px 12px;
}
.license-key code { flex: 1; min-width: 0; font: 14px ui-monospace, Consolas, monospace; letter-spacing: .03em; overflow-wrap: anywhere; }
.dl-group + .dl-group { margin-top: 24px; }
.dl-group h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 4px; }
.dl-group h3 svg { width: 22px; height: 22px; color: var(--ic-blue); }
.dl-group .btn svg { width: 16px; height: 16px; }
.dl-group .list .sub { white-space: normal; }
.dl-cat {
  font: 600 11px var(--font-head); text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap; background: var(--ic-ice); color: var(--ic-blue-dark);
  min-width: 78px; text-align: center;
}
.dl-cat.software { background: #e3f6ee; color: var(--ic-ok); }
.dl-cat.manual { background: #fff3e0; color: var(--ic-warn); }
.dl-cat.firmware { background: #f1ecff; color: #5b3cc4; }
.dl-cat.otro { background: #f0f1f3; color: var(--ic-muted); }
.check-list { max-height: 220px; overflow-y: auto; border: 1px solid var(--ic-line); border-radius: 12px; padding: 6px 12px; }
.check-list label { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 15px; }
.check-list label + label { border-top: 1px solid var(--ic-line); }
.check-list input { width: 18px; height: 18px; accent-color: var(--ic-blue); }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; margin-bottom: 10px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--ic-blue); }
.progress { height: 8px; border-radius: 99px; background: var(--ic-ice); overflow: hidden; margin-top: 10px; }
.progress span { display: block; height: 100%; width: 0; background: var(--ic-gradient); transition: width .2s; }
.seg { display: inline-flex; gap: 4px; background: var(--ic-bg); padding: 4px; border-radius: 12px; margin-bottom: 12px; }
.seg label { padding: 7px 14px; border-radius: 9px; cursor: pointer; font: 500 14px var(--font-head); color: var(--ic-muted); }
.seg input { display: none; }
.seg label:has(input:checked) { background: #fff; color: var(--ic-blue); box-shadow: 0 2px 8px rgba(0, 34, 120, .1); }

/* ---------- Agente propio del cliente ---------- */
.agent-test { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.agent-test .ok { color: var(--ic-ok); }
.agent-test .ko { color: var(--ic-danger); }
.agent-help { background: var(--ic-bg); border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.agent-help summary { cursor: pointer; font-weight: 500; }
.agent-help ol { margin: 10px 0 0; padding-left: 20px; line-height: 1.6; }
.agent-help code { font: 13px ui-monospace, Consolas, monospace; background: #fff; padding: 1px 6px; border-radius: 5px; }
.chip.agent { background: #f1ecff; color: #5b3cc4; }

/* ---------- Visor de PDF ---------- */
.pdf-backdrop { padding: 12px; }
.pdf-modal { width: min(1000px, 100%); height: 94vh; max-height: none; display: flex; flex-direction: column; overflow: hidden; }
.pdf-head { gap: 12px; padding: 14px 20px; }
.pdf-head h3 { font-size: 18px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pdf-tools .icon-btn { font: 600 20px var(--font-head); width: 36px; height: 36px; display: grid; place-items: center; }
.pdf-tools .btn svg { width: 16px; height: 16px; }
.pdf-zoom { font-size: 13px; color: var(--ic-muted); min-width: 44px; text-align: center; }
.pdf-body { flex: 1; overflow: auto; scrollbar-gutter: stable; background: #525659; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pdf-body canvas { background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); max-width: none; }
.pdf-body .empty { color: #fff; margin: auto; }
@media (max-width: 760px) {
  .pdf-backdrop { padding: 0; }
  .pdf-modal { height: 100vh; border-radius: 0; }
  .pdf-head { flex-wrap: wrap; padding: 10px 12px; }
  .pdf-tools { width: 100%; justify-content: flex-end; }
  .pdf-body { padding: 8px; }
}

.empty { text-align: center; padding: 48px 24px; color: var(--ic-muted); }

.upsell {
  background: var(--ic-gradient); color: #fff; border-radius: var(--radius);
  padding: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 32px;
}
.upsell div { flex: 1 1 320px; }
.upsell h3 { font-size: 24px; }
.upsell p { opacity: .9; margin: 0; }

/* ---------- Chat ---------- */
.chat {
  display: flex; flex-direction: column; padding: 0; overflow: hidden;
  height: min(72vh, 720px); min-height: 460px;
}
.chat-head {
  display: flex; align-items: center; gap: 14px; padding: 18px 24px;
  border-bottom: 1px solid var(--ic-line);
}
.chat-head .avatar { width: 46px; height: 46px; }
.chat-head h3 { margin: 0; font-size: 18px; }
.chat-head small { color: var(--ic-ok); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.chat-head small::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ic-ok); }
.chat-body { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--ic-bg); }
.msg { max-width: min(78%, 640px); padding: 12px 16px; border-radius: 18px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; font-size: 15px; }
.msg.user { align-self: flex-end; background: var(--ic-blue); color: #fff; border-bottom-right-radius: 6px; }
.msg.assistant { align-self: flex-start; background: #fff; border: 1px solid var(--ic-line); border-bottom-left-radius: 6px; }
.msg time { display: block; font-size: 11px; opacity: .65; margin-top: 6px; }
.msg.typing::after { content: '▍'; animation: blink 1s steps(1) infinite; color: var(--ic-blue); }
@keyframes blink { 50% { opacity: 0; } }
.chat-welcome { text-align: center; color: var(--ic-muted); margin: auto; max-width: 420px; }
.chat-welcome .avatar { width: 64px; height: 64px; margin: 0 auto 16px; font-size: 22px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.suggestions button {
  font: 14px var(--font-body); border: 1px solid var(--ic-line); background: #fff; color: var(--ic-ink);
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.suggestions button:hover { border-color: var(--ic-blue); color: var(--ic-blue); }
.chat-form { display: flex; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--ic-line); background: #fff; }
.chat-form textarea { resize: none; height: 50px; max-height: 160px; border-radius: 25px; padding: 13px 20px; }
.chat-form .btn { padding: 0; width: 50px; height: 50px; flex-shrink: 0; }

/* ---------- Tablas (admin) ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font: 500 13px var(--font-head); color: var(--ic-muted); text-transform: uppercase; letter-spacing: .04em; padding: 12px 14px; border-bottom: 1px solid var(--ic-line); }
td { padding: 14px; border-bottom: 1px solid var(--ic-line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td .sub { color: var(--ic-muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--ic-ice); color: var(--ic-blue-dark); white-space: nowrap; }
.chip.off { background: #f0f1f3; color: var(--ic-muted); text-decoration: line-through; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; flex: 1 1 280px; }
.toolbar .input { max-width: 320px; }

/* ---------- Dashboard (admin) ---------- */
.dash-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h3 { margin: 0; font-size: 20px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ic-line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .grow b { display: block; }
.list .sub { color: var(--ic-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .avatar { width: 36px; height: 36px; font-size: 13px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 0; }
.bar-row .sub { color: var(--ic-muted); font-size: 13px; }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--ic-ice); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--ic-gradient); }

.service.inactive { opacity: .65; }
.service .meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ic-muted); }
.service .meta b { color: var(--ic-ink); }
.service .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.code { font: 12px ui-monospace, Consolas, monospace; background: var(--ic-bg); padding: 2px 8px; border-radius: 6px; color: var(--ic-muted); }

.icon-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-picker button {
  width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--ic-line); background: #fff; color: var(--ic-muted);
  display: grid; place-items: center; cursor: pointer;
}
.icon-picker button svg { width: 24px; height: 24px; }
.icon-picker button:hover { border-color: var(--ic-blue); color: var(--ic-blue); }
.icon-picker button[aria-checked=true] { background: var(--ic-ice); border-color: var(--ic-blue); color: var(--ic-blue); box-shadow: 0 0 0 2px rgba(8, 100, 199, .2); }
.hint { background: var(--ic-ice); color: var(--ic-blue-dark); padding: 10px 14px; border-radius: 10px; font-size: 14px; }

.assign-add { display: grid; grid-template-columns: 1.6fr 1fr .8fr 1fr 1fr auto; gap: 10px; align-items: end; padding: 16px; background: var(--ic-bg); border-radius: 12px; }
.assign-add .field { margin: 0; }
.assign-add .input { padding: 9px 12px; font-size: 14px; }
.assign-add .btn { padding: 10px 20px; }
#assigned .input { padding: 7px 10px; font-size: 14px; border-radius: 10px; min-width: 90px; }
#assigned td { padding: 10px 8px; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(13, 20, 26, .55); z-index: 50;
  display: grid; place-items: center; padding: 16px;
}
.modal { background: #fff; border-radius: var(--radius); width: min(760px, 100%); max-height: 92vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.modal-wide { width: min(1000px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; border-bottom: 1px solid var(--ic-line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h3 { margin: 0; font-size: 22px; }
.modal-body { padding: 24px 28px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 18px 28px; border-top: 1px solid var(--ic-line); position: sticky; bottom: 0; background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.svc-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr .8fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ic-line); }
.svc-row:last-child { border-bottom: 0; }
.svc-row label { display: flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; }
.svc-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ic-blue); }
.svc-row .input { padding: 8px 10px; font-size: 14px; border-radius: 10px; }
.svc-row:not(.on) .input { opacity: .4; pointer-events: none; }
.icon-btn { background: none; border: 0; cursor: pointer; padding: 6px; border-radius: 8px; color: var(--ic-muted); }
.icon-btn:hover { background: var(--ic-bg); color: var(--ic-ink); }
.icon-btn svg { width: 18px; height: 18px; display: block; }
a.icon-btn { display: inline-grid; place-items: center; }
.file-drop [data-icon] svg { width: 24px; height: 24px; color: var(--ic-blue); }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.auth-aside { background: var(--ic-gradient); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::after {
  content: ''; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%);
}
.auth-aside h1 { font-size: clamp(34px, 4vw, 56px); max-width: 520px; }
.auth-aside p { font-size: 18px; opacity: .9; max-width: 460px; }
.auth-aside ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.auth-aside li { display: flex; gap: 12px; align-items: center; }
.auth-aside li svg { width: 22px; height: 22px; flex-shrink: 0; }
.auth-aside footer { font-size: 14px; opacity: .8; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: min(420px, 100%); }
.auth-box .logo img { height: 72px; }
.auth-box h2 { font-size: 32px; margin: 28px 0 8px; }
.auth-box > p { color: var(--ic-muted); margin-bottom: 28px; }
.auth-box .btn { width: 100%; padding: 14px; font-size: 16px; }
.auth-help { margin-top: 24px; font-size: 14px; color: var(--ic-muted); text-align: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ic-ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 15px;
  transition: all .25s; z-index: 100; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Pie ---------- */
.footer { background: #0d141a; color: rgba(255, 255, 255, .75); font-size: 14px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 28px 24px; display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.footer a { color: #fff; text-decoration: none; }

.whatsapp {
  position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%;
  background: #1f8f5c; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); z-index: 30;
}
.whatsapp svg { width: 30px; height: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { padding: 32px 24px; }
  .auth-aside ul, .auth-aside footer { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr 1fr; }
  .svc-row label { grid-column: 1 / -1; }
  .dash-grid { grid-template-columns: 1fr; }
  .dl-group .list li { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; }
  .dl-group .list li > .btn { grid-column: 1 / -1; justify-self: start; }
  .assign-add { grid-template-columns: 1fr 1fr; }
  .assign-add .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; padding: 10px 16px; gap: 12px; }
  .logo img { height: 44px; }
  .logo span { display: none; }
  .menu-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 4px; margin: 0; order: 3; }
  .nav.open { display: flex; }
  .user-chip { order: 4; width: 100%; display: none; }
  .nav.open + .user-chip { display: flex; }
  .hero-inner { padding: 36px 16px 84px; }
  .container { padding: 0 16px; }
  .card { padding: 20px; }
  .chat { height: 75vh; }
  .msg { max-width: 88%; }
  .modal-head, .modal-body, .modal-foot { padding-left: 18px; padding-right: 18px; }
}
