/* Admin tour (/panel-turu/): a day at the example store, one admin screen per step with numbered spots, a spotlight and a tip. */
@property --sx{syntax:"<percentage>";inherits:true;initial-value:50%}
@property --sy{syntax:"<percentage>";inherits:true;initial-value:50%}

/* Hero */
.atour-hero{padding-bottom:clamp(56px,7vw,104px)}
.atour-hero h1{font-size:clamp(38px,5vw,64px);margin-bottom:20px}
.atour-facts{display:flex;flex-wrap:wrap;gap:12px 36px;margin-top:34px;padding-top:24px;border-top:1px solid var(--dark-line)}
.atour-facts div{display:grid;gap:2px}
.atour-facts dt{font-size:30px;font-weight:800;letter-spacing:-.02em;color:#fff;line-height:1}
.atour-facts dd{margin:0;font-size:13.5px;font-weight:650;color:var(--on-dark-3)}
.atour-hero-visual{padding:24px 0 40px}
.atour-hero-tip{right:-12px;bottom:6px;display:flex;align-items:center;gap:12px;max-width:300px}
.atour-hero-tip small{display:block;font-size:12px;color:var(--muted)}
.atour-hero-tip strong{font-size:14.5px;line-height:1.35}

/* Section */
.atour-section{position:relative;overflow:hidden;scroll-margin-top:var(--header)}
.atour-section::before{content:"";position:absolute;inset:0 0 auto;height:520px;background:radial-gradient(50% 60% at 50% 0,rgba(107,82,238,.22),transparent 70%);pointer-events:none}
.atour{position:relative;display:grid;grid-template-columns:232px minmax(0,1fr);gap:clamp(24px,3vw,44px);align-items:start}

/* Step rail */
.atour-rail{position:sticky;top:calc(var(--header) + 24px)}
.atour-rail ol{display:grid;gap:4px;padding:8px;border-radius:var(--r-lg);background:rgba(255,255,255,.035);border:1px solid var(--dark-line)}
.atour-rail button{position:relative;display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:10px;width:100%;padding:8px 9px;border-radius:12px;text-align:left;color:var(--on-dark-2);background:transparent;border:1px solid transparent;transition:background .2s,border-color .2s,color .2s}
.atour-rail button:hover{color:#fff;background:rgba(255,255,255,.05)}
.atour-rail button[aria-current=step]{color:#fff;background:rgba(120,99,255,.16);border-color:rgba(165,150,255,.35)}
.atour-rail-ico{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:rgba(255,255,255,.06);color:var(--on-dark-2)}
.atour-rail-ico .i{width:16px;height:16px}
.atour-rail button[aria-current=step] .atour-rail-ico{background:var(--v-500);color:#fff;box-shadow:var(--glow)}
.atour-rail button.is-seen:not([aria-current]) .atour-rail-ico{color:#c9c1ff}
.atour-rail-txt{display:grid;line-height:1.2;min-width:0}
.atour-rail-txt small{font-size:11px;font-weight:700;letter-spacing:.03em;color:var(--on-dark-3)}
.atour-rail-txt strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.atour-rail .badge{font-size:10px;padding:1px 7px;opacity:.9}

/* Step */
.atour-panel{display:grid;gap:22px}
.js .atour-panel:not(.is-active){display:none}
.atour-panel.is-entering .atour-head,.atour-panel.is-entering .atour-frame{animation:enter .45s var(--ease) both}
.atour-panel.is-entering .atour-frame{animation-delay:.05s}
.atour-count{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;font-weight:800;color:var(--on-dark-3)}
.atour-count span{font-size:15px;letter-spacing:.06em;color:#c9c1ff}
.atour-count i{font-style:normal;font-size:13px;letter-spacing:.06em}
.atour-count em{display:inline-flex;align-items:center;gap:5px;font-style:normal;font-size:12.5px;padding:3px 10px;border-radius:99px;background:rgba(255,255,255,.06);border:1px solid var(--dark-line);color:var(--on-dark-2)}
.atour-count em .i{width:13px;height:13px}
.atour-count b{font-size:12.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--on-dark-3)}
.atour-head h2{font-size:clamp(26px,3vw,40px);margin:10px 0 10px;color:#fff;letter-spacing:-.02em}
.atour-head>p:not([class]){color:var(--on-dark-2);font-size:17px;line-height:1.6;max-width:720px}
.atour-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-top:16px}
.atour-section .link-arrow{color:#c9c1ff}

/* Screen, spotlight, spots and tip */
.atour-frame{position:relative}
.atour-canvas{position:relative}
.atour-canvas img{display:block;width:100%}
.atour-spots{position:absolute;inset:0}
.atour-shade{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at var(--sx) var(--sy),transparent 0,transparent 70px,rgba(9,12,27,.28) 200px);opacity:0;transition:opacity .35s,--sx .45s var(--ease),--sy .45s var(--ease)}
.atour-canvas.has-pick .atour-shade{opacity:1}
.atour-spot{position:absolute;left:var(--x);top:var(--y);z-index:2;width:32px;height:32px;margin:-16px 0 0 -16px;border-radius:50%;display:grid;place-items:center;font-size:13.5px;font-weight:800;color:#fff;background:var(--v-500);border:2px solid #fff;box-shadow:0 6px 18px -4px rgba(73,48,201,.7);cursor:pointer;transition:transform .2s var(--ease),background .2s}
.atour-spot::before{content:"";position:absolute;inset:-8px;border-radius:50%;border:2px solid rgba(107,82,238,.55);animation:atour-pulse 2.2s ease-out infinite;pointer-events:none}
.atour-spot:hover,.atour-spot:focus-visible{transform:scale(1.12)}
.atour-spot.is-on{background:#111633;transform:scale(1.18);box-shadow:0 0 0 6px rgba(255,255,255,.28),0 10px 24px -6px rgba(9,12,27,.6)}
.atour-spot.is-on::before{animation:none;opacity:0}
.atour-spot--demo{cursor:default}
@keyframes atour-pulse{0%{transform:scale(.7);opacity:1}80%,100%{transform:scale(1.5);opacity:0}}
.atour-pop{position:absolute;z-index:3;left:var(--px,0);top:var(--py,0);width:min(300px,40%);padding:14px 16px 15px;border-radius:14px;background:#fff;color:var(--ink);box-shadow:0 24px 50px -16px rgba(9,12,27,.55),0 0 0 1px rgba(13,18,38,.06);font-size:14px;line-height:1.5;opacity:0;transform:translateY(6px);transition:opacity .25s,transform .25s var(--ease);pointer-events:none}
.atour-pop.is-shown{opacity:1;transform:none}
.atour-pop strong{display:flex;align-items:center;gap:8px;font-size:14.5px;margin-bottom:4px}
.atour-pop strong .atour-num{width:22px;height:22px;font-size:11.5px}
.atour-pop p{color:var(--muted)}
.atour-pop .badge{font-size:10px;padding:1px 7px}
@media (prefers-reduced-motion:reduce){.atour-spot::before{animation:none;opacity:.6}.atour-panel.is-entering .atour-head,.atour-panel.is-entering .atour-frame{animation:none}.atour-shade,.atour-pop{transition:none}}

/* Notes under the screen */
.atour-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.atour-note{display:grid;grid-template-columns:26px 1fr;gap:12px;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.035);border:1px solid var(--dark-line);font-size:14px;line-height:1.5;color:var(--on-dark-3);cursor:pointer;transition:border-color .2s,background .2s}
.atour-note:hover{background:rgba(255,255,255,.06)}
.atour-note strong{color:#fff}
.atour-note-txt{display:block}
.atour-note .badge{font-size:10px;padding:1px 7px;vertical-align:1px}
.atour-note.is-on{background:rgba(120,99,255,.12);border-color:rgba(165,150,255,.4)}
.atour-num{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;font-size:12.5px;font-weight:800;color:#fff;background:var(--v-500)}
.atour-note.is-on .atour-num{background:#fff;color:var(--ink)}
.atour-swipe{display:none}

/* A step's flow of screens (the order's journey): a strip of stages, one screen at a time */
.atour-flow{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.atour-flow li{display:flex;align-items:center;gap:6px}
.atour-flow li:not(:last-child)::after{content:"";width:14px;height:1px;background:rgba(255,255,255,.2)}
.atour-flow button{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px 0 5px;border-radius:999px;font-size:13.5px;font-weight:700;color:var(--on-dark-2);background:rgba(255,255,255,.05);border:1px solid var(--dark-line);transition:color .2s,background .2s,border-color .2s}
.atour-flow button:hover{color:#fff;background:rgba(255,255,255,.08)}
.atour-flow-n{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;font-size:12px;font-weight:800;background:rgba(255,255,255,.08)}
.atour-flow button[aria-pressed=true]{color:#fff;background:rgba(120,99,255,.18);border-color:rgba(165,150,255,.45)}
.atour-flow button[aria-pressed=true] .atour-flow-n{background:var(--v-500);color:#fff;box-shadow:var(--glow)}
.atour-flow button.is-done .atour-flow-n{background:rgba(20,184,138,.2);color:#6ee7c8}
.atour-scene{display:grid;gap:18px}
.js .atour-scene:not(.is-active){display:none}
.atour-scene.is-entering .atour-frame{animation:enter .4s var(--ease) both}
.atour-flow-cap{display:flex;gap:12px;align-items:baseline;color:var(--on-dark-2);font-size:15.5px;line-height:1.55}
.atour-flow-cap span{flex:none;font-size:12px;font-weight:800;letter-spacing:.06em;color:#c9c1ff;padding:2px 9px;border-radius:99px;background:rgba(120,99,255,.16)}

/* Previous / next */
.atour-nav{display:flex;align-items:center;gap:14px;margin-top:4px}
.js .atour-nav[hidden]{display:flex}
html:not(.js) .atour-nav{display:none}
.atour-progress{flex:1;height:5px;border-radius:99px;background:rgba(255,255,255,.1);overflow:hidden}
.atour-progress i{display:block;height:100%;width:var(--p,10%);border-radius:inherit;background:var(--grad);transition:width .4s var(--ease)}
.atour-pos{min-width:48px;text-align:center;font-size:13px;font-weight:800;letter-spacing:.06em;color:var(--on-dark-3)}
.atour-nav [disabled]{opacity:.35;pointer-events:none}
.atour-foot{position:relative;margin:32px auto 0;font-size:13px;color:var(--on-dark-3);text-align:center;max-width:760px}

/* After the tour */
.atour-faq .section-head{margin-bottom:24px}
.atour-next-card{display:flex;align-items:center;justify-content:space-between;gap:24px 40px;flex-wrap:wrap;padding:clamp(24px,4vw,44px);border-radius:var(--r-xl);background:var(--tint);border:1px solid var(--line)}
.atour-next-card h2{font-size:clamp(26px,3vw,38px);margin-bottom:10px}
.atour-next-card p{color:var(--muted);max-width:620px}

@media (max-width:1080px){
  .atour-hero .hero-inner{grid-template-columns:1fr}
  .atour-hero-frame{transform:none}
  .atour-hero-tip{right:8px}
  .atour{grid-template-columns:minmax(0,1fr)}
  .atour-stage,.atour-panel{min-width:0}
  .atour-rail{min-width:0;position:sticky;top:var(--header);z-index:5;margin:0 calc(-1*var(--gutter));padding:10px var(--gutter);background:rgba(9,12,27,.88);backdrop-filter:blur(12px);border-bottom:1px solid var(--dark-line)}
  .atour-rail ol{display:flex;gap:8px;padding:0;border:0;background:none;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity}
  .atour-rail ol::-webkit-scrollbar{display:none}
  .atour-rail li{flex:none;scroll-snap-align:start}
  .atour-rail button{grid-template-columns:28px auto;padding:6px 12px 6px 6px;border-radius:999px;background:rgba(255,255,255,.05);border-color:var(--dark-line)}
  .atour-rail-ico{width:28px;height:28px;border-radius:50%}
  .atour-rail .badge{display:none}
}
@media (max-width:720px){
  .atour-facts{gap:10px 24px}
  .atour-facts dt{font-size:24px}
  .atour-hero-tip{display:none}
  .atour-head>p:not([class]){font-size:16px}
  /* Phones: the screen keeps a readable width and scrolls sideways; the chosen spot is scrolled into view (admin-tour.js). */
  .atour-body{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
  .atour-canvas{width:780px}
  .atour-pop{display:none}
  .atour-swipe{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:-12px;font-size:12.5px;font-weight:700;color:var(--on-dark-3)}
  .atour-swipe .i{width:14px;height:14px}
  .atour-hero-visual .atour-canvas{width:auto}
  .atour-notes{grid-template-columns:1fr}
  .atour-flow{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:calc(-1*var(--gutter));padding-inline:var(--gutter)}
  .atour-flow::-webkit-scrollbar{display:none}
  .atour-flow li{flex:none}
  .atour-flow-cap{font-size:14.5px}
  .atour-nav{position:sticky;bottom:12px;z-index:5;padding:8px;border-radius:999px;background:rgba(16,20,42,.92);backdrop-filter:blur(10px);border:1px solid var(--dark-line);box-shadow:var(--shadow-lg)}
  .atour-nav .btn span{display:none}
  .atour-nav .btn.is-last span{display:inline;white-space:nowrap}
  .atour-nav .btn{padding-inline:14px}
}
