/* Interactive Normal Mode install guide (assets/js/guide.js) */
.guide-section{padding:40px 0 48px}
.searching .guide-section{display:none}
.guide{border:1px solid var(--line);border-radius:20px;background:#fff;overflow:hidden;box-shadow:0 10px 30px rgba(15,36,64,.07)}
.guide-bar{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid var(--line)}
.guide-bar .pill{align-self:center;display:inline-flex;align-items:center;gap:6px}
.guide-progress{flex:1;height:6px;border-radius:99px;background:#EEF1F5;overflow:hidden;min-width:40px}
.guide-progress i{display:block;height:100%;width:0;background:var(--accent);border-radius:99px;transition:width .5s ease}
.guide-tools{display:flex;gap:4px}
.g-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;border:1px solid transparent;background:none;color:var(--ink-2);cursor:pointer}
.g-icon:hover{background:var(--bg-soft);border-color:var(--line)}
.g-icon[aria-pressed="true"]{color:var(--danger)}
.g-icon:disabled{opacity:.35;cursor:default;background:none;border-color:transparent}

.guide-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}
.guide-media{position:relative;background:radial-gradient(120% 120% at 30% 20%,#1E4472 0%,var(--ink) 70%);min-height:540px;display:flex;align-items:center;justify-content:center;padding:28px;overflow:hidden}
.guide-copy{padding:32px 32px 24px;display:flex;flex-direction:column;gap:14px;min-width:0}
.guide-copy .eyebrow{font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--accent)}
.guide-copy h2,.guide-copy h3{font-family:"Plus Jakarta Sans",Inter,sans-serif;font-size:clamp(1.4rem,2.4vw,1.9rem);line-height:1.15;font-weight:800;letter-spacing:-.01em;color:var(--ink);outline:none}
.guide-copy > p{font-size:15px;line-height:1.6;color:var(--ink-2)}
.g-points{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.g-points li{position:relative;padding-left:28px;font-size:15px;line-height:1.5;color:var(--ink-2)}
.g-points li::before{content:"";position:absolute;left:0;top:2px;width:18px;height:18px;border-radius:50%;background:var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F7A4D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat}
.g-caption{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;background:var(--bg-soft);border:1px solid var(--line);font-size:14px;line-height:1.55;color:var(--ink-2)}
.g-caption svg{flex:none;margin-top:2px;color:var(--accent)}
.g-caption.speaking svg{animation:g-pulse 1s ease-in-out infinite}
.g-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.g-actions .btn{display:inline-flex;align-items:center;gap:8px}
.g-actions.choice .btn{flex:1 1 200px;justify-content:center}
.g-actions.ready .btn-primary{animation:g-glow 1.6s ease-in-out infinite}

/* media frames */
.gm-screen{width:100%;max-width:640px;border-radius:12px;overflow:hidden;background:#000;box-shadow:0 20px 50px rgba(0,0,0,.45);border:6px solid #0B1728}
.gm-screen video,.gm-screen img{display:block;width:100%;height:auto}
.gm-tabletp{height:100%;max-height:500px;aspect-ratio:10/16;border-radius:22px;border:12px solid #0B1728;background:#000;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.45)}
.gm-tabletp video,.gm-tabletp img{display:block;width:100%;height:100%;object-fit:cover}
.gm-phone{height:100%;max-height:460px;aspect-ratio:935/1999;border-radius:26px;border:9px solid #0B1728;background:#000;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.45)}
.gm-phone img{display:block;width:100%;height:100%;object-fit:cover}
.gm-play{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;border:0;background:rgba(15,36,64,.45);color:#fff;font:600 16px Inter,sans-serif;cursor:pointer}
.gm-play span:first-child{display:flex;align-items:center;justify-content:center;width:84px;height:84px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 10px rgba(47,100,156,.35);transition:transform .15s}
.gm-play:hover span:first-child{transform:scale(1.06)}

.gm-footage{height:100%;max-height:500px;aspect-ratio:404/720;border-radius:18px;overflow:hidden;background:#000;box-shadow:0 20px 50px rgba(0,0,0,.45)}
.gm-footage video{display:block;width:100%;height:100%;object-fit:cover}
.gm-phone video{display:block;width:100%;height:100%;object-fit:cover}

.gm-compare{width:100%;max-width:520px;border-collapse:separate;border-spacing:0;background:#fff;border-radius:14px;overflow:hidden;font-size:14px;box-shadow:0 20px 50px rgba(0,0,0,.35)}
.gm-compare th,.gm-compare td{padding:11px 14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top;line-height:1.4}
.gm-compare tr:last-child td,.gm-compare tr:last-child th{border-bottom:0}
.gm-compare thead th{background:var(--bg-soft);font-size:13px;color:var(--ink)}
.gm-compare thead th:nth-child(2){color:var(--accent-dark)}
.gm-compare thead th:nth-child(3){color:#5B3FA8}
.gm-compare tbody th{font-weight:600;color:var(--ink-3);font-size:13px;width:32%}
.gm-compare td{color:var(--ink)}
.gm-list{list-style:none;padding:0;margin:0;width:100%;max-width:440px;display:flex;flex-direction:column;gap:12px}
.gm-list li{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:#fff;font-size:15px;font-weight:600;line-height:1.4;opacity:0;transform:translateY(8px);animation:g-in .45s ease forwards}
.gm-list li b{flex:none;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--coin);color:var(--ink);font-size:14px}
.gm-list li.no b{background:var(--danger);color:#fff}
.gm-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px;width:100%;max-width:520px}
.gm-cards div{padding:22px 18px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:#fff;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;opacity:0;animation:g-in .45s ease forwards}
.gm-cards strong{font-size:16px}
.gm-cards small{font-size:13px;color:var(--navy-text);line-height:1.45}
.gm-cards svg{color:var(--coin)}
@keyframes g-in{to{opacity:1;transform:none}}

/* Play Protect example dialog (a recreation, labelled as such) */
.gm-dialog{width:min(100%,340px);background:#2B2930;color:#E6E0E9;border-radius:26px;padding:24px 24px 18px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.5);font-family:Roboto,Inter,sans-serif}
.gm-dialog .dlg-icon{color:#D0BCFF}
.gm-dialog strong{font-size:20px;font-weight:500;line-height:1.3;color:#fff}
.gm-dialog p{font-size:14px;line-height:1.5;color:#CAC4D0;text-align:left;margin:0}
.gm-dialog .dlg-btns{align-self:stretch;display:flex;justify-content:flex-end;gap:22px;padding-top:6px;font-size:14px;font-weight:600;color:#D0BCFF}
.gm-dialog .dlg-more{align-self:flex-start;color:#D0BCFF;font-weight:600}
.gm-dialog .dlg-anyway{align-self:flex-start;padding:8px 14px;border-radius:99px;background:#D0BCFF;color:#381E72;font-size:14px;font-weight:600;box-shadow:0 0 0 4px rgba(242,181,68,.6)}
.gm-dialog small{align-self:stretch;margin-top:6px;padding-top:10px;border-top:1px solid rgba(255,255,255,.12);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#938F99}

/* slideshow */
.gm-slides{position:relative;width:100%;height:100%;min-height:460px;display:flex;align-items:center;justify-content:center}
.gm-slide{position:absolute;inset:0 0 36px;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .6s ease}
.gm-slide.on{opacity:1}
.gm-dots{position:absolute;bottom:14px;left:0;right:0;display:flex;justify-content:center;gap:6px}
.gm-dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.3)}
.gm-dots i.on{background:#fff}
.gm-credit{position:absolute;bottom:-12px;right:0;font-size:11px;color:var(--navy-text);opacity:.8}

.gm-fade{animation:g-fade .35s ease}
@keyframes g-fade{from{opacity:0;transform:scale(.98)}to{opacity:1;transform:none}}
@keyframes g-pulse{50%{opacity:.35}}
@keyframes g-glow{50%{box-shadow:0 0 0 6px rgba(47,100,156,.25)}}

@media (max-width:860px){
  .guide-stage{grid-template-columns:1fr}
  .guide-media{min-height:0;padding:20px 16px}
  .gm-tabletp{height:440px}
  .gm-phone{height:400px}
  .gm-slides{min-height:440px}
  .gm-footage{height:440px}
  .guide-copy{padding:22px 20px 20px}
  .guide-copy .g-actions{order:1}
  .guide-copy .g-qr{order:2}
  .guide-copy .g-caption{order:3}
}
@media (max-width:480px){
  .guide-section{padding:28px 0 36px}
  .guide-bar{padding:10px 12px;gap:8px}
  .guide-bar .pill{display:none}
  .gm-tabletp{height:400px;border-width:8px;border-radius:16px}
  .gm-phone{height:360px;border-width:7px;border-radius:22px}
  .gm-slides{min-height:400px}
  .gm-footage{height:400px}
  .gm-cards{grid-template-columns:1fr}
  .gm-compare th,.gm-compare td{padding:9px 10px;font-size:13px}
}
@media (prefers-reduced-motion:reduce){
  .gm-fade,.gm-list li,.gm-cards div,.g-actions.ready .btn-primary,.g-caption.speaking svg{animation:none;opacity:1;transform:none}
  .guide-progress i,.gm-slide{transition:none}
}

/* QR to scan straight from the page (Super Admin · QR code step) */
.g-qr{display:flex;align-items:center;gap:16px;margin:2px 0 0;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff}
.g-qr img{flex:none;width:168px;height:168px;image-rendering:pixelated}
.g-qr figcaption{display:flex;flex-direction:column;gap:6px;font-size:14px;line-height:1.5;color:var(--ink-2)}
.g-qr figcaption strong{color:var(--ink);font-size:15px}
.g-qr a{font-weight:600}

/* Maximize: fullscreen (or the whole window on iPhone) with the clip as big as the screen allows */
.guide.started .guide-media{cursor:zoom-in}
html.g-noscroll,html.g-noscroll body{overflow:hidden}
.guide.is-max{position:fixed;inset:0;z-index:2147483000;width:100%;height:100%;max-width:none;margin:0;border:0;border-radius:0;display:flex;flex-direction:column;box-shadow:none}
.guide.is-max .guide-stage{flex:1;min-height:0;grid-template-columns:minmax(0,1.8fr) minmax(320px,1fr)}
.guide.is-max .guide-media{min-height:0;height:100%;padding:16px;cursor:zoom-out}
.guide.is-max .guide-copy{min-height:0;overflow:auto}
.guide.is-max .gm-tabletp,.guide.is-max .gm-footage,.guide.is-max .gm-phone{height:100%;max-height:none}
.guide.is-max .gm-screen{width:auto;max-width:100%}
.guide.is-max .gm-screen video,.guide.is-max .gm-screen img{width:auto;max-width:100%;max-height:calc(100vh - 120px);max-height:calc(100dvh - 120px)}
.guide.is-max .gm-slides{min-height:0;height:100%}
.guide.is-max .gm-compare{max-width:720px;font-size:16px}
.guide.is-max .gm-list{max-width:620px}
@media (max-width:860px){
  .guide.is-max .guide-stage{display:flex;flex-direction:column}
  .guide.is-max .guide-media{flex:none;height:64vh;height:64dvh;padding:12px}
  .guide.is-max .guide-copy{flex:1}
  .guide.is-max .gm-screen video,.guide.is-max .gm-screen img{max-height:calc(64dvh - 24px)}
}
@media (max-width:480px){
  .g-qr{flex-direction:column;text-align:center}
  .g-qr img{width:200px;height:200px}
}
