/* RetailGuard Demo Tour Overlay - JohnDoe only */
/* Spotlight */
.rg-tour-backdrop{position:fixed;inset:0;z-index:9998;pointer-events:none}
.rg-tour-spotlight{position:fixed;z-index:9999;border-radius:12px;box-shadow:0 0 0 9999px rgba(0,0,0,.55);transition:all .3s ease;pointer-events:none}
.rg-tour-tooltip{position:fixed;z-index:10000;background:#fff;border-radius:14px;padding:20px 24px 16px;max-width:340px;box-shadow:0 20px 60px rgba(0,0,0,.18);font-family:Inter,sans-serif;pointer-events:auto}
.rg-tour-tooltip h4{margin:0 0 6px;font-size:15px;font-weight:700;color:#1f2937}
.rg-tour-tooltip p{margin:0 0 14px;font-size:13px;line-height:1.5;color:#4b5563}
.rg-tour-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}
.rg-tour-dots{display:flex;gap:5px}
.rg-tour-dot{width:7px;height:7px;border-radius:50%;background:#d1d5db}
.rg-tour-dot.active{background:#7c3aed}
.rg-tour-btns{display:flex;gap:6px;margin-left:auto}
.rg-tour-btns button{border:none;border-radius:8px;padding:6px 14px;font-size:12px;font-weight:600;cursor:pointer;transition:background .15s}
.rg-tour-btns .btn-primary{background:#7c3aed;color:#fff}
.rg-tour-btns .btn-primary:hover{background:#6d28d9}
.rg-tour-btns .btn-outline{background:transparent;color:#6b7280;border:1px solid #e5e7eb}
.rg-tour-btns .btn-outline:hover{background:#f9fafb}

/* Welcome modal */
.rg-tour-welcome-backdrop{position:fixed;inset:0;z-index:10001;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center}
.rg-tour-welcome{background:#fff;border-radius:16px;padding:32px 36px;max-width:400px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.2);font-family:Inter,sans-serif}
.rg-tour-welcome h2{margin:0 0 10px;font-size:20px;font-weight:700;color:#1f2937}
.rg-tour-welcome p{margin:0 0 20px;font-size:14px;color:#4b5563;line-height:1.5}
.rg-tour-welcome .btn-row{display:flex;gap:10px;justify-content:center}
.rg-tour-welcome button{border:none;border-radius:10px;padding:10px 20px;font-size:14px;font-weight:600;cursor:pointer}
.rg-tour-welcome .btn-primary{background:#7c3aed;color:#fff}
.rg-tour-welcome .btn-outline{background:transparent;color:#6b7280;border:1px solid #e5e7eb}

/* Checklist */
.rg-checklist-fab{position:fixed;z-index:9990;width:52px;height:52px;border-radius:50%;background:#7c3aed;color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(124,58,237,.35);transition:transform .15s;touch-action:none;user-select:none}
.rg-checklist-fab:hover{transform:scale(1.08)}
.rg-checklist-fab .badge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;border-radius:10px;background:#ef4444;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 5px}
.rg-checklist-panel{position:fixed;z-index:9991;width:300px;max-height:420px;background:#fff;border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.15);font-family:Inter,sans-serif;overflow:hidden;display:none;flex-direction:column}
.rg-checklist-panel.open{display:flex}
.rg-checklist-header{padding:16px 18px 10px;border-bottom:1px solid #f3f4f6;display:flex;align-items:center;justify-content:space-between}
.rg-checklist-header h3{margin:0;font-size:15px;font-weight:700;color:#1f2937}
.rg-checklist-header .progress-text{font-size:12px;color:#6b7280;font-weight:600}
.rg-checklist-body{overflow-y:auto;padding:10px 14px 14px;flex:1}
.rg-checklist-item{display:flex;align-items:center;gap:10px;padding:8px 6px;border-radius:8px;cursor:pointer;transition:background .1s}
.rg-checklist-item:hover{background:#f9fafb}
.rg-checklist-item .check{width:20px;height:20px;border-radius:50%;border:2px solid #d1d5db;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .2s}
.rg-checklist-item.done .check{background:#10b981;border-color:#10b981}
.rg-checklist-item.done .check::after{content:'';width:6px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);margin-top:-2px}
.rg-checklist-item .label{font-size:13px;color:#374151}
.rg-checklist-item.done .label{text-decoration:line-through;color:#9ca3af}
.rg-checklist-congrats{padding:14px;text-align:center;font-size:13px;color:#7c3aed;font-weight:600;display:none}
.rg-checklist-congrats.show{display:block}
.rg-checklist-restart{font-size:12px;color:#7c3aed;cursor:pointer;text-decoration:underline;margin-top:4px;display:inline-block}

/* Hotspots */
.rg-hotspot{position:absolute;z-index:9980;width:16px;height:16px;border-radius:50%;background:#10b981;cursor:pointer;animation:rg-pulse 2s infinite;pointer-events:auto}
@keyframes rg-pulse{0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,.5)}50%{box-shadow:0 0 0 8px rgba(16,185,129,0)}}
.rg-hotspot.done{display:none}
.rg-hotspot-popover{position:fixed;z-index:9985;background:#fff;border-radius:12px;padding:14px 18px;max-width:260px;box-shadow:0 8px 30px rgba(0,0,0,.14);font-family:Inter,sans-serif}
.rg-hotspot-popover h4{margin:0 0 4px;font-size:14px;font-weight:700;color:#1f2937}
.rg-hotspot-popover p{margin:0 0 10px;font-size:12px;color:#4b5563;line-height:1.4}
.rg-hotspot-popover button{border:none;background:#7c3aed;color:#fff;border-radius:6px;padding:5px 12px;font-size:11px;font-weight:600;cursor:pointer}

/* Sample invoice button */
.rg-sample-invoice-btn{display:inline-flex;align-items:center;gap:6px;background:#7c3aed;color:#fff;border:none;border-radius:8px;padding:8px 16px;font-size:13px;font-weight:600;cursor:pointer;margin:8px 0;font-family:Inter,sans-serif}
.rg-sample-invoice-btn:hover{background:#6d28d9}

/* Demo bar chip */
.rg-demo-bar{position:fixed;top:8px;right:12px;z-index:9995;display:flex;align-items:center;gap:8px;background:#faf5ff;border:1px solid #e9d5ff;border-radius:8px;padding:5px 12px;font-family:Inter,sans-serif;font-size:12px;color:#7c3aed;font-weight:600}
.rg-demo-bar button{background:transparent;border:1px solid #c4b5fd;border-radius:6px;padding:3px 10px;font-size:11px;color:#7c3aed;cursor:pointer;font-weight:600}
.rg-demo-bar button:hover{background:#ede9fe}
