/* หน้าลิงก์ขาย /id/<id> และหน้าบทความ /guides/* */
:root {
  --bg: #fafafa; --panel: #ffffff; --line: #e6e6ec; --text: #0d0c14; --muted: #6b6a78;
  --accent: #5b4ff0; --accent-ink: #ffffff; --warn: #b45309; --soft: #efedff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 'IBM Plex Sans Thai', 'Kanit', system-ui, sans-serif; overflow-x: hidden; }
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.kicker { color: var(--muted); margin: 0; font-size: 14px; }
h1, h2, .price, .stats dd, .btn, .cta { font-family: 'Kanit', 'IBM Plex Sans Thai', sans-serif; }
h1 { font-size: clamp(26px, 6vw, 38px); line-height: 1.25; margin: 4px 0 8px; }
h2 { font-size: 22px; margin: 32px 0 12px; }
h2 small { color: var(--muted); font-size: 14px; font-weight: 400; }
.price { font-size: clamp(34px, 9vw, 52px); font-weight: 800; color: var(--accent); margin: 0; line-height: 1.1; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; }
.stats dt { color: var(--muted); font-size: 13px; }
.stats dd { margin: 0; font-weight: 600; font-size: 20px; }
.note { margin: 8px 0; }
.contact { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 20px; }
.contact p { margin: 0; }
.btn, .cta { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; border-radius: 999px; padding: 10px 22px; box-shadow: 0 6px 18px rgba(91,79,240,.25); }
.cta { display: block; text-align: center; margin-top: 28px; font-size: 18px; padding: 14px; }
.poster { width: 100%; height: auto; border-radius: 12px; display: block; border: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.sk { position: relative; padding: 0; border: 2px solid var(--tc, var(--line)); border-radius: 10px; overflow: hidden; background: var(--panel); aspect-ratio: 360 / 502; cursor: zoom-in; }
.sk img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sk span { position: absolute; left: 4px; top: 4px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; border-radius: 6px; padding: 0 5px; }
.muted { color: var(--muted); }
.warn { margin-top: 28px; border: 1px solid #fed7aa; background: #fff7ed; border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.warn b { color: var(--warn); }
dialog { border: 0; padding: 12px; background: var(--panel); color: var(--text); border-radius: 14px; max-width: min(92vw, 420px); }
dialog::backdrop { background: rgba(0,0,0,.75); }
dialog img { width: 100%; border-radius: 10px; display: block; }
dialog p { margin: 8px 0; text-align: center; }
dialog button { width: 100%; border: 1px solid var(--line); background: none; color: var(--text); border-radius: 10px; padding: 8px; font: inherit; }

/* บทความ */
.article h1 { margin-top: 12px; }
.article p, .article li { color: #3b3a46; }
.article ol, .article ul { padding-left: 22px; }
.article li { margin: 6px 0; }
.article .lead { font-size: 18px; color: var(--text); }
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(250,250,250,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .in { max-width: 760px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topbar a { color: var(--text); text-decoration: none; }
.topbar .brand { display: flex; align-items: center; gap: 8px; font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 18px; }
.topbar .brand img { width: 36px; height: 36px; }
.topbar .go { background: var(--text); color: #fff; border-radius: 999px; padding: 6px 14px; font-family: 'Kanit', sans-serif; font-size: 14px; }
.related { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 12px; }
