/* ==========================================================================
   VectoreAI — Quantum Calibration Wheel & Signal Rewards Components
   Theme-aware, accessible, adhering to AetherMind Experience System
   ========================================================================== */

.rewards-universe {
  padding-bottom: 90px;
}
.rewards-hero {
  padding: 60px 0 30px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 10%, rgba(var(--cyan-rgb), .06), transparent 70%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--cyan-rgb), .08);
  border: 1px solid rgba(var(--cyan-rgb), .2);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.rewards-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.08;
  margin: 0 0 16px;
  color: var(--ink);
}
.rewards-subtitle {
  color: var(--ink-soft);
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 28px;
}
.member-calibration-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 24px;
}
.stat-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 140px;
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.stat-val {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.stat-name {
  font-family: var(--sans);
  font-size: 1.05rem;
}
.highlight-cell .stat-val {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255, 209, 132, .3);
}
.cyan-ink {
  color: var(--cyan) !important;
}
.gold-ink {
  color: var(--gold) !important;
}
.action-cell {
  margin-left: auto;
}
.guest-banner {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-soft);
}
.guest-cta-group {
  display: flex;
  gap: 10px;
}
.btn-micro-primary {
  display: inline-block;
  background: var(--cyan);
  color: #05070b;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-micro-primary:hover {
  background: #a5f3fc;
  box-shadow: 0 0 14px rgba(var(--cyan-rgb), .4);
}
.btn-micro {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-micro:hover {
  border-color: var(--line-bright);
}

/* --- Wheel Stage & Engine --- */
.wheel-stage-section {
  padding: 50px 0;
}
.wheel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 36px;
  align-items: start;
}
.wheel-card {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.wheel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.engine-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.indicator-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.led-active {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}
.led-depleted {
  background: var(--danger);
}
.wheel-viewport {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wheel-pointer {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.pointer-jewel {
  width: 12px;
  height: 12px;
  background: var(--cyan);
  border: 2px solid var(--surface-solid);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
}
.pointer-arrow {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid var(--cyan);
  margin-top: -2px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.45));
}
.wheel-outer-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 10px;
  background: radial-gradient(circle, rgba(25, 31, 45, 0.4) 0%, rgba(10, 13, 20, 0.95) 70%, rgba(5, 7, 11, 1) 100%);
  border: 2px solid var(--line-bright);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="light"] .wheel-outer-ring {
  background: radial-gradient(circle, rgba(229, 230, 232, 0.4) 0%, rgba(245, 246, 248, 0.95) 70%, #ffffff 100%);
  border: 2px solid var(--line);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
}
#calibration-canvas {
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(0deg);
  will-change: transform;
}
.wheel-center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
}
.hub-btn {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid rgba(var(--cyan-rgb), .4);
  background: var(--surface-3);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(0, 0, 0, .5), inset 0 0 15px rgba(var(--cyan-rgb), .2);
  transition: all .3s var(--ease);
  position: relative;
  outline: none;
}
[data-theme="light"] .hub-btn {
  background: var(--surface-solid);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 0, 0, .08), inset 0 0 15px rgba(var(--cyan-rgb), .15);
}
.hub-btn.btn-ready:hover {
  transform: scale(1.05);
  border-color: var(--cyan);
  box-shadow: 0 0 35px rgba(var(--cyan-rgb), .5);
}
.hub-btn.btn-disabled {
  opacity: 0.6;
  border-color: var(--line);
  cursor: not-allowed;
}
.hub-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  opacity: 0;
  animation: hubPulse 2s infinite ease-out;
}
@keyframes hubPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 0; }
}
.hub-text {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
}
.hub-sub {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 3px;
}
.wheel-footer-notes {
  margin-top: 24px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* --- Sidebar Panels --- */
.rewards-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-panel {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}
.panel-title {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-title i {
  color: var(--cyan);
}
.earn-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.earn-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.earn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: rgba(var(--cyan-rgb), .08);
  border: 1px solid rgba(var(--cyan-rgb), .2);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.earn-content {
  flex: 1;
}
.earn-content strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
}
.earn-content p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.earn-val {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(255, 209, 132, .1);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.ref-quick-share {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.quick-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.quick-copy-bar {
  display: flex;
  gap: 8px;
}
.quick-copy-bar input {
  flex: 1;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  outline: none;
}
.btn-copy {
  background: var(--cyan);
  color: #05070b;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-xs);
  padding: 0 14px;
  cursor: pointer;
}

/* Result Reveal Card */
.result-box {
  background: linear-gradient(135deg, rgba(var(--cyan-rgb), 0.12), rgba(var(--violet-rgb), 0.08));
  border: 1px solid var(--cyan);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 30px rgba(var(--cyan-rgb), .2);
  animation: revealFade .4s ease-out;
}
@keyframes revealFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 12px;
}
.result-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(var(--cyan-rgb), .15);
  border: 1px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--cyan);
}
.result-box h3 {
  font-family: var(--display);
  font-size: 1.8rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.result-box p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0 0 18px;
}

/* Recent Feed */
.recent-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feed-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}
.feed-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.feed-info {
  flex: 1;
  color: var(--ink-soft);
}
.feed-info strong {
  color: var(--ink);
  margin-right: 4px;
}
.feed-time {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}
.empty-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

/* --- Catalog Table --- */
.transparency-section {
  border-top: 1px solid var(--line);
  padding-top: 60px;
}
.section-header {
  margin-bottom: 32px;
}
.catalog-table-wrap {
  overflow-x: auto;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.catalog-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
.catalog-table th {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.catalog-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: middle;
}
.catalog-table tr:last-child td {
  border-bottom: none;
}
.item-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.item-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.item-desc-text {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3px;
  padding-left: 20px;
}
.badge-type {
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.badge-points { color: var(--cyan); border-color: rgba(var(--cyan-rgb), .3); }
.badge-spin { color: var(--gold); border-color: rgba(255, 209, 132, .3); }
.badge-gift { color: var(--lime); border-color: rgba(201, 255, 114, .3); }
.prob-tag {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink);
}
.stock-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
}
.stock-unlimited { color: var(--muted); }
.stock-limited { color: var(--gold); }
.stock-out { color: var(--danger); }
.hidden { display: none !important; }

/* Responsive Adjustments */
@media (max-width: 860px) {
  .wheel-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .wheel-card {
    padding: 16px;
  }
  .hub-btn {
    width: 88px;
    height: 88px;
  }
  .hub-text {
    font-size: 0.68rem;
  }
  .hub-sub {
    font-size: 0.52rem;
  }
}

/* Special Rewards & Cooldown Extensions */
.cooldown-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.badge-free-ready {
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}
.badge-cooling {
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
  animation: pulse-green 1.8s infinite;
}
@keyframes pulse-green {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.claim-win-pill {
  background: rgba(103, 232, 249, 0.08);
  border: 1px dashed rgba(103, 232, 249, 0.4);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 14px 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.claim-win-pill strong {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.special-badge-gold {
  background: linear-gradient(135deg, #f59e0b, #eab308) !important;
  color: #000 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4) !important;
}

.badge-special {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
}
