/* V117 — Unified Rebate overlay. Affiliate-mirror depth + palette. */

html.co-rb-open #app { visibility: hidden !important; }
html.co-rb-open,
html.co-rb-open body { overflow: hidden; }

#co-rb-root.co-rb {
  --affiliate-page-bg: #1a201e;
  --affiliate-header-bg: #27312f;
  --affiliate-card-bg: #323b39;
  --affiliate-panel-dark: #303936;
  --affiliate-text-primary: #f1f4f2;
  --affiliate-text-muted: #919d98;
  --affiliate-green: #27e68b;
  --affiliate-gold: #d9bc59;
  --rb-bg: var(--affiliate-page-bg);
  --rb-card: #1f2123;
  --rb-header: var(--affiliate-header-bg);
  --rb-green: #4caf50;
  --rb-white: #e0e0e0;
  --rb-muted: #cccccc;
  --rb-border: #0a0c0b;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: #0e1110;
  color: var(--affiliate-text-primary);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

#co-rb-root.co-rb *,
#co-rb-root.co-rb *::before,
#co-rb-root.co-rb *::after { box-sizing: border-box; }

.co-rb-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 10rem;
  max-width: 100%;
  margin: 0 auto;
  background: var(--rb-bg);
  border-left: 1px solid var(--rb-border);
  border-right: 1px solid var(--rb-border);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.co-rb-head {
  display: flex;
  align-items: center;
  flex: none;
  height: 1.17333rem;
  padding: 0 .32rem;
  background: var(--rb-header);
}

.co-rb-head__title {
  flex: 1;
  text-align: center;
  font-size: .48rem;
  line-height: .48rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: #fff;
}

.co-rb-head__spacer {
  width: var(--co-back-size, .85333rem);
  height: var(--co-back-size, .85333rem);
  flex: none;
}

.co-rb-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: .32rem .32rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .32rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.co-rb-scroll::-webkit-scrollbar { display: none; }

.co-rb-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(47, 118, 86, 0.38) 0%, transparent 55%),
    linear-gradient(160deg, #262d2b 0%, #1f2123 48%, #181c1b 100%);
  border: 0;
  border-radius: .32rem;
  padding: .42rem .4rem .4rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 245, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.32);
}

.co-rb-hero::before {
  content: "";
  position: absolute;
  left: -12%;
  top: -28%;
  width: 62%;
  height: 160%;
  border-radius: 50%;
  background: rgba(47, 118, 86, 0.3);
  filter: blur(24px);
  opacity: 0.62;
  pointer-events: none;
  z-index: 0;
}

.co-rb-hero > * { position: relative; z-index: 1; }

.co-rb-pill {
  display: inline-flex;
  align-items: center;
  height: .42rem;
  padding: 0 .16rem;
  margin-bottom: .2rem;
  border-radius: .24rem;
  background: rgba(76, 175, 80, 0.22);
  color: #b8f0c4;
  font-size: .24rem;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.45);
}

.co-rb-hero__label {
  margin: 0 0 .08rem;
  font-size: .32rem;
  font-weight: 600;
  color: var(--rb-white);
}

.co-rb-hero__amt {
  margin: .04rem 0 .08rem;
  font-size: .96rem;
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  text-shadow: none;
  font-variant-numeric: tabular-nums;
}

.co-rb-hero__hint,
.co-rb-hero__from {
  margin: 0 0 .06rem;
  font-size: .24rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
}

.co-rb-hero__from {
  margin: .04rem 0 .1rem;
  color: #ffffff;
}

.co-rb-brand {
  margin: 0;
  font-size: .24rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: .02em;
}

.co-rb-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .21333rem;
}

.co-rb-stat {
  background: var(--affiliate-card-bg);
  border: 0;
  border-radius: .32rem;
  padding: .32rem .28rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 245, 0.03),
    0 8px 22px rgba(0, 0, 0, 0.22);
}

.co-rb-stat span {
  display: block;
  font-size: .26667rem;
  color: #ffffff;
  font-weight: 600;
}

.co-rb-stat b {
  display: block;
  margin-top: .12rem;
  font-size: .45333rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.co-rb-rate {
  margin: 0;
  font-size: .26667rem;
  color: #ffffff;
  text-align: center;
}

.co-rb-claim {
  appearance: none;
  width: 100%;
  min-height: 1.12rem;
  border: 0;
  border-radius: .32rem;
  background: linear-gradient(180deg, #ffd700, #ff9800);
  color: #1a1400;
  font-size: .37333rem;
  font-weight: 800;
  box-shadow: 0 0 .28rem rgba(255, 196, 0, 0.55), 0 8px 18px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.co-rb-claim:disabled {
  background: linear-gradient(180deg, #5a5340, #3f3a32);
  color: #8a8578;
  box-shadow: none;
  cursor: default;
}

.co-rb-h {
  margin: .08rem 0 0;
  font-size: .37333rem;
  font-weight: 800;
  color: #fff;
}

.co-rb-card {
  background: var(--affiliate-card-bg);
  border: 0;
  border-radius: .32rem;
  padding: .32rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 245, 0.03),
    0 8px 22px rgba(0, 0, 0, 0.22);
}

.co-rb-card__top {
  display: flex;
  justify-content: space-between;
  gap: .16rem;
  margin-bottom: .2rem;
}

.co-rb-card__time {
  font-size: .24rem;
  color: var(--affiliate-text-muted);
}

.co-rb-ok {
  color: var(--rb-green);
  font-size: .24rem;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(76, 175, 80, 0.55);
}

.co-rb-rows {
  display: grid;
  gap: .12rem;
}

.co-rb-row {
  display: flex;
  justify-content: space-between;
  font-size: .29333rem;
}

.co-rb-row span { color: #e0e0e0; }
.co-rb-row b { color: #fff; font-weight: 700; }
.co-rb-row b.is-amt {
  color: #ffffff;
  text-shadow: none;
}

.co-rb-empty {
  background: var(--affiliate-card-bg);
  border: 0;
  border-radius: .32rem;
  padding: .64rem .32rem;
  text-align: center;
  color: var(--affiliate-text-muted);
  font-size: .32rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.co-rb-state {
  padding: 1.2rem .32rem;
  text-align: center;
  color: var(--affiliate-text-muted);
}

.co-rb-toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 2;
  padding: .16rem .32rem;
  border-radius: .16rem;
  background: rgba(0, 0, 0, .82);
  color: #fff;
  font-size: .32rem;
  white-space: nowrap;
}
