/* Rewards Page Styles */

/* --- Tier Main Layout (matches portfolio-main pattern) --- */
.tier-main {
  width: calc(100% - 256px);
  min-height: 100vh;
  margin-left: 256px;
  padding: 48px 24px 64px 24px;
  background: var(--content-bg);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 0;
}

.tier-container {
  padding: 0;
  width: 100%;
  max-width: 1096px;
}

@media (max-width: 768px) {
  .tier-main {
    width: 100%;
    margin-left: 0;
    padding: 16px;
    padding-top: 80px;
  }

  .tier-container {
    margin-top: 16px;
  }
}

/* --- Rewards Main Layout (matches wallet-main pattern) --- */
.rewards-page {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background: #f5f5f5;
}

.rewards-pending-overlay {
  position: fixed;
  top: 0;
  left: 248px;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.2);
}

.rewards-pending-modal {
  width: min(440px, 100%);
  padding: 40px 32px;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.rewards-pending-logo {
  width: 88px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.rewards-pending-title {
  margin: 0 0 12px;
  color: #101828;
  font-family: 'TT Norms Pro', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.rewards-pending-copy {
  margin: 0;
  color: #475467;
  font-size: 16px;
  line-height: 1.6;
}

.rewards-main {
  width: calc(100% - 256px);
  min-height: 100vh;
  margin-left: 256px;
  padding: 0;
  background: var(--content-bg);
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 0;
}

@media (max-width: 768px) {
  .rewards-pending-overlay {
    left: 0;
    padding: 16px;
  }

  .rewards-pending-modal {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .rewards-pending-logo {
    width: 76px;
    margin-bottom: 16px;
  }

  .rewards-pending-title {
    font-size: 22px;
  }

  .rewards-main {
    width: 100%;
    margin-left: 0;
    padding: 0;
  }

}

/* --- Rewards Main Container --- */
.rewards-container {
  padding: var(--page-padding-top, 48px) var(--page-padding-x, 32px) var(--page-padding-bottom, 48px);
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 768px) {
  .rewards-container {
    padding: 16px;
    padding-top: 80px;
    max-width: none;
    gap: 24px;
  }
}

/* --- Header --- */
.rewards-page-header {
  margin-bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.rewards-page-header.compact {
  margin-bottom: 16px;
}

.rewards-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rewards-trophy-icon,
.tier-target-icon {
  width: 32px;
  height: 32px;
  color: #000000;
  flex-shrink: 0;
}

.rewards-title {
  font-family: 'TT Norms Pro', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 36px;
  line-height: 44px;
  letter-spacing: -0.02em;
  color: var(--page-title-color);
  margin: 0;
}

/* --- Tab Navigation (matches settings-tabs-container pattern) --- */
.rewards-tab-nav {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 2px solid var(--card-border-color);
}

.rewards-tab-nav .rewards-tab-btn {
  padding: 12px 24px;
  font-family: 'TT Norms Pro', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #717680;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.rewards-tab-nav .rewards-tab-btn:hover {
  color: var(--page-title-color);
}

.rewards-tab-nav .rewards-tab-btn.active {
  color: var(--primary-color, var(--btn-primary-bg));
  border-bottom-color: var(--primary-color, var(--btn-primary-bg));
}

/* --- Tab Panel Content --- */
.rewards-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 32px;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--label-color);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs .active-crumb {
  color: #101828;
  font-weight: 600;
}

/* --- Cards Container Grid --- */
.rewards-card-container {
  background: #ffffff;
  border: 1px solid var(--card-border-color);
  border-radius: 12px;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  padding: 24px;
  display: flex;
  gap: 24px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .rewards-card-container {
    flex-direction: column;
    padding: 16px;
  }
}

/* --- Rewards Hero (Dashboard style) --- */
.rewards-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .rewards-hero-grid {
    grid-template-columns: 1fr;
  }
}

.rewards-summary-card {
  background: #ffffff;
  border: 1px solid var(--card-border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  display: flex;
  flex-direction: column;
}

.summary-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.summary-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--label-color);
}

.summary-amount {
  font-size: 32px;
  font-weight: 700;
  color: #101828;
}

.summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f2f4f7;
}

.breakdown-item:last-of-type {
  border-bottom: none;
}

.item-label {
  font-size: 14px;
  color: #414651;
}

.item-value {
  font-size: 14px;
  font-weight: 600;
  color: #101828;
}

.summary-link {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}

/* --- Top Card left sections (Balance) --- */
.rewards-balance-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.balance-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.balance-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--label-color);
}

.balance-amount {
  font-size: 36px;
  font-weight: 600;
  color: #101828;
  margin-bottom: 12px;
}

.view-balance-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #101828;
  text-decoration: none;
}

/* --- Top Card Middle Section (Icon) --- */
.balance-icon-section {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 24px;
}

@media (max-width: 768px) {
  .balance-icon-section {
    margin: 16px 0;
    justify-content: flex-start;
  }
}

.icon-outer-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--muted-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-inner-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-inner-circle svg {
  stroke: var(--primary-color);
}

/* --- Top Card Right Section (Breakdown) --- */
.balance-breakdown-section {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.breakdown-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #414651;
}

.breakdown-value {
  font-size: 16px;
  font-weight: 600;
  color: #101828;
}

.breakdown-separator {
  height: 1px;
  background: var(--card-border-color);
  width: 100%;
}

/* --- Bottom Grid --- */
.rewards-bottom-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* --- Tier Progress Card --- */
.tier-progress-card {
  background: #ffffff;
  border: 1px solid var(--card-border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.tier-progress-card.intro-style {
  background: var(--accent-color);
  /* Light green for Intro */
  border-color: var(--accent-color);
}

.tier-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tier-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-logo {
  height: 20px;
}

.tp-badge {
  font-size: 14px;
  font-weight: 600;
}

.tp-badge.premium {
  color: var(--primary-color);
  font-style: italic;
}

.tp-badge.intro {
  color: #101828;
  font-style: italic;
}

.tier-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-invested-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tp-amount {
  font-size: 24px;
  font-weight: 600;
  color: #101828;
}

.tp-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--label-color);
  margin-left: auto;
}

.text-black {
  color: #101828 !important;
}

.text-gray {
  color: var(--label-color) !important;
}

.text-blue {
  color: var(--primary-color) !important;
}

.filter-blue {
  filter: invert(16%) sepia(85%) saturate(7221%) hue-rotate(242deg) brightness(101%) contrast(149%);
}

.tp-progress-bar {
  height: 8px;
  background: var(--progress-track-bg, #D5D7DA);
  border-radius: var(--progress-border-radius, 30px);
  overflow: hidden;
  margin-bottom: 8px;
}

.tp-progress-bar.bg-white {
  background: rgba(255, 255, 255, 0.4);
}

.tp-progress-fill {
  height: 100%;
  background: var(--progress-fill-bg, #98FB96);
  border-radius: var(--progress-border-radius, 30px);
}

.tp-hint {
  font-size: 14px;
  text-align: center;
  color: var(--label-color);
}

/* --- Refer and Earn Card --- */
.refer-earn-card {
  background: #ffffff;
  border: 1px solid var(--card-border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

.refer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.refer-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.refer-title-wrap h3 {
  font-size: 18px;
  font-weight: 600;
  color: #101828;
  margin: 0;
}

.refer-text {
  font-size: 14px;
  color: var(--label-color);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.refer-separator {
  height: 1px;
  background: var(--card-border-color);
  margin-bottom: 16px;
}

.refer-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.refer-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #101828;
}

.refer-share-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #101828;
  margin-bottom: 8px;
}

.refer-input-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.refer-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 40px;
  background: #ffffff;
  border: 1px solid var(--table-border-color);
  border-radius: 8px;
  padding: 0 14px;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.refer-input-wrapper:focus-within {
  border-color: var(--primary-color, var(--btn-primary-bg));
  box-shadow: 0px 0px 0px 3px rgba(0, 0, 255, 0.08);
}

.refer-input-wrapper input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
  font-family: 'TT Norms Pro', sans-serif;
  color: var(--body-color);
  background: transparent;
}

.copy-icon-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-link-btn {
  min-height: 40px;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  font-family: 'TT Norms Pro', sans-serif;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.copy-link-btn:hover {
  filter: brightness(0.88);
  box-shadow: 0 2px 8px rgba(0, 0, 255, 0.25);
}

/* --- TIER LAYOUT --- */
.tier-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.tier-left-column {
  flex: 0 0 340px;
  position: sticky;
  top: 24px;
}

.tier-right-column {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--card-border-color);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

@media (max-width: 900px) {
  .tier-layout {
    flex-direction: column;
  }

  .tier-left-column {
    position: static;
    max-width: 100%;
  }
}

/* --- TIER CARDS EXPERIENCE --- */
.tier-cards-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1096px;
}

.tier-card {
  padding: 32px;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--card-border-color, #E5E7EB);
  border-radius: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Enhanced glass icon for tier cards */
.tier-card .glass-icon-container {
  width: 56px;
  height: 56px;
}

.tier-card .glass-icon-bg {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  opacity: 0.45;
  transform: rotate(12deg);
  left: 4px;
  top: -4px;
}

.tier-card .glass-icon-front {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.85), rgba(230,235,255,0.6));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 4px 12px rgba(0, 0, 255, 0.08),
    inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.tier-card .glass-icon-front span {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tier-card--active {
  border: 2px solid var(--primary-color, #0000FF);
  box-shadow: 0px 12px 24px -4px rgba(0, 0, 255, 0.1), 0px 4px 8px -2px rgba(0, 0, 255, 0.05);
  transform: translateY(-2px);
  padding: 31px; /* compensate 1px extra border */
}

.tier-card--locked {
  background: var(--bg-secondary, #FAFAFA);
  border: 1px dashed var(--card-border-color, #E5E7EB);
  opacity: 0.9;
}
.tier-card--locked .glass-icon-front {
  background: rgba(240, 240, 240, 0.8) !important;
  border-color: #E5E7EB !important;
}
.tier-card--locked .glass-icon-bg {
  background: none !important;
}
.tier-card--locked .tier-reward-showcase,
.tier-card--locked .tier-benefits-section {
  opacity: 0.6;
}

.tier-card-header-new {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.tier-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tier-name-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tier-reward-showcase {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.reward-amount {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.reward-context {
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
}

.tier-progress-section {
  background: #F8F9FC;
  border: 1px solid var(--card-border-color, #E5E7EB);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 32px;
}

.progress-labels-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.progress-labels-new strong {
  color: var(--text-primary, #181D27);
  font-weight: 600;
}

.tier-progress-track {
  height: 8px;
  background: #E5E7EB;
  border-radius: 30px;
  width: 100%;
  overflow: hidden;
}

.tier-progress-fill {
  height: 100%;
  border-radius: 30px;
  transition: width 0.6s ease;
}
.tier-progress-fill.past {
  width: 100%;
  background: var(--progress-fill-bg, #98FB96);
}
.tier-progress-fill.active {
  background: var(--progress-fill-bg, #98FB96);
}

.tier-status-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.tier-status-text.completed {
  color: #027A48;
}

.tier-status-text.locked {
  color: var(--text-tertiary, #717680);
}

.tier-benefits-section {
  padding-top: 0;
}

.tier-card-divider {
  height: 1px;
  background: var(--card-border-color, #E5E7EB);
  margin: 24px 0;
}

.tier-benefits-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color, #0000FF);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px 0;
}

.tier-benefits-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary, #535862);
  margin: 0 0 20px 0;
}

.tier-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--body-color, #344054);
  line-height: 1.5;
}

.tier-benefits-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.benefit-tick {
  width: 18px;
  height: 18px;
  color: var(--primary-color, #0000FF);
}

.benefit-tick-muted {
  width: 18px;
  height: 18px;
  color: #98A2B3;
}

/* ── Marketing Tier Icon Variations ── */
.tier-icon-var {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.tier-icon-var .icon-label {
  font-size: 11px;
  color: #717680;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Shared base for all icon styles */
.icon-solid,
.icon-outlined,
.icon-gradient,
.icon-dark,
.icon-mint {
  width: 54px;
  height: 54px;
  border-radius: 16px; /* ~30% squircle ratio */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: 'TT Norms Pro', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease;
  cursor: default;
  user-select: none;
}

/* Hover lift — all variants */
.icon-solid:hover,
.icon-outlined:hover,
.icon-gradient:hover,
.icon-dark:hover,
.icon-mint:hover {
  transform: translateY(-2px) scale(1.04);
}

/* ── Solid Blue ── */
.icon-solid {
  background: linear-gradient(160deg, #1a1aff 0%, #0000DD 100%);
  color: #fff;
  box-shadow:
    0 1px 2px rgba(0,0,255,0.12),
    0 4px 8px rgba(0,0,255,0.08),
    0 8px 20px rgba(0,0,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.15);
}
.icon-solid:hover {
  box-shadow:
    0 2px 4px rgba(0,0,255,0.15),
    0 8px 16px rgba(0,0,255,0.12),
    0 12px 28px rgba(0,0,255,0.08);
}

/* ── Outlined ── */
.icon-outlined {
  background: transparent;
  border: 2px solid #0000FF;
  color: #0000FF;
  box-shadow: 0 1px 3px rgba(0,0,255,0.06);
}
.icon-outlined:hover {
  background: rgba(0,0,255,0.03);
  box-shadow:
    0 2px 6px rgba(0,0,255,0.08),
    0 8px 16px rgba(0,0,255,0.05);
}

/* ── Blue → Green Gradient ── */
.icon-gradient {
  background: linear-gradient(135deg, #0000FF 0%, #00CC6F 60%, #03FF88 100%);
  color: #fff;
  box-shadow:
    0 1px 2px rgba(0,0,255,0.1),
    0 4px 8px rgba(0,100,80,0.08),
    0 8px 20px rgba(3,255,136,0.06),
    inset 0 1px 0 rgba(255,255,255,0.2);
}
.icon-gradient:hover {
  box-shadow:
    0 2px 4px rgba(0,0,255,0.12),
    0 8px 16px rgba(0,100,80,0.1),
    0 12px 28px rgba(3,255,136,0.08);
}

/* ── Dark Mode ── */
.icon-dark {
  background: linear-gradient(160deg, #1E2330 0%, #141821 100%);
  color: #4D4DFF;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.2),
    0 4px 8px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.icon-dark:hover {
  color: #6666FF;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.24),
    0 8px 16px rgba(0,0,0,0.16),
    0 0 20px rgba(0,0,255,0.06);
}

/* ── Mint Surface ── */
.icon-mint {
  background: linear-gradient(160deg, rgba(3,255,136,0.1) 0%, rgba(3,255,136,0.04) 100%);
  border: 1.5px solid rgba(3,255,136,0.25);
  color: #0000FF;
  box-shadow:
    0 1px 2px rgba(3,255,136,0.06),
    0 4px 8px rgba(3,255,136,0.04);
}
.icon-mint:hover {
  border-color: rgba(3,255,136,0.4);
  box-shadow:
    0 2px 4px rgba(3,255,136,0.08),
    0 8px 16px rgba(3,255,136,0.06),
    0 0 20px rgba(3,255,136,0.04);
}

/* ── Animations ── */

/* Pulse ring — radiating outward */
@keyframes tier-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(0,0,255,0.3), inset 0 1px 0 rgba(255,255,255,0.15); }
  70%  { box-shadow: 0 0 0 12px rgba(0,0,255,0), inset 0 1px 0 rgba(255,255,255,0.15); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,255,0), inset 0 1px 0 rgba(255,255,255,0.15); }
}
.icon-anim-pulse {
  animation: tier-pulse-ring 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Breathing glow — dual-color ambient */
@keyframes tier-glow-breathe {
  0%, 100% {
    box-shadow:
      0 0 6px rgba(0,0,255,0.12),
      0 4px 12px rgba(0,0,255,0.06),
      inset 0 1px 0 rgba(255,255,255,0.2);
  }
  50% {
    box-shadow:
      0 0 16px rgba(0,0,255,0.3),
      0 0 32px rgba(3,255,136,0.08),
      0 4px 12px rgba(0,0,255,0.1),
      inset 0 1px 0 rgba(255,255,255,0.2);
  }
}
.icon-anim-glow {
  animation: tier-glow-breathe 3.5s ease-in-out infinite;
}

/* Float — subtle vertical hover */
@keyframes tier-float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-5px); }
}
.icon-anim-float {
  animation: tier-float 3s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* Badges */
.badge {
  padding: 2px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.badge-intro-filled {
  background: var(--accent-color);
  color: #101828;
}

.badge-plus-filled {
  background: #027a48;
  color: #ffffff;
}

.badge-pro-filled {
  background: #7a5af8;
  color: #ffffff;
}

.badge-elite-filled {
  background: #f79009;
  color: #ffffff;
}

.badge-premium-filled {
  background: var(--primary-color);
  color: #ffffff;
}

/* Inactive State styling */
.stepper-item.inactive {
  opacity: 1;
}

.stepper-item.inactive .stepper-body h4,
.stepper-item.inactive .stepper-body p {
  color: var(--label-color);
}

/* --- Tooltip Styles --- */
.tooltip-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.tooltip-wrapper .help-icon {
  transition: all 0.2s ease;
}

.tooltip-wrapper:hover .help-icon circle {
  stroke: var(--primary-color);
}

.tooltip-wrapper:hover .help-icon path {
  stroke: var(--primary-color);
}

.tooltip-content {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #101828;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: normal;
  width: 240px;
  box-shadow:
    0px 4px 6px -2px rgba(16, 24, 40, 0.03),
    0px 12px 16px -4px rgba(16, 24, 40, 0.08);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
  transform: translateX(-50%) translateY(4px);
  z-index: 1000;
}

.tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #101828 transparent transparent transparent;
}

.tooltip-wrapper:hover .tooltip-content,
.tooltip-wrapper:focus-within .tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Breakdown row tooltips - position to the right to avoid overflow */
.breakdown-label .tooltip-content {
  left: auto;
  right: auto;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
}

.breakdown-label .tooltip-wrapper:hover .tooltip-content,
.breakdown-label .tooltip-wrapper:focus-within .tooltip-content {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .tooltip-content {
    width: 200px;
    font-size: 11px;
    left: auto;
    right: -8px;
    transform: translateY(4px);
  }

  .tooltip-content::after {
    left: auto;
    right: 12px;
    transform: none;
  }

  .tooltip-wrapper:hover .tooltip-content,
  .tooltip-wrapper:focus-within .tooltip-content {
    transform: translateY(0);
  }

  .breakdown-label .tooltip-content {
    left: auto;
    right: -8px;
    transform: translateY(4px);
  }

  .breakdown-label .tooltip-wrapper:hover .tooltip-content,
  .breakdown-label .tooltip-wrapper:focus-within .tooltip-content {
    transform: translateY(0);
  }
}

/* --- QA, Edge Cases & Loading States --- */

.rewards-content-layer {
  transition: opacity 0.3s ease;
}

.rewards-loading-layer {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rewards-error-layer,
.rewards-empty-layer {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  background: #ffffff;
  border: 1px solid var(--card-border-color);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

.error-icon {
  width: 48px;
  height: 48px;
  color: #f04438;
  margin-bottom: 16px;
}

.empty-icon {
  width: 48px;
  height: 48px;
  color: var(--label-color);
  margin-bottom: 16px;
}

.state-title {
  font-size: 18px;
  font-weight: 600;
  color: #101828;
  margin: 0 0 8px 0;
}

.state-desc {
  font-size: 14px;
  color: var(--label-color);
  margin: 0 0 24px 0;
  max-width: 400px;
}

.retry-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

/* Skeleton Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.skeleton-box {
  background: #f2f4f7;
  background-image: linear-gradient(90deg,
      #f2f4f7 0px,
      var(--card-border-color) 40px,
      #f2f4f7 80px);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
  border-radius: 6px;
}

.sk-title {
  height: 40px;
  width: 200px;
  margin-bottom: 24px;
}

.sk-card {
  height: 200px;
  width: 100%;
  border-radius: 12px;
}

.sk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .sk-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility to toggle layers */
.hidden {
  display: none !important;
}

/* --- Partner Metrics Dashboard --- */
.partner-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* --- Affiliate Tab Layout --- */
#affiliate-tab {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#affiliate-tab .campaign-breakdown-card,
#affiliate-tab .campaign-link-generator-card,
#affiliate-tab .campaign-breakdown-card--table {
  margin-top: 0 !important;
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--card-border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 255, 0.05);
  border-color: rgba(0, 0, 255, 0.1);
}

/* Premium Icon Shell for Metric Cards */
.metric-card .p-icon { position: relative; width: 44px; height: 44px; flex-shrink: 0; transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; transform: translateZ(0); }
.metric-card:hover .p-icon { transform: scale(1.05) translateZ(0); }
.metric-card .p-icon::before { content: ''; position: absolute; inset: 3px; border-radius: 22.37%; background: var(--glow-color, rgba(0, 0, 255, 0.06)); filter: blur(10px); opacity: 0; transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1); z-index: 0; }
.metric-card:hover .p-icon::before { opacity: 1; }
.metric-card .p-bg { position: absolute; border-radius: 22.37%; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.metric-card .p-bg-1 { width: 37px; height: 37px; opacity: 0.3; transform: rotate(18deg) translateZ(0); left: 7px; top: -4px; z-index: 1; }
.metric-card .p-bg-2 { width: 40px; height: 40px; opacity: 0.38; transform: rotate(10deg) translateZ(0); left: 3px; top: -2px; z-index: 2; }
.metric-card .p-front { position: absolute; inset: 0; width: 44px; height: 44px; border-radius: 22.37%; z-index: 3; display: flex; align-items: center; justify-content: center; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; }
.metric-card .p-front::after { content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: .015; mix-blend-mode: soft-light; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); pointer-events: none; z-index: 6; }
.metric-card .p-front::before { content: ''; position: absolute; top: -20%; left: -20%; width: 90%; height: 90%; border-radius: 50%; background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.22) 0%, rgba(255,255,255,.08) 40%, transparent 70%); z-index: 5; pointer-events: none; }
.metric-card .p-front svg { width: 18px; height: 18px; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 7; }

.metric-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--label-color);
  display: flex;
  align-items: center;
  gap: 6px;
}

.metric-card-value {
  font-size: 28px;
  font-weight: 600;
  color: #101828;
}

.metric-card-trend {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  gap: 4px;
}

.metric-card-trend.positive {
  color: #027A48;
  background-color: #ECFDF3;
}

.metric-card-trend.neutral {
  color: #344054;
  background-color: #F2F4F7;
}

.metric-card-trend svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5px;
}

@media (max-width: 1024px) {
  .partner-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .partner-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Campaign Breakdown Table --- */
.campaign-breakdown-card {
  background: #ffffff;
  border: 1px solid var(--card-border-color);
  border-radius: 12px;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  overflow: hidden;
}

.campaign-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--card-border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.campaign-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.campaign-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.campaign-title-wrap h3 {
  font-size: 18px;
  font-weight: 600;
  color: #101828;
  margin: 0;
}

.campaign-subtitle {
  font-size: 13px;
  color: #98a2b3;
}

.campaign-subtitle code {
  background: #f2f4f7;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--primary-color);
}

.campaign-table-wrap {
  overflow-x: auto;
}

.campaign-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.campaign-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 500;
  color: var(--label-color);
  border-bottom: 1px solid var(--card-border-color);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.campaign-table tbody td {
  padding: 14px 16px;
  color: #101828;
  border-bottom: 1px solid #f2f4f7;
  white-space: nowrap;
}

.campaign-table tbody tr:last-child td {
  border-bottom: none;
}

.campaign-table tbody tr:hover {
  background: #f9fafb;
}

.campaign-subid-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  background: #eef4ff;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-color);
}

.campaign-subid-badge.direct {
  background: #f2f4f7;
  color: var(--label-color);
}

.campaign-cvr {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #027a48;
  font-weight: 500;
}

.campaign-cvr.low {
  color: #b54708;
}

@media (max-width: 768px) {
  .campaign-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* --- Campaign Link Generator Card --- */
/* Reuses .campaign-breakdown-card for consistent card shell */
.campaign-link-generator-card {
  background: #ffffff;
  border: 1px solid var(--card-border-color);
  border-radius: 12px;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  overflow: hidden;
}

.campaign-link-body {
  padding: 20px 24px 24px;
}

/* --- Chart Time Range Filter --- */
.chart-filter-group {
  display: flex;
  gap: 4px;
  background: #f2f4f7;
  border-radius: 8px;
  padding: 3px;
}

.chart-filter-btn {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'TT Norms Pro', sans-serif;
  color: #667085;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1;
}

.chart-filter-btn:hover {
  color: var(--body-color);
}

.chart-filter-btn.active {
  background: #ffffff;
  color: #101828;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.06);
}

/* Custom date picker wrapper & dropdown */
.chart-custom-date-wrapper {
  position: relative;
}

.chart-filter-btn svg {
  vertical-align: -2px;
  margin-right: 4px;
}

.chart-date-picker-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  background: #ffffff;
  border: 1px solid var(--card-border-color);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  padding: 16px;
  min-width: 280px;
  animation: datePickerFadeIn 0.15s ease;
}

.chart-date-picker-dropdown.open {
  display: block;
}

@keyframes datePickerFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.chart-date-picker-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.chart-date-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chart-date-field label {
  font-size: 12px;
  font-weight: 500;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chart-date-field input[type="date"] {
  padding: 8px 10px;
  border: 1px solid var(--table-border-color);
  border-radius: 8px;
  font-size: 13px;
  font-family: 'TT Norms Pro', sans-serif;
  color: #101828;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

.chart-date-field input[type="date"]:focus {
  border-color: var(--primary-color, var(--btn-primary-bg));
  box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.08);
}

.chart-date-apply-btn {
  width: 100%;
  padding: 8px 16px;
  background: var(--primary-color, var(--btn-primary-bg));
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'TT Norms Pro', sans-serif;
  cursor: pointer;
  transition: background 0.15s ease;
}

.chart-date-apply-btn:hover {
  background: var(--btn-primary-hover-bg);
}

/* Chart container body */
.campaign-chart-body {
  padding: 20px 24px 24px;
  width: 100%;
  min-height: 280px;
  max-height: 350px;
  box-sizing: border-box;
  position: relative;
}

.campaign-chart-body canvas {
  width: 100% !important;
  max-height: 300px;
}

.link-gen-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.link-gen-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-gen-input-wrapper label {
  font-size: 14px;
  font-weight: 500;
  color: var(--body-color);
}

#campaign-subid-input {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid var(--table-border-color);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'TT Norms Pro', sans-serif;
  color: #101828;
  height: 42px;
  outline: none;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

#campaign-subid-input:focus {
  border-color: var(--primary-color, var(--btn-primary-bg));
  box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.08);
}

#campaign-subid-input::placeholder {
  color: #98a2b3;
}

/* Social share row - minimal inline link style */
.social-share-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border-color);
}

.social-share-label {
  font-size: 13px;
  font-weight: 500;
  color: #667085;
}

.social-share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.social-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  font-family: 'TT Norms Pro', sans-serif;
  color: var(--body-color);
  cursor: pointer;
  transition: color 0.15s ease;
  line-height: 1;
}

.social-btn-link:hover {
  color: var(--btn-primary-bg);
}

.social-btn-link svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Social share pill-style buttons - matches platform's settings-legal-link pattern */
.social-share-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--table-border-color);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'TT Norms Pro', sans-serif;
  color: var(--body-color);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

.social-share-pill:hover {
  background: #f8f9fc;
  border-color: #d1d5db;
  color: var(--page-title-color);
}

.social-share-pill svg {
  flex-shrink: 0;
}

/* --- Campaign Table Actions (Search + Export) --- */
.campaign-card-header .campaign-table-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.campaign-card-header .search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#campaign-search-input {
  width: 260px;
  padding: 9px 12px 9px 36px;
  border: 1px solid var(--table-border-color);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'TT Norms Pro', sans-serif;
  color: #101828;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  background: #ffffff;
}

#campaign-search-input:focus {
  border-color: var(--primary-color, var(--btn-primary-bg));
  box-shadow: 0px 0px 0px 3px rgba(0, 0, 255, 0.08);
}

#campaign-search-input::placeholder {
  color: #98a2b3;
}

#campaign-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'TT Norms Pro', sans-serif;
  color: var(--body-color);
  background: #ffffff;
  border: 1px solid var(--card-border-color);
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

#campaign-export-btn:hover {
  background: #f9fafb;
  border-color: var(--input-border-color);
}

/* Sortable header icons */
.sortable {
  user-select: none;
}

.sort-icon {
  font-style: normal;
  font-size: 11px;
  margin-left: 3px;
  color: #98a2b3;
}

@media (max-width: 600px) {
  #campaign-search-input {
    width: 140px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MARKETING MATERIAL TAB
   ═══════════════════════════════════════════════════════════════ */

#marketing-tab {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- Section Card --- */
.marketing-section {
  background: #ffffff;
  border: 1px solid var(--card-border-color);
  border-radius: 12px;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  padding: 24px;
}

.marketing-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.marketing-section-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #101828;
  margin: 0;
}

.marketing-section-desc {
  font-size: 14px;
  color: var(--label-color);
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.marketing-subsection-title {
  font-size: 15px;
  font-weight: 600;
  color: #101828;
  margin: 0 0 12px 0;
}

/* --- Asset Grid (3 → 2 → 1 columns) --- */
.marketing-assets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .marketing-assets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .marketing-assets-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Brand row (2 cols for logo cards) --- */
.marketing-brand-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .marketing-brand-row {
    grid-template-columns: 1fr;
  }
}

/* --- Asset Card --- */
.marketing-asset-card {
  background: #ffffff;
  border: 1px solid var(--card-border-color);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.marketing-asset-card:hover {
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
  border-color: var(--input-border-color);
}

.marketing-asset-preview {
  height: 100px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--card-border-color);
  padding: 16px;
}

.marketing-asset-preview.template-preview {
  height: 140px;
  position: relative;
}

.marketing-asset-preview.video-preview {
  flex-direction: column;
  gap: 8px;
}

.marketing-asset-preview.banner-preview {
  height: 120px;
  padding: 12px;
}

.template-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.marketing-asset-placeholder {
  font-size: 32px;
}

.marketing-asset-info {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.marketing-asset-name {
  font-size: 14px;
  font-weight: 600;
  color: #101828;
}

.marketing-asset-meta {
  font-size: 12px;
  color: #98a2b3;
  font-weight: 500;
}

/* --- Download / Copy Buttons --- */
.marketing-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-top: 1px solid var(--card-border-color);
  font-size: 14px;
  font-weight: 600;
  font-family: 'TT Norms Pro', sans-serif;
  color: var(--primary-color, var(--btn-primary-bg));
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
  background: transparent;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.marketing-download-btn:hover {
  background: #f8f9fc;
}

.marketing-download-btn--disabled,
.marketing-download-btn--disabled:hover {
  color: #98a2b3;
  cursor: not-allowed;
  background: #f8f9fc;
}

.marketing-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid var(--table-border-color);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'TT Norms Pro', sans-serif;
  color: var(--primary-color, var(--btn-primary-bg));
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

.marketing-copy-btn:hover {
  background: #f8f9fc;
  border-color: var(--input-border-color);
}

/* --- Brand Colors --- */
.marketing-colors-section {
  margin-top: 4px;
}

.marketing-colors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .marketing-colors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.marketing-color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--card-border-color);
  border-radius: 10px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.marketing-color-swatch:hover {
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
}

.swatch-color {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--card-border-color);
}

.swatch-label {
  font-size: 13px;
  font-weight: 600;
  color: #101828;
}

.swatch-hex {
  font-size: 12px;
  font-weight: 500;
  color: #98a2b3;
  font-family: monospace;
}

/* --- Email Templates --- */
.marketing-email-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.marketing-email-block {
  border: 1px solid var(--card-border-color);
  border-radius: 10px;
  overflow: hidden;
}

.email-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f9fafb;
  border-bottom: 1px solid var(--card-border-color);
}

.email-block-label {
  font-size: 14px;
  font-weight: 600;
  color: #101828;
}

.email-block-body {
  padding: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--body-color);
  white-space: pre-wrap;
  font-family: 'TT Norms Pro', sans-serif;
  background: #ffffff;
}

/* ============================================================ */
/* --- COMMISSIONS TAB STYLES --- */
/* ============================================================ */

.commissions-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--section-gap, 24px);
}

.commissions-summary-card {
  position: relative;
  overflow: hidden;
  min-height: 112px;
}

.commissions-summary-card__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.commissions-summary-card__label {
  color: #667085;
  font-size: 14px;
}

.commissions-card {
  background: #ffffff;
  border: 1px solid var(--card-border-color);
  border-radius: 12px;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.commissions-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.commissions-card-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #101828;
  margin: 0;
}

.commissions-card-header > svg + h3 {
  flex: 1;
}

.commissions-card-header > svg {
  flex-shrink: 0;
}

.commissions-list-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.commissions-list-title h3 {
  font-size: 18px;
  font-weight: 600;
  color: #101828;
  margin: 0;
}

/* --- Payout Form --- */
.commissions-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.commissions-form-row {
  display: flex;
  gap: 16px;
}

.commissions-form-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.commissions-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.commissions-form-field--wide {
  max-width: none;
  flex: 2;
}

.commissions-form-field label {
  font-family: 'TT Norms Pro', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--body-color);
}

.commissions-input,
.commissions-select {
  font-family: 'TT Norms Pro', sans-serif;
  font-size: 14px;
  color: #101828;
  padding: 10px 14px;
  border: 1px solid var(--input-border-color);
  border-radius: 8px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.commissions-input:focus,
.commissions-select:focus {
  border-color: var(--primary-color, var(--btn-primary-bg));
  box-shadow: 0px 0px 0px 3px rgba(0, 0, 255, 0.08);
}

.commissions-input::placeholder {
  color: #98a2b3;
}

.commissions-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23667085' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.commissions-save-btn {
  font-family: 'TT Norms Pro', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--primary-color, var(--btn-primary-bg));
  border: none;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 24px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

.commissions-save-btn:hover {
  filter: brightness(0.88);
  box-shadow: 0 2px 8px rgba(0, 0, 255, 0.25);
}

.commissions-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Date Picker --- */
.commissions-date-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--input-border-color);
  border-radius: 8px;
  padding: 8px 14px;
}

.commissions-date-input {
  font-family: 'TT Norms Pro', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--body-color);
  border: none;
  outline: none;
  background: transparent;
  width: 120px;
}

.commissions-date-sep {
  color: #98a2b3;
  font-size: 14px;
}

/* --- Commissions Table --- */
.commissions-table-wrap {
  overflow-x: auto;
}

.commissions-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'TT Norms Pro', sans-serif;
}

.commissions-table thead th {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color, var(--btn-primary-bg));
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border-color);
  text-align: left;
  white-space: nowrap;
}

.commissions-table tbody td {
  font-size: 14px;
  color: var(--body-color);
  padding: 14px 16px;
  border-bottom: 1px solid #f2f4f7;
  white-space: nowrap;
}

.commissions-table tbody tr:last-child td {
  border-bottom: none;
}

.commissions-table tbody tr:hover {
  background: #f9fafb;
}

/* Status dots */
.commission-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.commission-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.commission-status-dot--paid {
  background: #12B76A;
}

.commission-status-dot--pending {
  background: #F79009;
}

.commission-status-dot--failed {
  background: #F04438;
}

/* Export PDF button */
.commission-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'TT Norms Pro', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--body-color);
  background: #ffffff;
  border: 1px solid var(--input-border-color);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.commission-export-btn:hover {
  background: #f9fafb;
  border-color: #98a2b3;
}

.commission-export-btn:disabled,
.commission-export-btn--disabled {
  color: #98a2b3;
  background: #f9fafb;
  border-color: #eaecf0;
  cursor: not-allowed;
}

.commission-export-btn:disabled:hover,
.commission-export-btn--disabled:hover {
  background: #f9fafb;
  border-color: #eaecf0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .commissions-summary-grid {
    grid-template-columns: 1fr;
  }

  .commissions-card {
    padding: 16px;
  }

  .commissions-form-row--2col {
    grid-template-columns: 1fr;
  }

  .commissions-form-field {
    max-width: none;
  }

  .commissions-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .commissions-date-picker {
    width: 100%;
  }

  .commissions-date-input {
    flex: 1;
  }
}

/* ============================================================
   DESIGN.MD ALIGNMENT — REWARDS DASHBOARD
   Scoped to /rewards so older marketing-style reward rules do not
   leak into the rest of the platform.
   ============================================================ */

body#rewards-body {
  --rewards-card-bg: var(--card-bg, #FFFFFF);
  --rewards-card-border: var(--card-border-color, #E5E7EB);
  --rewards-card-shadow: var(--card-shadow, 0 1px 2px rgba(10, 13, 18, 0.05));
  --rewards-muted: var(--text-secondary, #535862);
  --rewards-title: var(--page-title-color, #181D27);
  --rewards-focus: 0 0 0 3px rgba(0, 0, 255, 0.08);
  font-family: 'TT Norms Pro', sans-serif;
  background: var(--content-bg, #FAFAFA);
}

body#rewards-body .rewards-page {
  background: var(--content-bg, #FAFAFA);
}

body#rewards-body .rewards-main {
  width: calc(100% - var(--sidebar-width, 256px));
  min-height: 100vh;
  margin-left: var(--sidebar-width, 256px);
  padding: 0 !important;
  background: var(--content-bg, #FAFAFA);
}

body#rewards-body .rewards-container {
  width: 100%;
  max-width: var(--page-max-width, 1200px);
  padding: 24px var(--page-padding-x, 32px) var(--page-padding-bottom, 48px);
  gap: var(--section-gap, 24px);
}

body#rewards-body .rewards-content-layer,
body#rewards-body .rewards-tab-panel,
body#rewards-body #affiliate-tab,
body#rewards-body #marketing-tab,
body#rewards-body #commissions-tab {
  gap: var(--section-gap, 24px);
}

body#rewards-body .rewards-tab-panel {
  padding-top: 0;
}

body#rewards-body .rewards-hero-grid,
body#rewards-body .partner-metrics-grid,
body#rewards-body .commissions-summary-grid {
  gap: var(--section-gap, 24px) !important;
  margin-bottom: 0 !important;
}

body#rewards-body .tier-progress-card,
body#rewards-body .rewards-summary-card,
body#rewards-body .refer-earn-card,
body#rewards-body .tier-card,
body#rewards-body .metric-card,
body#rewards-body .campaign-breakdown-card,
body#rewards-body .campaign-link-generator-card,
body#rewards-body .marketing-section,
body#rewards-body .marketing-asset-card,
body#rewards-body .marketing-color-swatch,
body#rewards-body .commissions-summary-card,
body#rewards-body .commissions-card,
body#rewards-body .quick-insights-card,
body#rewards-body .rewards-error-layer,
body#rewards-body .rewards-empty-layer,
body#rewards-body .rewards-pending-modal {
  background: var(--rewards-card-bg) !important;
  border: 1px solid var(--rewards-card-border) !important;
  border-radius: 12px !important;
  box-shadow: var(--rewards-card-shadow) !important;
  transform: none !important;
}

body#rewards-body .tier-progress-card,
body#rewards-body .rewards-summary-card,
body#rewards-body .refer-earn-card,
body#rewards-body .tier-card,
body#rewards-body .metric-card,
body#rewards-body .marketing-section,
body#rewards-body .commissions-summary-card,
body#rewards-body .commissions-card,
body#rewards-body .rewards-error-layer,
body#rewards-body .rewards-empty-layer {
  padding: 24px !important;
}

body#rewards-body .tier-card--active,
body#rewards-body .tier-card--locked,
body#rewards-body .tier-progress-card.intro-style {
  background: var(--rewards-card-bg) !important;
  border-color: var(--rewards-card-border) !important;
  opacity: 1 !important;
}

body#rewards-body .tier-card--active::before,
body#rewards-body .tier-progress-card::before,
body#rewards-body .rewards-summary-card::before,
body#rewards-body .metric-card::before,
body#rewards-body .commissions-summary-card::before,
body#rewards-body .commissions-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color, #0000FF), var(--progress-fill-bg, #98FB96));
  border-radius: 12px 12px 0 0;
  pointer-events: none;
}

body#rewards-body .tier-progress-card,
body#rewards-body .rewards-summary-card,
body#rewards-body .metric-card,
body#rewards-body .commissions-summary-card,
body#rewards-body .commissions-card {
  position: relative;
  overflow: hidden;
}

body#rewards-body .metric-card:hover,
body#rewards-body .marketing-asset-card:hover,
body#rewards-body .marketing-color-swatch:hover,
body#rewards-body .tier-card:hover {
  border-color: var(--rewards-card-border) !important;
  box-shadow: var(--rewards-card-shadow) !important;
  transform: none !important;
}

body#rewards-body .summary-label,
body#rewards-body .metric-card-title,
body#rewards-body .tp-label,
body#rewards-body .tier-benefits-label,
body#rewards-body .insights-title,
body#rewards-body .campaign-subtitle,
body#rewards-body .marketing-asset-meta,
body#rewards-body .state-desc,
body#rewards-body .reward-context,
body#rewards-body .social-share-label {
  color: var(--rewards-muted) !important;
  letter-spacing: 0 !important;
}

body#rewards-body .summary-amount,
body#rewards-body .metric-card-value,
body#rewards-body .tp-amount,
body#rewards-body .reward-amount,
body#rewards-body .financials-amount,
body#rewards-body .state-title,
body#rewards-body .tier-name-block h3,
body#rewards-body .refer-title-wrap h3,
body#rewards-body .campaign-title-wrap h3,
body#rewards-body .marketing-section-header h3,
body#rewards-body .commissions-card-header h3,
body#rewards-body .section-title {
  color: var(--rewards-title) !important;
  letter-spacing: 0 !important;
}

body#rewards-body .summary-amount,
body#rewards-body .metric-card-value,
body#rewards-body .tp-amount,
body#rewards-body .reward-amount,
body#rewards-body .financials-amount {
  font-size: 28px !important;
  line-height: 34px !important;
  font-weight: 700 !important;
}

body#rewards-body .refer-title-wrap svg,
body#rewards-body .campaign-title-wrap svg,
body#rewards-body .marketing-section-header svg,
body#rewards-body .commissions-card-header svg,
body#rewards-body .commissions-list-title svg {
  color: var(--rewards-muted) !important;
  stroke: currentColor !important;
}

body#rewards-body .glass-icon-bg,
body#rewards-body .p-bg,
body#rewards-body .p-icon::before,
body#rewards-body .p-front::before,
body#rewards-body .p-front::after {
  display: none !important;
}

/* Restore glassmorphism for marketing tab tier icons */
body#rewards-body #marketing-tab .glass-icon-bg {
  display: block !important;
}
body#rewards-body #marketing-tab .glass-icon-container {
  width: 56px !important;
  height: 56px !important;
}
body#rewards-body #marketing-tab .glass-icon-front {
  width: 56px !important;
  height: 56px !important;
  background: linear-gradient(145deg, rgba(255,255,255,0.88), rgba(235,240,255,0.6)) !important;
  border: 1px solid rgba(255,255,255,0.85) !important;
  box-shadow: 0 4px 16px rgba(0,0,255,0.06), 0 4px 16px rgba(3,255,136,0.04), inset 0 1px 2px rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

body#rewards-body .glass-icon-container,
body#rewards-body .p-icon {
  width: 44px !important;
  height: 44px !important;
  transform: none !important;
}

body#rewards-body .glass-icon-front,
body#rewards-body .p-front,
body#rewards-body .marketing-asset-preview,
body#rewards-body .icon-outer-circle {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  border-radius: 10px !important;
  background: #F5F7FF !important;
  border: 1px solid var(--rewards-card-border) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body#rewards-body .glass-icon-front span,
body#rewards-body .p-front svg,
body#rewards-body .benefit-tick {
  color: var(--primary-color, #0000FF) !important;
  stroke: currentColor !important;
}

body#rewards-body .copy-link-btn,
body#rewards-body .retry-btn,
body#rewards-body .chart-date-apply-btn,
body#rewards-body .ds-btn--primary {
  min-height: 40px;
  border-radius: 8px !important;
  border: 1px solid var(--btn-primary-bg, #0000FF) !important;
  background: var(--btn-primary-bg, #0000FF) !important;
  color: var(--btn-primary-text, #98FB96) !important;
  box-shadow: none !important;
  filter: none !important;
}

body#rewards-body .copy-link-btn:hover,
body#rewards-body .retry-btn:hover,
body#rewards-body .chart-date-apply-btn:hover,
body#rewards-body .ds-btn--primary:hover {
  background: var(--btn-primary-hover-bg, #0000CC) !important;
  color: var(--btn-primary-text, #98FB96) !important;
  box-shadow: none !important;
  filter: none !important;
}

body#rewards-body #campaign-export-btn,
body#rewards-body .social-share-pill,
body#rewards-body .marketing-download-btn,
body#rewards-body .marketing-copy-btn,
body#rewards-body .commission-export-btn,
body#rewards-body .chart-filter-btn {
  border: 1px solid var(--rewards-card-border) !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  color: var(--body-color, #344054) !important;
  box-shadow: none !important;
  filter: none !important;
}

body#rewards-body #campaign-export-btn:hover,
body#rewards-body .social-share-pill:hover,
body#rewards-body .marketing-download-btn:hover,
body#rewards-body .marketing-copy-btn:hover,
body#rewards-body .commission-export-btn:hover,
body#rewards-body .chart-filter-btn:hover {
  background: #FFFFFF !important;
  color: var(--body-color, #344054) !important;
  border-color: var(--rewards-card-border) !important;
}

body#rewards-body .chart-filter-group {
  background: #F5F5F5 !important;
  border: 1px solid var(--rewards-card-border);
  border-radius: 10px;
  padding: 3px;
}

body#rewards-body .chart-filter-btn.active {
  background: #FFFFFF !important;
  color: var(--rewards-title) !important;
  box-shadow: var(--rewards-card-shadow) !important;
}

body#rewards-body .refer-input-wrapper,
body#rewards-body #campaign-subid-input,
body#rewards-body #campaign-search-input,
body#rewards-body .chart-date-field input[type="date"],
body#rewards-body .commissions-date-picker,
body#rewards-body .commissions-date-input,
body#rewards-body .settings-input,
body#rewards-body .ds-select,
body#rewards-body .commissions-input,
body#rewards-body .commissions-select {
  min-height: 40px;
  border: 1px solid var(--input-border-color, #D5D7DA) !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
  font-family: 'TT Norms Pro', sans-serif !important;
  color: var(--body-color, #344054) !important;
}

body#rewards-body .refer-input-wrapper:focus-within,
body#rewards-body #campaign-subid-input:focus,
body#rewards-body #campaign-search-input:focus,
body#rewards-body .chart-date-field input[type="date"]:focus,
body#rewards-body .settings-input:focus,
body#rewards-body .ds-select:focus,
body#rewards-body .commissions-input:focus,
body#rewards-body .commissions-select:focus {
  border-color: var(--primary-color, #0000FF) !important;
  box-shadow: var(--rewards-focus) !important;
  outline: none !important;
}

body#rewards-body .tp-progress-bar,
body#rewards-body .tier-progress-track,
body#rewards-body .ds-progress {
  background: var(--progress-track-bg, #D5D7DA) !important;
  border-radius: var(--progress-border-radius, 30px) !important;
}

body#rewards-body .tp-progress-fill,
body#rewards-body .tier-progress-fill,
body#rewards-body .ds-progress__fill {
  background: var(--progress-fill-bg, #98FB96) !important;
  border-radius: var(--progress-border-radius, 30px) !important;
}

body#rewards-body .campaign-table,
body#rewards-body .data-table,
body#rewards-body .commissions-table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-family: 'TT Norms Pro', sans-serif !important;
}

body#rewards-body .campaign-table thead th,
body#rewards-body .data-table__th,
body#rewards-body .commissions-table thead th {
  background: #FFFFFF !important;
  color: var(--rewards-muted) !important;
  border-bottom: 1px solid var(--rewards-card-border) !important;
  font-size: 12px !important;
  line-height: 18px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em !important;
}

body#rewards-body .campaign-table tbody td,
body#rewards-body .data-table__td,
body#rewards-body .commissions-table tbody td {
  color: var(--body-color, #344054) !important;
  border-bottom: 1px solid #F2F4F7 !important;
  font-size: 14px !important;
  line-height: 20px !important;
}

body#rewards-body .campaign-table tbody tr:hover,
body#rewards-body .data-table__row:hover,
body#rewards-body .commissions-table tbody tr:hover {
  background: #FAFAFA !important;
}

body#rewards-body .campaign-subid-badge,
body#rewards-body .ds-badge,
body#rewards-body .metric-card-trend {
  border-radius: 999px !important;
  border: 1px solid var(--rewards-card-border) !important;
  background: #F5F5F5 !important;
  color: var(--body-color, #344054) !important;
  box-shadow: none !important;
}

body#rewards-body .metric-card-trend.positive,
body#rewards-body .campaign-cvr {
  background: #ECFDF3 !important;
  color: #067647 !important;
  border-color: #ABEFC6 !important;
}

body#rewards-body .campaign-cvr.low {
  background: transparent !important;
  color: #B54708 !important;
}

body#rewards-body .marketing-asset-preview.template-preview,
body#rewards-body .marketing-asset-preview.video-preview,
body#rewards-body .marketing-asset-preview.banner-preview {
  width: 100% !important;
  height: 120px !important;
  border-radius: 0 !important;
  background: #F5F7FF !important;
}

body#rewards-body .marketing-asset-preview.template-preview svg,
body#rewards-body .marketing-asset-preview.video-preview svg,
body#rewards-body .marketing-asset-preview.banner-preview svg {
  color: var(--primary-color, #0000FF) !important;
  fill: currentColor !important;
}

body#rewards-body .template-label {
  color: var(--body-color, #344054) !important;
  letter-spacing: 0 !important;
}

body#rewards-body .email-block-header,
body#rewards-body .campaign-subtitle code {
  background: #FAFAFA !important;
  border-color: var(--rewards-card-border) !important;
}

body#rewards-body .rewards-pending-modal {
  border-radius: 12px !important;
}

@media (max-width: 1024px) {
  body#rewards-body .rewards-main {
    width: 100%;
    margin-left: 0;
  }

  body#rewards-body .rewards-container {
    max-width: none;
  }
}

@media (max-width: 768px) {
  body#rewards-body .rewards-container {
    padding: 16px;
    padding-top: 80px;
    gap: 20px;
  }

  body#rewards-body .rewards-hero-grid,
  body#rewards-body .partner-metrics-grid,
  body#rewards-body .marketing-assets-grid,
  body#rewards-body .commissions-summary-grid {
    grid-template-columns: 1fr !important;
  }

  body#rewards-body .campaign-card-header,
  body#rewards-body .commissions-card-header,
  body#rewards-body .tier-card-header-new,
  body#rewards-body .tp-invested-row,
  body#rewards-body .refer-input-group,
  body#rewards-body .campaign-card-header .campaign-table-actions,
  body#rewards-body .commissions-form-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body#rewards-body #campaign-search-input,
  body#rewards-body .copy-link-btn,
  body#rewards-body #campaign-export-btn {
    width: 100% !important;
  }
}
