/* Black Friday gifting page — all selectors prefixed with .bf- */
:root {
  --bf-ink: #0f0f10;
  --bf-muted: #6b6b6b;
  --bf-blue: #315ea7;
  --bf-blue-light: #6b9cff;
  --bf-card: #ffffff;
  --bf-border: #e4e4ec;
  --bf-error: #d6302f;
  --bf-radius: 12px;
  --bf-shadow: 0 10px 24px rgba(23, 31, 56, 0.08);
  --bf-brand-gradient: linear-gradient(
    90deg,
    #67a1ff 0%,
    #b39dc0 25%,
    #ff9980 45%,
    #cf7bdc 70%,
    #67a1ff 100%
  );
}

.bf-page {
  background: linear-gradient(
    135deg,
    #bedbff 0%,
    rgba(233, 212, 255, 0.3) 50%,
    rgba(142, 197, 255, 0.35) 100%
  );
}

.bf-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.bf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}
.bf-btn:hover {
  transform: translateY(-1px);
}
.bf-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.bf-btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #5d8df0 0%, #9b8eee 50%, #e78aae 100%);
  box-shadow: 0 10px 24px rgba(93, 141, 240, 0.35);
}
.bf-btn-ghost {
  color: #fff;
  background: #ffffff1a;
  border: 1.5px solid #ffffff80;
  backdrop-filter: blur(16px);
}
.bf-btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */
.bf-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 96px;
  background:
    url("/assets/MainImage_V2.0.webp") center / cover no-repeat,
    #0b0b10;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.bf-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    80% 70% at 50% 40%,
    rgba(15, 15, 25, 0.55) 0%,
    rgba(5, 5, 10, 0.88) 100%
  );
}
.bf-hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.bf-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #ffffff14;
  border: 1px solid #ffffff40;
}
.bf-hero-title {
  font-size: 3.5rem;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}
.bf-hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.5;
  max-width: 640px;
  color: #ffffffd9;
}
.bf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 6px;
}
.bf-hero-badge {
  position: absolute;
  top: -40px;
  right: -110px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bf-brand-gradient);
  transform: rotate(12deg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.bf-hero-badge-num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.bf-hero-badge-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Sections ---------- */
.bf-section {
  padding: 88px 0;
  scroll-margin-top: 70px;
}
.bf-section-alt {
  background: #ffffff66;
}
.bf-section-lead {
  text-align: center;
  color: var(--bf-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* Steps */
.bf-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: none;
}
.bf-step {
  position: relative;
  background: var(--bf-card);
  border-radius: var(--bf-radius);
  padding: 28px 22px;
  box-shadow: var(--bf-shadow);
}
.bf-step h3 {
  font-size: 1.15rem;
  margin: 14px 0 8px;
}
.bf-step p {
  color: var(--bf-muted);
  font-size: 0.95rem;
}
.bf-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: var(--bf-brand-gradient);
}

/* Features */
.bf-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bf-feature {
  background: var(--bf-card);
  border-radius: var(--bf-radius);
  overflow: hidden;
  box-shadow: var(--bf-shadow);
  display: flex;
  flex-direction: column;
}
.bf-feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.bf-feature-copy {
  padding: 20px 22px 24px;
}
.bf-feature-copy h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.bf-feature-copy p {
  color: var(--bf-muted);
  font-size: 0.95rem;
}
.bf-privacy-note {
  text-align: center;
  margin-top: 36px;
  color: var(--bf-ink);
}

/* ---------- Builder ---------- */
.bf-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
.bf-builder-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bf-fieldset {
  border: 0;
  background: var(--bf-card);
  border-radius: var(--bf-radius);
  padding: 24px;
  box-shadow: var(--bf-shadow);
  min-width: 0;
}
.bf-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  float: left;
  width: 100%;
  margin-bottom: 18px;
}
.bf-legend + * {
  clear: both;
}
.bf-legend-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  color: #fff;
  background: var(--bf-blue);
}

/* Plans */
.bf-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.bf-plan {
  cursor: pointer;
  display: block;
}
.bf-plan input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.bf-plan-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 18px;
  border-radius: 10px;
  border: 2px solid var(--bf-border);
  background: #f8f8fb;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.bf-plan input:checked + .bf-plan-card {
  border-color: var(--bf-blue-light);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(107, 156, 255, 0.18);
}
.bf-plan input:focus-visible + .bf-plan-card {
  outline: 2px solid var(--bf-blue);
  outline-offset: 2px;
}
.bf-plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bf-plan-name {
  font-weight: 700;
  font-size: 1.1rem;
}
.bf-plan-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bf-blue-light);
}
.bf-plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.bf-strike {
  color: #a2a5ae;
  text-decoration: line-through;
  font-size: 1rem;
}
.bf-now {
  font-size: 1.6rem;
  font-weight: 900;
}
.bf-plan-discount {
  align-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #5d8df0 0%, #9b8eee 50%, #e78aae 100%);
  box-shadow: 0 4px 12px rgba(155, 142, 238, 0.35);
  white-space: nowrap;
}
.bf-plan-term {
  margin-top: -4px;
  color: var(--bf-muted);
  font-size: 0.8rem;
}
.bf-plan-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--bf-border);
  font-size: 0.9rem;
}
.bf-plan-features-intro {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bf-muted);
  margin-bottom: 2px;
}
.bf-plan-feature {
  position: relative;
  padding-left: 22px;
  color: var(--bf-ink);
}
.bf-plan-feature::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.35em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--bf-blue-light);
  border-bottom: 2px solid var(--bf-blue-light);
  transform: rotate(-45deg);
}

/* Inputs */
.bf-input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  border: 1.5px solid var(--bf-border);
  border-radius: 8px;
  background: #fff;
  color: var(--bf-ink);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.bf-input:focus {
  outline: none;
  border-color: var(--bf-blue-light);
  box-shadow: 0 0 0 3px rgba(107, 156, 255, 0.2);
}
.bf-input.is-invalid {
  border-color: var(--bf-error);
}
.bf-error {
  color: var(--bf-error);
  font-size: 0.85rem;
  min-height: 0;
  margin-top: 6px;
}
.bf-error:empty {
  display: none;
}
.bf-hint {
  display: block;
  color: var(--bf-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.bf-field-from {
  margin-top: 18px;
}
.bf-field-from .bf-hint {
  color: var(--bf-ink);
  font-weight: 700;
  margin-bottom: 8px;
}
.bf-optional {
  color: var(--bf-muted);
  font-weight: 400;
}
.bf-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.bf-emojis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.bf-emoji {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  border: 1.5px solid var(--bf-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    border-color 0.12s ease,
    background 0.12s ease;
}
.bf-emoji:hover {
  border-color: var(--bf-blue-light);
  background: rgba(107, 156, 255, 0.08);
  transform: translateY(-1px);
}
.bf-emoji:active {
  transform: scale(0.92);
}
.bf-emoji:focus-visible {
  outline: 2px solid var(--bf-blue);
  outline-offset: 2px;
}
#bf-note-count.is-over {
  color: var(--bf-error);
  font-weight: 700;
}
.bf-note-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--bf-muted);
}
.bf-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--bf-blue);
  font-weight: 700;
  cursor: pointer;
}
.bf-link:hover {
  text-decoration: underline;
}
.bf-link[hidden] {
  visibility: hidden;
  display: inline;
}

/* Recipients */
.bf-recipients {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bf-recipient {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.bf-recipient .bf-input {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}
.bf-row-error {
  flex-basis: 100%;
  margin: -4px 0 0 38px; /* line up under the input, past the gift icon */
}
.bf-recipient-icon {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.bf-remove {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid var(--bf-border);
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--bf-muted);
  cursor: pointer;
}
.bf-remove:hover {
  color: var(--bf-error);
  border-color: var(--bf-error);
}
.bf-remove:disabled {
  visibility: hidden;
}
.bf-add {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px dashed var(--bf-blue-light);
  background: transparent;
  color: var(--bf-blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}
.bf-add:hover {
  background: rgba(107, 156, 255, 0.08);
}
.bf-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Summary */
.bf-summary {
  position: sticky;
  top: 100px;
  background: #0f0f14;
  color: #fff;
  border-radius: var(--bf-radius);
  padding: 26px;
  box-shadow: 0 16px 36px rgba(15, 15, 20, 0.25);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bf-summary-title {
  font-size: 1.2rem;
}
.bf-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bf-summary-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}
.bf-summary-rows dt {
  color: #ffffffa6;
}
.bf-summary-rows dd {
  font-weight: 700;
  text-align: right;
}
.bf-summary-save dd {
  color: #7fe0a8;
}
.bf-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid #ffffff26;
  font-size: 1.05rem;
}
.bf-summary-total strong {
  font-size: 2rem;
  font-weight: 900;
}
.bf-summary-note {
  font-size: 0.8rem;
  color: #ffffff8c;
  text-align: center;
}
.bf-form-error {
  text-align: center;
  color: #ff8a89;
  margin-top: -6px;
}

/* FAQ */
.bf-faq {
  max-width: 820px;
}
.bf-faq-item {
  background: var(--bf-card);
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: var(--bf-shadow);
}
.bf-faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.bf-faq-item summary::-webkit-details-marker {
  display: none;
}
.bf-faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  line-height: 1;
  color: var(--bf-blue);
}
.bf-faq-item[open] summary::after {
  content: "\2212";
}
.bf-faq-item p {
  padding: 0 22px 20px;
  color: var(--bf-muted);
}

/* ---------- Sticky gift widget ---------- */
.bf-dock {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: #0f0f14eb;
  color: #fff;
  text-decoration: none;
  border: 1px solid #ffffff26;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(15, 15, 20, 0.35);
  transform: translateX(-50%);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    box-shadow 0.2s ease;
}
.bf-dock:hover {
  box-shadow: 0 18px 44px rgba(93, 141, 240, 0.45);
}
.bf-dock.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 40px));
}
.bf-dock-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.bf-dock-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.bf-dock-text strong {
  font-size: 1rem;
}
.bf-dock-text span {
  font-size: 0.8rem;
  color: #ffffffb3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bf-dock-cta {
  flex-shrink: 0;
  margin-left: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(90deg, #5d8df0 0%, #9b8eee 50%, #e78aae 100%);
}
@media (prefers-reduced-motion: reduce) {
  .bf-dock {
    transition: opacity 0.2s ease;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .bf-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .bf-builder {
    grid-template-columns: minmax(
      0,
      1fr
    ); /* minmax keeps wide children (emoji row) from overflowing */
  }
  .bf-summary {
    position: static;
  }
  .bf-hero-badge {
    position: static;
    order: -1;
    width: 96px;
    height: 96px;
  }
  .bf-hero-badge-num {
    font-size: 1.6rem;
  }
}

@media (max-width: 767px) {
  .bf-hero {
    min-height: 0;
    padding: 110px 16px 64px;
  }
  .bf-hero-title {
    font-size: 2.1rem;
  }
  .bf-hero-subtitle {
    font-size: 1rem;
  }
  .bf-section {
    padding: 56px 0;
  }
  .bf-container {
    padding: 0 16px;
  }
  .bf-section .section-title {
    font-size: 2rem;
  }
  .bf-section-lead {
    font-size: 1rem;
    margin-bottom: 32px;
  }
  .bf-steps,
  .bf-features,
  .bf-plans {
    grid-template-columns: 1fr;
  }
  .bf-fieldset {
    padding: 18px;
  }
  .bf-dock {
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    padding: 8px 8px 8px 14px;
    gap: 10px;
  }
  .bf-dock-cta {
    margin-left: auto;
    padding: 10px 16px;
  }
  /* keep the last content clear of the floating dock */
  .bf-page {
    padding-bottom: 84px;
  }

  /* Hero */
  .bf-hero-content {
    gap: 16px;
  }
  .bf-hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .bf-hero-actions .bf-btn {
    width: 100%;
  }

  /* Steps: compact rows (number left, text right) */
  .bf-steps {
    gap: 10px;
  }
  .bf-step {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 14px;
    align-items: start;
    padding: 16px;
  }
  .bf-step-num {
    width: 36px;
    height: 36px;
    grid-row: span 2;
  }
  .bf-step h3 {
    font-size: 1.05rem;
    margin: 6px 0 4px;
  }
  .bf-step p {
    font-size: 0.9rem;
  }

  /* Features: shorter images */
  .bf-features {
    gap: 14px;
  }
  .bf-feature img {
    aspect-ratio: 16 / 9;
  }
  .bf-feature-copy {
    padding: 14px 16px 18px;
  }
  .bf-privacy-note {
    font-size: 0.9rem;
    margin-top: 24px;
  }

  /* Builder */
  .bf-builder {
    gap: 16px;
  }
  .bf-builder-main {
    gap: 14px;
  }
  .bf-legend {
    font-size: 1.05rem;
    margin-bottom: 14px;
  }
  .bf-plans {
    gap: 10px;
  }
  .bf-plan-card {
    padding: 14px 16px;
    gap: 8px;
  }
  .bf-now {
    font-size: 1.4rem;
  }

  /* Emojis: one swipeable row */
  .bf-emojis {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-right: -18px;
    padding-right: 18px;
    padding-bottom: 2px;
  }
  .bf-emojis::-webkit-scrollbar {
    display: none;
  }
  .bf-emoji {
    flex: 0 0 40px;
    height: 40px;
  }

  /* Recipients */
  .bf-recipient {
    gap: 8px;
  }
  .bf-row-error {
    margin-left: 30px;
  }
  .bf-recipient-icon {
    width: 22px;
    font-size: 1.05rem;
  }
  .bf-add {
    padding: 12px 14px;
  }

  /* Summary */
  .bf-summary {
    padding: 20px;
    gap: 14px;
    scroll-margin-top: 80px;
  }
  .bf-summary-total strong {
    font-size: 1.7rem;
  }

  /* FAQ */
  .bf-faq-item summary {
    padding: 16px;
    font-size: 0.95rem;
  }
  .bf-faq-item p {
    padding: 0 16px 16px;
    font-size: 0.9rem;
  }
}
