/* ==========================================================================
   PAWAN SINGH RAGHUVANSHI (PSR) - PAYMENT GATEWAY LUXURY DESIGN SYSTEM
   Isolated, High-Conversion, Responsive Checkout Stylesheet
   ========================================================================== */

:root {
  --gold-primary: #b79f71;
  --gold-light: #d5b96a;
  --gold-dark: #8c7347;
  --gold-glow: rgba(213, 185, 106, 0.3);
  --obsidian-dark: #141210;
  --obsidian-card: #1c1916;
  --obsidian-surface: #25211c;
  --parchment-light: #fbf9f6;
  --parchment-bg: #f4ede2;
  --parchment-border: #e8dfcf;
  --text-primary: #1a1612;
  --text-muted: #6b635b;
  --text-subtle: #948c82;
  --success-green: #27ae60;
  --success-bg: #eafaf1;
  --error-red: #e74c3c;
  --error-bg: #fdf2f0;
  --card-radius: 14px;
  --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset for Hidden State */
.hidden {
  display: none !important;
}

@media (min-width: 992px) {
  html {
    zoom: 0.9;
  }
}

@media (max-width: 991px) {
  html {
    zoom: 1 !important;
    overflow-x: hidden;
  }
  body.payment-page {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
}

/* Page Background */
body.payment-page {
  background: radial-gradient(circle at 10% 20%, #fbf9f6 0%, #f4ede2 60%, #eae1d2 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Checkout Main Container */
.checkout-main-wrapper {
  padding-top: 100px;
  padding-bottom: 70px;
  min-height: calc(100vh - 100px);
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.checkout-header {
  text-align: center;
  padding: 10px 20px 35px;
}

.checkout-header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.checkout-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(183, 159, 113, 0.12);
  border: 1px solid rgba(183, 159, 113, 0.35);
  color: #7a633a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.checkout-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--obsidian-dark);
  margin: 0 0 10px;
  line-height: 1.25;
}

.text-gradient {
  background: linear-gradient(135deg, #1a1612 0%, #b79f71 60%, #8c7347 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.checkout-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   2-COLUMN DESKTOP CHECKOUT GRID
   ========================================================================== */
.checkout-grid-section {
  width: 100%;
}

.checkout-grid-container {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 32px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

/* ==========================================================================
   LEFT COLUMN: PAYMENT CARD FRAME
   ========================================================================== */
.payment-card-frame {
  background: #ffffff;
  border-radius: var(--card-radius);
  border: 1px solid rgba(183, 159, 113, 0.28);
  box-shadow: 0 12px 40px rgba(26, 22, 18, 0.06);
  overflow: hidden;
  transition: var(--transition-smooth);
}

/* Payment Methods Tabs */
.payment-methods-tabs {
  display: flex;
  background: #fbf9f6;
  border-bottom: 1px solid var(--parchment-border);
}

.tab-btn {
  flex: 1;
  padding: 16px 14px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  position: relative;
  outline: none;
}

.tab-btn-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn-content i {
  font-size: 1.05rem;
}

.tab-btn:hover {
  background: rgba(183, 159, 113, 0.05);
  color: var(--obsidian-dark);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--gold-dark);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
}

.tab-badge-active {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #27ae60;
  background: #eafaf1;
  padding: 2px 8px;
  border-radius: 12px;
}

.tab-badge-locked {
  font-size: 0.68rem;
  font-weight: 600;
  color: #8c7347;
  background: #fdf6e7;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(183, 159, 113, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tab-btn.tab-locked {
  opacity: 0.75;
}

.tab-btn.tab-locked:hover {
  opacity: 1;
}

/* Tab Panels Content */
.payment-methods-content {
  padding: 30px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: tabFadeIn 0.3s ease;
}

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

/* ==========================================================================
   UPI PAYMENT CONSOLE (ACTIVE STEP 1)
   ========================================================================== */
.upi-console-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Mobile Return Banner */
.mobile-return-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #fefbf4 0%, #f9f2e3 100%);
  border: 1.5px solid var(--gold-light);
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 4px 16px rgba(213, 185, 106, 0.2);
  animation: pulseGold 2s infinite ease-in-out;
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(213, 185, 106, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(213, 185, 106, 0); }
}

.banner-icon {
  font-size: 1.5rem;
  color: var(--gold-dark);
  flex-shrink: 0;
}

.banner-body {
  flex: 1;
}

.banner-body strong {
  display: block;
  font-size: 0.92rem;
  color: var(--obsidian-dark);
}

.banner-body p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.banner-action-btn {
  background: var(--obsidian-dark);
  color: var(--gold-light);
  border: 1px solid var(--gold-light);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.banner-action-btn:hover {
  background: var(--gold-light);
  color: var(--obsidian-dark);
}

/* Step Header */
.console-step-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--obsidian-dark), #2d261e);
  color: var(--gold-light);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(213, 185, 106, 0.4);
  flex-shrink: 0;
}

.step-num {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.step-of {
  font-size: 0.65rem;
  opacity: 0.8;
}

.step-text h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: var(--obsidian-dark);
  font-weight: 600;
}

.step-text p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* QR & UPI Details Flex Card */
.upi-qr-display-wrapper {
  display: flex;
  gap: 24px;
  align-items: center;
  background: #fbf9f6;
  border: 1px solid var(--parchment-border);
  border-radius: 12px;
  padding: 22px;
}

.qr-container-card {
  flex-shrink: 0;
  text-align: center;
}

.qr-box {
  width: 200px;
  height: 200px;
  padding: 10px;
  background: #ffffff;
  border: 2px solid var(--parchment-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.qr-box img,
.qr-box canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.qr-amount-tag {
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid rgba(183, 159, 113, 0.35);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.qr-amount-tag strong {
  color: var(--gold-dark);
  font-size: 1rem;
}

.upi-details-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.upi-id-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.upi-id-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid rgba(183, 159, 113, 0.4);
  padding: 10px 14px;
  border-radius: 8px;
}

.upi-text {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--obsidian-dark);
  word-break: break-all;
}

.copy-btn {
  background: var(--obsidian-dark);
  color: #ffffff;
  border: 1px solid rgba(213, 185, 106, 0.4);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--gold-light);
  color: var(--obsidian-dark);
}

.copy-btn.copied {
  background: var(--success-green);
  border-color: var(--success-green);
  color: #ffffff;
}

.btn-upi-deeplink {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #1a1612 0%, #2f271f 100%);
  color: var(--gold-light);
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(213, 185, 106, 0.45);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
}

.btn-upi-deeplink:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  color: var(--obsidian-dark);
  box-shadow: 0 6px 20px var(--gold-glow);
}

.deeplink-hint {
  font-size: 0.76rem;
  color: var(--text-subtle);
  margin: 5px 0 0;
  line-height: 1.35;
}

.supported-upi-apps {
  margin-top: 4px;
}

.apps-heading {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.apps-grid {
  display: flex;
  align-items: center;
  gap: 14px;
}

.apps-grid img {
  height: 20px;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.apps-grid img:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Completion CTA Section */
.completion-cta-card {
  text-align: center;
  padding-top: 6px;
}

.cta-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
}

.cta-divider::before,
.cta-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--parchment-border);
}

.cta-divider span {
  padding: 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-subtle);
}

.payment-btn {
  width: 100%;
  padding: 16px 22px;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.primary-glow-btn {
  background: linear-gradient(135deg, #1a1612 0%, #2f271f 100%);
  border: 1px solid var(--gold-light);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(213, 185, 106, 0.25);
}

.primary-glow-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  color: var(--obsidian-dark);
  box-shadow: 0 10px 30px rgba(213, 185, 106, 0.45);
}

.cta-explainer {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 10px 0 0;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cta-explainer i {
  color: var(--gold-dark);
}

/* ==========================================================================
   LOCKED METHODS PANELS (CARD & NET BANKING)
   ========================================================================== */
.locked-method-panel {
  text-align: center;
  padding: 30px 20px;
  max-width: 480px;
  margin: 0 auto;
}

.locked-icon-wrap {
  width: 60px;
  height: 60px;
  background: #fdf6e7;
  border: 1px solid rgba(183, 159, 113, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--gold-dark);
  font-size: 1.5rem;
}

.locked-method-panel h3 {
  font-size: 1.3rem;
  color: var(--obsidian-dark);
  margin: 0 0 10px;
}

.locked-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
}

.btn-switch-to-upi {
  background: var(--obsidian-dark);
  color: var(--gold-light);
  border: 1px solid var(--gold-light);
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-switch-to-upi:hover {
  background: var(--gold-light);
  color: var(--obsidian-dark);
}

.locked-card-preview,
.locked-bank-preview {
  margin-top: 25px;
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(1);
}

.card-icons-muted {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.disabled-inputs-ghost {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  margin: 0 auto;
}

.ghost-field {
  background: #f0f0f0;
  border: 1px dashed #ccc;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #888;
}

.ghost-row {
  display: flex;
  gap: 10px;
}

.ghost-field.half {
  flex: 1;
}

.locked-bank-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 360px;
  margin: 25px auto 0;
}

.bank-pill-muted {
  background: #f0f0f0;
  border: 1px solid #ddd;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #777;
}

/* Trust & Security Strip */
.payment-security-footer {
  border-top: 1px solid var(--parchment-border);
  background: #fdfcf9;
  padding: 16px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.secure-badge i {
  color: var(--success-green);
  font-size: 1rem;
}

.payment-partners-mini {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.payment-partners-mini img {
  height: 18px;
  max-width: 100%;
  opacity: 0.7;
}

/* ==========================================================================
   RIGHT COLUMN: DETAILED ORDER SUMMARY
   ========================================================================== */
.checkout-summary-col {
  position: relative;
}

.summary-card-sticky {
  position: sticky;
  top: 90px;
  background: #ffffff;
  border-radius: var(--card-radius);
  border: 1px solid rgba(183, 159, 113, 0.28);
  box-shadow: 0 12px 40px rgba(26, 22, 18, 0.06);
  overflow: hidden;
}

.summary-accordion-toggle {
  display: none; /* Desktop hidden, mobile shown */
  width: 100%;
  padding: 16px 20px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--parchment-border);
}

.summary-card-body {
  padding: 26px;
}

.summary-header {
  margin-bottom: 20px;
}

.summary-header-badge {
  display: inline-block;
  background: #fdf6e7;
  color: var(--gold-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(183, 159, 113, 0.3);
  margin-bottom: 8px;
}

.summary-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  color: var(--obsidian-dark);
  margin: 0 0 4px;
}

.summary-program-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Candidate Bar */
.candidate-summary-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fbf9f6;
  border: 1px solid var(--parchment-border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 20px;
}

.candidate-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--obsidian-dark);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.candidate-info {
  display: flex;
  flex-direction: column;
}

.candidate-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 600;
}

.candidate-info strong {
  font-size: 0.88rem;
  color: var(--obsidian-dark);
}

.candidate-info small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Value Stack */
.summary-value-stack {
  margin-bottom: 22px;
}

.stack-heading {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-subtle);
  margin-bottom: 10px;
}

.stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stack-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.stack-list li i {
  color: var(--success-green);
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.summary-divider {
  height: 1px;
  background: var(--parchment-border);
  margin: 18px 0;
}

/* Pricing Table */
.pricing-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.row-val.strikethrough {
  text-decoration: line-through;
  color: var(--text-subtle);
}

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

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

.discount-pill {
  background: #eafaf1;
  color: var(--success-green);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.discount-val {
  font-weight: 600;
}

.free-badge {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  background: #fdf6e7;
  padding: 2px 8px;
  border-radius: 4px;
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 2px dashed var(--parchment-border);
  padding-top: 14px;
  margin-top: 6px;
}

.total-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--obsidian-dark);
}

.total-taxes {
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.total-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--gold-dark);
}

.total-currency {
  font-size: 1.15rem;
  font-weight: 600;
}

.total-number {
  font-size: 1.7rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
}

.summary-reassurance {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reassurance-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-subtle);
}

.reassurance-item i {
  color: var(--gold-dark);
}

/* ==========================================================================
   STEP 2: TRANSACTION PROOF MODAL
   ========================================================================== */
.checkout-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 15, 12, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 10000;
  padding: 24px 16px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.28s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.checkout-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.checkout-modal-card {
  background: #ffffff;
  border-radius: var(--card-radius);
  border: 1px solid rgba(183, 159, 113, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  width: 100%;
  margin: auto;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 34px 30px;
  position: relative;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.checkout-modal-overlay.active .checkout-modal-card {
  transform: translateY(0) scale(1);
}

/* Proof Modal Horizontal 2-Column Grid on Desktop */
.proof-modal-card {
  max-width: 740px;
}

.proof-modal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  background: #fbf9f6;
  border: 1px solid var(--parchment-border);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: #fdf2f0;
  color: var(--error-red);
  border-color: rgba(231, 76, 60, 0.3);
}

.proof-modal-header {
  margin-bottom: 24px;
}

.step-badge-gold {
  display: inline-block;
  background: linear-gradient(135deg, var(--obsidian-dark), #333);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid rgba(213, 185, 106, 0.3);
}

.proof-modal-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  color: var(--obsidian-dark);
  margin: 0 0 6px;
}

.proof-modal-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

/* Modal Form Controls */
.verification-form .form-group {
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--obsidian-dark);
  margin-bottom: 8px;
}

.field-label.required::after {
  content: ' *';
  color: var(--error-red);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 15px;
  color: var(--text-subtle);
  font-size: 1rem;
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1.5px solid var(--parchment-border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--obsidian-dark);
  outline: none;
  background: #fbf9f6;
  transition: var(--transition-smooth);
}

.input-with-icon input:focus {
  border-color: var(--gold-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(183, 159, 113, 0.15);
}

.field-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: var(--text-subtle);
  margin-top: 6px;
}

.error-message {
  display: block;
  color: var(--error-red);
  font-size: 0.78rem;
  margin-top: 5px;
  min-height: 16px;
}

/* File Upload Dropzone */
.file-input-hidden {
  display: none;
}

.screenshot-dropzone {
  border: 2px dashed rgba(183, 159, 113, 0.45);
  border-radius: 10px;
  padding: 24px 18px;
  text-align: center;
  background: #fbf9f6;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.screenshot-dropzone:hover,
.screenshot-dropzone.drag-active {
  border-color: var(--gold-light);
  background: #f7f3ec;
  box-shadow: 0 0 15px rgba(213, 185, 106, 0.15);
}

.dropzone-icon-circle {
  width: 48px;
  height: 48px;
  background: #f4ede2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--gold-dark);
  font-size: 1.3rem;
}

.dropzone-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--obsidian-dark);
  margin: 0 0 4px;
}

.dropzone-sub {
  font-size: 0.76rem;
  color: var(--text-subtle);
}

/* Genuine Preview State (Visible only after valid upload) */
.screenshot-preview-container {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.screenshot-preview-container img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--parchment-border);
}

.preview-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#preview-filename {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--obsidian-dark);
  word-break: break-all;
}

#preview-filesize {
  font-size: 0.78rem;
  color: var(--success-green);
  font-weight: 500;
}

.btn-remove-preview {
  background: var(--error-bg);
  color: var(--error-red);
  border: 1px solid rgba(231, 76, 60, 0.25);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  transition: var(--transition-smooth);
}

.btn-remove-preview:hover {
  background: var(--error-red);
  color: #ffffff;
}

.proof-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.btn-secondary-cancel {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px;
  transition: var(--transition-smooth);
}

.btn-secondary-cancel:hover {
  color: var(--obsidian-dark);
}

/* ==========================================================================
   PROCESSING SPINNER MODAL
   ========================================================================== */
.processing-card {
  text-align: center;
  max-width: 440px;
  padding: 40px 30px;
}

.processing-spinner-wrap {
  margin-bottom: 20px;
}

.payment-loader {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(183, 159, 113, 0.2);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  margin: 0 auto;
  animation: spinLoader 0.9s linear infinite;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

.processing-card h3 {
  font-size: 1.25rem;
  color: var(--obsidian-dark);
  margin: 0 0 8px;
}

.processing-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================================
   STREAMLINED SUCCESS & VERIFICATION MODAL
   ========================================================================== */
.success-receipt-card {
  max-width: 880px;
  padding: 30px 28px;
}

.success-modal-horizontal-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.success-col-info {
  display: flex;
  flex-direction: column;
}

.success-col-receipt {
  display: flex;
  flex-direction: column;
}

.success-hero-header {
  text-align: left;
  margin-bottom: 16px;
}

.success-checkmark-glow {
  font-size: 2.6rem;
  color: var(--success-green);
  margin-bottom: 6px;
  animation: bounceCheck 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceCheck {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-hero-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--obsidian-dark);
  margin: 0 0 8px;
}

.status-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdf6e7;
  color: var(--gold-dark);
  border: 1px solid rgba(183, 159, 113, 0.35);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.verification-notice-card {
  display: flex;
  gap: 14px;
  background: #fcf9f3;
  border-left: 4px solid var(--gold-light);
  border: 1px solid rgba(213, 185, 106, 0.3);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 22px;
}

.notice-icon {
  font-size: 1.3rem;
  color: var(--gold-dark);
  margin-top: 2px;
  flex-shrink: 0;
}

.notice-body h4 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  color: var(--obsidian-dark);
}

.notice-body p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Official Receipt Sheet */
.invoice-receipt-sheet {
  background: #fbf9f6;
  border: 1px solid var(--parchment-border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 22px;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.receipt-brand h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin: 0;
  color: var(--obsidian-dark);
}

.receipt-brand p {
  font-size: 0.76rem;
  color: var(--text-subtle);
  margin: 2px 0 0;
}

.receipt-id-date {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.receipt-code {
  font-family: monospace;
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 0.85rem;
}

.receipt-date-time {
  font-size: 0.74rem;
  color: var(--text-subtle);
  margin-top: 2px;
}

.receipt-divider {
  height: 1px;
  background: var(--parchment-border);
  margin: 14px 0;
}

.receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 0.84rem;
}

.receipt-cell {
  display: flex;
  flex-direction: column;
}

.receipt-cell.full-width {
  grid-column: span 2;
}

.cell-label {
  font-size: 0.72rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.utr-code {
  font-family: monospace;
  font-weight: 700;
  background: #f0eae0;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--obsidian-dark);
  width: fit-content;
}

.receipt-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--obsidian-dark);
}

.receipt-total-highlight {
  font-size: 1.25rem;
  color: var(--gold-dark);
}

.receipt-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.btn-print {
  background: var(--obsidian-dark);
  color: #ffffff;
  border: 1px solid var(--gold-light);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-print:hover {
  background: var(--gold-light);
  color: var(--obsidian-dark);
}

.btn-home {
  background: #fbf9f6;
  color: var(--obsidian-dark);
  border: 1px solid var(--parchment-border);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-home:hover {
  background: #f0eae0;
}

/* ==========================================================================
   FLOATING TOAST NOTIFICATION
   ========================================================================== */
.payment-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: var(--obsidian-dark);
  color: #ffffff;
  border: 1px solid var(--gold-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100000;
  animation: toastSlideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toastSlideUp {
  from { transform: translateX(-50%) translateY(30px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ========================================================================== */
@media (max-width: 991px) {
  .checkout-grid-container {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }

  .checkout-main-col {
    order: 2; /* Payment methods main focus */
  }

  .checkout-summary-col {
    order: 1; /* Order summary on top */
  }

  .summary-card-sticky {
    position: static;
  }

  /* Accordion Mode on Mobile */
  .summary-accordion-toggle {
    display: flex;
  }

  .toggle-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--obsidian-dark);
    font-size: 0.95rem;
  }

  .toggle-pill {
    background: #fdf6e7;
    color: var(--gold-dark);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(183, 159, 113, 0.3);
  }

  .toggle-arrow {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.28s ease;
  }

  .summary-accordion-toggle.expanded .toggle-arrow {
    transform: rotate(180deg);
  }

  .summary-card-body {
    display: none; /* Collapsed by default on mobile to save vertical space */
    border-top: 1px solid var(--parchment-border);
  }

  .summary-card-body.open {
    display: block;
    animation: accordionSlide 0.25s ease;
  }

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

@media (max-width: 680px) {
  .checkout-header {
    padding: 10px 15px 25px;
  }

  .checkout-title {
    font-size: 1.75rem;
  }

  .checkout-grid-container {
    padding: 0 12px;
  }

  .checkout-main-col,
  .checkout-summary-col,
  .payment-card-frame {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .payment-methods-tabs {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .payment-methods-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 4px;
    gap: 4px;
  }

  .tab-btn-content {
    gap: 4px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .tab-btn-content i {
    font-size: 0.88rem;
  }

  .tab-btn-content span {
    font-size: 0.74rem;
  }

  .tab-badge-active,
  .tab-badge-locked {
    font-size: 0.58rem;
    padding: 2px 4px;
    white-space: nowrap;
  }

  .upi-console-wrap,
  .console-step-header,
  .step-text,
  .upi-qr-display-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .payment-methods-content {
    padding: 20px 14px;
  }

  .upi-qr-display-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 18px 14px;
  }

  .qr-box {
    width: 185px;
    height: 185px;
  }

  .upi-details-card {
    width: 100%;
    text-align: center;
  }

  .upi-id-copy-box {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .btn-upi-deeplink {
    font-size: 0.85rem;
    padding: 12px 14px;
  }

  .apps-grid {
    justify-content: center;
  }

  .payment-security-footer {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 14px 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .secure-badge {
    justify-content: center;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.4;
    flex-wrap: wrap;
    width: 100%;
  }

  .payment-partners-mini {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    max-width: 100%;
  }

  .payment-partners-mini img {
    height: 15px;
  }

  .proof-modal-card {
    max-width: 100%;
    padding: 22px 16px;
  }

  .proof-modal-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .success-receipt-card {
    max-width: 100%;
    padding: 22px 16px;
  }

  .success-modal-horizontal-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .success-hero-header {
    text-align: center;
  }

  .checkout-modal-card {
    padding: 24px 16px;
    max-height: 88vh;
  }

  .receipt-grid {
    grid-template-columns: 1fr;
  }

  .receipt-cell.full-width {
    grid-column: span 1;
  }

  .receipt-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .btn-print,
  .btn-home {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   PRINT MEDIA STYLES
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }

  #payment-success-modal,
  #payment-success-modal * {
    visibility: visible;
  }

  #payment-success-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: transparent;
    padding: 0;
  }

  .receipt-actions,
  .verification-notice-card,
  .success-hero-header {
    display: none !important;
  }

  .invoice-receipt-sheet {
    border: 1px solid #000;
    box-shadow: none;
    margin: 0;
  }
}