/* ==========================================================================
   EnglishTeach Baamboozle VIP Subscription & Device Guard UI
   Exact Design Match to Story Project (vooks.html)
   Modern Egyptian Fintech Glassmorphism Architecture
   ========================================================================== */

:root {
  --bbzl-primary: #1e60ff;
  --bbzl-primary-hover: #0040e0;
  --bbzl-text-dark: #0f172a;
  --bbzl-text-body: #334155;
  --bbzl-text-muted: #64748b;
  --bbzl-border: #e2e8f0;
  --bbzl-accent-gold: #f59e0b;
  --bbzl-accent-green: #10b981;
}

/* Top Header VIP Auth Pill Widget */
.bbzl-auth-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1.5px solid #cbd5e1;
  font-family: 'Fredoka', 'Cairo', 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bbzl-auth-widget:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.bbzl-auth-widget.is-vip {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.25);
}

.bbzl-badge-vip {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

.bbzl-badge-trial {
  background: linear-gradient(135deg, #754FF0, #4f46e5);
  color: #FFD200;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.bbzl-badge-free {
  background: #f1f5f9;
  color: #475569;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

/* Modal Overlay & Backdrop */
.vooks-modal-overlay,
.bbzl-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483647;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
  font-family: 'Cairo', 'Fredoka', 'Nunito', -apple-system, sans-serif;
}

.vooks-modal-overlay.active,
.bbzl-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Window (Exact Vooks/Story Project specifications) */
.vooks-modal-window,
.bbzl-modal-window {
  background: #ffffff;
  border-radius: 24px;
  max-width: 800px;
  width: 95%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.vooks-modal-overlay.active .vooks-modal-window,
.bbzl-modal-overlay.active .bbzl-modal-window {
  transform: scale(1);
}

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

.vooks-modal-header h3,
.bbzl-modal-header h3 {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vooks-modal-close,
.bbzl-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.vooks-modal-close:hover,
.bbzl-modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* Modal Body */
.vooks-modal-body,
.bbzl-modal-body {
  padding: 20px 24px 24px;
}

/* Step Header */
.pay-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 900;
  color: #1e293b;
  margin-top: 14px;
  margin-bottom: 12px;
}

.pay-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1e60ff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

/* English File / Vooks Fintech Modern Plans Grid */
.vooks-plans-grid,
.bbzl-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .vooks-plans-grid,
  .bbzl-plans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .vooks-plans-grid,
  .bbzl-plans-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.vooks-plan-card,
.bbzl-plan-card {
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.vooks-plan-card:hover,
.bbzl-plan-card:hover {
  border-color: #6366f1;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.15);
}

.vooks-plan-card.selected,
.bbzl-plan-card.selected {
  border-color: #6366f1;
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.vooks-plan-tag,
.bbzl-plan-tag {
  position: absolute;
  top: -11px;
  right: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.35);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.vooks-plan-name,
.bbzl-plan-name {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  margin-top: 4px;
  margin-bottom: 6px;
}

.vooks-plan-price,
.bbzl-plan-price {
  font-size: 24px;
  font-weight: 900;
  color: #4f46e5;
  line-height: 1.1;
}

.vooks-plan-cur,
.bbzl-plan-cur {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 700;
}

.vooks-plan-desc,
.bbzl-plan-desc {
  font-size: 11px;
  color: #64748b;
  margin-top: 5px;
  font-weight: 600;
  line-height: 1.3;
}

.vooks-plan-student-tag,
.bbzl-plan-student-tag {
  background: #dcfce7;
  color: #166534;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  margin-top: 6px;
}

.vooks-plan-features-list,
.bbzl-plan-features-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: right;
  font-size: 10.5px;
  color: #334155;
  font-weight: 700;
}

.vooks-plan-features-list li,
.bbzl-plan-features-list li {
  display: flex;
  align-items: center;
  gap: 5px;
}

.vooks-plan-features-list li span,
.bbzl-plan-features-list li span {
  color: #10b981;
  font-weight: 900;
}

/* Live Dynamic Price Summary Bar */
.vooks-price-summary-bar,
.bbzl-price-summary-bar {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border: 1.5px solid #c7d2fe;
  border-radius: 16px;
  padding: 14px 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-title {
  font-size: 14.5px;
  font-weight: 900;
  color: #3730a3;
}

.summary-sub {
  font-size: 12px;
  color: #4338ca;
  font-weight: 700;
  margin-top: 2px;
}

.summary-total {
  font-size: 28px;
  font-weight: 900;
  color: #312e81;
}

.summary-cur {
  font-size: 14px;
  font-weight: 900;
  color: #4338ca;
}

/* Transfer Accounts Grid (InstaPay & Wallets) */
.pay-accounts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .pay-accounts-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.pay-account-card {
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px 16px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.pay-account-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.pay-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pay-brand-title {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
}

.pay-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pay-logo-img {
  height: 22px;
  max-width: 60px;
  object-fit: contain;
  border-radius: 4px;
}

.pay-val-box {
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pay-val-text {
  font-family: monospace;
  font-size: 13.5px;
  font-weight: 900;
  direction: ltr;
}

.btn-copy-pay {
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-copy-pay.copied {
  background: #10b981 !important;
  color: #ffffff !important;
}

.pay-recipient-note {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Receipt Upload Dropzone */
.receipt-dropzone {
  border: 2px dashed #93c5fd;
  border-radius: 16px;
  background: #f8fafc;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.receipt-dropzone:hover {
  background: #eff6ff;
  border-color: #3b82f6;
}

.dropzone-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.dropzone-title {
  font-size: 13.5px;
  font-weight: 900;
  color: #1e293b;
}

.dropzone-subtitle {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 3px;
}

/* Loading Box */
.receipt-loading-box {
  display: none;
  text-align: center;
  padding: 18px;
  background: #f8fafc;
  border-radius: 14px;
  margin-bottom: 12px;
}

.receipt-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: #1e60ff;
  border-radius: 50%;
  animation: spinReceipt 0.8s linear infinite;
  margin: 0 auto 8px;
}

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

/* Alert Boxes */
.pay-alert-box {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
}

.pay-alert-box.error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* Success Box */
.pay-success-box {
  display: none;
  text-align: center;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 16px;
  padding: 20px 16px;
  margin-bottom: 14px;
}

.pay-success-box.active {
  display: block;
}

/* WhatsApp Direct Button */
.btn-whatsapp-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 18px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  border: none;
}

.btn-whatsapp-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}

/* 1-Game Trial Banner & Info */
.trial-banner-box {
  background: linear-gradient(135deg, #754FF0, #4f46e5);
  border: 2px solid #FFD200;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .trial-banner-box {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
