*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{--red:#c0392b;--gold:#f0a500;--bg:#0d0d0d;--card:#1a1a1a;--border:#2a2a2a;--text:#f0f0f0;--muted:#888}
body{font-family:'Segoe UI',system-ui,sans-serif;background:var(--bg);color:var(--text);line-height:1.7}
a{color:var(--gold);text-decoration:none}
a:hover{text-decoration:underline}

nav{display:flex;align-items:center;justify-content:space-between;padding:1.1rem 2rem;border-bottom:1px solid #1e1e1e;position:sticky;top:0;background:rgba(13,13,13,.95);backdrop-filter:blur(12px);z-index:100}
.logo{font-size:1.2rem;font-weight:900;color:var(--gold);text-decoration:none;letter-spacing:-.02em}
.logo span{color:var(--text)}
.nav-logo{height:28px;width:auto;vertical-align:middle;margin-right:6px}
.nav-links{display:flex;align-items:center;gap:1rem}
.nav-links a{color:#aaa;font-size:.88rem;font-weight:600;text-decoration:none}
.nav-links a:hover{color:#eee}

.page-hero{max-width:720px;margin:0 auto;padding:2.5rem 2rem 1.5rem;text-align:center}
.page-hero h1{font-size:clamp(1.4rem,3.5vw,2rem);font-weight:900;margin-bottom:.4rem}
.page-hero h1 em{font-style:normal;color:var(--gold)}
.page-hero p{color:var(--muted);font-size:.95rem;max-width:500px;margin:0 auto}
.lang-switch{display:inline-block;margin-top:.7rem;font-size:.82rem;color:#666;background:#1a1a1a;border:1px solid #2a2a2a;padding:.3rem .8rem;border-radius:20px}
.lang-switch a{color:var(--gold)}

.guide-content{max-width:720px;margin:0 auto;padding:0 2rem 4rem}
.guide-section{margin-top:2rem}
.section-num{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--red);color:#fff;font-size:.9rem;font-weight:800;margin-right:.6rem;flex-shrink:0}
.guide-section h2{font-size:1.3rem;font-weight:800;display:flex;align-items:center;margin-bottom:1rem;scroll-margin-top:80px}
.guide-section h3{font-size:1.05rem;font-weight:700;color:var(--gold);margin:1.2rem 0 .5rem}
.guide-section p,.guide-section li{font-size:.95rem;color:#ccc;line-height:1.7}
.guide-section ul,.guide-section ol{padding-left:1.3rem;margin:.5rem 0}
.guide-section li{margin-bottom:.3rem}

.step-list{list-style:none;padding:0;counter-reset:step}
.step-list li{counter-increment:step;background:var(--card);border:1px solid var(--border);border-radius:10px;padding:.9rem 1rem .9rem 3rem;margin-bottom:.6rem;position:relative;font-size:.93rem;color:#ccc}
.step-list li::before{content:counter(step);position:absolute;left:.9rem;top:.85rem;width:22px;height:22px;border-radius:50%;background:var(--red);color:#fff;font-size:.75rem;font-weight:800;display:flex;align-items:center;justify-content:center}

.tip-box{background:rgba(240,165,0,.08);border:1px solid rgba(240,165,0,.25);border-radius:10px;padding:.9rem 1rem;margin:1rem 0;font-size:.9rem;color:#ddd}
.tip-box strong{color:var(--gold)}
.warn-box{background:rgba(192,57,43,.08);border:1px solid rgba(192,57,43,.3);border-radius:10px;padding:.9rem 1rem;margin:1rem 0;font-size:.9rem;color:#ddd}
.warn-box strong{color:#e74c3c}
.purpose-box{background:rgba(255,255,255,.03);border-left:3px solid var(--gold);border-radius:0 8px 8px 0;padding:.7rem 1rem;margin-bottom:1.2rem;font-size:.88rem;color:#aaa;line-height:1.6}
.purpose-box strong{color:var(--gold);font-weight:700}

.flow-diagram{display:flex;flex-direction:column;gap:0;margin:1.5rem 0}
.flow-step{display:flex;align-items:flex-start;gap:14px}
.flow-line{display:flex;flex-direction:column;align-items:center;flex-shrink:0;width:40px}
.flow-icon{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.1rem;font-weight:800;color:#fff;flex-shrink:0;z-index:1}
.flow-icon.seller{background:var(--red)}
.flow-icon.buyer{background:#2980b9}
.flow-icon.both{background:var(--gold);color:#1a1a1a}
.flow-icon.admin{background:#8e44ad}
.flow-icon.done{background:#27ae60}
.flow-connector{width:2px;height:28px;background:var(--border);flex-shrink:0}
.flow-body{flex:1;padding:6px 0 20px}
.flow-body .flow-title{font-size:.92rem;font-weight:700;color:var(--text);margin-bottom:2px}
.flow-body .flow-desc{font-size:.82rem;color:var(--muted);line-height:1.5}
.flow-body .flow-role{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-bottom:2px}
.flow-role.seller-role{color:var(--red)}
.flow-role.buyer-role{color:#2980b9}
.flow-role.both-role{color:var(--gold)}
.flow-role.admin-role{color:#8e44ad}
.flow-legend{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:1rem}
.flow-legend-item{display:flex;align-items:center;gap:6px;font-size:.75rem;color:var(--muted)}
.flow-legend-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}
.flow-legend-dot.seller{background:var(--red)}
.flow-legend-dot.buyer{background:#2980b9}
.flow-legend-dot.both{background:var(--gold)}
.flow-legend-dot.admin{background:#8e44ad}
.flow-legend-dot.done{background:#27ae60}

.page-nav{display:flex;justify-content:space-between;align-items:center;max-width:720px;margin:2rem auto 0;padding:1rem 2rem;border-top:1px solid var(--border);gap:1rem}
.page-nav a{display:flex;align-items:center;gap:.5rem;font-size:.88rem;font-weight:700;color:#aaa;padding:.6rem 1rem;border-radius:8px;border:1px solid var(--border);background:var(--card);text-decoration:none;transition:color .15s,border-color .15s}
.page-nav a:hover{color:var(--gold);border-color:rgba(240,165,0,.4)}
.page-nav .toc-link{color:var(--gold);border-color:rgba(240,165,0,.3)}
.page-nav .spacer{flex:1}

footer{border-top:1px solid #1e1e1e;padding:1.5rem 2rem;text-align:center;font-size:.8rem;color:#555;margin-top:2rem}
footer a{color:#666;text-decoration:none}
footer a:hover{color:#999}

@media(max-width:600px){
  nav{padding:.9rem 1rem}
  .guide-content{padding:0 1rem 3rem}
  .page-nav{padding:.8rem 1rem}
  .page-nav a{font-size:.8rem;padding:.5rem .7rem}
}

/* Points/referral table */
.guide-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 0.88rem; }
.guide-table th { background: rgba(192,57,43,0.15); color: var(--gold); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.guide-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.guide-table tr:last-child td { border-bottom: none; }
.guide-table td:nth-child(2) { font-weight: 700; color: #2ecc71; }
.guide-table td:nth-child(3) { color: var(--gold); }

/* ── Screenshots ─────────────────────────────────────────────────────────── */
.screenshot-row{display:flex;gap:12px;margin:1.2rem 0;flex-wrap:wrap}
.screenshot-row.single{justify-content:center}
.screenshot-wrap{flex:1;min-width:140px;max-width:220px;display:flex;flex-direction:column;align-items:center;gap:6px}
.screenshot-wrap img{width:100%;border-radius:14px;border:1px solid var(--border);box-shadow:0 4px 20px rgba(0,0,0,.5);display:block}
.screenshot-wrap figcaption{font-size:.72rem;color:var(--muted);text-align:center;line-height:1.4}
@media(max-width:600px){
  .screenshot-row{gap:8px}
  .screenshot-wrap{min-width:120px}
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.screenshot-wrap img{cursor:zoom-in;transition:opacity .15s}
.screenshot-wrap img:hover{opacity:.85}
#sc-lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:9999;align-items:center;justify-content:center;padding:1rem}
#sc-lightbox.open{display:flex}
#sc-lightbox img{max-width:min(420px,90vw);max-height:90vh;border-radius:16px;box-shadow:0 8px 40px rgba(0,0,0,.8);object-fit:contain}
#sc-lightbox-close{position:absolute;top:1rem;right:1.2rem;font-size:2rem;color:#fff;cursor:pointer;line-height:1;background:none;border:none;opacity:.7}
#sc-lightbox-close:hover{opacity:1}
#sc-lightbox-caption{position:absolute;bottom:1.2rem;left:50%;transform:translateX(-50%);color:#ccc;font-size:.82rem;text-align:center;white-space:nowrap}

/* ── Dashboard stat icons ────────────────────────────────────────────────── */
.stat-list{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px 16px;margin:.6rem 0}
.stat-list li{display:flex;align-items:center;gap:8px;font-size:.9rem;color:#ccc;background:var(--card);border:1px solid var(--border);border-radius:8px;padding:.5rem .75rem}
.stat-list li .si{font-size:1.1rem;flex-shrink:0}
@media(max-width:500px){.stat-list{grid-template-columns:1fr}}
