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

:root {
  --gg-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --gg-ease-snappy: cubic-bezier(0.22, 1, 0.36, 1);
  --gg-dossier-bg: #fafafc;
  --gg-border-hairline: rgba(15, 23, 42, 0.08);
  --gg-emerald-bg: #ecfdf3;
  --gg-emerald-border: rgba(22, 163, 74, 0.24);
  --gg-emerald-text: #15803d;
  --gg-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;
}

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

#ggHeroDock [hidden],
#ggOnboardingBackdrop [hidden] {
  display: none !important;
}

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

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

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

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

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

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

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

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

.gg-header-verify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: rgb(var(--gg-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(--gg-ease-snappy), background-color 0.18s ease, box-shadow 0.18s ease;
}

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

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

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

.gg-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(--gg-color-brand));
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.gg-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);
}

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

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

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

/* --- Mode A: Lookup Capsule --- */
.gg-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;
}

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

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

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

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

.gg-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(--gg-color-brand));
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s var(--gg-ease-snappy), background-color 0.18s ease;
}

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

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

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

.gg-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(--gg-color-content-secondary));
}

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

.gg-hero-dock__trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gg-emerald-dot);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

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

.gg-sample-chip {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--gg-border-hairline);
  background: rgb(var(--gg-color-surface-page));
  color: rgb(var(--gg-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;
}

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

.gg-lookup-feedback {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgb(var(--gg-color-brand-soft));
  border: 1px solid rgb(var(--gg-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) --- */
.gg-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: ggCardReveal 0.36s var(--gg-ease-out-expo) both;
}

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

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

.gg-approved-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gg-emerald-bg);
  border: 1px solid var(--gg-emerald-border);
  color: var(--gg-emerald-text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 16px;
}

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

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

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

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

.gg-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);
}

.gg-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;
}

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

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

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

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

.gg-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(--gg-dossier-bg);
  border: 1px solid var(--gg-border-hairline);
}

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

.gg-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(--gg-color-content-primary));
  font-variant-numeric: tabular-nums;
}

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

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

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

.gg-hero-invite-card__code-pill {
  display: inline-block;
  margin-top: 2px;
  padding: 3px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px dashed rgba(239, 83, 79, 0.45);
  color: rgb(var(--gg-color-content-primary));
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

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

.gg-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: 999px;
  border: 0;
  background: rgb(var(--gg-color-brand));
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px -4px rgba(239, 83, 79, 0.38);
  transition: transform 0.16s var(--gg-ease-snappy), background-color 0.18s ease;
}

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

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

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

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

/* ==========================================================================
 * 3. Split-View Creator Onboarding & Google Verification Modal (Concept A)
 *    Concentric Geometry: Outer 32px -> Padding 32px -> Inner Cards 20px
 * ========================================================================== */
.gg-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 4200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s var(--gg-ease-out-expo);
}

.gg-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gg-split-modal {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  width: 100%;
  max-width: 940px;
  max-height: min(90vh, 760px);
  border-radius: 32px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.05),
    0 32px 72px -12px rgba(15, 23, 42, 0.24);
  overflow: hidden;
  font-family: Gilroy, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: rgb(var(--gg-color-content-primary));
  transform: translateY(14px) scale(0.975);
  opacity: 0;
  transition: transform 0.32s var(--gg-ease-out-expo), opacity 0.26s var(--gg-ease-out-expo);
}

.gg-split-modal.is-finder-only {
  grid-template-columns: 1fr;
  max-width: 520px;
}

.gg-split-modal.is-finder-only .gg-dossier-col {
  border-right: 0;
}

.gg-modal-backdrop [hidden],
.gg-hero-dock [hidden] {
  display: none !important;
}

.gg-modal-backdrop.is-open .gg-split-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.gg-split-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gg-border-hairline);
  background: rgba(255, 255, 255, 0.9);
  color: rgb(var(--gg-color-content-secondary));
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s var(--gg-ease-snappy);
}

.gg-split-modal__close:hover {
  background: rgb(var(--gg-color-surface-muted));
  color: rgb(var(--gg-color-content-primary));
}

.gg-split-modal__close:active {
  transform: scale(0.94);
}

/* --- Left Column: Creator Invite Dossier --- */
.gg-dossier-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  background: var(--gg-dossier-bg);
  border-right: 1px solid var(--gg-border-hairline);
  overflow-y: auto;
}

.gg-dossier-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}

.gg-dossier-eyebrow__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgb(var(--gg-color-content-primary));
}

.gg-dossier-switch-btn {
  flex-shrink: 0;
  white-space: nowrap;
  border: 0;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: rgb(var(--gg-color-content-secondary));
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.gg-dossier-switch-btn:hover {
  background: rgba(15, 23, 42, 0.09);
  color: rgb(var(--gg-color-content-primary));
}

.gg-dossier-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gg-dossier-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
}

.gg-dossier-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

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

.gg-dossier-meta {
  min-width: 0;
  flex: 1 1 0%;
}

.gg-dossier-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gg-dossier-name {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 26px;
  letter-spacing: -0.015em;
  color: rgb(var(--gg-color-content-primary));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gg-dossier-subline {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: rgb(var(--gg-color-content-secondary));
  font-variant-numeric: tabular-nums;
}

/* Latest uploads strip */
.gg-dossier-uploads {
  margin-top: 20px;
}

.gg-dossier-uploads__label {
  font-size: 12.5px;
  font-weight: 700;
  color: rgb(var(--gg-color-content-secondary));
  margin-bottom: 8px;
}

.gg-dossier-uploads__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gg-dossier-uploads__grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.gg-dossier-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.gg-dossier-thumb__media {
  width: 100%;
  height: 100%;
}

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

.gg-dossier-uploads__grid[data-count="1"] .gg-dossier-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  aspect-ratio: auto;
  padding: 6px;
  border-radius: 12px;
  background: #ffffff;
}

.gg-dossier-uploads__grid[data-count="1"] .gg-dossier-thumb__media {
  flex: 0 0 108px;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  overflow: hidden;
  background: #e2e8f0;
}

.gg-dossier-thumb__meta {
  min-width: 0;
  flex: 1 1 auto;
  padding-right: 4px;
}

.gg-dossier-thumb__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 17px;
  color: rgb(var(--gg-color-content-primary));
}

.gg-dossier-thumb.is-fallback .gg-dossier-thumb__media {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.gg-dossier-tier-row {
  margin-top: 18px;
}

/* Earnings Card inside Dossier (20px concentric radius) */
.gg-dossier-earnings {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--gg-border-hairline);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.gg-dossier-earnings__label {
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--gg-color-content-secondary));
}

.gg-dossier-earnings__value {
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  transition: transform 0.18s var(--gg-ease-snappy), opacity 0.18s ease;
}

.gg-dossier-earnings__value.is-updating {
  opacity: 0.45;
  transform: translateY(2px);
}

.gg-dossier-earnings__usd {
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: -0.02em;
  color: rgb(var(--gg-color-content-primary));
}

.gg-dossier-earnings__rev {
  font-size: 16px;
  font-weight: 700;
  color: rgb(var(--gg-color-brand));
}

.gg-dossier-promo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gg-border-hairline);
  font-size: 13px;
  color: rgb(var(--gg-color-content-secondary));
}

.gg-dossier-promo-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(239, 83, 79, 0.45);
  background: rgb(var(--gg-color-brand-soft));
  color: rgb(var(--gg-color-brand));
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

/* Finder View inside Left Column (when user opens modal without a channel yet) */
.gg-dossier-finder {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gg-dossier-finder__box {
  padding: 20px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--gg-border-hairline);
}

.gg-dossier-finder__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: rgb(var(--gg-color-content-primary));
  margin-bottom: 10px;
}

.gg-dossier-finder__input-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gg-dossier-finder__input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  background: var(--gg-dossier-bg);
  color: rgb(var(--gg-color-content-primary));
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.gg-dossier-finder__input:focus {
  background: #ffffff;
  border-color: rgb(var(--gg-color-brand));
}

.gg-dossier-finder__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  background: rgb(var(--gg-color-brand));
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.16s var(--gg-ease-snappy);
}

.gg-dossier-finder__btn:hover {
  background: rgb(var(--gg-color-brand-hover));
}

.gg-dossier-finder__perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgb(var(--gg-color-content-secondary));
}

.gg-dossier-finder__perks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Right Column: Format & Google OAuth Verification --- */
.gg-verify-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  background: #ffffff;
  overflow-y: auto;
}

.gg-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 36px;
  font-size: 13px;
  font-weight: 700;
  color: rgb(var(--gg-color-content-tertiary));
}

.gg-stepper__step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gg-stepper__step.is-done {
  color: var(--gg-emerald-text);
}

.gg-stepper__step.is-current {
  color: rgb(var(--gg-color-content-primary));
}

.gg-format-section {
  margin-top: 22px;
}

.gg-field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: rgb(var(--gg-color-content-primary));
  margin-bottom: 10px;
}

.gg-format-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gg-format-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--gg-border-hairline);
  background: #ffffff;
  color: rgb(var(--gg-color-content-primary));
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.14s var(--gg-ease-snappy);
}

.gg-format-option:hover {
  border-color: rgba(239, 83, 79, 0.36);
  background: #fffafa;
}

.gg-format-option.is-selected {
  border-color: rgb(var(--gg-color-brand));
  background: rgb(var(--gg-color-brand-soft));
}

.gg-format-option__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gg-format-radio {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gg-format-option.is-selected .gg-format-radio {
  border-color: rgb(var(--gg-color-brand));
  background: rgb(var(--gg-color-brand));
}

.gg-format-option.is-selected .gg-format-radio::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

.gg-format-option__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.gg-format-option__desc {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgb(var(--gg-color-content-secondary));
  margin-top: 2px;
}

.gg-format-option__rate {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: rgb(var(--gg-color-brand));
  font-variant-numeric: tabular-nums;
}

.gg-contact-field {
  margin-top: 16px;
}

.gg-contact-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: var(--gg-dossier-bg);
  color: rgb(var(--gg-color-content-primary));
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.gg-contact-input:focus-visible {
  background: #ffffff;
  border-color: rgb(var(--gg-color-brand));
  box-shadow: 0 0 0 3px rgba(239, 83, 79, 0.14);
}

/* Trust & Reassurance Callout */
.gg-oauth-reassurance {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f4f6f9;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  line-height: 19px;
}

.gg-oauth-reassurance strong {
  color: #0f172a;
  font-weight: 700;
}

/* Official White Google OAuth 2.0 Button */
.gg-google-btn-wrap {
  margin-top: 18px;
}

.gg-google-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1.5px solid #dadce0;
  background: #ffffff;
  color: #1f1f1f;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.05),
    0 6px 16px -4px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.16s var(--gg-ease-snappy),
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.gg-google-oauth-btn:hover {
  background: #f8fafc;
  border-color: #c4c7c5;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 10px 24px -6px rgba(15, 23, 42, 0.12);
}

.gg-google-oauth-btn:active {
  transform: scale(0.985);
}

.gg-google-oauth-btn:focus-visible {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}

.gg-google-oauth-btn[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
  background: #f8fafc;
  color: rgb(var(--gg-color-content-secondary));
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: none;
  transform: none;
}

.gg-google-oauth-btn[disabled]:hover {
  transform: none;
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: none;
}

.gg-google-subnote {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: rgb(var(--gg-color-content-secondary));
}

/* Spinner for lookup & Google OAuth transition */
.gg-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: #4285f4;
  animation: ggSpin 0.7s linear infinite;
}

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

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

/* --- Stub Confirmation Screen inside Right Column --- */
.gg-oauth-stub-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  height: 100%;
  animation: ggCardReveal 0.3s var(--gg-ease-out-expo) both;
}

.gg-oauth-stub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 700;
}

.gg-oauth-stub-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.02em;
  color: rgb(var(--gg-color-content-primary));
}

.gg-oauth-stub-desc {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
  color: rgb(var(--gg-color-content-secondary));
}

.gg-oauth-stub-summary {
  padding: 16px;
  border-radius: 16px;
  background: var(--gg-dossier-bg);
  border: 1px solid var(--gg-border-hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.gg-oauth-stub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gg-oauth-stub-row strong {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.gg-oauth-stub-row span:first-child {
  color: rgb(var(--gg-color-content-secondary));
  font-weight: 500;
}

.gg-oauth-stub-row strong {
  color: rgb(var(--gg-color-content-primary));
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.gg-oauth-stub-back {
  align-self: flex-start;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--gg-border-hairline);
  background: #ffffff;
  color: rgb(var(--gg-color-content-primary));
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.gg-oauth-stub-back:hover {
  background: rgb(var(--gg-color-surface-muted));
}

/* Responsive Modal Layout (Tablet & Mobile Bottom Sheet) */
@media (max-width: 820px) {
  .gg-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .gg-split-modal {
    grid-template-columns: 1fr;
    max-width: 100%;
    max-height: 92vh;
    border-radius: 28px 28px 0 0;
    overflow-y: auto;
  }
  .gg-dossier-col {
    padding: 22px 20px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--gg-border-hairline);
    overflow-y: visible;
  }
  .gg-split-modal.is-finder-only .gg-dossier-col {
    border-bottom: 0;
  }
  .gg-dossier-eyebrow {
    padding-right: 48px;
  }
  .gg-stepper {
    padding-right: 0;
  }
  .gg-verify-col {
    padding: 20px 20px 28px;
    overflow-y: visible;
  }

  /* Mobile sticky bottom CTA — keep Google OAuth button always visible */
  .gg-google-btn-wrap {
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding: 12px 0 4px;
    margin: 12px -20px -28px;
    padding-left: 20px;
    padding-right: 20px;
    background: linear-gradient(to top, #ffffff 80%, rgba(255,255,255,0));
  }
}

/* ==========================================================================
 * 4. Quick Wins: Focus-Visible, text-wrap, :active states
 * ========================================================================== */

/* --- QW1: Universal focus-visible for all custom interactive elements --- */
.gg-lookup-capsule__submit:focus-visible,
.gg-header-verify-btn:focus-visible,
.gg-header-code-btn:focus-visible,
.gg-hero-invite-card__cta:focus-visible,
.gg-hero-invite-card__switch:focus-visible,
.gg-split-modal__close:focus-visible,
.gg-dossier-switch-btn:focus-visible,
.gg-dossier-finder__btn:focus-visible,
.gg-oauth-stub-back:focus-visible,
.gg-mobile-verify-pill:focus-visible {
  outline: 2px solid rgb(var(--gg-color-brand));
  outline-offset: 2px;
}

.gg-format-option:focus-visible {
  outline: 2px solid rgb(var(--gg-color-brand));
  outline-offset: 1px;
}

.gg-sample-chip:focus-visible {
  outline: 2px solid rgb(var(--gg-color-brand));
  outline-offset: 1px;
}

.gg-dossier-finder__input:focus-visible,
.gg-contact-input:focus-visible {
  outline: none; /* handled by border-color change */
}

/* --- QW2: text-wrap balance on headlines --- */
.gg-dossier-eyebrow__title,
.gg-oauth-stub-title,
.gg-dossier-name,
.gg-hero-invite-card__title {
  text-wrap: balance;
}

/* --- QW3: :active tactile states for format pills & sample chips --- */
.gg-format-option:active {
  transform: scale(0.985);
}

.gg-sample-chip:active {
  transform: scale(0.96);
}

.gg-dossier-switch-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
 * 5. Medium Fixes: Contrast, stepper, tertiary color
 * ========================================================================== */

/* --- M6: Darken tertiary to secondary in our components for WCAG compliance --- */
.gg-hero-dock__samples {
  color: rgb(var(--gg-color-content-secondary));
}

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

.gg-stepper {
  color: rgb(var(--gg-color-content-secondary));
  font-size: 14px;
}

.gg-stepper__step.is-current {
  color: rgb(var(--gg-color-content-primary));
  font-weight: 700;
}

/* ==========================================================================
 * 6. Deep Polish: Fluid typography, measure control, mobile optimization
 * ========================================================================== */

/* --- DP7: Fluid typography with clamp() --- */
.gg-dossier-earnings__usd {
  font-size: clamp(1.375rem, 2vw + 0.5rem, 1.75rem);
}

.gg-dossier-name {
  font-size: clamp(1.125rem, 1.5vw + 0.5rem, 1.3125rem);
}

.gg-oauth-stub-title {
  font-size: clamp(1.125rem, 1.5vw + 0.5rem, 1.375rem);
}

/* --- Fix: Hide mobile verify pill when drawer is open (z-index leak) --- */
body:has(.gg-offline-drawer.is-open) .gg-mobile-verify-pill,
body:has(.gg-offline-drawer.is-open) .gg-header-verify-btn {
  visibility: hidden;
  pointer-events: none;
}

/* --- Smooth fade mask on hero floating activity marquee --- */
.affiliate-program-notice[data-v-111ef71b] {
  -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) {
  .gg-split-modal,
  .gg-modal-backdrop,
  .gg-hero-invite-card,
  .gg-oauth-stub-screen {
    animation: none !important;
    transition: none !important;
  }
}
