/* Básica+ · portal y login (usa los tokens de ../css/styles.css) */

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; position: relative; overflow: hidden; }
.auth-card { position: relative; width: 100%; max-width: 420px; padding: 36px 30px; border-radius: 24px; background: rgba(19,19,24,.92); border: 1px solid var(--line-2); backdrop-filter: blur(12px); }
.auth-card .logo { font-size: 28px; margin-bottom: 24px; display: flex; width: fit-content; }
.auth-card h1 { font-size: 28px; margin-top: 22px; }
.auth-sub { color: var(--muted); font-size: 15px; margin: 8px 0 22px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.seg button.is-active { background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }

/* ---------- Formularios ---------- */
.stack { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea, .input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,110,242,.2); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link { background: none; border: 0; color: var(--muted); font-size: 14px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--text); }
.btn-danger { background: rgba(255,110,110,.08); border: 1px solid rgba(255,110,110,.3); color: #ffb3b3; }
.btn-danger:hover { background: rgba(255,110,110,.16); }

/* ---------- Arranque ---------- */
.boot { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 20px; }
.boot .logo { font-size: 30px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); border-top-color: var(--violet-2); animation: spin .8s linear infinite; }

/* ---------- Estructura ---------- */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.shell[hidden] { display: none; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 22px 16px; border-right: 1px solid var(--line); background: var(--bg-2); }
.side > .logo { padding: 0 8px; }
.org-box { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.org-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.org-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.org-box select { margin-top: 10px; width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 13px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; transition: background .15s, color .15s; }
.side-nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.side-nav a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.side-nav a.is-active { background: rgba(124,110,242,.14); color: #fff; }
.side-nav a.is-active svg { stroke: var(--violet-2); }
.side-foot { margin-top: auto; display: grid; gap: 8px; padding: 0 8px; }
.me { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(9,9,11,.8); backdrop-filter: blur(12px); }
.top h1 { font-size: 20px; font-weight: 600; }
.side-toggle { display: none; margin-left: 0; }
.credits-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.credits-pill[hidden] { display: none; }
.credits-pill span#creditsVal { color: var(--text); font-family: var(--mono); font-weight: 500; }
.cp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.credits-pill.low .cp-dot { background: #ff8a8a; box-shadow: 0 0 8px #ff8a8a; }
.test-banner { margin: 16px 32px 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; color: #fbe7a6; background: rgba(251,214,100,.08); border: 1px solid rgba(251,214,100,.28); }
.test-banner[hidden] { display: none; }
.view { padding: 28px 32px 64px; display: grid; gap: 20px; align-content: start; }

/* ---------- Bloques ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2 { font-size: 18px; margin-bottom: 4px; }
.panel .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-value { font-size: 34px; font-weight: 600; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 16px; color: var(--faint); font-weight: 500; }
.meter { height: 8px; border-radius: 999px; background: rgba(255,255,255,.06); margin-top: 14px; overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--pink)); transition: width .6s var(--ease); }
.meter.full span { background: #ff8a8a; }
.badge-s { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: #cfcbe0; white-space: nowrap; }
.badge-s.ok { color: var(--ok); border-color: rgba(95,214,143,.35); background: rgba(95,214,143,.08); }
.badge-s.warn { color: #fbe7a6; border-color: rgba(251,214,100,.3); background: rgba(251,214,100,.06); }
.badge-s.bad { color: #ffb3b3; border-color: rgba(255,110,110,.3); background: rgba(255,110,110,.06); }
.badge-s.vio { color: #d9d4ff; border-color: rgba(124,110,242,.4); background: rgba(124,110,242,.1); }
.empty { padding: 34px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 16px; }
.row-form { display: flex; gap: 10px; flex-wrap: wrap; }
.row-form .input { flex: 1; min-width: 200px; }
.hint { font-size: 13px; color: var(--faint); margin-top: 10px; }

/* Tablas / listas */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--faint); padding: 0 12px 10px 0; text-transform: uppercase; letter-spacing: .04em; }
.table td { padding: 13px 12px 13px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 13.5px; }
.table .pos { color: var(--ok); } .table .neg { color: #e5e2ec; }
.table-wrap { overflow-x: auto; }
.list { display: grid; }
.li { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.li:first-child { border-top: 0; }
.li-title { font-weight: 500; overflow-wrap: anywhere; }
.li-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.li-actions { display: flex; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; cursor: pointer; user-select: none; transition: border-color .15s, background .15s; }
.chk input { accent-color: var(--violet); }
.chk:has(input:checked) { border-color: rgba(124,110,242,.6); background: rgba(124,110,242,.12); }
.edit-brands { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 12px; }

/* Marcas */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.brand-card { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; }
.brand-avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; font-size: 18px; color: #fff; }
.brand-card h3 { font-size: 17px; }
.brand-card .muted { font-size: 13px; }

/* ---------- Planes ---------- */
.plans-head { text-align: center; max-width: 620px; margin: 10px auto 6px; }
.plans-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.plans-head p { color: var(--muted); margin-top: 10px; }
.pick-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pick { cursor: pointer; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 6px; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.pick:hover { transform: translateY(-2px); border-color: var(--line-2); }
.pick.is-selected { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet) inset, 0 20px 60px -30px rgba(124,110,242,.8); }
.pick h3 { font-size: 20px; }
.pick .price { margin-top: 10px; }
.pick .price .amt { font-size: 40px; }
.pick ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.checkout-bar { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
.card-hint { font-family: var(--mono); font-size: 13px; color: #fbe7a6; }

/* ---------- Generador ---------- */
.gen-layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.gen-form { position: sticky; top: 88px; }
.opt-group { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); padding: 8px 12px; border-radius: 10px; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s, color .15s, background .15s; }
.opt .ratio { display: inline-block; border: 1.5px solid currentColor; border-radius: 3px; }
.opt.is-active { border-color: var(--violet); color: #fff; background: rgba(124,110,242,.14); }
.opt small { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.opt.is-active small { color: #d9d4ff; }
.gen-cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.gen-cta .left { font-size: 13px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.shot { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; font-size: 12.5px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); display: flex; justify-content: space-between; gap: 8px; opacity: 0; transition: opacity .2s; }
.shot:hover .shot-meta, .shot:focus-visible .shot-meta { opacity: 1; }
.shot-meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot.pending { cursor: default; }
.shot.pending::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(157,147,255,.18) 50%, transparent 70%) -200% 0 / 200% 100%; animation: shimmer 1.6s linear infinite; }
.shot.pending .wait { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 16px; text-align: center; font-size: 13.5px; color: #d9d4ff; }
.shot.failed { cursor: default; }
.shot.failed .wait { position: absolute; inset: 0; display: grid; place-content: center; padding: 16px; text-align: center; font-size: 13px; color: #ffb3b3; }
@keyframes shimmer { to { background-position: 200% 0; } }

/* Toast y lightbox */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14.5px; box-shadow: 0 20px 50px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); z-index: 60; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(255,110,110,.4); color: #ffd0d0; }
.toast.ok { border-color: rgba(95,214,143,.4); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(0,0,0,.85); backdrop-filter: blur(6px); }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 14px; display: block; margin: 0 auto; }
.lb-bar { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .gen-layout { grid-template-columns: 1fr; }
  .gen-form { position: static; }
  .pick-plans { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 30; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .side.open { transform: none; box-shadow: 30px 0 80px rgba(0,0,0,.6); }
  .side-toggle { display: block; }
  .top { padding: 0 16px; }
  .view { padding: 20px 16px 56px; }
  .test-banner { margin: 12px 16px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .checkout-bar { grid-template-columns: 1fr; }
  .li { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shot-meta { opacity: 1; }
}

/* Aviso de 14 días y vencidas */
.keep-note { font-size: 13.5px; color: #fbe7a6; background: rgba(251,214,100,.07); border: 1px solid rgba(251,214,100,.25); border-radius: 10px; padding: 9px 12px; margin-bottom: 14px; }
.shot.expired .wait { color: var(--faint); }
.shot.expired .wait small { font-size: 12px; }
.lb-bar { align-items: center; }
.lb-exp { font-size: 13px; color: var(--muted); margin-right: 6px; }

/* Pasos para conectar Claude */
.steps-list { margin: 6px 0 0; padding-left: 22px; display: grid; gap: 10px; color: #d4d0dc; font-size: 15px; }
.steps-list li::marker { color: var(--violet-2); font-family: var(--mono); }
.panel code { font-family: var(--mono); font-size: 13px; color: #e7e3ff; }

/* ---------- Selectores de empresa y subcuenta (tipo GHL) ---------- */
.org-box { padding: 10px; display: grid; gap: 10px; }
.sw { position: relative; }
.sw-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); text-align: left; transition: border-color .15s, background .15s; }
.sw-btn:hover { border-color: rgba(124,110,242,.5); background: rgba(124,110,242,.06); }
.sw-btn.static { pointer-events: none; }
.sw-btn.sub { background: rgba(124,110,242,.08); border-color: rgba(124,110,242,.3); }
.sw-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: #fff; flex-shrink: 0; }
.sw-avatar.sq { border-radius: 9px; }
.sw-avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.sw-avatar.empty { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line-2); }
.sw-text { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.sw-label { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.sw-name { font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-item .sw-label { text-transform: none; letter-spacing: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-caret { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex-shrink: 0; }
.sw-btn[aria-expanded="true"] .sw-caret { transform: rotate(180deg); }
.org-box .org-meta { margin: 0 2px; }
.sw-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.55); padding: 6px; max-height: 360px; display: flex; flex-direction: column; }
.sw-menu[hidden] { display: none; }
.sw-search { margin: 4px 4px 6px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 9px; padding: 8px 10px; font: inherit; font-size: 14px; outline: none; }
.sw-search:focus { border-color: var(--violet); }
.sw-list { overflow-y: auto; display: grid; gap: 2px; }
.sw-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 10px; background: none; color: var(--text); text-align: left; }
.sw-item:hover, .sw-item:focus-visible { background: rgba(255,255,255,.06); }
.sw-item.on { background: rgba(124,110,242,.16); }
.sw-item[hidden] { display: none; }
.sw-empty { padding: 12px; font-size: 13.5px; color: var(--muted); }
.sw-foot { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 6px; padding: 8px 6px 4px; font-size: 13px; }
.sw-foot a { color: var(--violet-2); }
.sub-inline { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 15px; width: 100%; }
.sub-inline small { margin-left: auto; color: var(--violet-2); font-size: 13px; }
.nav-super { margin-top: 10px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px !important; padding-top: 14px !important; }
.acting-banner { margin: 16px 32px 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; color: #d9d4ff; background: rgba(124,110,242,.12); border: 1px solid rgba(124,110,242,.4); }
.acting-banner[hidden] { display: none; }

/* ---------- Conexiones ---------- */
.conn-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.conn-sub { display: flex; align-items: center; gap: 14px; }
.conn-sub .sw-avatar { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
.conn-group { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 8px 0 12px; font-weight: 500; }
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.conn-card { position: relative; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s var(--ease); }
.conn-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.conn-card.st-connected { border-color: rgba(95,214,143,.4); }
.conn-card.st-needs_reauth { border-color: rgba(251,214,100,.4); }
.conn-card.st-soon .conn-logo { filter: saturate(.75); }
.conn-card h3 { font-size: 16.5px; }
.conn-card p { font-size: 13.5px; color: var(--muted); flex: 1; }
.conn-top { display: flex; justify-content: space-between; align-items: flex-start; }
.conn-logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; }
.conn-logo svg { width: 26px; height: 26px; }
.conn-acc { font-size: 12.5px; font-family: var(--mono); color: #cfcbe0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.conn-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 860px) { .acting-banner { margin: 12px 16px 0; } }

/* Recuperar contraseña */
.field[hidden], .auth-card form[hidden] { display: none; }
#forgotLink, #backLink { display: inline-block; margin-top: 14px; }

/* Conectar Meta con token */
.conn-modal { border: 0; padding: 0; background: transparent; color: var(--text); width: min(560px, calc(100vw - 32px)); }
.conn-modal::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.conn-modal .panel { display: grid; gap: 14px; border-color: var(--line-2); }
.conn-modal .sub, .conn-modal .hint { margin: 0; }
.conn-modal textarea { font-family: var(--mono); font-size: 12.5px; min-height: 84px; word-break: break-all; }
.conn-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.conn-steps a { color: var(--text); text-decoration: underline; }
.conn-steps b { color: var(--text); font-weight: 600; }
.conn-err { margin: 0; font-size: 13.5px; color: #ffd0d0; background: rgba(255,110,110,.08); border: 1px solid rgba(255,110,110,.35); border-radius: 10px; padding: 8px 12px; }

.conn-hint { letter-spacing: .02em; color: var(--muted); }

/* Ventanas de conexión altas (Google Ads): que nunca se salgan de la pantalla */
.conn-modal { max-height: calc(100vh - 32px); margin: auto; overflow: auto; }
.conn-modal .panel { max-height: none; }
.conn-modal .field input { font-family: var(--mono); font-size: 13px; }

/* Meta: botón de Facebook y separador "o pega un token" */
.conn-modal .fb-btn { width: 100%; justify-content: center; gap: 10px; background: #1877f2; border-color: #1877f2; margin: 6px 0 4px; }
.conn-modal .fb-btn:hover { background: #166fe5; }
.conn-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; color: var(--muted, #8a8aa0); font-size: 12px; }
.conn-or::before, .conn-or::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .25; }

/* Meta: cuenta publicitaria elegida y selector */
.conn-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.conn-pick.warn { color: #f5b14c; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent, #8b7cf6); cursor: pointer; font: inherit; text-decoration: underline; }
.acc-search { width: 100%; margin: 4px 0 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: inherit; font: inherit; }
.acc-list { max-height: 46vh; overflow: auto; display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.acc-row { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); cursor: pointer; }
.acc-row:has(input:checked) { border-color: var(--accent, #8b7cf6); background: rgba(139,124,246,.08); }
.acc-row input { grid-row: span 2; }
.acc-row .acc-id { grid-column: 2; font-size: 12px; color: var(--muted); }
.acc-row[hidden] { display: none; }
