/* ==========================================================================
   Adsense Flipper Pro — marketplace UI
   Everything is scoped to .afp so the theme is never affected.
   ========================================================================== */

.afp {
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e9f2;
  --line-2: #eef1f7;
  --bg: #f6f8fc;
  --card: #ffffff;
  --brand: #2563eb;
  --brand-2: #7c3aed;
  --brand-soft: #eef3ff;
  --ads: #1a73e8;
  --ads-soft: #e8f0fe;
  --mi: #7c3aed;
  --mi-soft: #f3eefe;
  --ok: #059669;
  --ok-soft: #e7f8f1;
  --warn: #b45309;
  --warn-soft: #fff6e6;
  --err: #dc2626;
  --err-soft: #fdeeee;
  --wa: #16a34a;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --sh-1: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --sh-2: 0 10px 30px -12px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .05);
  --sh-3: 0 24px 60px -20px rgba(37, 99, 235, .35);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px 56px;
  -webkit-font-smoothing: antialiased;
}
.afp *, .afp *::before, .afp *::after { box-sizing: border-box; }
.afp [hidden] { display: none !important; }
.afp a { color: var(--brand); text-decoration: none; }
.afp a:hover { text-decoration: none; }
.afp img { max-width: 100%; display: block; }
.afp h1, .afp h2, .afp h3 { color: var(--ink); letter-spacing: -.02em; margin: 0; font-family: inherit; }
.afp p { margin: 0; }
.afp .afp-ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.afp-muted { color: var(--muted); }
.afp-center { text-align: center; }

/* ---------- Buttons ---------- */
.afp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 14.5px; font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  text-decoration: none !important;
}
.afp-btn:active { transform: translateY(1px); }
.afp-btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6); }
.afp-btn--primary:hover { box-shadow: 0 12px 26px -8px rgba(124, 58, 237, .55); transform: translateY(-1px); }
.afp-btn--ghost { background: #fff; color: var(--ink) !important; border-color: var(--line); }
.afp-btn--ghost:hover { border-color: #c7d2fe; background: #fafbff; }
.afp-btn--soft { background: var(--brand-soft); color: var(--brand) !important; }
.afp-btn--soft:hover { background: #e0e8ff; }
.afp-btn--wa { background: var(--wa); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(22, 163, 74, .6); }
.afp-btn--wa:hover { background: #15803d; }
.afp-btn--sm { height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; }
.afp-btn--block { display: flex; width: 100%; }
.afp-btn .afp-ic { width: 17px; height: 17px; }
.afp-link { background: none; border: 0; color: var(--brand); font-weight: 600; font-size: 14px; font-family: inherit; cursor: pointer; padding: 0; }
.afp-iconbtn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-2) !important; cursor: pointer;
  transition: all .15s ease;
}
.afp-iconbtn:hover { border-color: #c7d2fe; color: var(--brand) !important; }
.afp-iconbtn--danger:hover { border-color: #fecaca; color: var(--err) !important; background: var(--err-soft); }

/* ---------- Member bar ---------- */
.afp-bar { position: sticky; top: 0; z-index: 50; margin: 12px 0 18px; }
.admin-bar .afp-bar { top: 32px; }
.afp-bar__in {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border: 1px solid var(--line); border-radius: 16px; padding: 8px 10px; box-shadow: var(--sh-1);
}
.afp-bar__links, .afp-bar__acct { display: flex; align-items: center; gap: 6px; }
.afp-bar__link {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px;
  color: var(--ink-2) !important; font-weight: 600; font-size: 14px;
}
.afp-bar__link:hover { background: var(--bg); }
.afp-bar__link.is-on { background: var(--brand-soft); color: var(--brand) !important; }
.afp-bar__icon { position: relative; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--ink-2) !important; }
.afp-bar__icon:hover { background: var(--bg); }
.afp-dot { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--err); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid #fff; }
.afp-bar__me {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 5px; border-radius: 99px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; font-family: inherit; color: var(--ink);
}
.afp-bar__me:hover { border-color: #c7d2fe; }
.afp-menu { position: relative; }
.afp-menu__pop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--sh-2); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .16s ease; z-index: 60;
}
.afp-menu.is-open .afp-menu__pop { opacity: 1; visibility: visible; transform: none; }
.afp-menu__pop a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink-2) !important; font-size: 14px; font-weight: 500; }
.afp-menu__pop a:hover { background: var(--bg); color: var(--ink) !important; }
.afp-menu__pop hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 4px; }

/* ---------- Avatars / badges / pills ---------- */
.afp-av { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; }
.afp-av--txt { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #dbe6ff, #ede4ff); color: var(--brand); font-weight: 700; }
.afp-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 7px; border-radius: 99px;
  font-size: 12px; font-weight: 600; white-space: nowrap; max-width: 100%;
}
.afp-badge img, .afp-badge .afp-ic { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }
.afp-badge span { overflow: hidden; text-overflow: ellipsis; }
.afp-badge--adsense { background: var(--ads-soft); color: #1557b0; }
.afp-badge--mi { background: var(--mi-soft); color: #5b21b6; }
.afp-badge--mi .afp-ic { color: #f59e0b; fill: #f59e0b; }
.afp-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.afp-pill .afp-ic { width: 14px; height: 14px; }
.afp-pill--new { background: #111827; color: #fff; }
.afp-pill--ok { background: var(--ok-soft); color: var(--ok); }
.afp-tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--bg); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.afp-tag .afp-ic { width: 13px; height: 13px; }
.afp-tag--soft { background: #fff; border: 1px solid var(--line); color: var(--muted); }
.afp-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; }

/* ---------- Alerts ---------- */
.afp-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin: 0 0 16px; font-size: 14px; border: 1px solid transparent; }
.afp-alert .afp-ic { margin-top: 1px; }
.afp-alert--ok { background: var(--ok-soft); color: #065f46; border-color: #bbf0d9; }
.afp-alert--err { background: var(--err-soft); color: #991b1b; border-color: #f8caca; }
.afp-alert--warn { background: var(--warn-soft); color: var(--warn); border-color: #fde3b4; }

/* ---------- Hero ---------- */
.afp-hero {
  position: relative; overflow: hidden; border-radius: 26px; background: #070b1a; color: #fff;
  padding: 64px 28px 30px; margin-bottom: 18px; isolation: isolate;
}
.afp-hero__mesh {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 12% 10%, rgba(37, 99, 235, .55), transparent 60%),
    radial-gradient(520px 320px at 88% 20%, rgba(124, 58, 237, .5), transparent 60%),
    radial-gradient(500px 300px at 60% 110%, rgba(6, 182, 212, .28), transparent 60%);
}
.afp-hero__mesh::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.afp-hero__in { max-width: 820px; margin: 0 auto; text-align: center; }
.afp-eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: #dbe5ff; }
.afp-eyebrow .afp-ic { width: 15px; height: 15px; }
.afp-hero__title { color: #fff !important; font-size: clamp(30px, 5vw, 52px); line-height: 1.08; font-weight: 800; margin: 18px 0 14px !important; }
.afp-hero__title span { background: linear-gradient(90deg, #60a5fa, #93c5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.afp-hero__title span.mi { background: linear-gradient(90deg, #c4b5fd, #f0abfc); -webkit-background-clip: text; background-clip: text; }
.afp-hero__sub { color: #b8c3dc; font-size: 16.5px; max-width: 640px; margin: 0 auto 26px !important; }
.afp-hero__search {
  display: flex; align-items: center; gap: 8px; max-width: 620px; margin: 0 auto; padding: 7px 7px 7px 16px;
  background: #fff; border-radius: 16px; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .6);
}
.afp-hero__search > span { color: var(--muted); display: flex; }
.afp-hero__search input { flex: 1; min-width: 0; border: 0 !important; outline: 0; box-shadow: none !important; font-weight: 500; font-size: 15.5px; font-family: inherit; color: var(--ink); background: transparent !important; padding: 8px 4px !important; height: auto !important; }
.afp-hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 34px; }
.afp-stat { padding: 14px 10px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.afp-stat b { display: block; font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.afp-stat span { font-size: 12.5px; color: #9fb0d0; }

.afp-notice { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(90deg, #fff7e6, #fff); border: 1px solid #fde3b4; color: #92400e; font-weight: 600; font-size: 14px; margin-bottom: 18px; }

/* ---------- Category cards ---------- */
.afp-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.afp-catcard {
  display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; text-align: left; font-family: inherit; color: var(--ink) !important;
  transition: all .18s ease; box-shadow: var(--sh-1);
}
.afp-catcard:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: #c7d2fe; }
.afp-catcard.is-on { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.afp-catcard b { display: block; font-size: 15px; }
.afp-catcard small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.afp-catcard__ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--ink-2); flex: none; }
.afp-catcard__ic .afp-ic { width: 22px; height: 22px; }
.afp-catcard--adsense .afp-catcard__ic { background: var(--ads-soft); }
.afp-catcard--mi .afp-catcard__ic { background: var(--mi-soft); color: #f59e0b; }
.afp-catcard--mi.is-on { border-color: var(--mi); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.afp-catcard--sell { background: linear-gradient(135deg, #0b1220, #1e293b); color: #fff !important; border-color: transparent; }
.afp-catcard--sell small { color: #9fb0d0; }
.afp-catcard--sell .afp-catcard__ic { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }

.afp-adslot { margin: 0 0 22px; text-align: center; }

/* ---------- Toolbar ---------- */
.afp-toolbar {
  position: sticky; top: 74px; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--sh-1); display: grid; gap: 10px;
}
.admin-bar .afp-toolbar { top: 106px; }
.afp-toolbar__search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 46px; border-radius: 12px; background: var(--bg); color: var(--muted); }
.afp-toolbar__search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; outline: 0; box-shadow: none !important; font-weight: 500; font-size: 15px; font-family: inherit; color: var(--ink); padding: 0 !important; height: 44px !important; }
.afp-toolbar__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.afp-toolbar select, .afp-range input {
  height: 40px !important; border: 1px solid var(--line) !important; border-radius: 10px !important; background: #fff !important; padding: 0 12px !important;
  font-weight: 500; font-size: 14px; font-family: inherit; color: var(--ink) !important; box-shadow: none !important; margin: 0 !important;
}
.afp-range { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.afp-range input { width: 110px; }
.afp-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.afp-chips::-webkit-scrollbar { display: none; }
.afp-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-weight: 600; font-size: 13px; font-family: inherit; cursor: pointer; white-space: nowrap; transition: all .15s;
}
.afp-chip img { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }
.afp-chip:hover { border-color: #c7d2fe; }
.afp-chip.is-on, .afp-chip--radio:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.afp-chip--radio input { position: absolute; opacity: 0; pointer-events: none; }
.afp-toggle { display: inline-flex; cursor: pointer; }
.afp-toggle input { position: absolute; opacity: 0; }
.afp-toggle span { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); background: #fff; }
.afp-toggle input:checked + span { background: #fff1f2; border-color: #fecdd3; color: #e11d48; }
.afp-results-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 12px; color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- Listing cards ---------- */
.afp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.afp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.afp-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; box-shadow: var(--sh-1); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  animation: afpIn .4s ease both;
}
.afp-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: #c7d2fe; }
.afp-card--mi:hover { border-color: #ddd0fd; box-shadow: 0 24px 60px -20px rgba(124, 58, 237, .35); }
@keyframes afpIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.afp-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #eef3ff, #f6f0ff); overflow: hidden; }
.afp-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.afp-card:hover .afp-card__media img { transform: scale(1.04); }
.afp-card__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 56px; font-weight: 800; color: rgba(37, 99, 235, .25); }
.afp-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .0) 55%, rgba(0, 0, 0, .25)); }
.afp-card__badge { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .95) !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.afp-card .afp-pill--new { position: absolute; left: 12px; bottom: 12px; }
.afp-fav {
  position: absolute; right: 12px; top: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .95); color: var(--ink-2); display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12); transition: transform .15s;
}
.afp-fav:hover { transform: scale(1.08); }
.afp-fav.is-on { color: #e11d48; }
.afp-fav.is-on .afp-ic { fill: #e11d48; }
.afp-card__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.afp-card__title { display: flex; align-items: center; gap: 7px; font-size: 16.5px; font-weight: 700; color: var(--ink) !important; letter-spacing: -.01em; min-width: 0; }
.afp-card__title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afp-card__title .afp-ic { color: var(--muted); width: 16px; height: 16px; }
.afp-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.afp-card__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.afp-card__meta div { background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.afp-card__meta dt { font-size: 11.5px; color: var(--muted); font-weight: 600; margin: 0; }
.afp-card__meta dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.afp-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.afp-card__price small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.afp-card__price b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.afp-card__seller { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); font-weight: 500; }
.afp-card__seller span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afp-card__seller em { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 12px; }
.afp-card__seller em .afp-ic { width: 14px; height: 14px; }

.afp-skel { border-radius: 18px; background: linear-gradient(90deg, #eef1f7 25%, #f6f8fc 50%, #eef1f7 75%); background-size: 200% 100%; animation: afpShimmer 1.2s infinite; min-height: 380px; }
@keyframes afpShimmer { to { background-position: -200% 0; } }
.afp-grid.is-loading { opacity: .55; pointer-events: none; transition: opacity .2s; }
.afp-more { display: flex; justify-content: center; margin-top: 22px; }

.afp-empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed #d5dcea; border-radius: 18px; color: var(--muted); }
.afp-empty > .afp-ic { width: 40px; height: 40px; color: #a5b4fc; margin-bottom: 10px; }
.afp-empty h3 { font-size: 18px; margin-bottom: 6px; }
.afp-empty p { margin-bottom: 14px; }
.afp-empty--sm { padding: 22px; }
.afp-empty--sm p { margin: 0; }

/* ---------- Trust strip ---------- */
.afp-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.afp-trust__item { display: flex; gap: 12px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.afp-trust__item > span { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.afp-trust__item b { display: block; margin-bottom: 3px; }
.afp-trust__item p { color: var(--muted); font-size: 13.5px; }

/* ---------- Detail page ---------- */
.afp-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted) !important; margin: 4px 0 12px; }
.afp-back:hover { color: var(--ink) !important; }
.afp-dhead { position: relative; overflow: hidden; border-radius: 22px; padding: 28px; margin-bottom: 20px; background: linear-gradient(135deg, #0b1220, #1e3a8a); color: #fff; }
.afp-dhead--mi { background: linear-gradient(135deg, #0b1220, #4c1d95); }
.afp-dhead::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 70%); }
.afp-dhead__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.afp-dhead__badges .afp-badge { background: rgba(255, 255, 255, .95); }
.afp-dhead h1, .afp-dhead .afp-dhead__title { color: #fff !important; font-size: clamp(24px, 4vw, 36px); font-weight: 800; word-break: break-word; }
.afp-dhead__meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; color: #c7d2fe; font-size: 14px; }
.afp-dhead__meta span { display: inline-flex; align-items: center; gap: 6px; }
.afp-dhead__meta .afp-ic { width: 16px; height: 16px; }
.afp-dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.afp-dside { position: sticky; top: 84px; display: grid; gap: 14px; }
.admin-bar .afp-dside { top: 116px; }
.afp-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-bottom: 18px; box-shadow: var(--sh-1); }
.afp-panel h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.afp-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.afp-fact { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--bg); min-width: 0; }
.afp-fact > span { width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; box-shadow: var(--sh-1); }
.afp-fact small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.afp-fact b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afp-prose p { margin: 0 0 10px; color: var(--ink-2); }

.afp-gallery { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; margin-bottom: 18px; box-shadow: var(--sh-1); }
.afp-gallery__stage { display: block; width: 100%; border: 0; padding: 0; background: var(--bg); border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 10; }
.afp-gallery__stage img { width: 100%; height: 100%; object-fit: contain; }
.afp-gallery__nav { position: absolute; top: calc(50% - 56px); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); box-shadow: var(--sh-2); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.afp-gallery__nav.prev { left: 20px; }
.afp-gallery__nav.next { right: 20px; }
.afp-gallery__count { position: absolute; right: 20px; top: 20px; background: rgba(11, 18, 32, .75); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 99px; }
.afp-gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 2px; }
.afp-gallery__thumbs button { flex: none; width: 84px; height: 56px; border-radius: 9px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--bg); cursor: pointer; opacity: .7; }
.afp-gallery__thumbs button.is-on { border-color: var(--brand); opacity: 1; }
.afp-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.afp-gallery__tools { display: flex; gap: 8px; justify-content: flex-end; padding-top: 10px; }
.afp-gallery__empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 60px; color: var(--muted); }

.afp-pricebox { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--sh-2); display: grid; gap: 10px; }
.afp-pricebox > small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.afp-pricebox__amt { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin-top: -6px; margin-bottom: 4px; background: linear-gradient(135deg, var(--ink), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.afp-offer summary { list-style: none; }
.afp-offer summary::-webkit-details-marker { display: none; }
.afp-offer[open] summary { margin-bottom: 12px; }
.afp-assure { list-style: none; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 8px; }
.afp-assure li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.afp-assure .afp-ic { color: var(--ok); width: 16px; height: 16px; }
.afp-sellercard { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.afp-sellercard > div { flex: 1; min-width: 0; }
.afp-sellercard small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.afp-sellercard b { display: block; }
.afp-sellercard .afp-muted { font-size: 12.5px; }
.afp-sharebox { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.afp-sharebox span { margin-right: auto; }
.afp-sharebox a, .afp-sharebox button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2) !important; cursor: pointer; }
.afp-related { margin-top: 28px; }
.afp-related h2 { font-size: 20px; margin-bottom: 14px; }

/* ---------- Lightbox ---------- */
.afp-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(5, 8, 18, .92); display: flex; align-items: center; justify-content: center; padding: 40px 70px; }
.afp-lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.afp-lb__x, .afp-lb__nav { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.afp-lb__x:hover, .afp-lb__nav:hover { background: rgba(255, 255, 255, .22); }
.afp-lb__x { top: 18px; right: 18px; }
.afp-lb__nav.prev { left: 14px; top: 50%; }
.afp-lb__nav.next { right: 14px; top: 50%; }
.afp-lb__count { position: absolute; bottom: 16px; color: #cbd5e1; font-size: 13px; font-weight: 600; }

/* ---------- Forms ---------- */
.afp-form { display: grid; gap: 14px; }
.afp-field { display: grid; gap: 6px; min-width: 0; }
.afp-field label, .afp-label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin: 0; }
.afp-field label em { font-weight: 500; color: var(--muted); font-style: normal; }
.afp-field input:not([type=checkbox]):not([type=radio]):not([type=file]), .afp-field select, .afp-field textarea, .afp-form textarea, .afp-inline input {
  width: 100%; height: 46px; padding: 0 14px !important; border: 1.5px solid var(--line) !important; border-radius: 12px !important;
  background: #fff !important; color: var(--ink) !important; font-weight: 500; font-size: 15px; font-family: inherit; box-shadow: none !important; margin: 0 !important;
  transition: border-color .15s, box-shadow .15s; outline: 0;
}
.afp-field textarea, .afp-form textarea { height: auto; padding: 12px 14px !important; resize: vertical; line-height: 1.55; }
.afp-field input:focus, .afp-field select:focus, .afp-field textarea:focus, .afp-inline input:focus { border-color: var(--brand) !important; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12) !important; }
.afp-field.is-invalid input, .afp-field.is-invalid select, .afp-field.is-invalid textarea { border-color: var(--err) !important; }
.afp-hint { font-size: 12.5px; color: var(--muted); }
.afp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.afp-inline { display: flex; gap: 8px; }
.afp-inline input { flex: 1; }
.afp-check { display: inline-flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; font-weight: 500; }
.afp-check input { margin: 3px 0 0; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.afp-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.afp-input-ic { position: relative; }
.afp-input-ic > .afp-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; z-index: 1; }
.afp .afp-field .afp-input-ic input:not([type=checkbox]):not([type=radio]):not([type=file]), .afp-input-ic input { padding-left: 44px !important; }
.afp-pw { position: relative; }
.afp .afp-field .afp-pw input:not([type=checkbox]):not([type=radio]):not([type=file]), .afp-pw input { padding-right: 46px !important; }
.afp-pw__eye { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.afp-pw__eye:hover, .afp-pw__eye.is-on { color: var(--brand); background: var(--brand-soft); }
.afp-strength { height: 5px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin-top: -6px; }
.afp-strength i { display: block; height: 100%; width: 0; transition: width .25s, background .25s; }

/* ---------- Auth ---------- */
.afp-auth { padding-top: 26px; }
.afp-auth__card { display: grid; grid-template-columns: 1fr 1.05fr; max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--sh-2); }
.afp-auth__side { position: relative; overflow: hidden; padding: 40px 36px; background: #070b1a; color: #fff; display: flex; flex-direction: column; isolation: isolate; }
.afp-auth__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px 260px at 20% 0%, rgba(37, 99, 235, .6), transparent 60%), radial-gradient(400px 280px at 100% 100%, rgba(124, 58, 237, .55), transparent 60%); }
.afp-auth__brand { font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.afp-auth__brand b { color: #93c5fd; }
.afp-auth__side h2 { color: #fff !important; font-size: 26px; line-height: 1.2; margin: 34px 0 22px; }
.afp-auth__side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.afp-auth__side li { display: flex; gap: 12px; align-items: flex-start; color: #c7d2fe; font-size: 14.5px; }
.afp-auth__side li .afp-ic { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; }
.afp-auth__main { padding: 40px 38px; }
.afp-auth__main h1 { font-size: 28px; font-weight: 800; }
.afp-auth__main > .afp-muted { margin: 6px 0 22px; }
.afp-auth__alt { text-align: center; margin-top: 18px !important; font-size: 14px; color: var(--muted); }

/* ---------- Sell / wizard ---------- */
.afp-pagehead { text-align: center; max-width: 720px; margin: 8px auto 26px; }
.afp-pagehead .afp-eyebrow { background: var(--brand-soft); color: var(--brand); border-color: #dbe5ff; }
.afp-pagehead h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin: 14px 0 10px; }
.afp-wizard { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--sh-2); }
.afp-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 22px; padding: 0; counter-reset: s; }
.afp-steps li { position: relative; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); padding-bottom: 10px; border-bottom: 3px solid var(--line-2); }
.afp-steps li span { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--line-2); font-size: 12px; flex: none; }
.afp-steps li.is-on, .afp-steps li.is-done { color: var(--ink); border-color: var(--brand); }
.afp-steps li.is-on span, .afp-steps li.is-done span { background: var(--brand); color: #fff; }
.afp-step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.afp-step.is-on { display: grid; gap: 16px; animation: afpIn .3s ease; }
.afp-step legend { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; padding: 0; }
.afp-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.afp-pick__card { position: relative; display: grid; gap: 4px; padding: 18px; border-radius: 16px; border: 2px solid var(--line); cursor: pointer; transition: all .15s; }
.afp-pick__card input { position: absolute; opacity: 0; }
.afp-pick__card:hover { border-color: #c7d2fe; }
.afp-pick__card:has(input:checked) { border-color: var(--brand); background: #fafbff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }
.afp-pick__card--mi:has(input:checked) { border-color: var(--mi); background: #fcfaff; box-shadow: 0 0 0 4px rgba(124, 58, 237, .1); }
.afp-pick__ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--ads-soft); margin-bottom: 6px; }
.afp-pick__card--mi .afp-pick__ic { background: var(--mi-soft); color: #f59e0b; }
.afp-pick__ic .afp-ic { width: 24px; height: 24px; }
.afp-pick__card b { font-size: 16px; }
.afp-pick__card small { color: var(--muted); font-size: 13px; }
.afp-pick__tick { position: absolute; right: 14px; top: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: none; align-items: center; justify-content: center; }
.afp-pick__tick .afp-ic { width: 14px; height: 14px; }
.afp-pick__card:has(input:checked) .afp-pick__tick { display: flex; }
.afp-pick__card--mi .afp-pick__tick { background: var(--mi); }
.afp-subpick { display: grid; gap: 8px; }
.afp-subpick .afp-chips { flex-wrap: wrap; overflow: visible; }
.afp-drop { display: grid; justify-items: center; gap: 6px; padding: 34px 20px; border: 2px dashed #cdd6ea; border-radius: 16px; background: var(--bg); cursor: pointer; text-align: center; color: var(--muted); transition: all .15s; }
.afp-drop:hover, .afp-drop.is-over { border-color: var(--brand); background: #f3f6ff; color: var(--brand); }
.afp-drop > .afp-ic { width: 34px; height: 34px; }
.afp-drop b { color: var(--ink); }
.afp-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.afp-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.afp-shot { position: relative; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); aspect-ratio: 4 / 3; background: var(--bg); }
.afp-shot img { width: 100%; height: 100%; object-fit: cover; }
.afp-shot.is-feat { border-color: #f59e0b; }
.afp-shot__keep { display: block; height: 100%; cursor: pointer; }
.afp-shot__keep input { position: absolute; opacity: 0; }
.afp-shot__x { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 4px; background: rgba(220, 38, 38, .78); color: #fff; font-weight: 700; font-size: 13px; }
.afp-shot__keep input:not(:checked) ~ .afp-shot__x { display: flex; }
.afp-shot__star { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; color: #cbd5e1; box-shadow: var(--sh-1); }
.afp-shot__star input { position: absolute; opacity: 0; }
.afp-shot__star:has(input:checked) { color: #f59e0b; }
.afp-wizard__nav { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.afp-wizard__spacer { flex: 1; }
.afp-gate { max-width: 860px; margin: 0 auto; display: grid; gap: 16px; }
.afp-gate__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.afp-gate__cat { display: grid; gap: 4px; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.afp-gate__cat > span { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--ads-soft); margin-bottom: 6px; }
.afp-gate__cat--mi > span { background: var(--mi-soft); color: #f59e0b; }
.afp-gate__cat small { color: var(--muted); }
.afp-gate__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, #0b1220, #1e3a8a); color: #fff; }
.afp-gate__cta > .afp-ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255, 255, 255, .12); }
.afp-gate__cta > div { flex: 1; min-width: 200px; }
.afp-gate__cta p { color: #c7d2fe; font-size: 14px; }

/* ---------- Dashboard ---------- */
.afp-dash__grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.afp-dash__side { position: sticky; top: 84px; display: grid; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--sh-1); }
.admin-bar .afp-dash__side { top: 116px; }
.afp-dash__me { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; border-bottom: 1px solid var(--line-2); min-width: 0; }
.afp-dash__me div { min-width: 0; }
.afp-dash__me b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afp-dash__me small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afp-dash__nav { display: grid; gap: 2px; }
.afp-dash__nav a { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 11px; color: var(--ink-2) !important; font-weight: 600; font-size: 14.5px; }
.afp-dash__nav a:hover { background: var(--bg); }
.afp-dash__nav a.is-on { background: var(--brand-soft); color: var(--brand) !important; }
.afp-dash__nav a .afp-count { margin-left: auto; }
.afp-dash__logout { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13.5px; color: var(--muted) !important; font-weight: 600; }
.afp-dash__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.afp-dash__head h1 { font-size: 26px; font-weight: 800; }
.afp-dash__head .afp-back { margin: 0 0 6px; }
.afp-h2 { font-size: 17px; font-weight: 700; margin: 22px 0 12px !important; display: flex; align-items: center; gap: 8px; }
.afp-h2 .afp-count { background: var(--line-2); color: var(--ink-2); }
.afp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.afp-kpi { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.afp-kpi > span { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }
.afp-kpi:nth-child(2) > span { background: var(--ok-soft); color: var(--ok); }
.afp-kpi:nth-child(3) > span { background: var(--warn-soft); color: var(--warn); }
.afp-kpi:nth-child(4) > span { background: var(--mi-soft); color: var(--mi); }
.afp-kpi b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; }
.afp-kpi small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.afp-rows { display: grid; gap: 10px; }
.afp-row { display: flex; align-items: center; gap: 14px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .15s; }
.afp-row:hover { box-shadow: var(--sh-2); }
.afp-row__img { width: 92px; height: 64px; border-radius: 10px; overflow: hidden; flex: none; background: linear-gradient(135deg, #eef3ff, #f6f0ff); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; color: rgba(37, 99, 235, .35) !important; }
.afp-row__img img { width: 100%; height: 100%; object-fit: cover; }
.afp-row__main { flex: 1; min-width: 0; }
.afp-row__title { display: block; font-weight: 700; color: var(--ink) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afp-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.afp-row__meta span { display: inline-flex; align-items: center; gap: 4px; }
.afp-row__meta .afp-ic { width: 14px; height: 14px; }
.afp-row__act { display: flex; gap: 6px; }
.afp-row__note { margin: -4px 0 4px; }
.afp-status { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.afp-status .afp-ic { width: 14px; height: 14px; }
.afp-status--approved { background: var(--ok-soft); color: var(--ok); }
.afp-status--pending { background: var(--warn-soft); color: var(--warn); }
.afp-status--rejected, .afp-status--declined { background: var(--err-soft); color: var(--err); }
.afp-offercard { display: flex; gap: 16px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; }
.afp-offercard__amt { font-size: 20px; font-weight: 800; letter-spacing: -.02em; min-width: 110px; color: var(--brand); }
.afp-offercard__main { flex: 1; min-width: 0; }
.afp-offercard__main a b { color: var(--ink); }
.afp-offercard__main small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.afp-offercard__main p { margin-top: 8px !important; padding: 10px 12px; border-radius: 10px; background: var(--bg); color: var(--ink-2); font-size: 14px; }
.afp-offercard__side { display: grid; justify-items: end; gap: 10px; }
.afp-offercard__act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.afp-offercard__act form { margin: 0; }
.afp-cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.afp-cards2 .afp-panel { margin: 0; }
.afp-cards2 .afp-panel:first-child { grid-row: span 2; }
.afp-avatarform__row { display: flex; align-items: center; gap: 14px; }
.afp-avatarform__row > div { display: grid; gap: 6px; justify-items: start; }
.afp-avatarform { padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); }
.afp-more-opt { margin-top: 12px; font-size: 13.5px; }
.afp-more-opt summary { cursor: pointer; color: var(--brand); font-weight: 600; margin-bottom: 10px; }

/* ---------- Chat ---------- */
.afp-chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: min(72vh, 720px); min-height: 480px; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--sh-1); }
.afp-chat__list { border-right: 1px solid var(--line-2); overflow-y: auto; }
.afp-chat__item { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink) !important; }
.afp-chat__item:hover { background: var(--bg); }
.afp-chat__item.is-on { background: var(--brand-soft); }
.afp-chat__item > div { flex: 1; min-width: 0; }
.afp-chat__item b { display: block; font-size: 14px; }
.afp-chat__item small { display: block; color: var(--brand); font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afp-chat__item span { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afp-chat__pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.afp-chat__pane--empty { align-items: center; justify-content: center; color: var(--muted); gap: 8px; }
.afp-chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.afp-chat__head > div { flex: 1; min-width: 0; }
.afp-chat__head b { display: block; }
.afp-chat__head small { color: var(--muted); font-size: 12.5px; }
.afp-chat__backbtn { display: none; color: var(--ink) !important; }
.afp-chat__msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: linear-gradient(180deg, #fafbff, #fff); }
.afp-msg { max-width: 72%; align-self: flex-start; position: relative; }
.afp-msg--me { align-self: flex-end; }
.afp-msg__b { padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: #f1f4fa; color: var(--ink); font-size: 14.5px; white-space: pre-wrap; word-wrap: break-word; }
.afp-msg--me .afp-msg__b { background: linear-gradient(135deg, var(--brand), #4f46e5); color: #fff; border-radius: 16px 16px 4px 16px; }
.afp-msg--del .afp-msg__b { background: transparent !important; color: var(--muted) !important; border: 1px dashed var(--line); font-style: italic; }
.afp-msg__b img { max-width: 240px; border-radius: 10px; margin: 2px 0; cursor: zoom-in; }
.afp-msg__b a.afp-file { display: inline-flex; align-items: center; gap: 6px; color: inherit !important; text-decoration: underline !important; }
.afp-msg__t { font-size: 11px; color: var(--muted); margin-top: 3px; padding: 0 4px; display: flex; gap: 8px; }
.afp-msg--me .afp-msg__t { justify-content: flex-end; }
.afp-msg__t button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 11px; padding: 0; text-decoration: underline; }
.afp-day { align-self: center; font-size: 11.5px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 3px 10px; border-radius: 99px; margin: 8px 0; }
.afp-chat__safety { display: flex; align-items: center; gap: 6px; padding: 8px 16px; font-size: 12px; color: var(--muted); background: var(--bg); border-top: 1px solid var(--line-2); }
.afp-chat__safety .afp-ic { width: 14px; height: 14px; color: var(--ok); }
.afp-chat__form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line-2); }
.afp-chat__form textarea { flex: 1; min-height: 44px !important; max-height: 140px; height: 44px !important; padding: 11px 14px !important; border: 1.5px solid var(--line) !important; border-radius: 12px !important; resize: none; font-weight: 500; font-size: 14.5px; font-family: inherit; box-shadow: none !important; margin: 0 !important; }
.afp-chat__form textarea:focus { border-color: var(--brand) !important; outline: 0; }
.afp-chat__form .afp-btn { width: 46px; padding: 0; }
.afp-chat__form label.afp-iconbtn { height: 44px; width: 44px; }

/* ---------- Seller profile ---------- */
.afp-profile { display: flex; align-items: center; gap: 20px; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); margin-bottom: 20px; box-shadow: var(--sh-1); }
.afp-profile h1 { font-size: 28px; font-weight: 800; }
.afp-profile__stats { margin-top: 8px; font-size: 14px; color: var(--muted); }
.afp-profile__stats b { color: var(--ink); }

/* ---------- Toasts ---------- */
.afp-toast { position: fixed; z-index: 99998; right: 20px; bottom: 20px; max-width: 340px; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #0b1220; color: #fff; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .45); font-family: "Inter", system-ui, sans-serif; font-size: 14px; transform: translateY(20px); opacity: 0; transition: all .25s ease; text-decoration: none !important; }
.afp-toast.is-on { transform: none; opacity: 1; }
.afp-toast b { display: block; color: #fff; }
.afp-toast span { color: #cbd5e1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .afp-grid, .afp-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .afp-cats { grid-template-columns: repeat(2, 1fr); }
  .afp-dgrid { grid-template-columns: 1fr; }
  .afp-dside { position: static; }
  .afp-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .afp-dash__grid { grid-template-columns: 1fr; }
  .afp-dash__side { position: static; }
  .afp-dash__nav { grid-template-columns: repeat(4, 1fr); }
  .afp-dash__nav a { flex-direction: column; justify-content: center; height: 62px; gap: 4px; font-size: 12px; position: relative; }
  .afp-dash__nav a .afp-count { position: absolute; top: 6px; right: 10px; }
  .afp-dash__me, .afp-dash__logout { display: none; }
  .afp-kpis { grid-template-columns: repeat(2, 1fr); }
  .afp-cards2 { grid-template-columns: 1fr; }
  .afp-cards2 .afp-panel:first-child { grid-row: auto; }
  .afp-auth__card { grid-template-columns: 1fr; }
  .afp-auth__side { padding: 26px; }
  .afp-auth__side h2 { margin: 14px 0 16px; font-size: 21px; }
  .afp-auth__main { padding: 28px 22px; }
  .afp-chat { grid-template-columns: 1fr; }
  .afp-chat__pane { display: none; }
  .afp-chat.is-open .afp-chat__list { display: none; }
  .afp-chat.is-open .afp-chat__pane { display: flex; }
  .afp-chat__backbtn { display: inline-flex; }
  .afp-toolbar { position: static; }
}
@media (max-width: 640px) {
  .afp { padding: 0 12px 40px; font-size: 14.5px; }
  .afp-hero { padding: 44px 18px 22px; border-radius: 20px; }
  .afp-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .afp-hero__search .afp-btn { padding: 0 14px; }
  .afp-grid, .afp-grid--3, .afp-cats, .afp-trust, .afp-pick, .afp-gate__cats, .afp-split { grid-template-columns: 1fr; }
  .afp-facts { grid-template-columns: 1fr 1fr; }
  .afp-bar__link span, .afp-bar__me span { display: none; }
  .afp-bar__acct .afp-btn--ghost { display: none; }
  .afp-steps li { font-size: 0; justify-content: center; }
  .afp-wizard { padding: 18px; }
  .afp-row { flex-wrap: wrap; }
  .afp-row__img { width: 72px; height: 54px; }
  .afp-row__act { width: 100%; justify-content: flex-end; }
  .afp-offercard { flex-direction: column; }
  .afp-offercard__side { justify-items: start; }
  .afp-range input { width: 92px; }
  .afp-dhead { padding: 22px; }
  .afp-lb { padding: 20px 10px; }
  .afp-msg { max-width: 86%; }
}
@media (prefers-reduced-motion: reduce) {
  .afp *, .afp-toast { animation: none !important; transition: none !important; }
}

/* ---------- Theme (Astra / Elementor) compatibility ---------- */
.afp a, .afp a:hover, .afp a:focus, .afp button { text-decoration: none !important; }
.afp .afp-bar { position: relative; top: auto !important; }
.afp .afp-toolbar { position: relative; top: auto !important; }
.afp .afp-dside, .afp .afp-dash__side { top: 110px !important; }
.afp .afp-toolbar select { width: auto !important; min-width: 150px; max-width: 100%; }
.afp .afp-range input { width: 110px !important; }
.afp input[type=checkbox], .afp input[type=radio] { width: auto; }
.afp .afp-chip, .afp .afp-catcard, .afp .afp-fav, .afp .afp-bar__me { text-transform: none; letter-spacing: normal; }
.afp button:not(.afp-btn):not(.afp-chip):not(.afp-catcard):not(.afp-fav):not(.afp-bar__me):not(.afp-iconbtn) { box-shadow: none; }
@media (max-width: 640px) { .afp .afp-toolbar select { flex: 1 1 140px; } }

/* ---------- MI network marks (v4.0.2) ---------- */
.afp-mark { display: inline-flex !important; align-items: center; justify-content: center; flex: none; width: 18px !important; height: 18px !important; border-radius: 5px; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; line-height: 1; }
.afp-mark-img { width: 18px !important; height: 18px !important; max-width: 18px !important; flex: none; border-radius: 4px; object-fit: contain; display: inline-block !important; }
.afp-mark-fb { display: none; }
.afp-badge { flex-wrap: nowrap; }
.afp-badge > span:last-child { flex: 0 1 auto; min-width: 0; }
.afp-card__badge { max-width: calc(100% - 70px); }
.afp-chip .afp-mark { width: 16px !important; height: 16px !important; font-size: 10px; }

/* ---------- Mobile overflow fixes (v4.0.3) ---------- */
.afp, .afp * { box-sizing: border-box; }
.afp img { max-width: 100%; }
.afp .afp-toolbar { grid-template-columns: minmax(0, 1fr); }
.afp-fact > div, .afp-toolbar > *, .afp-dgrid > *, .afp-grid > *, .afp-facts > *, .afp-dash__grid > *, .afp-cards2 > * { min-width: 0; }
.afp-gallery, .afp-gallery__stage, .afp-gallery__thumbs, .afp-panel { max-width: 100%; }
.afp-gallery__stage img { width: 100%; height: auto; }
.afp-fact b, .afp-fact small, .afp-dhead h1, .afp-dhead__title, .afp-card__title { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .afp .afp-dgrid { grid-template-columns: minmax(0, 1fr) !important; }
  .afp .afp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .afp .afp-grid, .afp .afp-grid--3 { grid-template-columns: minmax(0, 1fr) !important; }
  .afp .afp-range { display: flex; align-items: center; gap: 6px; width: 100%; }
  .afp .afp-range input { flex: 1 1 0; width: auto !important; min-width: 0; }
  .afp .afp-gallery { padding: 8px; }
  .afp .afp-gallery__thumbs button { width: 66px; height: 46px; }
  .afp .afp-panel { padding-left: 16px; padding-right: 16px; }
  .afp .afp-dhead h1, .afp-dhead .afp-dhead__title { font-size: 24px; }
  .afp .afp-gallery__tools { flex-wrap: wrap; }
}

/* ---------- SEO landing pages, breadcrumbs, type links (v4.1.0) ---------- */
.afp .afp-dhead__title { margin: 6px 0 10px; line-height: 1.15; }
.afp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.afp-crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted) !important; }
.afp-crumbs a:hover { color: var(--brand) !important; }
.afp-crumbs .afp-ic { width: 15px; height: 15px; }
.afp-crumbs [aria-current] { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.afp-hublinks { margin: 26px 0 6px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.afp-hublinks h2 { margin: 0 0 12px !important; font-size: 16px !important; font-weight: 800; color: var(--ink); }
.afp-hublinks > div { display: flex; flex-wrap: wrap; gap: 8px; }
.afp-hublinks .afp-chip { color: #334155 !important; }
.afp-hublinks .afp-chip:hover { border-color: var(--brand); color: var(--brand) !important; }
.afp-hub__intro { position: relative; overflow: hidden; padding: 26px 28px; margin: 6px 0 24px; border-radius: 22px; color: #e2e8f0; background: radial-gradient(120% 140% at 0% 0%, #1e3a8a 0%, #0b1220 55%); }
.afp-hub__intro--mi { background: radial-gradient(120% 140% at 0% 0%, #5b21b6 0%, #0b1220 58%); }
.afp-hub__intro p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.65; color: #cbd5e1; max-width: 860px; }
.afp-hub__intro strong { color: #fff; }
.afp-hub__intro .afp-eyebrow { margin-bottom: 4px; }
.afp-hub__points { list-style: none; margin: 16px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.afp-hub__points li { display: flex; align-items: center; gap: 8px; margin: 0 !important; font-weight: 600; color: #fff; font-size: 14px; }
.afp-hub__points .afp-ic { width: 17px; height: 17px; color: #34d399; flex: none; }
.afp-hub__h2 { margin: 30px 0 14px !important; font-size: 21px !important; font-weight: 800; color: var(--ink); }
.afp-hub__how ol { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.afp-hub__how li { display: flex; gap: 12px; margin: 0 !important; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.afp-hub__how li > b { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #eef3ff; color: var(--brand); font-weight: 800; }
.afp-hub__how h3 { margin: 2px 0 4px !important; font-size: 15px !important; font-weight: 700; color: var(--ink); }
.afp-hub__how p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.afp-hub__faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; }
.afp-hub__faq summary { cursor: pointer; padding: 15px 0; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.afp-hub__faq summary::-webkit-details-marker { display: none; }
.afp-hub__faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--brand); }
.afp-hub__faq details[open] summary::after { content: "–"; }
.afp-hub__faq details p { margin: 0 0 16px; color: #475569; line-height: 1.65; }
.afp-hub__cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding: 22px 24px; border-radius: 18px; background: linear-gradient(135deg, #eef3ff, #f5efff); border: 1px solid #dfe6ff; }
.afp-hub__cta h2 { margin: 0 0 4px !important; font-size: 19px !important; font-weight: 800; color: var(--ink); }
.afp-hub__cta p { margin: 0; color: var(--muted); }
.afp-empty__act { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 900px) { .afp-hub__how ol { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .afp-hub__intro { padding: 20px 18px; border-radius: 18px; }
  .afp-hub__points { grid-template-columns: minmax(0, 1fr); }
  .afp-hublinks { padding: 16px; }
}
/* ---------- Key details on phones (v4.1.1): icon on top, full text, no "..." ---------- */
@media (max-width: 640px) {
  .afp .afp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .afp .afp-fact { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .afp .afp-fact > span { width: 30px; height: 30px; }
  .afp .afp-fact small { font-size: 11.5px; white-space: normal; }
  .afp .afp-fact b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; font-size: 14px; line-height: 1.35; }
}
/* v4.3.0 privacy note + editor buttons on the sell form */
.afp-privacy-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(16,185,129,.08), rgba(37,99,235,.08)); border: 1px solid rgba(16,185,129,.25); }
.afp-privacy-note > .afp-ic, .afp-privacy-note > svg { width: 22px; height: 22px; color: #059669; flex: none; margin-top: 2px; }
.afp-privacy-note b { display: block; color: var(--ink, #0b1220); margin-bottom: 2px; }
.afp-privacy-note span { color: var(--muted, #5b6478); font-size: 14px; line-height: 1.55; }
.afp-privacy-note span b { display: inline; margin: 0; }
.afp-shot .afpe-editbtn { left: 6px; bottom: 6px; }/* v4.3.0 auto featured images on cards: show the whole 1200x630 design */
.afp-card__media.afp-card__media--cover { aspect-ratio: 1200 / 630; }
.afp-card__media--cover img { object-fit: cover; object-position: center; }
.afp-card__media--cover .afp-card__shade { display: none; }
.afp-card__media--cover .afp-card__badge { display: none; }
.afp-card__media--cover .afp-pill--new { top: auto; left: auto; right: 10px; bottom: 10px; }/* v4.3.1 swipe between screenshots (gallery + full screen) */
.afp-swipe { touch-action: pan-y; -webkit-user-select: none; user-select: none; overflow: hidden; }
.afp-lb.afp-swipe { touch-action: none; }
.afp-swipe img { -webkit-user-drag: none; will-change: transform; }
.afp-gallery__stage.afp-swipe.is-dragging, .afp-lb.is-dragging { cursor: grabbing; }
.afp-lb img { transform-origin: 50% 80%; }/* v4.3.2 screenshot slider: real track, modern arrows, arrows below the image on phones */
.afp-vp { position: relative; overflow: hidden; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.afp-track { display: flex; width: 100%; height: 100%; will-change: transform; backface-visibility: hidden; }
.afp-slide { flex: 0 0 100%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.afp-slide img { -webkit-user-drag: none; pointer-events: none; }
.afp-vp.is-dragging { cursor: grabbing; }
.afp .afp-gallery__stage.afp-vp .afp-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.afp-gallery__stage.afp-vp { position: relative; }
.afp-gallery .afp-gallery__nav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); box-shadow: 0 10px 28px -10px rgba(15,23,42,.45); color: #0b1220; transition: transform .2s ease, opacity .2s ease, background .2s ease; opacity: .0; z-index: 3; }
.afp-gallery:hover .afp-gallery__nav, .afp-gallery .afp-gallery__nav:focus-visible { opacity: 1; }
.afp-gallery .afp-gallery__nav:hover { background: #fff; transform: scale(1.08); }
.afp-gallery .afp-gallery__nav:disabled { opacity: 0 !important; pointer-events: none; }
.afp-gallery__stage.afp-vp ~ .afp-gallery__nav { position: absolute; }
.afp-sbar { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.afp-sbtn { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 1px solid var(--line, #e6e9f2); background: #fff; color: var(--ink, #0b1220); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 0 6px 18px -10px rgba(15,23,42,.35); transition: transform .15s ease, background .2s ease, opacity .2s ease; -webkit-tap-highlight-color: transparent; }
.afp-sbtn:active { transform: scale(.92); }
.afp-sbtn:not(:disabled):hover { background: var(--brand, #2563eb); color: #fff; border-color: transparent; }
.afp-sbtn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.afp-sbar__mid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.afp-dots { display: flex; gap: 6px; align-items: center; }
.afp-dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(15,23,42,.2); transition: width .3s ease, background .3s ease; cursor: pointer; }
.afp-dots i.is-on { width: 22px; background: var(--brand, #2563eb); }
.afp-sbar__n { font-size: 12px; font-weight: 700; color: var(--muted, #5b6478); letter-spacing: .02em; }
/* full screen viewer */
.afp-lb { padding: 0 !important; }
.afp-lb__vp { position: absolute; inset: 0; touch-action: none; }
.afp-lb .afp-slide { padding: 64px 96px; }
.afp-lb .afp-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.afp-lb__x { z-index: 3; }
.afp-lb .afp-lb__nav { z-index: 3; top: calc(50% - 28px); width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .2s ease, transform .2s ease, opacity .2s ease; }
.afp-lb .afp-lb__nav:hover { background: rgba(255,255,255,.26); transform: scale(1.06); }
.afp-lb .afp-lb__nav:disabled { opacity: .25; pointer-events: none; }
.afp-lb .afp-lb__nav.prev { left: 22px; }
.afp-lb .afp-lb__nav.next { right: 22px; }
.afp-lb__count { z-index: 3; bottom: 22px; background: rgba(255,255,255,.1); padding: 6px 12px; border-radius: 99px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.afp-sbar--dark { position: absolute; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 4; margin: 0; padding: 8px; border-radius: 99px; background: rgba(15,18,30,.55); border: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.afp-sbar--dark .afp-sbtn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.afp-sbar--dark .afp-dots i { background: rgba(255,255,255,.3); }
.afp-sbar--dark .afp-dots i.is-on { background: #fff; }
.afp-sbar--dark .afp-sbar__n { color: #e2e8f0; }
@media (max-width: 780px) {
  .afp-gallery .afp-gallery__nav { display: none !important; }
  .afp-gallery .afp-sbar { display: flex; }
  .afp-gallery__count { display: none; }
  .afp-lb .afp-lb__nav, .afp-lb__count { display: none !important; }
  .afp-lb .afp-sbar--dark { display: flex; }
  .afp-lb .afp-slide { padding: 64px 12px 100px; }
}.afp-lb { background: rgba(5, 8, 18, .96); }
/* v4.4.0 avatars: picker + gender choice on sign-up */
.afp-avpick { margin: 14px 0 12px; }
.afp-avpick__row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.afp-avpick__row > small { width: 52px; flex: none; font-size: 11.5px; font-weight: 700; color: var(--muted, #5b6478); text-transform: uppercase; letter-spacing: .04em; }
.afp-avpick__grid { display: flex; flex-wrap: wrap; gap: 8px; }
.afp-avpick__opt { position: relative; cursor: pointer; border-radius: 50%; padding: 3px; border: 2px solid transparent; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; line-height: 0; }
.afp-avpick__opt input { position: absolute; opacity: 0; pointer-events: none; }
.afp-avpick__opt img { width: 52px; height: 52px; border-radius: 50%; display: block; }
.afp-avpick__opt:hover { transform: translateY(-2px) scale(1.05); }
.afp-avpick__opt:has(input:checked) { border-color: var(--brand, #2563eb); box-shadow: 0 6px 16px -6px rgba(37,99,235,.55); }
.afp-avpick__opt:has(input:checked)::after { content: "✓"; position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand, #2563eb); color: #fff; font: 700 12px/20px Inter, Arial, sans-serif; text-align: center; border: 2px solid #fff; }
.afp-avpick__opt input:focus-visible + img { outline: 2px solid var(--brand, #2563eb); outline-offset: 3px; }
.afp-gender { display: flex; gap: 10px; }
.afp-gender__opt { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1.5px solid var(--line, #e6e9f2); border-radius: 12px; cursor: pointer; font-weight: 600; transition: border-color .15s ease, background .15s ease; }
.afp-gender__opt input { position: absolute; opacity: 0; pointer-events: none; }
.afp-gender__opt img { width: 34px; height: 34px; border-radius: 50%; }
.afp-gender__opt:has(input:checked) { border-color: var(--brand, #2563eb); background: rgba(37,99,235,.06); color: var(--brand, #2563eb); }
.afp-gender__opt:has(input:focus-visible) { outline: 2px solid var(--brand, #2563eb); outline-offset: 2px; }
@media (max-width: 480px) { .afp-avpick__opt img { width: 46px; height: 46px; } .afp-avpick__row { align-items: flex-start; flex-direction: column; gap: 6px; } }.afp-avpick__row { flex-direction: column; align-items: flex-start; gap: 6px; }
.afp-avpick__row > small { width: auto; }
.afp-avpick__grid { gap: 6px; }
.afp-avpick__opt img { width: 44px; height: 44px; }

/* v4.4.1 slider arrows — always visible on white and dark images */
.afp .afp-gallery .afp-gallery__nav { opacity: 1 !important; width: 50px !important; height: 50px !important; border-radius: 50% !important; padding: 0 !important; border: 2px solid rgba(255,255,255,.95) !important; background: rgba(11,18,32,.72) !important; color: #fff !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 26px -8px rgba(11,18,32,.55), 0 0 0 1px rgba(11,18,32,.08) !important; display: flex !important; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s ease, opacity .2s ease, box-shadow .2s ease; z-index: 4; }
.afp .afp-gallery .afp-gallery__nav svg { width: 24px; height: 24px; stroke-width: 2.6; }
.afp .afp-gallery .afp-gallery__nav.prev { left: 22px !important; }
.afp .afp-gallery .afp-gallery__nav.next { right: 22px !important; }
.afp .afp-gallery .afp-gallery__nav:hover { background: linear-gradient(135deg, #2563eb, #7c3aed) !important; transform: scale(1.1); box-shadow: 0 14px 30px -8px rgba(37,99,235,.6) !important; }
.afp .afp-gallery .afp-gallery__nav:active { transform: scale(.94); }
.afp .afp-gallery .afp-gallery__nav:disabled { opacity: 0 !important; pointer-events: none; transform: scale(.8); }
.afp .afp-gallery .afp-gallery__nav:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.afp-lb .afp-lb__nav { width: 60px !important; height: 60px !important; border-radius: 50% !important; padding: 0 !important; border: 0 !important; background: #fff !important; color: #0b1220 !important; box-shadow: 0 16px 40px -10px rgba(0,0,0,.7), 0 0 0 6px rgba(255,255,255,.12) !important; display: flex !important; align-items: center; justify-content: center; transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s ease, color .2s ease, opacity .2s ease; }
.afp-lb .afp-lb__nav svg { width: 26px; height: 26px; stroke-width: 2.6; }
.afp-lb .afp-lb__nav.prev { left: 28px !important; }
.afp-lb .afp-lb__nav.next { right: 28px !important; }
.afp-lb .afp-lb__nav:hover { background: linear-gradient(135deg, #2563eb, #7c3aed) !important; color: #fff !important; transform: scale(1.1); }
.afp-lb .afp-lb__nav:disabled { opacity: 0 !important; pointer-events: none; }
.afp-lb .afp-lb__x { width: 46px !important; height: 46px !important; background: rgba(255,255,255,.14) !important; border: 1px solid rgba(255,255,255,.25) !important; }
.afp-lb .afp-lb__x:hover { background: #fff !important; color: #0b1220 !important; }
.afp-lb__count { font-size: 13px; color: #fff !important; background: rgba(255,255,255,.14) !important; border: 1px solid rgba(255,255,255,.18); padding: 7px 14px !important; }
@media (max-width: 780px) { .afp .afp-gallery .afp-gallery__nav, .afp-lb .afp-lb__nav { display: none !important; } }

/* v4.6.0 interactive hero: cursor spotlight, particles, click bursts */
.afp-hero { --mx: 50%; --my: 35%; --px: 0; --py: 0; padding: 72px 28px 34px; background: #05081a; }
.afp-hero__mesh { background: none; overflow: hidden; }
.afp-hero__mesh i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .75; will-change: transform; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.afp-hero__mesh .b1 { width: 520px; height: 360px; left: -8%; top: -18%; background: radial-gradient(circle, rgba(37,99,235,.85), transparent 65%); animation: afpBlob1 16s ease-in-out infinite alternate; transform: translate(calc(var(--px) * -28px), calc(var(--py) * -20px)); }
.afp-hero__mesh .b2 { width: 480px; height: 380px; right: -10%; top: -10%; background: radial-gradient(circle, rgba(124,58,237,.8), transparent 65%); animation: afpBlob2 19s ease-in-out infinite alternate; transform: translate(calc(var(--px) * 30px), calc(var(--py) * -24px)); }
.afp-hero__mesh .b3 { width: 560px; height: 300px; left: 30%; bottom: -30%; background: radial-gradient(circle, rgba(6,182,212,.5), transparent 65%); animation: afpBlob3 22s ease-in-out infinite alternate; transform: translate(calc(var(--px) * -18px), calc(var(--py) * 26px)); }
@keyframes afpBlob1 { to { margin-left: 8%; margin-top: 6%; } }
@keyframes afpBlob2 { to { margin-right: 10%; margin-top: 8%; } }
@keyframes afpBlob3 { to { margin-left: -12%; margin-bottom: 6%; } }
.afp-hero__mesh::after { z-index: 1; background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(260px circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,.55) 40%, transparent 72%), radial-gradient(ellipse at center, rgba(0,0,0,.55) 20%, transparent 70%);
  mask-image: radial-gradient(260px circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,.55) 40%, transparent 72%), radial-gradient(ellipse at center, rgba(0,0,0,.55) 20%, transparent 70%);
  background-image: linear-gradient(rgba(148,163,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,255,.12) 1px, transparent 1px); }
.afp-hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(129,140,248,.32), rgba(59,130,246,.12) 40%, transparent 70%); }
.afp-hero.is-hover .afp-hero__glow { opacity: 1; }
.afp-hero__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: block; }
.afp-hero__ring { position: absolute; left: 0; top: 0; z-index: 2; width: 36px; height: 36px; border-radius: 50%; pointer-events: none; border: 1.5px solid rgba(255,255,255,.55); box-shadow: 0 0 18px rgba(129,140,248,.55), inset 0 0 10px rgba(129,140,248,.35); opacity: 0; transition: opacity .3s ease, width .25s ease, height .25s ease, border-color .25s ease, margin .25s ease; }
.afp-hero.is-hover .afp-hero__ring { opacity: 1; }
.afp-hero__ring.is-link { width: 54px; height: 54px; margin: -9px 0 0 -9px; border-color: rgba(240,171,252,.8); background: rgba(240,171,252,.08); }
.afp-hero__ring.is-click { animation: afpRingPop .45s ease-out; }
@keyframes afpRingPop { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6), 0 0 18px rgba(129,140,248,.55); } 100% { box-shadow: 0 0 0 26px rgba(255,255,255,0), 0 0 18px rgba(129,140,248,.55); } }
.afp-hero.is-fx { cursor: crosshair; }
.afp-hero.is-fx a, .afp-hero.is-fx button { cursor: pointer; }
.afp-hero.is-fx input { cursor: text; }
.afp-hero__in { position: relative; z-index: 3; }
.afp-hero .afp-eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 24px rgba(99,102,241,.25); }
.afp-hero .afp-eyebrow .afp-ic { color: #6ee7b7; }
.afp-hero__title { letter-spacing: -.025em; text-shadow: 0 10px 40px rgba(37,99,235,.25); }
.afp-hero__title span { background: linear-gradient(90deg, #60a5fa, #a5f3fc, #60a5fa); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: afpShine 5s linear infinite; }
.afp-hero__title span.mi { background: linear-gradient(90deg, #c4b5fd, #f0abfc, #c4b5fd); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; animation-delay: -2.5s; }
@keyframes afpShine { to { background-position: 200% center; } }
.afp-hero__search { position: relative; isolation: isolate; transition: transform .25s ease, box-shadow .25s ease; }
.afp-hero__search::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 18px; background: conic-gradient(from var(--afp-a, 0deg), #60a5fa, #a78bfa, #f0abfc, #22d3ee, #60a5fa); opacity: .55; filter: blur(.5px); transition: opacity .3s ease; animation: afpSpin 6s linear infinite; }
.afp-hero__search::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 16px; background: #fff; }
.afp-hero__search:hover, .afp-hero__search:focus-within { transform: translateY(-2px); box-shadow: 0 26px 60px -18px rgba(99,102,241,.65); }
.afp-hero__search:focus-within::before { opacity: 1; }
@property --afp-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes afpSpin { to { --afp-a: 360deg; } }
.afp-stat { position: relative; overflow: hidden; isolation: isolate; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .3s ease, background .3s ease; }
.afp-stat::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease; background: radial-gradient(160px circle at var(--sx, 50%) var(--sy, 50%), rgba(129,140,248,.35), transparent 70%); }
.afp-stat:hover { transform: translateY(-4px); border-color: rgba(165,180,252,.45); background: rgba(255,255,255,.08); }
.afp-stat:hover::before { opacity: 1; }
.afp-stat b { background: linear-gradient(180deg, #fff, #c7d2fe); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 780px) {
  .afp-hero { padding: 48px 16px 22px; }
  .afp-hero__mesh i { filter: blur(44px); }
  .afp-hero__ring { display: none; }
  .afp-hero.is-fx { cursor: default; }
}
@media (prefers-reduced-motion: reduce) {
  .afp-hero__mesh i, .afp-hero__title span, .afp-hero__search::before { animation: none !important; }
}

/* v4.7.0 cards: round heart button + ZIP button */
.afp .afp-card .afp-fav { width: 38px !important; height: 38px !important; min-width: 38px !important; min-height: 38px !important; max-width: 38px !important; padding: 0 !important; border-radius: 50% !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; line-height: 1 !important; }
.afp .afp-card .afp-fav svg { width: 18px; height: 18px; }
.afp-gallery__tools { flex-wrap: wrap; }
.afp-zipbtn { box-shadow: 0 8px 18px -8px rgba(37,99,235,.6); }

/* v4.9.0 zoom in the full-screen viewer */
.afp-lb .afp-slide img { cursor: zoom-in; transform-origin: 50% 50%; will-change: transform; }
.afp-lb.is-zoomed .afp-slide img { cursor: grab; }
.afp-lb.is-zoomed .afp-slide img:active { cursor: grabbing; }
.afp-zoom { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 99px; background: rgba(15,18,30,.6); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.afp-zoom button { min-width: 40px; height: 36px; padding: 0 10px !important; margin: 0 !important; border: 0 !important; border-radius: 99px !important; background: transparent !important; color: #fff !important; font: 700 18px/1 Inter, Arial, sans-serif !important; cursor: pointer; transition: background .15s ease; box-shadow: none !important; }
.afp-zoom button[data-afp-z="pct"] { font-size: 12.5px !important; min-width: 58px; background: rgba(255,255,255,.1) !important; }
.afp-zoom button:hover { background: rgba(255,255,255,.22) !important; }
.afp-lb.is-zoomed .afp-zoom button[data-afp-z="pct"] { background: linear-gradient(135deg, #2563eb, #7c3aed) !important; }
.afp-lb.is-zoomed .afp-lb__nav { opacity: .35 !important; }
@media (max-width: 780px) {
  .afp-zoom { left: 14px; transform: none; top: calc(14px + env(safe-area-inset-top)); }
  .afp-zoom button { min-width: 38px; height: 34px; }
}