/* Dnsway.1 — Setup Guide Print Styles */
:root {
  --primary: #4f6ef7;
  --primary-light: #6b85f8;
  --gradient: linear-gradient(135deg, #4f6ef7, #6366f1);
  --bg: #f0f2f5;
  --surface: #fff;
  --border: #e2e6ed;
  --text: #111318;
  --text-secondary: #2d3140;
  --muted: #6b7280;
  --green: #10b981;
  --green-bg: #ecfdf5;
  --orange: #f59e0b;
  --orange-bg: #fffbeb;
  --red: #ef4444;
  --red-bg: #fef2f2;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.guide-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.95);
}
.guide-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.guide-header .brand .logo {
  width: 30px; height: 30px;
  background: var(--gradient); color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(79,110,247,0.3);
}
.guide-header .brand .name {
  font-size: 0.95rem; font-weight: 700;
  color: var(--text);
}
.guide-header .header-actions {
  display: flex; align-items: center; gap: 12px;
}
.guide-header .btn-back {
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.guide-header .btn-back:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-pdf {
  padding: 7px 18px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(79,110,247,0.25);
}
.btn-pdf:hover {
  box-shadow: 0 4px 14px rgba(79,110,247,0.35);
  transform: translateY(-1px);
}

/* ── Content ── */
.guide-container {
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}
.guide-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.guide-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.5;
}

/* ── Step Cards ── */
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  page-break-inside: avoid;
}
.step-card .step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 0;
}
.step-card .step-num {
  width: 32px; height: 32px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-card .step-title {
  font-size: 1rem;
  font-weight: 600;
}
.step-card .step-body {
  padding: 14px 24px 20px;
}
.step-card .step-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Screenshot Placeholder ── */
.screenshot {
  margin: 16px 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.screenshot .screenshot-inner {
  width: 100%;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.screenshot .screenshot-icon {
  font-size: 2.4rem;
  opacity: 0.6;
}
.screenshot .screenshot-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.screenshot .screenshot-desc {
  font-size: 0.76rem;
  color: var(--muted);
  max-width: 320px;
}
.screenshot.mock-phone {
  max-width: 280px;
  margin: 16px auto 20px;
  border-radius: 24px;
  border: 2px solid var(--border);
}
.screenshot.mock-desktop {
  border-radius: var(--radius);
}

/* ── Tips & Warnings ── */
.tip {
  margin: 14px 24px 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.84rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tip-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.tip-info { background: var(--primary-bg); color: var(--primary); border: 1px solid rgba(79,110,247,0.15); }
.tip-success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(16,185,129,0.15); }
.tip-warning { background: var(--orange-bg); color: var(--orange); border: 1px solid rgba(245,158,11,0.15); }
.tip-danger { background: var(--red-bg); color: var(--red); border: 1px solid rgba(239,68,68,0.15); }

/* ── Config Table ── */
.config-table {
  margin: 14px 24px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.config-table table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.config-table th { padding: 10px 16px; background: var(--bg); text-align: left; font-weight: 600; border-bottom: 1px solid var(--border); }
.config-table td { padding: 10px 16px; border-bottom: 1px solid var(--border-light); }
.config-table tr:last-child td { border-bottom: none; }
.config-table code {
  background: var(--primary-bg);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.82rem;
  user-select: all;
}

/* ── Overview Box ── */
.overview-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.overview-box h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.overview-box ul {
  list-style: none;
  padding: 0;
}
.overview-box ul li {
  padding: 4px 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.overview-box ul li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Print Styles ── */
@media print {
  .guide-header { position: static; background: #fff; border-bottom: 1px solid #ddd; }
  .guide-header .btn-back { display: none; }
  .btn-pdf { display: none !important; }
  .lang-select { display: none; }
  .step-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  .screenshot { break-inside: avoid; border: 1px solid #ddd; }
  .tip { break-inside: avoid; }
  body { background: #fff; font-size: 11pt; }
  .guide-container { padding: 20px; max-width: 100%; }
  .guide-title { font-size: 22pt; }
  @page { margin: 1.5cm; }
}

/* ── Language Selector ── */
.lang-select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.76rem;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  outline: none;
}
.lang-select:hover, .lang-select:focus {
  border-color: var(--primary);
}
