/* Coupon Page Styles - App Version */

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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  min-height: 100vh;
}

.coupon-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: #fff;
}

.coupon-container {
  width: 100%;
  max-width: 400px;
}

.coupon-card {
  background: #ffffff;
  padding: 32px 20px;
  text-align: center;
}

.coupon-logo {
  width: 100px;
  margin-bottom: 20px;
}

.coupon-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.coupon-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 24px;
}

.coupon-form {
  width: 100%;
}

.input-group {
  margin-bottom: 12px;
}

.coupon-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.coupon-input:focus {
  border-color: #ff6b35;
}

.coupon-input::placeholder {
  color: #aaa;
}

.coupon-submit-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: #ff6b35;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.coupon-submit-btn:active:not(:disabled) {
  opacity: 0.8;
}

.coupon-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Status & Result Messages */
.status-message,
.result-message {
  padding: 14px 16px;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
}

.result-message.success {
  background: #e8f5e9;
  color: #2e7d32;
}

.result-message.error {
  background: #ffebee;
  color: #c62828;
}

.error-text {
  color: #c62828;
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f0f0f0;
  border-top-color: #ff6b35;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Retry Button */
.retry-btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #ff6b35;
  background: #fff;
  border: 1.5px solid #ff6b35;
  border-radius: 10px;
  text-decoration: none;
}

.retry-btn:active {
  background: #ff6b35;
  color: #fff;
}

/* User Info */
#userInfo {
  color: #ff6b35;
  font-weight: 600;
}

/* Session Timer */
.timer-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  background: #f5f5f5;
  border-radius: 10px;
}

.timer-label {
  font-size: 13px;
  color: #666;
}

.timer-display {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
}

/* 1분 이하 경고 */
.timer-section.warning {
  background: #fff8e1;
}

.timer-section.warning .timer-display {
  color: #f57c00;
}

/* 30초 이하 위험 */
.timer-section.danger {
  background: #ffebee;
  animation: pulse 1s infinite;
}

.timer-section.danger .timer-display {
  color: #c62828;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
