/* ---- Plugin documentation page (page-specific; uses theme tokens from style.css) ---- */
.doc-hero h1 { max-width: none; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 26px 0 0; }
.doc-meta li { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .92rem; }
.doc-meta li span { color: var(--muted); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.doc-meta li:nth-child(1) strong { color: var(--brand-blue-ink); }
.doc-meta li:nth-child(2) strong { color: var(--brand-green-ink); }
.doc-meta li:nth-child(3) strong { color: var(--brand-orange-ink); }
.doc-meta code, .doc-main code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .86em; background: var(--brand-purple-soft); color: var(--brand-purple-ink); border-radius: 6px; padding: .12em .45em; }

.doc-wrap { padding-top: 48px; }
.doc-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .doc-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 64px; } }
.doc-main { max-width: 780px; }

/* sidebar */
.doc-side { position: relative; }
@media (min-width: 1000px) { .doc-side { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 6px; } }
.doc-toc-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; font: inherit; font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; cursor: pointer; color: var(--ink); }
.doc-toc-toggle::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.doc-toc-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
.doc-nav { display: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 8px; }
.doc-nav.is-open { display: block; }
@media (min-width: 1000px) { .doc-toc-toggle { display: none; } .doc-nav { display: block; background: none; border: 0; padding: 0; margin: 0; } }
.doc-navgroup + .doc-navgroup { margin-top: 20px; }
.doc-nav-h { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 6px; }
.doc-navgroup:nth-child(1) .doc-nav-h { color: var(--brand-blue-ink); }
.doc-navgroup:nth-child(2) .doc-nav-h { color: var(--brand-green-ink); }
.doc-navgroup:nth-child(3) .doc-nav-h { color: var(--brand-purple-ink); }
.doc-navgroup:nth-child(4) .doc-nav-h { color: var(--brand-orange-ink); }
.doc-nav ul { list-style: none; margin: 0; padding: 0; }
.doc-nav a { display: flex; gap: 10px; padding: 6px 10px; margin-left: -10px; border-radius: 8px; border-left: 3px solid transparent; color: var(--ink-2); text-decoration: none; font-size: .94rem; font-weight: 500; }
.doc-nav a span { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.doc-nav a:hover { background: var(--paper-2); color: var(--ink); }
.doc-nav a.is-active { background: var(--brand-blue-soft); color: var(--brand-blue-ink); border-left-color: var(--brand-blue); font-weight: 600; }

/* chapters */
.doc-sec { padding-top: 8px; margin-bottom: 64px; scroll-margin-top: 96px; }
.chapter-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chapter-head h2 { margin: 0 !important; font-size: clamp(1.5rem, 3vw, 1.9rem); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chapter-num { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-family: var(--font-head); font-weight: 700; color: #fff; background: var(--brand-blue-ink); }
#sessions .chapter-num, #checkout .chapter-num, #receipts .chapter-num, #customers .chapter-num, #loyalty .chapter-num, #packs .chapter-num, #bookings .chapter-num { background: var(--brand-green-ink); }
#staff .chapter-num, #cash-close .chapter-num, #reports .chapter-num, #security .chapter-num, #privacy .chapter-num { background: var(--brand-purple-ink); }
#videos .chapter-num, #faq .chapter-num { background: var(--brand-orange-ink); }
.pro-tag { display: inline-block; font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--brand-purple-ink); color: #fff; padding: 3px 9px; border-radius: 999px; vertical-align: middle; }
.doc-main h3 { margin-top: 1.6em; }

/* steps */
.doc-steps { counter-reset: dstep; list-style: none; padding: 0; margin: 0 0 8px; }
.doc-step { counter-increment: dstep; position: relative; padding: 0 0 22px 56px; }
.doc-step::before { content: counter(dstep); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-blue-soft); color: var(--brand-blue-ink); font-weight: 700; font-family: var(--font-head); }
.doc-step:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--line); }
.doc-step h3 { margin: 4px 0 6px !important; font-size: 1.1rem; }
.doc-step p { margin: 0; color: var(--ink-2); }

/* callouts */
.callout { border-radius: 12px; padding: 16px 20px; margin: 22px 0; border-left: 4px solid; }
.callout p { margin: 0; }
.callout--info { background: var(--brand-blue-soft); border-color: var(--brand-blue); }
.callout--tip { background: var(--brand-green-soft); border-color: var(--brand-green); }
.callout--warn { background: var(--brand-orange-soft); border-color: var(--brand-orange); }

/* code */
.code-block { position: relative; margin: 14px 0 22px; }
.code-block pre { margin: 0; background: var(--ink); color: #e9eaf0; border-radius: 12px; padding: 18px 90px 18px 20px; overflow-x: auto; font-size: .95rem; }
.code-block pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.copy-btn { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); font: inherit; font-size: .82rem; font-weight: 600; border: 0; border-radius: 8px; padding: 7px 12px; background: #2b2e3b; color: #fff; cursor: pointer; }
.copy-btn:hover { background: var(--brand-blue-ink); }

/* tables & features */
.table-wrap table.opts { min-width: 0; }
.opts th { width: 32%; background: var(--paper-2); font-weight: 700; }
.doc-feats { margin: 18px 0; }
@media (min-width: 960px) { .doc-feats { grid-template-columns: repeat(2, 1fr); } }
.doc-feats .feature h3 { margin: 0 0 6px !important; font-size: 1.02rem; flex-wrap: wrap; }

/* faq inside docs */
.doc-main .faq { max-width: none; }

/* cta + footer note */
.doc-cta { display: grid; gap: 18px; align-items: center; background: var(--ink); color: #c3c6d1; border-radius: 18px; padding: 28px; margin: 24px 0 18px; position: relative; overflow: hidden; }
.doc-cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--brand-gradient); }
@media (min-width: 760px) { .doc-cta { grid-template-columns: 1fr auto; } }
.doc-cta h2 { color: #fff; font-size: 1.4rem; margin: 0 0 6px !important; }
.doc-cta p { margin: 0; }
.doc-cta a:not(.btn) { color: var(--brand-blue); }
.doc-foot { font-size: .88rem; color: var(--muted); text-align: center; max-width: none; }

/* ---- Game Zone page additions ---- */
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn--line { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn--line:hover { border-color: var(--brand-blue); color: var(--brand-blue-ink); }
.doc-shot { margin: 22px 0 28px; }
.doc-shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(20, 22, 31, .12); background: #14161f; }
.doc-shot figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; }
.doc-shot--narrow { max-width: 260px; margin: 0 auto; }
.doc-shot--narrow img { background: #fff; }
.doc-shot--phone { max-width: 280px; margin: 0 auto; }
.doc-shot--phone img { border-radius: 26px; }
.doc-split { display: grid; gap: 24px; align-items: start; }
@media (min-width: 760px) { .doc-split { grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; } .doc-split--rev { grid-template-columns: 280px minmax(0, 1fr); } }
.doc-split .doc-shot { margin: 0; }
.video-list { padding-left: 1.2em; }
.video-list li { margin-bottom: 10px; }
.doc-buy { margin-top: 0; }
.doc-buy--mid { margin: 8px 0 64px; }
