/* ================================================
   Inner pages: Payment, Dashboard, Policies
   ================================================ */

/* Page wrapper */
.page-wrapper {
  min-height: 100vh;
  background: linear-gradient(to bottom right, var(--color-primary-50), white, var(--color-gold-50));
  padding: 6rem 1rem 3rem;
}
.page-container { max-width: 64rem; margin: 0 auto; }
.page-container.sm { max-width: 32rem; }
.page-container.md { max-width: 48rem; }

.page-header { text-align: center; margin-bottom: 2rem; }
.page-header img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 1rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }
.page-header h1 { font-size: 1.875rem; font-weight: 900; color: var(--color-primary-900); margin-bottom: 0.5rem; }
@media (min-width: 768px) { .page-header h1 { font-size: 2.25rem; } }
.page-header > p { color: #4b5563; }
.page-header .divider { width: 6rem; height: 4px; background: linear-gradient(to left, var(--color-primary-700), var(--color-gold-400)); border-radius: 9999px; margin: 1rem auto 0; }

/* Steps Indicator */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.step {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #e5e7eb;
  color: #6b7280;
  transition: all 0.3s;
}
.step.active { background: var(--color-primary-700); color: white; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.step-num {
  width: 1.75rem; height: 1.75rem;
  background: white;
  color: #6b7280;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}
.step.active .step-num { background: var(--color-gold-400); color: var(--color-primary-900); }
.step-label { font-size: 0.875rem; font-weight: 600; display: none; }
@media (min-width: 640px) { .step-label { display: inline; } }
.step-divider { width: 1.5rem; height: 4px; background: #e5e7eb; border-radius: 4px; margin: 0 0.25rem; }
@media (min-width: 640px) { .step-divider { width: 2rem; } }
.step-divider.active { background: var(--color-primary-700); }

/* Form */
.payment-form {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  border: 1px solid #f3f4f6;
}
@media (min-width: 768px) { .payment-form { padding: 2rem; } }

.form-section-header {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}
.form-section-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}
.form-section-icon.primary { background: var(--color-primary-100); color: var(--color-primary-700); }
.form-section-icon.gold { background: var(--color-gold-100); color: var(--color-gold-700); }
.form-section-icon.blue { background: #dbeafe; color: var(--color-primary-700); }
.form-section-icon svg { width: 1.25rem; height: 1.25rem; }
.form-section-header h2 { font-size: 1.25rem; font-weight: 700; color: var(--color-primary-900); }
.form-section-header p { font-size: 0.75rem; color: #6b7280; }

.form-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }

.payment-form .form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.5rem;
}
.payment-form .form-label .required { color: #ef4444; }
.payment-form .form-input,
.payment-form .form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s;
}
.payment-form .form-input:focus,
.payment-form .form-select:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.payment-form .form-input.readonly { background: var(--color-gold-50); border-color: var(--color-gold-200); cursor: not-allowed; font-weight: 600; color: var(--color-primary-900); }
.amount-input-wrapper { position: relative; }
.amount-symbol {
  position: absolute;
  left: 0.75rem; top: 50%;
  transform: translateY(-50%);
  padding: 0.375rem 0.75rem;
  background: var(--color-gold-100);
  color: var(--color-primary-900);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.btn-next {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to left, var(--color-primary-700), var(--color-primary-800));
  color: white;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
}
.btn-next:hover { background: linear-gradient(to left, var(--color-primary-800), var(--color-primary-900)); box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3); }

.btn-prev {
  padding: 1rem;
  border: 2px solid #e5e7eb;
  color: #374151;
  border-radius: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: all 0.3s;
  background: white;
}
.btn-prev:hover { border-color: var(--color-primary-300); }

.btns-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* Review cards */
.review-card {
  border-radius: 1rem;
  padding: 1.25rem;
  border: 2px solid;
  margin-bottom: 1rem;
  background: linear-gradient(to bottom right, white, white);
}
.review-card.primary { background: linear-gradient(to bottom right, var(--color-primary-50), white); border-color: var(--color-primary-100); }
.review-card.blue { background: linear-gradient(to bottom right, #eff6ff, white); border-color: #dbeafe; }
.review-card.gold { background: linear-gradient(to bottom right, var(--color-gold-50), white); border-color: var(--color-gold-200); }

.review-card-header {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid;
  border-bottom-color: var(--color-primary-100);
}
.review-card-icon {
  width: 2rem; height: 2rem;
  background: var(--color-primary-700);
  color: white;
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
}
.review-card.blue .review-card-icon { background: var(--color-primary-700); }
.review-card.gold .review-card-icon { background: var(--color-gold-500); }
.review-card-title { font-weight: 900; color: var(--color-primary-900); flex: 1; }
.btn-edit {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: white;
  border: 1px solid var(--color-primary-200);
  color: var(--color-primary-700);
  border-radius: 0.5rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 0.25rem;
  transition: background 0.2s;
}
.btn-edit:hover { background: var(--color-primary-50); }
.btn-edit svg { width: 14px; height: 14px; }
.review-card.blue .btn-edit { border-color: #dbeafe; color: #1d4ed8; }
.review-card.blue .btn-edit:hover { background: #eff6ff; }
.review-card.gold .btn-edit { border-color: var(--color-gold-300); color: var(--color-gold-700); }
.review-card.gold .btn-edit:hover { background: var(--color-gold-50); }

.review-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 0.75rem;
}
.review-label { color: #4b5563; font-size: 0.875rem; }
.review-value { font-weight: 900; color: var(--color-primary-900); text-align: left; }

.amount-display {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--color-gold-300);
  margin-top: 0.75rem;
  display: flex; justify-content: space-between; align-items: center;
}
.amount-display.egp {
  background: linear-gradient(to left, #fef2f2, #fff7ed);
  border: 2px solid #fecaca;
  position: relative;
}
.live-badge {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  background: #22c55e;
  color: white;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
}
.live-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.amount-currency {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-gold-600);
}
.amount-display.egp .amount-currency { color: #b91c1c; }
@media (min-width: 768px) { .amount-currency { font-size: 1.875rem; } }
.amount-rate-info {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #fecaca;
  font-size: 0.75rem;
  color: #6b7280;
  display: flex; align-items: center; gap: 0.5rem;
}

.confirm-notice {
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.confirm-notice svg { width: 1.5rem; height: 1.5rem; color: #2563eb; flex-shrink: 0; margin-top: 2px; }
.confirm-notice p:first-of-type { font-weight: 700; color: #1e3a8a; margin-bottom: 0.25rem; }
.confirm-notice p:last-of-type { color: #1d4ed8; font-size: 0.75rem; line-height: 1.7; }

/* Payment methods */
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.payment-method-btn {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 2px solid #e5e7eb;
  background: white;
  transition: all 0.3s;
  cursor: pointer;
}
.payment-method-btn.active.card { border-color: var(--color-primary-700); background: var(--color-primary-50); box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2); }
.payment-method-btn.active.applepay { border-color: #111827; background: #f9fafb; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2); }
.payment-method-btn:hover:not(.active) { border-color: var(--color-primary-300); }
.payment-method-btn:hover.applepay:not(.active) { border-color: #374151; }

.payment-logos { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.payment-logo-card {
  display: flex; align-items: center; justify-content: center;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.visa-logo { color: #1A1F71; font-weight: 900; font-style: italic; font-size: 0.875rem; font-family: Arial; letter-spacing: -0.5px; }
.mastercard-logo {
  display: flex;
  align-items: center;
  position: relative;
}
.mastercard-logo .mc-circle { width: 1rem; height: 1rem; border-radius: 50%; }
.mastercard-logo .mc-red { background: #EB001B; margin-right: -6px; }
.mastercard-logo .mc-yellow { background: #F79E1B; opacity: 0.9; }

.applepay-logo {
  display: inline-flex; align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: #000;
  border-radius: 0.5rem;
  color: white;
}
.applepay-logo svg { width: 1.25rem; height: 1.25rem; }
.applepay-logo span { font-weight: 700; font-size: 0.875rem; }

.payment-method-title { font-weight: 900; font-size: 1rem; color: #111827; }
.payment-method-desc { font-size: 0.75rem; color: #6b7280; margin-top: 0.25rem; }

.applepay-info {
  background: linear-gradient(to bottom right, #f9fafb, white);
  border: 2px solid #111827;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.applepay-icon {
  width: 5rem; height: 5rem;
  background: black;
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
}
.applepay-icon svg { width: 3rem; height: 3rem; color: white; }
.applepay-info h3 { font-weight: 900; color: #111827; margin-bottom: 0.5rem; font-size: 1.125rem; }
.applepay-info p { font-size: 0.875rem; color: #4b5563; margin-bottom: 1rem; line-height: 1.7; }
.applepay-secure-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.security-badge {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.security-badge svg { width: 1.5rem; height: 1.5rem; color: #16a34a; flex-shrink: 0; }
.security-badge p:first-of-type { font-weight: 700; color: #14532d; }
.security-badge p:last-of-type { color: #15803d; font-size: 0.75rem; }

.btn-pay-now {
  padding: 1rem;
  background: linear-gradient(to left, var(--color-gold-400), var(--color-gold-500));
  color: var(--color-primary-900);
  border-radius: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: all 0.3s;
}
.btn-pay-now:hover { background: linear-gradient(to left, var(--color-gold-500), var(--color-gold-600)); box-shadow: 0 10px 15px -3px rgba(250, 204, 21, 0.4); }
.btn-pay-now:disabled { opacity: 0.7; cursor: not-allowed; }

/* Receipt */
.receipt-success-banner {
  background: linear-gradient(to left, #22c55e, #16a34a);
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 1.5rem;
  color: white;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.receipt-success-icon {
  width: 5rem; height: 5rem;
  background: rgba(255,255,255,0.2);
  border: 4px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.75rem;
}
.receipt-success-icon svg { width: 3rem; height: 3rem; color: white; }
.receipt-success-banner h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .receipt-success-banner h2 { font-size: 1.875rem; } }
.receipt-success-banner p { color: rgba(255,255,255,0.9); font-size: 0.875rem; }

.receipt-card {
  background: white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--color-gold-200);
  border-top: none;
}
.receipt-header {
  padding: 1.5rem;
  border-bottom: 2px dashed #e5e7eb;
  text-align: center;
  background: linear-gradient(to bottom, var(--color-primary-50), white);
}
.receipt-header img { width: 6rem; height: 6rem; object-fit: contain; margin: 0 auto 0.75rem; }
.receipt-header h3 { font-size: 1.25rem; font-weight: 900; color: var(--color-primary-900); }
.receipt-header p { font-size: 0.875rem; color: var(--color-gold-600); font-family: 'Amiri', serif; }
.receipt-header-badge {
  margin-top: 1rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: var(--color-primary-700);
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.receipt-body { padding: 1.5rem; }
.receipt-body .review-row {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.receipt-amount-box {
  margin-top: 1.5rem;
  background: linear-gradient(to left, var(--color-primary-700), var(--color-primary-900));
  border-radius: 1rem;
  padding: 1.25rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.receipt-amount-row { display: flex; justify-content: space-between; align-items: center; }
.receipt-amount-label { color: var(--color-gold-300); font-weight: 700; }
.receipt-amount-num { font-size: 1.5rem; font-weight: 900; color: var(--color-gold-300); }
@media (min-width: 768px) { .receipt-amount-num { font-size: 1.875rem; } }
.receipt-amount-divider { border-top: 1px solid rgba(255,255,255,0.2); margin: 0.75rem 0; }
.receipt-egp-row { display: flex; justify-content: space-between; align-items: center; }
.receipt-egp-label { color: rgba(255,255,255,0.8); font-size: 0.875rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.receipt-egp-num { font-size: 1.25rem; font-weight: 900; color: white; }
@media (min-width: 768px) { .receipt-egp-num { font-size: 1.5rem; } }
.receipt-rate { font-size: 0.75rem; color: rgba(255,255,255,0.6); text-align: center; margin-top: 0.25rem; }

.receipt-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed #e5e7eb;
  text-align: center;
}
.receipt-footer h4 { color: var(--color-primary-700); font-weight: 700; font-family: 'Amiri', serif; font-size: 1.25rem; margin-bottom: 0.5rem; }
.receipt-footer p { font-size: 0.75rem; color: #6b7280; }

.receipt-actions { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.receipt-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.btn-share {
  padding: 0.875rem;
  background: linear-gradient(to left, var(--color-primary-700), var(--color-primary-800));
  color: white;
  border-radius: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: all 0.3s;
}
.btn-share:hover { background: linear-gradient(to left, var(--color-primary-800), var(--color-primary-900)); }

.btn-download {
  padding: 0.875rem;
  background: white;
  border: 2px solid var(--color-primary-200);
  color: var(--color-primary-700);
  border-radius: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: all 0.3s;
}
.btn-download:hover { border-color: var(--color-primary-400); background: var(--color-primary-50); }

.btn-home {
  padding: 0.75rem;
  background: var(--color-gold-400);
  color: var(--color-primary-900);
  border-radius: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: background 0.3s;
}
.btn-home:hover { background: var(--color-gold-500); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}
.modal-content {
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  max-width: 28rem;
  width: 100%;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-content.lg { max-width: 42rem; }

.modal-processing {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 22rem;
  text-align: center;
}
.modal-processing-icon {
  width: 5rem; height: 5rem;
  background: linear-gradient(to bottom right, var(--color-primary-700), var(--color-primary-900));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
}
.modal-processing-icon svg { width: 2.5rem; height: 2.5rem; color: white; animation: spin 1s linear infinite; }
.modal-processing h3 { font-size: 1.25rem; font-weight: 900; color: var(--color-primary-900); margin-bottom: 0.5rem; }
.modal-processing p { color: #4b5563; font-size: 0.875rem; margin-bottom: 1rem; }
.modal-secure-tag {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  padding: 0.75rem;
  font-size: 0.75rem;
  color: #1e40af;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}

.modal-failed-header {
  background: linear-gradient(to left, #ef4444, #dc2626);
  padding: 1.5rem;
  color: white;
  text-align: center;
}
.modal-failed-icon {
  width: 5rem; height: 5rem;
  background: rgba(255,255,255,0.2);
  border: 4px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.75rem;
}
.modal-failed-icon svg { width: 3rem; height: 3rem; color: white; }
.modal-failed-header h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 0.5rem; }

.modal-failed-body { padding: 1.5rem; }
.failure-reason-box {
  background: #fef2f2;
  border: 2px solid #fecaca;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.failure-reason-box svg { width: 1.5rem; height: 1.5rem; color: #dc2626; flex-shrink: 0; margin-top: 2px; }
.failure-reason-box .reason-label { font-weight: 900; color: #7f1d1d; margin-bottom: 0.25rem; }
.failure-reason-box .reason-text { color: #b91c1c; font-size: 0.875rem; }

.failure-info {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.failure-info > div { display: flex; justify-content: space-between; font-size: 0.875rem; margin-bottom: 0.5rem; }
.failure-info > div:last-child { margin-bottom: 0; }
.failure-info .label { color: #4b5563; }
.failure-info .value { font-weight: 900; }
.failure-info .value.gold { color: var(--color-gold-600); }
.failure-info .value.mono { font-family: monospace; }

.failure-reassurance {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #1e40af;
}
.failure-reassurance svg { width: 1rem; height: 1rem; color: #2563eb; flex-shrink: 0; margin-top: 2px; }

.modal-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.btn-retry {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(to left, var(--color-primary-700), var(--color-primary-800));
  color: white;
  border-radius: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-retry:hover { background: linear-gradient(to left, var(--color-primary-800), var(--color-primary-900)); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.btn-support {
  width: 100%;
  padding: 0.75rem;
  background: #22c55e;
  color: white;
  border-radius: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-support:hover { background: #16a34a; }
.btn-cancel {
  width: 100%;
  padding: 0.625rem;
  background: transparent;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 700;
}
.btn-cancel:hover { color: #374151; }
.failure-record-note { text-align: center; font-size: 0.75rem; color: #9ca3af; margin-top: 1rem; }

/* ============== POLICY PAGES ============== */
.policy-content { background: white; border-radius: 1.5rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); padding: 2rem 1.5rem; border: 1px solid #f3f4f6; }
@media (min-width: 768px) { .policy-content { padding: 2.5rem; } }
.policy-section { margin-bottom: 1.5rem; color: #374151; line-height: 1.7; }
.policy-section h2 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-primary-900);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-100);
}
@media (min-width: 768px) { .policy-section h2 { font-size: 1.5rem; } }
.policy-section h2 .icon { font-size: 1.5rem; }
.policy-section p { margin-bottom: 0.75rem; }
.policy-section ul { list-style: none; }
.policy-section ul li { display: flex; align-items: flex-start; gap: 0.625rem; margin-bottom: 0.5rem; }
.policy-section ul li::before {
  content: '✓';
  color: var(--color-primary-600);
  font-weight: 700;
  flex-shrink: 0;
}
.policy-section strong { color: var(--color-primary-900); }
.policy-info-box {
  background: linear-gradient(to left, #eff6ff, var(--color-primary-50));
  border: 2px solid #bfdbfe;
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.policy-info-box h4 { font-weight: 900; color: var(--color-primary-900); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.policy-info-box p { font-size: 0.875rem; }
.policy-warning {
  font-size: 0.875rem;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-top: 0.75rem;
}
.policy-contact-footer {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px dashed #e5e7eb;
}
.policy-contact-box {
  background: linear-gradient(to left, var(--color-primary-50), var(--color-gold-50));
  border-radius: 1rem;
  padding: 1.5rem;
}
.policy-contact-box h3 { font-weight: 900; color: var(--color-primary-900); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.policy-contact-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; font-size: 0.875rem; }
@media (min-width: 768px) { .policy-contact-grid { grid-template-columns: 1fr 1fr; } }
.policy-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid;
  transition: border-color 0.2s;
}
.policy-contact-item.green { border-color: #bbf7d0; }
.policy-contact-item.green:hover { border-color: #4ade80; }
.policy-contact-item.gold { border-color: var(--color-gold-200); }
.policy-contact-item.gold:hover { border-color: var(--color-gold-400); }
.policy-contact-item-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.policy-contact-item.green .policy-contact-item-icon { background: #22c55e; }
.policy-contact-item.gold .policy-contact-item-icon { background: var(--color-gold-500); }
.policy-contact-item-icon svg { width: 1.25rem; height: 1.25rem; color: white; }
.policy-contact-item .label { font-size: 0.75rem; color: #6b7280; }
.policy-contact-item .value { font-weight: 700; color: var(--color-primary-900); }

.refund-case {
  border-radius: 1rem;
  padding: 1rem;
  border: 2px solid;
  margin-bottom: 0.75rem;
}
.refund-case.green { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.refund-case.blue { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.refund-case.purple { background: #faf5ff; border-color: #e9d5ff; color: #581c87; }
.refund-case-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.refund-case-num {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  color: white;
}
.refund-case.green .refund-case-num { background: #22c55e; }
.refund-case.blue .refund-case-num { background: #3b82f6; }
.refund-case.purple .refund-case-num { background: #a855f7; }
.refund-case h4 { font-weight: 900; }

.refund-steps-box {
  background: #eff6ff;
  border: 2px solid #bfdbfe;
  border-radius: 1rem;
  padding: 1.25rem;
}
.refund-steps-box h4 { font-weight: 900; color: var(--color-primary-900); margin-bottom: 1rem; }
.refund-step { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; }
.refund-step-num {
  width: 2rem; height: 2rem;
  background: var(--color-primary-700);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
}
.refund-step h5 { font-weight: 900; color: var(--color-primary-900); }
.refund-step p { font-size: 0.875rem; color: #4b5563; }

.refund-no-box {
  background: #fef2f2;
  border: 2px solid #fecaca;
  border-radius: 1rem;
  padding: 1.25rem;
}

.refund-time-box {
  background: var(--color-gold-50);
  border: 2px solid var(--color-gold-200);
  border-radius: 1rem;
  padding: 1.25rem;
}
.refund-time-box h4 { font-weight: 900; color: var(--color-primary-900); margin-bottom: 0.75rem; }
.refund-time-note {
  font-size: 0.75rem;
  color: #4b5563;
  margin-top: 1rem;
  background: white;
  padding: 0.75rem;
  border-radius: 0.5rem;
}

/* ============== DASHBOARD ============== */
.dashboard-bg { min-height: 100vh; background: linear-gradient(to bottom right, #f9fafb, #eff6ff); }

.dash-login-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom right, var(--color-primary-900), var(--color-primary-800), var(--color-primary-900));
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.dash-login-card {
  position: relative;
  z-index: 10;
  max-width: 28rem;
  width: 100%;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  padding: 2rem;
  border: 4px solid var(--color-gold-300);
}
.dash-login-card .login-header { text-align: center; margin-bottom: 1.5rem; }
.dash-login-card .login-header img { width: 6rem; height: 6rem; object-fit: contain; margin: 0 auto 1rem; }
.dash-login-card .login-header h1 { font-size: 1.5rem; font-weight: 900; color: var(--color-primary-900); }
.dash-login-card .login-header p { font-size: 0.875rem; color: #6b7280; }
.dash-login-card .login-divider { width: 4rem; height: 4px; background: linear-gradient(to left, var(--color-primary-700), var(--color-gold-400)); border-radius: 9999px; margin: 0.75rem auto 0; }
.dash-login-card label { display: block; font-size: 0.875rem; font-weight: 700; color: #374151; margin-bottom: 0.5rem; }
.dash-login-card input { width: 100%; padding: 0.875rem 1rem; border: 2px solid #e5e7eb; border-radius: 0.75rem; outline: none; transition: all 0.2s; }
.dash-login-card input:focus { border-color: var(--color-primary-500); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
.dash-login-error { color: #ef4444; font-size: 0.875rem; margin-top: 0.5rem; display: flex; align-items: center; gap: 0.25rem; }
.dash-login-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.875rem;
  background: linear-gradient(to left, var(--color-primary-700), var(--color-primary-800));
  color: white;
  border-radius: 0.75rem;
  font-weight: 700;
  transition: all 0.3s;
}
.dash-login-btn:hover { background: linear-gradient(to left, var(--color-primary-800), var(--color-primary-900)); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.dash-back-link {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.625rem;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 700;
}
.dash-back-link:hover { color: var(--color-primary-700); }
.dash-login-hint {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
}
.dash-login-hint code { font-family: monospace; font-weight: 700; color: #4b5563; }

.dashboard-header {
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  border-bottom: 4px solid var(--color-gold-400);
  position: sticky;
  top: 0;
  z-index: 40;
}
.dashboard-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem;
  flex-wrap: wrap; gap: 1rem;
}
.dashboard-header-logo { display: flex; align-items: center; gap: 0.75rem; }
.dashboard-header-logo img { width: 3rem; height: 3rem; object-fit: contain; }
.dashboard-header-logo h1 { font-size: 1.125rem; font-weight: 900; color: var(--color-primary-900); }
@media (min-width: 640px) { .dashboard-header-logo h1 { font-size: 1.25rem; } }
.dashboard-header-logo p { font-size: 0.75rem; color: #6b7280; }
.dashboard-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.dash-btn-export {
  padding: 0.625rem 1rem;
  background: #22c55e;
  color: white;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex; align-items: center; gap: 0.5rem;
  transition: background 0.3s;
}
.dash-btn-export:hover { background: #16a34a; }
.dash-btn-back {
  padding: 0.625rem 1rem;
  background: var(--color-primary-700);
  color: white;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex; align-items: center; gap: 0.5rem;
  transition: background 0.3s;
}
.dash-btn-back:hover { background: var(--color-primary-800); }
.dash-btn-refresh {
  padding: 0.625rem;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.dash-btn-refresh:hover { background: #dbeafe; }

.dashboard-main { max-width: 80rem; margin: 0 auto; padding: 2rem 1rem; }

.dash-stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .dash-stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .dash-stats-grid { grid-template-columns: repeat(6, 1fr); } }

.dash-stat-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  padding: 1rem;
  border: 1px solid #f3f4f6;
  transition: box-shadow 0.3s;
}
.dash-stat-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.dash-stat-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.dash-stat-icon.green { background: linear-gradient(to bottom right, #22c55e, #16a34a); }
.dash-stat-icon.blue { background: linear-gradient(to bottom right, #3b82f6, #2563eb); }
.dash-stat-icon.emerald { background: linear-gradient(to bottom right, #10b981, #059669); }
.dash-stat-icon.yellow { background: linear-gradient(to bottom right, #eab308, #ca8a04); }
.dash-stat-icon.red { background: linear-gradient(to bottom right, #ef4444, #dc2626); }
.dash-stat-icon.purple { background: linear-gradient(to bottom right, #a855f7, #9333ea); }
.dash-stat-label { font-size: 0.75rem; color: #6b7280; margin-bottom: 0.25rem; }
.dash-stat-value { font-size: 1.25rem; font-weight: 900; color: var(--color-primary-900); }

.dash-insights-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 1024px) { .dash-insights-grid { grid-template-columns: 1fr 1fr; } }

.dash-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  padding: 1.5rem;
  border: 1px solid #f3f4f6;
}
.dash-card h3 { font-weight: 900; color: var(--color-primary-900); display: flex; align-items: center; gap: 0.5rem; }
.dash-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.dash-card-header span:last-child { font-size: 0.75rem; color: #6b7280; }

.country-bar { margin-bottom: 0.75rem; }
.country-bar-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem; }
.country-bar-name { font-size: 0.875rem; font-weight: 700; color: #374151; }
.country-bar-count { font-size: 0.875rem; font-weight: 900; color: var(--color-primary-900); }
.country-bar-bg { height: 0.5rem; background: #f3f4f6; border-radius: 9999px; overflow: hidden; }
.country-bar-fill { height: 100%; background: linear-gradient(to left, #3b82f6, #1d4ed8); border-radius: 9999px; transition: width 0.5s; }

.teacher-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  transition: background 0.2s;
}
.teacher-row:hover { background: var(--color-primary-50); }
.teacher-rank {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.teacher-rank.gold { background: linear-gradient(to bottom right, var(--color-gold-400), var(--color-gold-600)); }
.teacher-rank.silver { background: linear-gradient(to bottom right, #9ca3af, #4b5563); }
.teacher-rank.bronze { background: linear-gradient(to bottom right, #fb923c, #ea580c); }
.teacher-rank.default { background: linear-gradient(to bottom right, #60a5fa, #2563eb); }
.teacher-info { flex: 1; }
.teacher-name { font-weight: 700; color: var(--color-primary-900); font-size: 0.875rem; }
.teacher-count { font-size: 0.75rem; color: #6b7280; }

.dash-filters { background: white; border-radius: 1rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); padding: 1.5rem; border: 1px solid #f3f4f6; margin-bottom: 1.5rem; }
.dash-filters h3 { font-weight: 900; color: var(--color-primary-900); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.dash-filters-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 768px) { .dash-filters-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .dash-filters-grid { grid-template-columns: repeat(4, 1fr); } }
.dash-filters label { display: block; font-size: 0.75rem; font-weight: 700; color: #4b5563; margin-bottom: 0.375rem; }
.dash-filters input, .dash-filters select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  outline: none;
  background: white;
}
.dash-filters input:focus, .dash-filters select:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.dash-filters-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.dash-filters-count { font-size: 0.875rem; color: #4b5563; }
.dash-filters-count span { font-weight: 900; color: var(--color-primary-900); }
.dash-btn-clear-all {
  font-size: 0.75rem; padding: 0.375rem 0.75rem;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 0.25rem;
  transition: background 0.3s;
}
.dash-btn-clear-all:hover { background: #fee2e2; }

.dash-table-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  border: 1px solid #f3f4f6;
  overflow: hidden;
}
.dash-table-header {
  padding: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}
.dash-table-header h3 { font-weight: 900; color: var(--color-primary-900); display: flex; align-items: center; gap: 0.5rem; }
.dash-table-wrap { overflow-x: auto; }
.dash-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.dash-table thead { background: linear-gradient(to left, var(--color-primary-700), var(--color-primary-800)); color: white; }
.dash-table th { padding: 0.75rem 1rem; text-align: right; font-weight: 700; white-space: nowrap; }
.dash-table th:last-child { text-align: center; }
.dash-table tbody tr { border-bottom: 1px solid #f3f4f6; transition: background 0.2s; }
.dash-table tbody tr:hover { background: #eff6ff; }
.dash-table tbody tr:nth-child(even) { background: rgba(249, 250, 251, 0.5); }
.dash-table tbody tr:nth-child(even):hover { background: #eff6ff; }
.dash-table td { padding: 0.75rem 1rem; vertical-align: middle; }
.dash-table .id-cell { font-family: monospace; font-size: 0.75rem; font-weight: 700; color: var(--color-primary-700); }
.dash-table .student-cell { font-weight: 700; color: var(--color-primary-900); }
.dash-table .country-tag {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.dash-table .amount-cell { font-weight: 900; color: var(--color-gold-600); }
.dash-table .date-cell { font-size: 0.75rem; color: #4b5563; white-space: nowrap; }
.dash-table .date-cell .time { color: #9ca3af; }

.status-badge {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid;
}
.status-badge.completed { background: #d1fae5; color: #15803d; border-color: #86efac; }
.status-badge.pending { background: #fef3c7; color: #b45309; border-color: #fcd34d; }
.status-badge.failed { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }

.dash-actions-cell { display: flex; align-items: center; justify-content: center; gap: 0.25rem; }
.dash-action-btn {
  padding: 0.375rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.dash-action-btn svg { width: 16px; height: 16px; }
.dash-action-btn.view { background: #eff6ff; color: #1d4ed8; }
.dash-action-btn.view:hover { background: #dbeafe; }
.dash-action-btn.whatsapp { background: #f0fdf4; color: #15803d; }
.dash-action-btn.whatsapp:hover { background: #dcfce7; }
.dash-action-btn.delete { background: #fef2f2; color: #b91c1c; }
.dash-action-btn.delete:hover { background: #fee2e2; }

.dash-table-footer {
  padding: 1rem;
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
}
.dash-table-footer span { font-weight: 700; color: var(--color-primary-700); }
.dash-table-empty { padding: 3rem; text-align: center; color: #9ca3af; }
.dash-table-empty .icon { font-size: 3rem; margin-bottom: 0.75rem; }
.dash-table-empty p { font-weight: 700; }

/* Payment Method Logos in table */
.pm-logo-wrapper { display: inline-flex; align-items: center; gap: 0.5rem; }
.pm-logo {
  display: flex; align-items: center; justify-content: center;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  padding: 0.125rem 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  height: 22px;
  min-width: 48px;
}
.pm-logo.applepay { background: black; border-color: black; padding: 0.25rem 0.5rem; gap: 0.25rem; }
.pm-logo.applepay svg { width: 14px; height: 14px; color: white; }
.pm-logo.applepay span { color: white; font-weight: 700; font-size: 0.875rem; }
.pm-last4 { font-size: 0.75rem; color: #6b7280; font-family: monospace; }

/* Receipt modal in dashboard */
.dash-modal-receipt {
  background: linear-gradient(to bottom, #eff6ff, white);
  border-radius: 1rem;
  border: 2px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}
.dash-receipt-bar { height: 8px; background: linear-gradient(to left, var(--color-primary-700), var(--color-gold-400), var(--color-primary-700)); }

.dash-receipt-status {
  padding: 1rem 1.5rem;
  text-align: center;
  border-bottom: 2px dashed #e5e7eb;
}
.dash-receipt-status img { width: 5rem; height: 5rem; object-fit: contain; margin: 0 auto 0.75rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }
.dash-receipt-status h3 { font-size: 1.125rem; font-weight: 900; color: var(--color-primary-900); }
.dash-receipt-status p { font-size: 0.875rem; color: var(--color-gold-600); font-family: 'Amiri', serif; }

.dash-status-badge-big {
  margin-top: 1rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 900;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.dash-status-badge-big.completed { background: linear-gradient(to left, #22c55e, #16a34a); }
.dash-status-badge-big.failed { background: linear-gradient(to left, #ef4444, #dc2626); }
.dash-status-badge-big.pending { background: linear-gradient(to left, #eab308, #ca8a04); }
.dash-receipt-status h4 { margin-top: 1rem; font-size: 1.125rem; font-weight: 900; color: var(--color-primary-900); }

.dash-receipt-modal-tip {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.dash-receipt-modal-tip svg { width: 1rem; height: 1rem; color: #2563eb; flex-shrink: 0; margin-top: 2px; }
.dash-receipt-modal-tip p { font-size: 0.75rem; color: #1e40af; }

.modal-top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  position: sticky;
  top: 0;
  background: white;
  border-radius: 1.5rem 1.5rem 0 0;
  z-index: 10;
}
.modal-top-bar h3 { font-weight: 900; color: var(--color-primary-900); display: flex; align-items: center; gap: 0.5rem; }
.modal-close-btn {
  padding: 0.5rem;
  background: #f3f4f6;
  color: #374151;
  border-radius: 0.5rem;
  transition: background 0.2s;
}
.modal-close-btn:hover { background: #e5e7eb; }
.modal-close-btn svg { width: 1.25rem; height: 1.25rem; }
