/* gi8tienthuong.com — tím · trắng · điểm nhấn vàng. Ưu tiên di động. */
:root {
  --purple-950: #1c0a3a;
  --purple-900: #2a1052;
  --purple-800: #3a1675;
  --purple-700: #4b1d8f;
  --purple-600: #5b25b0;
  --purple-500: #6d33d1;
  --purple-200: #dccbfa;
  --purple-100: #efe7fd;
  --purple-50: #f8f5fe;
  --gold-500: #f2b705;
  --gold-400: #ffc933;
  --gold-100: #fff4cf;
  --gold-text: #6b4a00;
  --green-bg: #e3f5ea;
  --green-text: #11663a;
  --gray-bg: #eeecf2;
  --gray-text: #5b5668;
  --text: #1d1530;
  --muted: #5a5370;
  --border: #e5ddf3;
  --bg: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(42, 16, 82, .06), 0 6px 20px rgba(42, 16, 82, .07);
  --shadow-hover: 0 2px 4px rgba(42, 16, 82, .08), 0 12px 32px rgba(42, 16, 82, .12);
  --pink-500: #f0559f;
  --pink-300: #ff9fcd;
  --pink-100: #ffe4f2;
  --blue-500: #4c7dff;
  --blue-300: #8fb4ff;
  --blue-100: #e2ecff;
  /* Khối tím đậm có ánh hồng/xanh ở góc */
  --grad-deep:
    radial-gradient(120% 140% at 0% 0%, rgba(240, 85, 159, .42), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(76, 125, 255, .45), transparent 55%),
    linear-gradient(150deg, #2a0e5a 0%, #4b1d9a 55%, #3a2a9e 100%);
  --grad-btn: linear-gradient(135deg, #7a35e6 0%, #a63fd8 55%, #d24fae 100%);
  --grad-bar: linear-gradient(90deg, var(--pink-500), var(--purple-500), var(--blue-500));
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
/* Nền màu dự phòng cùng tông, tránh lộ khoảng trắng khi cuộn quá đà trên điện thoại */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; background: #e4d6ff; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: transparent;
  overflow-x: hidden;
}
/* Nền gradient hồng → tím → xanh: một lớp cố định phủ kín màn hình,
   vẽ bằng CSS nên không lặp ảnh, không có đường nối (kể cả iOS) */
body::before {
  content: ""; position: fixed; top: 0; left: 0; z-index: -1; pointer-events: none;
  width: 100%; height: 100vh; height: 100lvh;
  background:
    radial-gradient(70vmax 60vmax at -10% -10%, rgba(255, 128, 191, .55), transparent 60%),
    radial-gradient(70vmax 60vmax at 110% 110%, rgba(92, 145, 255, .5), transparent 60%),
    radial-gradient(50vmax 40vmax at 105% -5%, rgba(150, 110, 255, .35), transparent 60%),
    radial-gradient(45vmax 40vmax at -5% 105%, rgba(255, 160, 210, .3), transparent 60%),
    linear-gradient(165deg, #ffe3f1 0%, #eedcff 28%, #dccaff 52%, #d4d9ff 76%, #d2e6ff 100%);
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-600); text-underline-offset: 3px; }
a:hover { color: var(--purple-800); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; color: var(--purple-950); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 3.4vw, 1.75rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.visually-hidden {
  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: 8px; top: -60px; z-index: 100;
  background: var(--gold-400); color: var(--purple-950); padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 8px; }
main:focus { outline: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 2px 16px rgba(91, 37, 176, .08);
}
.header-inner { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
/* Logo gốc: chỉ giới hạn chiều cao, giữ nguyên tỷ lệ, không lọc màu */
.brand picture { display: block; flex: none; }
.brand-logo { display: block; height: 40px; width: auto; }
.logo-slot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; height: 40px; border: 2px dashed var(--purple-200); border-radius: 8px;
  font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--purple-50); letter-spacing: .02em;
}
.brand-text { font-weight: 800; color: var(--purple-800); font-size: 1.05rem; white-space: nowrap; }

/* Nút đăng ký: gọn trên điện thoại (chữ ngắn, cao 36px), đầy đủ trên màn hình lớn */
.btn.header-cta { flex: none; min-height: 36px; padding: 6px 14px; font-size: .85rem; border-width: 0; white-space: nowrap; }
.cta-full {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
@media (min-width: 640px) {
  .btn.header-cta { min-height: 40px; padding: 8px 18px; font-size: .9rem; }
  .cta-short { display: none; }
  .cta-full { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
@media (max-width: 439px) { .brand-text { display: none; } }
@media (min-width: 1180px) { .header-cta { order: 3; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 20px; height: 2px; background: var(--purple-800); border-radius: 2px; position: relative; transition: transform .2s;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 8px var(--gutter) 16px;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: block; padding: 12px 8px; text-decoration: none; color: var(--text); font-weight: 600; border-radius: 8px;
}
.site-nav li a:hover { background: var(--purple-50); }
.site-nav a[aria-current="page"] { color: var(--purple-600); background: var(--purple-50); }
.nav-search { display: flex; margin-top: 8px; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.nav-search input { flex: 1; min-width: 0; border: 0; padding: 10px 14px; font: inherit; font-size: .95rem; background: transparent; }
.nav-search input:focus { outline: none; }
.nav-search:focus-within { outline: 3px solid var(--gold-500); outline-offset: 1px; }
.nav-search button { border: 0; background: var(--purple-700); color: #fff; padding: 0 14px; cursor: pointer; }

@media (min-width: 1180px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex !important; position: static; align-items: center; gap: 12px;
    padding: 0; border: 0; box-shadow: none; background: transparent;
  }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav li a { padding: 8px 10px; font-size: .94rem; white-space: nowrap; }
  .nav-search { margin: 0; width: 180px; }
}

.intro-strip { background: rgba(255, 255, 255, .5); border-bottom: 1px solid rgba(255, 255, 255, .6); }

/* Khối nội dung trắng trên nền gradient (mọi trang con) */
main > .container {
  width: auto; margin: 20px max(12px, calc((100% - 1160px) / 2)) 32px;
  padding-bottom: 24px; background: rgba(255, 255, 255, .95); border-radius: 20px;
  box-shadow: 0 8px 32px rgba(91, 37, 176, .12);
}
main > .container.narrow { margin-left: max(12px, calc((100% - 820px) / 2)); margin-right: max(12px, calc((100% - 820px) / 2)); }
@media (min-width: 720px) { main > .container { padding-left: 32px; padding-right: 32px; } }
.intro-strip p { margin: 0 auto; padding-top: 7px; padding-bottom: 7px; font-size: .84rem; font-weight: 600; color: var(--purple-800); text-align: center; line-height: 1.45; }

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 4px 14px rgba(166, 63, 216, .3); }
.btn-primary:hover { filter: brightness(1.08); color: #fff; }
.btn-gold { background: linear-gradient(180deg, #ffd84d, var(--gold-400)); color: var(--purple-950); box-shadow: 0 4px 14px rgba(242, 183, 5, .3); }
.btn-gold:hover { background: var(--gold-500); color: var(--purple-950); }
.btn-outline { border-color: var(--purple-600); color: var(--purple-700); background: #fff; }
.btn-outline:hover { background: var(--grad-btn); color: #fff; border-color: transparent; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.badge-active { background: var(--green-bg); color: var(--green-text); }
.badge-active::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-expired { background: var(--gray-bg); color: var(--gray-text); }
.badge-unconfirmed { background: var(--gold-100); color: var(--gold-text); }
.badge-sample {
  background: #fffaf0; color: var(--gold-text); border: 1px dashed #d9a400; white-space: normal;
}
.text-sample { color: var(--gold-text); font-style: italic; }

/* ---------- Hero ---------- */
.hero {
  background: var(--grad-deep);
  color: #fff; padding: 40px 0 48px;
  margin: 16px 12px 0; border-radius: 22px; box-shadow: 0 12px 40px rgba(58, 20, 130, .25);
}
@media (min-width: 1184px) { .hero { margin: 20px auto 0; max-width: 1160px; } }
.hero-inner { display: grid; gap: 28px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-400); margin-bottom: .6em; }
.hero h1 { color: #fff; }
.hero .hl { color: var(--gold-400); }
.hero-lead { color: #e6dcfa; font-size: 1.05rem; max-width: 40em; }
.hero-search { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; max-width: 520px; margin: 20px 0 16px; }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 8px 12px; font: inherit; color: var(--text); background: transparent; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { outline: 3px solid var(--gold-400); outline-offset: 2px; }
.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.hero-cta span { font-size: .82rem; color: #d9cbf5; }
.cta-box {
  display: grid; gap: 14px; align-items: center; margin: 0 0 40px; padding: 20px; border-radius: var(--radius);
  background: var(--grad-deep); color: #e6dcfa;
}
.cta-heading { font-weight: 800; color: #fff; font-size: 1.1rem; margin: 0 0 4px; }
.cta-text { margin: 0; font-size: .93rem; }
.cta-action { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cta-note { font-size: .78rem; color: #cbbde6; }
@media (min-width: 640px) {
  .cta-box { grid-template-columns: 1fr auto; padding: 24px 28px; }
  .cta-action { align-items: center; }
}
.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.quick-chips a {
  display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08);
}
.quick-chips a:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.hero-card {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: var(--radius);
  padding: 20px; align-self: center;
}
.hero-card-title { font-weight: 700; color: var(--gold-400); margin-bottom: .6em; }
.hero-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hero-card li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(255, 255, 255, .06); border-radius: 10px; font-weight: 600; }
.hero-card li span { font-size: .75rem; font-weight: 800; color: var(--purple-950); background: var(--gold-400); border-radius: 6px; padding: 2px 6px; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-inner { grid-template-columns: 1.4fr 1fr; gap: 48px; }
}
@media (max-width: 599px) { .hero-card { display: none; } }

/* ---------- Banner strip ---------- */
.banner-strip { padding: 20px 0 0; }
.banner-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--radius); scrollbar-width: none;
}
.banner-track::-webkit-scrollbar { display: none; }
.banner-slide { flex: 0 0 100%; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: var(--purple-50); }
/* Banner gốc tỉ lệ 1920×428: giữ nguyên, không cắt */
.banner-slide img, .offer-thumb img, .banner-figure img { width: 100%; height: auto; aspect-ratio: 1920 / 428; object-fit: contain; }
.banner-controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.banner-note { flex: 1; margin: 0; font-size: .78rem; color: var(--muted); text-align: center; }
.banner-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: #fff;
  color: var(--purple-700); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.banner-btn:hover { background: var(--purple-50); }
.offer-thumb { display: block; margin: -18px -18px 4px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.banner-figure { background: var(--purple-50); }
.section-sub { color: var(--muted); font-size: .92rem; margin: -6px 0 16px; }

/* ---------- Sections & grids ---------- */
.section { padding: 40px 0; }
.section-tint { background: rgba(255, 255, 255, .38); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head .section-title { margin: 0; }
.section-title { margin-bottom: 16px; }
.section-link, .section-more a { font-weight: 700; text-decoration: none; }
.section-more { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .section { padding: 56px 0; } }

/* ---------- Offer card ---------- */
.offer-card {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid rgba(220, 203, 250, .8); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s; position: relative;
}
.offer-card:hover { box-shadow: 0 4px 8px rgba(91, 37, 176, .08), 0 16px 36px rgba(166, 63, 216, .18); transform: translateY(-2px); }
.offer-card[data-status="expired"] { background: #fcfbfe; }
.offer-card[data-status="expired"] .offer-title a { color: var(--gray-text); }
.offer-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.offer-icon {
  display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px;
  background: var(--purple-100); color: var(--purple-700);
}
.offer-icon.cat-tan-thu { background: var(--pink-100); color: #b8226d; }
.offer-icon.cat-su-kien { background: var(--blue-100); color: #2a55c9; }
.offer-cat { font-size: .82rem; font-weight: 700; color: var(--muted); text-decoration: none; margin-right: auto; }
.offer-title { font-size: 1.08rem; margin: 0; }
.offer-title a { color: var(--purple-950); text-decoration: none; }
.offer-title a:hover { color: var(--purple-600); text-decoration: underline; }
.offer-summary { color: var(--muted); font-size: .93rem; margin: 0; }
.offer-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 10px 12px; background: var(--purple-50); border-radius: var(--radius-sm); font-size: .85rem; }
.offer-meta dt { color: var(--muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.offer-meta dd { margin: 0; font-weight: 600; }
.offer-card .badge-sample { align-self: flex-start; }
.offer-cta { margin-top: auto; width: 100%; }

/* ---------- Article card ---------- */
.article-card {
  background: #fff; border: 1px solid rgba(220, 203, 250, .8); border-radius: var(--radius); padding: 22px 18px 18px;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.article-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad-bar); }
.section-tint .article-card { box-shadow: var(--shadow); }
.article-section { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--purple-500); margin-bottom: .4em; }
.article-title { font-size: 1.05rem; margin-bottom: .4em; }
.article-title a { color: var(--purple-950); text-decoration: none; }
.article-title a::after { content: ""; position: absolute; inset: 0; }
.article-card:hover .article-title a { color: var(--purple-600); text-decoration: underline; }
.article-card:focus-within { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.article-card a:focus-visible { outline: none; }
.article-desc { color: var(--muted); font-size: .92rem; margin-bottom: .6em; }
.article-date { color: var(--muted); font-size: .82rem; margin: 0; }

/* ---------- Home blocks ---------- */
.steps-row { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.steps-row li { counter-increment: s; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 18px 62px; position: relative; }
.steps-row li::before {
  content: counter(s); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold-400); color: var(--purple-950); font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.steps-row h3 { margin-bottom: .25em; }
.steps-row p { color: var(--muted); font-size: .93rem; margin-bottom: .3em; }
.steps-row a { font-weight: 700; font-size: .9rem; }
@media (min-width: 640px) { .steps-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps-row { grid-template-columns: repeat(4, 1fr); } }

.term-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.term-chips a {
  display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--purple-100);
  color: var(--purple-800); font-weight: 700; text-decoration: none;
}
.term-chips a { background: #fff; box-shadow: var(--shadow); }
.term-chips a:hover { background: var(--grad-btn); color: #fff; }
.steps-row li { box-shadow: var(--shadow); }
.banner-slide { box-shadow: 0 10px 30px rgba(91, 37, 176, .18); }

.rg-band {
  display: grid; gap: 16px; align-items: center; padding: 24px; border-radius: 20px;
  background: var(--grad-deep); color: #e9defc; box-shadow: 0 10px 30px rgba(58, 20, 130, .2);
}
.rg-band h2 { color: #fff; }
.rg-band p { margin: 0; }
@media (min-width: 760px) { .rg-band { grid-template-columns: 1fr auto; padding: 32px; } }

/* ---------- Page heads, breadcrumbs ---------- */
.breadcrumbs { padding: 16px 0 4px; font-size: .85rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li { color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: var(--purple-200); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--purple-600); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text); }
.page-head { padding: 12px 0 20px; }
.lead { font-size: 1.08rem; color: var(--muted); }
.detail-header { padding: 12px 0 20px; }
.detail-header .offer-card-top { margin-bottom: 12px; }
.detail-figure { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

/* ---------- Filters ---------- */
.filter-bar {
  display: grid; gap: 14px; padding: 16px; background: var(--purple-50); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px;
}
.filter-field label, .filter-group legend { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.filter-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter-search input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fff;
}
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { flex: none; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
  font-size: .9rem; font-weight: 600; color: var(--text); white-space: nowrap;
}
.seg input:checked + span { background: var(--grad-btn); border-color: transparent; color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--gold-500); outline-offset: 2px; }
@media (min-width: 960px) { .filter-bar { grid-template-columns: 1fr auto auto; align-items: end; } }
.result-count { color: var(--muted); font-size: .9rem; font-weight: 600; margin: 8px 0 14px; }
.empty-state { padding: 24px; text-align: center; color: var(--muted); background: var(--purple-50); border-radius: var(--radius); }

/* ---------- Detail ---------- */
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; }
.fact { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.fact-accent { background: var(--gold-100); border-color: #f3dc8f; }
.fact-wide { grid-column: 1 / -1; }
.fact-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.fact-value { font-weight: 700; margin: 0; font-size: .95rem; color: var(--purple-950); }
@media (min-width: 720px) { .fact-grid { grid-template-columns: repeat(3, 1fr); } }
.detail-section { margin-bottom: 28px; }
.check-list, .step-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; }
.check-list li, .step-list li { position: relative; padding: 10px 12px 10px 42px; background: var(--purple-50); border-radius: var(--radius-sm); }
.check-list li::before {
  content: ""; position: absolute; left: 14px; top: 15px; width: 14px; height: 8px;
  border-left: 3px solid var(--purple-600); border-bottom: 3px solid var(--purple-600); transform: rotate(-45deg);
}
.step-list { counter-reset: st; }
.step-list li { counter-increment: st; }
.step-list li::before {
  content: counter(st); position: absolute; left: 10px; top: 10px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--purple-700); color: #fff; font-size: .8rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.callout { padding: 18px 20px; border-radius: var(--radius); background: var(--gold-100); border-left: 5px solid var(--gold-500); }
.callout h2 { font-size: 1.15rem; }
.callout ul { margin: 0; padding-left: 1.2em; }
.callout-warn { margin: 24px 0 40px; }
.source-box {
  margin: 28px 0 40px; padding: 16px 18px; border-radius: var(--radius); border: 1px dashed var(--purple-200); background: #fff; font-size: .92rem;
}
.source-box p { margin: 0 0 .4em; }
.source-box p:last-child { margin: 0; }
.source-warning { color: var(--gold-text); font-weight: 600; }

/* ---------- Prose ---------- */
.prose { font-size: 1.03rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose blockquote {
  margin: 1.2em 0; padding: 14px 18px; background: var(--purple-50); border-left: 4px solid var(--purple-500); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose blockquote p { margin: 0 0 .4em; }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--purple-100); color: var(--purple-950); }
.prose code { background: var(--purple-50); padding: 1px 6px; border-radius: 4px; font-size: .92em; }
.prose-article { padding-bottom: 8px; }

/* ---------- Hubs ---------- */
.jump-cards { display: grid; gap: 12px; margin-bottom: 32px; }
.jump-cards a {
  display: block; padding: 18px; border-radius: var(--radius); text-decoration: none;
  background: var(--grad-deep); color: #fff; transition: transform .2s, box-shadow .2s;
}
.jump-cards a:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(58, 20, 130, .25); }
.jump-cards strong { display: block; font-size: 1.1rem; }
.jump-cards span { color: #e2d5fb; font-size: .92rem; }
@media (min-width: 720px) { .jump-cards { grid-template-columns: repeat(3, 1fr); } }
.glossary { display: grid; gap: 12px; margin: 0 0 32px; }
.glossary > div { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); border-left: 5px solid var(--gold-500); }
.glossary dt { font-weight: 800; font-size: 1.05rem; }
.glossary dt a { text-decoration: none; color: var(--purple-800); }
.glossary dt a:hover { text-decoration: underline; }
.glossary dd { margin: 4px 0 0; color: var(--muted); }
@media (min-width: 720px) { .glossary { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; margin-bottom: 48px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.faq-item summary {
  cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; color: var(--purple-950); list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--purple-600);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] { border-color: var(--purple-200); box-shadow: var(--shadow); }
.faq-answer { padding: 0 18px 16px; color: var(--muted); }
.faq-answer p { margin: 0; }

/* ---------- Search ---------- */
.search-page-form { display: flex; gap: 8px; margin-bottom: 8px; }
.search-page-form input {
  flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--border); border-radius: 999px; font: inherit;
}
.search-results { list-style: none; padding: 0; margin: 0 0 48px; display: grid; gap: 12px; }
.search-results li { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.search-results .k { font-size: .76rem; font-weight: 800; color: var(--purple-500); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 4px; }
.search-results a { font-weight: 700; font-size: 1.05rem; }
.search-results p { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }
.search-results mark { background: var(--gold-100); color: inherit; padding: 0 2px; border-radius: 3px; }

.about-facts { display: grid; gap: 10px; margin: 0 0 1.5em; }
.about-facts > div { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.about-facts dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.about-facts dd { margin: 4px 0 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 14px; }
.contact-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.contact-card h2 { font-size: 1.15rem; }
.contact-email { font-weight: 700; font-size: 1.1rem; word-break: break-all; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.page-404 { padding: 48px var(--gutter) 64px; }
.page-404 .search-page-form { max-width: 480px; margin: 20px auto; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(240, 85, 159, .25), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, rgba(76, 125, 255, .25), transparent 60%),
    var(--purple-950);
  color: #cbbde6; font-size: .92rem; padding-top: 40px; margin-top: 24px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; padding-bottom: 28px; }
.footer-brand { font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: .4em; }
.footer-title { font-weight: 800; color: var(--gold-400); text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.age-badge { display: flex; gap: 10px; align-items: center; }
.age-badge span {
  flex: none; display: inline-flex; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold-400);
  align-items: center; justify-content: center; font-weight: 800; color: var(--gold-400); font-size: .85rem;
}
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; padding-bottom: 24px; font-size: .8rem; color: #a99bc7; }
.footer-bottom p { margin: 0 0 .4em; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .intro-strip, .filter-bar, .rg-band { display: none; }
}
