:root {
  --mh-aff-purple: #401257;
  --mh-aff-purple-deep: #2c0c3e;
  --mh-aff-purple-soft: #f4edf9;
  --mh-aff-red: #f80f13;
  --mh-aff-ink: #151122;
  --mh-aff-muted: #6a6175;
  --mh-aff-line: #ebe4f1;
  --mh-aff-surface: #ffffff;
  --mh-aff-surface-alt: #f8f6fb;
  --mh-aff-success: #1e8e5a;
  --mh-aff-warning: #a86a00;
  --mh-aff-danger: #a12632;
  --mh-aff-shadow: 0 18px 48px rgba(34, 14, 54, 0.08);
  --mh-aff-shadow-soft: 0 10px 28px rgba(34, 14, 54, 0.06);
  --mh-aff-radius: 22px;
}

body.rtcl-account .rtcl-MyAccount-wrap .rtcl-MyAccount-navigation ul li.rtcl-MyAccount-navigation-link--affiliate-center > a,
body.rtcl-account .rtcl-MyAccount-mobile-navbar .rtcl-MyAccount-navigation ul li.rtcl-MyAccount-navigation-link--affiliate-center > a {
  position: relative;
}

body.rtcl-account .rtcl-MyAccount-wrap .rtcl-MyAccount-navigation ul li.rtcl-MyAccount-navigation-link--affiliate-center > a::before,
body.rtcl-account .rtcl-MyAccount-mobile-navbar .rtcl-MyAccount-navigation ul li.rtcl-MyAccount-navigation-link--affiliate-center > a::before {
  content: "";
  display: inline-flex;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  margin-right: 10px;
  vertical-align: middle;
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 17%, transparent 18%),
    linear-gradient(135deg, var(--mh-aff-red) 0%, #ff5d4e 34%, var(--mh-aff-purple) 70%, var(--mh-aff-purple-deep) 100%);
  box-shadow: 0 0 0 3px rgba(64, 18, 87, 0.08);
}

body.rtcl-account .rtcl-MyAccount-wrap .rtcl-MyAccount-navigation ul li.rtcl-MyAccount-navigation-link--affiliate-center.is-active > a::before,
body.rtcl-account .rtcl-MyAccount-wrap .rtcl-MyAccount-navigation ul li.rtcl-MyAccount-navigation-link--affiliate-center:hover > a::before,
body.rtcl-account .rtcl-MyAccount-mobile-navbar .rtcl-MyAccount-navigation ul li.rtcl-MyAccount-navigation-link--affiliate-center.is-active > a::before,
body.rtcl-account .rtcl-MyAccount-mobile-navbar .rtcl-MyAccount-navigation ul li.rtcl-MyAccount-navigation-link--affiliate-center:hover > a::before {
  box-shadow: 0 0 0 4px rgba(248, 15, 19, 0.1);
}

.mh-affiliate-bridge {
  margin: 0;
}

.mh-affiliate-shell {
  background: linear-gradient(180deg, rgba(244, 237, 249, 0.9) 0%, rgba(255, 255, 255, 0.98) 28%, rgba(248, 246, 251, 0.98) 100%);
  border: 1px solid rgba(235, 228, 241, 0.9);
  border-radius: 26px;
  box-shadow: var(--mh-aff-shadow);
  overflow: hidden;
}

.mh-affiliate-shell__head {
  padding: 28px 32px 20px;
  background:
    radial-gradient(circle at top right, rgba(248, 15, 19, 0.09), transparent 30%),
    radial-gradient(circle at top left, rgba(64, 18, 87, 0.12), transparent 34%);
}

.mh-affiliate-shell__eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.mh-affiliate-shell__eyebrow,
.mh-affiliate-shell__status,
.mh-affwp-register-intro__eyebrow,
.mh-affwp-dashboard__eyebrow,
.mh-affiliate-panel__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mh-affiliate-shell__eyebrow,
.mh-affwp-register-intro__eyebrow,
.mh-affwp-dashboard__eyebrow,
.mh-affiliate-panel__label {
  color: var(--mh-aff-purple);
  background: rgba(64, 18, 87, 0.08);
}

.mh-affiliate-shell__status {
  color: var(--mh-aff-ink);
  background: rgba(21, 17, 34, 0.07);
}

.mh-affiliate-shell__status--active,
.mh-affwp-dashboard__badge--active {
  color: var(--mh-aff-success);
  background: rgba(30, 142, 90, 0.11);
}

.mh-affiliate-shell__status--pending,
.mh-affwp-dashboard__badge--pending {
  color: var(--mh-aff-warning);
  background: rgba(168, 106, 0, 0.12);
}

.mh-affiliate-shell__status--rejected,
.mh-affiliate-shell__status--inactive,
.mh-affwp-dashboard__badge--rejected,
.mh-affwp-dashboard__badge--inactive {
  color: var(--mh-aff-danger);
  background: rgba(161, 38, 50, 0.11);
}

.mh-affiliate-shell__title,
.mh-affwp-dashboard__title,
.mh-affwp-register-intro__title {
  margin: 0 0 10px;
  color: var(--mh-aff-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mh-affiliate-shell__title {
  font-size: 42px;
  line-height: 1.08;
}

.mh-affiliate-shell__text,
.mh-affwp-dashboard__text,
.mh-affwp-register-intro__text,
.mh-affiliate-panel__text,
.mh-affwp-inline-note span {
  margin: 0;
  color: var(--mh-aff-muted);
  font-size: 16px;
  line-height: 1.7;
}

.mh-affiliate-panels,
.mh-affiliate-stats {
  display: grid;
  gap: 16px;
  padding: 0 32px 18px;
}

.mh-affiliate-panels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mh-affiliate-panel,
.mh-affiliate-stat {
  border: 1px solid rgba(235, 228, 241, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--mh-aff-shadow-soft);
}

.mh-affiliate-panel {
  padding: 22px 20px;
}

.mh-affiliate-panel__title {
  display: block;
  margin: 14px 0 8px;
  color: var(--mh-aff-ink);
  font-size: 20px;
  line-height: 1.3;
}

.mh-affiliate-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mh-affiliate-stat {
  padding: 20px;
}

.mh-affiliate-stat__label {
  display: block;
  color: var(--mh-aff-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mh-affiliate-stat__value {
  display: block;
  margin-top: 10px;
  color: var(--mh-aff-ink);
  font-size: 28px;
  line-height: 1.15;
}

.mh-affiliate-shell__body {
  padding: 12px 32px 32px;
}

.mh-affiliate-empty-state {
  margin: 0 32px 32px;
  padding: 22px 24px;
  border: 1px solid rgba(248, 15, 19, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
}

.mh-affwp-register-form,
.mh-affwp-dashboard {
  margin: 0;
}

.mh-affwp-register-form fieldset,
.mh-affwp-dashboard__content,
.mh-affwp-dashboard__tabs-wrap {
  border: 1px solid var(--mh-aff-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
}

.mh-affwp-register-form fieldset {
  padding: 26px;
}

.mh-affwp-register-intro {
  margin-bottom: 18px;
  padding: 24px 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(64, 18, 87, 0.06), rgba(248, 15, 19, 0.04));
  border: 1px solid rgba(235, 228, 241, 0.9);
}

.mh-affwp-register-intro__title {
  font-size: 30px;
  line-height: 1.12;
}

.mh-affwp-inline-note {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--mh-aff-surface-alt);
  border: 1px solid var(--mh-aff-line);
}

.mh-affwp-inline-note strong,
.mh-affiliate-empty-state strong {
  color: var(--mh-aff-ink);
}

.mh-affwp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.mh-affwp-field {
  margin: 0 !important;
}

.mh-affwp-field--full {
  grid-column: 1 / -1;
}

.mh-affwp-register-form label,
#affwp-affiliate-dashboard label {
  display: block;
  margin-bottom: 8px;
  color: var(--mh-aff-ink);
  font-size: 14px;
  font-weight: 700;
}

.mh-affwp-register-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.mh-affwp-register-form textarea,
#affwp-affiliate-dashboard input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
#affwp-affiliate-dashboard select,
#affwp-affiliate-dashboard textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--mh-aff-line);
  border-radius: 16px;
  background: #fff;
  color: var(--mh-aff-ink);
  font-size: 15px;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mh-affwp-register-form textarea,
#affwp-affiliate-dashboard textarea {
  min-height: 150px;
  resize: vertical;
}

.mh-affwp-register-form input:focus,
.mh-affwp-register-form textarea:focus,
#affwp-affiliate-dashboard input:focus,
#affwp-affiliate-dashboard select:focus,
#affwp-affiliate-dashboard textarea:focus {
  outline: none;
  border-color: rgba(64, 18, 87, 0.45);
  box-shadow: 0 0 0 4px rgba(64, 18, 87, 0.09);
}

.mh-affwp-field--tos label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mh-aff-muted);
}

.mh-affwp-field--tos input {
  min-height: 0;
  width: auto;
  margin-top: 3px;
}

.mh-affwp-field--tos a {
  color: var(--mh-aff-purple);
  text-decoration: none;
}

.mh-affwp-submit-row {
  margin-top: 20px;
}

.mh-affwp-register-form input[type="submit"],
#affwp-affiliate-dashboard input[type="submit"],
#affwp-affiliate-dashboard .button,
#affwp-affiliate-dashboard .affwp-copy-button,
#affwp-affiliate-dashboard a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--mh-aff-purple), var(--mh-aff-red));
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(64, 18, 87, 0.16);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.mh-affwp-register-form input[type="submit"]:hover,
#affwp-affiliate-dashboard input[type="submit"]:hover,
#affwp-affiliate-dashboard .button:hover,
#affwp-affiliate-dashboard .affwp-copy-button:hover,
#affwp-affiliate-dashboard a.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(64, 18, 87, 0.2);
}

#affwp-affiliate-dashboard .affwp-notice,
.mh-affwp-register-form .affwp-errors,
.mh-affwp-register-form .affwp-error,
.mh-affwp-register-form .affwp-message,
.mh-affwp-dashboard .affwp-errors,
.mh-affwp-dashboard .affwp-message {
  margin: 0 0 18px;
  padding: 15px 18px;
  border-radius: 16px;
  border: 1px solid var(--mh-aff-line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--mh-aff-ink);
}

.mh-affwp-dashboard__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 18px;
}

.mh-affwp-dashboard__title {
  font-size: 30px;
  line-height: 1.12;
}

.mh-affwp-dashboard__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(21, 17, 34, 0.08);
  color: var(--mh-aff-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mh-affwp-dashboard__tabs-wrap {
  padding: 14px;
  margin-bottom: 18px;
}

#affwp-affiliate-dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#affwp-affiliate-dashboard-tabs li {
  margin: 0;
}

#affwp-affiliate-dashboard-tabs li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--mh-aff-surface-alt);
  border: 1px solid var(--mh-aff-line);
  color: var(--mh-aff-purple);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

#affwp-affiliate-dashboard-tabs li.active a,
#affwp-affiliate-dashboard-tabs li a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--mh-aff-purple), var(--mh-aff-red));
  border-color: transparent;
}

#affwp-affiliate-dashboard-tabs .affwp-affiliate-dashboard-tab--logout a {
  color: var(--mh-aff-danger);
  background: rgba(248, 15, 19, 0.05);
}

.mh-affwp-dashboard__content {
  padding: 20px;
}

#affwp-affiliate-dashboard table,
#affwp-affiliate-dashboard .affwp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--mh-aff-line);
  border-radius: 18px;
  background: #fff;
}

#affwp-affiliate-dashboard table th,
#affwp-affiliate-dashboard table td,
#affwp-affiliate-dashboard .affwp-table th,
#affwp-affiliate-dashboard .affwp-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--mh-aff-line);
  color: var(--mh-aff-ink);
  font-size: 14px;
  vertical-align: top;
}

#affwp-affiliate-dashboard table th,
#affwp-affiliate-dashboard .affwp-table th {
  background: var(--mh-aff-surface-alt);
  font-weight: 800;
}

#affwp-affiliate-dashboard table tr:last-child td,
#affwp-affiliate-dashboard .affwp-table tr:last-child td {
  border-bottom: 0;
}

#affwp-affiliate-dashboard .affwp-graphs,
#affwp-affiliate-dashboard .affwp-creatives,
#affwp-affiliate-dashboard .affwp-payout-methods,
#affwp-affiliate-dashboard .affwp-referral-url-form {
  padding: 18px;
  border: 1px solid var(--mh-aff-line);
  border-radius: 18px;
  background: var(--mh-aff-surface-alt);
}

@media (max-width: 1199px) {
  .mh-affiliate-shell__title {
    font-size: 34px;
  }

  .mh-affiliate-panels,
  .mh-affiliate-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .mh-affiliate-shell__head,
  .mh-affiliate-shell__body,
  .mh-affiliate-panels,
  .mh-affiliate-stats {
    padding-left: 22px;
    padding-right: 22px;
  }

  .mh-affwp-grid,
  .mh-affiliate-panels,
  .mh-affiliate-stats {
    grid-template-columns: 1fr;
  }

  .mh-affwp-dashboard__hero {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .mh-affiliate-shell {
    border-radius: 20px;
  }

  .mh-affiliate-shell__head,
  .mh-affiliate-shell__body,
  .mh-affiliate-panels,
  .mh-affiliate-stats {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mh-affiliate-shell__title {
    font-size: 28px;
  }

  .mh-affwp-register-intro,
  .mh-affwp-register-form fieldset,
  .mh-affwp-dashboard__tabs-wrap,
  .mh-affwp-dashboard__content {
    padding: 16px;
    border-radius: 18px;
  }

  #affwp-affiliate-dashboard-tabs {
    gap: 8px;
  }

  #affwp-affiliate-dashboard-tabs li a {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }
}


/* v0.1.6 tab-link reinforcement */


.mh-affiliate-dashboard-tabs-wrap {
  position: relative;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid var(--mh-aff-line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,246,251,.98) 100%);
  box-shadow: var(--mh-aff-shadow-soft);
}

.mh-affiliate-dashboard-tabs {
  position: relative;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mh-affiliate-dashboard-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(64, 18, 87, 0.10);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f3fb 100%);
  box-shadow: 0 4px 12px rgba(34, 14, 54, 0.05);
  color: var(--mh-aff-purple) !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none !important;
  pointer-events: auto;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.mh-affiliate-dashboard-tab:hover,
.mh-affiliate-dashboard-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(248, 15, 19, 0.22);
  box-shadow: 0 10px 22px rgba(34, 14, 54, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f2eaf9 100%);
  color: var(--mh-aff-purple-deep) !important;
  outline: none;
}

.mh-affiliate-dashboard-tab.is-active,
.mh-affiliate-dashboard-tab[aria-current="page"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--mh-aff-purple) 0%, #5a1d78 55%, var(--mh-aff-purple-deep) 100%);
  box-shadow: 0 14px 26px rgba(44, 12, 62, 0.22);
  color: #ffffff !important;
}

.mh-affiliate-dashboard-tab--logout {
  background: linear-gradient(180deg, #fff7f7 0%, #fff1f2 100%);
  color: #992437 !important;
  border-color: rgba(153, 36, 55, 0.12);
}

.mh-affiliate-dashboard-tab--logout:hover,
.mh-affiliate-dashboard-tab--logout:focus-visible {
  color: #7e1a2a !important;
  border-color: rgba(153, 36, 55, 0.20);
  background: linear-gradient(180deg, #fff5f6 0%, #ffecef 100%);
}

.mh-affiliate-dashboard-tab span { pointer-events: none; }

.mh-affiliate-dashboard-panel {
  border: 1px solid var(--mh-aff-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--mh-aff-shadow-soft);
  padding: 22px;
}

@media (max-width: 991px) {
  .mh-affiliate-dashboard-tabs-wrap { padding: 8px; border-radius: 20px; }
  .mh-affiliate-dashboard-tabs { gap: 10px; }
  .mh-affiliate-dashboard-tab { min-height: 44px; padding: 0 15px; font-size: 15px; }
  .mh-affiliate-dashboard-panel { padding: 18px; border-radius: 20px; }
}

@media (max-width: 640px) {
  .mh-affiliate-dashboard-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mh-affiliate-dashboard-tab { width: 100%; }
}


/* v0.1.8 dashboard content polish */
.mh-affiliate-dashboard-context {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid rgba(235, 228, 241, 0.95);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(248, 15, 19, 0.05), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,246,251,.98) 100%);
  box-shadow: var(--mh-aff-shadow-soft);
}

.mh-affiliate-dashboard-context__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(64, 18, 87, 0.08);
  color: var(--mh-aff-purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mh-affiliate-dashboard-context__title {
  margin: 0 0 6px;
  color: var(--mh-aff-ink);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.mh-affiliate-dashboard-context__text {
  margin: 0;
  color: var(--mh-aff-muted);
  font-size: 15px;
  line-height: 1.65;
}

.mh-affiliate-dashboard-panel {
  background:
    radial-gradient(circle at top left, rgba(64, 18, 87, 0.03), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 247, 252, 0.98) 100%);
}

.mh-affiliate-dashboard-panel__inner > *:first-child {
  margin-top: 0 !important;
}

.mh-affiliate-dashboard-panel__inner > *:last-child {
  margin-bottom: 0 !important;
}

.mh-affiliate-dashboard-panel h2,
.mh-affiliate-dashboard-panel h3,
.mh-affiliate-dashboard-panel h4,
.mh-affiliate-dashboard-panel legend {
  color: var(--mh-aff-ink);
  letter-spacing: -0.02em;
}

.mh-affiliate-dashboard-panel h2 {
  font-size: 26px;
  line-height: 1.18;
  margin: 0 0 14px;
}

.mh-affiliate-dashboard-panel h3,
.mh-affiliate-dashboard-panel legend {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 12px;
}

.mh-affiliate-dashboard-panel p,
.mh-affiliate-dashboard-panel li,
.mh-affiliate-dashboard-panel .description,
.mh-affiliate-dashboard-panel .affwp-description {
  color: var(--mh-aff-muted);
}

.mh-affiliate-dashboard-panel .affwp-referral-url-form,
.mh-affiliate-dashboard-panel .affwp-graphs,
.mh-affiliate-dashboard-panel .affwp-creatives,
.mh-affiliate-dashboard-panel .affwp-payout-methods,
.mh-affiliate-dashboard-panel .affwp-settings,
.mh-affiliate-dashboard-panel .affwp-visits,
.mh-affiliate-dashboard-panel .affwp-referrals,
.mh-affiliate-dashboard-panel .affwp-creative,
.mh-affiliate-dashboard-panel .affwp-tab-content > div,
.mh-affiliate-dashboard-panel .affwp-affiliate-dashboard-tab-content > div {
  border-radius: 20px;
}

.mh-affiliate-dashboard-panel .affwp-referral-url-form,
.mh-affiliate-dashboard-panel .affwp-graphs,
.mh-affiliate-dashboard-panel .affwp-creatives,
.mh-affiliate-dashboard-panel .affwp-payout-methods,
.mh-affiliate-dashboard-panel .affwp-settings,
.mh-affiliate-dashboard-panel .affwp-visits,
.mh-affiliate-dashboard-panel .affwp-referrals {
  background: #fff;
  border: 1px solid var(--mh-aff-line);
  box-shadow: var(--mh-aff-shadow-soft);
}

.mh-affiliate-dashboard-panel .affwp-referral-url-form,
.mh-affiliate-dashboard-panel .affwp-graphs,
.mh-affiliate-dashboard-panel .affwp-payout-methods,
.mh-affiliate-dashboard-panel .affwp-settings,
.mh-affiliate-dashboard-panel .affwp-visits,
.mh-affiliate-dashboard-panel .affwp-referrals {
  padding: 20px;
}

.mh-affiliate-dashboard-panel .affwp-creatives {
  padding: 10px;
}

.mh-affiliate-dashboard-panel .affwp-creative,
.mh-affiliate-dashboard-panel .affwp-creative-item,
.mh-affiliate-dashboard-panel .affwp-creative-wrap {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid var(--mh-aff-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,246,251,.95) 100%);
}

.mh-affiliate-dashboard-panel code,
.mh-affiliate-dashboard-panel pre,
.mh-affiliate-dashboard-panel .affwp-code {
  border-radius: 16px;
  background: #f7f3fb;
  border: 1px solid var(--mh-aff-line);
}

.mh-affiliate-dashboard-panel input[readonly],
.mh-affiliate-dashboard-panel .readonly {
  background: #faf8fd;
}

.mh-affiliate-dashboard-panel .affwp-copy-button,
.mh-affiliate-dashboard-panel .button-secondary,
.mh-affiliate-dashboard-panel a.button-secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f4edf9 100%);
  color: var(--mh-aff-purple) !important;
  border: 1px solid rgba(64, 18, 87, 0.14);
  box-shadow: 0 8px 18px rgba(34, 14, 54, 0.06);
}

.mh-affiliate-dashboard-panel .affwp-copy-button:hover,
.mh-affiliate-dashboard-panel .button-secondary:hover,
.mh-affiliate-dashboard-panel a.button-secondary:hover {
  color: var(--mh-aff-purple-deep) !important;
  border-color: rgba(64, 18, 87, 0.22);
}

.mh-affiliate-dashboard-panel table caption {
  padding: 0 0 12px;
  color: var(--mh-aff-ink);
  font-weight: 700;
  text-align: left;
}

.mh-affiliate-dashboard-panel table tbody tr:hover,
.mh-affiliate-dashboard-panel .affwp-table tbody tr:hover {
  background: rgba(64, 18, 87, 0.025);
}

.mh-affiliate-dashboard-panel .affwp-tab-content,
.mh-affiliate-dashboard-panel .affwp-affiliate-dashboard-tab-content {
  display: grid;
  gap: 18px;
}

.mh-affiliate-dashboard-tab {
  min-height: 50px;
  padding: 0 20px;
}

@media (max-width: 767px) {
  .mh-affiliate-dashboard-context {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
  }

  .mh-affiliate-dashboard-context__title {
    font-size: 21px;
  }

  .mh-affiliate-dashboard-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mh-affiliate-dashboard-tab {
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
    text-align: center;
  }

  .mh-affiliate-dashboard-panel {
    padding: 16px;
  }

  .mh-affiliate-dashboard-panel .affwp-referral-url-form,
  .mh-affiliate-dashboard-panel .affwp-graphs,
  .mh-affiliate-dashboard-panel .affwp-payout-methods,
  .mh-affiliate-dashboard-panel .affwp-settings,
  .mh-affiliate-dashboard-panel .affwp-visits,
  .mh-affiliate-dashboard-panel .affwp-referrals {
    padding: 16px;
  }

  .mh-affiliate-dashboard-panel h2 {
    font-size: 22px;
  }
}
