/* =========================================================
  ScanWin — Advertiser Profile
========================================================= */

.sw-tier__step--iron {
  background: #5A6470;
}

/* =========================
  Active campaign card (advertiser)
========================= */
.sw-advc {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.sw-advc__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f7f8fa;
  border-bottom: 1px solid #eef0f3;
}

.sw-advc__logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 999px;
}

.sw-advc__brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sw-advc__brand-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: #0f1020;
}

.sw-advc__brand-meta {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sw-advc__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: #d1fae5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #057a55;
  flex-shrink: 0;
}
.sw-advc__live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #10b981;
}

.sw-advc__body {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;
  flex: 1;
}

.sw-advc__spend-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #9ca3af;
  margin: 0 0 10px;
}

.sw-advc__product {
  font-size: 15px;
  font-weight: 600;
  color: #0f1020;
  margin: 0 0 2px;
}

.sw-advc__route {
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  margin: 0 0 14px;
}

.sw-advc__spend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sw-advc__spend {
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #0f1020;
  margin: 0;
}

.sw-advc__delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  background: #d6f5e3;
  font-size: 12px;
  font-weight: 700;
  color: #057a55;
}
.sw-advc__delta svg {
  width: 13px;
  height: 13px;
}

.sw-advc__progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.sw-advc__scans {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.sw-advc__scans-l {
  font-weight: 600;
  color: #0f1020;
}
.sw-advc__scans-r {
  font-weight: 400;
  color: #6b7280;
}

.sw-advc__bar {
  height: 10px;
  background: #eef0f3;
  border-radius: 32px;
  overflow: hidden;
}

.sw-advc__bar-fill {
  height: 100%;
  border-radius: 32px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.22) 0 6px,
      rgba(255, 255, 255, 0) 6px 12px
    ),
    linear-gradient(180deg, #6e5ef7 0%, #9c8ff7 100%);
}

.sw-advc__pdi {
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  margin: 2px 0 0;
}

.sw-advc__actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 18px;
}

.sw-advc__share,
.sw-advc__stats {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sw-advc__share {
  background: var(--sw-violet, #6e5ef7);
  border: 0;
  color: #fff;
}
.sw-advc__share:hover {
  background: #5d4ee6;
}
.sw-advc__share:active {
  background: var(--sw-violet-600, #5a47e8);
}

.sw-advc__stats {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #0f1020;
}
.sw-advc__stats:hover {
  background: #f7f7fa;
}
.sw-advc__stats:active {
  background: #eeeef3;
}

/* =========================
  Active campaigns — horizontal scroll carousel on mobile.
========================= */
@media (max-width: 1200px) {
  .sw-advc-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-bottom: 4px;
    scroll-padding-left: 0;
  }
  .sw-advc-row::-webkit-scrollbar {
    display: none;
  }
  .sw-advc-row > [class*="col-"] {
    flex: 0 0 46%;
    max-width: 46%;
    scroll-snap-align: start;
  }
}

.sw-advc__share,
.sw-advc__stats {
  white-space: nowrap;
}

/* =========================
  Recent activity — two-line right column
========================= */
.sw-activity__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.sw-activity__time {
  font-size: 11px;
  line-height: 14px;
  font-weight: 400;
  color: var(--sw-text-faint);
  margin-top: 2px;
  white-space: nowrap;
}

.sw-activity__status {
  font-size: 13px;
  font-weight: 700;
  color: #0f1020;
}
.sw-activity__status--muted {
  color: #6b7280;
}

/* =========================
  Standardized B2B footer
========================= */
.sw-app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 20px 4px 0px;
  border-top: 1px solid #eef0f3;
}

.sw-app-footer__copy {
  font-size: 13px;
  color: #9ca3af;
}

.sw-app-footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.sw-app-footer__links a {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
}
.sw-app-footer__links a:hover,
.sw-app-footer__links a:focus-visible {
  color: var(--sw-violet, #6e5ef7);
}

@media (max-width: 575px) {
  .sw-app-footer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .sw-app-footer__links {
    gap: 18px;
  }

  .sw-advc-row > [class*="col-"] {
    flex: 0 0 91%;
    max-width: 91%;
  }
}
