/* ═══════════════════════════════════════════════════════
   Univer Loyalty — Frontend Premium CSS v1.7
   Cartões metálicos por nível + UI premium
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Base ── */
.ulp-panel {
  --ulp-primary: #1e1e1e;
  --ulp-accent: #404040;
  --ulp-radius: 16px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}
.ulp-panel *, .ulp-panel *::before, .ulp-panel *::after { box-sizing: border-box; margin: 0; }

/* ══════════════════════════════════════════════════════
   CARTÃO PREMIUM METÁLICO
   ══════════════════════════════════════════════════════ */
.ulp-premium-card {
  position: relative;
  border-radius: 20px;
  padding: 36px 32px 28px;
  color: #fff;
  margin-bottom: 28px;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow:
    0 20px 60px rgba(0,0,0,.25),
    0 4px 16px rgba(0,0,0,.15),
    inset 0 1px 0 rgba(255,255,255,.15);
  transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .4s ease;
}
.ulp-premium-card:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow:
    0 28px 80px rgba(0,0,0,.3),
    0 8px 24px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.2);
}

/* ── Shine overlay ── */
.ulp-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,.08) 45%,
    rgba(255,255,255,.18) 50%,
    rgba(255,255,255,.08) 55%,
    transparent 70%
  );
  z-index: 2;
  pointer-events: none;
  animation: ulpShine 4s ease-in-out infinite;
}
@keyframes ulpShine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* ── Geometric pattern overlay ── */
.ulp-card-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .06;
  background-image:
    radial-gradient(circle at 20% 80%, currentColor 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, currentColor 1px, transparent 1px),
    radial-gradient(circle at 60% 60%, currentColor .5px, transparent .5px);
  background-size: 40px 40px, 60px 60px, 30px 30px;
}

/* ── Chip ── */
.ulp-card-chip {
  position: absolute;
  top: 38px;
  right: 32px;
  z-index: 3;
  color: rgba(255,255,255,.4);
}

/* ── DEFAULT tier (no level / basic) ── */
.ulp-card-default {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 40%, #333 100%);
}

/* ── BRONZE ── */
.ulp-card-bronze {
  background: linear-gradient(135deg,
    #8B5E3C 0%,
    #A0724D 15%,
    #CD8032 35%,
    #B87333 50%,
    #A0724D 65%,
    #8B5E3C 80%,
    #6E4B2E 100%
  );
}
.ulp-card-bronze .ulp-card-shine {
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,200,120,.1) 45%,
    rgba(255,200,120,.25) 50%,
    rgba(255,200,120,.1) 55%,
    transparent 70%
  );
}

/* ── SILVER (Prata) — metal escovado realista ── */
.ulp-card-silver {
  background:
    linear-gradient(170deg,
      rgba(255,255,255,.18) 0%,
      transparent 30%,
      transparent 70%,
      rgba(255,255,255,.12) 100%
    ),
    repeating-linear-gradient(
      92deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,.03) 2px,
      rgba(255,255,255,.03) 3px
    ),
    linear-gradient(135deg,
      #6b6b6b 0%,
      #8c8c8c 8%,
      #b0b0b0 16%,
      #d4d4d4 24%,
      #e8e8e8 32%,
      #f2f2f2 40%,
      #e2e2e2 48%,
      #cecece 56%,
      #b8b8b8 64%,
      #d0d0d0 72%,
      #e4e4e4 80%,
      #c8c8c8 88%,
      #a0a0a0 100%
    );
  color: #1a1a1a;
  box-shadow:
    0 20px 60px rgba(0,0,0,.3),
    0 4px 16px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.6),
    inset 0 -1px 0 rgba(0,0,0,.15);
}
.ulp-card-silver .ulp-card-shine {
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255,255,255,.08) 35%,
    rgba(255,255,255,.45) 48%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,.45) 52%,
    rgba(255,255,255,.08) 65%,
    transparent 80%
  );
  animation: ulpSilverShine 3.5s ease-in-out infinite;
}
@keyframes ulpSilverShine {
  0% { transform: translateX(-120%) skewX(-5deg); opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateX(120%) skewX(-5deg); opacity: 0; }
}
.ulp-card-silver .ulp-card-brand-text,
.ulp-card-silver .ulp-card-stat-lbl,
.ulp-card-silver .ulp-card-progress-hint,
.ulp-card-silver .ulp-card-max-level,
.ulp-card-silver .ulp-card-points-label { color: #444; }
.ulp-card-silver .ulp-card-tier {
  background: rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.12);
  color: #333;
  letter-spacing: 2.5px;
}
.ulp-card-silver .ulp-card-points-num,
.ulp-card-silver .ulp-card-stat-val { color: #111; }
.ulp-card-silver .ulp-card-chip { color: rgba(0,0,0,.18); }
.ulp-card-silver .ulp-card-logo { color: #555; }
.ulp-card-silver .ulp-card-progress-bar { background: rgba(0,0,0,.1); }
.ulp-card-silver .ulp-card-progress-fill {
  background: linear-gradient(90deg, #555, #888, #aaa);
}
.ulp-card-silver .ulp-card-multiplier {
  background: rgba(0,0,0,.1);
  border: 1px solid rgba(0,0,0,.12);
  color: #222;
}
.ulp-card-silver .ulp-card-stat { border-right-color: rgba(0,0,0,.08); }
.ulp-card-silver .ulp-card-brand { opacity: .7; }

/* ── GOLD (Ouro) — ouro polido reluzente ── */
.ulp-card-gold {
  background:
    linear-gradient(170deg,
      rgba(255,255,200,.22) 0%,
      transparent 35%,
      transparent 65%,
      rgba(255,220,80,.15) 100%
    ),
    repeating-linear-gradient(
      88deg,
      transparent,
      transparent 3px,
      rgba(255,255,0,.025) 3px,
      rgba(255,255,0,.025) 4px
    ),
    linear-gradient(135deg,
      #7a5c00 0%,
      #a07800 6%,
      #c9960c 12%,
      #daa520 20%,
      #f0c040 28%,
      #ffd700 36%,
      #ffe066 44%,
      #ffd700 52%,
      #f0c040 60%,
      #d4a017 68%,
      #b8860b 76%,
      #d4a82a 84%,
      #f0c040 90%,
      #c8940a 100%
    );
  color: #2c1d00;
  box-shadow:
    0 20px 60px rgba(180,130,0,.35),
    0 4px 16px rgba(180,130,0,.2),
    inset 0 1px 0 rgba(255,255,200,.5),
    inset 0 -1px 0 rgba(100,60,0,.2);
}
.ulp-card-gold .ulp-card-shine {
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255,255,180,.1) 35%,
    rgba(255,255,220,.5) 48%,
    rgba(255,255,255,.65) 50%,
    rgba(255,255,220,.5) 52%,
    rgba(255,255,180,.1) 65%,
    transparent 80%
  );
  animation: ulpGoldShine 2.8s ease-in-out infinite;
}
@keyframes ulpGoldShine {
  0% { transform: translateX(-120%) skewX(-5deg); opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translateX(120%) skewX(-5deg); opacity: 0; }
}
.ulp-card-gold .ulp-card-brand-text,
.ulp-card-gold .ulp-card-stat-lbl,
.ulp-card-gold .ulp-card-progress-hint,
.ulp-card-gold .ulp-card-max-level,
.ulp-card-gold .ulp-card-points-label { color: #5a3d00; }
.ulp-card-gold .ulp-card-tier {
  background: rgba(80,50,0,.12);
  border: 1px solid rgba(80,50,0,.18);
  color: #3d2800;
  letter-spacing: 2.5px;
}
.ulp-card-gold .ulp-card-points-num,
.ulp-card-gold .ulp-card-stat-val { color: #1a1000; font-weight: 900; }
.ulp-card-gold .ulp-card-chip { color: rgba(80,50,0,.18); }
.ulp-card-gold .ulp-card-logo { color: #5a3d00; }
.ulp-card-gold .ulp-card-progress-bar { background: rgba(80,50,0,.12); }
.ulp-card-gold .ulp-card-progress-fill {
  background: linear-gradient(90deg, #7a5c00, #b8860b, #daa520, #ffd700);
}
.ulp-card-gold .ulp-card-multiplier {
  background: rgba(80,50,0,.1);
  border: 1px solid rgba(80,50,0,.15);
  color: #2c1d00;
}
.ulp-card-gold .ulp-card-stat { border-right-color: rgba(80,50,0,.1); }
.ulp-card-gold .ulp-card-brand { opacity: .75; }

/* ── DIAMOND (Diamante) — profundo e iridescente ── */
.ulp-card-diamond {
  background:
    linear-gradient(170deg,
      rgba(160,200,255,.12) 0%,
      transparent 40%,
      transparent 60%,
      rgba(180,120,255,.1) 100%
    ),
    linear-gradient(135deg,
      #050510 0%,
      #0a0a20 8%,
      #0d1235 16%,
      #0f1a50 24%,
      #122060 32%,
      #0e1a55 40%,
      #12103a 48%,
      #1a0a3a 56%,
      #200840 64%,
      #180a50 72%,
      #0f1a55 80%,
      #0a1230 88%,
      #050518 100%
    );
  box-shadow:
    0 20px 60px rgba(20,10,80,.5),
    0 4px 16px rgba(30,20,100,.3),
    inset 0 1px 0 rgba(150,180,255,.15),
    inset 0 -1px 0 rgba(0,0,0,.4);
}
.ulp-card-diamond .ulp-card-shine {
  background: linear-gradient(
    110deg,
    transparent 15%,
    rgba(140,170,255,.05) 28%,
    rgba(180,210,255,.15) 38%,
    rgba(220,240,255,.35) 46%,
    rgba(255,255,255,.5) 50%,
    rgba(220,240,255,.35) 54%,
    rgba(180,210,255,.15) 62%,
    rgba(140,170,255,.05) 72%,
    transparent 85%
  );
  animation: ulpDiamondShine 2.5s ease-in-out infinite;
}
@keyframes ulpDiamondShine {
  0% { transform: translateX(-130%) skewX(-8deg); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(130%) skewX(-8deg); opacity: 0; }
}
.ulp-card-diamond .ulp-card-pattern {
  opacity: 1;
  background-image:
    radial-gradient(ellipse at 25% 35%, rgba(100,150,255,.06) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 65%, rgba(150,80,255,.05) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(80,120,255,.04) 0%, transparent 80%);
}
.ulp-card-diamond .ulp-card-tier {
  background: linear-gradient(90deg,
    rgba(100,150,255,.12),
    rgba(180,120,255,.2),
    rgba(100,150,255,.12)
  );
  border: 1px solid rgba(150,180,255,.25);
  color: #c0d0ff;
  letter-spacing: 2.5px;
}
.ulp-card-diamond .ulp-card-brand-text { color: rgba(180,210,255,.6); }
.ulp-card-diamond .ulp-card-points-label,
.ulp-card-diamond .ulp-card-stat-lbl,
.ulp-card-diamond .ulp-card-progress-hint { color: rgba(180,200,255,.5); }
.ulp-card-diamond .ulp-card-points-num,
.ulp-card-diamond .ulp-card-stat-val {
  color: #e8f0ff;
  text-shadow: 0 0 20px rgba(120,160,255,.4);
}
.ulp-card-diamond .ulp-card-chip { color: rgba(150,180,255,.2); }
.ulp-card-diamond .ulp-card-logo { color: rgba(150,180,255,.5); }
.ulp-card-diamond .ulp-card-progress-bar { background: rgba(100,130,255,.12); }
.ulp-card-diamond .ulp-card-progress-fill {
  background: linear-gradient(90deg, #4040c0, #6366f1, #818cf8, #c0c8ff);
  box-shadow: 0 0 8px rgba(120,140,255,.4);
}
.ulp-card-diamond .ulp-card-multiplier {
  background: rgba(100,130,255,.12);
  border: 1px solid rgba(150,180,255,.18);
  color: #b8c8ff;
}
.ulp-card-diamond .ulp-card-stat { border-right-color: rgba(150,180,255,.08); }
.ulp-card-diamond .ulp-card-max-level { color: rgba(180,200,255,.5); }
.ulp-card-diamond .ulp-card-brand { opacity: .8; }

/* ── Card internal layout ── */
.ulp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 3;
  margin-bottom: 24px;
}
.ulp-card-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ulp-card-logo { color: rgba(255,255,255,.7); }
.ulp-card-brand-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.ulp-card-tier {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 24px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
}

.ulp-card-body {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.ulp-card-points-num {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  display: block;
  letter-spacing: -0.5px;
}
.ulp-card-points-label {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  display: block;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ulp-card-multiplier {
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 24px;
  background: rgba(255,255,255,.1);
  letter-spacing: .5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ulp-card-footer {
  display: flex;
  gap: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  position: relative;
  z-index: 3;
}
.ulp-card-stat {
  flex: 1;
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 0 16px;
}
.ulp-card-stat:first-child { padding-left: 0; }
.ulp-card-stat:last-child { border-right: none; padding-right: 0; }
.ulp-card-stat-val {
  font-size: 18px;
  font-weight: 800;
  display: block;
  line-height: 1.2;
}
.ulp-card-stat-lbl {
  font-size: 10px;
  color: rgba(255,255,255,.45);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  display: block;
  margin-top: 2px;
}

/* ── Progress bar inside card ── */
.ulp-card-progress-wrap {
  margin-top: 16px;
  position: relative;
  z-index: 3;
}
.ulp-card-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,.12);
  border-radius: 20px;
  overflow: hidden;
}
.ulp-card-progress-fill {
  height: 100%;
  border-radius: 20px;
  background: rgba(255,255,255,.6);
  transition: width 1s cubic-bezier(.4,0,.2,1);
}
.ulp-card-progress-hint {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  margin-top: 8px;
  font-weight: 500;
}
.ulp-card-max-level {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  z-index: 3;
}

/* ── Responsive card ── */
@media (max-width: 600px) {
  .ulp-premium-card { padding: 28px 24px 22px; min-height: 240px; }
  .ulp-card-points-num { font-size: 36px; }
  .ulp-card-stat-val { font-size: 15px; }
  .ulp-card-chip { display: none; }
}

/* ══════════════════════════════════════════════════════
   TABS — Premium Card
   ══════════════════════════════════════════════════════ */
.ulp-tabs-wrap {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04);
}
.ulp-tab-bar {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  padding: 6px 6px 0;
  gap: 2px;
}
.ulp-tab {
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 700;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .25s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .8px;
  border-radius: 10px 10px 0 0;
  position: relative;
}
.ulp-tab:hover {
  color: #555;
  background: rgba(0,0,0,.02);
}
.ulp-tab.active {
  color: #1a1a1a;
  border-bottom-color: #1a1a1a;
  background: #fff;
}
.ulp-tab-content {
  display: none;
  padding: 32px;
}
.ulp-tab-content.active { display: block; }
.ulp-tab-intro {
  font-size: 14px;
  color: #888;
  margin: 0 0 24px;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════
   TICKET REWARD CARDS — Premium Coupon Style
   ══════════════════════════════════════════════════════ */
.ulp-rewards-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ulp-ticket {
  display: flex;
  align-items: stretch;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e8e8;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.ulp-ticket-available:hover {
  border-color: #1a1a1a;
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.ulp-ticket-locked { opacity: .55; filter: grayscale(.3); }

/* Left section — image or icon */
.ulp-ticket-left {
  width: 110px;
  min-height: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
  padding: 16px;
}
.ulp-ticket-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.ulp-ticket-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #1a1a1a;
  color: #fff;
  padding: 12px;
}
.ulp-ticket-icon svg { width: 24px; height: 24px; }

/* Divider — cinema ticket perforation */
.ulp-ticket-divider {
  width: 20px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ulp-ticket-notch {
  width: 20px;
  height: 10px;
  border-radius: 50%;
  background: #f5f5f5;
  position: absolute;
  z-index: 2;
}
.ulp-ticket-notch-top { top: -10px; }
.ulp-ticket-notch-bottom { bottom: -10px; }
.ulp-ticket-line {
  flex: 1;
  width: 0;
  border-left: 2px dashed #ddd;
  margin: 8px 0;
}

/* Right section — content */
.ulp-ticket-right {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ulp-ticket-type {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #1a1a1a;
  background: #f0f0f0;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  align-self: flex-start;
  margin-bottom: 8px;
}
.ulp-ticket-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
  line-height: 1.3;
}
.ulp-ticket-desc {
  font-size: 12px;
  color: #999;
  margin: 0;
  line-height: 1.5;
}
.ulp-ticket-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  gap: 12px;
}
.ulp-ticket-cost {
  font-size: 12px;
  color: #777;
}
.ulp-ticket-cost strong {
  font-size: 16px;
  color: #1a1a1a;
  font-weight: 800;
}
.ulp-ticket-locked-hint {
  font-size: 11px;
  color: #bbb;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ulp-btn-redeem {
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  text-transform: uppercase;
  letter-spacing: .8px;
  white-space: nowrap;
}
.ulp-btn-redeem:hover {
  background: #333;
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.ulp-btn-redeem:disabled, .ulp-btn-redeem.loading {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 600px) {
  .ulp-ticket { flex-direction: column; }
  .ulp-ticket-left { width: 100%; min-height: 80px; }
  .ulp-ticket-divider { display: none; }
  .ulp-ticket-right { padding: 16px; }
}

/* ══════════════════════════════════════════════════════
   EARN CARDS — Como Ganhar
   ══════════════════════════════════════════════════════ */
.ulp-earn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.ulp-earn-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.ulp-earn-card:hover {
  border-color: #ccc;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  transform: translateY(-2px);
}
.ulp-earn-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ulp-earn-icon svg { width: 22px; height: 22px; }
.ulp-earn-info { flex: 1; min-width: 0; }
.ulp-earn-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 3px;
  line-height: 1.3;
}
.ulp-earn-desc {
  font-size: 12px;
  color: #999;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ulp-earn-badge {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
  background: #f5f5f5;
  padding: 8px 16px;
  border-radius: 12px;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}
.ulp-earn-badge span {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 1px;
}

@media (max-width: 600px) {
  .ulp-earn-grid { grid-template-columns: 1fr; }
  .ulp-earn-card { flex-wrap: wrap; }
  .ulp-earn-badge { width: 100%; margin-top: 8px; }
}

/* ══════════════════════════════════════════════════════
   TIMELINE — Histórico Premium
   ══════════════════════════════════════════════════════ */
.ulp-timeline {
  position: relative;
  padding-left: 36px;
}
.ulp-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #e0e0e0 0%, transparent 100%);
}
.ulp-tl-item {
  position: relative;
  padding: 0 0 20px 20px;
}
.ulp-tl-item:last-child { padding-bottom: 0; }
.ulp-tl-dot {
  position: absolute;
  left: -28px;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.ulp-tl-earn .ulp-tl-dot { background: #dcfce7; color: #166534; }
.ulp-tl-redeem .ulp-tl-dot { background: #fef3c7; color: #92400e; }
.ulp-tl-expire .ulp-tl-dot { background: #fee2e2; color: #991b1b; }
.ulp-tl-adjust .ulp-tl-dot { background: #e0e7ff; color: #3730a3; }
.ulp-tl-refund .ulp-tl-dot { background: #f1f5f9; color: #475569; }

.ulp-tl-content {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 14px 18px;
  transition: all .2s;
}
.ulp-tl-item:hover .ulp-tl-content {
  border-color: #ddd;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.ulp-tl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ulp-tl-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.ulp-tl-points {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.ulp-tl-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}
.ulp-tl-date {
  font-size: 11px;
  color: #bbb;
  font-weight: 500;
}
.ulp-tl-balance {
  font-size: 11px;
  color: #bbb;
  font-weight: 500;
}
.ulp-positive { color: #16a34a; font-weight: 700; }
.ulp-negative { color: #dc2626; font-weight: 700; }

@media (max-width: 600px) {
  .ulp-timeline { padding-left: 28px; }
  .ulp-timeline::before { left: 11px; }
  .ulp-tl-dot { left: -22px; width: 22px; height: 22px; }
  .ulp-tl-dot svg { width: 12px; height: 12px; }
  .ulp-tl-header { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ── Empty State — Premium ── */
.ulp-empty-state {
  text-align: center;
  padding: 56px 24px;
}
.ulp-empty-icon {
  color: #ddd;
  margin-bottom: 16px;
}
.ulp-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #999;
  margin: 0 0 6px;
}
.ulp-empty-desc {
  font-size: 13px;
  color: #ccc;
  margin: 0;
}

/* ── Modal ── */
.ulp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}
.ulp-modal {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  max-width: 420px;
  width: 92%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  animation: ulpSlideUp .25s ease;
}
@keyframes ulpSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.ulp-modal h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 20px;
  color: #1a1a1a;
}
.ulp-modal-x {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f5f5f5;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.ulp-modal-x:hover { background: #eee; color: #333; }
.ulp-modal-rname {
  font-size: 15px;
  font-weight: 700;
  color: var(--ulp-primary);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.ulp-modal-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}
.ulp-modal-row span { color: #888; }
.ulp-modal-row strong { color: #1a1a1a; }
.ulp-modal-btns {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}
.ulp-btn-secondary {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid #e8e8e8;
  background: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  transition: all .2s;
}
.ulp-btn-secondary:hover { background: #f5f5f5; color: #555; }
.ulp-btn-primary {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: var(--ulp-primary);
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.ulp-btn-primary:hover { background: #333; }
.ulp-btn-primary:disabled { opacity: .5; cursor: not-allowed; }

/* ── Conversion Input ── */
#ulp-conv-wrap {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}
#ulp-conv-wrap label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}
#ulp-conv-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  transition: all .2s;
}
#ulp-conv-input:focus {
  outline: none;
  border-color: var(--ulp-primary);
  box-shadow: 0 0 0 3px rgba(30,30,30,.08);
}
.ulp-conv-info { font-size: 13px; color: #888; margin-top: 8px; }

/* ── Inline Balance ── */
.ulp-inline-balance { display: inline-flex; align-items: center; gap: 4px; }
.ulp-inline-balance strong { color: var(--ulp-primary); font-weight: 800; }

/* ── Product Points Badge ── */
.ulp-product-points {
  display: inline-block;
  background: #f5f5f5;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 24px;
  margin-top: 8px;
  letter-spacing: .3px;
}

/* ── Success Toast ── */
.ulp-success-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #fff;
  border-left: 4px solid #16a34a;
  padding: 18px 24px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  font-size: 14px;
  z-index: 1000000;
  animation: ulpSlideUp .3s ease;
  max-width: 360px;
}
.ulp-success-toast code {
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  color: #1a1a1a;
  font-size: 13px;
}

/* ── Accessibility: Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .ulp-card-shine { animation: none !important; }
  .ulp-success-toast { animation: none !important; }
}
