/* ==========================================================================
   RACHEL'S PALM BEACH & ORLANDO - VIP REWARDS BOTTOM SHEET DRAWER
   Luxury White Theme - 4-Step Guided VIP Card Activation Engine
   ========================================================================== */

.rewards-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 15, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, visibility;
}

.rewards-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rewards-sheet {
  width: 100%;
  max-width: 600px;
  height: 90vh;
  height: 90dvh;
  max-height: 90vh;
  max-height: 90dvh;
  background: #FFFFFF;
  color: #111317;
  border-top: 1.5px solid rgba(230, 0, 46, 0.45);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 28px 28px 0 0;
  box-shadow: 
    0 -20px 60px rgba(0, 0, 0, 0.35),
    0 0 35px rgba(230, 0, 46, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.72s cubic-bezier(0.16, 1, 0.28, 1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-sizing: border-box;
  position: relative;
}

.rewards-overlay.active .rewards-sheet {
  transform: translateY(0);
}

@media (min-width: 769px) {
  .rewards-overlay {
    align-items: center;
    padding: 24px;
  }
  .rewards-sheet {
    border-radius: 28px;
    border: 1.5px solid rgba(230, 0, 46, 0.4);
    height: auto;
    max-height: 90vh;
    max-height: 90dvh;
    width: 100%;
    max-width: 520px;
    transform: translateY(45px) scale(0.96);
    transition: transform 0.72s cubic-bezier(0.16, 1, 0.28, 1);
  }
  .rewards-overlay.active .rewards-sheet {
    transform: translateY(0) scale(1);
  }
}

/* Header */
.rewards-header {
  padding: 12px 20px 12px;
  border-bottom: 1px solid #F3F4F6;
  background: #FFFFFF;
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.rewards-drag-handle {
  width: 40px;
  height: 4px;
  background: #E5E7EB;
  border-radius: 2px;
  margin-bottom: 10px;
}

.rewards-header-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  position: relative;
}

.rewards-header-left {
  display: flex;
  align-items: center;
  min-width: 34px;
  height: 34px;
}

.rewards-brand-title {
  font-family: var(--font-primary, -apple-system, sans-serif);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #111317;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Hide brand title during multi-step flow so it never overlaps the progress bar */
.rewards-header.in-steps .rewards-brand-title {
  display: none;
}

.rewards-progress-container {
  display: none;
  align-items: center;
  gap: 6px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.rewards-progress-container.is-visible {
  display: flex;
}

.rewards-progress-seg {
  width: 30px;
  height: 3.5px;
  background: #E5E7EB;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.rewards-progress-seg.active {
  background: #E6002E;
}

.rewards-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 34px;
  height: 34px;
}

.rewards-back-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F3F4F6;
  border: none;
  color: #111317;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.rewards-back-btn.is-visible {
  display: flex;
}

.rewards-back-btn:hover {
  background: #E5E7EB;
  transform: translateX(-2px);
}

.rewards-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F3F4F6;
  border: none;
  color: #111317;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.rewards-close-btn:hover {
  background: #E5E7EB;
  transform: scale(1.05);
}

/* Body & Sliding Multi-Step Track */
.rewards-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
}

.rewards-slider-track {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.rewards-pane {
  width: 20%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 20px 24px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 0, 46, 0.25) transparent;
}

.rewards-pane::-webkit-scrollbar {
  width: 5px;
}

.rewards-pane::-webkit-scrollbar-thumb {
  background: rgba(230, 0, 46, 0.25);
  border-radius: 4px;
}

.rewards-pane-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Digital Card Showcase - Exact Replica of Header Mini Card */
.rewards-card-preview-wrap {
  width: 100%;
  max-width: 270px;
  margin: 2px 0 16px;
  perspective: 1000px;
}

.rewards-digital-card {
  width: 100%;
  aspect-ratio: 1.586 / 1;
  background: linear-gradient(135deg, #1c1d22 0%, #111317 50%, #0a0b0d 100%);
  border: 1.5px solid rgba(230, 0, 46, 0.65);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.18);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.rewards-digital-card .card-glint {
  position: absolute;
  top: -60%;
  left: -120%;
  width: 60%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(25deg);
  pointer-events: none;
  animation: cardSweep 6s infinite ease-in-out;
}

.rewards-digital-card .card-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.rewards-digital-card .chip-and-wave {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rewards-digital-card .debit-chip {
  width: 24px;
  height: 17px;
  background: linear-gradient(135deg, #FF4D6D 0%, #E6002E 55%, #8B0019 100%);
  border-radius: 2.5px;
  position: relative;
  border: 0.8px solid #6E4F0D;
  box-shadow: inset 0 0.5px 0.5px rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.rewards-digital-card .chip-line-h1 {
  position: absolute;
  left: 0;
  top: 36%;
  width: 100%;
  height: 0.8px;
  background: rgba(0, 0, 0, 0.45);
}

.rewards-digital-card .chip-line-h2 {
  position: absolute;
  left: 0;
  top: 64%;
  width: 100%;
  height: 0.8px;
  background: rgba(0, 0, 0, 0.45);
}

.rewards-digital-card .chip-line-v {
  position: absolute;
  top: 0;
  left: 45%;
  height: 100%;
  width: 0.8px;
  background: rgba(0, 0, 0, 0.45);
}

.rewards-digital-card .contactless-wave {
  width: 12px;
  height: 12px;
  stroke: rgba(230, 0, 46, 0.85);
  flex-shrink: 0;
}

.rewards-digital-card .card-issuer {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #E6002E;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  line-height: 1;
  white-space: nowrap;
}

.rewards-digital-card .card-row-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: auto 0;
}

.rewards-digital-card .card-action-text {
  font-family: var(--font-primary, -apple-system, sans-serif);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  line-height: 1.1;
  white-space: nowrap;
  text-align: center;
}

.rewards-digital-card .card-row-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.rewards-digital-card .card-perk-text {
  font-family: var(--font-primary, -apple-system, sans-serif);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #E6002E;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  line-height: 1;
  white-space: nowrap;
}

.rewards-digital-card .card-badge-right {
  font-family: var(--font-mono, monospace);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  border: 0.5px solid rgba(16, 185, 129, 0.4);
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

/* Typography */
.rewards-step-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #8B0019;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.rewards-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #111317;
  margin: 0 0 6px;
  line-height: 1.2;
}

.rewards-subtitle {
  font-size: 0.82rem;
  color: #555A64;
  line-height: 1.4;
  margin: 0 0 16px;
  max-width: 400px;
}

/* Perks List - Open Luxury Editorial Layout with Generous Spacing */
.rewards-perks-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 440px;
  margin: 4px 0 20px;
}

.rewards-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: transparent;
  border: none;
  padding: 1px 0;
  text-align: left;
}

.rewards-perk-icon-wrap {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: #FAF7F0;
  border: 1px solid rgba(230, 0, 46, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B89025;
  flex-shrink: 0;
  margin-top: 1px;
}

.rewards-perk-icon-wrap svg {
  width: 16px;
  height: 16px;
  display: block;
}

.rewards-perk-text {
  font-size: 0.83rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.48;
  letter-spacing: 0.005em;
}

/* Form Fields */
.rewards-input-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  margin-top: 8px;
}

.rewards-field {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 5px;
}

.rewards-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #374151;
  text-transform: uppercase;
}

.rewards-input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  background: #F9FAFB;
  font-size: 0.95rem;
  color: #111317;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.rewards-input:focus {
  border-color: #E6002E;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(230, 0, 46, 0.15);
}

.rewards-birthday-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  margin-top: 8px;
}

.rewards-select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  background: #F9FAFB;
  font-size: 0.95rem;
  color: #111317;
  box-sizing: border-box;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.rewards-select:focus {
  border-color: #E6002E;
  background: #FFFFFF;
}

.rewards-perk-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(230, 0, 46, 0.08);
  border: 1px solid rgba(230, 0, 46, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 18px;
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  text-align: left;
}

.perk-callout-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.perk-callout-text {
  font-size: 0.78rem;
  color: #4A3E16;
  line-height: 1.4;
}

.rewards-consent-line {
  margin-top: 14px;
  width: 100%;
  max-width: 380px;
  text-align: left;
}

.rewards-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.rewards-consent-checkbox {
  margin-top: 3px;
  accent-color: #E6002E;
}

.rewards-consent-label .consent-text {
  font-size: 0.72rem;
  color: #6B7280;
  line-height: 1.35;
}

/* Footer Actions */
.rewards-footer-actions {
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid #F3F4F6;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.btn-rewards-action {
  width: 100%;
  max-width: 380px;
  padding: 15px 24px;
  background: #111317;
  color: #FFFFFF;
  border: 1px solid #111317;
  border-radius: 12px;
  font-family: var(--font-primary, -apple-system, sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-rewards-action:hover {
  background: #24292F;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-rewards-action:active {
  transform: translateY(0);
}

.btn-rewards-action.primary-gold {
  background: linear-gradient(135deg, #E5C365 0%, #E6002E 50%, #B89025 100%);
  color: #111317;
  border: 1px solid #C49E2D;
  box-shadow: 0 4px 14px rgba(230, 0, 46, 0.35);
}

.btn-rewards-action.primary-gold:hover {
  filter: brightness(1.04);
  box-shadow: 0 6px 18px rgba(230, 0, 46, 0.45);
}

/* Success Pane */
.success-pane-content {
  justify-content: center;
}

.rewards-success-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(230, 0, 46, 0.12);
  border: 1.5px solid rgba(230, 0, 46, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.success-card-wrap {
  margin: 12px 0 16px;
}

.activated-card {
  border-color: #FF4D6D;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(230, 0, 46, 0.3);
}

.active-tag {
  color: #34D399;
}

.rewards-privileges-box {
  width: 100%;
  max-width: 340px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.privilege-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.privilege-bullet {
  color: #E6002E;
  font-weight: 800;
  font-size: 0.85rem;
}

.privilege-label {
  font-size: 0.78rem;
  color: #374151;
  font-weight: 600;
}
