/* FAJAR78 Lucky Wheels - Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #ffd700;
  --secondary: #ff6b35;
  --dark: #1a1a2e;
  --darker: #0f0f1a;
  --text: #060af8;
  --muted: #0429fa;
}

body.page {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  background: #0a0a14;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ============================================
   BACKGROUND IMAGE - GANTI URL DI BAWAH INI
   Pakai DIRECT LINK gambar (bukan halaman web)
   Contoh: https://i.postimg.cc/xxx/gambar.jpg
   ============================================ */
.bg-overlay {
  position: fixed;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(10, 10, 20, 0.6) 0%, rgba(10, 10, 20, 0.7) 100%),
    url('images/background.png') center/cover no-repeat fixed;
  z-index: -1;
}

/* Logo Header */
.logo-header {
  text-align: center;
  padding: 20px;
  z-index: 10;
  position: relative;
}

.main-logo {
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.brand-title {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: calc(100vh - 150px);
}

/* Wheel Container */
.wheel-container {
  position: relative;
  margin-bottom: 30px;
}

.wheel-frame {
  position: relative;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a227, #8b6914);
  padding: 15px;
  box-shadow: 
    0 0 60px rgba(255, 215, 0, 0.4),
    inset 0 0 30px rgba(0, 0, 0, 0.3);
}

#wheelCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform var(--spin-duration, 6s) cubic-bezier(0.15, 0.85, 0.35, 1);
}

.wheel-pointer {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-top: 50px solid #ffd700;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5));
  z-index: 10;
}

.wheel-pointer::after {
  content: '';
  position: absolute;
  top: -48px;
  left: -20px;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 40px solid #ffec8b;
}

.wheel-center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #b8860b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  z-index: 5;
  font-size: 2rem;
}

.center-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 400px;
}

.spin-btn {
  width: 100%;
  padding: 18px 40px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  background: linear-gradient(135deg, #ffd700, #ffec8b, #ffd700);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 
    0 10px 30px rgba(255, 215, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.spin-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 15px 40px rgba(255, 215, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.spin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.winners-btn {
  width: 100%;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #8b0000, #dc143c, #8b0000);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(220, 20, 60, 0.4);
  transition: all 0.3s ease;
}

.winners-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 20, 60, 0.5);
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.3s ease;
}

/* Scrollbar untuk modal */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

@keyframes modalIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Welcome Modal */
.welcome-modal {
  text-align: center;
  color: #333;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
  max-width: 480px;
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  padding: 0 !important;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Welcome Header */
.welcome-header {
  background: linear-gradient(135deg, #1a237e 0%, #3949ab 50%, #1a237e 100%);
  padding: 30px 20px 40px;
  position: relative;
}

.welcome-icon-wrapper {
  position: relative;
  display: inline-block;
}

.welcome-icon-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.welcome-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(255, 215, 0, 0.6));
  position: relative;
  z-index: 1;
}

.welcome-icon-fallback {
  width: 80px;
  height: 80px;
  font-size: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #1a237e;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-top: 15px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.welcome-icon {
  font-size: 4rem;
  margin-bottom: 15px;
}

.welcome-title {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
  padding: 0 20px;
}

.title-welcome {
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.title-member {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1a237e, #3949ab);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
}

.welcome-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 20px;
}

.welcome-divider::before,
.welcome-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ddd, transparent);
}

.divider-icon {
  padding: 0 15px;
  font-size: 1.2rem;
}

.welcome-text {
  text-align: center;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.7;
  padding: 0 20px;
}

.welcome-text p {
  margin-bottom: 10px;
}

.easy-money-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #fff3cd, #ffe082);
  color: #856404;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
  animation: bounce-soft 2s ease-in-out infinite;
}

@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.money-icon {
  font-size: 1.2rem;
  animation: spin-coin 3s linear infinite;
}

@keyframes spin-coin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.highlight-text {
  color: #1a237e;
  font-weight: 700;
  font-size: 1rem !important;
}

.instruction-text {
  background: linear-gradient(135deg, #e8eaf6, #c5cae9);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85rem !important;
  border-left: 4px solid #3949ab;
}

/* Syarat Container */
.syarat-container {
  background: linear-gradient(135deg, #f5f5f5, #eeeeee);
  border-radius: 16px;
  padding: 20px;
  margin: 0 20px 20px 20px;
}

.syarat-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #1a237e, #303f9f);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: default;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
  letter-spacing: 1px;
}

.syarat-icon {
  font-size: 1.2rem;
}

.syarat-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #333;
}

.syarat-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.syarat-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.syarat-list li:last-child {
  margin-bottom: 0;
}

.syarat-bullet {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ok-btn {
  padding: 16px 50px;
  background: linear-gradient(135deg, #1a237e, #303f9f);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 25px rgba(26, 35, 126, 0.4);
  letter-spacing: 1px;
  margin-bottom: 25px;
}

.ok-btn:hover {
  background: linear-gradient(135deg, #303f9f, #3949ab);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(26, 35, 126, 0.5);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.ok-btn:hover .btn-arrow {
  transform: translateX(5px);
}

/* Code Modal */
.code-modal {
  text-align: center;
  color: #333;
}

.code-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 20px;
  color: #333;
}

.input-group {
  margin-bottom: 15px;
  text-align: left;
}

.input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.code-input {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  text-align: center;
  outline: none;
  transition: border-color 0.3s ease;
  background: #ffffff;
  color: #000000;
}

.code-input::placeholder {
  color: #999999;
}

.code-input:focus {
  border-color: #1a237e;
}

.code-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}

.code-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.code-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.valid-icon {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 10px;
}

.valid-info {
  text-align: center;
  font-size: 1rem;
  color: #333;
  margin: 5px 0;
}

.code-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.spin-confirm-btn {
  padding: 12px 30px;
  background: #1a237e;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.spin-confirm-btn:hover {
  background: #303f9f;
}

.cancel-btn {
  padding: 12px 30px;
  background: #757575;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cancel-btn:hover {
  background: #616161;
}

/* Result Modal */
.result-modal {
  text-align: center;
  color: #333;
}

.result-icon {
  font-size: 4rem;
  margin-bottom: 10px;
}

.result-modal h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffd700;
  text-shadow: 2px 2px 0 #b8860b;
  margin-bottom: 10px;
}

.result-prize {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 15px;
}

.result-info {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

/* Winners Modal */
.winners-modal {
  color: #333;
}

.winners-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

.winners-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.winner-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.winner-item:last-child {
  border-bottom: none;
}

.winner-name {
  font-weight: 600;
}

.winner-prize {
  color: #1a237e;
  font-weight: 500;
}

.no-winners {
  text-align: center;
  color: #999;
  padding: 30px;
}

/* Confetti */
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* Admin Link */
.admin-link-hidden {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 1.5rem;
  opacity: 0.3;
  text-decoration: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.admin-link-hidden:hover {
  opacity: 1;
}

/* ============================================
   RESPONSIVE - MOBILE FRIENDLY
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
  .logo-header {
    padding: 15px 10px;
  }
  
  .main-logo {
    max-width: 250px;
  }
  
  .wheel-frame {
    width: 350px;
    height: 350px;
    padding: 12px;
  }
  
  .wheel-pointer {
    top: -20px;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #ffd700;
  }
  
  .wheel-center-logo {
    width: 70px;
    height: 70px;
  }
  
  .main-content {
    padding: 15px;
    min-height: calc(100vh - 120px);
  }
  
  .modal-content {
    padding: 25px 20px;
    max-width: 90%;
  }
  
  .welcome-modal {
    padding: 0 0 25px 0;
  }
  
  .welcome-header {
    margin: 0 0 20px 0;
    padding: 25px 20px 35px;
  }
  
  .title-welcome {
    font-size: 0.9rem;
  }
  
  .title-member {
    font-size: 1.2rem;
  }
  
  .welcome-text {
    font-size: 0.85rem;
    padding: 0 15px;
  }
  
  .syarat-container {
    margin: 0 15px 20px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .logo-header {
    padding: 10px 5px;
  }
  
  .main-logo {
    max-width: 180px;
  }
  
  .brand-title {
    font-size: 1.8rem;
  }
  
  .wheel-container {
    margin-bottom: 20px;
  }
  
  .wheel-frame {
    width: 300px;
    height: 300px;
    padding: 10px;
  }
  
  .wheel-pointer {
    top: -18px;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 36px solid #ffd700;
  }
  
  .wheel-pointer::after {
    top: -34px;
    left: -14px;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 28px solid #ffec8b;
  }
  
  .wheel-center-logo {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .center-logo-img {
    width: 45px;
    height: 45px;
  }
  
  .main-content {
    padding: 10px;
    min-height: calc(100vh - 100px);
  }
  
  .action-buttons {
    max-width: 300px;
    gap: 12px;
  }
  
  .spin-btn {
    font-size: 1.2rem;
    padding: 15px 30px;
    letter-spacing: 1px;
  }
  
  .winners-btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
  
  /* Modal Mobile */
  .modal-content {
    padding: 20px 15px;
    max-width: 95%;
    border-radius: 15px;
  }
  
  .welcome-modal {
    padding: 0 0 20px 0;
  }
  
  .welcome-header {
    margin: 0 0 20px 0;
    padding: 25px 15px 35px;
  }
  
  .welcome-logo {
    width: 60px;
    height: 60px;
  }
  
  .welcome-badge {
    font-size: 0.75rem;
    padding: 6px 18px;
  }
  
  .welcome-icon {
    font-size: 3rem;
    margin-bottom: 10px;
  }
  
  .title-welcome {
    font-size: 0.85rem;
    letter-spacing: 2px;
  }
  
  .title-member {
    font-size: 1.1rem;
  }
  
  .welcome-divider {
    margin: 10px 15px;
  }
  
  .divider-icon {
    font-size: 1rem;
  }
  
  .welcome-text {
    font-size: 0.8rem;
    margin-bottom: 15px;
    line-height: 1.5;
    padding: 0 15px;
  }
  
  .easy-money-badge {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
  
  .money-icon {
    font-size: 1rem;
  }
  
  .highlight-text {
    font-size: 0.9rem !important;
  }
  
  .instruction-text {
    font-size: 0.75rem !important;
    padding: 10px 12px;
  }
  
  .syarat-container {
    margin: 0 15px 20px;
    padding: 15px;
  }
  
  .syarat-btn {
    padding: 12px 15px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    gap: 8px;
  }
  
  .syarat-icon {
    font-size: 1rem;
  }
  
  .syarat-list {
    font-size: 0.8rem;
  }
  
  .syarat-list li {
    padding: 10px 12px;
    gap: 10px;
    margin-bottom: 6px;
  }
  
  .syarat-bullet {
    font-size: 1rem;
  }
  
  .ok-btn {
    padding: 14px 40px;
    font-size: 0.9rem;
  }
  
  /* Code Modal Mobile */
  .code-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .input-label {
    font-size: 0.8rem;
  }
  
  .code-input {
    padding: 12px;
    font-size: 0.9rem;
  }
  
  .code-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .spin-confirm-btn,
  .cancel-btn {
    padding: 10px 25px;
    width: 100%;
  }
  
  /* Result Modal Mobile */
  .result-icon {
    font-size: 3rem;
  }
  
  .result-modal h3 {
    font-size: 1.5rem;
  }
  
  .result-prize {
    font-size: 1.2rem;
  }
  
  .result-info {
    font-size: 0.8rem;
  }
  
  /* Winners Modal Mobile */
  .winners-title {
    font-size: 1.2rem;
  }
  
  .winner-item {
    font-size: 0.8rem;
    padding: 8px;
  }
}

/* Small Mobile (iPhone SE, etc) */
@media (max-width: 375px) {
  .main-logo {
    max-width: 150px;
  }
  
  .wheel-frame {
    width: 260px;
    height: 260px;
    padding: 8px;
  }
  
  .wheel-pointer {
    top: -15px;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #ffd700;
  }
  
  .wheel-center-logo {
    width: 50px;
    height: 50px;
  }
  
  .center-logo-img {
    width: 35px;
    height: 35px;
  }
  
  .action-buttons {
    max-width: 260px;
  }
  
  .spin-btn {
    font-size: 1rem;
    padding: 12px 25px;
  }
  
  .welcome-title {
    font-size: 0.95rem;
  }
  
  .modal-content {
    padding: 15px 12px;
  }
}

/* Admin Styles */
.admin-link {
  color: var(--text);
  opacity: 0.8;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 14px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.admin-link:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.4);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  position: relative;
  z-index: 1;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 0 48px 48px;
  position: relative;
  z-index: 1;
}

.layout.admin-layout {
  grid-template-columns: 1fr;
}

.card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 24px;
  backdrop-filter: blur(12px);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  color: var(--muted);
  font-size: 14px;
}

.form-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  align-items: center;
}

input, select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.prize-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.prize-row {
  display: grid;
  grid-template-columns: 40px 1fr 80px 90px 90px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
}

.prize-color {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3);
}

.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-align: center;
}

.status-active {
  background: rgba(125, 255, 122, 0.12);
  color: #9eff9b;
}

.status-inactive {
  background: rgba(255, 210, 102, 0.12);
  color: #ffd266;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr 1fr 120px 140px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.hidden {
  display: none !important;
}

.primary-btn, .secondary-btn {
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #ff4d79, #ff9a8b);
  color: #fff;
  box-shadow: 0 10px 25px rgba(255, 77, 121, 0.45);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.primary-btn:hover:not(:disabled), .secondary-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 20px;
  }
  .layout {
    padding: 0 20px 32px;
  }
}
