/* ============================================
   Xummer eSIM – Redemption Page Styles
   ============================================ */

:root {
  --redeem-bg: #f8fafc;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --accent-orange: #ff6908;
  --accent-navy: #111c35;
}

body.redeem-body {
  background-color: var(--redeem-bg);
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.redeem-container {
  width: 100%;
  max-width: 500px;
  animation: fadeIn 0.6s ease-out;
}

.redeem-logo-box {
  margin-bottom: 20px;
}

.redeem-logo {
  height: 84px;
  width: auto;
}

/* ── Card Styles ── */
.redeem-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

.lookup-title {
  font-weight: 800;
  font-size: 24px;
  color: var(--accent-navy);
  margin-bottom: 12px;
}

.lookup-subtitle {
  color: #64748b;
  font-size: 15px;
  margin-bottom: 24px;
}

.redeem-input-group {
  position: relative;
  margin-bottom: 24px;
}

.redeem-input {
  width: 100%;
  height: 56px;
  background: #f1f5f9;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s;
  outline: none;
}

.redeem-input:focus {
  border-color: var(--accent-orange);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 105, 8, 0.1);
}

.btn-redeem {
  width: 100%;
  height: 56px;
  background: var(--accent-orange);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(255, 105, 8, 0.2);
}

.btn-redeem:hover {
  transform: translateY(-2px);
  background: #e55a00;
  box-shadow: 0 6px 16px rgba(255, 105, 8, 0.3);
}

/* ── Result View ── */
.redeem-section {
  display: none;
  /* Controlled by JS */
}

.redeem-section.active {
  display: block;
}

.ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #059669;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.qr-wrapper {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.qr-code-img {
  width: 200px;
  height: 200px;
  margin-bottom: 12px;
}

.qr-scan-text {
  font-size: 13px;
  color: #94a3b8;
}

.iccid-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
  cursor: pointer;
}

.iccid-box:hover {
  color: var(--accent-orange);
}

/* ── Spec Table ── */
.spec-grid {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-icon {
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.spec-label {
  font-size: 14px;
  color: #334050;
  font-weight: 500;
}

/* ── Steps ── */
.steps-box {
  margin-bottom: 32px;
}

.step-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.step-num {
  width: 24px;
  height: 24px;
  background: var(--accent-orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text {
  font-size: 14px;
  color: #475569;
}

/* ── Technical Codes ── */
.dl-card {
  background: linear-gradient(135deg, #111c35 0%, #1a2d50 100%);
  border-radius: 16px;
  padding: 24px;
  color: #fff;
  margin-top: 32px;
}

.app-promo-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  margin-bottom: 12px;
  display: inline-block;
}

.dl-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.dl-btn-group {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.dl-store-btn {
  flex: 1;
  background: #fff;
  color: #111c35;
  border-radius: 10px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.dl-store-btn:hover {
  opacity: 0.9;
  color: #111c35;
}

.manual-setup-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
  font-weight: 700;
}

.copy-field {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
}

.copy-field:hover {
  background: rgba(255, 255, 255, 0.1);
}

.copy-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-value {
  font-family: monospace;
  font-size: 13px;
}

.footer-support {
  text-align: center;
  margin-top: 32px;
}

.support-link {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 600;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Toast Feedback ── */
.copy-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: #334155;
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
}
