   PHASE 3 — DEMO GATE OVERLAY
==================================================== */

/* ── Lock body scroll when gate is active ── */
body.gate-locked {
  overflow: hidden !important;
}

/* ── Gate root: fixed full-screen ── */
#demo-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  /* hidden via [hidden] attribute; JS removes it */
}
#demo-gate[hidden] { display: none !important; }

/* ── Blurred backdrop ── */
.gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 14, 0.78);
  backdrop-filter: blur(28px) saturate(0.6);
  -webkit-backdrop-filter: blur(28px) saturate(0.6);
}

/* ── Card ── */
.gate-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    145deg,
    rgba(18, 18, 31, 0.98) 0%,
    rgba(10, 10, 20, 0.99) 100%
  );
  border: 1px solid rgba(200, 169, 106, 0.18);
  border-radius: 20px;
  padding: 3rem 2.8rem 2.4rem;
  max-width: 540px;
  width: 100%;
  box-shadow:
    0 0 0 1px rgba(200,169,106,0.07),
    0 24px 80px rgba(0,0,0,0.7),
    0 8px 24px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.04);
  animation: gateReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes gateReveal {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Badge ── */
.gate-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  border: 1px solid rgba(200,169,106,0.35);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

/* ── Title ── */
.gate-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
.gate-title span {
  color: var(--accent);
  display: block;
  margin-top: 0.2rem;
}

/* ── Subtitle ── */
.gate-subtitle {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.40);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 2rem;
}

/* ── Payment block ── */
.payment-method {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(200,169,106,0.10);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
}

.payment-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.payment-icon { font-size: 1.15rem; line-height: 1; }
.payment-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.80);
  letter-spacing: 0.5px;
}
.payment-name small {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  margin-inline-start: 0.3rem;
}

/* ── Wallet / number row ── */
.payment-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.payment-value {
  flex: 1;
  font-family: 'SFMono-Regular', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.88rem;
  color: var(--accent-light, #e6c98a);
  background: rgba(200,169,106,0.06);
  border: 1px solid rgba(200,169,106,0.12);
  border-radius: 7px;
  padding: 0.45rem 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  user-select: all;
}

/* ── Copy button ── */
.copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  background: rgba(200,169,106,0.10);
  border: 1px solid rgba(200,169,106,0.25);
  border-radius: 7px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.copy-btn:hover { background: rgba(200,169,106,0.18); border-color: rgba(200,169,106,0.45); }
.copy-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.copy-btn .icon-check { display: none; color: #4ade80; }

/* Success state */
.copy-btn.copied {
  background: rgba(74,222,128,0.10);
  border-color: rgba(74,222,128,0.30);
  color: #4ade80;
  pointer-events: none;
}
.copy-btn.copied .icon-copy  { display: none; }
.copy-btn.copied .icon-check { display: block; }
.copy-btn.copied .copy-label::before { content: 'Copied!'; }
.copy-btn .copy-label { font-size: 0.78rem; }
.copy-btn:not(.copied) .copy-label::before { content: 'Copy'; }
/* hide the text node so we control via ::before */
.copy-btn .copy-label { font-size: 0; }
.copy-btn .copy-label::before { font-size: 0.78rem; }

/* ── WhatsApp confirm link ── */
.whatsapp-confirm {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: #25d366;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.whatsapp-confirm:hover { opacity: 0.8; }
.whatsapp-confirm svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ── Persistent CTA block ── */
.gate-cta {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(200,169,106,0.12);
  text-align: center;
}
.gate-cta-note {
  font-size: 0.77rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.gate-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.30), 0 2px 8px rgba(0,0,0,0.30);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gate-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.40), 0 4px 12px rgba(0,0,0,0.35);
}
.gate-cta-btn svg { width: 18px; height: 18px; }

/* ── Edit Request FAB (floating action button) ── */
.edit-request-fab {
  position: fixed;
  bottom: 5.5rem;
  left: 1.5rem;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #c8a96a, #e0c47a);
  color: #080810;
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1.1rem 0.6rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(200,169,106,0.35), 0 2px 8px rgba(0,0,0,0.30);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
  animation: fabBounceIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.edit-request-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(200,169,106,0.45), 0 4px 12px rgba(0,0,0,0.35);
}
/* edit-request-fab stays on LEFT in both LTR and RTL — avoids overlap with chatbot/WhatsApp on right */

@keyframes fabBounceIn {
  from { opacity: 0; transform: scale(0.6) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Edit Request Modal ── */
.edit-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6, 6, 14, 0.80);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}
.edit-modal-overlay[hidden] { display: none !important; }

.edit-modal-card {
  position: relative;
  background: #13131f;
  border: 1px solid rgba(200,169,106,0.25);
  border-radius: 16px;
  padding: 2rem 1.8rem 1.8rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  animation: gateReveal 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}

.edit-modal-close {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: rgba(255,255,255,0.06);
  border: none;
  color: rgba(255,255,255,0.5);
  border-radius: 50%;
  width: 28px; height: 28px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.edit-modal-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
[dir="rtl"] .edit-modal-close { left: auto; right: 0.9rem; }

.edit-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #c8a96a;
  margin: 0 0 0.3rem;
}
.edit-modal-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin: 0 0 1.2rem;
  line-height: 1.5;
}
.edit-modal-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.4rem;
}
.edit-modal-select,
.edit-modal-textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(200,169,106,0.22);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.6rem 0.85rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.edit-modal-select:focus,
.edit-modal-textarea:focus { border-color: #c8a96a; }
.edit-modal-textarea::placeholder { color: rgba(255,255,255,0.22); }

.edit-modal-submit {
  width: 100%;
  background: linear-gradient(135deg, #c8a96a, #e0c47a);
  border: none;
  border-radius: 8px;
  color: #080810;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.edit-modal-submit:hover  { opacity: 0.88; transform: translateY(-1px); }
.edit-modal-submit:disabled { opacity: 0.45; cursor: default; }

.edit-modal-status {
  font-size: 0.82rem;
  margin-top: 0.75rem;
  text-align: center;
}
.edit-modal-status--success { color: #4ade80; }
.edit-modal-status--warn    { color: #facc15; }
.edit-modal-status--error   { color: #f87171; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Activation Code (Unlock) Block ── */
.gate-unlock {
  margin: 1.4rem 0 0.4rem;
  padding: 1.2rem 1.4rem;
  background: rgba(200, 169, 106, 0.06);
  border: 1px solid rgba(200, 169, 106, 0.20);
  border-radius: 12px;
}

.gate-unlock-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin: 0 0 0.75rem;
  letter-spacing: 0.3px;
}

.gate-unlock-row {
  display: flex;
  gap: 0.6rem;
}

.unlock-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(200,169,106,0.30);
  border-radius: 8px;
  color: #fff;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.55rem 0.9rem;
  outline: none;
  text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
}
.unlock-input::placeholder { color: rgba(255,255,255,0.22); letter-spacing: 0.05em; font-weight: 400; }
.unlock-input:focus {
  border-color: #c8a96a;
  background: rgba(200,169,106,0.09);
}

.unlock-btn {
  background: linear-gradient(135deg, #c8a96a, #e0c47a);
  border: none;
  border-radius: 8px;
  color: #080810;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1.2rem;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}
.unlock-btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.unlock-btn:active { transform: translateY(0); }
.unlock-btn:disabled { opacity: 0.45; cursor: default; }

.unlock-msg {
  font-size: 0.82rem;
  margin: 0.6rem 0 0;
  padding: 0;
  line-height: 1.4;
}
.unlock-msg.unlock-success { color: #4ade80; }
.unlock-msg.unlock-error   { color: #f87171; }

/* ── Mobile adjustments ── */
@media (max-width: 520px) {
  .gate-card {
    padding: 2.2rem 1.6rem 1.8rem;
    border-radius: 16px;
  }
  .gate-title { font-size: clamp(1.35rem, 5vw, 1.7rem); }
  .payment-value { font-size: 0.78rem; }
}

/* ── Reduced-motion: skip card animation ── */
@media (prefers-reduced-motion: reduce) {
  .gate-card { animation: none; }
}

/* ====================================================
   Point 3 FIX: Obfuscate page content when gate is active.
   Targets every direct child of <body> EXCEPT #demo-gate.
   filter:blur  — visually obscures content
   pointer-events:none — prevents interaction / selection through overlay
   user-select:none    — prevents text copying
==================================================== */
body.gate-locked > *:not(#demo-gate) {
  filter: blur(14px) !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  transition: filter 0.35s ease;
}

/* Gate card is position:fixed (isolated stacking context) so parent
   filter does not affect it — this rule is a safety guard only */
#demo-gate {
  filter: none !important;
  pointer-events: auto !important;
  user-select: auto !important;
  -webkit-user-select: auto !important;
}
