@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Bricolage+Grotesque:opsz,wght@12..96,400;600;700;800&display=swap');

/* ============================================================
   CortexHub Platform — plugin CSS
   Auth pages, launch flow, checkout, promo banner,
   header avatar dropdown, identity components
============================================================ */
:root {
  --chp-accent:  #1a5cff;
  --chp-ink:     #0a0e1a;
  --chp-ink-2:   #2d3249;
  --chp-ink-3:   #5c6280;
  --chp-border:  #e4e7f2;
  --chp-surface: #fff;
  --chp-bg:      #f0f2f9;
  --chp-green:   #0cb870;
  --chp-red:     #e53e3e;
  --chp-font:    'Plus Jakarta Sans','DM Sans',-apple-system,BlinkMacSystemFont,sans-serif;
  --chp-radius:  12px;
  --chp-t:       .16s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════════════════════════
   AUTH PAGES
══════════════════════════════════════════════════════════ */
.chp-auth-page {
  min-height: 100vh; background: var(--chp-bg);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; font-family: var(--chp-font);
}
.chp-auth-split {
  display: grid; grid-template-columns: 480px 380px; gap: 0;
  background: var(--chp-surface); border-radius: var(--chp-radius);
  box-shadow: 0 24px 80px rgba(10,14,26,.14); overflow: hidden;
  max-width: 860px; width: 100%;
}
.chp-auth-card {
  background: var(--chp-surface); border-radius: var(--chp-radius);
  padding: 44px 40px; width: 100%; max-width: 480px; box-sizing: border-box;
  box-shadow: 0 24px 80px rgba(10,14,26,.12);
}
.chp-auth-split .chp-auth-card { border-radius: 0; box-shadow: none; border-right: 1px solid var(--chp-border); }
.chp-auth-logo { font-family: 'Syne',sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--chp-ink); text-decoration: none; letter-spacing: -.04em; display: block; margin-bottom: 32px; }
.chp-auth-logo span { color: var(--chp-accent); }
.chp-auth-title { font-family: 'Syne',sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--chp-ink); margin: 0 0 8px; letter-spacing: -.03em; }
.chp-auth-sub { font-size: .95rem; color: var(--chp-ink-3); margin: 0 0 24px; }
.chp-auth-perks { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chp-auth-perks span { font-size: .8rem; font-weight: 600; color: var(--chp-green); background: #eafff6; padding: 4px 10px; border-radius: 999px; }
.chp-auth-switch { text-align: center; font-size: .88rem; color: var(--chp-ink-3); margin-top: 20px; }
.chp-auth-switch a { color: var(--chp-accent); font-weight: 600; text-decoration: none; }
.chp-auth-terms { font-size: .75rem; color: var(--chp-ink-3); text-align: center; margin-top: 12px; }
.chp-auth-terms a { color: var(--chp-accent); }
.chp-auth-proof { background: linear-gradient(135deg,#0a0e1a,#1a1e30); padding: 44px 32px; display: flex; align-items: center; }
.chp-auth-proof__inner { width: 100%; }
.chp-auth-proof__stat { margin-bottom: 20px; }
.chp-auth-proof__stat strong { display: block; font-family: 'Syne',sans-serif; font-size: 1.8rem; font-weight: 800; color: #fff; }
.chp-auth-proof__stat span { font-size: .82rem; color: rgba(255,255,255,.45); }
.chp-auth-proof__quote { background: rgba(255,255,255,.06); border-radius: var(--chp-radius); padding: 20px; margin-top: 24px; }
.chp-auth-proof__quote p { font-size: .9rem; color: rgba(255,255,255,.75); line-height: 1.65; margin: 0 0 16px; font-style: italic; }
.chp-auth-proof__author { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: rgba(255,255,255,.55); }
.chp-auth-proof__author strong { color: #fff; display: block; }

/* ── Form elements ── */
.chp-form { display: flex; flex-direction: column; gap: 16px; }
.chp-field { display: flex; flex-direction: column; gap: 6px; }
.chp-field label { font-size: .78rem; font-weight: 700; color: var(--chp-ink-2); display: flex; align-items: center; justify-content: space-between; letter-spacing: .01em; }
.chp-field-hint { font-weight: 400; color: var(--chp-ink-3); font-size: .75rem; }
.chp-field-link { font-size: .78rem; color: var(--chp-accent); text-decoration: none; }
/* Ensure good font rendering in all inputs */
.chp-field input, .chp-field select, .chp-field textarea {
  padding: 12px 14px; border: 1.5px solid var(--chp-border); border-radius: 8px;
  font-family: var(--chp-font); font-size: .9rem; color: var(--chp-ink);
  background: var(--chp-surface); outline: none; width: 100%; box-sizing: border-box;
  transition: border-color var(--chp-t), box-shadow var(--chp-t);
}
.chp-field input:focus, .chp-field select:focus, .chp-field textarea:focus {
  border-color: var(--chp-accent); box-shadow: 0 0 0 3px rgba(26,92,255,.1);
}
.chp-field input::placeholder { color: #b0b6ce; }
.chp-pass-wrap { position: relative; }
.chp-pass-wrap input { padding-right: 44px; }
.chp-pass-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--chp-ink-3);
  display: flex; align-items: center; justify-content: center; padding: 4px;
  transition: color var(--chp-t);
}
.chp-pass-toggle:hover { color: var(--chp-ink); }
.chp-checkbox { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--chp-ink-3); cursor: pointer; }
.chp-checkbox input { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Buttons ── */
.chp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border-radius: 8px; font-family: var(--chp-font);
  font-size: .875rem; font-weight: 700; cursor: pointer;
  text-decoration: none; border: none; transition: all var(--chp-t); white-space: nowrap;
  min-height: 44px;
}
.chp-btn--primary { background: var(--chp-accent); color: #fff; }
.chp-btn--primary:hover { background: #1448d8; color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,92,255,.35); }
.chp-btn--secondary { background: #f0f2f9; color: var(--chp-ink-2); border: 1px solid var(--chp-border); }
.chp-btn--secondary:hover { background: #eaefff; border-color: var(--chp-accent); color: var(--chp-accent); }
.chp-btn--ghost { background: transparent; color: var(--chp-accent); border: 1.5px solid #c3d0ff; }
.chp-btn--ghost:hover { background: #eaefff; }
.chp-btn--full { width: 100%; }
.chp-btn--lg { padding: 14px 28px; font-size: .95rem; }
.chp-btn--sm { padding: 7px 14px; font-size: .78rem; min-height: 36px; }

/* ── Alerts ── */
.chp-alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 8px; font-size: .88rem; margin-bottom: 4px; }
.chp-alert--success { background: #eafff6; border: 1px solid rgba(12,184,112,.3); color: #065f46; }
.chp-alert--error   { background: #fff0f0; border: 1px solid rgba(229,62,62,.3); color: #991b1b; }
.chp-alert--info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.chp-alert--warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* ══════════════════════════════════════════════════════════
   HEADER AVATAR + DROPDOWN
══════════════════════════════════════════════════════════ */
.chp-header-avatar-wrap { position: relative; margin-left: 8px; }
.chp-header-avatar-btn {
  display: flex; align-items: center; gap: 8px; background: none;
  border: none; cursor: pointer; padding: 4px; border-radius: 999px;
  transition: background var(--chp-t);
}
.chp-header-avatar-btn:hover { background: rgba(255,255,255,.06); }
.chp-header-avatar-img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.2); display: block;
}
.chp-header-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--chp-surface); border: 1px solid var(--chp-border);
  border-radius: var(--chp-radius); min-width: 220px;
  box-shadow: 0 16px 48px rgba(10,14,26,.15); z-index: 2000;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--chp-t); overflow: hidden;
}
.chp-header-dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.chp-header-dropdown__user { padding: 16px; border-bottom: 1px solid var(--chp-border); }
.chp-header-dropdown__name { font-weight: 700; font-size: .88rem; color: var(--chp-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chp-header-dropdown__email { font-size: .76rem; color: var(--chp-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chp-header-dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  font-size: .85rem; color: var(--chp-ink-2); text-decoration: none;
  transition: all var(--chp-t); font-weight: 500;
}
.chp-header-dropdown a:hover { background: #f7f8fc; color: var(--chp-accent); }
.chp-header-dropdown a.chp-dropdown-logout { color: #e53e3e; border-top: 1px solid var(--chp-border); }
.chp-header-dropdown a.chp-dropdown-logout:hover { background: #fff0f0; }
.chp-notif-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #e53e3e;
  margin-left: auto; flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   LAUNCH PAGE
══════════════════════════════════════════════════════════ */
.chp-launch-hero { background: linear-gradient(135deg,#0a0e1a 0%,#1a1e30 100%); padding: 80px 0 60px; text-align: center; }
.chp-launch-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(26,92,255,.2); color: #93b4ff; border: 1px solid rgba(26,92,255,.3); border-radius: 999px; padding: 6px 16px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px; }
.chp-launch-hero__title { font-family: 'Syne',sans-serif; font-size: clamp(2rem,5vw,3.5rem); font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -.04em; margin-bottom: 16px; }
.chp-launch-hero__title .accent { color: var(--chp-accent); }
.chp-launch-hero__sub { font-size: 1.1rem; color: rgba(255,255,255,.6); max-width: 560px; margin: 0 auto 32px; line-height: 1.7; }
.chp-launch-stats { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; margin-top: 24px; }
.chp-launch-stat { text-align: center; }
.chp-launch-stat strong { display: block; font-family: 'Syne',sans-serif; font-size: 1.6rem; font-weight: 800; color: #fff; }
.chp-launch-stat span { font-size: .78rem; color: rgba(255,255,255,.4); }
.chp-launch-benefits { padding: 64px 0; background: var(--chp-surface); }
.chp-benefits-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 20px; margin-top: 40px; }
.chp-benefit { background: #f7f8fc; border-radius: var(--chp-radius); padding: 24px; border: 1px solid var(--chp-border); }
.chp-benefit__icon { font-size: 1.5rem; margin-bottom: 12px; }
.chp-benefit__title { font-family: 'Syne',sans-serif; font-size: .95rem; font-weight: 700; color: var(--chp-ink); margin-bottom: 6px; }
.chp-benefit__desc { font-size: .85rem; color: var(--chp-ink-3); line-height: 1.6; }

/* ── Launch flow steps ── */
.chp-launch-flow { max-width: 700px; margin: 0 auto; padding: 36px 16px 80px; }
.chp-step-indicator { display: flex; align-items: center; margin-bottom: 32px; overflow-x: auto; scrollbar-width: none; }
.chp-step-indicator::-webkit-scrollbar { display: none; }
.chp-step-dot { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .76rem; font-weight: 800; flex-shrink: 0; transition: all var(--chp-t); font-family: 'Bricolage Grotesque', var(--chp-font); }
.chp-step-dot--active { background: linear-gradient(135deg, #4f6ef7, #3d5be0); color: #fff; box-shadow: 0 0 0 5px rgba(79,110,247,.15); }
.chp-step-dot--done { background: var(--chp-green); color: #fff; }
.chp-step-dot--pending { background: #f0f2f9; color: #b0b6ce; border: 1.5px solid #e4e7f2; }
.chp-step-line { flex: 1; height: 2px; background: var(--chp-border); margin: 0 4px; }
.chp-step-line--done { background: var(--chp-green); }
.chp-step-card { background: var(--chp-surface); border: 1px solid var(--chp-border); border-radius: 20px; padding: 32px; box-shadow: 0 4px 24px rgba(10,14,26,.06); }
.chp-step-card__title { font-family: 'Bricolage Grotesque', 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; letter-spacing: -.04em; color: var(--chp-ink); margin-bottom: 6px; line-height: 1.2; }
.chp-step-card__sub { font-size: .88rem; color: var(--chp-ink-3); margin-bottom: 24px; line-height: 1.6; }
.chp-step-nav { display: flex; justify-content: space-between; margin-top: 24px; gap: 12px; }

/* ── Packages ── */
.chp-packages { display: flex; flex-direction: column; gap: 14px; }
.chp-package-option { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: #f7f8fc; border: 2px solid var(--chp-border); border-radius: 12px; cursor: pointer; transition: all var(--chp-t); position: relative; }
.chp-package-option:has(input:checked),.chp-package-option.is-selected { border-color: var(--chp-accent); background: #eaefff; }
.chp-package-option input[type=radio] { margin-top: 2px; flex-shrink: 0; }
.chp-package-option__name { font-weight: 700; font-size: .95rem; color: var(--chp-ink); }
.chp-package-option__price { font-family: 'Syne',sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--chp-accent); margin-left: auto; flex-shrink: 0; }
.chp-package-option__desc { font-size: .82rem; color: var(--chp-ink-3); margin-top: 3px; }
.chp-package-option__badge { position: absolute; top: -10px; right: 14px; background: var(--chp-accent); color: #fff; font-size: .65rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; }
.chp-addons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.chp-addon-option { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #f7f8fc; border: 1.5px solid var(--chp-border); border-radius: 8px; cursor: pointer; transition: all var(--chp-t); }
.chp-addon-option:has(input:checked) { border-color: var(--chp-accent); background: #eaefff; }
.chp-addon-option label { font-size: .82rem; font-weight: 600; color: var(--chp-ink-2); cursor: pointer; flex: 1; }
.chp-addon-price { font-size: .78rem; color: var(--chp-accent); font-weight: 700; margin-left: auto; }

/* ── Checkout ── */
.chp-checkout-summary { background: #f7f8fc; border-radius: var(--chp-radius); padding: 20px; margin-bottom: 20px; }
.chp-checkout-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: .88rem; color: var(--chp-ink-3); }
.chp-checkout-row--total { font-size: 1.05rem; font-weight: 800; color: var(--chp-ink); border-top: 1.5px solid var(--chp-border); padding-top: 12px; margin-top: 6px; }
.chp-checkout-row--discount { color: var(--chp-green); }
.chp-coupon-row { display: flex; gap: 8px; margin-bottom: 16px; }
.chp-coupon-row input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--chp-border); border-radius: 8px; font-size: .88rem; font-family: var(--chp-font); outline: none; }
.chp-coupon-row input:focus { border-color: var(--chp-accent); }
.chp-gateway-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.chp-gateway-tab { flex: 1; padding: 12px 8px; border: 2px solid var(--chp-border); border-radius: 8px; font-size: .82rem; font-weight: 600; color: var(--chp-ink-3); cursor: pointer; text-align: center; transition: all var(--chp-t); background: var(--chp-surface); }
.chp-gateway-tab.is-active { border-color: var(--chp-accent); color: var(--chp-accent); background: #eaefff; }
.chp-gateway-icon { font-size: 1.2rem; display: block; margin-bottom: 4px; }
.chp-import-bar { display: flex; gap: 8px; margin-bottom: 20px; }
.chp-import-bar input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--chp-border); border-radius: 8px; font-size: .88rem; font-family: var(--chp-font); outline: none; }
.chp-import-bar input:focus { border-color: var(--chp-accent); }

/* ══════════════════════════════════════════════════════════
   PROMO BANNER
══════════════════════════════════════════════════════════ */
/* Old promo styles removed — styles now in inc/promo.php */

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .chp-auth-split { grid-template-columns: 1fr; }
  .chp-auth-proof { display: none; }
  .chp-auth-card { padding: 28px 20px; max-width: 100%; border-radius: 0; box-shadow: none; }
  .chp-auth-page { padding: 0; background: var(--chp-surface); min-height: 100dvh; }
  .chp-launch-hero { padding: 48px 0 40px; }
  .chp-benefits-grid { grid-template-columns: 1fr; }
  .chp-addons { grid-template-columns: 1fr; }
  .chp-gateway-tabs { flex-direction: column; }
  
  
}
@media (max-width: 480px) {
  .chp-step-indicator { overflow-x: auto; padding-bottom: 4px; }
  .chp-launch-stats { gap: 20px; }
}

/* ══════════════════════════════════════════════════════════
   DASHBOARD SHELL (supplements platform CSS in theme)
══════════════════════════════════════════════════════════ */
.chp-dash-shell { display:grid; grid-template-columns:240px 1fr; min-height:calc(100vh - var(--header-h,64px)); background:#f7f8fc; }
.chp-dash-nav { background:#0a0e1a; padding:20px 0; position:sticky; top:var(--header-h,64px); height:calc(100vh - var(--header-h,64px)); overflow-y:auto; scrollbar-width:none; }
.chp-dash-nav::-webkit-scrollbar { display:none; }
.chp-dash-nav__logo { font-family:'Syne',sans-serif; font-size:1.2rem; font-weight:800; color:#fff; text-decoration:none; letter-spacing:-.04em; padding:0 20px; display:block; margin-bottom:20px; }
.chp-dash-nav__logo span { color:#1a5cff; }
.chp-dash-nav__user { display:flex; align-items:center; gap:10px; padding:0 20px 18px; border-bottom:1px solid rgba(255,255,255,.07); margin-bottom:10px; }
.chp-dash-nav__avatar { width:38px; height:38px; border-radius:50%; border:2px solid rgba(255,255,255,.2); flex-shrink:0; }
.chp-dash-nav__user-name { display:block; font-size:.84rem; font-weight:700; color:#fff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chp-dash-nav__user-role { font-size:.7rem; color:rgba(255,255,255,.4); }
.chp-dash-nav__item { display:flex; align-items:center; gap:10px; padding:10px 20px; font-size:.83rem; font-weight:600; color:rgba(255,255,255,.5); text-decoration:none; transition:all .15s; }
.chp-dash-nav__item:hover { color:#fff; background:rgba(255,255,255,.06); }
.chp-dash-nav__item.is-active { color:#fff; background:rgba(26,92,255,.25); border-right:3px solid #1a5cff; }
.chp-dash-nav__item--upgrade { color:#f59e0b !important; }
.chp-dash-nav__item-icon { width:18px; text-align:center; }
.chp-dash-badge { margin-left:auto; background:#e53e3e; color:#fff; font-size:.65rem; font-weight:800; padding:2px 6px; border-radius:999px; }
.chp-dash-nav__footer { padding:16px 20px; border-top:1px solid rgba(255,255,255,.07); margin-top:12px; }
.chp-dash-nav__footer-link { display:block; font-size:.78rem; color:rgba(255,255,255,.3); text-decoration:none; margin-bottom:8px; }
.chp-dash-nav__footer-link:hover { color:rgba(255,255,255,.6); }
.chp-dash-main { padding:32px; overflow-x:hidden; min-width:0; }
.chp-dash-title { font-family:'Syne',sans-serif; font-size:clamp(1.3rem,2.5vw,1.8rem); font-weight:800; color:#0a0e1a; margin-bottom:8px; letter-spacing:-.03em; }
.chp-dash-launch-cta { background:linear-gradient(135deg,#eaefff,#fff); border:1.5px solid rgba(26,92,255,.2); border-radius:16px; padding:28px 32px; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:28px; }
.chp-dash-launch-cta h3 { font-size:1.05rem; font-weight:800; color:#0a0e1a; margin-bottom:6px; }
.chp-dash-launch-cta p { font-size:.88rem; color:#5c6280; margin:0; }
.chp-dash-overview-grid { display:grid; grid-template-columns:1fr repeat(3,auto); gap:14px; margin-bottom:24px; align-items:stretch; }
.chp-dash-stat-card { background:#fff; border:1px solid #e4e7f2; border-radius:12px; padding:18px; text-align:center; }
.chp-dash-stat-card--product { display:flex; align-items:center; gap:14px; text-align:left; padding:20px; }
.chp-dash-stat-card__logo { width:40px; height:40px; border-radius:8px; object-fit:contain; border:1px solid #e4e7f2; }
.chp-dash-stat-card__product-name { font-weight:700; font-size:.9rem; color:#0a0e1a; display:block; }
.chp-dash-stat-card__view { font-size:.75rem; color:#1a5cff; text-decoration:none; }
.chp-dash-stat-card__icon { font-size:1.3rem; display:block; margin-bottom:8px; }
.chp-dash-stat-card__value { font-family:'Syne',sans-serif; font-size:1.5rem; font-weight:800; color:#0a0e1a; display:block; line-height:1; margin-bottom:4px; }
.chp-dash-stat-card__label { font-size:.72rem; font-weight:700; color:#9199b8; text-transform:uppercase; letter-spacing:.06em; }
.chp-dash-widget { background:#fff; border:1px solid #e4e7f2; border-radius:12px; overflow:hidden; margin-bottom:18px; }
.chp-dash-widget__head { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-bottom:1px solid #f0f2f9; }
.chp-dash-widget__head h3 { font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.07em; color:#5c6280; margin:0; }
.chp-dash-widget__head a { font-size:.78rem; color:#1a5cff; text-decoration:none; font-weight:600; }
.chp-status-pill { font-size:.68rem; font-weight:800; padding:3px 8px; border-radius:999px; text-transform:uppercase; letter-spacing:.05em; }
.chp-status-pill--publish { background:#eafff6; color:#0cb870; }
.chp-status-pill--pending { background:#fffbeb; color:#d97706; }
.chp-status-pill--draft   { background:#f0f2f9; color:#5c6280; }
.chp-status-pill--private { background:#fff0f0; color:#e53e3e; }
.chp-product-row { display:flex; align-items:center; gap:12px; padding:12px 18px; border-bottom:1px solid #f7f8fc; }
.chp-product-row__logo { width:32px; height:32px; border-radius:6px; object-fit:contain; }
.chp-product-row__info { flex:1; display:flex; align-items:center; gap:10px; }
.chp-notif-item { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:12px 18px; border-bottom:1px solid #f7f8fc; }
.chp-notif-item.is-unread { border-left:3px solid #1a5cff; padding-left:15px; }
.chp-notif-item p { font-size:.86rem; color:#2d3249; margin:0; flex:1; }
.chp-notif-item time { font-size:.73rem; color:#9199b8; white-space:nowrap; }
.chp-founder-row { display:flex; align-items:center; gap:12px; padding:12px 18px; border-bottom:1px solid #f7f8fc; }
.chp-founder-row__info { flex:1; }
.chp-founder-row__name { display:block; font-size:.88rem; font-weight:700; color:#0a0e1a; text-decoration:none; }
.chp-founder-row__title { font-size:.78rem; color:#5c6280; }
.chp-feed-item { display:flex; align-items:flex-start; gap:12px; padding:12px 0; border-bottom:1px solid #f7f8fc; }
.chp-feed-item:last-child { border-bottom:none; }
.chp-feed-item__body { flex:1; }
.chp-feed-item__text { font-size:.88rem; color:#2d3249; margin-bottom:4px; line-height:1.5; }
.chp-feed-item__text a { color:#1a5cff; font-weight:600; text-decoration:none; }
.chp-feed-item__time { font-size:.73rem; color:#9199b8; }
.chp-comment-row { display:flex; gap:12px; padding:12px 18px; border-bottom:1px solid #f7f8fc; }
.chp-comment-row__avatar { flex-shrink:0; }
.chp-comment-row__meta { display:flex; align-items:center; gap:8px; margin-bottom:4px; font-size:.82rem; }
.chp-comment-row__meta strong { color:#0a0e1a; }
.chp-comment-row__meta time { color:#9199b8; }
.chp-comment-row p { font-size:.88rem; color:#2d3249; margin:0 0 6px; }
.chp-upgrade-card { background:#fff; border:1px solid #e4e7f2; border-radius:12px; padding:24px; position:relative; }
.chp-upgrade-card--highlight { background:linear-gradient(135deg,#1a5cff,#1448d8); border:none; box-shadow:0 12px 40px rgba(26,92,255,.3); }
.chp-upgrade-card__badge { position:absolute; top:-11px; left:50%; transform:translateX(-50%); background:#f59e0b; color:#fff; font-size:.63rem; font-weight:800; padding:3px 12px; border-radius:999px; text-transform:uppercase; white-space:nowrap; }
.chp-timeline { display:flex; flex-direction:column; }
.chp-timeline__item { display:flex; gap:14px; padding-bottom:20px; position:relative; }
.chp-timeline__item::before { content:''; position:absolute; left:6px; top:14px; bottom:0; width:1px; background:#e4e7f2; }
.chp-timeline__item:last-child::before { display:none; }
.chp-timeline__dot { width:14px; height:14px; border-radius:50%; background:#1a5cff; flex-shrink:0; margin-top:2px; border:2px solid #fff; box-shadow:0 0 0 1px #1a5cff; }
.chp-timeline__date { font-size:.72rem; font-weight:700; color:#9199b8; text-transform:uppercase; letter-spacing:.06em; display:block; margin-bottom:3px; }
.chp-timeline__title { font-size:.9rem; font-weight:700; color:#0a0e1a; }
.chp-avatar-lg { width:80px; height:80px; border-radius:50%; object-fit:cover; display:block; }
.chp-empty-state { text-align:center; padding:48px 20px; color:#9199b8; }
.chp-code-block { font-family:monospace; font-size:.72rem; }
.chp-chart { display:flex; align-items:flex-end; gap:3px; }
.chp-directory-hero { background:linear-gradient(135deg,#0a0e1a,#1a1e30); padding:48px 0 36px; }

/* ── Mobile dashboard ── */
.chp-dash-mobile-nav { display:none; position:fixed; bottom:0; left:0; right:0; background:linear-gradient(180deg,#0b1730 0%,#081122 100%); border-top:1px solid rgba(255,255,255,.1); z-index:900; padding-bottom:env(safe-area-inset-bottom,0); box-shadow:0 -10px 30px rgba(10,14,26,.18); }
.chp-dash-mobile-item { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; padding:8px 0 6px; flex:1; color:rgba(255,255,255,.86); text-decoration:none; position:relative; min-height:58px; }
.chp-dash-mobile-item__icon, .chp-dash-mobile-more .chp-dash-mobile-item__icon { font-size:1.2rem; line-height:1; display:block; }
.chp-dash-mobile-item__label { display:block; font-size:.62rem; font-weight:700; letter-spacing:.01em; line-height:1.1; }
.chp-dash-mobile-item.is-active { color:#1a5cff; }
.chp-upload-zone { border:2px dashed #e4e7f2; border-radius:12px; cursor:pointer; min-height:80px; display:flex; align-items:center; justify-content:center; transition:all .15s; overflow:hidden; }
.chp-upload-zone:hover { border-color:#1a5cff; background:#f8f9ff; }
.chp-upload-zone__inner { display:flex; flex-direction:column; align-items:center; gap:8px; color:#9199b8; font-size:.82rem; padding:16px; text-align:center; }
.chp-upload-zone--sm { min-height:60px; }

/* ── Responsive dashboard ── */
@media (max-width:900px) {
  .chp-dash-shell { grid-template-columns:1fr; }
  .chp-dash-nav { display:none; }
  .chp-dash-mobile-nav { display:flex; }
  .chp-dash-main { padding:16px 16px 80px; }
  .chp-dash-overview-grid { grid-template-columns:1fr 1fr; }
  .chp-dash-launch-cta { flex-direction:column; }
}
@media (max-width:480px) {
  .chp-dash-overview-grid { grid-template-columns:1fr 1fr; }
}


/* ── Rebuild fixes: tools, single product, launch, dashboard ───────── */
.chp-tools-page{padding:28px 20px 64px}
.chp-tools-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:24px;border-bottom:1px solid #e4e7f2;padding-bottom:16px}
.chp-tools-pills{display:flex;gap:6px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
.chp-tools-pills::-webkit-scrollbar{display:none}
.chp-tools-layout{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr);gap:28px;align-items:start}
.chp-tools-sidebar{position:sticky;top:88px}
.chp-tools-main,.chp-tools-sidebar{min-width:0}
.chp-product-hero{padding:32px 0 28px;border-bottom:1px solid #e4e7f2;margin-bottom:32px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:start}
.chp-product-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:32px;align-items:start}
.cx-product-layout > *,.cx-product-hero > *{min-width:0}
.cx-upvote-btn--lg{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border:1.5px solid #e4e7f2;border-radius:8px;background:#fff;cursor:pointer;font-weight:700;color:#5c6280}
.cx-upvote-btn--lg.is-voted{background:#eaefff;color:#1a5cff}
.cx-product-content,.cx-product-overview__desc,.cx-founder-card__bio,.chp-comment-row p{overflow-wrap:anywhere;word-break:break-word}
.cx-product-video iframe{width:100%!important;max-width:100%;aspect-ratio:16/9;height:auto!important;border-radius:12px}
/* chp-dash-mobile-nav display controlled by 900px breakpoint above */
@media (max-width: 991px){
  .chp-tools-layout{grid-template-columns:1fr}
  .chp-tools-sidebar{position:static;order:2}
  .chp-tools-main{order:1}
  .chp-product-hero{grid-template-columns:1fr}
  .chp-product-layout{grid-template-columns:1fr}
}
@media (max-width: 767px){
  .chp-tools-page{padding:20px 16px 48px}
  .chp-tools-toolbar{align-items:flex-start}
  .chp-tools-toolbar > span{width:100%}
  .chp-tools-pills{width:100%;padding-bottom:4px}
  .cx-product-hero__actions,.chp-product-hero .cx-product-hero__actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
  .cx-product-hero__actions > *{width:100%;justify-content:center}
  .cx-product-hero__title{font-size:clamp(1.8rem,9vw,2.6rem);line-height:1.05}
  .cx-product-hero__desc{font-size:1rem;line-height:1.6}
  .cx-founder-card{display:grid;grid-template-columns:64px 1fr;gap:14px;align-items:start}
  .cx-founder-card__avatar{width:64px;height:64px}
  .chp-dash-shell{grid-template-columns:1fr;min-height:auto}
  .chp-dash-nav{display:none}
  /* dashboard mobile nav: see fixed bottom nav definition above */
  .chp-dash-main{padding:20px 16px 32px}
}
@media (max-width: 479px){
  .cx-product-hero__actions,.chp-product-hero .cx-product-hero__actions{grid-template-columns:1fr}
}

/* ── Dashboard More Drawer + Product Cards (moved from inline) ── */
.chp-more-drawer-overlay{display:none;position:fixed;inset:0;background:rgba(10,14,26,.55);backdrop-filter:blur(2px);z-index:1099}
.chp-more-drawer-overlay.is-open{display:block}
.chp-more-drawer{position:fixed;bottom:0;left:0;right:0;background:#fff;border-radius:20px 20px 0 0;box-shadow:0 -8px 40px rgba(10,14,26,.18);z-index:1100;transform:translateY(100%);transition:transform .25s cubic-bezier(.4,0,.2,1);max-height:75vh;overflow-y:auto}
.chp-more-drawer.is-open{transform:translateY(0)}
.chp-more-drawer__handle{display:flex;justify-content:center;padding:12px 0 4px}
.chp-more-drawer__handle span{width:40px;height:4px;border-radius:999px;background:#e4e7f2}
.chp-more-drawer__title{font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:#9199b8;padding:0 20px 10px}
.chp-more-drawer__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:0 16px 32px}
.chp-more-drawer__item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:14px 8px;background:#f7f8fc;border-radius:14px;text-decoration:none;color:#2d3249;font-size:.75rem;font-weight:700;text-align:center;border:1.5px solid transparent;transition:all .15s;position:relative}
.chp-more-drawer__item.is-active{background:#eaefff;color:#1a5cff;border-color:#c3d0ff}
.chp-more-drawer__item:active{transform:scale(.97)}
.chp-more-drawer__item-icon{font-size:1.4rem;line-height:1}
.chp-more-drawer__badge{position:absolute;top:8px;right:8px;background:#e53e3e;color:#fff;font-size:.58rem;font-weight:800;padding:1px 5px;border-radius:999px}
.chp-dash-mobile-more{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 0;flex:1;font-size:.6rem;color:rgba(255,255,255,.45);background:none;border:none;cursor:pointer;font-family:inherit;position:relative}
.chp-dash-mobile-more.has-active{color:#1a5cff}
.chp-product-card{background:#fff;border:1px solid #e4e7f2;border-radius:14px;overflow:hidden;margin-bottom:20px}
.chp-product-card__head{display:flex;align-items:center;gap:14px;padding:16px 18px;border-bottom:1px solid #f0f2f9}
.chp-product-card__logo{width:44px;height:44px;border-radius:10px;object-fit:contain;border:1px solid #e4e7f2;flex-shrink:0;background:#f7f8fc}
.chp-product-card__logo-fb{width:44px;height:44px;border-radius:10px;background:linear-gradient(135deg,#eaefff,#dde4ff);display:flex;align-items:center;justify-content:center;font-family:'Syne',sans-serif;font-weight:800;font-size:.88rem;color:#1a5cff;flex-shrink:0}
.chp-product-card__info{flex:1;min-width:0}
.chp-product-card__name{font-weight:700;font-size:.95rem;color:#0a0e1a;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chp-product-card__meta{font-size:.75rem;color:#9199b8;display:flex;align-items:center;gap:8px;margin-top:3px;flex-wrap:wrap}
.chp-product-card__tabs{display:flex;border-bottom:1px solid #f0f2f9;overflow-x:auto;scrollbar-width:none}
.chp-product-card__tabs::-webkit-scrollbar{display:none}
.chp-product-card__tab{display:flex;align-items:center;gap:5px;padding:11px 15px;font-size:.78rem;font-weight:600;color:#5c6280;white-space:nowrap;border-bottom:2px solid transparent;cursor:pointer;background:none;border-top:none;border-left:none;border-right:none;font-family:inherit;transition:all .15s;flex-shrink:0}
.chp-product-card__tab.is-active{color:#1a5cff;border-bottom-color:#1a5cff}
.chp-product-card__panel{padding:18px;display:none}
.chp-product-card__panel.is-active{display:block}
.chp-update-composer{display:flex;flex-direction:column;gap:10px}
.chp-update-composer__input,.chp-update-composer__textarea{padding:11px 13px;border:1.5px solid #e4e7f2;border-radius:8px;font-family:inherit;font-size:.88rem;color:#0a0e1a;outline:none;transition:border-color .15s;width:100%;box-sizing:border-box}
.chp-update-composer__input:focus,.chp-update-composer__textarea:focus{border-color:#1a5cff;box-shadow:0 0 0 3px rgba(26,92,255,.08)}
.chp-update-composer__textarea{resize:vertical;min-height:76px}
.chp-update-composer__actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.chp-update-composer__msg{font-size:.82rem}
.chp-update-timeline{display:flex;flex-direction:column;margin-top:14px}
.chp-update-timeline__item{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid #f7f8fc}
.chp-update-timeline__item:last-child{border-bottom:none}
.chp-update-timeline__dot{width:10px;height:10px;border-radius:50%;background:#1a5cff;flex-shrink:0;margin-top:4px;border:2px solid #fff;box-shadow:0 0 0 1.5px #1a5cff}
.chp-update-timeline__date{font-size:.7rem;font-weight:700;color:#9199b8;text-transform:uppercase;display:block;margin-bottom:2px}
.chp-update-timeline__title{font-size:.87rem;font-weight:700;color:#0a0e1a;margin:0}
@media(min-width:900px){.chp-more-drawer,.chp-more-drawer-overlay{display:none!important}.chp-dash-mobile-more{display:none!important}}


/* ── Final responsive dashboard polish ── */
.chp-dash-shell{overflow:hidden}
.chp-dash-main{min-width:0}
.chp-dash-main *{min-width:0}
.chp-dash-card,.chp-card,.chp-step-card{max-width:100%}
@media (max-width:1024px){
  .chp-dash-shell{grid-template-columns:1fr}
  .chp-dash-nav{display:none}
  .chp-dash-main{padding:18px 16px 96px}
  .chp-dash-grid,.chp-settings-grid,.chp-analytics-grid{grid-template-columns:1fr!important}
  .chp-dash-topbar,.chp-backend-topbar{flex-wrap:wrap;gap:12px}
}
@media (max-width:640px){
  .chp-dash-title{font-size:clamp(1.6rem,9vw,2.5rem);line-height:1.02}
  .chp-step-card{padding:20px 16px}
  .chp-backend-shell,.chp-settings-shell{padding-inline:0}
  .chp-form-row,.chp-inline-actions,.chp-coupon-row,.chp-import-bar{flex-direction:column}
  .chp-form-row > *, .chp-inline-actions > *, .chp-coupon-row > *, .chp-import-bar > *{width:100%}
  table.chp-table{display:block;overflow-x:auto;white-space:nowrap}
}


/* --- dashboard/admin responsive polish --- */
.chp-dash-shell{overflow:hidden}
.chp-dash-main{min-width:0}
.chp-dash-topbar,.chp-dash-grid,.chp-dash-panels{min-width:0}
.chp-upgrade-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.chp-upgrade-card{background:linear-gradient(180deg,#0f1730,#0b1326);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:24px;box-shadow:0 16px 40px rgba(5,10,24,.22);color:#fff}
.chp-upgrade-card--highlight{background:linear-gradient(135deg,#4f46e5,#2563eb);box-shadow:0 20px 48px rgba(37,99,235,.35)}
.chp-upgrade-card__badge{top:-10px}
@media (max-width: 1180px){.chp-upgrade-grid{grid-template-columns:1fr 1fr}}
@media (max-width: 920px){
  .chp-dash-shell{grid-template-columns:1fr}
  .chp-dash-sidebar{position:fixed;left:0;top:0;bottom:0;transform:translateX(-100%);z-index:1000;max-width:280px;width:82vw}
  .chp-dash-shell.is-nav-open .chp-dash-sidebar{transform:translateX(0)}
  .chp-dash-main{width:100%}
  .chp-dash-grid,.chp-dash-stats,.chp-dash-panels{grid-template-columns:1fr!important}
  .chp-dash-card,.chp-dash-panel{min-width:0}
}
@media (max-width: 640px){
  .chp-upgrade-grid{grid-template-columns:1fr}
  .chp-dash-topbar{padding:14px 16px}
  .chp-dash-content{padding:16px}
  .chp-dash-title{font-size:1.4rem}
}


/* Builders + Scouts */
.chp-identity-strip{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 20px}
.chp-role-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#e9efff;color:#1a5cff;font-size:.75rem;font-weight:700;text-decoration:none}
.chp-role-pill--muted{background:#eef2f7;color:#55607a}
.chp-role-pill--verified{background:#e8fff4;color:#0b8f5c}
.chp-role-pill--featured{background:#fff4dd;color:#b77200}
.chp-role-pill--link{background:#0f172a;color:#fff}
.chp-credit-row{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.chp-credit-pill{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;background:#f3f6fb;color:#243047;text-decoration:none;font-size:.78rem;font-weight:700}
.chp-credit-pill--ghost{background:#fff;border:1px solid #d9e0ee}
.chp-credit-pill__badge{background:#0b8f5c;color:#fff;border-radius:999px;padding:2px 7px;font-size:.62rem;font-weight:800}


/* --- final ui pass fixes --- */


/* promo styles in promo.php */
.chp-dash-mobile-nav{background:linear-gradient(180deg,#102247 0%,#0d1a36 100%)!important;border-top:1px solid rgba(255,255,255,.16)!important}
.chp-dash-mobile-item,.chp-dash-mobile-more{color:rgba(255,255,255,.86)!important}
.chp-dash-mobile-item.is-active,.chp-dash-mobile-more.has-active{color:#7ea6ff!important}
.chp-dash-mobile-nav::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.04),transparent);pointer-events:none}
@media (max-width:640px){
  .chp-dash-overview-grid{grid-template-columns:1fr!important}
  .chp-dash-stat-card--product{display:grid;grid-template-columns:56px 1fr;align-items:center;text-align:left}
  .chp-dash-stat-card__product{align-items:flex-start;gap:12px}
  .chp-dash-stat-card__product-name,.chp-dash-stat-card strong{white-space:normal;overflow-wrap:anywhere}
  .chp-dash-main{padding-bottom:104px!important}
}
.chp-role-pill,.chp-credit-pill,.cx-role-chip,.cx-credit-pill{box-shadow:0 8px 20px rgba(10,14,26,.06);border:1px solid rgba(26,92,255,.08)}
.chp-role-pill--verified,.cx-role-chip--verified{background:linear-gradient(135deg,#e8fff4,#d8ffec);color:#0b8f5c;border-color:rgba(11,143,92,.16)}
.chp-role-pill--featured,.cx-role-chip--featured{background:linear-gradient(135deg,#fff7dd,#ffe9a8);color:#9a6300;border-color:rgba(183,114,0,.18)}

.chp-dash-mobile-more{gap:2px!important;color:rgba(255,255,255,.86)!important}
.chp-dash-mobile-more .chp-dash-mobile-item__label{display:block;font-size:.62rem;font-weight:700;line-height:1.1}
.chp-product-card__head{flex-wrap:wrap}
.chp-product-card__info{min-width:0;flex:1}
.chp-product-card__name{display:block;overflow-wrap:anywhere;word-break:break-word}
@media (max-width: 640px){
  .chp-product-card__head{align-items:flex-start}
  .chp-product-card__head .chp-btn{width:100%;justify-content:center;margin-top:8px}
  .chp-product-card__meta{flex-wrap:wrap;gap:8px}
}

/* ══════════════════════════════════════════════════════════
   VERIFIED BUILDER BADGE — RESPONSIVE (plugin copy)
══════════════════════════════════════════════════════════ */
.cx-verified-badge {
  width: clamp(14px, 1.6vw, 18px) !important;
  height: clamp(14px, 1.6vw, 18px) !important;
  font-size: clamp(.5rem, 1.1vw, .65rem) !important;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .cx-verified-badge { width: 14px !important; height: 14px !important; font-size: .5rem !important; }
}

/* Comment system styles */
.chp-comments-section { margin-top: 24px; }
.chp-comment-item { padding: 12px 0; border-bottom: 1px solid var(--cx-border, #eef1fa); }
.chp-comment-item:last-child { border-bottom: none; }
.chp-comment-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.chp-comment-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.chp-comment-author { font-size: .8rem; font-weight: 700; }
.chp-comment-time { font-size: .72rem; color: var(--cx-ink-3, #8898aa); margin-left: auto; }
.chp-comment-body { font-size: .875rem; line-height: 1.55; padding-left: 36px; white-space: pre-wrap; word-break: break-word; }
.chp-comment-actions { display: flex; align-items: center; gap: 4px; padding-left: 36px; margin-top: 6px; flex-wrap: wrap; }
.chp-comment-action { background: none; border: none; padding: 3px 7px; font-size: .72rem; font-weight: 600; color: var(--cx-ink-3,#8898aa); cursor: pointer; border-radius: 4px; transition: background .15s,color .15s; display: inline-flex; align-items: center; gap: 4px; }
.chp-comment-action:hover { background: var(--cx-accent-lt,rgba(26,92,255,.08)); color: var(--cx-accent,#1a5cff); }
.chp-comment-action.is-liked { color: var(--cx-accent,#1a5cff); }
.chp-comment-action--danger:hover { background: rgba(229,62,62,.07); color: #e53e3e; }
.chp-comment-replies { margin-left: 36px; border-left: 2px solid var(--cx-border,#eef1fa); padding-left: 12px; margin-top: 8px; }
.chp-comment-form textarea { width: 100%; resize: vertical; padding: 10px 12px; border: 1.5px solid var(--cx-border,#e2e8f0); border-radius: 8px; font-size: .875rem; box-sizing: border-box; }
.chp-reply-form { margin: 8px 0 8px 36px; background: var(--cx-bg-2,#f7f8fc); border-radius: 8px; padding: 12px; }

/* Upload zones */
.chp-upload-zone { position: relative; display: flex; align-items: center; justify-content: center; min-height: 100px; border: 2px dashed var(--cx-border,#d0d8ee); border-radius: 10px; background: var(--cx-bg-2,#f7f8fc); cursor: pointer; transition: border-color .2s; overflow: hidden; }
.chp-upload-zone:hover,.chp-upload-zone.is-dragover { border-color: var(--cx-accent,#1a5cff); }
.chp-upload-zone__preview { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; padding: 8px; }
.chp-upload-zone__progress { display: none; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); font-size: .7rem; font-weight: 700; color: var(--cx-accent,#1a5cff); background: rgba(255,255,255,.85); padding: 2px 8px; border-radius: 20px; }

/* Profile save msg */
#chp-profile-msg { display: inline-block; font-size: .78rem; font-weight: 600; transition: opacity .4s; margin-left: 10px; }

/* ══════════════════════════════════════════════════════════
   FEED — Algorithm-Driven Real-Time Community Feed
══════════════════════════════════════════════════════════ */
.chp-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 660px;
}
.chp-feed-item {
  background: var(--chp-surface, #fff);
  border: 1px solid var(--chp-border, #e8eaf2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: box-shadow .15s;
  position: relative;
}
.chp-feed-item:hover { box-shadow: 0 4px 20px rgba(10,14,26,.07); }

/* Product feed card */
.chp-feed-item__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.chp-feed-logo-wrap { flex-shrink: 0; }
.chp-feed-logo {
  width: 48px; height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--chp-border,#e8eaf2);
}
.chp-feed-item__meta { flex: 1; min-width: 0; }
.chp-feed-item__title {
  font-size: .9rem;
  font-weight: 800;
  color: var(--chp-ink, #0a0e1a);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.chp-feed-item__title:hover { color: var(--chp-accent, #1a5cff); }
.chp-feed-item__title--post  { font-size: .88rem; white-space: normal; color: var(--chp-ink,#0a0e1a); margin: 6px 0 4px; }
.chp-feed-item__title--update { font-size: .84rem; margin: 6px 0 4px; }
.chp-feed-item__tagline {
  font-size: .78rem;
  color: var(--chp-ink-3, #8898aa);
  margin: 2px 0 6px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.chp-feed-item__excerpt {
  font-size: .82rem;
  color: var(--chp-ink-2, #3a4060);
  line-height: 1.5;
  margin: 0 0 10px;
}
.chp-feed-item__byline {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  color: var(--chp-ink-3, #8898aa);
  flex-wrap: wrap;
}
.chp-feed-byline-avatar {
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.chp-feed-dot { opacity: .4; }

/* Community post in feed */
.chp-feed-item__author-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.chp-feed-author-name { font-size: .84rem; font-weight: 700; color: var(--chp-ink,#0a0e1a); display: flex; align-items: center; gap: 4px; }
.chp-feed-community-tag {
  font-size: .7rem;
  background: rgba(26,92,255,.08);
  color: var(--chp-accent, #1a5cff);
  border-radius: 20px;
  padding: 1px 7px;
  margin-left: 6px;
  font-weight: 600;
}
.chp-feed-time { font-size: .7rem; color: var(--chp-ink-3,#8898aa); margin-left: 4px; }

/* Feed actions */
.chp-feed-item__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.chp-feed-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: none;
  background: none;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--chp-ink-3, #8898aa);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.chp-feed-action:hover { background: var(--chp-bg-2,#f7f8fc); color: var(--chp-accent,#1a5cff); }
.chp-feed-action.is-liked { color: #e53e3e; }
.chp-feed-action.is-liked svg { fill: currentColor; }

/* Update pill */
.chp-feed-item--update { border-left: 3px solid var(--chp-accent,#1a5cff); }
.chp-feed-item__update-pill {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--chp-accent,#1a5cff);
  margin-bottom: 8px;
}

/* New content banner */
.chp-feed-new-banner {
  display: none;
  background: var(--chp-accent, #1a5cff);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  margin: 0 auto 16px;
  animation: chp-toast-in .2s ease;
  box-shadow: 0 4px 14px rgba(26,92,255,.3);
  text-align: center;
}
.chp-feed-new-banner.is-visible { display: block; }

/* Feed skeleton loader */
.chp-feed-skeleton {
  background: var(--chp-surface,#fff);
  border: 1px solid var(--chp-border,#e8eaf2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.chp-skeleton-line {
  background: linear-gradient(90deg,#f0f2f9 25%,#e8eaf2 50%,#f0f2f9 75%);
  background-size: 200% 100%;
  animation: chp-shimmer 1.4s infinite;
  border-radius: 4px;
  height: 12px;
  margin-bottom: 8px;
}
@keyframes chp-shimmer { to { background-position: -200% 0; } }

/* Feed filter tabs */
.chp-feed-filters {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.chp-feed-filter {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--chp-ink-3,#8898aa);
  background: var(--chp-bg-2,#f7f8fc);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .15s;
}
.chp-feed-filter.is-active,
.chp-feed-filter:hover {
  background: rgba(26,92,255,.08);
  color: var(--chp-accent,#1a5cff);
  border-color: rgba(26,92,255,.18);
}

/* Reactions */
.chp-reactions {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.chp-reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1.5px solid var(--chp-border,#e8eaf2);
  background: var(--chp-bg-2,#f7f8fc);
  font-size: .8rem;
  cursor: pointer;
  transition: all .15s;
}
.chp-reaction-btn:hover,
.chp-reaction-btn.is-reacted { border-color: var(--chp-accent,#1a5cff); background: rgba(26,92,255,.06); }

@media (max-width: 480px) {
  .chp-feed-item { padding: 12px; border-radius: 10px; }
  .chp-feed-logo { width: 40px; height: 40px; }
  .chp-feed-item__title { font-size: .84rem; }
}

/* ── Claim Box — verified ownership flow ── */
.cx-claim-box{background:#fffbeb;border:1.5px solid #fde68a;border-radius:14px;padding:18px 20px;margin-bottom:20px;display:flex;flex-direction:column;gap:14px}
.cx-claim-box strong{font-size:.95rem;font-weight:700;color:#92400e;display:block;margin-bottom:4px}
.cx-claim-box p{margin:0;font-size:.84rem;color:#78350f;line-height:1.6}
.cx-claim-box__form{display:flex;flex-direction:column;gap:10px}
.cx-claim-box__form input[type=email]{width:100%;padding:11px 14px;border:1.5px solid #fcd34d;border-radius:9px;background:#fff;color:#1c1c2e;font-size:.88rem;font-family:inherit;outline:none;transition:border-color .15s;box-sizing:border-box}
.cx-claim-box__form input[type=email]:focus{border-color:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.1)}
.cx-claim-box .chp-btn--primary{align-self:flex-start;padding:10px 22px;background:#d97706;color:#fff;border:none;border-radius:9px;font-weight:700;font-size:.86rem;cursor:pointer;transition:background .15s}
.cx-claim-box .chp-btn--primary:hover{background:#b45309}
.cx-claim-box .chp-btn--primary:disabled{opacity:.6;cursor:not-allowed}
.cx-claim-msg{font-size:.82rem;min-height:18px;display:block}
.cx-claim-note{font-size:.76rem;color:#a16207;margin:0;line-height:1.5}
/* Owned state */
.cx-claim-box--owned{background:#f0fdf4;border-color:#86efac}
.cx-claim-box--owned strong{color:#166534}
.cx-claim-box--owned p{color:#15803d}
/* Pending state */
.cx-claim-box--pending{background:#eff6ff;border-color:#93c5fd}
.cx-claim-box--pending strong{color:#1e40af}
.cx-claim-box--pending p{color:#1d4ed8}
@media(max-width:600px){.cx-claim-box{padding:14px 16px}.cx-claim-box .chp-btn--primary{width:100%;text-align:center}}


/* ══════════════════════════════════════════════════════════
   MOBILE NATIVE APP FEEL — Global improvements
   Applied to all plugin pages (/login, /signup, /launch, /dashboard)
══════════════════════════════════════════════════════════ */

/* Momentum scrolling */
.chp-auth-page,
.chp-launch-flow,
.chp-dash-wrap { -webkit-overflow-scrolling: touch; }

/* Remove tap highlight on all interactive elements */
.chp-btn, .chp-field input, .chp-field select, .chp-field textarea,
.chp-tab, .chp-nav-item, .chp-more-drawer__item {
  -webkit-tap-highlight-color: transparent;
}

/* Ensure all touch targets meet 44px minimum */
.chp-btn { min-height: 44px; }
.chp-btn--sm { min-height: 36px; }
.chp-field input, .chp-field select { min-height: 44px; }

/* Safe area insets */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .chp-dash-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .chp-launch-flow { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* Better font rendering on mobile */
@media (max-width: 768px) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  /* Launch wizard on mobile — no side padding boxing */
  .chp-launch-flow { padding: 20px 14px 80px; }
  .chp-step-card { padding: 22px 18px; border-radius: 16px; }
  .chp-step-card__title { font-size: 1.1rem; }

  /* Import bar stacked */
  .chp-import-bar { flex-direction: row; flex-wrap: wrap; }
  .chp-import-bar input { flex: 1; min-width: 0; }

  /* Auth page — full screen on mobile */
  .chp-auth-page { align-items: flex-start; padding: 0; }
  .chp-auth-card { min-height: 100dvh; border-radius: 0; padding: 32px 20px; max-width: 100%; }

  /* Dashboard bottom nav larger touch targets */
  .chp-bottom-nav-item { min-height: 52px; }

  /* Step indicator scrollable */
  .chp-step-indicator { overflow-x: auto; padding-bottom: 6px; }
  .chp-step-line { min-width: 24px; }
}

/* ── Auth split — single column mobile ── */
@media (max-width: 900px) {
  .chp-auth-split { grid-template-columns: 1fr !important; }
  .chp-auth-proof { display: none !important; }
  .chp-auth-card { padding: 32px 24px; }
}

/* ── Launch wizard form rows — stack on mobile ── */
@media (max-width: 540px) {
  .chp-step-card [style*="grid-template-columns:1fr 1fr"],
  .chp-step-card [style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
}


/* ═══════════════════════════════════════════════════════
   PRODUCTION MOBILE FIXES — Critical viewport corrections
═══════════════════════════════════════════════════════ */

/* Prevent horizontal scroll without causing boxing —
   apply only where content might overflow, never on wrappers */

/* Prevent iOS rubber-band scroll on fixed panels */
.chp-more-drawer {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Input zoom prevention on iOS (font-size < 16px triggers zoom) */
@media (max-width: 768px) {
  .chp-field input,
  .chp-field select,
  .chp-field textarea,
  .ch-create-field input,
  .ch-create-field textarea,
  .csc-comment-input-wrap textarea,
  .cxd-write-form textarea {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
  }
}

/* Better button active states on mobile (touch feedback) */
@media (hover: none) {
  .chp-btn:active,
  .ch-btn:active,
  .csc-btn:active,
  .cxd-btn:active,
  .lp-btn:active {
    transform: scale(0.97);
    opacity: 0.88;
  }
}

/* Fix dashboard bottom nav overlap with page content */
@media (max-width: 900px) {
  .chp-dash-main {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Auth card full-screen on phone */
@media (max-width: 480px) {
  .chp-auth-page {
    padding: 0 !important;
    align-items: stretch !important;
    background: #fff !important;
  }
  .chp-auth-card {
    min-height: 100dvh;
    min-height: 100vh;
    border-radius: 0 !important;
    padding: 36px 20px 80px !important;
    max-width: 100% !important;
    box-shadow: none !important;
  }
}

/* Checkout page responsive */
@media (max-width: 600px) {
  .cko-layout {
    grid-template-columns: 1fr !important;
  }
  .cko-sidebar {
    order: -1;
  }
}


/* ══════════════════════════════════════════════════════════
   BUILDER / FOUNDER PROFILE PAGE  (/f/{slug})
   Premium dark design. Full-width. Mobile-first.
══════════════════════════════════════════════════════════ */

/* ── Page wrapper ── */
.cx-builder-profile-page {
  background: #0a0e1a;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans','DM Sans',-apple-system,sans-serif;
  color: #eef0ff;
  padding-bottom: 60px;
  -webkit-font-smoothing: antialiased;
}
.cx-builder-profile-page .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Hero section ── */
.cx-builder-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 36px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.cx-builder-hero__avatar {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 3px solid rgba(255,255,255,.1);
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.cx-builder-hero__topline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.cx-builder-hero__name {
  font-family: 'Bricolage Grotesque','Syne',sans-serif;
  font-size: clamp(1.6rem,4vw,2.6rem);
  font-weight: 800;
  letter-spacing: -.05em;
  color: #fff;
  line-height: 1.05;
  margin: 0 0 6px;
}
.cx-builder-hero__title {
  font-size: .92rem;
  color: #8892aa;
  margin: 0 0 10px;
  font-weight: 500;
}
.cx-builder-hero__bio {
  font-size: .9rem;
  color: #8892aa;
  line-height: 1.72;
  margin: 0 0 14px;
  max-width: 540px;
}
.cx-builder-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.cx-builder-hero__links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 600;
  color: #7899ff;
  text-decoration: none;
  padding: 5px 12px;
  background: rgba(120,153,255,.1);
  border: 1px solid rgba(120,153,255,.2);
  border-radius: 999px;
  transition: all .15s;
}
.cx-builder-hero__links a:hover {
  background: rgba(120,153,255,.2);
  color: #a5b4fc;
}
.cx-builder-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Stats sidebar on hero */
.cx-builder-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  min-width: 160px;
  flex-shrink: 0;
}
.cx-builder-stats > div {
  text-align: center;
}
.cx-builder-stats strong {
  display: block;
  font-family: 'Bricolage Grotesque',sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 3px;
}
.cx-builder-stats span {
  font-size: .64rem;
  color: #4e5668;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

/* ── Section heading ── */
.cx-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 16px;
}
.cx-section-head h2 {
  font-family: 'Bricolage Grotesque',sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0;
}

/* ── Featured product card ── */
.cx-builder-featured__card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  text-decoration: none;
  transition: all .16s;
  margin-bottom: 24px;
}
.cx-builder-featured__card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(120,153,255,.3);
  transform: translateY(-2px);
}
.cx-builder-featured__logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #1a1e2e;
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}
.cx-builder-featured__logo img { width:100%;height:100%;object-fit:cover; }
.cx-builder-featured__copy { flex: 1; min-width: 0; }
.cx-builder-featured__copy strong { display: block; font-size: .96rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.cx-builder-featured__copy p { font-size: .82rem; color: #8892aa; line-height: 1.55; margin: 0; }
.cx-builder-featured__cta { font-size: .8rem; font-weight: 700; color: #7899ff; white-space: nowrap; flex-shrink: 0; }

/* ── 2-column layout ── */
.cx-builder-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 24px;
  margin-top: 8px;
}

/* ── Product cards grid ── */
.cx-builder-products {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cx-builder-product-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  text-decoration: none;
  transition: all .15s;
}
.cx-builder-product-card:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(120,153,255,.25);
  transform: translateY(-1px);
}
.cx-builder-product-card__media {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #1a1e2e;
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 800;
  color: #fff;
}
.cx-builder-product-card__media img { width:100%;height:100%;object-fit:cover; }
.cx-builder-product-card__copy { flex: 1; min-width: 0; }
.cx-builder-product-card__copy strong { display:block;font-size:.88rem;font-weight:700;color:#fff;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.cx-builder-product-card__copy p { font-size:.76rem;color:#8892aa;line-height:1.45;margin:0;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden; }
.cx-builder-product-card__meta { font-size:.78rem;color:#4e5668;font-weight:600;flex-shrink:0; }

/* ── Activity feed ── */
.cx-builder-activity {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cx-builder-activity__item {
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
}
.cx-builder-activity__item time {
  font-size: .7rem;
  color: #4e5668;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.cx-builder-activity__item h3 {
  font-size: .86rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.cx-builder-activity__item a {
  font-size: .78rem;
  color: #7899ff;
  text-decoration: none;
}

/* ── Communities sidebar ── */
.cx-builder-communities {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cx-community-mini {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  text-decoration: none;
  transition: all .14s;
}
.cx-community-mini:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(120,153,255,.25);
}
.cx-community-mini strong { font-size:.84rem;font-weight:700;color:#fff;margin-bottom:3px;display:block; }
.cx-community-mini span  { font-size:.74rem;color:#8892aa;line-height:1.45; }

/* ── Chips / pills ── */
.cx-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: rgba(255,255,255,.07);
  color: #8892aa;
  border: 1px solid rgba(255,255,255,.09);
}
.cx-chip--ghost    { background: transparent; border-color: rgba(255,255,255,.12); color: #4e5668; }
.cx-chip--verified { background: rgba(12,184,112,.1);  border-color: rgba(12,184,112,.25); color: #0cb870; }
.cx-chip--featured { background: rgba(245,158,11,.1);  border-color: rgba(245,158,11,.25); color: #f59e0b; }

/* ── Buttons ── */
.cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .15s;
  white-space: nowrap;
  min-height: 38px;
  -webkit-tap-highlight-color: transparent;
}
.cx-btn--primary    { background: linear-gradient(135deg,#4f6ef7,#3d5be0); color:#fff; box-shadow:0 4px 16px rgba(79,110,247,.25); }
.cx-btn--primary:hover { transform:translateY(-1px); box-shadow:0 8px 24px rgba(79,110,247,.35); }
.cx-btn--secondary  { background:rgba(255,255,255,.07); color:#eef0ff; border:1px solid rgba(255,255,255,.1); }
.cx-btn--secondary:hover { background:rgba(255,255,255,.12); }
.cx-follow-btn {
  padding: 9px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid rgba(79,110,247,.4);
  background: transparent;
  color: #7899ff;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.cx-follow-btn.is-following { background:rgba(79,110,247,.12); }
.cx-follow-btn:hover { background:rgba(79,110,247,.18); border-color:rgba(79,110,247,.6); }

/* ── Empty state ── */
.cx-empty-card {
  padding: 28px;
  background: rgba(255,255,255,.02);
  border: 1px dashed rgba(255,255,255,.1);
  border-radius: 12px;
  text-align: center;
}
.cx-empty-card p { font-size:.84rem; color:#4e5668; margin:0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .cx-builder-hero    { grid-template-columns: auto 1fr; }
  .cx-builder-stats   { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; grid-column: span 2; min-width: unset; padding: 14px 16px; gap: 18px; }
  .cx-builder-grid    { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cx-builder-hero    { grid-template-columns: 1fr; gap: 16px; padding: 24px 0 20px; }
  .cx-builder-hero__avatar { width:72px; height:72px; border-radius:16px; }
  .cx-builder-stats   { gap: 14px; }
  .cx-builder-hero__name { font-size:1.6rem; }
  .cx-builder-profile-page .container { padding: 0 14px; }
}


/* ── Final hardening pass ── */
.chp-header-dropdown {
  width: min(320px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
}
.chp-header-dropdown__name,
.chp-header-dropdown__email,
.chp-dd-item,
.chp-dd-item span:last-child,
.chp-dash-title,
.chp-dash-main h1,
.chp-dash-main h2,
.chp-dash-main h3,
.chp-dash-main p,
.chp-dash-main a,
.chp-dash-main strong,
.chp-dash-main span {
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 640px) {
  .chp-header-avatar-wrap {
    margin-left: 4px;
  }
}

/* ═══════════════════════════════════════════════════════════
   DROPDOWN OVERLAY FIX — pointer-events & stacking context
   ═══════════════════════════════════════════════════════════ */

/* Backdrop: completely non-interactive, always behind everything */
#chp-dropdown-backdrop {
  pointer-events: none !important;
  z-index: 1 !important;
  background: rgba(10,14,26,0.2) !important;
}

/* Avatar wrap: must create stacking context so dropdown stays above backdrop */
.chp-header-avatar-wrap {
  position: relative !important;
  z-index: 1100 !important;
  isolation: isolate;
}

/* Dropdown: absolute within wrap, high z-index relative to its stacking context */
.chp-header-dropdown {
  z-index: 9999 !important;
  pointer-events: auto !important;
}

/* All links in dropdown must be clickable */
.chp-header-dropdown a,
.chp-header-dropdown button {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 10000 !important;
}

/* More drawer overlay: must not interfere with avatar dropdown */
.chp-more-drawer-overlay {
  z-index: 1050 !important;
}

/* Header itself: must be above backdrop */
.ch-header,
#ch-site-header,
header.ch-header {
  z-index: 1100 !important;
  position: sticky !important;
}
