/* --- CODES PAGE STYLES --- */

.codes-section {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  border: 2px solid #ecf0f1;
  border-bottom: 5px solid #bdc3c7;
  margin-bottom: 30px;
}

.section-title-row {
  display: flex; align-items: center; gap: 15px; margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0; padding-bottom: 10px;
}
.section-title-row h2 { margin: 0; color: #2c3e50; }

/* Pulsing Live Badge */
.status-badge {
  background: #2ecc71; color: white; padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: bold; text-transform: uppercase;
}
.pulse { animation: pulse-green 2s infinite; }
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* CODES GRID */
.codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

/* CODE CARD DESIGN */
.code-card {
  background: #f0fdf4; /* Light Green BG */
  border: 2px dashed #2ecc71;
  border-radius: 12px;
  padding: 15px;
  position: relative;
  transition: 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.code-card:hover { transform: translateY(-3px); background: #fff; shadow: 0 5px 15px rgba(0,0,0,0.1); }

.code-info h4 {
  margin: 0; font-family: 'Fredoka One'; font-size: 20px; color: #27ae60; letter-spacing: 1px;
}
.code-info p { margin: 5px 0 0 0; font-size: 13px; color: #555; font-weight: bold; }

.copy-btn {
  background: #2ecc71; color: white; border: none; padding: 8px 15px;
  border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 14px;
  border-bottom: 3px solid #27ae60;
}
.copy-btn:active { transform: translateY(2px); border-bottom-width: 0; }

/* EXPIRED CODES STYLE */
.expired-section { opacity: 0.8; }
.codes-grid.expired .code-card {
  background: #f8f9fa; border-color: #bdc3c7;
}
.codes-grid.expired h4 { color: #7f8c8d; text-decoration: line-through; }
.codes-grid.expired .copy-btn {
  background: #bdc3c7; border-bottom-color: #95a5a6; cursor: not-allowed;
}

/* HOW TO REDEEM */
.redeem-guide {
  background: #e3f2fd; border: 2px solid #90caf9; padding: 20px;
  border-radius: 12px; margin-bottom: 30px; text-align: center;
}
.steps-row {
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; margin-top: 15px;
}
.step { display: flex; flex-direction: column; align-items: center; max-width: 200px; }
.step-num {
  background: #2196f3; color: white; width: 30px; height: 30px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: bold; margin-bottom: 10px;
}

/* TOAST NOTIFICATION */
.copy-toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: #2c3e50; color: white; padding: 12px 25px; border-radius: 50px;
  font-weight: bold; box-shadow: 0 5px 15px rgba(0,0,0,0.3); z-index: 1000;
  animation: fadeUp 0.3s ease;
}
.hidden { display: none; }
@keyframes fadeUp { from {opacity:0; transform: translate(-50%, 20px);} to {opacity:1; transform: translate(-50%, 0);} }

/* Mobile */
@media (max-width: 768px) {
  .steps-row { flex-direction: column; align-items: center; }
}