/* ============================================
   KIKI CLUB — Embedded Loyalty System
   ============================================ */

.kclub-container {
  max-width: 420px;
  margin: 0 auto;
}

/* ===== JOIN FORM ===== */
.kclub-join {
  text-align: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 20px;
  padding: 36px 28px;
  color: #fff;
  box-shadow: 0 12px 48px rgba(0,0,0,0.2);
}
.kclub-join-icon {
  font-size: 3rem;
  margin-bottom: 8px;
  animation: bounce-gentle 2s ease-in-out infinite;
}
.kclub-join h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.kclub-join p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.kclub-join-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kclub-join-form input {
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: 0.2s;
}
.kclub-join-form input::placeholder { color: rgba(255,255,255,0.35); }
.kclub-join-form input:focus { border-color: #FF6B35; background: rgba(255,255,255,0.12); }

/* ===== MEMBER CARD ===== */
.kclub-card {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 20px;
  padding: 24px;
  color: #fff;
  border: 2px solid;
  box-shadow: 0 12px 48px rgba(0,0,0,0.2);
  margin-bottom: 20px;
}
.kclub-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.kclub-tier-badge {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a1a2e;
}
.kclub-name {
  font-family: 'Baloo 2', cursive;
  font-size: 1.1rem;
}
.kclub-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
}
.kclub-stat { text-align: center; }
.kclub-stat-num {
  display: block;
  font-family: 'Baloo 2', cursive;
  font-size: 1.5rem;
  font-weight: 800;
  color: #FF6B35;
}
.kclub-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.kclub-progress { margin-top: 8px; }
.kclub-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.kclub-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.kclub-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.kclub-max-tier {
  text-align: center;
  font-size: 0.9rem;
  color: #FFD700;
  margin-top: 8px;
}

/* ===== SCRATCH CARD ===== */
.kclub-scratch-section {
  background: var(--white, #fff);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}
.kclub-scratch-section h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.kclub-scratch-hint {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.kclub-scratch-wrapper {
  position: relative;
  width: 280px;
  height: 160px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(255,107,53,0.2);
  cursor: crosshair;
}
.kclub-scratch-prize {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFF5EB, #FFF0F5);
}
.scratch-emoji { font-size: 2.5rem; margin-bottom: 4px; }
.scratch-text { font-weight: 700; font-size: 1rem; color: #2D2B55; }

#scratchCanvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  touch-action: none;
}

.kclub-scratch-wrapper.revealed {
  animation: prizeReveal 0.6s ease;
}
@keyframes prizeReveal {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.kclub-scratch-cooldown {
  padding: 24px;
  color: #666;
}
.kclub-scratch-cooldown span { font-size: 2rem; display: block; margin-bottom: 8px; }
.kclub-scratch-cooldown p { font-size: 0.85rem; }

.kclub-prize-won {
  margin-top: 12px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255,107,53,0.1), rgba(123,104,238,0.1));
  border-radius: 12px;
  animation: fadeInUp 0.5s ease;
}
.kclub-prize-won p {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #2D2B55;
}

/* ===== REWARDS LIST ===== */
.kclub-rewards {
  background: var(--white, #fff);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.kclub-rewards h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 16px;
}
.kclub-reward-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kclub-reward {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.03);
  border-radius: 12px;
  opacity: 0.5;
  transition: 0.3s;
}
.kclub-reward.unlocked {
  opacity: 1;
  background: linear-gradient(135deg, rgba(255,107,53,0.08), rgba(123,104,238,0.05));
  border: 1px solid rgba(255,107,53,0.15);
}
.kclub-reward span { font-size: 1.5rem; }
.kclub-reward strong { display: block; font-size: 0.9rem; }
.kclub-reward small { font-size: 0.75rem; color: #666; }
