/* ===================================
   GIFT CARDS - DARK THEME STYLES
   =================================== */

.gifts-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.gifts-header {
  text-align: center;
  margin-bottom: 40px;
}

.gifts-header h1 {
  color: var(--text-primary, #ffffff);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gifts-header p {
  color: var(--text-secondary, #cccccc);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===================================
   PAYMENT MESSAGE DISPLAY
   =================================== */

.payment-message {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 10px;
  border: 1px solid;
  position: relative;
}

.payment-message.success {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border-color: #4caf50;
}

.payment-message.error {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border-color: #f44336;
}

.payment-message.info {
  background: rgba(33, 150, 243, 0.1);
  color: #2196f3;
  border-color: #2196f3;
}

.payment-message i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.payment-message span {
  flex: 1;
  font-weight: 500;
}

.close-message {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.close-message:hover {
  background: rgba(255, 255, 255, 0.1);
}

.close-message i {
  font-size: 0.9rem;
}

/* ===================================
   DASHBOARD PREVIEW / MANAGE GIFT CARDS
   =================================== */

.dashboard-preview {
  background: var(--card-bg, #2a2a2a);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.dashboard-preview h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.dashboard-preview p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Subtle button style for dashboard preview */
.dashboard-preview .payment-btn {
  background: transparent;
  border: 2px solid rgba(78, 205, 196, 0.5);
  color: #4ecdc4;
  text-transform: none;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.dashboard-preview .payment-btn:hover {
  background: rgba(78, 205, 196, 0.1);
  border-color: #4ecdc4;
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.2);
}

/* Mobile optimizations for dashboard preview */
@media (max-width: 768px) {
  .dashboard-preview {
    padding: 18px 15px;
    margin-bottom: 25px;
  }
  
  .dashboard-preview h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
  }
  
  .dashboard-preview p {
    display: none;
  }
  
  .dashboard-preview .fas.fa-gift {
    font-size: 2rem !important;
    margin-bottom: 12px !important;
  }
  
  .dashboard-preview .payment-btn,
  .dashboard-preview .btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* ===================================
   GIFT CREATION WIZARD
   =================================== */

.gift-wizard {
  background: var(--card-bg, #2a2a2a);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color, #404040);
}

.wizard-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.wizard-step {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--secondary-bg, #333333);
  border-radius: 25px;
  color: var(--text-secondary, #cccccc);
  font-weight: 500;
  transition: all 0.3s ease;
}

.wizard-step.active {
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  color: #ffffff;
  transform: scale(1.05);
}

.wizard-step.completed {
  background: var(--success-color, #28a745);
  color: #ffffff;
}

.wizard-step-number {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===================================
   CARD SELECTION
   =================================== */

.card-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  color: var(--text-secondary, #cccccc);
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-select {
  background: var(--input-bg, #333333);
  border: 1px solid var(--border-color, #404040);
  border-radius: 8px;
  color: var(--text-primary, #ffffff);
  padding: 8px 12px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: #4ecdc4;
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card-option {
  background: var(--secondary-bg, #333333);
  border: 2px solid var(--border-color, #404040);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-option:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-color: #4ecdc4;
}

.card-option.selected {
  border-color: #4ecdc4;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(255, 107, 107, 0.1));
}

.card-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card-option.selected::before {
  transform: scaleX(1);
}

.card-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
  position: relative;
  background: var(--card-bg, #2a2a2a);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.card-option:hover .card-image img {
  transform: scale(1.05);
}

.card-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  flex: 1;
}

.card-name {
  color: var(--text-primary, #ffffff);
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.card-price-display {
  display: flex;
  align-items: center;
  justify-content: center;
}

.free-badge {
  background-color: var(--success-color, #28a745);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.price-badge {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

/* Token-specific price badge colors - all white */
.xrp-price-badge {
  color: #ffffff !important;
}

.csc-price-badge {
  color: #ffffff !important;
}

/* ===================================
   WIZARD CONTENT HEADINGS
   =================================== */

.wizard-content h2 {
  color: var(--text-primary, #ffffff);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wizard-content h2 i {
  color: #4ecdc4;
  font-size: 1.3rem;
}

/* Mobile responsive heading */
@media (max-width: 480px) {
  .wizard-content h2 {
    font-size: 1.25rem;
    margin-bottom: 15px;
  }
  
  .wizard-content h2 i {
    font-size: 1.1rem;
  }
}

/* ===================================
   CUSTOMIZATION FORM
   =================================== */

.gift-customization {
  background: var(--secondary-bg, #333333);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--text-primary, #ffffff);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-input {
  background: var(--input-bg, #2a2a2a);
  border: 1px solid var(--border-color, #404040);
  border-radius: 8px;
  color: var(--text-primary, #ffffff);
  padding: 12px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #4ecdc4;
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.form-input::placeholder {
  color: var(--text-secondary, #999999);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--input-bg, #2a2a2a);
  border: 1px solid var(--border-color, #404040);
  border-radius: 8px;
  padding: 5px;
}

.quantity-btn {
  background: var(--primary-color, #4ecdc4);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: #3bb5a8;
  transform: scale(1.05);
}

.quantity-btn:disabled {
  background: var(--border-color, #404040);
  cursor: not-allowed;
  transform: none;
}

.quantity-display {
  color: var(--text-primary, #ffffff);
  font-size: 1.2rem;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
  padding: 0 10px;
}

/* Inline quantity selector for payment summary */
.quantity-selector-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--input-bg, #2a2a2a);
  border: 1px solid var(--border-color, #404040);
  border-radius: 6px;
  padding: 4px;
  width: auto;
  max-width: 120px;
  margin: 0 auto;
}

.quantity-btn-small {
  background: var(--primary-color, #4ecdc4);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.quantity-btn-small:hover {
  background: #3bb5a8;
  transform: scale(1.05);
}

.quantity-btn-small:disabled {
  background: var(--border-color, #404040);
  cursor: not-allowed;
  transform: none;
}

.quantity-display-inline {
  color: var(--text-primary, #ffffff);
  font-size: 1rem;
  font-weight: 600;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  flex-shrink: 0;
  text-align: center;
  padding: 0;
  display: inline-block;
}

/* Bright text for quantity label */
.quantity-label-bright {
  color: var(--text-primary, #ffffff);
  font-weight: 500;
}

/* Smart Hybrid Quantity Selector for Gift Cards */
.quantity-selector-gifts {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: nowrap;
}

/* Pill buttons for popular quantities (1, 5, 10) */
.quantity-pill-gift {
  min-width: 44px;
  height: 40px;
  border: 2px solid rgba(78, 205, 196, 0.3);
  background-color: rgba(78, 205, 196, 0.1);
  color: var(--text-primary, #ffffff);
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding: 0 0.7rem;
  -webkit-tap-highlight-color: transparent;
}

.quantity-pill-gift:hover {
  background-color: rgba(78, 205, 196, 0.2);
  border-color: rgba(78, 205, 196, 0.5);
  transform: translateY(-2px);
}

.quantity-pill-gift:active {
  transform: translateY(0) scale(0.98);
}

.quantity-pill-gift.active {
  background: linear-gradient(135deg, #4ecdc4, #44b3aa);
  border-color: #4ecdc4;
  color: white;
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
}

/* More quantity wrapper and dropdown */
.quantity-more-wrapper-gift {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quantity-more-btn-gift {
  letter-spacing: 2px;
  font-size: 1.1rem;
  line-height: 1;
  padding-top: 0;
}

.quantity-more-select-gift {
  position: absolute;
  opacity: 0;
  pointer-events: all;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: transparent;
  cursor: pointer;
  z-index: 10;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.quantity-more-select-gift option {
  background-color: #1a1a2e;
  color: var(--text-color);
  padding: 0.5rem;
  text-align: center;
}

/* Responsive adjustments for small screens */
@media (max-width: 380px) {
  .quantity-pill-gift {
    min-width: 40px;
    height: 38px;
    font-size: 0.9rem;
  }
}

/* ===================================
   GIFT PREVIEW
   =================================== */

.gift-preview {
  background: var(--secondary-bg, #333333);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  text-align: center;
}

.preview-card {
  border-radius: 15px;
  color: #ffffff;
  width: 450px;
  height: 450px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform-origin: center;
}

.preview-card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: linear-gradient(135deg, #ff6b6b, #4ecdc4); /* Fallback gradient */
}

.preview-card-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.preview-card-overlay::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.preview-card-name {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  width: 85%;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.preview-card-divider {
  position: absolute;
  top: 18%;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffffff, #ffffff, #ffffff, transparent);
}

.preview-quantity {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  width: 85%;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.preview-jackpot {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  width: 85%;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  background: rgba(255, 215, 0, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.preview-qr {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333333;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.preview-sender {
  position: absolute;
  top: 81%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  width: 85%;
  opacity: 0.9;
  font-style: italic;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.preview-powered-by {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 1rem;
  opacity: 0.95;
  width: 90%;
}

.preview-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #4ecdc4;
  font-size: 1rem;
}

.preview-logo img {
  width: 186px;
  height: 30px;
  object-fit: contain;
  filter: brightness(1.2);
}

/* ===================================
   PAYMENT SECTION
   =================================== */

.payment-section {
  background: var(--secondary-bg, #333333);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.payment-summary {
  margin-bottom: 15px;
  padding: 20px;
  background: var(--card-bg, #2a2a2a);
  border-radius: 10px;
  border: 1px solid var(--border-color, #404040);
}

.payment-total {
  color: var(--text-primary, #ffffff);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.payment-details {
  color: var(--text-secondary, #cccccc);
  font-size: 0.95rem;
}

.payment-btn {
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.payment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.payment-btn:disabled {
  background: var(--border-color, #404040);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===================================
   GIFT DASHBOARD
   =================================== */

/* Ensure FontAwesome icons within campaign spans don't get affected by tag positioning */
.campaign-note-span .fas.fa-tag,
.gift-meta .fas.fa-tag {
  position: static !important;
  top: auto !important;
  left: auto !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.dashboard-section {
  margin-bottom: 40px;
}

.dashboard-section h2 {
  color: var(--text-primary, #ffffff);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-section h2 i {
  color: #4ecdc4;
}

.gifts-list {
  display: grid;
  gap: 15px;
}

.gift-item {
  background: var(--secondary-bg, #333333);
  border: 1px solid var(--border-color, #404040);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.3s ease;
}

.gift-item .gift-content {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 15px;
}

.gift-item:hover {
  border-color: #4ecdc4;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gift-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 15px;
}

.gift-status.active {
  background: #28a745;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.gift-status.claimed {
  background: #6c757d;
}

.gift-status.expired {
  background: #dc3545;
}

.gift-status.pending {
  background: #ffc107;
}

.gift-info h3 {
  color: var(--text-primary, #ffffff);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.gift-meta {
  color: var(--text-secondary, #cccccc);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 8px;
}

.gift-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gift-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
  align-items: stretch;
}

.gift-actions .btn-small {
  white-space: nowrap;
  justify-content: center;
  min-width: auto;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-small {
  background: var(--primary-color, #4ecdc4);
  border: none;
  border-radius: 6px;
  color: #ffffff;
  padding: 8px 15px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-small:hover {
  background: #3bb5a8;
  transform: translateY(-1px);
}

.btn-small.secondary {
  background: var(--secondary-bg, #666666);
}

.btn-small.secondary:hover {
  background: #555555;
}

/* ===================================
   REDEMPTION PAGE
   =================================== */

.redeem-container {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
}

.redeem-card {
  background: var(--card-bg, #2a2a2a);
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color, #404040);
}

.redeem-gift-display {
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  border-radius: 15px;
  padding: 30px;
  color: #ffffff;
  margin-bottom: 30px;
}

.redeem-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.redeem-btn {
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.redeem-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
  .gifts-container {
    padding: 15px;
  }
  
  .gifts-header h1 {
    font-size: 2rem;
  }
  
  .gift-wizard {
    padding: 20px;
  }
  
  .wizard-steps {
    flex-direction: column;
    align-items: center;
  }
  
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .gift-item {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  
  .gift-item .gift-content {
    margin-bottom: 20px;
  }
  
  .gift-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    min-width: auto;
    width: 100%;
  }
  
  .gift-actions .btn-small {
    flex: 1;
    min-width: 120px;
  }
  
  .redeem-container {
    margin: 20px auto;
    padding: 15px;
  }
  
  .redeem-card {
    padding: 25px;
  }
  
  .card-image {
    height: 120px;
  }
  
  .card-info {
    padding: 0.75rem;
  }
  
  .card-name {
    font-size: 0.9rem;
  }
  
  /* Tablet optimizations for redemption type section */
  .redemption-options {
    flex-direction: column;
    gap: 12px;
  }
  
  .redemption-radio-label {
    padding: 16px;
  }
  
  /* Payment section mobile optimizations */
  .payment-section {
    padding: 18px;
  }
  
  .payment-total {
    font-size: 1.4rem;
  }
  
  .payment-btn {
    padding: 16px 30px;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 10px;
  }
  
  .btn-small {
    padding: 12px 20px;
    font-size: 0.9rem;
    width: 100%;
  }
  
  /* Tablet optimization for redemption count input */
  #multiple-use-summary #redemption-count {
    width: 120px;
    height: 48px;
    padding: 12px 16px;
    font-size: 1.2rem;
    border-radius: 10px;
  }

}

@media (max-width: 480px) {
  .gifts-header h1 {
    font-size: 1.75rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .wizard-step {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  
  .card-image {
    height: 100px;
  }
  
  .card-info {
    padding: 0.6rem;
  }
  
  .card-name {
    font-size: 0.85rem;
  }
  
  .price-badge, .free-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
  
  /* Mobile optimizations for redemption type selection */
  .redemption-options {
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .redemption-option {
    flex: none !important;
  }
  
  .redemption-radio-label {
    padding: 18px !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
  }
  
  .redemption-radio-label input[type="radio"] {
    transform: scale(1.4) !important;
    margin-right: 15px !important;
  }
  
  .redemption-radio-label > div > div:first-child {
    font-size: 1.1rem !important;
    margin-bottom: 6px !important;
  }
  
  .redemption-radio-label > div > div:last-child {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
  }
  
  /* Mobile optimization for redemption count input in payment summary */
  #multiple-use-summary #redemption-count {
    width: 140px !important;
    height: 56px !important;
    padding: 16px 20px !important;
    font-size: 1.4rem !important;
    font-weight: bold !important;
    text-align: center !important;
    border: 2px solid var(--border-color, #555555) !important;
    border-radius: 12px !important;
    background: var(--input-bg, #444444) !important;
    color: var(--accent-color, #4ecdc4) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  }
  
  #multiple-use-summary #redemption-count:focus {
    border-color: var(--accent-color, #4ecdc4) !important;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
  }
  
  #multiple-use-summary #redemption-count:hover {
    border-color: var(--accent-color, #4ecdc4) !important;
    transform: scale(1.02) !important;
    transition: all 0.2s ease !important;
  }
  
  /* Make the container around the input more touch-friendly */
  #multiple-use-summary > div:last-child {
    padding: 12px !important;
    margin: 8px 0 !important;
  }
  
  .redemption-type-section {
    margin-bottom: 25px !important;
    padding: 18px !important;
  }
  
  .redemption-type-section h3 {
    font-size: 1.15rem !important;
    margin-bottom: 18px !important;
  }
  
  #multiple-redemption-settings {
    padding-top: 18px !important;
  }
  
  #multiple-redemption-settings label {
    font-size: 1rem !important;
    margin-bottom: 12px !important;
  }
  
  #multiple-redemption-settings small {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-top: 12px !important;
  }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(78, 205, 196, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(78, 205, 196, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(78, 205, 196, 0);
  }
}

.gift-wizard {
  animation: fadeInUp 0.6s ease-out;
}

.card-option.selected {
  animation: pulse 2s infinite;
}

.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ===================================
   PAYMENT REDIRECT OVERLAY
   =================================== */

.payment-redirect-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.processing-container {
  background-color: var(--primary-bg, #1e1e1e);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;
  width: 400px;
  color: var(--text-primary, #ffffff);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color, #404040);
}

.processing-container h3 {
  margin: 15px 0;
  color: var(--text-primary, #ffffff);
  font-size: 1.2rem;
}

.processing-container p {
  margin: 10px 0;
  color: var(--text-secondary, #cccccc);
  line-height: 1.4;
}

.small-text {
  font-size: 12px;
  color: var(--text-secondary, #999999);
}

.redirect-now-btn {
  background-color: var(--primary-accent, #4ecdc4);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.redirect-now-btn:hover {
  background-color: var(--primary-accent-hover, #3ba99f);
}

/* Enhanced Spinner Styles */
.spinner-enhanced {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px auto;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: spinRing 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
  border-top-color: #4ecdc4;
  animation-delay: 0s;
  animation-duration: 1.2s;
}

.spinner-ring:nth-child(2) {
  border-top-color: #ff6b6b;
  animation-delay: 0.1s;
  animation-duration: 1.4s;
}

.spinner-ring:nth-child(3) {
  border-top-color: #ffe66d;
  animation-delay: 0.2s;
  animation-duration: 1.6s;
}

@keyframes spinRing {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===================================
   CUSTOMIZATION MODAL
   =================================== */

.customization-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10500;
  backdrop-filter: blur(5px);
}

.customization-modal-content {
  background: var(--card-bg, #2a2a2a);
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-color, #404040);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.customization-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid var(--border-color, #404040);
}

.customization-header h2 {
  color: var(--text-primary, #ffffff);
  margin: 0;
  font-size: 1.5rem;
}

.close-customization {
  background: none;
  border: none;
  color: var(--text-secondary, #cccccc);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.close-customization:hover {
  color: var(--text-primary, #ffffff);
  background: var(--secondary-bg, #333333);
}

.customization-body {
  padding: 30px;
}

.customization-form {
  margin-bottom: 30px;
}

.customization-form .form-group {
  margin-bottom: 20px;
}

.customization-form label {
  display: block;
  color: var(--text-primary, #ffffff);
  font-weight: 500;
  margin-bottom: 8px;
}

.customization-form .form-input {
  width: 100%;
  background: var(--input-bg, #333333);
  border: 1px solid var(--border-color, #404040);
  border-radius: 8px;
  color: var(--text-primary, #ffffff);
  padding: 12px 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.customization-form .form-input:focus {
  outline: none;
  border-color: #4ecdc4;
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.customization-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Mobile Preview Toggle */
.mobile-preview-toggle {
  display: none;
  background: var(--primary-color, #4ecdc4);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  width: 100%;
  text-align: center;
}

.mobile-preview-toggle:hover {
  background: #3bb5a8;
  transform: translateY(-1px);
}

.mobile-preview-toggle i {
  margin-right: 8px;
}

/* Desktop: always show preview content */
@media (min-width: 769px) {
  .gift-preview-content {
    display: block !important;
  }
  
  .mobile-preview-toggle {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mobile-preview-toggle {
    display: block;
  }
  
  .gift-preview-content {
    display: none;
  }
  
  .gift-preview-content.show {
    display: block;
  }
  
  .customization-modal-content {
    width: 95%;
    margin: 10px;
  }
  
  .customization-header {
    padding: 15px 20px;
  }
  
  .customization-body {
    padding: 20px;
  }
  
  .customization-actions {
    flex-direction: column;
  }
}

/* Payment Processing Overlay for Desktop Users */
.payment-processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Load More functionality styles */
.load-more-container {
  margin: 20px 0;
  text-align: center;
}

.loading-spinner {
  color: var(--text-secondary, #cccccc);
  font-size: 0.9rem;
  padding: 12px 24px;
}

.loading-spinner i {
  margin-right: 8px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
} 