/* ===================================
   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;
}

/* ===================================
   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;
}

/* ===================================
   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: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  transition: all 0.3s ease;
}

.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;
}

.gift-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.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 {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .gift-actions {
    justify-content: center;
  }
  
  .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;
  }
  

}

@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;
  }
}

/* ===================================
   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: 1000;
  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); }
} 