/* CineLog Rewards panel — uses theme tokens (var(--gold), --bg-card, etc.) */

.clr-root { display: block; margin: 0 auto; max-width: 100%; }
.clr-loading, .clr-empty {
  text-align: center; color: var(--text-muted);
  padding: 32px 16px; font-size: .9rem;
  border: 1px dashed var(--border); border-radius: var(--radius);
}

.clr-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
}

/* ── Tier card ── */
.clr-tier-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.clr-medal {
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 50%;
}
.clr-tier-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--white);
  line-height: 1.2;
}
.clr-tier-sub { font-size: .8rem; color: var(--text-muted); margin-top: 3px; }
.clr-tier-sub b { color: var(--gold); }
.clr-tier-next { color: var(--text-muted); }
.clr-tier-next.clr-maxed { color: var(--gold); }

.clr-bar {
  height: 7px; background: var(--bg-card2);
  border-radius: var(--radius-pill); overflow: hidden;
}
.clr-bar-fill {
  height: 100%; background: var(--gold);
  border-radius: var(--radius-pill);
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}

/* ── Stat row ── */
.clr-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-bottom: 14px;
}
.clr-stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 6px; text-align: center;
}
.clr-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; color: var(--gold); line-height: 1;
}
.clr-stat-label {
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 6px;
}

/* ── City + streak ── */
.clr-city-head, .clr-badges-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px; font-size: .82rem; color: var(--text-muted);
}
.clr-city-head b, .clr-badges-head b { color: var(--white); font-size: .9rem; }
.clr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.clr-chip {
  font-size: .72rem; padding: 5px 11px; border-radius: var(--radius-pill);
  background: var(--bg-card2); border: 1px solid var(--border); color: var(--text-muted);
}
.clr-chip.on { color: var(--gold); border-color: rgba(0,224,84,.4); }

/* ── Badges ── */
.clr-badge-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.clr-badge {
  text-align: center; padding: 14px 8px 12px;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: default;
}
.clr-badge-icon { font-size: 1.5rem; line-height: 1; margin-bottom: 7px; }
.clr-badge-name { font-size: .72rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.clr-badge-desc { font-size: .6rem; color: var(--text-muted); margin-top: 4px; line-height: 1.3; }
.clr-badge.earned { border-color: rgba(0,224,84,.45); }
.clr-badge.earned .clr-badge-name { color: var(--gold); }
.clr-badge.locked { opacity: .4; filter: grayscale(1); }

/* ── Unlock toast ── */
.clr-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 28px);
  z-index: 99999; display: flex; align-items: center; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--gold);
  border-radius: var(--radius); padding: 14px 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  opacity: 0; transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s;
  max-width: 90vw;
}
.clr-toast.show { transform: translate(-50%, 0); opacity: 1; }
.clr-toast-icon {
  font-size: 1.9rem; width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card2); border-radius: 50%;
}
.clr-toast-title { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.clr-toast-name  { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: var(--white); margin: 2px 0; }
.clr-toast-desc  { font-size: .76rem; color: var(--text-muted); }

@media (max-width: 480px) {
  .clr-stat-num { font-size: 1.25rem; }
  .clr-stats { gap: 7px; }
  .clr-stat { padding: 12px 4px; }
}

/* ── Theater-page discovery hook ── */
.clh {
  display: flex; align-items: center; gap: 18px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 16px 18px; margin: 20px 0;
}
.clh-main { flex: 1; min-width: 0; }
.clh-proof { font-size: .74rem; color: var(--gold); font-weight: 700; margin-bottom: 5px; }
.clh-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--white); font-weight: 700; line-height: 1.25; }
.clh-sub  { font-size: .82rem; color: var(--text-muted); margin-top: 3px; }
.clh-line { font-size: .86rem; color: var(--text); margin-top: 2px; }
.clh-line b { color: var(--gold); }
.clh-badges { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.clh-badge {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-card2); border: 1px solid var(--border); border-radius: 50%; font-size: .95rem;
}
.clh-badge-more { font-size: .72rem; color: var(--text-muted); }
.clh-cta {
  flex-shrink: 0; background: var(--gold); color: #000; border: none;
  font-weight: 700; font-size: .86rem; padding: 11px 20px;
  border-radius: var(--radius-pill); cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.clh-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,224,84,.3); }
@media (max-width: 600px) {
  .clh { flex-direction: column; align-items: stretch; gap: 12px; }
  .clh-cta { width: 100%; }
}
