/* ==========================================================================
   Raio Studio — giao diện trang chủ + các trang Tính năng / Lệnh / BXH
   (dùng cùng token màu với style.css: hồng pastel · lavender · trắng)
   ========================================================================== */
.ver { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--text-secondary); background: rgba(165, 123, 240, 0.12); border: 1px solid rgba(165, 123, 240, 0.25); }
.ver i { width: 7px; height: 7px; border-radius: 50%; background: #4fcf93; box-shadow: 0 0 0 3px rgba(79, 207, 147, 0.25); }
.btn-cta { background: linear-gradient(135deg, #b891f7, #f08cc2); color: #fff; box-shadow: 0 8px 24px rgba(165, 123, 240, 0.4); }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(165, 123, 240, 0.55); }

main.site2 { position: relative; z-index: 1; }
.sec { padding: clamp(56px, 8vw, 100px) 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto var(--space-7); }
.sec-head h2 { font-size: clamp(28px, 4.2vw, 42px); margin: 0 0 var(--space-3); }
.sec-head p { color: var(--text-secondary); font-size: 17px; }
.grad { background: linear-gradient(135deg, #9466ea, #ee6aab); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Hero ---------- */
.h2-hero { padding: calc(var(--nav-h) + 56px) 0 40px; }
.h2-hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.h2-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--accent-light); background: rgba(var(--accent-rgb), 0.12); border: 1px solid rgba(var(--accent-rgb), 0.25); margin-bottom: var(--space-4); }
.h2-hero h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.08; margin: 0 0 var(--space-4); }
.h2-hero p.lead { font-size: 18px; color: var(--text-secondary); max-width: 560px; margin-bottom: var(--space-5); }
.h2-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--space-5); }
.h2-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--text-tertiary); }
.h2-trust span { display: inline-flex; align-items: center; gap: 6px; }
.h2-trust svg { width: 15px; height: 15px; color: var(--accent); }

.botcard { position: relative; padding: 22px; border-radius: 28px; background: rgba(255, 255, 255, 0.85); border: 1px solid #fff; box-shadow: 0 24px 60px rgba(165, 123, 240, 0.3); backdrop-filter: blur(10px); }
.botcard-head { display: flex; align-items: center; gap: 14px; }
.botcard-head img { width: 62px; height: 62px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(165, 123, 240, 0.4); }
.botcard-head b { display: block; font-family: var(--font-display); font-size: 20px; }
.botcard-head span { font-size: 13px; color: var(--text-secondary); }
.botcard-on { margin-left: auto; font-size: 12px; font-weight: 700; color: #1f9d68; display: flex; align-items: center; gap: 6px; }
.botcard-on i { width: 8px; height: 8px; border-radius: 50%; background: #4fcf93; animation: pulse-dot 1.8s infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(79, 207, 147, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(79, 207, 147, 0); } }
.botcard-cmds { margin-top: 16px; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, #f6efff, #ffeef6); }
.botcard-cmds h4 { margin: 0 0 10px; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-cmd { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 12px; border: 1px solid rgba(165, 123, 240, 0.28); background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-primary); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.chip-cmd:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(165, 123, 240, 0.25); }
.chip-cmd code { color: #c2417f; font-weight: 700; }
.botcard-foot { display: flex; justify-content: space-between; margin-top: 14px; font-size: 12.5px; color: var(--text-tertiary); }
.float-tag { position: absolute; padding: 8px 14px; border-radius: 14px; font-size: 13px; font-weight: 700; background: #fff; color: var(--text-primary); box-shadow: 0 10px 26px rgba(165, 123, 240, 0.3); animation: tag-float 5s ease-in-out infinite; }
.float-tag.t1 { top: -18px; right: 24px; } .float-tag.t2 { bottom: 70px; left: -34px; animation-delay: -1.5s; } .float-tag.t3 { bottom: -16px; right: 40px; animation-delay: -3s; }
@keyframes tag-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }

/* ---------- Số liệu ---------- */
.stats2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.stat2 { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 22px; background: #fff; border: 1px solid rgba(165, 123, 240, 0.18); box-shadow: 0 8px 24px rgba(165, 123, 240, 0.12); transition: transform 0.2s; }
.stat2:hover { transform: translateY(-4px); }
.stat2 .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.stat2 .ico svg { width: 22px; height: 22px; }
.stat2:nth-child(1) .ico { background: #ffe3f0; color: #e0509a; } .stat2:nth-child(2) .ico { background: #e6f0ff; color: #4d7cf0; }
.stat2:nth-child(3) .ico { background: #e2f8ee; color: #1f9d68; } .stat2:nth-child(4) .ico { background: #fff4d6; color: #d99320; }
.stat2 b { display: block; font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.stat2 span { font-size: 13px; color: var(--text-secondary); }

/* ---------- Thẻ tính năng ---------- */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fcard { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: 26px; background: #fff; border: 1px solid rgba(165, 123, 240, 0.18); box-shadow: 0 8px 26px rgba(165, 123, 240, 0.1); transition: transform 0.25s, box-shadow 0.25s; overflow: hidden; color: inherit; }
.fcard::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 127, 184, 0.22), transparent 70%); transition: transform 0.4s; }
.fcard:hover { transform: translateY(-8px) rotate(-0.4deg); box-shadow: 0 22px 46px rgba(165, 123, 240, 0.28); }
.fcard:hover::before { transform: scale(1.5); }
.fcard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; position: relative; }
.fcard .ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #f3e8ff, #ffe6f1); color: #8d5fe0; }
.fcard .ico svg { width: 24px; height: 24px; }
.ftag { padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #c2417f; background: #ffe6f1; }
.fcard h3 { font-size: 19px; margin: 0 0 8px; position: relative; }
.fcard p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; flex: 1; position: relative; }
.fcard .more { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(165, 123, 240, 0.3); font-size: 13.5px; font-weight: 700; color: var(--accent-dark); display: flex; justify-content: space-between; position: relative; }

/* ---------- Khung giả lập Discord ---------- */
.demo-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.demo-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(165, 123, 240, 0.3); background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: var(--text-primary); cursor: pointer; transition: all 0.2s; }
.demo-tab code { font-size: 12px; padding: 2px 8px; border-radius: 8px; background: #ffe6f1; color: #c2417f; }
.demo-tab:hover { transform: translateY(-2px); }
.demo-tab.is-active { color: #fff; border-color: transparent; background: linear-gradient(135deg, #b891f7, #f08cc2); box-shadow: 0 8px 22px rgba(165, 123, 240, 0.45); }
.demo-tab.is-active code { background: rgba(255, 255, 255, 0.25); color: #fff; }
.dc { max-width: 880px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #313338; box-shadow: 0 30px 70px rgba(80, 50, 140, 0.4); color: #dbdee1; font-family: "Inter", sans-serif; }
.dc-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: #2b2d31; border-bottom: 1px solid #1f2023; font-size: 14px; }
.dc-bar b { color: #f2f3f5; } .dc-bar small { color: #949ba4; } .dc-bar .on { margin-left: auto; color: #3ba55c; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.dc-bar .on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ba55c; }
.dc-body { padding: 18px 20px 26px; min-height: 360px; }
.dc-row { display: flex; gap: 14px; margin-bottom: 16px; }
.dc-av { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: #5865f2; }
.dc-name { font-weight: 600; color: #f2f3f5; font-size: 15px; } .dc-name .bot { margin-left: 6px; padding: 1px 5px; border-radius: 4px; font-size: 10px; font-weight: 700; background: #5865f2; color: #fff; vertical-align: 1px; } .dc-name small { margin-left: 8px; font-weight: 400; color: #949ba4; font-size: 12px; }
.dc-cmd { color: #00a8fc; font-family: "JetBrains Mono", monospace; font-size: 15px; } .dc-cmd.typing::after { content: "▍"; animation: caret 0.8s steps(1) infinite; color: #dbdee1; }
@keyframes caret { 50% { opacity: 0; } }
.dc-reply { opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.5s; }
.dc-reply.show { opacity: 1; transform: none; }
.dc-reply img { display: block; max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; }
.dc-embed { max-width: 520px; padding: 12px 14px 14px; border-radius: 6px; border-left: 4px solid #e0314b; background: #2b2d31; margin: 8px 0; font-size: 14px; }
.dc-embed.y { border-left-color: #f5c518; } .dc-embed h5 { margin: 0 0 6px; font-size: 14px; color: #f2f3f5; }
.dc-layer { position: relative; width: 100%; line-height: 0; margin: 8px 0; } .dc-layer img { display: block; width: 100%; height: auto; margin: 0 !important; border-radius: 10px; } .dc-layer .dc-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; border-radius: 10px; overflow: hidden; }
.dc-text { color: #dbdee1; font-size: 14.5px; line-height: 1.5; margin: 2px 0 4px; } .dc-text b { color: #fff; }
.dc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dc-btn { padding: 7px 16px; border-radius: 4px; font-size: 14px; font-weight: 600; color: #fff; background: #4e5058; } .dc-btn.p { background: #5865f2; } .dc-btn.g { background: #248046; } .dc-btn.r { background: #da373c; }
.dc-select { display: flex; align-items: center; justify-content: space-between; max-width: 340px; margin-top: 10px; padding: 10px 14px; border-radius: 4px; background: #1e1f22; border: 1px solid #1e1f22; color: #949ba4; font-size: 14px; }
.dc-note { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-tertiary); }

/* ---------- Các bước + CTA + hệ sinh thái ---------- */
.steps2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step2 { padding: 22px; border-radius: 22px; background: #fff; border: 1px solid rgba(165, 123, 240, 0.18); box-shadow: 0 8px 22px rgba(165, 123, 240, 0.1); }
.step2 .n { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #b891f7, #f08cc2); }
.step2 h3 { font-size: 17px; margin: 0 0 6px; } .step2 p { color: var(--text-secondary); font-size: 14px; }
.marquee { overflow: hidden; padding: 14px 0; margin: 0 -24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marq 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.mq-chip { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid rgba(165, 123, 240, 0.25); font-size: 13.5px; font-weight: 600; white-space: nowrap; color: var(--text-secondary); }
.mq-chip code { color: #c2417f; font-weight: 700; margin-right: 6px; }
.cta2 { text-align: center; padding: clamp(36px, 6vw, 64px) 24px; border-radius: 34px; background: linear-gradient(135deg, #d9c8fb, #ffd0e6); box-shadow: 0 24px 60px rgba(165, 123, 240, 0.3); position: relative; overflow: hidden; }
.cta2 h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 10px; } .cta2 p { color: var(--text-secondary); max-width: 560px; margin: 0 auto 22px; }
.cta2 .h2-actions { justify-content: center; margin: 0; }

/* ---------- Trang con ---------- */
.page-hero { padding: calc(var(--nav-h) + 48px) 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 12px; } .page-hero p { color: var(--text-secondary); font-size: 17px; max-width: 640px; margin: 0 auto; }
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0; }
.feat-row.rev .feat-text { order: 2; }
.feat-text h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 8px 0 12px; } .feat-text p { color: var(--text-secondary); font-size: 16px; }
.feat-text ul { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; } .feat-text li { padding-left: 26px; position: relative; font-size: 15px; color: var(--text-secondary); }
.feat-text li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, #b891f7, #f08cc2); }
.feat-img { border-radius: 24px; overflow: hidden; background: #fff; padding: 10px; border: 1px solid rgba(165, 123, 240, 0.2); box-shadow: 0 22px 50px rgba(165, 123, 240, 0.3); transition: transform 0.3s; }
.feat-img:hover { transform: scale(1.02) rotate(0.5deg); } .feat-img img { display: block; width: 100%; height: auto; border-radius: 16px; }
.cmd-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.cmd-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin: 24px 0; }
.cmd-search { position: relative; width: min(460px, 100%); }
.cmd-search input { width: 100%; padding: 14px 18px 14px 46px; border-radius: 999px; border: 1px solid rgba(165, 123, 240, 0.35); background: #fff; font: inherit; font-size: 15px; color: var(--text-primary); outline: none; box-shadow: 0 8px 22px rgba(165, 123, 240, 0.12); }
.cmd-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(165, 123, 240, 0.18); }
.cmd-search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--accent); }
.cmd-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cmd-filters button { padding: 8px 15px; border-radius: 999px; border: 1px solid rgba(165, 123, 240, 0.3); background: #fff; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text-secondary); cursor: pointer; }
.cmd-filters button.is-on { color: #fff; border-color: transparent; background: linear-gradient(135deg, #b891f7, #f08cc2); }
.cmd-group { margin-bottom: 30px; } .cmd-group h2 { font-size: 21px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.cmd-list2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cmd-item { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid rgba(165, 123, 240, 0.16); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; text-align: left; font: inherit; color: inherit; }
.cmd-item:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(165, 123, 240, 0.22); }
.cmd-item code { align-self: flex-start; padding: 3px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: #c2417f; background: #ffe6f1; }
.cmd-item span { font-size: 14px; color: var(--text-secondary); line-height: 1.5; } .cmd-item em { align-self: flex-start; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #a57bf0, #f08cc2); }
.cmd-empty { text-align: center; padding: 40px; color: var(--text-tertiary); }

.lb-tools { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin: 22px 0 30px; }
.lb-tools[hidden] { display: none; }
.lb-tools select { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(165, 123, 240, 0.35); background: #fff; font: inherit; font-size: 14px; color: var(--text-primary); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 18px; align-items: end; max-width: 760px; margin: 0 auto 28px; }
.pod { text-align: center; padding: 22px 12px 18px; border-radius: 26px; background: #fff; border: 1px solid rgba(165, 123, 240, 0.2); box-shadow: 0 14px 36px rgba(165, 123, 240, 0.2); animation: pod-in 0.6s both; }
.pod.p1 { padding-top: 30px; background: linear-gradient(180deg, #fff6d6, #fff); } .pod.p2 { animation-delay: 0.1s; } .pod.p3 { animation-delay: 0.2s; }
@keyframes pod-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.pod img { width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 8px 20px rgba(165, 123, 240, 0.4); object-fit: cover; background: #efe5ff; }
.pod.p1 img { width: 92px; height: 92px; } .pod .medal { font-size: 30px; display: block; margin-bottom: 6px; } .pod b { display: block; margin-top: 8px; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pod span { color: var(--accent-dark); font-weight: 700; font-size: 14px; }
.lb-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.lb-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 18px; background: #fff; border: 1px solid rgba(165, 123, 240, 0.16); animation: pod-in 0.5s both; }
.lb-row .rk { width: 30px; font-weight: 800; color: var(--text-tertiary); } .lb-row img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #efe5ff; }
.lb-row .nm { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lb-row .vl { font-weight: 800; color: var(--accent-dark); } .lb-row small { display: block; color: var(--text-tertiary); font-weight: 500; font-size: 12px; }
.lb-empty { text-align: center; padding: 50px 20px; color: var(--text-secondary); }

@media (max-width: 960px) {
  .h2-hero-inner { grid-template-columns: 1fr; } .stats2, .steps2 { grid-template-columns: repeat(2, 1fr); } .fgrid { grid-template-columns: repeat(2, 1fr); }
  .feat-row { grid-template-columns: 1fr; gap: 24px; } .feat-row.rev .feat-text { order: 0; }
}
@media (max-width: 620px) {
  .fgrid, .cmd-list2 { grid-template-columns: 1fr; } .stats2 { grid-template-columns: 1fr 1fr; } .stat2 { padding: 14px; } .stat2 b { font-size: 21px; }
  .steps2 { grid-template-columns: 1fr; } .podium { grid-template-columns: 1fr; } .float-tag { display: none; } .ver { display: none; }
}
.pod img { display: block; margin: 0 auto; }

/* BXH theo game */
#lb-tabs { margin-bottom: 14px; }
.lb-metrics { margin-bottom: 22px; }
.lb-metrics[hidden] { display: none; }
.lb-metrics .demo-tab { padding: 7px 14px; font-size: 13px; }
.pod small { display: block; margin-top: 4px; color: var(--text-tertiary); font-size: 11.5px; font-weight: 500; line-height: 1.35; }

/* ---------- Mô phỏng tương tác (demo.js) ---------- */
.dc-main { position: relative; width: 100%; line-height: 0; margin: 8px 0 4px; border-radius: 10px; overflow: hidden; background: #1e1f22; }
.dc-main img { display: block; width: 100%; height: auto; transition: opacity 0.25s, filter 0.25s; }
.dc-main.loading img { opacity: 0.35; filter: blur(2px); }
.dc-main.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff; animation: dc-spin 0.7s linear infinite; }
@keyframes dc-spin { to { transform: rotate(360deg); } }
.dc-note2 { color: #dbdee1; font-size: 14px; line-height: 1.45; margin: 4px 0 2px; } .dc-note2 b { color: #fff; } .dc-note2 i { color: #949ba4; }
.dc-btn.act { border: 0; cursor: pointer; font-family: inherit; transition: filter 0.15s, transform 0.1s; } .dc-btn.act:hover { filter: brightness(1.15); } .dc-btn.act:active { transform: scale(0.96); }
.dc-sel { position: relative; max-width: 340px; margin-top: 10px; } .dc-sel .dc-select { margin-top: 0; max-width: none; cursor: pointer; } .dc-sel .dc-select:hover { border-color: #5865f2; }
.dc-select .ph.set { color: #dbdee1; }
.dc-menu { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow: auto; background: #2b2d31; border: 1px solid #1e1f22; border-radius: 6px; box-shadow: 0 10px 28px rgba(0,0,0,0.5); padding: 4px; }
.dc-opt { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 4px; cursor: pointer; color: #dbdee1; font-size: 14px; } .dc-opt:hover { background: #35373c; } .dc-opt.on { background: #404249; }
.dc-opt .em { font-size: 18px; } .dc-opt .tx { display: flex; flex-direction: column; min-width: 0; } .dc-opt small { color: #949ba4; font-size: 12px; white-space: normal; }
.dc-eph { margin: 12px 0 4px; padding: 10px 12px; border-left: 3px solid #5865f2; background: rgba(88,101,242,0.08); border-radius: 0 6px 6px 0; }
.dc-eph-h { font-size: 12px; color: #949ba4; margin-bottom: 8px; } .dc-eph-h a { color: #00a8fc; }
.dc-eph .dc-text code, .dc-note2 code, .dc-embed code, .dc-sub code { background: #1e1f22; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.dc-sub { margin-top: 10px; padding: 10px 12px; background: #1e1f22; border-radius: 6px; color: #dbdee1; font-size: 14px; }
.dc-sheet { display: block; width: 100%; max-width: 520px; height: auto; border-radius: 8px; margin: 10px 0 2px; }
.dc-embed .fld-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 10px; font-size: 13px; color: #dbdee1; } .dc-embed .fld b { color: #fff; }
.dc-foot { margin-top: 8px; font-size: 12px; color: #949ba4; }
@media (max-width: 640px) { .dc-menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; max-height: 55vh; } }

/* Nông trại & Có gì mới */
.farm-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.farm-showcase figure { margin: 0; padding: 10px; border-radius: 24px; background: #fff; border: 1px solid rgba(165,123,240,.2); box-shadow: 0 18px 44px rgba(165,123,240,.24); transition: transform .3s; }
.farm-showcase figure:hover { transform: translateY(-6px) rotate(-.4deg); }
.farm-showcase img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: contain; border-radius: 16px; background: linear-gradient(#e8f6d8,#cfeaa9); }
.farm-showcase figcaption { padding: 12px 6px 4px; display: flex; flex-direction: column; gap: 2px; }
.farm-showcase figcaption b { font-family: "Baloo 2", sans-serif; font-size: 17px; }
.farm-showcase figcaption span { color: var(--text-secondary); font-size: 13.5px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news { padding: 20px 22px; border-radius: 22px; background: #fff; border: 1px solid rgba(165,123,240,.18); box-shadow: 0 8px 24px rgba(165,123,240,.1); }
.news h3 { font-size: 17px; margin: 10px 0 6px; }
.news p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin: 0; }
.news-tag { display: inline-block; padding: 3px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; background: linear-gradient(135deg,#f3e8ff,#ffe6f1); color: #8d5fe0; }
@media (max-width: 900px) { .farm-showcase, .news-grid { grid-template-columns: 1fr; } .farm-showcase img { aspect-ratio: auto; } }
@media (min-width: 861px) and (max-width: 1180px) { .nav-links { gap: 14px; } .nav-links a { font-size: 13.5px; } }

.feat-img.barn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.barn-grid img { border-radius: 12px; }

/* Thanh menu 9 mục: màn hình vừa thì ẩn nhãn phiên bản và thu gọn để chữ không chồng nhau */
.nav .ver { display: none; }
@media (min-width: 861px) and (max-width: 1240px) { .nav-inner { gap: 12px; padding-inline: 16px; } .nav-links { gap: 12px; } .nav-links a { font-size: 13px; } .nav .brand-logo { height: 40px; } .nav .brand-name { font-size: 19px; } .nav-actions .btn span { display: none; } }
@media (min-width: 861px) and (max-width: 1020px) { .nav-links { gap: 9px; } .nav-links a { font-size: 12px; } .nav .brand-name { display: none; } .nav-actions { display: none; } }
@media (min-width: 1241px) { .nav-inner { gap: 16px; } .nav-links { gap: 17px; } .nav-links a { font-size: 14px; } }
