/* portal-drawers.css — parte din creator-portal.css (liniile 230-398).
   Panouri glisante și pop-over-uri: setări (toggles / danger / logout), drawer-ul de
   review admin, sub-paginile admin, drawer-ul de campanie, dropdown notificări,
   lista de alocare creatori.
   MUTARE PURĂ: conținutul de mai jos e identic cu sursa. Ordinea de încărcare
   a bucăților contează (cascada) — vezi src/components/styles/. */
/* ===================== APP SHELL (portal + admin) ===================== */

/* ---------- settings: toggles, danger, logout ---------- */
.cp-toggle-list { display: flex; flex-direction: column; }
.cp-toggle { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.cp-toggle:first-child { border-top: none; padding-top: 0; }
.cp-toggle > span { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cp-toggle b { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.cp-toggle small { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.cp-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.cp-toggle i { flex: none; width: 42px; height: 24px; border-radius: 100px; background: var(--line-2); position: relative; transition: background .18s; }
.cp-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px oklch(0 0 0 / .3); transition: transform .18s; }
.cp-toggle input:checked + i { background: var(--signal); }
.cp-toggle input:checked + i::after { transform: translateX(18px); }
.cp-toggle input:focus-visible + i { outline: 2px solid var(--signal); outline-offset: 2px; }

.cp-card-form.cp-danger { border-color: oklch(0.62 0.18 25 / .35); }
.cp-danger-acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* Logout is NOT destructive — red stays reserved for „Șterge contul". Neutral
   like every other nav link, standard hover accent (owner call, 2026-08-03). */
.cp-logout { color: var(--muted) !important; margin-top: 4px; }
.cp-logout:hover { color: var(--ink) !important; background: var(--paper-2) !important; }
.cp-logout:hover .ic { color: var(--ink) !important; }

/* ---------- admin review drawer ---------- */
.cp-drawer { position: fixed; inset: 0; z-index: 200; }
.cp-drawer[hidden] { display: none; }
.cp-drawer-scrim { position: absolute; inset: 0; background: oklch(0.205 0.012 70 / 0); transition: background .24s; }
.cp-drawer.open .cp-drawer-scrim { background: oklch(0.15 0.01 70 / .55); }
.cp-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(520px, 100%);
  background: var(--paper); border-left: 1px solid var(--line); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .26s cubic-bezier(.3,.8,.3,1);
  box-shadow: -30px 0 80px -40px oklch(0 0 0 / .5);
}
.cp-drawer.open .cp-drawer-panel { transform: translateX(0); }
.cp-drawer-top { display: flex; align-items: flex-start; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.rv-id { display: flex; gap: 14px; flex: 1; min-width: 0; }
.rv-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-name h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.cp-verbadge.pend { color: var(--pending); border-color: oklch(0.72 0.13 75 / .4); background: oklch(0.72 0.13 75 / .12); }
.rv-meta { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .03em; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.cp-drawer-top .cp-icon-btn { flex: none; }

.cp-drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 26px; }
.rv-block .rv-h { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; display: flex; align-items: baseline; gap: 8px; }
.rv-h-note { color: var(--ink-2); letter-spacing: .02em; text-transform: none; font-size: 12px; }
.rv-accounts { display: flex; flex-direction: column; gap: 8px; }
.rv-acc { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.rv-acc .p { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.rv-acc .h { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
/* A resolvable handle renders as <a class="h"> (admin review drawer). Keep the
   handle's exact look at rest — inherit color, no underline — and signal the
   link only on hover/focus with an accent + underline. */
.rv-acc a.h { color: inherit; text-decoration: none; }
.rv-acc a.h:hover,
.rv-acc a.h:focus-visible { color: var(--signal); text-decoration: underline; }
/* Same treatment for links NESTED in a value cell — the "Contact & detalii"
   rows put mailto:/tel:/wa.me/showreel anchors inside .h rather than on it. */
.rv-acc .h a { color: inherit; text-decoration: none; }
.rv-acc .h a:hover,
.rv-acc .h a:focus-visible { color: var(--signal); text-decoration: underline; }
.rv-acc .n { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
/* Contact & detalii rows: two columns (no follower count), a wider label gutter
   for "Profil public"/"Newsletter", and a value cell that wraps chip lists. */
.rv-acc--detail { grid-template-columns: 110px minmax(0, 1fr); }
.rv-acc--detail .h { font-weight: 500; overflow-wrap: anywhere; }
.rv-acc--chips .h { display: flex; flex-wrap: wrap; gap: 6px; }
/* "Vezi profil public ↗" link injected by src/scripts/admin/drawer/ into the drawer
   header, right under #rvMeta. Quiet at rest, accent on hover/focus. */
.rv-public-link { display: inline-block; margin-top: 6px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .04em; color: var(--signal); text-decoration: none; }
.rv-public-link:hover,
.rv-public-link:focus-visible { text-decoration: underline; }
.rv-engage { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rv-pill { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .02em; padding: 5px 10px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--ink-2); }
.rv-pill.ok { color: var(--signal); border-color: oklch(0.6 0.07 158 / .35); background: var(--signal-bg); }
.rv-pill.warn { color: var(--pending); border-color: oklch(0.72 0.13 75 / .4); background: oklch(0.72 0.13 75 / .1); }
.rv-gallery { grid-template-columns: repeat(3, 1fr); }
.rv-gallery image-slot { aspect-ratio: 1; border-radius: 9px; }
.rv-about { font-size: 14px; color: var(--ink); line-height: 1.6; }
.rv-team { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.rv-team-lbl { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .08em; color: var(--faint); }
.cp-drawer-foot { display: flex; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.cp-drawer-foot .cp-btn-ok { margin-left: auto; }
@media (max-width: 560px) { .cp-drawer-foot { flex-wrap: wrap; } .cp-drawer-foot .cp-btn-ok { margin-left: 0; width: 100%; } }

/* ---------- admin sub-pages ---------- */
.cp-find input { font-family: var(--ff-sans, inherit); font-size: 13.5px; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink); width: 240px; max-width: 50vw; }
.cp-find input:focus { outline: none; border-color: var(--ink); }
.cp-cr-tr { grid-template-columns: 1.6fr 1fr 1fr 0.6fr 0.8fr; }
/* Rows that open the admin review drawer on click/Enter (/admin/creatori). */
.cp-cr-tr--click { cursor: pointer; }
.cp-cr-tr--click:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
/* Niche cell expand/collapse — a creator with up to ~16 niches stays one line
   (first 3) until "+N" is clicked, so a 12-niche row isn't 6× taller. */
.cp-niche-cell { display: inline; }
.cp-niche-toggle {
  appearance: none; background: var(--paper-2); border: 1px solid var(--line-2);
  border-radius: 999px; color: var(--ink-2); cursor: pointer;
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .02em;
  line-height: 1; padding: 3px 8px; margin-left: 6px; vertical-align: baseline;
  white-space: nowrap; transition: color .12s, border-color .12s, background .12s;
}
.cp-niche-toggle:hover { color: var(--ink); border-color: var(--ink-2); }
.cp-niche-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.cp-apay-tr { grid-template-columns: 1.6fr 1fr 1fr 0.7fr 0.9fr; }
.cp-brief-admin { display: flex; flex-direction: column; gap: 12px; }

/* ---------- campaign drawer ---------- */
.cm-logo { flex: none; width: 48px; height: 48px; border-radius: 11px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--ff-mono); font-weight: 600; font-size: 16px; }
.cm-logo .cm-logo-img { width: 100%; height: 100%; object-fit: cover; }
.cm-budget-row { display: flex; gap: 14px; }
.cm-budget-row > div { flex: 1; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.cm-bl { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cm-bv { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.cm-bv.sm { font-size: 15px; font-weight: 600; }
.cm-stepper { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; }
.cm-stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; text-align: center; }
.cm-stepper li::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line-2); z-index: 0; }
.cm-stepper li:first-child::before { display: none; }
.cm-stepper li.done::before, .cm-stepper li.current::before { background: var(--signal); }
.cm-stepper .dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ff-mono); font-size: 12px; font-weight: 600; background: var(--surface); border: 2px solid var(--line-2); color: var(--muted); }
.cm-stepper li.done .dot { background: var(--signal); border-color: var(--signal); color: #fff; }
.cm-stepper li.current .dot { border-color: var(--signal); color: var(--signal); }
.cm-stepper .lb { font-size: 11px; color: var(--ink-2); letter-spacing: -0.01em; }
.cm-stepper li.current .lb { color: var(--ink); font-weight: 600; }
.cm-deliv { display: flex; flex-direction: column; gap: 8px; }
.cm-deliv-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.cm-deliv-row.done { background: var(--signal-bg); border-color: oklch(0.6 0.07 158 / .3); }
.cm-deliv-check { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ff-mono); font-size: 11px; font-weight: 600; background: var(--paper-2); border: 1px solid var(--line-2); color: var(--muted); }
.cm-deliv-row.done .cm-deliv-check { background: var(--signal); border-color: var(--signal); color: #fff; }
.cm-deliv-l { flex: 1; font-size: 14px; line-height: 1.4; }
.cm-deliv-up { flex: none; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 12px; cursor: pointer; transition: border-color .15s; }
.cm-deliv-up:hover { border-color: var(--ink); }
.cm-deliv-state { flex: none; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .03em; }
.cm-deliv-state.ok { color: var(--signal); }
.cm-note { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; padding: 14px 16px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; }
.cm-foot-note { font-size: 13px; color: var(--ink-2); text-align: center; }

/* ---------- notifications dropdown ---------- */
.cp-notif-wrap { position: relative; }
.cp-notif { position: absolute; top: calc(100% + 10px); right: 0; width: 340px; max-width: 90vw; background: var(--paper); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 30px 70px -30px oklch(0.205 0.012 70 / .45); z-index: 90; overflow: hidden; }
.cp-notif[hidden] { display: none; }
.cp-notif-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.cp-notif-h button { font-family: var(--ff-mono); font-size: 11px; color: var(--signal); background: none; border: none; cursor: pointer; letter-spacing: .02em; }
.cp-notif-h button:hover { text-decoration: underline; }
.cp-notif-list { max-height: 360px; overflow-y: auto; }
.cp-notif-item { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); position: relative; }
.cp-notif-item:last-child { border-bottom: none; }
.cp-notif-item.unread { background: var(--signal-bg); }
.cp-notif-item.unread::before { content: ""; position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--signal); }
.ni-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 14px; color: var(--ink); }
.ni-tx { min-width: 0; }
.ni-t { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.ni-s { font-size: 12.5px; color: var(--ink-2); margin-top: 1px; line-height: 1.4; }
.ni-w { font-family: var(--ff-mono); font-size: 10px; color: var(--muted); margin-top: 4px; letter-spacing: .03em; }
.cp-notif-foot { display: block; text-align: center; padding: 12px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); cursor: pointer; }
.cp-notif-foot:hover { background: var(--paper-2); }

/* ---------- allocate creators list ---------- */
.al-list { display: flex; flex-direction: column; gap: 8px; }
.al-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); cursor: pointer; transition: border-color .15s; }
.al-row:hover { border-color: var(--ink); }
.al-row:has(input:checked) { border-color: var(--signal); background: var(--signal-bg); }
.al-row input { width: 18px; height: 18px; flex: none; accent-color: var(--signal); }
.al-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.al-tx .nm { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.al-tx .mt { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); letter-spacing: .02em; }