/* FILE: assets/demo-tour.css — demo pill, guided tour spotlight and card (assets/demo-tour.js) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@500;600;700&family=Noto+Sans+Arabic:wght@500;600;700&family=Noto+Nastaliq+Urdu:wght@500;700&family=Noto+Sans+Devanagari:wght@500;600;700&display=swap');

.rdt-pill, .rdt-card, .rdt-toast, .rdt-resume { --rdt-navy:#0F1E3D; --rdt-teal:#0EA5A4; --rdt-blue:#2563EB; --rdt-mut:#64748B; --rdt-line:#E2E8F0;
  font-family:'Inter','Segoe UI',system-ui,sans-serif; box-sizing:border-box; }
.rdt-pill *, .rdt-card *, .rdt-toast * { box-sizing:border-box; }
.rdt-pill[lang=bn], .rdt-card[lang=bn], .rdt-toast[lang=bn] { font-family:'Noto Sans Bengali','Inter',sans-serif; }
.rdt-pill[lang=ar], .rdt-card[lang=ar] { font-family:'Noto Sans Arabic','Inter',sans-serif; }
.rdt-pill[lang=ur], .rdt-card[lang=ur] { font-family:'Noto Nastaliq Urdu','Noto Sans Arabic',sans-serif; }
.rdt-pill[lang=hi], .rdt-card[lang=hi] { font-family:'Noto Sans Devanagari','Inter',sans-serif; }

/* Demo pill: bottom left (bottom right in RTL), above the phone bottom bar */
.rdt-pill { position:fixed; right:14px; bottom:14px; z-index:2147482000; display:flex; align-items:center; gap:4px;
  background:var(--rdt-navy); color:#fff; border-radius:999px; padding:5px; box-shadow:0 10px 30px -8px rgba(15,30,61,.55); font-size:13px; }
.rdt-pill[dir=rtl] { right:auto; left:14px; }
.rdt-badge { background:linear-gradient(135deg,var(--rdt-teal),var(--rdt-blue)); border-radius:999px; padding:5px 11px; font-weight:700; letter-spacing:.02em; white-space:nowrap; }
.rdt-pbtn { color:#E2E8F0 !important; background:none; border:0; border-radius:999px; padding:6px 10px; font:inherit; font-weight:600; cursor:pointer; text-decoration:none !important; white-space:nowrap; }
.rdt-pbtn:hover { background:rgba(255,255,255,.12); color:#fff !important; }
.rdt-pbtn.rdt-cta { background:#fff; color:var(--rdt-navy) !important; }
.rdt-pbtn.rdt-cta:hover { background:#E0F2F1; }
@media (max-width:991px) { .rdt-pill { bottom:76px; } }
@media (max-width:575px) { .rdt-pill { right:8px; left:8px; justify-content:space-between; font-size:12px; } .rdt-pill[dir=rtl] { left:8px; right:8px; } .rdt-pbtn { padding:6px 7px; } }

/* Spotlight: a hole in a dark layer around the element the step is about */
.rdt-spot { position:fixed; z-index:2147482500; border-radius:12px; pointer-events:none;
  box-shadow:0 0 0 3px rgba(45,212,191,.95), 0 0 0 9999px rgba(15,30,61,.58); transition:top .2s, right .2s, width .2s, height .2s; }
.rdt-spot.rdt-dim { inset:0; border-radius:0; box-shadow:none; background:rgba(15,30,61,.58); }

/* Card */
.rdt-card { position:fixed; z-index:2147483000; width:min(380px, calc(100vw - 24px)); background:#fff; color:var(--rdt-navy);
  border-radius:18px; padding:16px 18px 14px; box-shadow:0 24px 60px -18px rgba(15,30,61,.6); animation:rdt-in .22s ease-out; }
.rdt-card.rdt-center { right:50% !important; top:50% !important; transform:translate(50%,-50%); width:min(460px, calc(100vw - 24px)); }
.rdt-card h3 { margin:6px 0 6px; font-size:19px; line-height:1.3; font-weight:700; color:var(--rdt-navy); font-family:inherit; }
.rdt-card p { margin:0 0 12px; font-size:14.5px; line-height:1.6; color:#334155; }
.rdt-card[lang=ur] p, .rdt-card[lang=ur] h3 { line-height:2.1; }
.rdt-top { display:flex; justify-content:space-between; align-items:center; }
.rdt-step { font-size:12px; font-weight:700; color:var(--rdt-teal); letter-spacing:.04em; }
.rdt-x { border:0; background:#F1F5F9; color:var(--rdt-mut); width:28px; height:28px; border-radius:50%; font-size:18px; line-height:1; cursor:pointer; }
.rdt-x:hover { background:#E2E8F0; color:var(--rdt-navy); }
.rdt-nav { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.rdt-dots { display:flex; gap:3px; flex-wrap:nowrap; justify-content:center; flex:1; min-width:0; }
.rdt-dots i { width:5px; height:5px; border-radius:50%; background:#CBD5E1; flex:0 0 auto; }
.rdt-dots i.on { background:var(--rdt-teal); width:14px; border-radius:6px; }
.rdt-btn { border:1px solid var(--rdt-line); background:#fff; color:var(--rdt-navy) !important; border-radius:10px; padding:8px 14px;
  font:inherit; font-size:14px; font-weight:600; cursor:pointer; text-decoration:none !important; display:inline-flex; align-items:center; gap:6px; justify-content:center; }
.rdt-btn:disabled { opacity:.4; cursor:default; }
.rdt-btn.rdt-primary { background:linear-gradient(135deg,var(--rdt-teal),var(--rdt-blue)); color:#fff !important; border-color:transparent; }
.rdt-btn:not(:disabled):hover { filter:brightness(1.05); box-shadow:0 4px 14px -6px rgba(37,99,235,.6); }
.rdt-ctas { display:flex; gap:8px; margin:0 0 14px; flex-wrap:wrap; }
.rdt-ctas .rdt-btn { flex:1; padding:11px 14px; }
.rdt-end h3 { font-size:21px; }

/* Blocked-action notice and "continue the tour" button */
.rdt-toast { position:fixed; top:16px; right:50%; transform:translateX(50%); z-index:2147483000; max-width:min(520px, calc(100vw - 24px));
  background:var(--rdt-navy); color:#fff; padding:12px 16px; border-radius:12px; font-size:14px; box-shadow:0 14px 40px -12px rgba(0,0,0,.5); transition:opacity .5s; }
.rdt-toast.rdt-out { opacity:0; }
.rdt-resume { position:fixed; left:14px; bottom:14px; z-index:2147482000; border:0; border-radius:999px; padding:10px 16px; font-weight:700; font-size:14px;
  background:linear-gradient(135deg,var(--rdt-teal),var(--rdt-blue)); color:#fff; box-shadow:0 10px 30px -8px rgba(37,99,235,.6); cursor:pointer; }
.rdt-resume[dir=rtl] { left:auto; right:14px; }
@media (max-width:991px) { .rdt-resume { bottom:128px; } }

@keyframes rdt-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
.rdt-card.rdt-center { animation:none; }
@media (prefers-reduced-motion:reduce) { .rdt-card, .rdt-spot { animation:none; transition:none; } }
@media print { .rdt-pill, .rdt-card, .rdt-spot, .rdt-toast, .rdt-resume { display:none !important; } }

/* Demo time left in the pill; red in the last 2 minutes */
.rdt-clock { font-weight:600; opacity:.9; font-variant-numeric:tabular-nums; }
.rdt-pill.rdt-late .rdt-badge { background:linear-gradient(135deg,#DC2626,#EA580C); }
