:root {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent2: #7c3aed;
  --accent-light: #eff6ff;
  --accent-glow: rgba(37,99,235,.12);
  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 40px -12px rgba(0,0,0,.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "Fira Code", monospace;
  --max-w: 1200px;
  --header-h: 68px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg: #0b1120;
  --bg-alt: #111827;
  --card: #1a2332;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #1e3048;
  --accent: #3b82f6;
  --accent2: #8b5cf6;
  --accent-light: #172554;
  --accent-glow: rgba(59,130,246,.15);
  --shadow: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.3);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.3);
  --shadow-xl: 0 20px 40px -12px rgba(0,0,0,.4);
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background var(--transition), color var(--transition);
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent2); }
img { max-width: 100%; height: auto; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ==================== HEADER ==================== */
.site-header {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}
[data-theme="dark"] .site-header {
  background: rgba(11,17,32,.9);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.site-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
  letter-spacing: -.02em;
}
.site-logo span { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-links a {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--accent); background: var(--accent-glow); }
.nav-links a.active { color: var(--accent); background: var(--accent-glow); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: .5rem; }

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text);
  transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); background: var(--accent-glow); transform: scale(1.05); }

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1.25rem;
  color: var(--text);
  cursor: pointer;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(37,99,235,.15), transparent),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(124,58,237,.08), transparent),
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(37,99,235,.08), transparent);
  pointer-events: none;
}
[data-theme="dark"] .hero::before {
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59,130,246,.2), transparent),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(139,92,246,.12), transparent),
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(59,130,246,.1), transparent);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .3;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.75rem; font-weight: 800; color: var(--text); display: block; letter-spacing: -.02em; }
.hero-stat .label { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.4); color: #fff; }
.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-sm { padding: .5rem 1rem; font-size: .8rem; border-radius: var(--radius-sm); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--muted); border: none; box-shadow: none; }
.btn-ghost:hover { color: var(--accent); background: var(--accent-glow); }

/* ==================== CARDS ==================== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(37,99,235,.2);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: .875rem; line-height: 1.6; }
.card .card-arrow {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  color: var(--border);
  transition: all var(--transition);
  font-size: 1.1rem;
}
.card:hover .card-arrow { color: var(--accent); transform: translateX(4px); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ==================== SECTIONS ==================== */
.section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}
.section-desc {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

/* ==================== DISCLAIMER ==================== */
.disclaimer-box {
  background: linear-gradient(135deg, #fefce8, #fef9c3);
  border: 1px solid #fbbf24;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: .875rem;
  color: #92400e;
  line-height: 1.6;
}
[data-theme="dark"] .disclaimer-box {
  background: linear-gradient(135deg, #422006, #451a03);
  border-color: #b45309;
  border-left-color: #f59e0b;
  color: #fcd34d;
}

/* ==================== STEPPER ==================== */
.stepper { display: flex; align-items: center; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.step-indicator {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  color: var(--muted);
  transition: all .3s;
}
.step-indicator.active {
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(37,99,235,.3);
}
.step-indicator.completed {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.step-connector { width: 20px; height: 2px; background: var(--border); flex-shrink: 0; }

.step-panel { display: none; animation: fadeSlideIn .4s ease; }
.step-panel.active { display: block; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==================== FORMS ==================== */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text);
}
.form-input, .form-select {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: .9rem;
  font-family: var(--font);
  transition: all var(--transition);
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.form-input.error { border-color: var(--error); }
.form-error { color: var(--error); font-size: .78rem; margin-top: .3rem; display: none; }
.form-error.visible { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ==================== TOGGLES ==================== */
.toggle-group { display: flex; flex-wrap: wrap; gap: .75rem; }
.toggle-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  transition: all var(--transition);
  min-width: 200px;
  flex: 1;
}
.toggle-item:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.toggle-item.active {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 12px;
  transition: .3s;
  cursor: pointer;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .3s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-label { font-size: .875rem; font-weight: 600; }
.toggle-desc { font-size: .75rem; color: var(--muted); }

/* ==================== TYPE SELECTOR ==================== */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 1.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.type-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.type-card.active {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.type-card .icon { font-size: 2.25rem; }
.type-card .label { font-size: .9rem; font-weight: 700; }

/* ==================== RADIO GROUP ==================== */
.radio-group { display: flex; flex-direction: column; gap: .75rem; }
.radio-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  transition: all var(--transition);
}
.radio-item:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.radio-item.active { border-color: var(--accent); background: var(--accent-light); box-shadow: 0 0 0 3px var(--accent-glow); }
.radio-item input[type="radio"] { margin-top: .25rem; accent-color: var(--accent); }
.radio-item .label { font-weight: 700; font-size: .9rem; }
.radio-item .desc { font-size: .82rem; color: var(--muted); margin-top: .25rem; line-height: 1.5; }

/* ==================== OUTPUT PANEL ==================== */
.output-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  flex-wrap: wrap;
  gap: .5rem;
}
.output-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.output-body {
  padding: 2rem;
  max-height: 600px;
  overflow-y: auto;
  font-size: .9rem;
  line-height: 1.85;
}
.output-body h2 { font-size: 1.2rem; margin: 1.75rem 0 .75rem; color: var(--text); font-weight: 700; }
.output-body h2:first-child { margin-top: 0; }
.output-body h3 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
.output-body p { margin-bottom: .75rem; }
.output-body ul, .output-body ol { margin-bottom: .75rem; padding-left: 1.5rem; }
.output-body li { margin-bottom: .25rem; }

/* ==================== TOAST ==================== */
.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.toast {
  background: var(--text);
  color: var(--bg);
  padding: .75rem 1.5rem;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  animation: toastIn .3s ease, toastOut .3s ease 2.5s forwards;
  display: flex;
  align-items: center;
  gap: .5rem;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-8px) scale(.95); } }

/* ==================== BREADCRUMB ==================== */
.breadcrumb { display: flex; align-items: center; gap: .4rem; padding: 1rem 0; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); font-size: .7rem; }

/* ==================== ARTICLE ==================== */
.article-content { max-width: 780px; font-size: .95rem; line-height: 1.85; }
.article-content h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; line-height: 1.3; font-weight: 800; letter-spacing: -.02em; }
.article-content h2 { font-size: 1.4rem; margin: 2.5rem 0 .75rem; font-weight: 700; letter-spacing: -.01em; }
.article-content h3 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; font-weight: 700; }
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: .4rem; }
.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  font-style: italic;
}
.article-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(37,99,235,.3); }
.article-content a:hover { text-decoration-color: var(--accent); }
.article-content strong { color: var(--text); font-weight: 700; }

.article-meta { color: var(--muted); font-size: .82rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; }

.article-sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.sidebar-card h4 { font-size: .9rem; margin-bottom: .75rem; font-weight: 700; }
.sidebar-card ul { list-style: none; }
.sidebar-card li { margin-bottom: .5rem; }
.sidebar-card a { font-size: .85rem; color: var(--muted); transition: color var(--transition); }
.sidebar-card a:hover { color: var(--accent); }

.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; align-items: start; }

/* ==================== FAQ ==================== */
.faq-list { max-width: 800px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
  background: var(--card);
  transition: all var(--transition);
}
.faq-item:hover { border-color: rgba(37,99,235,.2); }
.faq-item.open { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.faq-question {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font);
  transition: color var(--transition);
  gap: 1rem;
}
.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform .3s;
  flex-shrink: 0;
}
.faq-item.open .faq-question { color: var(--accent); }
.faq-item.open .faq-question::after { content: "−"; color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer-inner { padding: 0 1.25rem 1.25rem; font-size: .9rem; color: var(--muted); line-height: 1.75; }

/* ==================== SEARCH ==================== */
.search-box { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.search-input {
  flex: 1;
  padding: .85rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  transition: all var(--transition);
}
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.search-chips { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.search-chip {
  padding: .45rem .9rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}
.search-chip.active, .search-chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.search-results { list-style: none; }
.search-result-item { padding: 1.25rem 1rem; border-bottom: 1px solid var(--border); transition: background var(--transition); }
.search-result-item:hover { background: var(--accent-glow); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item h3 { font-size: 1rem; margin-bottom: .25rem; font-weight: 600; }
.search-result-item h3 a { color: var(--text); }
.search-result-item h3 a:hover { color: var(--accent); }
.search-result-item p { font-size: .85rem; color: var(--muted); }
.search-result-item .tag { display: inline-block; font-size: .7rem; padding: .2rem .55rem; border-radius: 50px; background: var(--accent-light); color: var(--accent); font-weight: 700; margin-top: .35rem; }

/* ==================== CHECKLIST ==================== */
.checklist { list-style: none; }
.checklist li { padding: .5rem 0; padding-left: 2rem; position: relative; font-size: .9rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; width: 22px; height: 22px; border-radius: 50%; background: #dcfce7; color: var(--success); font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; top: .55rem; }

/* ==================== TAGS ==================== */
.tag { display: inline-block; font-size: .72rem; padding: .2rem .65rem; border-radius: 50px; background: var(--accent-light); color: var(--accent); font-weight: 700; letter-spacing: .02em; }

/* ==================== AD SLOT ==================== */
.ad-slot {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  margin: 2rem 0;
  min-height: 90px;
}
.ad-slot-inline {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem;
  text-align: center;
  margin: 1.5rem 0;
  min-height: 250px;
}
.ad-slot-sidebar {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem;
  text-align: center;
  margin-bottom: 1rem;
  min-height: 250px;
}
.ad-slot-multiplex {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  margin: 2rem 0;
  min-height: 300px;
}
.ad-anchor {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,.1);
  text-align: center;
  padding: .5rem;
  min-height: 50px;
  transition: transform .3s ease;
}
.ad-anchor.hidden { transform: translateY(100%); }

/* ==================== COOKIE CONSENT ==================== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--card);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  padding: 1.25rem 1.5rem;
  display: none;
  animation: slideUp .4s ease;
}
.cookie-consent.visible { display: block; }
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-consent-text {
  flex: 1;
  font-size: .875rem;
  color: var(--text);
  line-height: 1.6;
  min-width: 280px;
}
.cookie-consent-text a { text-decoration: underline; }
.cookie-consent-actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-consent-actions .btn { white-space: nowrap; }

/* ==================== FOOTER ==================== */
.site-footer {
  margin-top: auto;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2.5rem; }
.footer-col h4 { font-size: .9rem; margin-bottom: .85rem; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { color: var(--muted); font-size: .85rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: .5rem;
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  z-index: 50;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat .num { font-size: 1.25rem; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    gap: 0;
    z-index: 99;
  }
  .nav-links.open a { padding: .75rem 0; width: 100%; }
  .article-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .output-body { max-height: 400px; }
  .cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .type-grid { grid-template-columns: 1fr; }
  .stepper { gap: .25rem; }
  .step-connector { width: 10px; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .cards-grid { grid-template-columns: 1fr; }
}

/* ==================== PRINT ==================== */
@media print {
  .site-header, .site-footer, .ad-slot, .ad-slot-inline, .ad-slot-sidebar,
  .ad-slot-multiplex, .ad-anchor, .cookie-consent, .output-actions, .stepper,
  .nav-links, .theme-toggle, .mobile-toggle, .breadcrumb,
  .toast-container, .btn, .scroll-top, .hero-grid { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.6; }
  .output-panel { border: none; box-shadow: none; }
  .output-body { max-height: none; overflow: visible; padding: 0; }
  .output-body h2 { font-size: 14pt; page-break-after: avoid; }
  .disclaimer-box { border: 1px solid #999; background: #f5f5f5; color: #333; border-left-width: 1px; }
  @page { margin: 2cm; }
}

/* ==================== ANIMATIONS ==================== */
.fade-in { opacity: 0; transform: translateY(20px); transition: all .6s cubic-bezier(.4,0,.2,1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: .1s; }
.stagger-2 { transition-delay: .2s; }
.stagger-3 { transition-delay: .3s; }
.stagger-4 { transition-delay: .4s; }
.stagger-5 { transition-delay: .5s; }
