/* ══════════════════════════════════════
   LiveOrder Guide — Styles
   ══════════════════════════════════════ */

:root {
  --g-bg: #0a0a1a;
  --g-surface: #12122a;
  --g-card: rgba(255,255,255,0.04);
  --g-border: rgba(255,255,255,0.08);
  --g-text: #e8e8f0;
  --g-text2: #8888a8;
  --g-muted: #55557a;
  --g-accent: #6366f1;
  --g-success: #22c55e;
  --g-warn: #f59e0b;
  --g-danger: #ef4444;
  --g-radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.guide-page {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--g-bg);
  color: var(--g-text);
  line-height: 1.7;
  font-size: 15px;
}

/* ── LAYOUT ── */
.guide-layout {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR NAV ── */
.guide-sidebar {
  width: 280px;
  background: var(--g-surface);
  border-right: 1px solid var(--g-border);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  padding: 24px 0;
}
.guide-sidebar-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--g-border);
  margin-bottom: 16px;
}
.guide-sidebar-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.guide-sidebar-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--g-accent);
  text-decoration: none;
  font-size: 13px;
  margin-top: 8px;
  transition: opacity 0.15s;
}
.guide-sidebar-header .back-link:hover { opacity: 0.8; }

.guide-nav { list-style: none; }
.guide-nav li { margin: 0; }
.guide-nav a {
  display: block;
  padding: 8px 20px;
  color: var(--g-text2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.guide-nav a:hover {
  color: var(--g-text);
  background: rgba(255,255,255,0.03);
}
.guide-nav a.active {
  color: var(--g-accent);
  border-left-color: var(--g-accent);
  background: rgba(99,102,241,0.08);
  font-weight: 600;
}
.guide-nav .nav-section {
  padding: 16px 20px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--g-muted);
  font-weight: 700;
}

/* ── MAIN CONTENT ── */
.guide-main {
  margin-left: 280px;
  flex: 1;
  padding: 40px 60px 80px;
  max-width: 900px;
}

.guide-main h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}
.guide-main .guide-subtitle {
  font-size: 16px;
  color: var(--g-text2);
  margin-bottom: 40px;
}
.guide-main h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--g-border);
  color: #fff;
  scroll-margin-top: 20px;
}
.guide-main h2:first-of-type { border-top: none; margin-top: 0; }
.guide-main h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--g-text);
}

.guide-main p {
  margin-bottom: 14px;
  color: var(--g-text2);
}

/* ── STEP BLOCKS ── */
.step {
  background: var(--g-card);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  padding: 20px 24px;
  margin: 16px 0;
  position: relative;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--g-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  margin-right: 10px;
  flex-shrink: 0;
}
.step-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.step-desc {
  color: var(--g-text2);
  font-size: 14px;
  line-height: 1.6;
  padding-left: 38px;
}

/* ── TIP / WARNING / NOTE BOXES ── */
.guide-tip, .guide-warn, .guide-note {
  border-radius: 8px;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  gap: 10px;
}
.guide-tip {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  color: #86efac;
}
.guide-warn {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  color: #fcd34d;
}
.guide-note {
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  color: #a5b4fc;
}
.guide-tip .icon, .guide-warn .icon, .guide-note .icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* ── KEYBOARD SHORTCUT ── */
kbd {
  display: inline-block;
  padding: 2px 7px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--g-text);
  line-height: 1.4;
}

/* ── FEATURE TABLE ── */
.feature-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}
.feature-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--g-surface);
  border-bottom: 2px solid var(--g-border);
  color: var(--g-text2);
  font-weight: 600;
  font-size: 12px;
}
.feature-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--g-border);
  color: var(--g-text2);
}
.feature-table tr:hover td {
  background: rgba(255,255,255,0.02);
}
.feature-table code {
  background: rgba(99,102,241,0.15);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--g-accent);
}

/* ── SCREENSHOT PLACEHOLDER ── */
.guide-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--g-border);
  margin: 12px 0;
  background: var(--g-surface);
}

/* ── SCROLLBAR ── */
.guide-sidebar::-webkit-scrollbar { width: 4px; }
.guide-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* ── TOOLTIP SYSTEM ── */
.lo-tooltip {
  display: none;
  position: absolute;
  z-index: 9999;
  max-width: 320px;
  padding: 12px 16px;
  background: rgba(15,23,42,0.97);
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  font-size: 12px;
  line-height: 1.6;
  color: #c4b5fd;
  pointer-events: none;
  animation: ttFadeIn 0.15s ease-out;
}
.lo-tooltip.visible { display: block; }
.lo-tooltip-title {
  font-weight: 700;
  color: #e0e7ff;
  margin-bottom: 4px;
  font-size: 13px;
}

@keyframes ttFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tooltip trigger indicator */
[data-tooltip]::after {
  content: '?';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  background: rgba(139,92,246,0.2);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: #a78bfa;
  margin-left: 4px;
  cursor: help;
  vertical-align: middle;
  line-height: 1;
}
body:not(.tooltips-on) [data-tooltip]::after { display: none; }

/* Tooltip toggle button (inline in topbar) */
.tooltip-toggle {
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid rgba(139,92,246,0.3);
  background: rgba(139,92,246,0.08);
  backdrop-filter: blur(12px);
  color: #a78bfa;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  margin-left: 6px;
  white-space: nowrap;
}
.tooltip-toggle:hover {
  background: rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.5);
}
.tooltip-toggle.active {
  background: rgba(139,92,246,0.2);
  border-color: var(--g-accent);
  color: #e0e7ff;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .guide-sidebar { width: 240px; }
  .guide-main { margin-left: 240px; padding: 24px 30px 60px; }
}
@media (max-width: 680px) {
  .guide-sidebar { display: none; }
  .guide-main { margin-left: 0; padding: 20px 16px 60px; }
}
