:root {
  --bg: #0e0f12; --panel: #16181d; --panel2: #1d2027; --line: #2a2e37;
  --txt: #e7e9ee; --muted: #9aa0ad; --accent: #1f8f5f; --accent2: #2dd4bf;
  --danger: #e5484d; --warn: #f5a623; --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0; font: 14px/1.45 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--txt);
}
a { color: var(--accent2); text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }

/* layout */
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 12px 20px;
  background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
}
.topbar .brand { font-weight: 700; letter-spacing: .5px; }
.topbar .brand span { color: var(--accent2); }
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a { color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.topbar nav a.active, .topbar nav a:hover { color: var(--txt); background: var(--panel2); }
.topbar .spacer { flex: 1; }
.topbar .who { color: var(--muted); }
.shell { max-width: 1100px; margin: 22px auto; padding: 0 20px; }

/* auth screen */
.auth-wrap { max-width: 420px; margin: 8vh auto; padding: 0 16px; }
.auth-wrap h1 { text-align: center; }
.auth-wrap h1 span { color: var(--accent2); }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs button { flex: 1; padding: 9px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); border-radius: 8px; }
.tabs button.active { color: var(--txt); border-color: var(--accent); }

/* cards / panels */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 800px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }

.kpi { text-align: left; }
.kpi .n { font-size: 26px; font-weight: 700; }
.kpi .l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }

/* product card */
.prod { display: flex; flex-direction: column; gap: 8px; }
.prod .ph { height: 110px; background: var(--panel2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.prod .brand { color: var(--muted); font-size: 12px; }
.prod .name { font-weight: 600; }
.prod .ask { color: var(--accent2); font-weight: 700; }

/* forms */
label { display: block; font-size: 12px; color: var(--muted); margin: 8px 0 3px; }
input, select, textarea {
  width: 100%; padding: 9px 10px; background: var(--panel2); border: 1px solid var(--line);
  color: var(--txt); border-radius: 8px;
}
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 120px; }

/* buttons */
.btn { padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--txt); }
.btn:hover { border-color: var(--accent2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--danger); border-color: #4a2326; }
.btn.sm { padding: 5px 9px; font-size: 12px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
tbody tr:hover { background: var(--panel2); }
.thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--panel2); display: block; }
.thumb.ph { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 10px; }

/* badges */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; border: 1px solid var(--line); color: var(--muted); }
.badge.sold { color: var(--warn); border-color: #4a3a16; }
.badge.inbound_shipped { color: #6aa9ff; border-color: #1f3a5a; }
.badge.received { color: var(--accent2); border-color: #15413c; }
.badge.auth_pass, .badge.completed, .badge.released, .badge.active { color: var(--accent); border-color: #1c3d2c; }
.badge.auth_fail, .badge.cancelled, .badge.suspended { color: var(--danger); border-color: #4a2326; }
.badge.shipped { color: #c08bff; border-color: #3a2a52; }
.badge.matched, .badge.pending { color: var(--warn); border-color: #4a3a16; }

h2 { margin: 4px 0 14px; }
h3 { margin: 0 0 10px; }
.muted { color: var(--muted); }
.toast { position: fixed; bottom: 18px; right: 18px; background: var(--panel2); border: 1px solid var(--accent); padding: 12px 16px; border-radius: 8px; z-index: 200; max-width: 360px; color: var(--txt); }
.toast.err { border-color: var(--danger); }
.feed-item { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.feed-item .t { color: var(--muted); font-size: 11px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

/* =====================================================================
   Fliproom-style auth + onboarding (light, self-contained overlay)
   ===================================================================== */
.fr-page { position: fixed; inset: 0; background: #fff; color: #111; overflow-y: auto;
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; z-index: 100; }
.fr-wrap { max-width: 720px; margin: 0 auto; padding: 46px 24px 90px; min-height: 100%; }
.fr-page h1.fr-title-c { font-size: 30px; font-weight: 700; text-align: center; margin: 6px 0 38px; color: #111; }
.fr-page h1.fr-title { font-size: 46px; font-weight: 800; letter-spacing: -1.5px; margin: 56px 0 6px; color: #0a0a0a; line-height: 1.05; }
.fr-page .fr-sub { color: #8a8a8a; font-size: 18px; margin: 0 0 26px; }

/* inputs */
.fr-field { position: relative; margin-bottom: 16px; }
.fr-field .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #1a1a1a; display: flex; pointer-events: none; }
.fr-field .eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #1a1a1a; background: none; border: none; padding: 6px; display: flex; }
.fr-input { width: 100%; background: #f3f3f3; border: 1px solid transparent; border-radius: 12px;
  padding: 18px 18px 18px 46px; font-size: 16px; color: #111; outline: none; }
.fr-input.plain { padding-left: 18px; }
.fr-input::placeholder { color: #9a9a9a; }
.fr-input:focus { border-color: #1554ff; background: #eef3ff; }
.fr-input[readonly] { color: #444; }
.fr-row { display: flex; gap: 16px; }
.fr-row > * { flex: 1; margin-bottom: 16px; }
.fr-row > *.fr-field { margin-bottom: 16px; }

/* buttons */
.fr-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  border: none; border-radius: 12px; padding: 17px; font-size: 17px; font-weight: 700; cursor: pointer; }
.fr-btn.blue { background: #1554ff; color: #fff; }
.fr-btn.blue:hover { background: #0d44e0; }
.fr-btn.dark { background: #1f1f1f; color: #fff; }
.fr-btn.dark:hover { background: #000; }
.fr-or { text-align: center; color: #111; margin: 22px 0; font-size: 16px; }
.fr-legal { text-align: center; font-weight: 700; margin: 34px 0 0; color: #111; }
.fr-legal a, .fr-link { color: #1554ff; text-decoration: underline; cursor: pointer; }
.fr-link.plain-link { text-decoration: none; font-weight: 700; }
.fr-foot { text-align: center; margin-top: 22px; color: #111; }
.fr-foot a { color: #1554ff; font-weight: 700; text-decoration: none; cursor: pointer; margin-left: 6px; }

/* option cards */
.fr-opts { display: grid; gap: 22px; margin-top: 20px; }
.fr-opts.c2 { grid-template-columns: 1fr 1fr; }
.fr-opts.c1 { grid-template-columns: 1fr; }
.fr-card { border: 1px solid #ececec; border-radius: 12px; padding: 30px 20px; text-align: center;
  font-size: 17px; color: #222; cursor: pointer; background: #fff; transition: background .12s, border-color .12s; }
.fr-card.tall { padding: 40px 20px; }
.fr-card:hover { background: #f4f4f4; }
.fr-card.sel { background: #efefef; border-color: #e0e0e0; }
.fr-why .fr-card { padding: 26px 20px; }

/* finish setup */
.fr-sec-title { font-size: 26px; font-weight: 700; margin: 28px 0 12px; color: #111; }
.fr-sec-head { display: flex; justify-content: space-between; align-items: center; margin: 32px 0 12px; }
.fr-fix { color: #ff3b5c; font-weight: 700; cursor: pointer; font-size: 18px; }
.fr-loc { border: 1px solid #eee; border-radius: 12px; padding: 16px 18px; display: flex;
  justify-content: space-between; align-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.05); }
.fr-loc .nm { font-weight: 700; color: #111; font-size: 16px; }
.fr-loc .sub { color: #9a9a9a; font-size: 14px; margin-top: 3px; }
.fr-tag { font-size: 12px; font-weight: 800; padding: 5px 9px; border-radius: 6px; letter-spacing: .5px; white-space: nowrap; }
.fr-tag.invalid { background: #fff1e0; color: #e7820a; }
.fr-tag.valid, .fr-tag.verified { background: #e3f7e8; color: #1a9e4b; }

/* address modal */
.fr-modal-bg { position: fixed; inset: 0; background: rgba(150,150,150,.7); display: flex;
  align-items: center; justify-content: center; z-index: 120; }
.fr-modal { background: #fff; border-radius: 14px; width: 560px; max-width: 94vw; max-height: 92vh; overflow: auto; }
.fr-modal-h { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid #eee; }
.fr-modal-h h3 { margin: 0; font-size: 22px; font-weight: 700; color: #111; }
.fr-modal-h .x { cursor: pointer; color: #888; background: none; border: none; display: flex; }
.fr-modal-b { padding: 22px; }
.fr-modal-b .fr-input { margin-bottom: 0; }
.fr-modal-b > .fr-field, .fr-modal-b > .fr-input, .fr-modal-b > .fr-select, .fr-modal-b > .fr-row { margin-bottom: 14px; }
.fr-select { width: 100%; background: #f3f3f3; border: 1px solid transparent; border-radius: 12px;
  padding: 16px 18px; font-size: 16px; color: #111; appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23666" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat; background-position: right 16px center; }
.fr-chk { display: flex; align-items: center; gap: 16px; margin: 6px 0 18px; }

@media (max-width: 560px) {
  .fr-page h1.fr-title { font-size: 34px; }
  .fr-opts.c2 { grid-template-columns: 1fr; }
}

/* =====================================================================
   Fliproom seller app (blue sidebar + white content). Scope: .flp
   ===================================================================== */
.flp { position: fixed; inset: 0; background: #fff; color: #1f2330; overflow: hidden;
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; z-index: 90;
  display: flex; }
.flp * { box-sizing: border-box; }
.flp svg { width: 20px; height: 20px; flex: none; }   /* default; specific rules below override */

/* sidebar */
.flp-side { width: 104px; background: #1d40e8; color: #fff; display: flex; flex-direction: column;
  align-items: stretch; padding: 14px 8px; flex: none; }
.flp-logo { width: 56px; height: 56px; border-radius: 14px; background: #3b32c9; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 26px;
  margin: 0 auto 18px; }
.flp-nav { display: flex; flex-direction: column; gap: 4px; }
.flp-nav a, .flp-foot a { color: #dfe5ff; text-decoration: none; display: flex; flex-direction: column;
  align-items: center; gap: 5px; padding: 9px 4px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.flp-nav a svg, .flp-foot a svg { width: 24px; height: 24px; }
.flp-nav a:hover, .flp-foot a:hover { background: rgba(255,255,255,.10); color: #fff; }
.flp-nav a.active { background: rgba(0,0,0,.22); color: #fff; }
.flp-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.flp-ver { text-align: center; color: #c3ccff; font-size: 11px; margin-top: 10px; }
.flp-ver .mark { display: block; font-weight: 800; font-style: italic; font-size: 17px; color: #fff; }

/* main */
.flp-main { flex: 1; overflow-y: auto; padding: 26px 30px 60px; position: relative; }
.flp-h { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; }
.flp-h h1 { font-size: 26px; font-weight: 700; margin: 0; }
.flp-help { width: 20px; height: 20px; border-radius: 50%; background: #cfd3da; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.flp-h .right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.flp-topbtn { color: #1d4ed8; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; background: none; border: none; font-size: 15px; }
.flp-topbtn svg { width: 18px; height: 18px; }

/* tabs */
.flp-tabs { display: flex; border-bottom: 1px solid #eceef2; margin-bottom: 4px; overflow-x: auto; }
.flp-tabs a { flex: 1; text-align: center; padding: 12px 10px; color: #9aa0ab; font-weight: 600;
  cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; }
.flp-tabs a.active { color: #1f2330; background: #f4f5f7; border-radius: 8px 8px 0 0; }

/* toolbar */
.flp-toolbar { display: flex; align-items: center; gap: 16px; margin: 14px 0 0; }
.flp-search { flex: 1; max-width: 420px; position: relative; }
.flp-search input { width: 100%; background: #e9eaee; border: none; border-radius: 10px;
  padding: 11px 12px 11px 38px; font-size: 14px; color: #1f2330; }
.flp-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #6b7280; width: 18px; height: 18px; }
.flp-tool-r { margin-left: auto; display: flex; align-items: center; gap: 18px; color: #4b5563; font-size: 14px; }
.flp-tool-r .ic { color: #1f2330; display: inline-flex; cursor: pointer; }
.flp-tool-r .ic svg { width: 20px; height: 20px; }
.flp-pp { display: flex; align-items: center; gap: 8px; color: #6b7280; white-space: nowrap; }
.flp-pp select { background: none; border: none; color: #1f2330; font-weight: 600; }
.flp-count { color: #1f2330; }
.flp-pager { display: flex; gap: 12px; color: #c0c4cc; }
.flp-pager svg { width: 18px; height: 18px; }

/* table */
.flp-tbl-wrap { margin-top: 12px; overflow-x: auto; }
table.flp-tbl { width: 100%; border-collapse: collapse; min-width: 760px; }
table.flp-tbl th { text-align: left; font-size: 14px; font-weight: 700; color: #1f2330;
  padding: 12px 14px; border: none; text-transform: none; letter-spacing: 0; }
table.flp-tbl th.num { text-align: center; }
table.flp-tbl .filt th { padding: 4px 8px 14px; }
.flp-fin { display: flex; align-items: center; gap: 4px; }
.flp-fin input { background: #f4f5f7; border: none; border-radius: 7px; padding: 7px 9px; font-size: 12px; color: #6b7280; width: 100%; }
.flp-fin .kebab { color: #cfd3da; display: inline-flex; }
.flp-fin .kebab svg { width: 16px; height: 16px; }
.flp-fin.range { gap: 6px; }
.flp-fin.range input { width: 46px; text-align: center; }
table.flp-tbl tbody td { padding: 12px 14px; border-top: 1px solid #f0f1f4; font-size: 14px; color: #333; }
table.flp-tbl tbody tr:hover { background: #fafbfc; }
.flp-empty td { text-align: right; color: #b8bdc7; font-style: italic; background: #f7f8fa; padding: 22px 30px; }
.flp-tbl .timg { width: 40px; height: 40px; border-radius: 7px; object-fit: cover; background: #f0f1f4; }

/* KPI dashboard */
.flp-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 1500px; }
.flp-kpi { border: 1px solid #eceef2; border-radius: 12px; padding: 18px 22px; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.flp-kpi .top { display: flex; justify-content: space-between; color: #6b7280; font-size: 15px; }
.flp-kpi .pct { color: #b8bdc7; font-size: 14px; }
.flp-kpi .v { font-size: 30px; font-weight: 700; margin-top: 8px; }
.flp-ins { margin-top: 30px; }
.flp-ins h2 { font-size: 24px; font-weight: 700; margin: 0 0 10px; }
.flp-ins p { color: #9aa0ab; font-style: italic; }

/* settings */
.flp-set { max-width: 760px; margin: 0 auto; }
.flp-acc { background: #f4f5f7; border-radius: 12px; margin-bottom: 16px; }
.flp-acc-h { display: flex; align-items: center; padding: 18px 22px; cursor: pointer; font-size: 17px; font-weight: 600; }
.flp-acc-h .chev { margin-left: auto; display: inline-flex; }
.flp-acc-h .incomplete { margin-left: auto; margin-right: 14px; background: #fde2e4; color: #d63a45;
  font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 6px; letter-spacing: .4px; }
.flp-acc-b { padding: 6px 22px 24px; }
.flp-fld { width: 100%; background: #f4f5f7; border: 1px solid #e6e8ec; border-radius: 12px;
  padding: 15px 16px; font-size: 15px; color: #1f2330; margin-bottom: 14px; }
.flp-fld::placeholder { color: #9aa0ab; }
.flp-gen-row { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.flp-photo { width: 64px; height: 64px; border-radius: 12px; background: #e9eaee; color: #6b7280;
  display: flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }
.flp-token { display: flex; align-items: center; gap: 10px; background: #f4f5f7; border-radius: 12px;
  padding: 14px 16px; margin-bottom: 14px; }
.flp-token code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: monospace; font-size: 14px; color: #1f2330; }
.flp-token .ic { color: #1f2330; cursor: pointer; display: inline-flex; }
.flp-link-b { color: #1d4ed8; font-weight: 600; cursor: pointer; display: inline-block; margin: 6px 0 18px; }
.flp-danger-row { display: flex; gap: 16px; }
.flp-danger-row button { flex: 1; background: #fff; border: 1px solid #f3c2c6; color: #e5484d;
  border-radius: 12px; padding: 16px; font-weight: 700; cursor: pointer; }
.flp-add-row { display: flex; justify-content: space-between; align-items: center; }
.flp-card-item { border: 1px solid #eceef2; border-radius: 12px; padding: 16px 18px; box-shadow: 0 6px 16px rgba(0,0,0,.05); margin-bottom: 12px; }
.flp-card-item .ttl { font-weight: 700; }
.flp-card-item .sub { color: #9aa0ab; font-size: 14px; margin-top: 2px; }
.flp-pill { display: inline-block; background: #e7ecff; color: #1d4ed8; font-size: 11px; font-weight: 800;
  padding: 4px 9px; border-radius: 6px; margin-top: 10px; margin-right: 6px; letter-spacing: .4px; }
.flp-addlink { color: #1d4ed8; font-weight: 700; cursor: pointer; display: inline-block; margin-top: 6px; }
.flp-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.flp-chip { background: #e9eaee; border-radius: 999px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.flp-chip .x { color: #9aa0ab; cursor: pointer; display: inline-flex; }
.flp-chip-add { color: #6b7280; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.flp-save { display: block; width: 100%; max-width: 760px; margin: 30px auto 0; background: #e9eaee;
  color: #9aa0ab; border: none; border-radius: 12px; padding: 16px; font-weight: 700; font-size: 16px; cursor: not-allowed; }
.flp-logout { color: #1f2330; cursor: pointer; display: inline-flex; }

/* POS / create order */
.flp-full { display: block; overflow-y: auto; padding: 0; }
.flp-pos { display: grid; grid-template-columns: 1fr 420px; gap: 0; min-height: 100%; }
.flp-pos-top { display: flex; align-items: center; gap: 14px; padding: 20px 26px; }
.flp-pos-top .back { cursor: pointer; display: inline-flex; }
.flp-pos-top h1 { font-size: 24px; font-weight: 700; margin: 0; }
.flp-basket { padding: 0 26px; }
.flp-basket-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.flp-basket-h h2 { font-size: 22px; font-weight: 700; margin: 0; }
.flp-basket-empty { text-align: center; color: #1d4ed8; font-style: italic; font-weight: 600; margin-top: 80px; }
.flp-line { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #f0f1f4; padding: 12px 0; }
.flp-line .timg { width: 48px; height: 48px; }
.flp-line .gr { flex: 1; }
.flp-line .rm { color: #e5484d; cursor: pointer; background: none; border: none; }
.flp-pos-side { background: #fafbfc; padding: 22px; border-left: 1px solid #eceef2; }
.flp-od { background: #f4f5f7; border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.flp-od .row { display: flex; align-items: center; gap: 10px; color: #6b7280; margin: 6px 0; }
.flp-od .row.muted2 { color: #b8bdc7; }
.flp-od .hd { display: flex; justify-content: space-between; color: #9aa0ab; font-weight: 600; margin-bottom: 8px; }
.flp-od .edit, .flp-od .add { color: #1d4ed8; font-weight: 600; cursor: pointer; }
.flp-sum .line { display: flex; justify-content: space-between; padding: 4px 0; }
.flp-sum .line.muted2 { color: #b8bdc7; }
.flp-sum .tot { display: flex; justify-content: space-between; font-weight: 700; border-top: 1px solid #e6e8ec; padding-top: 10px; margin-top: 8px; }
.flp-paid-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: #6b7280; font-weight: 600; }
.flp-pay-btns { display: flex; gap: 12px; }
.flp-pay-btns button { flex: 1; background: #fff; border: 1px solid #eceef2; border-radius: 10px;
  padding: 14px; color: #6b7280; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.flp-pay-btns button.sel { border-color: #1d4ed8; color: #1d4ed8; }
.flp-toggle { width: 44px; height: 24px; border-radius: 999px; background: #c9b8ff; position: relative; cursor: pointer; border: none; }
.flp-toggle .dot { position: absolute; right: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #6d28d9; display: flex; align-items: center; justify-content: center; color: #fff; }
.flp-toggle.off { background: #d8dade; }
.flp-toggle.off .dot { left: 2px; right: auto; background: #fff; }
.flp input[type=checkbox] { width: auto; accent-color: #1d4ed8; }
.flp-delv { display: flex; align-items: center; gap: 10px; background: #f4f5f7; border-radius: 12px; padding: 14px 18px; margin-bottom: 16px; }
.flp-create { width: 100%; background: #1d4ed8; color: #fff; border: none; border-radius: 12px; padding: 16px; font-weight: 700; font-size: 16px; cursor: pointer; }
.flp-posbar { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #f4f5f7;
  border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 12px 22px; display: flex; gap: 26px; z-index: 95; }
.flp-posbar button { background: none; border: none; color: #1f2330; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* help FAB */
.flp-fab { position: fixed; right: 22px; bottom: 22px; width: 52px; height: 52px; border-radius: 50%;
  background: #1d4ed8; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(29,78,216,.4); z-index: 96; }

@media (max-width: 820px) { .flp-pos { grid-template-columns: 1fr; } .flp-kpis { grid-template-columns: 1fr; } }
