/*
Theme Name: Refund
Theme URI: https://refund.com.vn
Author: Refund
Author URI: https://refund.com.vn
Description: Theme chính thức của Refund — hoàn tiền Shopee tự động. Landing marketing/SEO tông kem/cam ấm, font Baloo 2 + Be Vietnam Pro. Dựng theo thiết kế "Caffiliate Landing".
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: refund
*/

:root {
  --cream: #FBF7F2;
  --panel: #FFFFFF;
  --brand: #F2580C;
  --brand-2: #E85D04;
  --brand-dark: #C7430A;
  --brand-light: #FF9D52;
  --navy: #14294C;
  --gold: #E0A312;
  --gold-soft: #F5B82E;
  --green: #15A85B;
  --ink: #20242E;
  --ink-strong: #1A1E27;
  --muted: #5C6373;
  --muted-2: #6B7280;
  --muted-3: #9AA0AD;
  --line: #F0EAE1;
  --line-2: #ECE6DE;
  --grad: linear-gradient(135deg, #FF9D52, #F2580C);
  --shadow-card: 0 2px 4px rgba(31,36,46,.04), 0 30px 60px -28px rgba(31,36,46,.28);
  --shadow-brand: 0 8px 16px -10px rgba(242,88,12,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, .font-display {
  font-family: "Baloo 2", system-ui, sans-serif;
  color: var(--ink-strong);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.01em;
}
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--brand-2); text-transform: uppercase; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-family: inherit; font-weight: 700; border-radius: 13px; transition: transform .12s ease, filter .12s ease; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:focus { outline: none; }
.btn:focus-visible { outline: 2px solid rgba(242,88,12,.45); outline-offset: 2px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); padding: 11px 20px; font-size: 14.5px; }
.btn-primary:hover { color: #fff; filter: brightness(1.04); }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--muted); padding: 10px 16px; font-weight: 600; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,247,242,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { display: block; width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 14px -4px rgba(242,88,12,.4); }
.brand .brand-text { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 22px; color: var(--navy); }
.brand .brand-text b { color: var(--brand); font-weight: 800; }
.site-header .brand { flex: 1 1 0; }
.primary-nav { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; justify-content: center; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: inline-block; font-size: 14.5px; font-weight: 600; color: var(--muted); padding: 9px 14px; border-radius: 10px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--brand); font-weight: 600; }
.header-actions { flex: 1 1 0; justify-content: flex-end; display: flex; align-items: center; gap: 8px; }
.header-actions .login { font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 8px; }
.site-header .btn-primary { padding: 9px 16px; font-size: 14px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(900px 460px at 78% -8%, #FFEAD8 0%, #FBF7F2 62%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: 44px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero h1 { font-size: 54px; line-height: 1.06; margin: 18px 0 16px; }
.hero .lead { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 26px; max-width: 480px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stats .num { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 30px; color: var(--ink-strong); }
.hero-stats .lbl { font-size: 13px; color: var(--muted-3); margin-top: 2px; }
.hero-stats > div + div { border-left: 1px solid var(--line-2); padding-left: 30px; }

/* tool card */
.tool { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 26px 28px; box-shadow: var(--shadow-card); }
.tool-head { display: flex; align-items: center; gap: 10px; }
.tool-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-row { display: flex; align-items: center; gap: 9px; margin: 20px 0 12px; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: #FEEAD9; color: var(--brand-2); display: inline-flex; align-items: center; justify-content: center; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.plat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.plat { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 13px 4px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.plat.active { border: 2px solid var(--brand); background: #FFF8F3; }
.plat.soon { opacity: .55; }
.plat .glyph { width: 54px; height: 54px; border-radius: 14px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; font-family: "Baloo 2", sans-serif; }
.plat .name { font-size: 11.5px; font-weight: 600; color: var(--ink); }
.plat .tag { position: absolute; top: -8px; right: -6px; font-size: 9px; font-weight: 700; border-radius: 999px; padding: 2px 7px; }
.plat .tag.on { color: #fff; background: var(--green); box-shadow: 0 4px 8px -3px rgba(21,168,91,.5); }
.plat .tag.off { color: #9A6B12; background: #FFF1CC; border: 1px solid #F3DFA0; }
.fakefield { display: flex; align-items: center; gap: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 13px; padding: 13px 16px; color: #A7AAB4; font-size: 14.5px; }
.realfield { display: flex; align-items: center; gap: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 13px; padding: 13px 16px; transition: border-color .15s, background .15s; }
.realfield:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(242,88,12,.08); }
.realfield input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-family: inherit; font-size: 16px; color: var(--ink); }
.realfield input::placeholder { color: #A7AAB4; }
#get-link-btn { border: none; cursor: pointer; }

/* Step 2 — inline paste field: input + paste icon + "Lấy Link" button in one bar */
.realfield-inline { padding: 5px 5px 5px 14px; gap: 6px; background: #fff; }
.realfield-inline input { flex: 1 1 auto; font-size: 16px; }
.realfield-inline > svg { width: 17px; height: 17px; flex: 0 0 auto; }
.paste-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: none; background: transparent; color: #A7AAB4; cursor: pointer; border-radius: 8px; transition: color .15s, background .15s; }
.paste-btn svg { width: 16px; height: 16px; }
.paste-btn:hover { color: var(--brand); background: #FEEFE4; }
/* "Lấy Link" sits on its own full-width row below the input bar */
.get-link-btn { display: flex; width: 100%; margin-top: 12px; padding: 13px; font-size: 15px; border-radius: 13px; }

/* ---------- Login modal ---------- */
.cb-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cb-modal[hidden] { display: none; }
.cb-modal-backdrop { position: absolute; inset: 0; background: rgba(20,24,30,.5); backdrop-filter: blur(2px); animation: cb-fade .18s ease; }
.cb-modal-card { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 24px; padding: 34px 28px 26px; text-align: center; box-shadow: 0 30px 70px -20px rgba(31,36,46,.5); animation: cb-pop .2s cubic-bezier(.2,.9,.3,1.2); }
.cb-modal-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--grad); font-size: 30px; margin-bottom: 16px; box-shadow: 0 12px 22px -10px rgba(242,88,12,.5); }
.cb-modal-card h3 { font-size: 23px; margin: 0 0 10px; }
.cb-modal-card p { font-size: 14.5px; color: var(--muted-2); line-height: 1.6; margin: 0 0 22px; }
.cb-modal-x { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border: none; background: none; font-size: 16px; color: var(--muted-3); cursor: pointer; border-radius: 8px; }
.cb-modal-x:hover { background: var(--cream); color: var(--ink); }
.cb-modal-later { display: block; width: 100%; margin-top: 10px; border: none; background: none; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; padding: 9px; border-radius: 10px; }
.cb-modal-later:hover { background: var(--cream); }
@keyframes cb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cb-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Logos strip ---------- */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.logo-pill { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 13px 20px; box-shadow: 0 10px 22px -18px rgba(31,36,46,.35); }
.logo-pill.active { background: #FFF8F3; border: 2px solid var(--brand); box-shadow: 0 12px 26px -18px rgba(242,88,12,.5); }
.logo-pill .glyph { width: 42px; height: 42px; border-radius: 12px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; font-family: "Baloo 2", sans-serif; }
.logo-pill .nm { font-weight: 700; font-size: 16px; color: var(--ink); }
.logo-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #E9F7EF; }
.logo-pill.more { background: var(--cream); border: 1px dashed #E4DDD2; font-weight: 700; font-size: 15px; color: var(--muted-3); }

/* ---------- Section heads ---------- */
.section { padding: 64px 0 16px; }
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.sec-head h2 { font-size: 40px; margin: 10px 0 12px; }
.sec-head p { font-size: 16.5px; color: var(--muted-2); margin: 0; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.sec-head-row h2 { font-size: 38px; margin: 12px 0 0; }

/* ---------- Coupons ---------- */
.coupon-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 4px 2px 6px; }
.coupon { position: relative; display: flex; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 30px -20px rgba(31,36,46,.28); }
.coupon::before, .coupon::after { content: ""; position: absolute; left: 84px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); z-index: 2; }
.coupon::before { top: -9px; }
.coupon::after { bottom: -9px; }
.coupon .left { flex: 0 0 92px; background: linear-gradient(160deg,#FF8038,#F2580C); color: #fff; padding: 16px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 18px 0 0 18px; }
.coupon .left .pct { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 28px; line-height: 1; margin: 5px 0 4px; }
.coupon .right { flex: 1; min-width: 0; padding: 14px 15px; display: flex; flex-direction: column; border-left: 2px dashed var(--line); border-radius: 0 18px 18px 0; }
.coupon .code { align-self: flex-start; max-width: 100%; margin-top: 9px; font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .03em; color: var(--brand-2); background: #FFF6EF; border: 1px dashed #F4C79E; border-radius: 8px; padding: 5px 10px; overflow-wrap: anywhere; }
.coupon .bar { height: 6px; background: #F1ECE4; border-radius: 999px; margin-top: 5px; overflow: hidden; }
.coupon .bar > span { display: block; height: 100%; background: linear-gradient(90deg,#FF9D52,#F2580C); border-radius: 999px; }
.nav-arrows { display: flex; gap: 10px; }
.nav-arrows span { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; }
.nav-arrows .a1 { background: #fff; border: 1px solid var(--line); color: var(--muted); box-shadow: 0 8px 18px -12px rgba(31,36,46,.3); }
.nav-arrows .a2 { background: var(--grad); color: #fff; box-shadow: 0 10px 18px -8px rgba(242,88,12,.5); }

/* ---------- Steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; position: relative; }
.step-card .big-n { position: absolute; top: 20px; right: 22px; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 40px; color: #F6EDE3; line-height: 1; }
.step-card .big-n.green { color: #EAF5EE; }
.step-card .ic { width: 52px; height: 52px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; }
.step-card .ic.orange { background: var(--grad); color: #fff; box-shadow: 0 10px 18px -8px rgba(242,88,12,.5); }
.step-card .ic.soft { background: #FEEAD9; color: var(--brand-2); }
.step-card .ic.green { background: #E9F7EF; color: var(--green); }
.step-card h3 { font-size: 18px; margin-top: 18px; }
.step-card p { font-size: 14px; color: var(--muted-2); margin-top: 6px; line-height: 1.55; }
.demo { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; }
.demo-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: center; }
.demo-flow .arrow { color: #F2A04D; font-size: 24px; font-weight: 800; text-align: center; }
.demo-card { background: #FBF9F5; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.demo-card.win { background: #EAF7EF; border-color: #C7E8D4; }

/* ---------- Notice ---------- */
.notice { background: linear-gradient(135deg,#FFF8EC,#FFFDF8); border: 2px solid #F7D99A; border-radius: 24px; overflow: hidden; box-shadow: 0 22px 54px -30px rgba(224,163,18,.5); }
.notice-head { background: linear-gradient(90deg,#F2580C,#F5455F); padding: 17px 36px; display: flex; align-items: center; gap: 13px; color: #fff; }
.notice-head .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.notice-body { padding: 30px 36px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.notice-times { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.notice-times > div { background: #fff; border: 1px solid #F2E6C9; border-radius: 14px; padding: 16px; }
.notice-rules { background: #FFFBF0; border: 1px solid #FBEFD2; border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.notice-rules .rule { display: flex; gap: 13px; align-items: flex-start; }
.notice-rules .n { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: #F7E2B0; color: #A9750F; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.notice-rules .rule div { font-size: 14.5px; color: #5A5346; line-height: 1.5; }

/* ---------- Referral ---------- */
.referral { position: relative; overflow: hidden; background: linear-gradient(120deg,#FFF1DD 0%,#FFE1BE 100%); border: 2px solid #F7C58C; border-radius: 28px; padding: 48px 52px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; box-shadow: 0 26px 64px -30px rgba(242,88,12,.5); }
.referral > div { min-width: 0; }
.referral h2 { font-size: 36px; line-height: 1.12; }
.referral::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--grad); }
.referral .blob { position: absolute; right: -50px; top: -60px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle,rgba(245,112,27,.30),transparent 70%); }
.ref-example { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #ECDFC9; border-radius: 16px; padding: 16px 20px; margin-bottom: 18px; max-width: 440px; flex-wrap: wrap; }
.ref-link { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px dashed #E2C9A0; border-radius: 14px; padding: 6px 6px 6px 18px; max-width: 400px; }
.ref-link input { flex: 1; border: none; background: transparent; font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); outline: none; min-width: 0; }
.tier { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #ECDFC9; border-radius: 16px; padding: 18px 20px; }
.tier.gold { background: linear-gradient(120deg,#FFF1DD,#FFFAF3); border: 1px solid #F2C078; }
.tier .medal { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: start; }
.blog-feat { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: block; box-shadow: 0 16px 38px -26px rgba(31,36,46,.32); }
.blog-feat .thumb { height: 262px; background: linear-gradient(135deg,#FFD9BE,#FF9D52); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-feat .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-feat .thumb .emoji { font-size: 76px; }
.blog-feat .badge { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.92); color: var(--brand-2); font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 6px 13px; }
.blog-list { display: flex; flex-direction: column; gap: 18px; }
.blog-item { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.blog-item .thumb { flex: 0 0 132px; aspect-ratio: 16/9; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 30px; overflow: hidden; background: linear-gradient(135deg,#C7E8D4,#15A85B); }
.blog-item .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg,#FF9D52,#F2580C); border-radius: 28px; padding: 52px; text-align: center; }
.cta-band h2 { color: #fff; font-size: 40px; margin: 0 0 12px; position: relative; }
.cta-band p { font-size: 17px; color: rgba(255,255,255,.92); margin: 0 0 26px; position: relative; }
.cta-band .c1 { position: absolute; left: -40px; top: -50px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta-band .c2 { position: absolute; right: -30px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.1); }
.cta-band .btn-white { position: relative; background: #fff; color: var(--brand); font-weight: 800; font-size: 16px; padding: 16px 34px; border-radius: 14px; box-shadow: 0 14px 28px -12px rgba(0,0,0,.35); }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-grid h4 { font-family: "Be Vietnam Pro", sans-serif; font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 14px; }
.footer-grid .col a { display: block; font-size: 13.5px; color: var(--muted-2); margin-bottom: 10px; }
.footer-grid .col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid #F4EEE5; padding-top: 18px; padding-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom .copy { font-size: 12.5px; color: var(--muted-3); }
.social { display: flex; gap: 10px; }
.social span { width: 34px; height: 34px; border-radius: 10px; background: var(--cream); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-family: "Baloo 2", sans-serif; }

/* ---------- Single / Page (blog content) ---------- */
.content-narrow { max-width: 760px; margin: 0 auto; }
.entry-header { margin: 36px 0 24px; }
.entry-header h1 { font-size: clamp(28px,4vw,44px); margin: 0 0 12px; }
.entry-meta { color: var(--muted-3); font-size: 14px; }
.entry-thumb { border-radius: 18px; overflow: hidden; margin: 0 0 28px; }
.entry-content { font-size: 17px; line-height: 1.8; color: var(--ink); }
.entry-content h2 { font-size: 28px; margin: 32px 0 12px; }
.entry-content h3 { font-size: 22px; margin: 26px 0 10px; }
.entry-content p { margin: 0 0 18px; }
.entry-content a { text-decoration: underline; }
.entry-content img { border-radius: 12px; }
.entry-content blockquote { margin: 24px 0; padding: 4px 20px; border-left: 4px solid var(--brand-light); background: #fff; border-radius: 8px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 600; }
.pagination .page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 44px; }
  .referral { padding: 40px; }
}
@media (max-width: 860px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .primary-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 18px; margin: 0; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a { display: block; }
  .header-actions .login { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; padding-bottom: 36px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 16px; }
  .tool { padding: 22px 20px; }
  .coupon-rail { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 44px 0 8px; }
  .sec-head h2, .sec-head-row h2 { font-size: 28px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .demo-flow { grid-template-columns: 1fr; }
  .demo-flow .arrow { transform: rotate(90deg); }
  .notice-body { grid-template-columns: 1fr; gap: 24px; }
  .notice-head, .notice-body { padding-left: 22px; padding-right: 22px; }
  .referral { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 24px; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cta-band { padding: 40px 24px; }
  .cta-band h2 { font-size: 30px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 15px; }
  .hero-stats { gap: 18px; }
  .hero-stats .num { font-size: 24px; }
  .tool { padding: 18px 16px; }
  .plat-grid { gap: 8px; }
  .plat { padding: 11px 2px; gap: 6px; }
  .plat .glyph { width: 46px; height: 46px; }
  .plat .name { font-size: 11px; }
  .plat .tag { font-size: 8px; padding: 1px 5px; top: -7px; right: -3px; }
  .coupon-rail { grid-template-columns: 1fr; }
  .sec-head h2, .sec-head-row h2 { font-size: 26px; }
  .step-card { padding: 22px 20px; }
  .notice-head { padding: 15px 20px; }
  .notice-head .ic { width: 38px; height: 38px; font-size: 19px; }
  .notice-body { padding: 22px 20px; }
  .referral h2 { font-size: 28px; }
  .cta-band h2 { font-size: 27px; }
  .ref-example { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
  .steps-grid { grid-template-columns: 1fr; }
  .notice-times { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats > div + div { border-left: 0; padding-left: 0; }
  .hero h1 { font-size: 27px; }
  .cb-modal-card { padding: 30px 22px 22px; }
}

/* =========================================================================
 * Tin tức — listing + single (brand-styled, megao layout)
 * ====================================================================== */

.news { padding: 48px 0 72px; }
.news .wrap { max-width: 920px; }

.news-breadcrumb { font-size: 13px; color: var(--muted-3, #9AA0AD); margin-bottom: 18px; }
.news-breadcrumb a { color: var(--muted-3, #9AA0AD); text-decoration: none; }
.news-breadcrumb a:hover { color: #F2580C; }
.news-breadcrumb i { font-style: normal; opacity: .6; margin: 0 2px; }

.news-head { margin-bottom: 22px; }
.news-head h1 {
	font-family: 'Baloo 2', sans-serif; font-weight: 800;
	font-size: 38px; line-height: 1.12; color: #1A1E27; margin: 8px 0 0;
}
.news-head p { color: #6B7280; margin: 8px 0 0; }

.news-tabs {
	display: flex; gap: 9px; flex-wrap: nowrap; overflow-x: auto;
	padding-bottom: 6px; margin-bottom: 30px; -webkit-overflow-scrolling: touch;
}
.news-tabs::-webkit-scrollbar { height: 0; }
.news-tab {
	flex: 0 0 auto; font-size: 13.5px; font-weight: 600; color: #6B7280;
	background: #F4F1EC; border: 1px solid #ECE6DC; border-radius: 999px;
	padding: 8px 16px; text-decoration: none; white-space: nowrap; transition: .15s;
}
.news-tab:hover { color: #1A1E27; }
.news-tab.active { color: #fff; background: #F2580C; border-color: #F2580C; }

.news-list { display: flex; flex-direction: column; gap: 22px; }
.news-card {
	display: grid; grid-template-columns: 300px 1fr; gap: 22px;
	background: #fff; border: 1px solid #F0EAE1; border-radius: 18px;
	overflow: hidden; transition: box-shadow .18s, transform .18s;
}
.news-card:hover { box-shadow: 0 14px 34px rgba(242, 88, 12, .10); transform: translateY(-2px); }
.news-card .thumb {
	display: flex; align-items: center; justify-content: center;
	min-height: 190px; overflow: hidden;
}
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .thumb .emoji { font-size: 56px; }
.news-card .body { padding: 22px 24px 22px 0; display: flex; flex-direction: column; }
.news-card .meta { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.news-card .badge {
	font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
	color: #E85D04; background: #FEEAD9; border: 1px solid #F9D9BB;
	border-radius: 6px; padding: 3px 9px;
}
.news-card .date { font-size: 12.5px; color: #9AA0AD; }
.news-card h2 { margin: 0; }
.news-card h2 a {
	font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 22px;
	line-height: 1.22; color: #1A1E27; text-decoration: none;
}
.news-card h2 a:hover { color: #F2580C; }
.news-card .excerpt { font-size: 14.5px; color: #6B7280; line-height: 1.55; margin: 10px 0 0; }
.read-more { color: #E85D04; font-weight: 700; font-size: 14px; text-decoration: none; }
.read-more:hover { color: #C2410C; }
.news-card .read-more { margin-top: auto; padding-top: 14px; }

.news-empty { text-align: center; color: #9AA0AD; padding: 40px 0; }

.news-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.news-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
	background: #F4F1EC; border: 1px solid #ECE6DC; color: #6B7280;
	font-weight: 700; font-size: 14px; text-decoration: none;
}
.news-pagination .page-numbers.current { background: #F2580C; border-color: #F2580C; color: #fff; }
.news-pagination a.page-numbers:hover { color: #1A1E27; }

/* ---- Single post ---- */
.entry { padding: 40px 0 64px; }
.entry .content-narrow { max-width: 760px; }
.entry-header { margin: 16px 0 24px; }
.entry-badge {
	display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
	letter-spacing: .03em; color: #E85D04; background: #FEEAD9; border: 1px solid #F9D9BB;
	border-radius: 6px; padding: 4px 11px; text-decoration: none; margin-bottom: 14px;
}
.entry-header h1 {
	font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 40px;
	line-height: 1.12; color: #1A1E27; margin: 0;
}
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px; color: #9AA0AD; font-size: 13.5px; margin-top: 14px; }
.entry-thumb { border-radius: 18px; overflow: hidden; margin: 0 0 28px; }
.entry-thumb img { width: 100%; height: auto; display: block; }
.entry-content { font-size: 17px; line-height: 1.75; color: #2C3140; }
.entry-content > * + * { margin-top: 20px; }
.entry-content h2 { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 27px; color: #1A1E27; margin-top: 38px; }
.entry-content h3 { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 21px; color: #1A1E27; margin-top: 30px; }
.entry-content a { color: #E85D04; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content li + li { margin-top: 8px; }
.entry-content img { max-width: 100%; height: auto; border-radius: 14px; }
.entry-content blockquote {
	border-left: 4px solid #F2580C; background: #FEF6F0; border-radius: 0 12px 12px 0;
	margin: 24px 0; padding: 14px 20px; color: #5B4636; font-style: italic;
}

/* ---- Related + CTA ---- */
.related { max-width: 920px; margin-top: 48px; }
.related-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 24px; color: #1A1E27; margin: 0 0 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid #F0EAE1;
	border-radius: 14px; overflow: hidden; text-decoration: none; transition: box-shadow .18s, transform .18s;
}
.related-card:hover { box-shadow: 0 12px 28px rgba(242, 88, 12, .10); transform: translateY(-2px); }
.related-card .thumb { display: flex; align-items: center; justify-content: center; height: 120px; font-size: 38px; overflow: hidden; }
.related-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card .rc-body { padding: 13px 15px 16px; display: flex; flex-direction: column; gap: 6px; }
.related-card .rc-title { font-weight: 700; font-size: 14.5px; color: #1A1E27; line-height: 1.3; }
.related-card .rc-date { font-size: 12px; color: #9AA0AD; }

.entry-cta {
	max-width: 920px; margin-top: 40px; display: flex; align-items: center;
	justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

@media (max-width: 720px) {
	.news-card { grid-template-columns: 1fr; }
	.news-card .thumb { min-height: 180px; }
	.news-card .body { padding: 0 20px 22px; }
	.news-head h1, .entry-header h1 { font-size: 30px; }
	.related-grid { grid-template-columns: 1fr; }
	.entry-cta { flex-direction: column; align-items: stretch; }
}

/* =========================================================================
 * Single article — 3-column layout: TOC | content | app-ad
 * ====================================================================== */
.entry .article-layout {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr) 240px;
	gap: 30px;
	align-items: stretch;
}
.entry .article-main { min-width: 0; }
/* columns stretch to the article height so the sticky TOC/banner have room to travel */
.toc-col, .ad-col { align-self: stretch; }

/* table of contents (left, sticky) */
.toc { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto; background: linear-gradient(180deg,#FFFFFF,#FFFCF9); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 10px 28px -18px rgba(31,36,46,.28); }
.toc-title { display: flex; align-items: center; gap: 9px; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2); margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.toc-title::before { content: ""; width: 4px; height: 16px; border-radius: 3px; background: var(--grad); flex: 0 0 auto; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc li a { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; text-decoration: none; padding: 8px 10px 8px 13px; border-radius: 10px; border-left: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.toc li a:hover { background: #FEF3EC; color: var(--ink-strong); }
.toc li a.is-active { background: #FFF1E6; color: var(--brand-2); border-left-color: var(--brand); font-weight: 600; }
.toc-l3 a { padding-left: 24px; font-size: 12.5px; color: var(--muted-3); }

/* app promo banner (right, sticky) */
.app-ad { position: sticky; top: 88px; background: linear-gradient(160deg, #FFF3EA, #FFFFFF); border: 1px solid #F6DCC6; border-radius: 18px; padding: 20px; text-align: center; box-shadow: var(--shadow-card); }
.app-ad img { width: 48px; height: 48px; border-radius: 13px; }
.app-ad-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 16px; color: #1A1E27; margin: 12px 0 6px; line-height: 1.2; }
.app-ad-desc { font-size: 13px; color: var(--muted-2); line-height: 1.55; margin: 0 0 14px; }
.app-ad .btn-primary { width: 100%; }

/* app promo banner image (right column, Customizer-configurable) */
.app-banner { position: sticky; top: 88px; display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); transition: transform .18s, box-shadow .18s; }
.app-banner:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -18px rgba(242,88,12,.35); }
.app-banner img { display: block; width: 100%; height: auto; }

/* anchor offset so headings aren't hidden under the sticky header */
.entry-content h2, .entry-content h3 { scroll-margin-top: 88px; }

@media (max-width: 1080px) {
	.entry .article-layout { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
	.toc-col { order: 1; }
	.article-main { order: 2; }
	.ad-col { order: 3; }
	.toc, .app-ad, .app-banner { position: static; }
	.app-ad, .app-banner { margin-top: 12px; }
	.app-banner { max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* Platform logos in the "thời gian ghi nhận" cards */
.nt-logos { display: flex; gap: 6px; margin-bottom: 9px; }
.nt-logos img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.nt-logos .more { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #F1ECE4; font-size: 17px; }

/* Mobile refinements */
@media (max-width: 600px) {
	.partners-strip { display: none; }   /* hide partner-logos strip on phones */
	.hero h1 { font-size: 27px; line-height: 1.14; }
	.hero .lead { line-height: 1.55; }
}
