/* components.css — Interactive UI components: tier cards, modals, cart drawer, sticky bar */

/* Creator Co-Branded Card */
.creator-cobrand-card {
  display: none; align-items: center; gap: 14px; background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px;
}
.creator-avatar-wrap {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid var(--electric); flex-shrink: 0;
  background: #dbeafe; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--cobalt); font-size: 16px;
}
.creator-cobrand-text b { font-size: 13.5px; color: var(--navy); display: block; }
.creator-cobrand-text span { font-size: 11.5px; color: #1e3a8a; }

.hero-hook-badge {
  display: inline-flex; align-items: center; gap: 6px; background: #eff6ff; border: 1px solid #bfdbfe;
  color: var(--electric); padding: 4px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}

/* Tier Selector */
.tier-selector { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.tier-card {
  background: #fff; border: 2px solid var(--border); border-radius: 14px; padding: 16px 18px; cursor: pointer;
  position: relative; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.tier-card:hover { border-color: #93c5fd; }
.tier-card.active { border-color: var(--electric); background: #f8fbff; box-shadow: 0 4px 14px rgba(45, 124, 246, 0.12); }
.tier-card-badge {
  position: absolute; top: -10px; right: 18px; font-size: 10px; font-weight: 900; padding: 2px 10px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-popular { background: var(--teal); color: #022c22; }
.badge-value { background: var(--amber); color: #451a03; }

.tier-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.tier-title-wrap { display: flex; align-items: center; gap: 10px; }
.radio-circle {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cbd5e1; display: flex; align-items: center; justify-content: center;
}
.tier-card.active .radio-circle { border-color: var(--electric); }
.tier-card.active .radio-circle::after { content: ""; width: 8px; height: 8px; background: var(--electric); border-radius: 50%; }

.tier-name { font-size: 15.5px; font-weight: 800; color: var(--navy); }
.duration-pill { background: #e2e8f0; color: #334155; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 4px; }
.tier-card.active .duration-pill { background: #dbeafe; color: var(--cobalt); }
.tier-price { font-size: 21px; font-weight: 900; color: var(--navy); }
.tier-unit { font-size: 11.5px; font-weight: 700; color: var(--electric); font-family: var(--font-mono); }
.tier-benefits { font-size: 12px; color: #475569; margin-left: 28px; line-height: 1.4; }

.voucher-tag {
  display: inline-block; background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 800;
  padding: 2px 6px; border-radius: 4px; margin-top: 4px; border: 1px solid #fde68a;
}

.accelerator-box {
  background: #f0fdf4; border: 1.5px dashed var(--teal); border-radius: 12px; padding: 12px 16px; margin-bottom: 20px;
  display: flex; gap: 14px; align-items: center;
}
.acc-thumb { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid #bbf7d0; flex-shrink: 0; }
.acc-text { flex-grow: 1; }
.acc-text b { display: block; font-size: 12.5px; color: #166534; font-weight: 800; }
.acc-text span { font-size: 11px; color: #15803d; }
.acc-badge { background: #dcfce7; color: #166534; font-weight: 800; font-size: 11px; padding: 4px 8px; border-radius: 6px; }

.cta-button {
  width: 100%; background: var(--navy); color: #fff; border: none; padding: 18px; border-radius: 10px;
  font-size: 16px; font-weight: 800; cursor: pointer; transition: all 0.2s; letter-spacing: 0.3px;
  display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 4px 14px rgba(11, 31, 77, 0.15);
}
.cta-button:hover { background: var(--cobalt); transform: translateY(-1px); }

.risk-free-strip {
  margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 11px; color: var(--muted); text-align: center;
}
.risk-item { background: #fff; border: 1px solid var(--border); padding: 8px 6px; border-radius: 6px; font-weight: 600; }
.risk-item b { display: block; color: var(--navy); font-size: 11.5px; margin-bottom: 2px; }

/* Shoppable UGC Video Cards */
.shoppable-video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shoppable-video-card {
  position: relative; border-radius: 16px; overflow: hidden; height: 380px; background: #0f172a;
  box-shadow: var(--shadow); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.shoppable-video-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(11, 31, 77, 0.16); }
.shoppable-video-thumb { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video-play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; background: rgba(45, 124, 246, 0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3); transition: transform 0.2s;
}
.shoppable-video-card:hover .video-play-icon { transform: translate(-50%, -50%) scale(1.12); }
.video-creator-tag {
  position: absolute; top: 12px; left: 12px; background: rgba(11, 31, 77, 0.75); backdrop-filter: blur(6px);
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff;
}
.shoppable-overlay-bar {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 14px;
  background: linear-gradient(0deg, rgba(11, 31, 77, 0.95) 0%, rgba(11, 31, 77, 0.6) 70%, transparent 100%);
  color: #fff;
}
.shoppable-overlay-bar h5 { font-size: 12.5px; font-weight: 800; margin-bottom: 6px; line-height: 1.3; }
.quick-bag-btn {
  width: 100%; background: var(--teal); color: #022c22; border: none; padding: 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 800; cursor: pointer; transition: background 0.2s;
}
.quick-bag-btn:hover { background: #5eead4; }

/* Video Modal */
.video-modal-overlay {
  position: fixed; inset: 0; background: rgba(11, 31, 77, 0.88); backdrop-filter: blur(8px);
  z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px;
}
.video-modal-overlay.open { display: flex; }
.video-modal-container {
  background: #000; border-radius: 18px; overflow: hidden; width: 100%; max-width: 400px;
  height: 640px; position: relative; box-shadow: 0 24px 48px rgba(0,0,0,0.5); display: flex; flex-direction: column;
}
.video-modal-close {
  position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,0.5); border: none;
  width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 16px; cursor: pointer; z-index: 20;
}
.modal-video-viewport { flex-grow: 1; position: relative; background: #000; overflow: hidden; }
.modal-video-viewport video { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-video-info-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%); color: #fff; z-index: 10;
}
.modal-bottom-cta { background: #fff; padding: 16px; display: flex; align-items: center; justify-content: space-between; z-index: 20; }
.modal-bottom-cta b { font-size: 13.5px; color: var(--navy); display: block; }
.modal-bottom-cta span { font-size: 11.5px; color: var(--muted); }

/* Lead Capture Modal — fixed overlay (hidden until .open) */
.lead-modal-overlay {
  position: fixed; inset: 0; background: rgba(11, 31, 77, 0.6); backdrop-filter: blur(6px);
  z-index: 400; display: none; align-items: center; justify-content: center; padding: 20px;
}
.lead-modal-overlay.open { display: flex; }

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.cart-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; right: -420px; top: 0; bottom: 0; width: 100%; max-width: 420px; background: #fff; z-index: 201;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15); transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column;
}
.cart-drawer-overlay.open .cart-drawer { right: 0; }
.cart-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-size: 17px; font-weight: 800; color: var(--navy); }
.close-cart { background: none; border: none; font-size: 20px; color: var(--muted); cursor: pointer; }

.shipping-bar-wrap { padding: 12px 22px; background: #f8fafc; border-bottom: 1px solid var(--border); }
.shipping-text { font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.shipping-progress { height: 6px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.shipping-fill { height: 100%; width: 0%; background: var(--teal); transition: width 0.3s; }

.cart-items { flex-grow: 1; overflow-y: auto; padding: 16px 22px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #f1f5f9; }
.cart-item-info b { font-size: 13.5px; color: var(--navy); display: block; }
.cart-item-info span { font-size: 11.5px; color: var(--muted); }

.cart-upsell-module { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 12px; margin: 10px 0; }
.cart-upsell-title { font-size: 11.5px; font-weight: 800; color: var(--navy); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.cart-upsell-item { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.cart-upsell-btn {
  background: #fff; border: 1px solid var(--border); padding: 3px 8px; border-radius: 4px; font-size: 11px;
  font-weight: 700; color: var(--electric); cursor: pointer;
}
.cart-upsell-btn:hover { background: #f1f5f9; }

.cart-protection-row {
  background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px;
  margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 12px;
}
.cart-protection-row b { color: var(--navy); display: block; font-size: 12px; }
.cart-protection-row span { color: var(--muted); font-size: 11px; }

.cart-footer { padding: 16px 22px 20px; border-top: 1px solid var(--border); background: #fff; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.checkout-btn {
  width: 100%; background: var(--navy); color: #fff; border: none; padding: 14px; border-radius: 8px;
  font-size: 14px; font-weight: 800; cursor: pointer; transition: background 0.2s; margin-bottom: 8px;
}
.checkout-btn:hover { background: var(--cobalt); }

.payment-badges-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pay-badge-pill {
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 4px; padding: 2px 6px; font-size: 10px;
  font-weight: 800; color: #475569; letter-spacing: 0.3px; display: inline-flex; align-items: center; gap: 3px;
}

/* Sticky Bottom Bar (mobile) */
.sticky-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border);
  padding: 10px 18px; z-index: 99; display: none; align-items: center; justify-content: space-between;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06); gap: 12px;
}
.sticky-variant-select {
  background: #f8fafc; border: 1px solid var(--border); padding: 8px 10px; border-radius: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--navy); outline: none; flex-grow: 1;
}
.sticky-quick-btn {
  background: var(--navy); color: #fff; border: none; padding: 10px 20px; border-radius: 6px;
  font-size: 13.5px; font-weight: 800; cursor: pointer; flex-shrink: 0;
}
