/* ==========================================================================
   KiddoPlay Arcade - Egyptian Fintech & Subscription Styling
   ========================================================================== */

/* ── Top Bar Actions ── */
.trial-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.trial-timer-pill:hover {
  background: #fee2e2;
  transform: translateY(-1px);
}

.trial-timer-pill.is-subscriber {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

.trial-timer-pill .timer-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulseDot 1.4s infinite;
}

.trial-timer-pill.is-subscriber .timer-pulse-dot {
  background: #10b981;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.btn-vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-vip-badge:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
}

.btn-auth-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-auth-user:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.btn-auth-user img.user-avatar-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

/* ── Modal Overlay ── */
.kiddo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000000;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.kiddo-payment-modal {
  background: #ffffff;
  color: #0f172a;
  border-radius: 26px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(226, 232, 240, 0.8);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.96) translateY(14px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Modal Header */
.kiddo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.kiddo-modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.kiddo-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.kiddo-modal-title-group h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.kiddo-modal-title-group p {
  margin: 2px 0 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.kiddo-modal-close {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.kiddo-modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

/* Modal Body */
.kiddo-modal-body {
  padding: 1.5rem 1.75rem 2rem 1.75rem;
}

/* Plan Hero Card */
.kiddo-plan-card {
  background: linear-gradient(145deg, #fffbeb, #fef3c7);
  border: 2px solid #fde68a;
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.kiddo-plan-badge-popular {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[dir="rtl"] .kiddo-plan-badge-popular {
  right: auto;
  left: 14px;
}

.kiddo-plan-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.kiddo-plan-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #78350f;
  margin: 0;
}

.kiddo-plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.kiddo-price-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: #b45309;
}

.kiddo-price-discounted {
  color: #059669;
}

.kiddo-price-old {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 1.1rem;
}

.kiddo-price-currency {
  font-size: 0.95rem;
  font-weight: 800;
  color: #78350f;
}

.kiddo-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kiddo-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #451a03;
}

.kiddo-features-list li svg {
  flex-shrink: 0;
  color: #10b981;
}

/* Extra Devices Stepper (1 link free for 5 persons, +50 EGP each extra) */
.kiddo-devices-sharing-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.kiddo-devices-info h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.kiddo-devices-info p {
  margin: 4px 0 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

.kiddo-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  padding: 3px 8px;
}

.kiddo-step-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.kiddo-step-btn:hover:not(:disabled) {
  background: #e2e8f0;
}

.kiddo-step-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.kiddo-step-count {
  font-weight: 800;
  font-size: 0.95rem;
  min-width: 45px;
  text-align: center;
  color: #0f172a;
}

/* Referral Code Section (Student discount 50 EGP & Teacher 50 EGP) */
.kiddo-referral-card {
  background: #f0fdf4;
  border: 1.5px dashed #86efac;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.kiddo-referral-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.kiddo-referral-title h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #166534;
}

.kiddo-referral-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.kiddo-referral-input {
  flex: 1;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1.5px solid #bbf7d0;
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  color: #14532d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kiddo-referral-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.kiddo-btn-apply-code {
  padding: 8px 18px;
  border-radius: 12px;
  background: #16a34a;
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s;
}

.kiddo-btn-apply-code:hover {
  background: #15803d;
}

.kiddo-ref-status-msg {
  font-size: 0.8rem;
  margin-top: 6px;
  font-weight: 700;
}

.kiddo-ref-status-msg.success { color: #15803d; }
.kiddo-ref-status-msg.error { color: #dc2626; }

/* Referral Sharing Banner (For Subscribed Teachers & Parents) */
.kiddo-referral-share-box {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.kiddo-ref-code-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid #93c5fd;
  font-weight: 800;
  color: #1e40af;
  font-size: 0.95rem;
}

/* Payment Methods (InstaPay & Wallets) */
.kiddo-methods-header {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
}

.kiddo-methods-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.kiddo-method-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  font-weight: 800;
  font-size: 0.86rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.kiddo-method-tab img {
  height: 22px;
  object-fit: contain;
}

.kiddo-method-tab.active {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.kiddo-account-details-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.kiddo-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #edf2f7;
}

.kiddo-account-row:last-child {
  border-bottom: none;
}

.kiddo-account-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}

.kiddo-account-val {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.92rem;
  color: #0f172a;
  direction: ltr;
}

.kiddo-copy-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.kiddo-copy-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.kiddo-copy-btn.copied {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

/* Upload Receipt Zone */
.kiddo-upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 18px;
  padding: 1.5rem 1rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.kiddo-upload-dropzone:hover {
  border-color: #f59e0b;
  background: #fffdf5;
}

.kiddo-upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.kiddo-upload-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.kiddo-upload-prompt {
  font-weight: 800;
  font-size: 0.92rem;
  color: #1e293b;
  margin: 0;
}

.kiddo-upload-subtext {
  font-size: 0.78rem;
  color: #64748b;
  margin: 4px 0 0 0;
}

/* Receipt Preview & Audit Status */
.kiddo-receipt-preview-wrap {
  margin-top: 1rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  position: relative;
  max-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.kiddo-receipt-preview-wrap img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.kiddo-audit-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  margin-top: 12px;
  font-weight: 700;
  font-size: 0.84rem;
}

.kiddo-audit-badge.scanning {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.kiddo-audit-badge.verified {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.kiddo-audit-badge.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.kiddo-btn-confirm-pay {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  border: none;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 14px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.kiddo-btn-confirm-pay:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4);
}

.kiddo-btn-confirm-pay:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #94a3b8;
  box-shadow: none;
}

/* ── Fullscreen Paywall Overlay (When 10 Minutes Expire) ── */
.kiddo-paywall-screen {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999990;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease-out;
}

.kiddo-paywall-box {
  background: #ffffff;
  border-radius: 28px;
  max-width: 550px;
  width: 100%;
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.kiddo-paywall-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.kiddo-paywall-icon-big {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.25rem auto;
  border-radius: 22px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.35);
  animation: pulseDot 2.2s infinite;
}

.kiddo-paywall-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.kiddo-paywall-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
}

.kiddo-paywall-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 1.25rem;
  text-align: start;
}

.kiddo-paywall-feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.kiddo-paywall-feat-item:hover {
  transform: translateY(-1px);
}

.kiddo-paywall-feat-item.feat-games {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.kiddo-paywall-feat-item.feat-games svg {
  color: #2563eb;
}

.kiddo-paywall-feat-item.feat-referral {
  background: #fff7ed;
  border-color: #fed7aa;
}
.kiddo-paywall-feat-item.feat-referral svg {
  color: #ea580c;
}

.kiddo-paywall-feat-item.feat-safe {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.kiddo-paywall-feat-item.feat-safe svg {
  color: #16a34a;
}

.kiddo-paywall-feat-item.feat-lifetime {
  background: #faf5ff;
  border-color: #e9d5ff;
}
.kiddo-paywall-feat-item.feat-lifetime svg {
  color: #9333ea;
}

.kiddo-paywall-feat-item svg {
  flex-shrink: 0;
}

.kiddo-btn-paywall-unlock {
  width: 100%;
  padding: 15px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.35);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.kiddo-btn-paywall-unlock:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 30px rgba(234, 88, 12, 0.45);
}

.kiddo-btn-paywall-code {
  background: transparent;
  border: none;
  color: #0284c7;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 8px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kiddo-btn-paywall-code:hover {
  color: #0369a1;
  background: #f0f9ff;
}

/* ── Quick Activation / Test Code Box Directly on Paywall ── */
.kiddo-paywall-code-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
}

.kiddo-paywall-code-row {
  display: flex;
  gap: 8px;
}

.kiddo-paywall-code-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
}

.kiddo-paywall-code-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.kiddo-btn-paywall-apply {
  padding: 10px 22px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.kiddo-btn-paywall-apply:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.kiddo-paywall-code-msg {
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 6px;
  text-align: center;
  min-height: 18px;
}

.kiddo-paywall-code-msg.error {
  color: #dc2626;
}

.kiddo-paywall-code-msg.success {
  color: #16a34a;
}

@media (max-width: 560px) {
  .kiddo-paywall-box {
    padding: 1.75rem 1.25rem;
    border-radius: 22px;
  }
  .kiddo-paywall-title {
    font-size: 1.25rem;
  }
  .kiddo-paywall-features-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .kiddo-paywall-code-row {
    flex-direction: column;
  }
  .kiddo-btn-paywall-apply {
    width: 100%;
  }
}

.kiddo-paywall-midnight-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ── Compact Collapsible Promo / Referral Code Box ── */
.kiddo-promo-section {
  margin: 12px 0 16px 0;
}

.kiddo-promo-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.kiddo-promo-toggle-btn:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
}

.kiddo-promo-toggle-arrow {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 800;
}

.kiddo-promo-collapsible-box {
  margin-top: 8px;
  padding: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .kiddo-payment-modal {
    max-height: 94vh;
    border-radius: 20px;
  }
  .kiddo-modal-header, .kiddo-modal-body {
    padding: 1rem 1.15rem;
  }
  .kiddo-plan-price-row .kiddo-price-num {
    font-size: 1.8rem;
  }
  .kiddo-features-list {
    grid-template-columns: 1fr;
  }
  .trial-timer-pill span.timer-label {
    display: none;
  }
}

/* ── Landing Page Active Student Pass Banner ── */
.user-pass-container {
  max-width: 1200px;
  margin: 12px auto 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.hero-user-pass-banner {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.12);
  direction: rtl;
  text-align: right;
  animation: fadeInDown 0.3s ease;
}

.pass-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.pass-banner-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pass-active-pill {
  background: #22c55e;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.pass-email-row {
  background: #ffffff;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.pass-email-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: #15803d;
  margin-bottom: 6px;
}

.pass-email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pass-email-box code {
  flex: 1;
  min-width: 180px;
  background: #f0fdf4;
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 800;
  color: #14532d;
  direction: ltr;
  font-size: 0.92rem;
  font-family: monospace;
  border: 1px solid #dcfce7;
  word-break: break-all;
}

.pass-copy-btn {
  padding: 7px 14px;
  background: #ffffff;
  border: 1.5px solid #86efac;
  color: #15803d;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pass-copy-btn:hover {
  background: #ecfdf5;
}

.btn-pass-play {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 900;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

.btn-pass-play:hover {
  transform: translateY(-2px);
}

/* ── Landing Page Referral & Cash Earning Box ── */
.referral-section-wrap {
  max-width: 1200px;
  margin: 18px auto 8px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.hero-referral-box {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fdba74;
  border-radius: 16px;
  padding: 16px 20px;
  text-align: right;
  direction: rtl;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.08);
  box-sizing: border-box;
}

.ref-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ref-box-title {
  font-size: 0.98rem;
  font-weight: 900;
  color: #9a3412;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ref-reward-badge {
  background: #ea580c;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.ref-box-details {
  font-size: 0.84rem;
  color: #7c2d12;
  line-height: 1.55;
  margin-bottom: 12px;
}

.ref-code-card {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.ref-code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #475569;
}

.ref-code-row code {
  background: #ffedd5;
  color: #c2410c;
  font-weight: 900;
  font-size: 0.98rem;
  padding: 3px 12px;
  border-radius: 6px;
  font-family: monospace;
  letter-spacing: 1px;
}

.ref-link-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ref-link-row input {
  flex: 1;
  min-width: 170px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.82rem;
  color: #0f172a;
  background: #f8fafc;
  direction: ltr;
  font-weight: 700;
  box-sizing: border-box;
}

.ref-copy-btn {
  padding: 8px 16px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  border-radius: 8px;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}

.ref-copy-btn:hover {
  background: #1e293b;
}

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

.btn-ref-whatsapp {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  background: #25d366;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  transition: transform 0.2s;
}

.btn-ref-whatsapp:hover {
  transform: translateY(-1px);
}

.btn-ref-withdraw {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  background: #ea580c;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.84rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  box-sizing: border-box;
  transition: transform 0.2s;
}

.btn-ref-withdraw:hover {
  transform: translateY(-1px);
}

/* ── Floating Referral Button at Bottom ── */
.floating-referral-btn {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 99;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  border: 1.5px solid #f97316;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.25);
  color: #9a3412;
  font-weight: 900;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-referral-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.35);
}

.floating-ref-pulse {
  background: #ea580c;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .floating-referral-btn {
    bottom: 74px;
    left: 14px;
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}


/* AI Receipt Audit Box Styles */
.kiddo-audit-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  margin-top: 10px;
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: right;
  direction: rtl;
}

.kiddo-audit-box.analyzing {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1e40af;
}

.kiddo-audit-box.success {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #15803d;
}

.kiddo-audit-box.error {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #991b1b;
}

.kiddo-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid #bfdbfe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: kiddoSpin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes kiddoSpin {
  to { transform: rotate(360deg); }
}
