.sponsor-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 8px;
  background: #563e8f;
  color: #fff;
  padding: 4px 7px;
  font-size: .72rem;
  font-weight: 800;
}

.detail-secondary-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
}

.detail-secondary-actions button,
.detail-secondary-actions a {
  border: 0;
  background: transparent;
  color: #907581;
  padding: 5px 0;
  font-size: .8rem;
  text-decoration: underline;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}

.admin-metric-grid > div {
  min-width: 0;
  border: 1px solid #efdae4;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #fff7fa);
  padding: 15px;
}

.admin-metric-grid span {
  display: block;
  min-height: 40px;
  color: #7c6470;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.45;
}

.admin-metric-grid strong {
  color: #d83f7d;
  font-family: var(--display-font);
  font-size: 1.65rem;
  font-weight: 400;
}

.admin-metric-grid small { margin-left: 3px; color: #9f8994; font-size: .78rem; }

.admin-subtabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 0 -22px;
  border-top: 1px solid #f1dce6;
  border-bottom: 1px solid #f1dce6;
  padding: 11px 22px;
  scrollbar-width: none;
}

.admin-subtabs button {
  flex: 0 0 auto;
  min-height: 39px;
  border: 1px solid #ead3de;
  border-radius: 10px;
  background: #fff;
  color: #6d5661;
  padding: 0 13px;
  font-size: .86rem;
}

.admin-subtabs button.active {
  border-color: #ff6fa8;
  background: #fff0f6;
  color: #d63d7a;
}

.admin-panel { padding-top: 20px; }
.admin-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 15px; }
.admin-section-head h3 { margin: 0 0 4px; font-family: var(--display-font); font-size: 1.25rem; font-weight: 400; }
.admin-section-head p { max-width: 620px; margin: 0; color: #806b75; font-size: .88rem; line-height: 1.6; }
.admin-section-head > span { flex: 0 0 auto; border-radius: 99px; background: #fff0f6; color: #cb3974; padding: 7px 10px; font-size: .8rem; font-weight: 800; }

.moderation-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.moderation-flow > div { position: relative; min-width: 0; border-radius: 13px; background: #faf4f7; padding: 13px 12px 13px 43px; }
.moderation-flow b { position: absolute; top: 13px; left: 12px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #ff6fa8; color: #fff; font-size: .78rem; }
.moderation-flow strong, .moderation-flow span { display: block; }
.moderation-flow strong { font-size: .86rem; }
.moderation-flow span { margin-top: 3px; color: #8c747f; font-size: .76rem; line-height: 1.45; }

.moderation-list, .case-list, .campaign-list { display: grid; gap: 9px; }
.moderation-card { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid #eed9e3; border-radius: 14px; background: #fff; padding: 11px; }
.moderation-card > img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; background: #fff2f6; }
.moderation-copy { min-width: 0; }
.moderation-copy > strong { display: block; margin: 7px 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.moderation-copy p { margin: 0; color: #806b75; font-size: .78rem; line-height: 1.45; }
.moderation-badges, .campaign-labels { display: flex; flex-wrap: wrap; gap: 5px; }
.moderation-badges span, .campaign-labels span, .campaign-labels em, .appeal-card header em {
  display: inline-flex;
  border-radius: 99px;
  background: #eee8eb;
  color: #6d5963;
  padding: 4px 7px;
  font-size: .72rem;
  font-style: normal;
  font-weight: 800;
}
.moderation-badges .type-sponsored { background: #e9e1ff; color: #5e3aa2; }
.moderation-badges .type-business { background: #fff0c8; color: #825600; }
.moderation-badges .type-personal { background: #e6f7ee; color: #287051; }
.moderation-badges .risk-high { background: #ffe0e4; color: #b42337; }
.moderation-badges .risk-mid { background: #fff0c8; color: #855b00; }
.moderation-badges .risk-low { background: #e6f7ee; color: #287051; }
.moderation-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 210px; }
.moderation-actions button, .case-actions button, .table-actions button {
  min-height: 34px;
  border: 1px solid #ead3de;
  border-radius: 9px;
  background: #fff;
  color: #6d5661;
  padding: 0 9px;
  font-size: .78rem;
}
.moderation-actions button:hover, .case-actions button:hover, .table-actions button:hover { border-color: #ff91bb; background: #fff7fa; }
.moderation-actions .danger, .case-actions .danger { border-color: #ffcbd3; color: #b42337; }
.case-actions .approve { border-color: #bfe7d4; color: #237653; }

.case-card { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid #eed9e3; border-radius: 14px; background: #fff; padding: 14px; }
.case-count { display: grid; place-items: center; align-content: center; min-height: 68px; border-radius: 12px; background: #f6f0f3; color: #795f6b; }
.case-count.threshold { background: #ffe5ec; color: #bd2d5f; }
.case-count strong { font-family: var(--display-font); font-size: 1.65rem; font-weight: 400; }
.case-count span { font-size: .7rem; font-weight: 800; }
.case-copy { min-width: 0; }
.case-copy > div { display: flex; align-items: center; gap: 6px; }
.case-copy > div span, .case-copy > div em { color: #9b818d; font-size: .73rem; font-style: normal; }
.case-copy > div em { border-radius: 99px; background: #eee; padding: 3px 6px; }
.case-copy h4, .appeal-card h4, .campaign-card h4 { margin: 5px 0 4px; font-size: .94rem; }
.case-copy p { margin: 0; color: #7c6671; font-size: .8rem; line-height: 1.5; }
.case-copy small { display: block; margin-top: 5px; color: #cf3f78; font-size: .74rem; font-weight: 700; }
.case-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

.appeal-card { border: 1px solid #edd7e2; border-radius: 15px; background: #fff; padding: 16px; }
.appeal-card > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.appeal-card > header > div { display: flex; gap: 6px; }
.appeal-card header time { color: #957f8a; font-size: .76rem; }
.case-status { display: inline-flex; border-radius: 99px; background: #fff0c8; color: #815600; padding: 5px 8px; font-size: .76rem; font-weight: 800; }
.case-status.status-resolved_accept { background: #e5f7ed; color: #216d4b; }
.case-status.status-resolved_reject { background: #ffe1e6; color: #a92135; }
.appeal-owner { margin: 0 0 12px; color: #816b76; font-size: .82rem; }
.appeal-card details { margin-bottom: 12px; border-radius: 10px; background: #faf5f7; padding: 10px 12px; }
.appeal-card summary { cursor: pointer; color: #745d68; font-size: .82rem; font-weight: 800; }
.appeal-card details p { margin: 8px 0 0; color: #78636d; font-size: .78rem; line-height: 1.5; }
.appeal-statement { margin-bottom: 13px; border-left: 3px solid #ff8ab7; padding: 4px 0 4px 12px; }
.appeal-statement > span { color: #d03d78; font-size: .75rem; font-weight: 800; }
.appeal-statement p { margin: 5px 0; color: #5f4d56; font-size: .84rem; line-height: 1.65; }
.appeal-statement a { color: #7045b2; font-size: .8rem; }
.appeal-statement img { display: block; width: min(280px, 100%); max-height: 200px; margin-top: 8px; border-radius: 10px; object-fit: cover; }
.appeal-notice { margin-bottom: 16px; border-radius: 13px; background: #fff2d4; color: #705513; padding: 14px; }
.appeal-notice strong { display: block; margin-bottom: 4px; }
.appeal-notice p { margin: 0; font-size: .84rem; line-height: 1.6; }
.appeal-submitted-label { display: inline-flex; margin-top: 9px; border-radius: 99px; background: #e7f7ef; color: #277052; padding: 6px 9px; font-size: .76rem; font-weight: 800; }
.notification-action { margin-top: 9px; }

.member-table-wrap { overflow-x: auto; border: 1px solid #eed9e3; border-radius: 14px; }
.member-table { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; }
.member-table th, .member-table td { border-bottom: 1px solid #f2e3ea; padding: 12px 10px; text-align: left; font-size: .8rem; white-space: nowrap; }
.member-table th { background: #fff8fb; color: #826a75; font-size: .76rem; }
.member-table tr:last-child td { border-bottom: 0; }
.member-status { display: inline-flex; border-radius: 99px; background: #e8f6ef; color: #276d50; padding: 5px 8px; font-size: .74rem; font-weight: 800; }
.member-status.status-warned { background: #fff0c8; color: #825900; }
.member-status.status-suspended { background: #ffe1e6; color: #a82338; }
.table-actions { display: flex; gap: 5px; }

.ad-center-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: -22px -22px 18px; border-bottom: 1px solid #ead9e2; background: linear-gradient(135deg, #fff0f6 0%, #fff9e8 100%); padding: 26px 24px; }
.ad-center-hero span { color: #d13d79; font-size: .8rem; font-weight: 800; }
.ad-center-hero h3 { margin: 5px 0 6px; font-family: var(--display-font); font-size: 1.4rem; font-weight: 400; }
.ad-center-hero p { max-width: 560px; margin: 0; color: #745f69; font-size: .87rem; line-height: 1.6; }
.ad-center-hero .primary-button { flex: 0 0 auto; min-height: 44px; }
.ad-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px; }
.ad-price-grid > div { border: 1px solid #edd7e2; border-radius: 14px; background: #fff; padding: 16px; }
.ad-price-grid > div.recommended { border-color: #ff83b2; background: #fff6f9; }
.ad-price-grid span, .ad-price-grid strong, .ad-price-grid small { display: block; }
.ad-price-grid span { color: #806975; font-size: .8rem; font-weight: 700; }
.ad-price-grid strong { margin: 5px 0 2px; color: #ce3a75; font-family: var(--display-font); font-size: 1.55rem; font-weight: 400; }
.ad-price-grid small { color: #99838e; font-size: .74rem; }
.ad-pricing-guide { margin-bottom: 17px; border: 1px solid #ead7e0; border-radius: 14px; background: #fff; padding: 13px 15px; }
.ad-pricing-guide summary { cursor: pointer; font-size: .88rem; font-weight: 800; }
.ad-pricing-guide p, .ad-pricing-guide li { color: #745e69; font-size: .82rem; line-height: 1.65; }
.ad-pricing-guide ul { margin: 8px 0 0; padding-left: 19px; }
.ad-pricing-guide .ad-benchmark { margin: 11px 0 0; border-top: 1px solid #f1e1e8; padding-top: 10px; font-size: .78rem; }
.ad-pricing-guide .ad-benchmark a { color: #6c45aa; font-weight: 800; }
.ad-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 19px; }
.ad-summary > div { border-radius: 12px; background: #f9f3f6; padding: 13px; }
.ad-summary span, .ad-summary strong { display: block; }
.ad-summary span { color: #806a75; font-size: .76rem; }
.ad-summary strong { margin-top: 4px; font-size: 1rem; }
.business-only { display: grid; place-items: center; min-height: 400px; text-align: center; }
.business-only-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 20px 20px 20px 7px; background: #ffcf3f; color: #604600; font-family: var(--display-font); font-size: 1.3rem; }
.business-only h3 { margin: 15px 0 6px; font-family: var(--display-font); font-size: 1.25rem; font-weight: 400; }
.business-only p { max-width: 420px; margin: 0 0 17px; color: #7d6872; font-size: .88rem; line-height: 1.6; }

.campaign-card { border: 1px solid #edd8e2; border-radius: 14px; background: #fff; padding: 13px; }
.campaign-main { display: flex; align-items: center; gap: 11px; }
.campaign-main img { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 10px; object-fit: cover; }
.campaign-main > div { min-width: 0; }
.campaign-main h4 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campaign-main p { margin: 0; color: #7e6973; font-size: .8rem; }
.campaign-labels span { background: #e7f7ef; color: #277052; }
.campaign-labels em { background: #eee; color: #75616a; }
.campaign-numbers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 12px 0 9px; }
.campaign-numbers > div { border-radius: 9px; background: #faf4f7; padding: 9px; }
.campaign-numbers span, .campaign-numbers strong { display: block; }
.campaign-numbers span { color: #8b737f; font-size: .72rem; }
.campaign-numbers strong { margin-top: 3px; font-size: .88rem; }
.budget-track { height: 6px; overflow: hidden; margin-bottom: 10px; border-radius: 99px; background: #f0e4ea; }
.budget-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff76aa, #ffbd55); }
.ad-budget-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.money-input { position: relative; display: block; }
.money-input input { padding-right: 35px; }
.money-input em { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: #8b7780; font-size: .8rem; font-style: normal; }
.ad-form .field-label small { color: #9c858f; font-weight: 500; }
.ad-fixed-cpc { display: grid; gap: 3px; border: 1px solid #ffb2cf; border-radius: 12px; background: #fff5f9; padding: 13px 14px; }
.ad-fixed-cpc span { color: #7e6973; font-size: .78rem; font-weight: 800; }
.ad-fixed-cpc strong { color: #c63674; font-size: 1.15rem; }
.ad-fixed-cpc small { color: #947b87; font-size: .74rem; }
.ad-target-local-fields { margin-top: -2px; }
.ad-target-local-fields[hidden] { display: none !important; }
.ad-target-local-fields select:disabled { opacity: .65; }
.ad-budget-box {
  display: grid;
  gap: 10px;
  border: 1px solid #eadce3;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}
.ad-budget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ad-budget-head .field-label { margin: 0; }
.ad-budget-head small { color: #927b86; font-size: .73rem; }
.ad-budget-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.ad-budget-presets button,
.ad-budget-stepper > button {
  border: 1px solid #e7d6de;
  border-radius: 10px;
  background: #fff;
  color: #654f5a;
  min-height: 38px;
  padding: 8px 10px;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.ad-budget-presets button.active {
  border-color: #ff92ba;
  background: #fff2f7;
  color: #bc326b;
}
.ad-budget-stepper {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}
.ad-budget-input-wrap {
  position: relative;
}
.ad-budget-input-wrap input {
  height: 100%;
  min-height: 42px;
  padding-right: 32px;
  text-align: right;
  font-weight: 800;
}
.ad-budget-input-wrap span {
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  color: #8b7780;
  font-size: .78rem;
}
.ad-payment-summary {
  display: grid;
  gap: 7px;
  border-top: 1px solid #eee1e7;
  padding-top: 10px;
}
.ad-payment-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #75616b;
  font-size: .78rem;
}
.ad-payment-summary strong {
  color: #4f3c45;
  font-size: .84rem;
}
.ad-payment-summary .total {
  margin-top: 2px;
  border-radius: 10px;
  background: #fff3f7;
  padding: 10px;
  color: #a72d5c;
  font-weight: 800;
}
.ad-payment-summary .total strong {
  color: #c63674;
  font-size: 1rem;
}
.ad-policy-summary, .ad-policy-warning {
  margin-top: 12px;
  border: 1px solid #f1b7c8;
  border-radius: 12px;
  background: #fff7f9;
  padding: 12px 13px;
}
.ad-policy-summary strong, .ad-policy-warning strong {
  display: block;
  margin-bottom: 5px;
  color: #a72d5c;
  font-size: .82rem;
}
.ad-policy-summary p, .ad-policy-warning p {
  margin: 0;
  color: #6e5963;
  font-size: .78rem;
  line-height: 1.6;
}
.ad-policy-check {
  align-items: flex-start;
  gap: 8px;
  border: 1px solid #ead8e1;
  border-radius: 10px;
  background: #fff;
  padding: 10px 11px;
}
.ad-policy-check input { margin-top: 2px; }
.ad-policy-check span { color: #5e4a54; font-size: .8rem; font-weight: 700; line-height: 1.45; }

@media (max-width: 900px) {
  .admin-metric-grid { grid-template-columns: repeat(3, 1fr); }
  .moderation-flow { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .admin-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-metric-grid > div:last-child { grid-column: 1 / -1; }
  .admin-subtabs { margin: 0 -15px; padding: 10px 15px; }
  .admin-section-head { display: block; }
  .admin-section-head > span { display: inline-flex; margin-top: 9px; }
  .moderation-flow { grid-template-columns: 1fr; }
  .moderation-card { grid-template-columns: 54px minmax(0, 1fr); }
  .moderation-card > img { width: 54px; height: 54px; }
  .moderation-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .case-card { grid-template-columns: 68px minmax(0, 1fr); }
  .case-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .appeal-card > header { align-items: flex-start; flex-direction: column; }
  .ad-center-hero { display: block; margin: -15px -15px 16px; padding: 21px 16px; }
  .ad-center-hero .primary-button { width: 100%; margin-top: 14px; }
  .ad-price-grid { grid-template-columns: 1fr; }
  .ad-summary { grid-template-columns: 1fr; }
  .campaign-numbers { grid-template-columns: 1fr; }
  .ad-budget-fields { grid-template-columns: 1fr; }
  .ad-budget-presets { grid-template-columns: repeat(2, 1fr); }
  .ad-budget-stepper { grid-template-columns: 1fr 1.4fr 1fr; }
  .detail-secondary-actions { align-items: flex-start; flex-direction: column; gap: 3px; }
}
