/* ---------- Language picker ---------- */
.tour-lock { overflow: hidden; }
.tour-lang { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 30% 20%, rgba(245,179,1,.25), transparent 50%), rgba(10,13,20,.86); backdrop-filter: blur(6px); animation: tourFade .3s ease; }
.tour-lang-card { width: min(420px, 100%); background: #fff; border-radius: 24px; padding: 28px 22px 22px; text-align: center; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); animation: tourPop .35s cubic-bezier(.2,.9,.3,1.2); }
.tour-lang-card img { margin: 0 auto 8px; display: block; }
.tour-lang-card h2 { margin: 0 0 4px; font-size: 1.5rem; font-weight: 900; }
.tour-lang-card p { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.tour-lang-list { display: grid; gap: 10px; }
.tour-lang-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 16px; font-size: 1.1rem; transition: border-color .15s, background .15s, transform .15s; }
.tour-lang-list a:hover, .tour-lang-list a:focus-visible { border-color: var(--amber); background: var(--amber-soft); transform: translateY(-1px); }
.tour-lang-list a b { font-weight: 800; }
.tour-lang-list a small { color: var(--muted); font-size: .8rem; }

/* ---------- Tour ---------- */
.tour-layer { position: fixed; inset: 0; z-index: 190; pointer-events: none; }
.tour-shade { position: absolute; inset: 0; pointer-events: auto; }
.tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 4px var(--amber), 0 0 0 9999px rgba(10,13,20,.62); transition: top .3s ease, left .3s ease, width .3s ease, height .3s ease; pointer-events: none; }
.tour-spot::after { content: ""; position: absolute; inset: -4px; border-radius: 16px; border: 3px solid var(--amber); animation: tourPulse 1.6s ease-out infinite; }
.tour-center .tour-shade { background: rgba(10,13,20,.62); }
.tour-passthru .tour-shade { pointer-events: none; }
.tour-tip { position: fixed; width: min(340px, calc(100vw - 20px)); background: #fff; color: var(--text); border-radius: 18px; padding: 16px 18px; box-shadow: 0 20px 50px -12px rgba(0,0,0,.45); pointer-events: auto; animation: tourPop .25s ease; }
.tour-center .tour-tip { top: 50% !important; left: 50% !important; right: auto !important; bottom: auto !important; transform: translate(-50%, -50%); width: min(380px, calc(100vw - 32px)); text-align: center; padding: 22px; }
[dir="rtl"] .tour-center .tour-tip { transform: translate(-50%, -50%); }
.tour-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tour-count { font-size: .75rem; font-weight: 800; color: #a77a00; background: var(--amber-soft); padding: 3px 10px; border-radius: 99px; }
.tour-x { border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.tour-tip h3 { margin: 4px 0 6px; font-size: 1.08rem; font-weight: 800; }
.tour-tip p { margin: 0; color: #4a5263; font-size: .93rem; line-height: 1.75; }
.tour-dots { display: flex; gap: 5px; margin: 14px 0 12px; flex-wrap: wrap; }
.tour-center .tour-dots { justify-content: center; }
.tour-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line); transition: width .2s, background .2s; }
.tour-dots i.done { background: #f3d27a; }
.tour-dots i.on { width: 20px; background: var(--amber); }
.tour-btns { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tour-btns .btn { min-height: 40px; padding-inline: 18px; }
.tour-wait { font-size: .85rem; font-weight: 700; color: #a77a00; }
@media (max-width: 639px) {
  .tour-tip { width: auto; }
  .tour-tip p { font-size: .9rem; }
}
@keyframes tourFade { from { opacity: 0; } }
@keyframes tourPop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.tour-center .tour-tip { animation: none; }
@keyframes tourPulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-spot::after, .tour-tip, .tour-lang, .tour-lang-card { animation: none; transition: none; } }

/* ---------- Help center ---------- */
.help-hero { text-align: center; padding: 34px 0 10px; }
.help-hero h1 { margin: 0 0 6px; font-size: 1.8rem; font-weight: 900; }
.help-hero p { margin: 0; color: var(--muted); }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 24px 0 40px; }
.help-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: border-color .15s, transform .15s, box-shadow .15s; text-align: start; }
.help-card:hover { border-color: var(--amber); transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(0,0,0,.35); }
.help-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--amber-soft); color: #a77a00; display: grid; place-items: center; }
.help-ic .ic { width: 24px; height: 24px; }
.help-card b { display: block; font-size: 1.02rem; margin-bottom: 3px; }
.help-card small { color: var(--muted); line-height: 1.6; display: block; }
.help-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.help-meta span { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--bg); color: var(--muted); }
.help-meta .done { background: #e6f6ea; color: #1d7a3a; }
.help-meta .lock { background: #fff3d6; color: #8a6200; }
.tour-modal { position: fixed; inset: 0; z-index: 195; display: grid; place-items: center; padding: 16px; background: rgba(10,13,20,.6); }
.tour-modal[hidden] { display: none; }
.tour-modal-card { width: min(380px, 100%); background: #fff; border-radius: 20px; padding: 24px; text-align: center; }
.tour-modal-card .help-ic { margin: 0 auto 10px; }
.tour-modal-card h3 { margin: 0 0 6px; }
.tour-modal-card p { margin: 0 0 18px; color: var(--muted); }
.tour-modal-card .btn { width: 100%; margin-top: 8px; }
.help-fab { position: fixed; inset-inline-end: 16px; bottom: 24px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); font-weight: 900; font-size: 1.3rem; }
@media (max-width: 1080px) { .help-fab { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ---------- Push permission card & settings box ---------- */
.push-ask { position: fixed; z-index: 120; inset-inline: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); margin-inline: auto; max-width: 440px; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: 0 20px 50px -15px rgba(0,0,0,.4); transform: translateY(140%); opacity: 0; transition: transform .35s cubic-bezier(.2,.9,.3,1.1), opacity .3s; }
.push-ask.show { transform: none; opacity: 1; }
.push-ask-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--amber-soft); display: grid; place-items: center; font-size: 1.4rem; }
.push-ask-txt b { display: block; font-size: .98rem; }
.push-ask-txt small { color: var(--muted); line-height: 1.6; display: block; }
.push-ask-btns { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.push-ask-btns .btn { min-height: 40px; padding-inline: 18px; }
@media (max-width: 1080px) { .push-ask { bottom: calc(80px + env(safe-area-inset-bottom)); } }
.push-box { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 16px; }
.push-box[hidden] { display: none; }
.push-box-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--amber-soft); color: #a77a00; display: grid; place-items: center; }
.push-box > div { flex: 1; min-width: 0; }
.push-box b { display: block; }
.push-box small { color: var(--muted); }
