/* mibl_guest_gate.css — the first-visit guest gate, moved out of guest_showcase.php (audit P1 #9, 2026-10-02).
   ~4.9 KB of inline <style> re-sent byte-identical with page views; no PHP was interpolated into it.
   Loaded from the position the inline block had, so the cascade is unchanged. */
#miblGuestGate{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:20px;
  background:radial-gradient(120% 120% at 50% 0%,rgba(20,16,48,.72),rgba(4,6,16,.9));backdrop-filter:blur(6px);
  opacity:0;transition:opacity .45s ease;font-family:'Vazirmatn',system-ui,-apple-system,sans-serif}
/* Same bug pattern as tanin_fab.php's badge (fixed earlier today): the unconditional display:flex
   above beats the [hidden] attribute's default display:none (equal specificity, later in source
   wins) — a full-viewport, pointer-events:auto, z-index:10000 element left "hidden" only in name,
   silently swallowing every click/tap on every page for every guest, on both builds, even when the
   gate was never meant to show yet. Confirmed live: a normal Playwright click on a guest-visible
   nav link timed out waiting for "element to be visible" — this was blocking real navigation. */
#miblGuestGate[hidden]{display:none}
#miblGuestGate.show{opacity:1}
#miblGuestGate .mg-card{position:relative;width:min(760px,100%);max-height:92dvh;overflow:auto;background:linear-gradient(180deg,#12142a,#0c0e1c);
  border:1px solid rgba(255,255,255,.1);border-radius:26px;padding:30px 28px 26px;box-shadow:0 40px 120px rgba(0,0,0,.6),0 0 0 1px rgba(0,212,255,.08);
  transform:translateY(24px) scale(.96);opacity:0;transition:transform .5s cubic-bezier(.16,1,.3,1),opacity .5s ease}
#miblGuestGate.show .mg-card{transform:none;opacity:1}
#miblGuestGate .mg-glow{position:absolute;inset:-40% 10% auto 10%;height:280px;pointer-events:none;z-index:0;
  background:radial-gradient(60% 100% at 50% 0,rgba(0,212,255,.28),rgba(124,92,255,.12) 45%,transparent 70%);filter:blur(20px);animation:mgFloat 7s ease-in-out infinite}
#miblGuestGate .mg-card>*{position:relative;z-index:1}
#miblGuestGate .mg-x{position:absolute;top:14px;inset-inline-end:14px;z-index:2;width:34px;height:34px;border:0;border-radius:50%;
  background:rgba(255,255,255,.08);color:#cfd3ff;font-size:15px;cursor:pointer;transition:.15s}
#miblGuestGate .mg-x:hover{background:rgba(255,255,255,.18)}
#miblGuestGate .mg-head{text-align:center;margin-bottom:20px}
#miblGuestGate .mg-kicker{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#00d4ff;margin-bottom:8px}
#miblGuestGate .mg-title{margin:0 0 8px;font-size:clamp(21px,4.4vw,30px);font-weight:900;line-height:1.25;color:#fff}
#miblGuestGate .mg-title span{background:linear-gradient(135deg,#00d4ff,#a78bfa);-webkit-background-clip:text;background-clip:text;color:transparent}
#miblGuestGate .mg-sub{margin:0;color:#aab2c8;font-size:14px}
#miblGuestGate .mg-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}
/* An odd number of cards leaves the last one stranded in half a row; let it
   take the whole width instead, which reads as a finish rather than a gap. */
#miblGuestGate .mg-card:last-child:nth-child(odd){grid-column:1 / -1}
#miblGuestGate .mg-feat{display:flex;align-items:flex-start;gap:12px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);
  border-radius:16px;padding:14px;opacity:0;transform:translateY(12px);animation:mgUp .5s cubic-bezier(.16,1,.3,1) forwards;animation-delay:calc(.18s + var(--i)*.09s)}
#miblGuestGate .mg-feat:hover{border-color:rgba(0,212,255,.35);background:rgba(0,212,255,.06);transform:translateY(-2px);transition:.18s}
#miblGuestGate .mg-ic{flex:none;width:44px;height:44px;border-radius:13px;display:grid;place-items:center;font-size:22px;box-shadow:0 6px 18px rgba(0,0,0,.35)}
#miblGuestGate .mg-ftxt{display:flex;flex-direction:column;gap:3px}
#miblGuestGate .mg-ftxt b{font-size:14.5px;font-weight:800;color:#eef1ff}
#miblGuestGate .mg-ftxt span{font-size:12.5px;line-height:1.55;color:#9aa3bd}
#miblGuestGate .mg-cta{display:flex;gap:11px;flex-wrap:wrap}
#miblGuestGate .mg-btn{flex:1;min-width:180px;text-align:center;border:0;border-radius:14px;padding:14px 18px;font-family:inherit;font-weight:800;
  font-size:14.5px;cursor:pointer;text-decoration:none;transition:transform .15s ease,box-shadow .2s ease}
#miblGuestGate .mg-primary{background:linear-gradient(135deg,#00d4ff,#7c5cff);color:#04121a;box-shadow:0 10px 30px rgba(0,140,255,.45)}
#miblGuestGate .mg-primary:hover{transform:translateY(-2px);box-shadow:0 14px 38px rgba(0,140,255,.6)}
#miblGuestGate .mg-ghost{background:rgba(255,255,255,.06);color:#dfe4ff;border:1px solid rgba(255,255,255,.14)}
#miblGuestGate .mg-ghost:hover{background:rgba(255,255,255,.12)}
@keyframes mgUp{to{opacity:1;transform:none}}
@keyframes mgFloat{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-10px) scale(1.05)}}
@media(max-width:560px){#miblGuestGate .mg-grid{grid-template-columns:1fr}#miblGuestGate .mg-card{padding:24px 18px 20px}#miblGuestGate .mg-cta .mg-btn{min-width:100%}}
@media(prefers-reduced-motion:reduce){#miblGuestGate,#miblGuestGate .mg-card,#miblGuestGate .mg-feat,#miblGuestGate .mg-glow{transition:none;animation:none;opacity:1;transform:none}}
