@charset "UTF-8";

.detail-page { max-width: 640px; margin: 0 auto; padding: 40px 20px 80px; }

.detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: #6b7280; text-decoration: none;
  margin-bottom: 28px;
  transition: color .15s;
}
.detail-back:hover { color: #20c997; }

.detail-card {
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.detail-banner {
  background: linear-gradient(135deg, #134e4a, #20c997);
  padding: 56px 40px;
  text-align: center;
  position: relative;
}
.detail-banner ion-icon { font-size: 64px; color: rgba(255,255,255,.9); display: block; margin: 0 auto 16px; }
.detail-banner h2 { font-size: 24px; font-weight: 800; color: #fff; }
.detail-status-badge {
  display: inline-block; margin-top: 12px;
  font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 20px;
}
.badge-active   { background: #d1fae5; color: #065f46; }
.badge-issued   { background: #e0e7ff; color: #3730a3; }
.badge-soldout  { background: #fee2e2; color: #991b1b; }
.badge-expired  { background: rgba(255,255,255,.2); color: #fff; }
.badge-upcoming { background: #fef3c7; color: #92400e; }

.detail-body { padding: 32px 32px 36px; }

.detail-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}
.detail-info-row:last-of-type { border-bottom: none; }
.detail-info-label { color: #6b7280; display: flex; align-items: center; gap: 6px; }
.detail-info-value { font-weight: 600; color: #1a1a1a; }
.remaining-low { color: #ef4444; }

.detail-progress-wrap { margin: 20px 0 28px; }
.detail-progress-label {
  display: flex; justify-content: space-between;
  font-size: 13px; color: #6b7280; margin-bottom: 8px;
}
.detail-progress-track {
  height: 10px; background: #e5e7eb; border-radius: 6px; overflow: hidden;
}
.detail-progress-fill {
  height: 100%; background: #20c997; border-radius: 6px;
  transition: width .7s ease;
}
.detail-progress-fill.fill-low { background: #f87171; }

.detail-btn {
  width: 100%; padding: 16px;
  font-size: 16px; font-weight: 700; font-family: inherit;
  border: none; border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .18s;
}
.detail-btn-active   { background: #20c997; color: #fff; }
.detail-btn-active:hover { background: #17a589; }
.detail-btn-disabled { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; }
.detail-btn-issued   { background: #e0e7ff; color: #3730a3; cursor: not-allowed; }

.detail-login-notice {
  background: #f0fdf4; border: 1.5px solid #6ee7b7;
  border-radius: 10px; padding: 14px 16px;
  font-size: 13px; color: #065f46;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}

.coupon-toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1a1a1a; color: #fff;
  padding: 12px 24px; border-radius: 50px;
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  opacity: 0; transition: all .3s; pointer-events: none; z-index: 9999;
}
.toast-success { background: #059669; }
.toast-error   { background: #dc2626; }
.toast-show    { opacity: 1; transform: translateX(-50%) translateY(0); }

.coupon-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 9998;
  align-items: center; justify-content: center;
}
.coupon-modal-overlay.modal-show { display: flex; }
.coupon-modal {
  background: #fff; border-radius: 20px; padding: 40px 32px;
  text-align: center; max-width: 340px; width: 90%;
}
.coupon-modal-icon { font-size: 48px; color: #20c997; display: block; margin-bottom: 12px; }
.coupon-modal-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.coupon-modal-desc  { font-size: 14px; color: #6b7280; margin-bottom: 24px; }
.coupon-modal-actions { display: flex; gap: 10px; }
.coupon-modal-btn-primary {
  flex: 1; padding: 12px; background: #20c997; color: #fff;
  border: none; border-radius: 10px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.coupon-modal-btn-cancel {
  flex: 1; padding: 12px; background: #f3f4f6; color: #374151;
  border: none; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
