/**
 * ASSIST Store - Dedicated Checkout Page Stylesheet
 * Minimalist Luxury Architecture (Midnight Obsidian & Champagne Gold)
 * Mobile-First Responsive Layout
 */

/* ==========================================================================
   1. SECURE CHECKOUT HEADER
   ========================================================================== */
.checkout-header {
  background: rgba(6, 10, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.checkout-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.checkout-brand-wrap {
  display: inline-flex;
  align-items: center;
}

.checkout-brand-img {
  height: 38px;
  width: auto;
}

.checkout-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-success);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   2. CHECKOUT PROGRESS TRACKER
   ========================================================================== */
.checkout-progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
  padding: 0.5rem 0;
}

.checkout-step-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.checkout-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-family: 'Outfit', sans-serif;
  color: var(--text-muted);
}

.checkout-step-item.active {
  color: var(--gold-light);
}

.checkout-step-item.active .checkout-step-num {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border-color: var(--gold-primary);
  font-weight: 900;
  box-shadow: 0 0 10px var(--gold-glow);
}

.checkout-step-item.completed {
  color: var(--color-success);
}

.checkout-step-item.completed .checkout-step-num {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--color-success);
  color: var(--color-success);
}

.checkout-step-divider {
  width: 40px;
  height: 2px;
  background: var(--border-subtle);
}

/* ==========================================================================
   3. MAIN CHECKOUT SECTION
   ========================================================================== */
.checkout-main-section {
  padding-bottom: 4rem;
  min-height: 70vh;
}

.checkout-empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: none;
  max-width: 600px;
  margin: 2rem auto;
}

.checkout-empty-icon {
  font-size: 3.5rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.checkout-empty-state h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.checkout-empty-state p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.checkout-grid-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2.25rem;
  align-items: start;
}

/* Forms Container */
.checkout-form-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.checkout-card {
  background: linear-gradient(145deg, rgba(15, 26, 54, 0.7) 0%, rgba(8, 13, 26, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.checkout-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.checkout-card-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-sm);
  background: rgba(223, 186, 104, 0.15);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.checkout-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
  margin: 0;
}

/* Form Fields Grid */
.checkout-inputs-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.checkout-inputs-row.full {
  grid-template-columns: 1fr;
}

.checkout-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.checkout-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-platinum);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.checkout-label .required-star {
  color: var(--color-danger);
}

.checkout-input, .checkout-select, .checkout-textarea {
  background: rgba(6, 10, 20, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-white);
  font-family: 'Cairo', 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Custom Luxury Select Dropdown Component */
.assist-custom-dropdown {
  position: relative;
  width: 100%;
}

.custom-dropdown-trigger {
  width: 100%;
  background: rgba(6, 10, 20, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-white);
  font-family: 'Cairo', 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: start;
  user-select: none;
  box-sizing: border-box;
}

.custom-dropdown-trigger:hover {
  border-color: rgba(223, 186, 104, 0.4);
}

.assist-custom-dropdown.open .custom-dropdown-trigger {
  border-color: var(--gold-primary);
  background: rgba(11, 19, 41, 0.95);
  box-shadow: 0 0 12px var(--gold-glow);
}

.dropdown-trigger-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.4);
}

.dropdown-trigger-text.selected {
  color: var(--text-white);
  font-weight: 700;
}

.dropdown-trigger-arrow {
  color: var(--gold-light);
  font-size: 0.85rem;
  transition: transform var(--transition-fast);
}

.assist-custom-dropdown.open .dropdown-trigger-arrow {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(160deg, #0b1329 0%, #060a14 100%);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(223, 186, 104, 0.15);
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  padding: 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-primary) transparent;
  box-sizing: border-box;
}

.assist-custom-dropdown.open .custom-dropdown-menu {
  display: block;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-dropdown-item {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-platinum);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
  user-select: none;
}

.custom-dropdown-item:hover {
  background: rgba(223, 186, 104, 0.15);
  color: var(--gold-light);
  padding-inline-start: 1rem;
}

.custom-dropdown-item.active {
  background: var(--gold-primary);
  color: var(--text-dark);
  font-weight: 800;
}

.custom-dropdown-item .city-badge {
  font-size: 0.7rem;
  background: rgba(223, 186, 104, 0.2);
  color: var(--gold-light);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.custom-dropdown-item.active .city-badge {
  background: rgba(6, 10, 20, 0.3);
  color: var(--text-dark);
}

.checkout-input:focus, .checkout-select:focus, .checkout-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(11, 19, 41, 0.95);
  box-shadow: 0 0 12px var(--gold-glow);
}

.checkout-input::placeholder, .checkout-textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

.checkout-textarea {
  resize: vertical;
  min-height: 70px;
}

.checkout-field-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   4. PAYMENT METHOD RADIO CARDS
   ========================================================================== */
.checkout-payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.payment-method-card {
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(6, 10, 20, 0.75);
  padding: 1.15rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  user-select: none;
}

.payment-method-card:hover {
  border-color: rgba(223, 186, 104, 0.4);
  background: rgba(11, 19, 41, 0.75);
}

.payment-method-card.active {
  border-color: var(--gold-primary);
  background: rgba(223, 186, 104, 0.1);
  box-shadow: 0 0 16px rgba(223, 186, 104, 0.18);
}

.payment-method-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.payment-method-label-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
}

.custom-radio-dot {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.payment-method-card.active .custom-radio-dot {
  border-color: var(--gold-primary);
}

.custom-radio-dot::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-primary);
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition-fast);
}

.payment-method-card.active .custom-radio-dot::after {
  opacity: 1;
  transform: scale(1);
}

.payment-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.payment-title-main {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  line-height: 1.35;
}

.payment-badge-pop {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  color: var(--text-dark);
}

.payment-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.payment-details-expanded {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-subtle);
  display: none;
}

.payment-method-card.active .payment-details-expanded {
  display: block;
  animation: fadeIn 0.3s ease;
}

.cliq-info-box {
  background: rgba(15, 26, 54, 0.8);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-platinum);
}

.cliq-alias-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  background: rgba(6, 10, 20, 0.9);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.cliq-alias-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.cliq-copy-btn {
  background: rgba(223, 186, 104, 0.2);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.cliq-copy-btn:hover {
  background: var(--gold-primary);
  color: var(--text-dark);
}

/* ==========================================================================
   5. ORDER SUMMARY PANEL (RIGHT COLUMN - STICKY)
   ========================================================================== */
.checkout-summary-column {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.checkout-summary-card {
  background: linear-gradient(145deg, rgba(15, 26, 54, 0.95) 0%, rgba(8, 13, 26, 0.98) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md), 0 0 20px rgba(223, 186, 104, 0.08);
}

.checkout-summary-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.checkout-items-badge {
  font-size: 0.85rem;
  color: var(--gold-light);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

/* Ordered Items Mini List */
.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 320px;
  overflow-y: auto;
  padding-inline-end: 0.35rem;
  margin-bottom: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) transparent;
}

.checkout-items-list::-webkit-scrollbar {
  width: 4px;
}

.checkout-items-list::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: var(--radius-full);
}

.checkout-item-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  transition: all var(--transition-fast);
}

.checkout-item-row:hover {
  border-color: rgba(223, 186, 104, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.checkout-item-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkout-item-img-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.checkout-item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.2rem;
}

.checkout-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.checkout-item-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkout-item-custom-tag {
  color: var(--gold-light);
  background: rgba(223, 186, 104, 0.12);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.checkout-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.65rem;
  margin-top: 0.35rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.checkout-item-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.checkout-qty-stepper {
  display: inline-flex;
  align-items: center;
  background: #0d1730;
  border: 1.5px solid rgba(223, 186, 104, 0.45);
  border-radius: 6px;
  height: 34px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.checkout-qty-btn {
  width: 32px;
  height: 34px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #ffffff !important;
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  line-height: 1;
  padding: 0;
  user-select: none;
}

.checkout-qty-btn:hover, .checkout-qty-btn:active {
  background: var(--gold-primary);
  color: #060a14 !important;
}

.checkout-qty-val {
  min-width: 28px;
  text-align: center;
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  user-select: none;
}

.checkout-item-remove-btn {
  background: rgba(239, 68, 68, 0.25);
  border: 1.5px solid #ef4444;
  color: #ffffff !important;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem !important;
  transition: all var(--transition-fast);
  padding: 0;
}

.checkout-item-remove-btn i {
  color: #ffffff !important;
  font-size: 0.95rem;
}

.checkout-item-remove-btn:hover, .checkout-item-remove-btn:active {
  background: #ef4444;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.checkout-item-price {
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold-light);
  white-space: nowrap;
}

/* Coupon Code Form */
.checkout-coupon-box {
  margin-bottom: 1.25rem;
}

.checkout-coupon-form {
  display: flex;
  gap: 0.5rem;
}

.checkout-coupon-input {
  flex: 1;
  background: rgba(6, 10, 20, 0.85);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  color: var(--text-white);
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.checkout-coupon-input:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.checkout-coupon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  border-radius: var(--radius-md);
  padding: 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checkout-coupon-btn:hover {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border-color: var(--gold-primary);
}

.checkout-coupon-applied-pill {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--color-success);
  margin-top: 0.5rem;
}

.checkout-coupon-remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Totals Breakdown */
.checkout-totals-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-platinum);
}

.checkout-total-row .val {
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-weight: 700;
  color: var(--text-white);
}

.checkout-total-row.discount-row {
  color: var(--color-success);
}

.checkout-total-row.discount-row .val {
  color: var(--color-success);
}

.checkout-total-row.grand-total-row {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-white);
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-subtle);
}

.checkout-total-row.grand-total-row .val {
  color: var(--gold-light);
  font-size: 1.25rem;
}

/* Submit Button */
.checkout-submit-btn {
  width: 100%;
  background: var(--gold-gradient);
  color: var(--text-dark);
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.checkout-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(223, 186, 104, 0.45);
}

.checkout-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Guarantees */
.checkout-guarantees {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.checkout-guarantee-item {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.checkout-guarantee-item i {
  color: var(--gold-primary);
}

/* ==========================================================================
   6. ORDER SUCCESS MODAL / SCREEN (CONFIRMATION & INVOICE)
   ========================================================================== */
.order-success-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.order-success-modal.show {
  display: flex;
  animation: fadeIn 0.4s ease;
}

.order-success-card {
  background: linear-gradient(145deg, #0b1329 0%, #080d1a 100%);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--gold-glow);
  position: relative;
}

.success-icon-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 25px var(--gold-glow);
  animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.order-success-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 0.35rem;
}

.order-success-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.order-receipt-box {
  background: rgba(15, 26, 54, 0.7);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: start;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: var(--text-platinum);
}

.receipt-row:last-child {
  margin-bottom: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  font-weight: 800;
  color: var(--gold-light);
  font-size: 1rem;
}

.order-number-highlight {
  font-family: 'Outfit', sans-serif;
  color: var(--gold-primary);
  font-weight: 800;
  letter-spacing: 1px;
}

.order-success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==========================================================================
   7. MOBILE & DESKTOP COMPONENT EXTENSIONS
   ========================================================================== */

/* Header Start (Back Button + Logo) */
.checkout-header-start {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.checkout-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-platinum);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.checkout-back-btn:hover {
  background: rgba(223, 186, 104, 0.15);
  border-color: var(--gold-border);
  color: var(--gold-light);
}

/* Auth / Guest Banners */
.checkout-auth-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(223, 186, 104, 0.12);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  gap: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.checkout-auth-banner-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.checkout-auth-banner-left i {
  color: var(--gold-light);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.checkout-auth-banner-left span {
  font-size: 0.88rem;
  color: var(--text-white);
  line-height: 1.4;
  word-break: break-word;
}

.checkout-auth-banner-link {
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
  flex-shrink: 0;
}

.checkout-guest-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(15, 26, 54, 0.95), rgba(6, 10, 20, 0.98));
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  box-shadow: 0 0 20px var(--gold-glow);
  width: 100%;
  box-sizing: border-box;
}

.checkout-guest-banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.checkout-guest-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: rgba(223, 186, 104, 0.15);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1rem;
  flex-shrink: 0;
}

.checkout-guest-text {
  min-width: 0;
}

.checkout-guest-text h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.15rem;
}

.checkout-guest-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
}

.checkout-guest-signin-btn {
  white-space: nowrap;
  border-color: var(--gold-border) !important;
  color: var(--gold-light) !important;
  padding: 0.45rem 0.85rem !important;
  font-size: 0.82rem !important;
  flex-shrink: 0;
}

/* Mobile Order Summary Bar Trigger (Hidden on Desktop) */
.mobile-summary-container {
  display: none;
}

.checkout-mobile-summary-bar {
  display: none;
}

/* Mobile Sticky Bottom Action Bar (Hidden on Desktop) */
.checkout-mobile-bottom-bar {
  display: none;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS (TABLETS & MOBILE DEVICES)
   ========================================================================== */

@media (max-width: 992px) {
  .checkout-main-section {
    padding-bottom: 6.5rem; /* Room for sticky bottom bar */
  }

  .checkout-grid-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Natural Mobile Flow: Delivery -> Payment -> Summary & Guarantees */
  .checkout-form-column {
    order: 1;
  }

  .checkout-summary-column {
    position: static;
    order: 2;
    margin-top: 0.5rem;
  }

  .checkout-summary-card {
    padding: 1.25rem;
  }

  /* Show Mobile Summary Accordion Trigger at Top */
  .mobile-summary-container {
    display: block;
    margin-bottom: 1.25rem;
  }

  .checkout-mobile-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(15, 26, 54, 0.95), rgba(8, 13, 26, 0.98));
    border: 1.5px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all var(--transition-fast);
  }

  .checkout-mobile-summary-bar:active {
    background: rgba(223, 186, 104, 0.12);
  }

  .mobile-summary-toggle-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
  }

  .mobile-summary-icon-pill {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(223, 186, 104, 0.18);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
  }

  .mobile-summary-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .mobile-summary-toggle-label {
    color: var(--text-white);
    font-size: 0.88rem;
    font-weight: 700;
  }

  .mobile-summary-count {
    color: var(--gold-light);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
  }

  .mobile-summary-chevron {
    color: var(--gold-light);
    font-size: 0.75rem;
    transition: transform 0.25s ease;
    margin-inline-start: 0.25rem;
  }

  .checkout-mobile-summary-bar.open .mobile-summary-chevron {
    transform: rotate(180deg);
  }

  .mobile-summary-toggle-total {
    font-family: 'Outfit', 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--gold-light);
    white-space: nowrap;
  }

  /* Show Mobile Sticky Bottom Action Bar */
  .checkout-mobile-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(6, 10, 20, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1.5px solid var(--gold-border);
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.75);
    box-sizing: border-box;
  }

  .mobile-bottom-total-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-shrink: 0;
  }

  .mobile-bottom-total-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.2;
  }

  .mobile-bottom-total-val {
    font-family: 'Outfit', 'Cairo', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1.2;
    white-space: nowrap;
  }

  .mobile-bottom-submit-btn {
    flex: 1;
    max-width: 240px;
    background: var(--gold-gradient);
    color: var(--text-dark);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px var(--gold-glow);
    transition: all var(--transition-fast);
  }

  .mobile-bottom-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  .mobile-bottom-submit-btn:active:not(:disabled) {
    transform: scale(0.98);
  }
}

/* ==========================================================================
   9. TOUCH-OPTIMIZED MOBILE PHONES (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
  /* Prevent horizontal scroll & zero out overflow */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  /* Header */
  .checkout-header {
    padding: 0.6rem 0;
  }

  .checkout-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .checkout-brand-img {
    height: 30px;
    width: auto;
  }

  .checkout-back-text {
    display: none; /* Icon only on mobile */
  }

  .checkout-back-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
  }

  .checkout-security-badge {
    font-size: 0.68rem;
    padding: 0.25rem 0.5rem;
    gap: 0.3rem;
    white-space: nowrap;
  }

  .header-selectors-compact {
    gap: 0.35rem !important;
  }

  .header-selectors-compact .top-selector {
    padding: 2px 6px;
  }

  .header-selectors-compact .top-selector select {
    font-size: 0.72rem;
  }

  /* Progress Tracker - 100% Responsive, Never Overflows */
  .checkout-progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 0.75rem 0 1.25rem;
    padding: 0.35rem 0.25rem;
    gap: 0.35rem;
    box-sizing: border-box;
  }

  .checkout-step-item {
    font-size: 0.76rem;
    gap: 0.35rem;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
  }

  .checkout-step-num {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 0.7rem;
  }

  .checkout-step-divider {
    flex: 1;
    min-width: 10px;
    max-width: 32px;
    height: 2px;
  }

  /* Auth / Guest Banners on Mobile */
  .checkout-auth-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
  }

  .checkout-auth-banner-left span {
    font-size: 0.82rem;
  }

  .checkout-auth-banner-link {
    align-self: flex-end;
    font-size: 0.78rem;
  }

  .checkout-guest-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem;
  }

  .checkout-guest-signin-btn {
    align-self: flex-end;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Checkout Cards & Padding */
  .checkout-card {
    padding: 1.1rem 0.9rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-sizing: border-box;
  }

  .checkout-card-header {
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    gap: 0.55rem;
  }

  .checkout-card-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.9rem;
  }

  .checkout-card-title {
    font-size: 1.05rem;
  }

  /* Inputs & iOS Safari 16px font-size zoom prevention */
  .checkout-inputs-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .checkout-field-group {
    gap: 0.35rem;
    min-width: 0;
    width: 100%;
  }

  .checkout-label {
    font-size: 0.82rem;
  }

  .checkout-input,
  .checkout-select,
  .checkout-textarea,
  .custom-dropdown-trigger {
    font-size: 16px !important; /* Critical: Prevents iOS auto-zoom */
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .checkout-field-hint {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  /* Custom Dropdown on Mobile */
  .custom-dropdown-menu {
    max-height: 200px;
    z-index: 1000;
  }

  .custom-dropdown-item {
    padding: 0.7rem 0.85rem;
    font-size: 0.88rem;
  }

  /* Payment Method Radio Cards on Mobile */
  .checkout-payment-methods {
    gap: 0.75rem;
  }

  .payment-method-card {
    padding: 0.95rem;
    border-radius: 10px;
  }

  .payment-method-header {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .payment-method-label-wrap {
    gap: 0.65rem;
    min-width: 0;
    flex: 1 1 200px;
  }

  .payment-title-group {
    min-width: 0;
  }

  .payment-title-main {
    font-size: 0.88rem;
    gap: 0.35rem;
  }

  .payment-badge-pop {
    font-size: 0.64rem;
    padding: 0.1rem 0.45rem;
  }

  .payment-subtitle {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .payment-logos-row {
    margin-inline-start: auto;
  }

  .cliq-info-box {
    padding: 0.75rem;
    font-size: 0.78rem;
  }

  .cliq-alias-row {
    padding: 0.35rem 0.65rem;
  }

  .cliq-alias-val {
    font-size: 1.05rem;
  }

  .cliq-copy-btn {
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
  }

  /* Order Items Row on Mobile */
  .checkout-items-list {
    max-height: 280px;
    margin-bottom: 1rem;
    padding-inline-end: 0.2rem;
  }

  .checkout-item-row {
    padding: 0.65rem;
    border-radius: 8px;
    gap: 0.5rem;
  }

  .checkout-item-top {
    gap: 0.65rem;
    align-items: flex-start;
  }

  .checkout-item-img-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }

  .checkout-item-details {
    min-width: 0;
  }

  .checkout-item-name {
    font-size: 0.84rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
  }

  .checkout-item-meta {
    font-size: 0.72rem;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .checkout-item-custom-tag {
    font-size: 0.68rem;
    padding: 0.1rem 0.35rem;
  }

  .checkout-item-bottom {
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    gap: 0.5rem;
  }

  .checkout-item-controls {
    gap: 0.45rem;
  }

  .checkout-qty-stepper {
    height: 32px;
  }

  .checkout-qty-btn {
    width: 28px;
    height: 32px;
    font-size: 1rem !important;
  }

  .checkout-qty-val {
    min-width: 24px;
    font-size: 0.88rem !important;
  }

  .checkout-item-remove-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem !important;
  }

  .checkout-item-remove-btn i {
    font-size: 0.85rem;
  }

  .checkout-item-price {
    font-size: 0.92rem;
    font-weight: 800;
  }

  /* Coupon Box on Mobile */
  .checkout-coupon-box {
    margin-bottom: 1rem;
  }

  .checkout-coupon-form {
    gap: 0.4rem;
  }

  .checkout-coupon-input {
    font-size: 16px !important;
    padding: 0.6rem 0.75rem;
  }

  .checkout-coupon-btn {
    padding: 0 0.85rem;
    font-size: 0.8rem;
  }

  /* Totals on Mobile */
  .checkout-totals-list {
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-top: 0.65rem;
  }

  .checkout-total-row {
    font-size: 0.85rem;
  }

  .checkout-total-row.grand-total-row {
    font-size: 1.05rem;
    padding-top: 0.55rem;
  }

  .checkout-total-row.grand-total-row .val {
    font-size: 1.15rem;
  }

  /* Static in-page Submit Button on Mobile */
  .checkout-submit-btn {
    padding: 0.85rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  /* Guarantees */
  .checkout-guarantees {
    margin-top: 1rem;
    padding-top: 0.85rem;
    gap: 0.5rem;
  }

  .checkout-guarantee-item {
    font-size: 0.74rem;
    gap: 0.4rem;
  }

  /* Order Success Modal */
  .order-success-modal {
    padding: 1rem;
  }

  .order-success-card {
    padding: 1.5rem 1.15rem;
    border-radius: 14px;
  }

  .success-icon-badge {
    width: 64px;
    height: 64px;
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .order-success-title {
    font-size: 1.35rem;
  }

  .order-success-sub {
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
  }

  .order-receipt-box {
    padding: 1rem;
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
  }
}

/* ==========================================================================
   10. ULTRA-COMPACT SCREENS (max-width: 380px)
   ========================================================================== */

@media (max-width: 380px) {
  .checkout-security-badge span {
    display: none; /* Show lock icon only */
  }

  .checkout-security-badge {
    padding: 0.25rem 0.4rem;
  }

  .checkout-step-item span:not(.checkout-step-num) {
    font-size: 0.68rem;
  }

  .checkout-progress-bar {
    gap: 0.15rem;
  }

  .checkout-step-divider {
    min-width: 8px;
    max-width: 20px;
  }

  .mobile-bottom-total-val {
    font-size: 1rem;
  }

  .mobile-bottom-submit-btn {
    font-size: 0.85rem;
    padding: 0.7rem 0.75rem;
    max-width: 180px;
  }

  .checkout-card {
    padding: 0.95rem 0.75rem;
  }
}
