/* ==========================================================================
 * GamsGo Creator Partner Onboarding & Hybrid Verification System
 * Design System: Gilroy + Partner Hub Design Tokens (--fc-*) + Concentric Optical Geometry
 * ========================================================================== */

:root {
  --fc-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --fc-ease-snappy: cubic-bezier(0.22, 1, 0.36, 1);
  --fc-dossier-bg: #fafafc;
  --fc-border-hairline: rgba(15, 23, 42, 0.08);
  --fc-emerald-bg: #ecfdf3;
  --fc-emerald-border: rgba(22, 163, 74, 0.24);
  --fc-emerald-text: #15803d;
  --fc-emerald-dot: #22c55e;
}

html {
  scroll-behavior: smooth;
}

/* Compensate for 72px sticky navbar on anchor scroll targets */
#how-it-works,
#our-strengths,
#benefits,
#reviews,
#faq {
  scroll-margin-top: 80px;
}

.fc-tabular {
  font-variant-numeric: tabular-nums;
}

#fcHeroDock [hidden],
#fcOnboardingBackdrop [hidden] {
  display: none !important;
}

/* ==========================================================================
 * 1. Clean Partner Header Overrides
 * ========================================================================== */
.fc-partner-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(var(--fc-color-brand-soft));
  border: 1px solid rgb(var(--fc-color-brand-soft-border));
  color: rgb(var(--fc-color-brand));
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.fc-partner-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 20px;
}

.fc-partner-nav-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgb(var(--fc-color-content-primary));
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s var(--fc-ease-snappy), color 0.18s var(--fc-ease-snappy);
}

.fc-partner-nav-link:hover {
  background: rgb(var(--fc-color-surface-muted));
  color: rgb(var(--fc-color-brand));
}

.fc-partner-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.fc-header-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--fc-border-hairline);
  background: rgb(var(--fc-color-surface-card));
  color: rgb(var(--fc-color-content-primary));
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s var(--fc-ease-snappy), border-color 0.18s ease, background-color 0.18s ease;
}

.fc-header-code-btn:hover {
  background: rgb(var(--fc-color-surface-muted));
  border-color: rgba(15, 23, 42, 0.16);
}

.fc-header-code-btn:active {
  transform: scale(0.98);
}

.fc-header-verify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: rgb(var(--fc-color-brand));
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(239, 83, 79, 0.26);
  transition: transform 0.16s var(--fc-ease-snappy), background-color 0.18s ease, box-shadow 0.18s ease;
}

.fc-header-verify-btn:hover {
  background: rgb(var(--fc-color-brand-hover));
  box-shadow: 0 6px 18px rgba(239, 83, 79, 0.34);
}

.fc-header-verify-btn:active {
  transform: scale(0.98);
}

.fc-header-verify-btn__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.fc-mobile-verify-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 196px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: rgb(var(--fc-color-brand));
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-mobile-verify-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-mobile-verify-pill__avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.fc-header-verify-btn:focus-visible,
.fc-mobile-verify-pill:focus-visible,
.fc-header-code-btn:focus-visible {
  outline: 2px solid rgb(var(--fc-color-brand));
  outline-offset: 2px;
}

@media (max-width: 1120px) {
  .fc-partner-header-badge,
  .fc-header-code-btn {
    display: none;
  }
  .fc-partner-nav-link {
    padding: 0 10px;
    font-size: 14px;
  }
}

/* ==========================================================================
 * 2. Hero Hybrid Creator Dock (Lookup Bar + Personal VIP Invite Card)
 * ========================================================================== */
.fc-hero-dock {
  margin-top: 38px;
  width: 100%;
  max-width: 600px;
}

/* --- Mode A: Lookup Capsule --- */
.fc-lookup-capsule {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.04),
    0 14px 34px -8px rgba(15, 23, 42, 0.09);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fc-lookup-capsule:focus-within {
  border-color: rgb(var(--fc-color-brand));
  box-shadow:
    0 0 0 4px rgba(239, 83, 79, 0.12),
    0 14px 34px -8px rgba(239, 83, 79, 0.16);
}

.fc-lookup-capsule__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: rgb(var(--fc-color-brand));
}

.fc-lookup-capsule__input {
  flex: 1 1 0%;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: none;
  background: transparent;
  color: rgb(var(--fc-color-content-primary));
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
}

.fc-lookup-capsule__input::placeholder {
  color: rgb(var(--fc-color-content-tertiary));
}

.fc-lookup-capsule__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  background: rgb(var(--fc-color-brand));
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s var(--fc-ease-snappy), background-color 0.18s ease;
}

.fc-lookup-capsule__submit:hover {
  background: rgb(var(--fc-color-brand-hover));
}

.fc-lookup-capsule__submit:active {
  transform: scale(0.98);
}

.fc-lookup-capsule__submit[disabled] {
  opacity: 0.72;
  cursor: wait;
}

.fc-hero-dock__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 12px;
  padding: 0 6px;
  font-size: 13px;
  line-height: 18px;
  color: rgb(var(--fc-color-content-secondary));
}

.fc-hero-dock__trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.fc-hero-dock__trust-dot {
  display: none;
}

.fc-hero-dock__samples {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgb(var(--fc-color-content-tertiary));
}

.fc-sample-chip {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--fc-border-hairline);
  background: rgb(var(--fc-color-surface-page));
  color: rgb(var(--fc-color-content-secondary));
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.fc-sample-chip:hover {
  border-color: rgb(var(--fc-color-brand-soft-border));
  background: rgb(var(--fc-color-brand-soft));
  color: rgb(var(--fc-color-brand));
}

.fc-lookup-feedback {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgb(var(--fc-color-brand-soft));
  border: 1px solid rgb(var(--fc-color-brand-soft-border));
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

/* --- Mode B: Personal VIP Invite Card in Hero (Concentric: 28px outer -> 16px pad -> 12px inner) --- */
.fc-hero-invite-card {
  padding: 16px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.04),
    0 20px 44px -12px rgba(15, 23, 42, 0.12);
  animation: fcCardReveal 0.36s var(--fc-ease-out-expo) both;
}

@keyframes fcCardReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fc-hero-invite-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.fc-approved-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 16px;
}

.fc-hero-invite-card__switch {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgb(var(--fc-color-content-tertiary));
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.fc-hero-invite-card__switch:hover {
  color: rgb(var(--fc-color-content-primary));
}

.fc-hero-invite-card__channel {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fc-avatar-badge-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
}

.fc-avatar-badge-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}

.fc-avatar-verified {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.fc-hero-invite-card__identity {
  min-width: 0;
  flex: 1 1 0%;
}

.fc-hero-invite-card__title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fc-hero-invite-card__title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 24px;
  color: rgb(var(--fc-color-content-primary));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-hero-invite-card__sub {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: rgb(var(--fc-color-content-secondary));
  font-variant-numeric: tabular-nums;
}

.fc-hero-invite-card__offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--fc-dossier-bg);
  border: 1px solid var(--fc-border-hairline);
}

.fc-hero-invite-card__rate-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgb(var(--fc-color-content-secondary));
}

.fc-hero-invite-card__rate-val {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  color: rgb(var(--fc-color-content-primary));
  font-variant-numeric: tabular-nums;
}

.fc-hero-invite-card__rate-val span {
  font-size: 15px;
  font-weight: 700;
  color: rgb(var(--fc-color-brand));
}

.fc-hero-invite-card__rate-val .fc-offer-unit,
.fc-dossier-earnings__value .fc-offer-unit {
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--fc-color-content-secondary));
}

.fc-hero-invite-card__code-box {
  text-align: right;
}

.fc-hero-invite-card__code-pill {
  display: inline-block;
  margin-top: 2px;
  padding: 3px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  color: rgb(var(--fc-color-content-primary));
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.fc-hero-invite-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.fc-hero-invite-card__cta {
  flex: 1 1 0%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgb(var(--fc-color-brand));
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
  transition: transform 0.16s var(--fc-ease-snappy), background-color 0.18s ease;
}

.fc-hero-invite-card__cta:hover {
  background: rgb(var(--fc-color-brand-hover));
}

.fc-hero-invite-card__cta:active {
  transform: scale(0.985);
}

@media (max-width: 800px) {
  .fc-hero-dock {
    max-width: 100%;
    margin-top: 24px;
  }
  .fc-hero-dock__meta {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .fc-lookup-capsule {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border-radius: 20px;
    gap: 8px;
  }
  .fc-lookup-capsule__icon {
    display: none;
  }
  .fc-lookup-capsule__input {
    flex: 0 0 auto;
    width: 100%;
    min-height: 46px;
    height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 16px;
    text-align: center;
  }
  .fc-hero-dock__trust {
    display: block;
    text-align: center;
    text-wrap: balance;
  }
  .fc-dossier-finder__input,
  .fc-contact-input {
    font-size: 16px;
  }
  .fc-hero-invite-card__top {
    flex-wrap: wrap;
    gap: 6px 10px;
  }
  .fc-hero-invite-card__switch {
    white-space: nowrap;
  }
  .fc-lookup-capsule__submit {
    width: 100%;
    height: 46px;
    border-radius: 12px;
  }
  .fc-hero-invite-card {
    padding: 14px;
    border-radius: 22px;
    text-align: left;
  }
  .fc-hero-invite-card__code-box {
    text-align: left;
  }
  /* DP9: Mobile hero spacing optimization */
  .fc-hero-dock {
    margin-top: 20px;
  }
  .fc-hero-dock__meta {
    margin-top: 8px;
    font-size: 12px;
  }
  .fc-hero-dock__samples {
    display: none;
  }
  .fc-hero-invite-card__cta {
    font-size: 14px;
    min-height: 46px;
    padding: 10px 16px;
  }
}


/* ==========================================================================
 * 3. Two-Step Creator Sponsorship Deal Sheet (.fc-deal-modal)
 *    Architectural 1px grid, monospace numeric tokens, optical vertical balance
 * ========================================================================== */
.fc-modal-backdrop {
  --fc-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 54px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--fc-ease-out-expo), visibility 0.2s ease;
}

.fc-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  overscroll-behavior: contain;
}

html:has(.fc-modal-backdrop.is-open),
body:has(.fc-modal-backdrop.is-open) {
  overflow: hidden !important;
}

.fc-deal-modal [hidden] {
  display: none !important;
}

.fc-deal-modal {
  position: relative;
  width: 100%;
  max-width: 488px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 24px 56px -12px rgba(15, 23, 42, 0.26);
  padding: 20px 22px 22px;
  transform: translateY(8px) scale(0.99);
  transition: transform 0.22s var(--fc-ease-out-expo);
}

.fc-modal-backdrop.is-open .fc-deal-modal {
  transform: translateY(0) scale(1);
}

.fc-deal-grabber {
  display: none;
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
  margin: 0 auto 12px;
}

/* Top bar */
.fc-deal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid #eef2f6;
}

.fc-deal-step-tag {
  font-family: var(--fc-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #475569;
  white-space: nowrap;
}

.fc-deal-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.fc-deal-text-btn {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fc-deal-text-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.fc-deal-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fc-deal-close:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* Finder View */
.fc-deal-finder {
  padding-top: 16px;
}

.fc-deal-finder__title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.fc-deal-finder__sub {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #475569;
}

.fc-deal-finder__form {
  display: flex;
  gap: 8px;
}

.fc-deal-finder__input {
  flex: 1 1 0%;
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fc-deal-finder__input:focus {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.fc-deal-finder__btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 0;
  background: #0f172a;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.fc-deal-finder__btn:hover {
  background: #1e293b;
}

.fc-deal-finder__btn:active {
  transform: scale(0.99);
}

.fc-deal-finder__spec {
  margin-top: 16px;
  border-top: 1px solid #eef2f6;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  color: #475569;
}

/* Channel Identity Row (Step 1) */
.fc-deal-channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eef2f6;
}

.fc-deal-channel__left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.fc-deal-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.fc-deal-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.fc-deal-avatar__check {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-deal-channel__meta {
  min-width: 0;
}

.fc-deal-channel__name {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-deal-channel__sub {
  margin-top: 1px;
  font-size: 12.5px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-deal-tier-tag {
  flex-shrink: 0;
  font-family: var(--fc-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

/* Rate & Segmented Switcher */
.fc-deal-rate-block {
  padding: 15px 0 14px;
}

.fc-deal-rate-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.fc-deal-price {
  font-family: var(--fc-mono);
  font-variant-numeric: tabular-nums;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #0f172a;
}

.fc-deal-revshare {
  font-family: var(--fc-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 700;
  color: #ef5350;
}

.fc-deal-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  margin-top: 12px;
}

.fc-deal-seg__btn {
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fc-deal-seg__btn:hover {
  color: #0f172a;
}

.fc-deal-seg__btn.is-selected {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

/* Architectural 1px Key-Value Spec Table */
.fc-deal-spec {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
  margin-bottom: 14px;
}

.fc-deal-spec__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  font-size: 12.5px;
  border-bottom: 1px solid #e2e8f0;
}

.fc-deal-spec__row:last-child {
  border-bottom: 0;
}

.fc-deal-spec__key {
  color: #64748b;
  font-weight: 600;
  flex-shrink: 0;
}

.fc-deal-spec__val {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
}

.fc-deal-code-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-family: var(--fc-mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fc-deal-code-btn:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

/* Compact Uploads Strip (Desktop only) */
.fc-deal-uploads {
  margin-bottom: 15px;
}

.fc-deal-uploads__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.fc-deal-uploads__grid[data-count="2"] {
  grid-template-columns: repeat(2, 1fr);
}

.fc-deal-uploads__grid[data-count="1"] {
  grid-template-columns: 1fr;
}

.fc-dossier-thumb {
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
}

.fc-dossier-thumb__media {
  height: 48px;
  width: 100%;
}

.fc-dossier-thumb__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Primary Step 1 CTA (tactile, zero neon glow) */
.fc-deal-primary-btn {
  width: 100%;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgb(var(--fc-color-brand));
  color: #ffffff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.fc-deal-primary-btn:hover {
  background: rgb(var(--fc-color-brand-hover));
}

.fc-deal-primary-btn:active {
  transform: translateY(1px);
}

/* Step 2: Connect Channel Pane */
.fc-deal-step2 {
  padding-top: 14px;
}

.fc-deal-receipt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

.fc-deal-receipt__left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fc-deal-receipt__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.fc-deal-receipt__handle {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-deal-receipt__right {
  font-family: var(--fc-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  flex-shrink: 0;
}

.fc-deal-step2__title {
  margin: 0 0 5px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.fc-deal-step2__desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.48;
  color: #475569;
}

.fc-deal-note {
  padding: 10px 12px;
  border-radius: 3px 8px 8px 3px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 2.5px solid #0f172a;
  font-size: 12.5px;
  line-height: 1.42;
  color: #334155;
  margin-bottom: 16px;
}

.fc-deal-oauth-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 6px 0 2px;
}

.fc-deal-portal-foot {
  text-align: center;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 8px;
}

/* Mobile / Alternative Device Contact Fallback */
.fc-deal-hold {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef2f6;
}

.fc-deal-hold__toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: #475569;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 4px;
  text-align: center;
}

.fc-deal-hold__toggle span {
  color: rgb(var(--fc-color-brand));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fc-deal-hold__box {
  padding: 11px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.fc-deal-hold__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.fc-deal-hold__row {
  display: flex;
  gap: 6px;
}

.fc-deal-hold__input {
  flex: 1 1 0%;
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  font-size: 16px;
}

.fc-deal-hold__input:focus {
  outline: none;
  border-color: #0f172a;
}

.fc-deal-hold__save {
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  background: #0f172a;
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.fc-deal-hold__saved {
  padding: 9px 12px;
  border-radius: 8px;
  background: #ecfdf3;
  border: 1px solid rgba(22, 163, 74, 0.24);
  color: #15803d;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Focus-visible accessibility */
.fc-deal-close:focus-visible,
.fc-deal-text-btn:focus-visible,
.fc-deal-seg__btn:focus-visible,
.fc-deal-code-btn:focus-visible,
.fc-deal-primary-btn:focus-visible,
.fc-deal-finder__btn:focus-visible,
.fc-deal-hold__toggle:focus-visible,
.fc-deal-hold__save:focus-visible {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

/* Mobile Floating Tray (<= 768px — iOS Setup / Family detached sheet) */
@media (max-width: 768px) {
  .fc-modal-backdrop {
    align-items: flex-end;
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .fc-deal-modal {
    max-width: 488px;
    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px));
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
      0 1px 2px rgba(15, 23, 42, 0.06),
      0 20px 48px -10px rgba(15, 23, 42, 0.34);
    padding: 16px 17px 20px;
    transform: translateY(18px) scale(0.99);
  }

  .fc-modal-backdrop.is-open .fc-deal-modal {
    transform: translateY(0) scale(1);
  }

  .fc-deal-grabber {
    display: none;
  }

  .fc-deal-uploads {
    display: none !important;
  }

  .fc-deal-finder__form {
    flex-direction: column;
    gap: 8px;
  }

  .fc-deal-finder__input {
    flex: 0 0 auto;
    width: 100%;
    min-height: 46px;
    height: 46px;
    font-size: 16px;
  }

  .fc-deal-finder__btn {
    width: 100%;
    min-height: 46px;
    height: 46px;
    font-size: 15px;
  }

  .fc-deal-step-tag {
    font-size: 10.5px;
    letter-spacing: 0.015em;
  }

  .fc-deal-text-btn {
    padding: 4px 8px;
    font-size: 11.5px;
  }

  .fc-deal-price {
    font-size: 32px;
  }
}

@media (max-width: 400px) {
  .fc-deal-seg__btn {
    font-size: 11.5px;
    padding: 8px 6px;
    white-space: nowrap;
  }
}

/* Offline mobile navigation drawer */
.fc-offline-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9980;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.fc-offline-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fc-offline-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 9985;
  width: min(300px, 84vw);
  background: #ffffff;
  box-shadow: 12px 0 36px rgba(15, 23, 42, 0.16);
  transform: translateX(-102%);
  transition: transform 0.24s var(--fc-ease-out-expo);
  display: flex;
  flex-direction: column;
}

.fc-offline-drawer.is-open {
  transform: translateX(0);
}

.fc-offline-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f6;
}

.fc-offline-drawer__close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 18px;
  cursor: pointer;
}

.fc-offline-drawer__body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.fc-offline-drawer__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-offline-drawer__group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.fc-offline-drawer__group a {
  color: #0f172a;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 0;
}

/* ==========================================================================
 * 4. Shared Spinners, Focus-Visible, Marquee Mask & Reduced Motion
 * ========================================================================== */
.fc-spinner {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.2px solid rgba(15, 23, 42, 0.18);
  border-top-color: #0f172a;
  animation: fcSpin 0.7s linear infinite;
}

.fc-spinner--light {
  border-color: rgba(255, 255, 255, 0.32);
  border-top-color: #ffffff;
}

@keyframes fcSpin {
  to {
    transform: rotate(360deg);
  }
}

.fc-lookup-capsule__submit:focus-visible,
.fc-header-verify-btn:focus-visible,
.fc-header-code-btn:focus-visible,
.fc-hero-invite-card__cta:focus-visible,
.fc-hero-invite-card__switch:focus-visible,
.fc-mobile-verify-pill:focus-visible {
  outline: 2px solid #0f172a;
  outline-offset: 2px;
}

.fc-hero-invite-card__title,
.fc-deal-finder__title,
.fc-deal-step2__title {
  text-wrap: balance;
}

.fc-hero-invite-card__switch {
  color: rgb(var(--fc-color-content-secondary));
}

body:has(.fc-offline-drawer.is-open) .fc-mobile-verify-pill,
body:has(.fc-offline-drawer.is-open) .fc-header-verify-btn {
  visibility: hidden;
  pointer-events: none;
}

.partner-hub-notice[data-fc009] {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

@media (prefers-reduced-motion: reduce) {
  .fc-deal-modal,
  .fc-modal-backdrop,
  .fc-hero-invite-card,
  .fc-offline-drawer {
    animation: none !important;
    transition: none !important;
  }
}
