:root {
  --bg: #0a0a0a;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --green: #00d26a;
  --green2: #00ff88;
  --blue: #00b4d8;
  --muted: #666;
  --text: #e0e0e0;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; -webkit-font-smoothing: antialiased; }

body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px); pointer-events: none; z-index: 1000; }

/* NAV */
.terminal-bar { background: #1e1e1e; border-bottom: 1px solid #333; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: 'Source Code Pro', monospace; font-size: 13px; color: #888; position: sticky; top: 0; z-index: 100; }
.tb-left { display: flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca41; }
.site-name { color: var(--green); text-decoration: none; margin-left: 8px; font-weight: 600; }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a { color: #666; text-decoration: none; font-size: 12px; letter-spacing: 1px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--green); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ARTICLE */
.article-wrap { max-width: 780px; margin: 0 auto; padding: 32px 24px 60px; }

.breadcrumb { font-family: 'Source Code Pro', monospace; font-size: 11px; color: #444; margin-bottom: 28px; letter-spacing: 1px; }
.breadcrumb a { color: #555; text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: #555; }

.article-header { margin-bottom: 28px; }
.article-label { font-family: 'Source Code Pro', monospace; font-size: 11px; color: var(--green); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; }
.article-label::before { content: '// '; opacity: 0.5; }
h1 { font-size: clamp(24px, 4vw, 38px); font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 14px; letter-spacing: -0.5px; }
.byline { font-family: 'Source Code Pro', monospace; font-size: 11px; color: #444; letter-spacing: 1px; }
.byline a { color: #555; text-decoration: none; }
.byline a:hover { color: var(--green); }

.article-intro p { font-size: 17px; color: #aaa; line-height: 1.8; margin-bottom: 28px; border-left: 2px solid rgba(0,210,106,0.3); padding-left: 20px; }

.article-body h2 { font-size: 22px; font-weight: 600; color: var(--white); margin: 36px 0 14px; padding-top: 8px; border-top: 1px solid var(--border); }
.article-body p { font-size: 15px; color: #999; margin-bottom: 16px; line-height: 1.85; }
.article-body strong { color: var(--text); }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 16px; }
.article-body li { font-size: 15px; color: #999; margin-bottom: 8px; line-height: 1.7; }

/* CODE */
.code-block { background: #060606; border: 1px solid #1a1a1a; border-radius: 4px; padding: 18px 22px; font-family: 'Source Code Pro', monospace; font-size: 13px; line-height: 1.8; margin: 18px 0 24px; overflow-x: auto; color: var(--green2); }

/* AFFILIATE BOX */
.affiliate-box { background: var(--surface); border: 1px solid rgba(0,210,106,0.15); border-radius: 4px; padding: 20px; margin: 24px 0; }
.aff-label { font-family: 'Source Code Pro', monospace; font-size: 10px; color: #444; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.aff-label::before { content: '// '; }
.aff-card { display: flex; align-items: center; gap: 16px; text-decoration: none; padding: 10px 0; border-bottom: 1px solid #111; }
.aff-card:last-child { border-bottom: none; }
.aff-name { font-family: 'Source Code Pro', monospace; font-size: 14px; color: var(--green2); font-weight: 600; min-width: 120px; }
.aff-ctx { font-size: 13px; color: #666; flex: 1; }
.aff-cta { font-family: 'Source Code Pro', monospace; font-size: 12px; color: var(--green); flex-shrink: 0; }

/* FAQ */
.faq-section { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 28px; }
.faq-section h2 { font-size: 20px; color: var(--white); margin-bottom: 20px; }
.faq-item { margin-bottom: 22px; }
.faq-item h3 { font-size: 15px; color: var(--text); font-weight: 600; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: #888; margin: 0; }

/* CONCLUSION */
.conclusion { background: var(--surface); border: 1px solid rgba(0,210,106,0.2); border-radius: 4px; padding: 24px 28px; margin: 36px 0; }
.conclusion h2 { font-size: 16px; color: var(--green); font-family: 'Source Code Pro', monospace; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.conclusion p { font-size: 15px; color: var(--text); margin: 0; line-height: 1.8; }

/* RELATED */
.related { margin-top: 36px; border-top: 1px solid var(--border); padding-top: 24px; }
.related h3 { font-family: 'Source Code Pro', monospace; font-size: 11px; color: #444; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.related h3::before { content: '// '; }
.related ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 500px) { .related ul { grid-template-columns: 1fr; } }
.related li a { font-size: 14px; color: #666; text-decoration: none; display: block; padding: 8px 12px; background: #0d0d0d; border: 1px solid var(--border); border-radius: 3px; transition: border-color 0.2s; }
.related li a:hover { border-color: rgba(0,210,106,0.3); color: var(--text); }

/* FOOTER */
.site-footer { border-top: 1px solid var(--border); padding: 28px 24px; font-family: 'Source Code Pro', monospace; font-size: 12px; color: #444; letter-spacing: 1px; }
.footer-inner { max-width: 780px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-aff { color: #333; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #555; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--green); }

/* ADS (placeholders — AdSense not connected yet) */
.ad-label { position: absolute; top: 6px; left: 8px; font-family: 'Source Code Pro', monospace; font-size: 10px; color: var(--green); letter-spacing: 1px; }

/* Horizontal banner 728x90 */
.ad-horizontal { position: relative; width: 728px; max-width: 100%; height: 90px; margin: 28px auto; background: #111; border: 1px solid #222; border-radius: 3px; }

/* Sidebar column with 3 stacked vertical blocks (300x250), 16px gap */
.ad-sidebar-col { display: flex; flex-direction: column; gap: 16px; }
.ad-sidebar { position: relative; width: 300px; height: 250px; background: #111; border: 1px solid #222; border-radius: 3px; }

/* Article + right sidebar grid layout */
.article-with-sidebar { display: block; }
@media (min-width: 1201px) {
  .article-wrap { max-width: 1140px; }
  .article-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
  .article-with-sidebar > article { min-width: 0; max-width: 780px; }
  .ad-sidebar-col { position: sticky; top: 70px; }
}

/* On mobile / narrow screens: hide sidebar, keep horizontal ads */
@media (max-width: 1200px) {
  .ad-sidebar-col { display: none; }
}
