:root{
  --paper: #FFFFFF;
  --paper-deep: #F3F2EF;
  --ink: #1B1F23;
  --ink-soft: #56687A;
  --blue: #0A66C2;
  --blue-deep: #004182;
  --blue-pale: #EEF3FA;
  --flagged: #B3261E;
  --flagged-pale: #FBEAE9;
  --line: #DCE1E6;
  --max: 1080px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

p{ margin: 0; }

a{ color: inherit; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.eyebrow{
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- header ---------- */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 1.25rem 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
main{ padding-top: 4.6875rem; }
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}
.brand{
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.brand-icon{
  display: block;
}
.wordmark{
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.wordmark-dot{ color: var(--ink-soft); }

.header-actions{
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.icon-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.icon-badge{
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--blue);
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.icon-btn:hover{ color: var(--ink); border-color: var(--ink-soft); }
.icon-btn:focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }
.icon-btn svg{ width: 1.15rem; height: 1.15rem; }
.icon-btn:disabled{ opacity: 0.4; cursor: not-allowed; }
.icon-btn:disabled:hover{ color: var(--ink-soft); border-color: var(--line); }

.icon-btn--danger{ color: var(--flagged); }
.icon-btn--danger:hover{ color: var(--flagged); border-color: var(--flagged); background: var(--flagged-pale); }
.icon-btn--danger:focus-visible{ outline-color: var(--flagged); }

/* ---------- drawer ---------- */
.drawer-overlay{
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  background: rgba(16, 20, 24, 0);
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}
.drawer-overlay[hidden]{ display: none; }
.drawer-overlay.open{
  background: rgba(16, 20, 24, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.drawer{
  width: 100%;
  max-width: 320px;
  height: 100%;
  background: var(--paper);
  box-shadow: -16px 0 40px rgba(13, 13, 12, 0.16);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.drawer-overlay.open .drawer{ transform: translateX(0); }

.drawer-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.drawer-nav{
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.drawer-link{
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 0.85em 0.6em;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.drawer-link:hover{ background: var(--paper-deep); }
.drawer-link:focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }

.drawer-footer{
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.drawer-footer .btn-signin{
  width: 100%;
  justify-content: center;
}

/* ---------- stat tiles ---------- */
.stats-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
}
.stats-grid--hero{ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.stat-tile{
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.stat-tile-value{
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--ink);
}
.stats-grid--hero .stat-tile-value{
  font-size: 2.6rem;
  color: var(--blue);
}
.stat-tile-label{
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.stat-tile-sub{
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.75;
}
.stat-tile--negative .stat-tile-value{ color: var(--flagged); }

.btn-signin{
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
  background: transparent;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  padding: 0.5em 1.25em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-signin:hover{ background: var(--blue-pale); }
.btn-signin:focus-visible{ outline: 2px solid var(--blue-deep); outline-offset: 2px; }
.btn-signin--danger{ color: var(--flagged); border-color: var(--flagged); }
.btn-signin--danger:hover{ background: var(--flagged-pale); }
.btn-signin--danger:focus-visible{ outline-color: var(--flagged); }

.stamp{
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.35em 0.85em;
  border-radius: 999px;
}
.stamp--ink{ color: var(--ink-soft); background: var(--paper-deep); }
.stamp--blue{ color: var(--blue-deep); background: var(--blue-pale); }
.stamp--flagged{ color: var(--flagged); background: var(--flagged-pale); }
a.stamp{ text-decoration: none; transition: filter 0.15s ease; }
a.stamp:hover{ filter: brightness(0.96); }
a.stamp:focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- inline notification ---------- */
.notification{
  position: relative;
  margin: 2rem 0;
  padding: 1.25rem 3rem 1.25rem 1.5rem;
  background: var(--blue-pale);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.notification-title{
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.notification-body{
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.notification-close{
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.notification-close:hover{ color: var(--ink); border-color: var(--ink-soft); }
.notification-close:focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- hero ---------- */
.hero{
  position: relative;
  min-height: calc(100vh - 4.6875rem);
  display: flex;
  align-items: center;
  padding: 3.5rem 0;
  background: url('/images/ghibli-cool-office-11.jpg') center/cover no-repeat;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0.8) 55%, rgba(255,255,255,0.62));
}
.hero--affiliates{
  margin-top: -6px;
  min-height: calc(100vh - 4.6875rem + 6px);
  background: url('/images/inspirational-beach-scene.jpg') center/cover no-repeat;
}
.hero--affiliates::before{
  content: none;
}
.hero--affiliates .hero-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero--affiliates .eyebrow{
  width: fit-content;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5em 1.15em;
  border-radius: 12px;
}
.hero--affiliates .hero-sub{
  width: fit-content;
  background: rgba(255, 255, 255, 0.8);
  padding: 1em 1.5em;
  border-radius: 12px;
}
.hero--affiliates .hero-headline{
  width: fit-content;
  font-size: clamp(1.8rem, 3.6vw + 0.8rem, 3.2rem);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.75em 1.25em;
  border-radius: 12px;
}
.hero--affiliates .trust-strip{
  justify-content: center;
}
.hero--affiliates .cta--static{
  background: rgba(255, 255, 255, 0.8);
}
.hero--affiliates .cta--static:hover{
  background: rgba(255, 255, 255, 0.8);
}
.hero--landing::before{
  content: none;
}
.hero--landing .hero-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero--landing .trust-strip{
  justify-content: center;
}
.hero--landing .eyebrow{
  width: fit-content;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5em 1.15em;
  border-radius: 12px;
}
.hero--landing .hero-headline{
  width: fit-content;
  font-size: clamp(1.8rem, 3.6vw + 0.8rem, 3.2rem);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.75em 1.25em;
  border-radius: 12px;
}
.hero--landing .hero-sub{
  width: fit-content;
  background: rgba(255, 255, 255, 0.8);
  padding: 1em 1.5em;
  border-radius: 12px;
}
.hero--landing .cta--static{
  background: rgba(255, 255, 255, 0.8);
}
.hero--landing .cta--static:hover{
  background: rgba(255, 255, 255, 0.8);
}
.hero-inner{ max-width: 760px; }
.hero .eyebrow{ margin-bottom: 1.1rem; }

.hero-headline{
  font-size: clamp(2.4rem, 5.4vw + 1rem, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero-headline div{ margin-bottom: 0.05em; }

.accent-word{ color: var(--blue); }

.hero-sub{
  margin-top: 1.5rem;
  max-width: 48ch;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.cta{
  display: inline-block;
  margin-top: 2rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: #FFFFFF;
  background: var(--blue);
  padding: 0.8em 1.75em;
  border-radius: 999px;
  border: 1.5px solid var(--blue);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cta:hover{ background: var(--blue-deep); border-color: var(--blue-deep); }
.cta:active{ background: var(--blue-deep); border-color: var(--blue-deep); }
.cta:focus-visible{ outline: 2px solid var(--blue-deep); outline-offset: 3px; }

.cta--static{
  background: transparent;
  color: var(--ink-soft);
  border-style: dashed;
  border-color: var(--line);
  cursor: default;
}
.cta--static:hover{ background: transparent; color: var(--ink-soft); }

.trust-strip{
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.75rem;
}

/* ---------- sections ---------- */
.section{
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}
.section--tint{ background: var(--paper-deep); }
.section-head{ max-width: 640px; margin-bottom: 2.75rem; }
.section-head h2{
  font-size: clamp(1.7rem, 2.4vw + 1rem, 2.4rem);
  margin-top: 0.6rem;
}
.section-head p{
  margin-top: 1rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* problem list */
.flag-list{
  display: grid;
  gap: 1.25rem;
}
.flag-item{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--flagged);
  border-radius: 8px;
}
.flag-item h3{
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.flag-item p{ color: var(--ink-soft); font-size: 0.96rem; }

/* feature grid */
.feature-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}
.feature-card{
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(15, 23, 31, 0.04);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.feature-card:hover{
  box-shadow: 0 8px 20px rgba(15, 23, 31, 0.09);
  transform: translateY(-2px);
}
.feature-card .stamp{ margin-bottom: 1rem; }
.feature-card h3{
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-card p{ color: var(--ink-soft); font-size: 0.95rem; }

/* audience split */
.audience-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}
.audience-card{
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(15, 23, 31, 0.06);
}
.audience-card li{ color: var(--ink-soft); }

.audience-card h3{
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.audience-card .price{
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--blue-pale);
  padding: 0.25em 0.75em;
  border-radius: 999px;
}
.audience-card ul{
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.audience-card li{
  padding-left: 1.6rem;
  position: relative;
  font-size: 0.96rem;
}
.audience-card li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
}

.audience-card .cta{
  margin-top: 1.75rem;
  cursor: pointer;
}

/* ---------- earnings calculator ---------- */
.calculator-card{
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(15, 23, 31, 0.06);
}
.calculator-tabs{ margin-bottom: 2rem; }
.calculator-inputs{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.calculator-group{ display: none; }
.calculator-group.active{ display: block; }
.calculator-group h3{
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.calculator-group .price{
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--blue-pale);
  padding: 0.25em 0.75em;
  border-radius: 999px;
}
.calculator-group label{
  display: grid;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.calculator-group label:first-of-type{ margin-top: 0; }
.calculator-rate-value{ color: var(--blue); font-weight: 700; }
.calculator-converted-count{
  margin-top: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.calculator-converted-count + .calculator-converted-count{ margin-top: 0.15rem; }
.calculator-card input[type="number"]{
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65em 0.75em;
}
.calculator-card input[type="range"]{
  width: 100%;
  accent-color: var(--blue);
}
.calculator-rate-info{
  margin-top: 1rem;
}
.calculator-rate-info ul{
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.3rem;
}
.calculator-results{
  margin-top: 2.5rem;
}
.calculator-projection{
  margin-top: 2.5rem;
}
.calculator-projection-label{
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.calculator-projection .stat-tile{
  padding: 1.15rem;
}
.calculator-projection .stat-tile-value{
  font-size: clamp(0.95rem, 1.9vw, 1.5rem);
  white-space: nowrap;
}
.calculator-results .stat-tile-value{
  font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  white-space: nowrap;
}
.calculator-note{
  margin-top: 2rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- modal ---------- */
.modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(16, 20, 24, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-overlay[hidden]{ display: none; }

.modal{
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: var(--paper);
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(13, 13, 12, 0.16);
}
.modal--wide{ max-width: 460px; }
@media (min-width: 640px){
  .modal--wide{ max-width: 620px; }
}

.form-row{
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 640px){
  .form-row{ grid-template-columns: 1fr 1fr; }
  .form-row.form-row--3{ grid-template-columns: 1fr 1fr 1fr; }
}

.profile-image-field{
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.75rem;
}
.profile-image-preview-wrap{
  position: relative;
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
}
.profile-image-preview,
.profile-image-placeholder{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.profile-image-preview{
  object-fit: cover;
}
.profile-image-preview[hidden],
.profile-image-placeholder[hidden]{ display: none; }
.profile-image-placeholder{
  background: var(--line);
}
.profile-image-controls{
  display: grid;
  gap: 0.35rem;
}
.file-label{
  display: grid;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.file-label input[type="file"]{
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--ink);
}
.field-hint{
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.link-button{
  justify-self: start;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.link-button:hover{ text-decoration: underline; }
.link-button[hidden]{ display: none; }

.modal h2{
  font-size: 1.5rem;
  margin-top: 0.5rem;
}
.modal-sub{
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 40ch;
}

.modal-close{
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.modal-close:hover{ color: var(--ink); border-color: var(--ink-soft); }
.modal-close:focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }

.modal-form{
  display: grid;
  gap: 1.1rem;
  margin-top: 1.75rem;
}
.modal-form[hidden]{ display: none; }
.modal-form label{
  display: grid;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.info-box{
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--blue);
  background: var(--blue-pale);
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.feature-card .info-box{
  margin-top: 10px;
}
.info-box code{
  font-family: 'Inter', sans-serif;
  font-size: 0.9em;
  color: var(--blue-deep);
}

.modal-form input,
.modal-form select,
.modal-form textarea{
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65em 0.75em;
}
.modal-form textarea{ resize: vertical; }
.modal-form input:focus-visible,
.modal-form select:focus-visible,
.modal-form textarea:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.modal-form input[aria-invalid="true"],
.modal-form select[aria-invalid="true"],
.modal-form textarea[aria-invalid="true"]{
  border-color: var(--flagged);
}
.field-error{
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--flagged);
}
.field-error[hidden]{ display: none; }
.modal-form button[type="submit"]{
  justify-self: start;
  margin-top: 0.5rem;
  cursor: pointer;
}
.modal-form button[type="submit"]:disabled{
  opacity: 0.6;
  cursor: default;
}

.modal-error{
  font-size: 0.88rem;
  color: var(--flagged);
}

.modal-success{
  text-align: center;
  padding: 0.75rem 0 0.25rem;
}
.modal-success-title{
  margin-top: 1.25rem;
  font-size: 1.4rem;
}
.modal-success-body{
  margin-top: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}
.modal-success .cta{
  margin-top: 1.75rem;
  cursor: pointer;
}

/* footer */
.site-footer{
  padding: 6rem 0;
  background: var(--blue-deep);
}
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}
.footer-mission{
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
}
.footer-meta{
  text-align: right;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-meta a{
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}
.footer-copyright{
  margin-top: 3.5rem;
  text-align: left;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-meta a:hover{ color: #FFFFFF; }

@media (max-width: 700px){
  .audience-grid{ grid-template-columns: 1fr; }
  .flag-item{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction: column; align-items: flex-start; }
  .footer-meta{ text-align: left; }
}

/* ============================================================
   Connections & Jobs — shared app-page components (tabs, bounded
   panels, pagination, ping/apply pulse, chat). Ported from the
   designs/connections.html and designs/jobs.html mockups.
   ============================================================ */
:root{
  --success: #0E8F74;
  --success-pale: #E3FAF5;
}
.stamp--success{ color: var(--success); background: var(--success-pale); }

.header-nav-link{
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.5em 0.2em;
  transition: color 0.15s ease;
}
.header-nav-link:hover{ color: var(--ink); }
.header-nav-link:focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }

.header-actions-desktop{ display: flex; align-items: center; gap: 0.9rem; }
.menu-btn{ display: none; }
@media (max-width: 640px){
  .header-actions-desktop{ display: none; }
  .menu-btn{ display: inline-flex; }
}

.wrap--app{ max-width: none; }
.wrap--full{ max-width: none; }

.page-head{ margin: 1.25rem 0 1rem; flex: none; }
.page-head.section-head h1{ font-size: 1.5rem; margin-top: 0.3rem; }
.page-head.section-head p{ margin-top: 0.35rem; max-width: 70ch; font-size: 0.92rem; }

.view-tabs{
  display: flex;
  gap: 1.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
  flex: none;
}
.view-tab{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #9AA4AF;
  padding: 0 0 0.7rem;
  margin-bottom: -1px;
  cursor: pointer;
}
.view-tab:hover{ color: var(--ink); }
.view-tab:focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }
.view-tab.active{ color: var(--ink); border-bottom-color: var(--blue); }

.view{ display: none; padding-bottom: 2rem; }
.view.active{ display: block; }

.search-box{ position: relative; max-width: 420px; margin-bottom: 2rem; }
.search-box input{
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.75em 1em 0.75em 2.5em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.search-box input::placeholder{ color: #8E9AA6; }
.search-box input:focus-visible{ outline: 2px solid var(--blue); outline-offset: 1px; }
.search-box svg{
  position: absolute; left: 0.9em; top: 50%; transform: translateY(-50%);
  width: 1rem; height: 1rem; stroke: var(--ink-soft);
}

/* shared bounded panel shell — keeps Search / Pings / Contacts (and Saved / Applications) the same height */
.tab-panel{
  height: 520px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--paper); box-shadow: 0 1px 3px rgba(15, 23, 31, 0.06); display: flex;
}

.search-panel{ flex-direction: column; }
.search-panel__header{ padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); flex: none; }
.search-panel__header .search-box{ max-width: none; margin-bottom: 0; }
.search-panel__body{ flex: 1; overflow-y: auto; padding: 1.25rem; min-height: 0; }

.account-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, 300px);
  gap: 1.25rem;
}

.account-card{ display: flex; flex-direction: column; gap: 0.9rem; }
.account-card__top{ display: flex; gap: 0.75rem; align-items: flex-start; }
.account-card__id{ min-width: 0; }
.account-card__name{ font-size: 1rem; font-weight: 700; }
.account-card__role{ font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.1rem; }
.account-card__note{ font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.account-card__tags{ display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }

.avatar{
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.85rem;
  color: #fff; flex: none;
}
.avatar--photo{ padding: 0; overflow: hidden; }
.avatar--photo img{ display: block; width: 100%; height: 100%; object-fit: cover; }
/* company mark — rounded square, so a company reads differently from a person's circular avatar */
.company-mark{
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.85rem;
  color: #fff; flex: none;
}

.job-actions{ display: flex; align-items: center; gap: 0.6rem; }
.ping-btn{ position: relative; overflow: visible; width: 100%; text-align: center; border: none; cursor: pointer; margin-top: 0; }
.apply-btn{ position: relative; overflow: visible; flex: 1; text-align: center; border: none; cursor: pointer; margin-top: 0; }
.ping-ring,
.apply-ring{
  position: absolute; inset: 0; border-radius: 999px;
  border: 1.5px solid var(--blue);
  opacity: 0; pointer-events: none;
  animation: ringPulse 0.9s ease-out forwards;
}
@keyframes ringPulse{
  0%{ transform: scale(1); opacity: 0.6; }
  100%{ transform: scale(1.9); opacity: 0; }
}
.save-btn svg{ width: 1.05rem; height: 1.05rem; }
.save-btn.saved{ color: var(--blue); border-color: var(--blue); background: var(--blue-pale); }

.pending-row{ display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.dot-pulse{
  width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none;
  animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse{
  0%, 100%{ opacity: 0.35; transform: scale(0.85); }
  50%{ opacity: 1; transform: scale(1); }
}

.btn-ghost{
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.85rem;
  color: var(--ink-soft); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 0.5em 1.1em; cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.btn-ghost:hover{ color: var(--ink); border-color: var(--ink-soft); }
.btn-ghost:focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }

.cta--sm{ margin-top: 0; padding: 0.5em 1.1em; font-size: 0.85rem; }

.empty-state{
  padding: 2.5rem 1.25rem; text-align: center; color: var(--ink-soft);
  border: 1px dashed var(--line); border-radius: 10px; font-size: 0.9rem;
  grid-column: 1 / -1;
}

.pings-panel{ flex-direction: row; }
.pings-col{ flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pings-col + .pings-col{ border-left: 1px solid var(--line); }
.pings-col__header{ padding: 1rem 1.25rem 0.75rem; flex: none; }
.pings-col__header h2{ font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.pings-col__header .col-sub{ font-size: 0.85rem; color: var(--ink-soft); display: block; }
.pings-col__body{ flex: 1; overflow-y: auto; padding: 0 1.25rem; min-height: 0; }

.ping-list-item{
  display: flex; align-items: center; gap: 0.9rem; padding: 1rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); margin-bottom: 0.75rem;
}
.ping-list-item__id{ flex: 1; min-width: 0; }
.ping-list-item__name{ font-weight: 700; font-size: 0.95rem; }
.ping-list-item__meta{ font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.1rem; }
.ping-list-item__actions{ display: flex; gap: 0.5rem; flex: none; align-items: center; }

/* contacts + chat panel */
.contacts-col{
  width: 280px; flex: none; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
.contacts-search{ position: relative; padding: 0.65rem; border-bottom: 1px solid var(--line); flex: none; }
.contacts-search input{
  width: 100%; font-family: 'Inter', sans-serif; font-size: 0.85rem;
  padding: 0.55em 0.8em 0.55em 2.1em; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper-deep); color: var(--ink);
}
.contacts-search input::placeholder{ color: #8E9AA6; }
.contacts-search input:focus-visible{ outline: 2px solid var(--blue); outline-offset: 1px; }
.contacts-search svg{
  position: absolute; left: 1.35rem; top: 50%; transform: translateY(-50%);
  width: 0.9rem; height: 0.9rem; stroke: var(--ink-soft); pointer-events: none;
}
.contacts-list{ flex: 1; overflow-y: auto; padding: 0.5rem; min-height: 0; }
.contacts-pagination{
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.6rem 0.75rem; border-top: 1px solid var(--line); flex: none;
}
.contacts-pagination__info{ font-size: 0.76rem; color: var(--ink-soft); }
.page-btn{
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35em 0.9em; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.78rem;
  color: var(--ink-soft); cursor: pointer; transition: color 0.15s ease, border-color 0.15s ease;
}
.page-btn:hover:not(:disabled){ color: var(--ink); border-color: var(--ink-soft); }
.page-btn:focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }
.page-btn:disabled{ opacity: 0.4; cursor: default; }
.contact-row{
  display: flex; align-items: center; gap: 0.65rem; width: 100%; text-align: left;
  background: none; border: none; padding: 0.65rem; border-radius: 8px; cursor: pointer;
}
.contact-row:hover{ background: var(--paper-deep); }
.contact-row.active{ background: var(--blue-pale); }
.contact-row:focus-visible{ outline: 2px solid var(--blue); outline-offset: -2px; }
.contact-row__id{ min-width: 0; flex: 1; }
.contact-row__name{ font-weight: 700; font-size: 0.9rem; }
.contact-row__preview{
  font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.affiliate-row{
  display: flex; align-items: center; gap: 0.65rem; width: 100%; text-align: left;
  background: none; border: none; padding: 0.65rem; border-radius: 8px; cursor: pointer;
}
.affiliate-row:hover{ background: var(--paper-deep); }
.affiliate-row.active{ background: var(--blue-pale); }
.affiliate-row:focus-visible{ outline: 2px solid var(--blue); outline-offset: -2px; }
.affiliate-row__id{ min-width: 0; flex: 1; }
.affiliate-row__name{ font-weight: 700; font-size: 0.9rem; }
.affiliate-row__meta{
  display: flex; align-items: center; gap: 0.4rem; margin-top: 0.15rem;
  font-size: 0.82rem; color: var(--ink-soft);
}
.affiliate-row__meta span:first-child{
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}

.chat-pane{ flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-empty{
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.4rem; color: var(--ink-soft); font-size: 0.9rem; text-align: center; padding: 2rem;
}
.chat-empty strong{ color: var(--ink); font-size: 1rem; font-weight: 700; }

.chat-header{ display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); flex: none; }
.chat-back{
  display: none; background: none; border: none; padding: 0.3rem; margin-left: -0.3rem;
  border-radius: 6px; color: var(--ink-soft); cursor: pointer;
}
.chat-back:hover{ background: var(--paper-deep); color: var(--ink); }
.chat-header__id{ min-width: 0; }
.chat-header__name{ font-weight: 700; font-size: 0.95rem; }

.chat-pane-tabs{ padding: 0 1.25rem; margin-top: 1rem; margin-bottom: 0; }
.chat-pane-view{ display: none; flex-direction: column; min-height: 0; }
.chat-pane-view.active{ display: flex; flex: 1; min-height: 0; }
.chat-pane-view.chat-stats-view.active{ padding: 1.25rem; overflow-y: auto; }

.chat-thread{ flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.bubble-row{ display: flex; }
.bubble-row.me{ justify-content: flex-end; }
.bubble{ max-width: 65%; padding: 0.65em 0.9em 0.8em; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; }
.bubble-row:not(.me) .bubble{ background: var(--paper-deep); color: var(--ink); border-bottom-left-radius: 4px; margin-right: 20px; }
.bubble-row.me .bubble{ background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.bubble-time{ font-size: 0.72rem; color: var(--ink-soft); margin-top: 0.25rem; display: block; }
.bubble-row.me .bubble-time{ text-align: right; }

.chat-composer{ display: flex; gap: 0.6rem; padding: 0.9rem 1rem; border-top: 1px solid var(--line); flex: none; }
.chat-composer input{
  flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 0.65em 1em;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; background: var(--paper-deep);
}
.chat-composer input:focus-visible{ outline: 2px solid var(--blue); outline-offset: 1px; }
.chat-composer input:disabled{ color: var(--ink-soft); cursor: not-allowed; }
.chat-composer .cta{ margin-top: 0; cursor: pointer; }
.chat-composer .cta:disabled{ opacity: 0.5; cursor: not-allowed; background: var(--blue); border-color: var(--blue); }

.toast{
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 12px);
  background: var(--ink); color: #fff; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.85rem;
  padding: 0.7em 1.2em; border-radius: 999px;
  display: flex; align-items: center; gap: 0.5rem;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); z-index: 50;
}
.toast.show{ opacity: 1; transform: translate(-50%, 0); }
.toast-dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: none; }

@media (min-width: 681px){
  /* desktop: the working area fills the viewport below the fixed header,
     so the tab panel's height tracks however tall the blurb + tabs end up being */
  .wrap--app{ display: flex; flex-direction: column; height: calc(100vh - 4.6875rem); min-height: 0; }
  .view.active{ display: flex; flex-direction: column; flex: 1; min-height: 0; }
  .tab-panel{ flex: 1; min-height: 0; height: auto; }

  /* signed-in areas: main fills exactly one viewport below the fixed header,
     scrolling internally, so every logged-in page has the same app-shell feel */
  main.main--app{ height: calc(100vh - 4.6875rem); overflow-y: auto; }
}
@media (max-width: 680px){
  .chat-panel{ position: relative; }
  .contacts-col{ width: 100%; }
  .chat-panel:not(.chat-open) .chat-pane{ display: none; }
  .chat-panel.chat-open .contacts-col{ display: none; }
  .chat-back{ display: inline-flex; }
  .bubble{ max-width: 82%; }
  .pings-panel{ flex-direction: column; height: auto; }
  .pings-col{ height: 340px; }
  .pings-col + .pings-col{ border-left: none; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce){
  .ping-ring, .apply-ring, .dot-pulse{ animation: none !important; }
}

/* ─── Affiliate dashboard ─── */
.dashboard-wrap{ max-width: none; padding: 2rem 1.5rem 4rem; }
.dashboard-wrap .stats-grid{ margin-bottom: 1.5rem; }

.dashboard-head{ margin-bottom: 1.75rem; }
.dashboard-head h1{
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 0.3rem;
}
.dashboard-head p{ margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.95rem; }

.filter-shortcuts{ display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.filter-shortcut-btn{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.filter-shortcut-btn:hover{ border-color: var(--blue); color: var(--blue); }
.filter-shortcut-btn.active{ background: var(--blue-pale); border-color: var(--blue); color: var(--blue-deep); }
.filter-shortcut-btn:focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }

.filter-bar{
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}
.filter-field label{
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.filter-input{
  background: var(--paper-deep);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s;
}
.filter-input:focus-visible{ border-color: var(--blue); }
.filter-clear{
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
}
.filter-clear:hover{ color: var(--blue); }
.filter-note{ font-size: 0.78rem; color: var(--ink-soft); }

.data-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.data-card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.data-card-title{
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.table-empty{ font-size: 0.875rem; color: var(--ink-soft); }
.table-scroll{ overflow-x: auto; }

.data-table{ width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th{
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0 0.75rem 0.6rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td{
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
}
.data-table tr:last-child td{ border-bottom: none; }
.data-table td.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); }

.status-pill{
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
}
.status-pill.pending{ background: var(--paper-deep); color: var(--ink-soft); }
.status-pill.approved{ background: var(--blue-pale); color: var(--blue-deep); }
.status-pill.paid{ background: var(--success-pale); color: var(--success); }
.status-pill.rejected{ background: var(--flagged-pale); color: var(--flagged); }

.pager-row{ display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; margin-top: 0.9rem; }
.pager-label{ font-size: 0.78rem; color: var(--ink-soft); }

.notification-list{ display: flex; flex-direction: column; gap: 0.75rem; }
.notification-item{
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.notification-item--unread{ border-color: var(--blue-deep); background: var(--blue-pale); }
.notification-item--clickable{ cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.notification-item--clickable:hover{ border-color: var(--blue); }
.notification-item--clickable:focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }
.notification-item-dot{
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-top: 0.4rem;
  background: var(--blue-deep);
}
.notification-item-body{ flex: 1; min-width: 0; }
.notification-item-title{ font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.notification-item-text{ font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.2rem; }
.notification-item-meta{ font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.4rem; display: flex; align-items: center; gap: 0.75rem; }
.notification-item-link{ color: var(--blue-deep); text-decoration: none; font-weight: 600; }
.notification-item-link:hover{ text-decoration: underline; }

.notifications-toolbar{ display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.notifications-toolbar .search-box{ margin-bottom: 0; flex: 1; min-width: 220px; }
.notifications-status-filter{ display: flex; gap: 0.5rem; flex: none; }

.table-copy-btn{
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.table-copy-btn:hover{ border-color: var(--blue); color: var(--blue); }

.discount-label{
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; font-weight: 600; color: var(--ink); margin-bottom: 0.6rem;
}
.discount-label .pct{ color: var(--blue-deep); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.discount-slider{ width: 100%; accent-color: var(--blue); margin-bottom: 1rem; }

.link-result-row{ display: flex; gap: 0.5rem; }
.link-result-input{
  flex: 1;
  background: var(--paper-deep);
  border: 1.5px solid var(--line); border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; color: var(--ink);
}

@media (max-width: 640px){
  .data-table{ font-size: 0.8rem; }
}

/* ─── Affiliate resources / swipe file ─── */
.swipe-intro{ color: var(--ink-soft); font-size: 0.9rem; max-width: 68ch; margin-bottom: 1.25rem; }
.swipe-intro a{ color: var(--blue-deep); font-weight: 600; }

.swipe-link-picker{ margin-top: 1.25rem; margin-bottom: 0.25rem; }
.swipe-link-picker label{ display: block; }
.swipe-link-picker-label{
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.swipe-link-select{
  width: 100%;
  max-width: 480px;
  background: var(--paper-deep);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s;
}
.swipe-link-select:focus-visible{ border-color: var(--blue); }
.swipe-link-empty{ font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.5rem; }
.swipe-link-empty a{ color: var(--blue-deep); font-weight: 600; }

.swipe-tabs{ margin-top: 1.5rem; }

.swipe-group{ display: none; flex-direction: column; gap: 1.25rem; }
.swipe-group.active{ display: flex; }

.swipe-card{
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem;
}
.swipe-card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.swipe-textarea{
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
  resize: vertical;
}
.swipe-textarea:focus-visible{ border-color: var(--blue); }

.banner-kit-step-label{
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1.5rem;
}

.banner-kit-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 0.75rem;
}
.banner-kit-card{
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem;
}
.banner-kit-preview{
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.banner-kit-preview img{ width: 100%; height: 100%; object-fit: contain; }
.banner-kit-meta{ display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.banner-kit-dims{ font-size: 0.78rem; color: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.banner-kit-download{ text-align: center; text-decoration: none; }

.banner-kit-embed{ margin-top: 0.25rem; }
.banner-kit-embed-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.banner-kit-embed-label{
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.banner-kit-embed-code{
  width: 100%;
  background: #0d0e12;
  border: 1.5px solid #0d0e12;
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #f4f5f7;
  resize: vertical;
}
.banner-kit-embed-code:focus-visible{ border-color: var(--blue); }
