/*
Theme Name: VGM
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vgm
*/

/* ---------- 1. Tokens ---------- */
:root{
  --purple:#6d3ff3;
  --purple-2:#7c4dfc;
  --purple-soft:#f4f0ff;
  --purple-line:#d9cdff;
  --pink:#f43f8e;
  --pink-2:#e8317f;
  --pink-soft:#fff2f7;
  --ink:#2b2748;
  --ink-2:#43405f;
  --muted:#7d799e;
  --muted-2:#8e8aad;
  --muted-3:#9a96b5;
  --line:#eeebf7;
  --line-2:#f0eefa;
  --soft:#fbfaff;
  --white:#fff;
  --radius-s:10px;
  --radius:12px;
  --radius-m:16px;
  --radius-l:18px;
  --shadow-s:0 2px 10px rgba(80,60,160,.04);
  --shadow:0 4px 18px rgba(80,60,160,.06);
  --shadow-h:0 12px 26px rgba(109,63,243,.10);
  --grad:linear-gradient(100deg,#7c4dfc,#6d3ff3);
  --grad-cta:linear-gradient(96deg,#8b5cf6 0%,#c05ce0 52%,#f472b6 100%);
  --grad-soft:linear-gradient(178deg,#f7f5ff 0%,#fbf6fd 55%,#fdf7fb 100%);
  --maxw:1180px;
  /* mobile ép sát biên: 15px mỗi bên */
  --pad:clamp(15px,3.5vw,24px);
  --placeholder:repeating-linear-gradient(135deg,#f6f3ff 0 10px,#efe9ff 10px 20px);
}

/* ---------- 2. Reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--white);color:var(--ink);
  font-family:'Be Vietnam Pro',system-ui,-apple-system,Segoe UI,sans-serif;
  font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg{max-width:100%;display:block}
a{color:var(--purple);text-decoration:none;transition:color .16s ease}
a:hover{color:var(--pink)}
h1,h2,h3,h4,p{margin:0}
input,button,textarea,select{font-family:inherit;font-size:inherit}
button{cursor:pointer}
input::placeholder{color:#a9a5c4}
:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
.ic{flex:none;width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ic--solid{fill:currentColor;stroke:none}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:-9999px;z-index:999;padding:10px 16px;background:#fff}
.skip-link:focus{left:12px;top:12px}

/* ---------- 3. Layout ---------- */
.container{max-width:var(--maxw);margin:0 auto;padding-left:var(--pad);padding-right:var(--pad)}
.section{padding-top:clamp(28px,4.4vw,48px)}
.section--tight{padding-top:clamp(18px,2.6vw,26px)}
.stack{display:flex;flex-direction:column;gap:14px}
.row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.grid-4{display:grid;grid-template-columns:repeat(auto-fit,minmax(228px,1fr));gap:20px}
.grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(238px,1fr));gap:16px}
.split{display:flex;flex-wrap:wrap;gap:clamp(20px,3vw,32px);align-items:flex-start}
.split__main{flex:1 1 460px;min-width:0}
.split__aside{flex:1 1 250px;min-width:0;max-width:340px;display:flex;flex-direction:column;gap:16px}

/* ---------- 4. Type ---------- */
.h1{font-size:clamp(24px,4.8vw,42px);line-height:1.24;font-weight:800;letter-spacing:-.01em;text-wrap:balance}
.h2{font-size:clamp(19px,3.2vw,25px);font-weight:800;color:var(--ink)}
.h3{font-size:clamp(16px,2.4vw,19px);font-weight:800;color:var(--ink)}
.lead{font-size:clamp(13px,1.7vw,15px);color:#6b678f}
.meta{font-size:12.5px;color:var(--muted-2)}
.small{font-size:12.5px;color:var(--muted)}
.mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:10px;letter-spacing:.05em;color:#8a7bc8}
.pink{color:var(--pink)}
.section-title{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:24px;text-align:center}
.section-title::before,.section-title::after{content:"";width:34px;height:2px;background:#e9c9dd;flex:none}

/* ---------- 5. Buttons & chips ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 20px;border-radius:999px;border:0;font-size:13.5px;font-weight:600;line-height:1;white-space:nowrap;transition:transform .16s ease,filter .16s ease,background .16s ease}
.btn--primary{background:var(--grad);color:#fff;box-shadow:0 8px 18px rgba(109,63,243,.26)}
.btn--primary:hover{color:#fff;filter:brightness(1.07);transform:translateY(-1px)}
.btn--ghost{background:#fff;color:var(--purple);border:1.5px solid var(--purple-line)}
.btn--ghost:hover{background:var(--purple-soft);border-color:#bda6ff}
.btn--white{background:#fff;color:#7c3aed;font-weight:700;box-shadow:0 10px 24px rgba(60,20,120,.2)}
.btn--white:hover{color:var(--pink-2);transform:translateY(-2px)}
.btn--sq{padding:0;width:38px;height:38px;border-radius:var(--radius-s);border:1px solid #e6e2f7;background:#fff;color:var(--purple);display:grid;place-items:center;flex:none}
.btn--sq:hover{background:var(--purple-soft);border-color:#cbb8ff}
.btn[disabled]{opacity:.55;pointer-events:none}
.icon-btn{width:34px;height:34px;border-radius:50%;border:1px solid #eeecf8;background:#fff;display:grid;place-items:center;flex:none;color:var(--purple)}
.icon-btn:hover{background:#f7f5ff}
.icon-btn--pink{border-color:#ffe3ef;color:var(--pink)}
.icon-btn--pink:hover{background:var(--pink-soft)}
.icon-btn.is-on{background:var(--pink-soft);color:var(--pink-2)}
.chip{padding:9px 16px;border-radius:999px;white-space:nowrap;border:1px solid #eeebf9;background:#fff;color:#4b4870;font-size:13px;font-weight:600;transition:.16s ease}
.chip:hover{border-color:#cbb8ff;background:#f8f5ff;color:#4b4870}
.chip.is-active{border:0;background:var(--grad);color:#fff;box-shadow:0 6px 16px rgba(109,63,243,.24)}
.tag{display:inline-block;padding:7px 13px;border-radius:999px;background:var(--purple-soft);font-size:12px;font-weight:600;color:#5b52a8}
.tag:hover{background:#ece5ff;color:#5b52a8}
.tag--pink{background:var(--pink-soft);color:#c2367a}
.tag--blue{background:#eef4ff;color:#3565c4}
.tag--green{background:#eafaf4;color:#158a6c}
.tag--amber{background:#fff6e6;color:#b57c14}
.badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:11.5px;font-weight:600;background:#ece7ff;color:#6135e0}
.badge--blue{background:#eef4ff;color:#3565c4}
.badge--green{background:#eafaf4;color:#158a6c}
.badge--pink{background:var(--pink-soft);color:#c2367a}
.badge--amber{background:#fff6e6;color:#b57c14}
.badge--violet{background:#f3f0ff;color:#5b52a8}

/* ---------- 6. Card ---------- */
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius-m);box-shadow:var(--shadow-s)}
.card--pad{padding:20px}
.card--link{transition:.18s ease}
.card--link:hover{border-color:#cbb8ff;transform:translateY(-3px);box-shadow:var(--shadow-h)}
.ph{background:var(--placeholder);border-radius:var(--radius);display:grid;place-items:center;text-align:center;padding:8px;overflow:hidden}
.ph img{width:100%;height:100%;object-fit:cover}

/* ---------- 7. Header ---------- */
.site-header{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line-2)}
.hdr{display:flex;flex-wrap:wrap;align-items:center;gap:12px clamp(16px,3vw,40px);padding-top:12px;padding-bottom:12px}
.logo{display:flex;align-items:baseline;gap:1px;flex:none}
.logo__mark{font-size:25px;font-weight:800;letter-spacing:-.02em;background:linear-gradient(95deg,#7c3aed,#f43f8e);-webkit-background-clip:text;background-clip:text;color:transparent}
.logo__tld{font-size:13px;font-weight:700;color:#3d3a5c}
.hdr__nav{order:3;width:100%;display:flex;gap:22px;font-size:13.5px;font-weight:500;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.hdr__nav::-webkit-scrollbar{display:none}
.hdr__nav ul{display:flex;gap:22px;margin:0;padding:0;list-style:none}
.hdr__nav a{color:#4b4870;white-space:nowrap;padding:2px 0;display:block}
.hdr__nav a:hover,.hdr__nav .current-menu-item>a,.hdr__nav .current_page_item>a,.hdr__nav a.is-active{color:var(--purple);font-weight:700}
.hdr__nav .sub-menu{display:none}
.hdr__actions{margin-left:auto;display:flex;align-items:center;gap:10px;flex:none}
.hdr__cta{padding:8px 15px;font-size:13px}
@media (min-width:920px){
  .hdr__nav{order:0;width:auto;overflow:visible;gap:clamp(16px,2.2vw,30px)}
  .hdr__nav ul{gap:clamp(16px,2.2vw,30px)}
}

/* ---------- 8. Hero ---------- */
.hero{position:relative;background:var(--grad-soft);padding:clamp(30px,5vw,54px) 0 clamp(38px,6vw,54px);overflow:hidden}
.hero__inner{position:relative;z-index:1;text-align:center}
.hero .h1{margin-bottom:14px;color:var(--ink)}
.hero .lead{margin-bottom:0;max-width:640px;margin-left:auto;margin-right:auto}
.deco{position:absolute;inset:0;pointer-events:none;z-index:0}
.deco span{position:absolute;display:block;line-height:1}
.deco .float{animation:bob 8s ease-in-out infinite}
.shape{border-radius:9px}
.shape--diamond{transform:rotate(45deg)}
.shape--violet{background:linear-gradient(140deg,#c9b6ff,#8f6dfb)}
.shape--blue{background:linear-gradient(140deg,#8fd3ff,#3d8bfd)}
.shape--cyan{background:linear-gradient(140deg,#bff0ff,#5ac8f5)}
.shape--cross{background:#ff8ec4;clip-path:polygon(36% 0,64% 0,64% 36%,100% 36%,100% 64%,64% 64%,64% 100%,36% 100%,36% 64%,0 64%,0 36%,36% 36%)}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes pop{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

/* ---------- 9. Công cụ tạo tên ---------- */
.tool{max-width:1000px;margin:0 auto;padding:clamp(16px,2.6vw,26px) clamp(14px,2.6vw,28px) 22px;background:#fff;border:1.5px solid #f0439c;border-radius:22px;box-shadow:0 18px 50px rgba(109,63,243,.1);text-align:left}
.tool__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(262px,1fr));gap:22px}
.label{font-size:11.5px;font-weight:700;letter-spacing:.09em;color:#8a86ab;margin-bottom:9px}
.field{display:flex;align-items:center;gap:10px;background:var(--soft);border:1px solid #eae7f8;border-radius:var(--radius);padding:4px 6px 4px 16px}
.field input{flex:1;min-width:0;border:0;background:transparent;outline:none;font-size:15px;color:var(--ink);padding:11px 0}
.result{display:flex;align-items:center;gap:10px}
.result__box{flex:1;min-width:0;background:#fff;border:1px solid #eae7f8;border-radius:var(--radius);padding:12px 16px;font-size:16px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tabs{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 16px}
.tab{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;padding:10px 16px;border-radius:11px;border:1px solid #eeebf9;background:#fff;color:#4b4870;font-size:13px;font-weight:600;transition:.16s ease}
.tab:hover{background:#f8f5ff;border-color:#cbb8ff}
.tab.is-active{border:0;background:var(--grad);color:#fff;box-shadow:0 6px 16px rgba(109,63,243,.26)}
.symbols{display:grid;grid-template-columns:repeat(auto-fill,minmax(62px,1fr));gap:10px}
.symbols button{height:48px;border-radius:var(--radius);border:1px solid var(--line);background:#fff;font-size:15px;color:#3a3660;overflow:hidden;padding:0 4px;transition:.16s ease}
.symbols button:hover{border-color:#c9b3ff;background:#f8f5ff;transform:translateY(-2px)}
.tool__more{display:flex;justify-content:center;margin-top:18px}
.link-strong{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;font-weight:600}
.tool__state{padding:14px 4px;font-size:13px;color:var(--muted)}

/* kết quả tạo tên */
.res-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(212px,1fr));gap:10px}
.res{display:flex;align-items:center;gap:10px;padding:10px 10px 10px 14px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;text-align:left;transition:.16s ease;animation:pop .2s ease}
.res:hover{border-color:#c9b3ff;background:#faf8ff;transform:translateY(-2px)}
.res__val{flex:1;min-width:0;font-size:15px;color:#2f2c50;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.res__ic{flex:none;color:var(--purple);opacity:.6}
.res:hover .res__ic{opacity:1}
.res__label{display:block;font-size:10.5px;font-weight:600;letter-spacing:.04em;color:var(--muted-3);text-transform:uppercase;margin-bottom:2px}

/* ---------- 10. Feature / danh mục ---------- */
.feature{display:flex;gap:14px;padding:20px}
.feature__icon{flex:none;width:38px;height:38px;border-radius:11px;display:grid;place-items:center}
.feature__title{font-size:14.5px;font-weight:700;margin-bottom:5px}
.feature__text{font-size:12.5px;line-height:1.5;color:var(--muted)}
.cat{display:flex;gap:14px;align-items:center;padding:20px}
.cat__icon{flex:none;width:42px;height:42px;border-radius:var(--radius);display:grid;place-items:center}
.cat__name{display:block;font-size:14.5px;font-weight:700;color:var(--ink)}
.cat__count{display:block;font-size:12px;color:var(--muted-2);margin-top:3px}
.t-blue{background:#e6eeff;color:#3d7bfd}.t-violet{background:#ece7ff;color:#6d3ff3}
.t-orange{background:#ffeede;color:#ef8b2c}.t-amber{background:#fff3d6;color:#e0a112}
.t-pink{background:#ffe4ee;color:#f0439c}.t-rose{background:#ffe0ea;color:#e8317f}
.t-green{background:#dcf6ee;color:#14a37f}.t-cyan{background:#dff0fb;color:#0f9bd0}
.t-yellow{background:#fff4dd;color:#f0a029}.t-teal{background:#dff7f0;color:#18a582}
.t-sky{background:#e5edff;color:#3d7bfd}

/* ---------- 11. Tên đẹp theo game ---------- */
.gtabs{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line);margin-bottom:20px}
.gtabs::-webkit-scrollbar{display:none}
.gtab{padding:13px 22px;border:0;background:transparent;color:var(--muted-2);font-size:13.5px;font-weight:600;white-space:nowrap}
.gtab.is-active{background:var(--purple-soft);color:#4b3fb0;border-radius:10px 10px 0 0;box-shadow:inset 0 -2px 0 var(--purple)}
.names{position:relative;z-index:1}
.name-row{display:flex;align-items:center;gap:10px;padding:11px 12px 11px 16px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);animation:pop .2s ease}
.name-row:hover{border-color:#cbb8ff}
.name-row>span{flex:1;min-width:0;font-size:14px;color:#2f2c50;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.copy-sq{flex:none;width:30px;height:30px;border-radius:8px;border:1px solid var(--line);background:var(--soft);display:grid;place-items:center;color:var(--purple)}
.copy-sq:hover{background:#f2ecff;border-color:#cbb8ff}

/* ---------- 12. Cộng đồng (đóng góp tên) ---------- */
.comm{margin-top:22px;display:flex;flex-direction:column;gap:16px}
.comm__head{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px}
.comm__name{color:var(--pink-2)}
.comm__list{display:grid;grid-template-columns:repeat(auto-fill,minmax(224px,1fr));gap:10px}
.comm__item{display:flex;align-items:center;gap:8px;padding:9px 10px 9px 13px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;animation:pop .2s ease}
.comm__item:hover{border-color:#cbb8ff}
.comm__val{flex:1;min-width:0;display:flex;align-items:center;gap:8px;background:none;border:0;padding:0;font-size:14.5px;color:#2f2c50;text-align:left}
.comm__val span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.comm__vote{flex:none;display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:999px;border:1px solid var(--line);background:var(--soft);font-size:12px;font-weight:600;color:var(--muted)}
.comm__vote:hover,.comm__vote.is-on{border-color:#f9c6dd;background:var(--pink-soft);color:var(--pink-2)}
.comm__form{display:flex;flex-wrap:wrap;gap:10px}
.comm__form .field{flex:1 1 240px}
.comm__msg{font-size:12.5px;color:var(--muted);min-height:18px}
.comm__msg.is-err{color:var(--pink-2)}
.comm__empty{padding:22px;text-align:center;border:1px dashed #ded8f5;border-radius:var(--radius-m);background:var(--soft);font-size:13px;color:var(--muted)}
.comm__latest .comm__item{background:#fdfbff}

/* ---------- 13. Info / steps / FAQ ---------- */
.panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(288px,1fr));border:1px solid var(--line);border-radius:var(--radius-l);overflow:hidden}
.panel{display:flex;gap:18px;padding:clamp(18px,2.8vw,26px) clamp(15px,2.8vw,28px)}
.panel--violet{background:#f6f4ff}
.panel--pink{background:var(--pink-soft);position:relative}
.panel__title{font-size:15.5px;font-weight:800;margin-bottom:10px}
.panel p{font-size:13px;line-height:1.75;color:#5d5a80;text-wrap:pretty}
.checks{display:flex;flex-direction:column;gap:9px;font-size:13px;color:#5d5a80;list-style:none;margin:0;padding:0}
.checks li{display:flex;gap:9px;align-items:flex-start}
.checks .ic{margin-top:3px;color:var(--pink-2)}
.steps{position:relative;z-index:1;display:flex;flex-direction:column;gap:15px;max-width:760px;list-style:none;margin:0;padding:0}
.step{display:flex;gap:14px;align-items:center;font-size:13.5px;color:#514e75}
.step__n{flex:none;width:27px;height:27px;border-radius:50%;border:1.5px solid var(--purple-line);color:var(--purple);font-size:12.5px;font-weight:700;display:grid;place-items:center}
.faq{position:relative;z-index:1;display:grid;grid-template-columns:repeat(auto-fit,minmax(288px,1fr));gap:14px 20px}
.faq__item{background:var(--soft);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.faq__q{width:100%;display:flex;align-items:center;gap:12px;padding:15px 16px;border:0;background:transparent;text-align:left;font-size:13.5px;font-weight:500;color:#3b3860}
.faq__q span{flex:1}
.faq__q .ic{transition:transform .2s ease;color:var(--muted-2)}
.faq__item.is-open .faq__q{color:var(--purple)}
.faq__item.is-open .faq__q .ic{transform:rotate(180deg)}
.faq__a{display:none;padding:0 16px 15px;font-size:13px;line-height:1.7;color:#6b688c}
.faq__item.is-open .faq__a{display:block;animation:pop .2s ease}

/* ---------- 14. CTA ---------- */
.cta{display:flex;flex-wrap:wrap;align-items:center;gap:clamp(14px,2.4vw,26px);padding:clamp(18px,3vw,26px) clamp(16px,3vw,34px);border-radius:var(--radius-l);background:var(--grad-cta)}
.cta__em{flex:none;font-size:44px;line-height:1}
.cta__text{flex:1 1 250px;min-width:0;text-align:center;color:#fff}
.cta__title{font-size:clamp(18px,2.6vw,23px);font-weight:800}
.cta__sub{margin-top:6px;font-size:13.5px;color:rgba(255,255,255,.9)}

/* ---------- 15. Footer ---------- */
.site-footer{margin-top:38px;border-top:1px solid var(--line-2)}
.ftr{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:28px 32px;padding-top:34px;padding-bottom:22px}
.ftr__title{font-size:12.5px;font-weight:700;letter-spacing:.06em;color:var(--ink);margin-bottom:13px}
.ftr__links{display:flex;flex-direction:column;gap:9px;font-size:12.5px;list-style:none;margin:0;padding:0}
.ftr__links a{color:var(--muted)}
.ftr__links a:hover{color:var(--purple)}
.ftr__about{font-size:12.5px;line-height:1.7;color:var(--muted);max-width:300px;margin-bottom:16px}
.socials{display:flex;gap:10px}
.socials a{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#fff}
.s-fb{background:#1877f2}.s-tt{background:#111015}.s-ms{background:#7c3aed}.s-yt{background:#ef2b2b}
.copyright{border-top:1px solid var(--line-2);text-align:center;font-size:12px;color:var(--muted-3);padding-top:16px;padding-bottom:18px;line-height:1.7}
.copyright a{color:var(--muted)}
.copyright a:hover{color:var(--purple)}
.copyright__note{display:block;font-size:11.5px;opacity:.85;margin-top:6px;max-width:760px;margin-left:auto;margin-right:auto}

/* ---------- 16. Danh mục bài viết ---------- */
.page-head{background:linear-gradient(178deg,#f7f5ff 0%,#fdf7fb 100%);padding:clamp(30px,5vw,52px) 0;position:relative;overflow:hidden}
.page-head__inner{position:relative;z-index:1;text-align:center}
.page-head__inner .crumbs{justify-content:center}
.eyebrow{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;padding:6px 13px;border-radius:999px;background:#fff;border:1px solid #ecd9f0;font-size:11.5px;font-weight:600;color:#a03b86;letter-spacing:.04em}
.search{max-width:520px;margin:0 auto;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #eae7f8;border-radius:999px;padding:5px 6px 5px 18px;box-shadow:0 10px 26px rgba(109,63,243,.08)}
.search .ic{color:#a9a5c4}
.search input{flex:1;min-width:0;border:0;background:transparent;outline:none;font-size:14px;padding:10px 0;color:var(--ink)}
.search button{flex:none;width:36px;height:36px;border-radius:50%;border:0;background:var(--purple-soft);display:grid;place-items:center;color:var(--purple)}
.search button:hover{background:#e9e0ff}
.filters{display:flex;flex-wrap:wrap;gap:9px}
.featured{display:flex;flex-wrap:wrap;gap:clamp(16px,2.5vw,26px);padding:clamp(14px,2vw,18px)}
.featured__ph{flex:1 1 320px;min-width:0;position:relative;min-height:210px}
.featured__flag{position:absolute;left:14px;top:14px;padding:5px 11px;border-radius:999px;background:#fff;font-size:11px;font-weight:700;color:var(--pink-2);box-shadow:0 2px 8px rgba(80,60,160,.1);z-index:1}
.featured__body{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;justify-content:center;padding:6px 6px 6px 0}
.featured__title{font-size:clamp(19px,2.6vw,26px);line-height:1.32;font-weight:800;color:var(--ink);margin:12px 0;text-wrap:pretty}
.post{display:flex;flex-wrap:wrap;gap:clamp(14px,2vw,20px);padding:14px;animation:pop .25s ease}
.post__ph{flex:0 1 200px;min-width:0;min-height:132px}
.post__body{flex:1 1 260px;min-width:0;display:flex;flex-direction:column;justify-content:center}
.post__meta{display:flex;flex-wrap:wrap;align-items:center;gap:9px;font-size:11.5px;color:var(--muted-2);margin-bottom:9px}
.post__title{font-size:clamp(15px,1.9vw,17.5px);line-height:1.4;font-weight:700;color:var(--ink);margin-bottom:8px;text-wrap:pretty}
.post__excerpt{font-size:13px;line-height:1.7;color:var(--muted);text-wrap:pretty}
.empty{padding:38px 20px;text-align:center;border:1px dashed #ded8f5;border-radius:var(--radius-m);background:var(--soft)}
.pager{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:26px}
.pager a,.pager span{min-width:36px;height:36px;padding:0 12px;border-radius:var(--radius-s);display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:600;color:#4b4870;border:1px solid var(--line);background:#fff}
.pager a:hover{border-color:#cbb8ff;background:#f8f5ff}
.pager .current{border:0;background:var(--grad);color:#fff;font-weight:700}
.pager .dots{border:0;background:transparent;color:#a9a5c4}
.promo{padding:20px;border-radius:var(--radius-m);background:linear-gradient(150deg,#f4f0ff,#fdeef6);border:1px solid #eee6fb}
.promo__em{font-size:38px;line-height:1}
.promo__title{font-size:15px;font-weight:800;margin:10px 0 6px}
.promo p{font-size:12.5px;line-height:1.7;color:#6b688c;margin-bottom:14px}
.toplist{display:flex;flex-direction:column;gap:13px}
.toplist a{display:flex;gap:11px;align-items:flex-start;font-size:13px;line-height:1.55;color:#3b3860;font-weight:500}
.toplist a:hover{color:var(--pink)}
.toplist b{flex:none;font-size:15px;font-weight:800;color:var(--purple-line)}

/* ---------- 17. Bài viết ---------- */
.progress{position:fixed;left:0;top:0;z-index:80;height:3px;width:0;background:linear-gradient(90deg,#7c3aed,#f43f8e);transition:width .1s linear}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:12px;color:var(--muted-2);margin-bottom:16px}
.crumbs a{color:var(--muted-2)}
.crumbs a:hover{color:var(--purple)}
.article-head{background:linear-gradient(178deg,#f7f5ff 0%,#fdf7fb 100%);padding:clamp(18px,2.6vw,26px) 0 clamp(22px,3.4vw,34px)}
.article-head__inner{max-width:900px;margin:0 auto}
.article-head .h1{margin-bottom:16px;color:var(--ink)}
.byline{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;font-size:12.5px;color:var(--muted)}
.byline__avatar{width:32px;height:32px;border-radius:50%;overflow:hidden;background:var(--placeholder);display:grid;place-items:center}
.byline__avatar img{border-radius:50%}
.article{flex:1 1 480px;min-width:0}
.cover{min-height:clamp(180px,26vw,320px);margin-bottom:26px;border-radius:var(--radius-m)}
.article__tags{display:flex;flex-wrap:wrap;gap:8px;padding-top:20px;border-top:1px solid var(--line-2);margin-top:24px}
.prevnext{display:flex;flex-wrap:wrap;gap:14px;margin-top:22px}
.prevnext a{flex:1 1 240px;min-width:0;display:flex;gap:11px;align-items:center;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fff;color:#3b3860}
.prevnext a:hover{border-color:#cbb8ff}
.prevnext .next{justify-content:flex-end;text-align:right}
.prevnext small{display:block;font-size:11px;color:var(--muted-3);margin-bottom:3px}
.prevnext strong{font-size:13px;font-weight:600;color:#3b3860}
.prevnext .ic{color:var(--purple)}
.toc{display:flex;flex-direction:column;gap:10px;font-size:13px}
.toc a{color:#5d5a80}
.toc a:hover,.toc a.is-active{color:var(--purple);font-weight:600}
.share{display:flex;flex-wrap:wrap;gap:9px}
.share a,.share button{width:34px;height:34px;border-radius:var(--radius-s);display:grid;place-items:center;border:0;color:#fff}
.share .link{border:1px solid var(--line);background:var(--soft);color:var(--purple)}
.share .link:hover{background:#f2ecff;border-color:#cbb8ff}
.rel{display:flex;flex-direction:column;padding:14px}
.rel__ph{min-height:130px;margin-bottom:13px}
.rel__cat{font-size:11.5px;font-weight:600;margin-bottom:7px;color:#3565c4}
.rel__title{font-size:14.5px;font-weight:700;line-height:1.45;color:var(--ink)}
.rel__date{margin-top:9px;font-size:11.5px;color:var(--muted-3)}
.sticky{position:sticky;top:96px}
@media (max-width:920px){.sticky{position:static}}

/* ---------- 18. Nội dung bài (the_content) ---------- */
.entry{font-size:clamp(14px,1.7vw,16px);line-height:1.85;color:var(--ink-2);text-wrap:pretty}
.entry>*{margin-bottom:16px}
.entry>*:last-child{margin-bottom:0}
.entry h2{margin:30px 0 12px;font-size:clamp(18px,2.3vw,22px);font-weight:800;color:var(--ink);scroll-margin-top:110px}
.entry h3{margin:24px 0 10px;font-size:clamp(16px,2vw,19px);font-weight:700;color:var(--ink);scroll-margin-top:110px}
.entry h4{margin:20px 0 8px;font-size:16px;font-weight:700;color:var(--ink)}
.entry ul,.entry ol{margin:0 0 16px;padding-left:22px}
.entry li{margin-bottom:7px}
.entry img{border-radius:var(--radius-m);height:auto}
.entry figure{margin:0 0 20px}
.entry figcaption{margin-top:8px;font-size:12.5px;color:var(--muted-2);text-align:center}
.entry blockquote{margin:0 0 20px;padding:16px 20px;border-radius:14px;background:#f6f4ff;border-left:3px solid var(--purple-line)}
.entry blockquote p:last-child{margin-bottom:0}
.entry code{background:#f3f0ff;padding:2px 6px;border-radius:5px;font-size:.92em}
.entry pre{overflow-x:auto;padding:14px 16px;border-radius:var(--radius);background:#f7f5ff}
.entry pre code{background:none;padding:0}
.entry table{width:100%;border-collapse:collapse;font-size:13.5px;display:block;overflow-x:auto}
.entry th,.entry td{border:1px solid var(--line);padding:9px 12px;text-align:left}
.entry th{background:var(--soft);font-weight:700;color:var(--ink)}
.entry hr{border:0;border-top:1px solid var(--line);margin:26px 0}
.entry .wp-block-image{margin-bottom:20px}
.entry .aligncenter{margin-left:auto;margin-right:auto;text-align:center}
.entry .alignleft{float:left;margin:0 20px 14px 0}
.entry .alignright{float:right;margin:0 0 14px 20px}
.entry .wp-caption{max-width:100%}

/* ---------- 19. Tương thích nội dung cũ (khối .vgmk-* trong bài) ---------- */
.vgmk{margin:14px 0}
.vgmk-list,.vgmk-emoji-list,.sset-grid{display:flex;flex-wrap:wrap;gap:8px}
.vgmk-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:9px 13px;border:1px solid var(--line);border-radius:var(--radius-s);background:#fff;font-size:16px;line-height:1.3;color:#2f2c50;text-align:left;transition:.16s ease}
.vgmk-chip:hover{border-color:#c9b3ff;background:#f8f5ff}
.vgmk-chip-val{min-width:0;overflow:hidden;text-overflow:ellipsis}
.vgmk-chip-ic{flex:none;font-size:13px;color:var(--purple)}
.vgmk-row{display:flex;align-items:center;gap:10px;margin:8px 0}
.vgmk-row-name{flex:0 0 92px;font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted-2)}
.vgmk-h{font-size:clamp(16px,2.2vw,19px);font-weight:800;margin:0 0 12px;color:var(--ink)}
.vgmk-hint{font-size:12.5px;color:var(--muted);margin-bottom:10px}
.vgmk-faq-item{background:var(--soft);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;margin-bottom:10px}
.vgmk-faq-item summary{cursor:pointer;font-weight:600;color:#3b3860}
.vgmk-faq-item[open] summary{color:var(--purple)}
.vgmk-faq-a{margin-top:9px;font-size:13.5px;line-height:1.75;color:#6b688c}
.vgmk-empty{font-size:13px;color:var(--muted)}

/* ---------- 20. Vị trí hình trang trí ---------- */
.d-cross-l{left:5%;top:52px;width:64px;height:64px}
.d-spark-1{left:10%;top:20px;font-size:26px}
.d-spark-2{right:14%;top:22px;font-size:20px;opacity:.85}
.d-ruler{right:12.5%;top:104px;font-size:34px}
.d-dia-1{right:6.5%;top:126px;width:34px;height:34px}
.d-dia-2{right:3%;top:200px;width:44px;height:44px}
.d-dia-3{right:8%;top:264px;width:30px;height:30px}
.d-pad{right:4%;bottom:26px;font-size:70px}
.d-stick{left:6%;bottom:96px;font-size:40px}
.d-flag{left:2.5%;top:240px;font-size:42px}
.d-heart{right:0;top:96px;font-size:38px}
.d-star{left:-16px;bottom:44px;font-size:44px}
.d-cross-faq{left:-78px;top:120px;width:74px;height:74px}
.d-dia-faq{left:-46px;top:222px;width:40px;height:40px}
.d-dia-faq2{right:-30px;top:64px;width:44px;height:44px}
.d-dia-faq3{right:-56px;top:150px;width:36px;height:36px}
.d-wand{right:34px;bottom:16px;font-size:80px}
.d-gem{right:22px;bottom:20px;font-size:56px}
.d-spark-a{left:6%;top:18px;font-size:24px}
.d-dia-a{right:5%;top:24px;width:36px;height:36px}
.d-dia-b{right:11%;bottom:16px;width:26px;height:26px}
/* trang trí chỉ hiện khi còn lề trống hai bên */
@media (max-width:1200px){.deco{display:none}}

/* ---------- 21. Tiện ích ---------- */
.to-top{position:fixed;right:16px;bottom:16px;z-index:70;width:40px;height:40px;border-radius:50%;border:1px solid #eae7f8;background:#fff;box-shadow:0 8px 20px rgba(80,60,160,.16);display:grid;place-items:center;color:var(--purple);opacity:0;visibility:hidden;transition:opacity .2s ease}
.to-top.is-on{opacity:1;visibility:visible}
.to-top:hover{background:var(--purple-soft)}
.toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%);z-index:90;display:none;align-items:center;gap:9px;padding:11px 20px;border-radius:999px;background:var(--ink);color:#fff;font-size:13px;font-weight:500;box-shadow:0 12px 30px rgba(20,10,50,.25);max-width:calc(100vw - 30px)}
.toast.is-on{display:flex;animation:pop .2s ease}
.toast .ic{color:#71e2b4}
.center{text-align:center}
.mt-18{margin-top:18px}
.mt-22{margin-top:22px}
.mb-14{margin-bottom:14px}
.hide{display:none!important}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}
