/* ============================================================
   V1 CLEARANCE — popup / modal overlay
   Load-triggered promo overlay, on-brand (ink + signature red).
   Scoped entirely under .ht-v1c-popup. Dismiss persists for the
   browser session (sessionStorage) so it doesn't nag every page
   view — see v1-clearance-popup.js.
   ============================================================ */

.ht-v1c-popup {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .3s ease;
  will-change: opacity; -webkit-transform: translateZ(0);
}
.ht-v1c-popup.is-open { opacity: 1; pointer-events: auto; visibility: visible; }

.ht-v1c-popup .p-backdrop {
  position: absolute; inset: 0; background: rgba(6,6,6,0.78); backdrop-filter: blur(3px);
}

.ht-v1c-popup .p-card {
  position: relative; width: min(560px, 100%); max-height: min(640px, 92vh); overflow: auto;
  background: #0e0e0e; color: #fff; border-radius: 14px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  transform: translateY(18px) scale(0.98); transition: transform .32s cubic-bezier(0.16,1,0.3,1);
  will-change: transform; -webkit-transform: translateZ(0);
}
.ht-v1c-popup.is-open .p-card { transform: translateY(0) scale(1); }

.ht-v1c-popup .p-top {
  position: relative; padding: 30px 30px 22px; text-align: center; overflow: hidden;
  background: radial-gradient(120% 160% at 50% 0%, #2a1010 0%, #0e0e0e 65%);
}
.ht-v1c-popup .p-glow {
  position: absolute; left: 50%; top: -80px; width: 360px; height: 240px; transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, #ff000a 45%, transparent) 0%, transparent 65%);
  mix-blend-mode: screen; pointer-events: none;
}
.ht-v1c-popup .p-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 32px; height: 32px; aspect-ratio: 1 / 1; flex-shrink: 0; box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); color: #fff;
  font-size: 18px; line-height: 1; padding: 0; margin: 0; cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.ht-v1c-popup .p-close:hover { background: rgba(255,255,255,0.16); }

.ht-v1c-popup .p-eyebrow {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px;
  color: #ff000a; font-weight: 700; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px;
}
.ht-v1c-popup .p-headline {
  position: relative; z-index: 1; margin: 0; font-family: "Fira Sans Condensed", sans-serif; font-weight: 700;
  text-transform: uppercase; font-size: clamp(30px, 6vw, 40px); line-height: 0.95;
}
.ht-v1c-popup .p-headline .grad {
  background: linear-gradient(180deg, #ff5158 0%, #ff000a 45%, #a20006 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ht-v1c-popup .p-sub {
  position: relative; z-index: 1; margin: 10px auto 0; max-width: 380px; color: #c9c9c9;
  font-weight: 300; font-size: 14px; line-height: 1.5;
}

.ht-v1c-popup .p-body { padding: 0 24px 24px; }
.ht-v1c-popup .p-card2 { background: #fff; color: #0e0e0e; border-radius: 10px; overflow: hidden; }
.ht-v1c-popup .p-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 18px; border-bottom: 1px solid #ececec; font-family: "Fira Sans Condensed", sans-serif;
}
.ht-v1c-popup .p-row:last-of-type { border-bottom: 0; }
.ht-v1c-popup .p-row .name { font-weight: 700; font-size: 15px; text-transform: uppercase; }
.ht-v1c-popup .p-row .price { font-weight: 700; font-size: 15px; color: #a20006; white-space: nowrap; }
.ht-v1c-popup .p-row .price small { font-size: 10px; font-weight: 600; color: #666; text-transform: uppercase; margin-right: 4px; }
.ht-v1c-popup .p-note { padding: 10px 18px; font-size: 12px; color: #666; background: #f7f7f7; }
.ht-v1c-popup .p-note b { color: #0e0e0e; }

.ht-v1c-popup .p-cta-label {
  margin: 20px 0 12px; text-align: center; color: #a7a7a7; font-weight: 600; font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase;
}
.ht-v1c-popup .p-cta {
  display: flex; align-items: center; gap: 10px;
}
.ht-v1c-popup .p-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 2px solid transparent; text-decoration: none;
  color: #fff; font-family: "Fira Sans Condensed", sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: 0.03em; text-transform: uppercase; padding: 14px 16px; border-radius: 6px; flex: 1; min-width: 0;
  background: linear-gradient(180deg, #ff000a 0%, #a20006 100%);
  box-shadow: 0 14px 30px rgba(255,0,10,0.32);
  transition: filter .2s ease, transform .2s ease, background .2s ease;
}
.ht-v1c-popup .p-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.ht-v1c-popup .p-btn-outline { background: transparent; border-color: rgba(255,255,255,0.35); box-shadow: none; }
.ht-v1c-popup .p-btn-outline:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

@media (max-width: 480px) {
  .ht-v1c-popup .p-top { padding: 26px 20px 18px; }
  .ht-v1c-popup .p-body { padding: 0 16px 20px; }
}
