:root {
  --ink: #263e5b;
  --ink-soft: #61758d;
  --paper: #ffffff;
  --wash: #f2f5fa;
  --line: #dce4ef;
  --brand: #3d6ba8;
  --brand-deep: #2e5488;
  --accent: #3d6ba8;
  --accent-deep: #2e5488;
  --gold: #f2b134;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(38, 62, 91, 0.1);
  --font-th: "IBM Plex Sans Thai", "Leelawadee UI", "Segoe UI", system-ui, sans-serif;
  --font-num: "Archivo", "IBM Plex Sans Thai", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-th);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-soft); }

/* ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-th); font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.pill {
  font-family: var(--font-num); font-size: 0.8rem; font-weight: 800;
  background: var(--gold); color: var(--ink);
  border-radius: 999px; padding: 1px 9px;
}

/* แถบบน */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; flex-wrap: nowrap; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; white-space: nowrap; }
/* แถบเมนูชั้นสอง: พื้นครีมแยกจากแถวบนชัดเจน */
.navband { background: var(--wash); border-top: 1px solid var(--line); }
.navband-inner { display: flex; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.brand-mark {
  font-family: var(--font-num); font-weight: 800; font-size: 0.95rem;
  background: var(--brand); color: #fff; border-radius: 10px; padding: 7px 9px;
}
.brand-name { font-weight: 700; font-size: 1.05rem; display: flex; flex-direction: column; line-height: 1.15; }
.brand-name small { font-weight: 500; font-size: 0.72rem; color: var(--ink-soft); }
.nav { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; padding: 2px; margin: 0 -2px; }
.nav a { flex: none; color: var(--ink-soft); text-decoration: none; font-weight: 600; padding: 8px 13px; border-radius: 999px; border: 1.5px solid transparent; white-space: nowrap; word-break: keep-all; }
.nav a:hover { color: var(--ink); background: var(--wash); }
.nav a.on { color: #fff; background: var(--ink); border-color: var(--ink); }

/* สวิตช์แพลตฟอร์ม (context กลางทั้งเว็บ) */
.platform-switch {
  display: flex; gap: 2px; background: var(--wash);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px;
  flex: none;
}
.platform-switch button {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font-th); font-weight: 700; font-size: 0.82rem;
  color: var(--ink-soft); border-radius: 999px; padding: 6px 14px;
  transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.platform-switch button:hover { color: var(--ink); }
.platform-switch button.on { background: var(--ink); color: #fff; }
.platform-bar { display: none; }

/* ฮีโร่ */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 40px; align-items: start; }
.kicker { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-soft); margin-bottom: 10px; }
.dot-live { width: 10px; height: 10px; border-radius: 50%; background: #2ba84a; display: inline-block; flex: none; }
.hero h1 { font-size: 2.5rem; letter-spacing: -0.5px; }
.hl { color: var(--brand); }
/* คำสุ่มสลับในหัวข้อ */
.rotator { display: inline-block; }
@keyframes rot-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.rotator.rot-in { animation: rot-in 0.45s ease-out; }
/* ป๊อปอัปข่าวสาร */
.news-tag { display: inline-block; font-size: 0.75rem; font-weight: 800; color: var(--brand-deep); background: #e7f2e9; border-radius: 999px; padding: 3px 12px; margin: 0 0 8px; }
#newsBody h2 { font-size: 1.3rem; line-height: 1.5; margin: 0 0 8px; padding-right: 36px; }
#newsBody p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 6px; }
.news-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 34rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 24px; }
.hero-stats { display: flex; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hero-stats div { flex: 1; padding: 12px 16px; background: var(--wash); }
.hero-stats div + div { border-left: 1px solid var(--line); }
.hero-stats dt { font-size: 0.78rem; color: var(--ink-soft); }
.hero-stats dd { margin: 0; font-family: var(--font-num); font-weight: 800; font-size: 1.25rem; }

/* การ์ดไลฟ์ */
.hero-live { border: 1px solid var(--line); border-radius: 18px; background: var(--ink); color: #eef4ee; padding: 20px; box-shadow: var(--shadow); }
.live-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.live-head h2 { font-size: 1.05rem; margin: 0; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; background: #234534; padding: 4px 12px; border-radius: 999px; }
.live-feed { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; min-height: 220px; max-height: 260px; overflow: hidden; }
.live-feed li { background: #28382f; border-radius: 10px; padding: 9px 12px; font-size: 0.88rem; }
.live-feed li b { color: var(--gold); }
.live-note { font-size: 0.78rem; color: #9db5a6; margin: 0; }
.feed-empty { opacity: 0.7; }

/* เซกชัน */
.section { padding: 44px 0; }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: 1.7rem; }
.section-head p { color: var(--ink-soft); margin: 0; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.center { text-align: center; margin-top: 20px; }
.search {
  font-family: var(--font-th); font-size: 1rem; padding: 12px 18px;
  border: 1px solid var(--line); border-radius: 999px; min-width: 280px; background: var(--wash);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.search:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.15); }

/* แบบสอบถาม */
.quiz { border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: var(--card); box-shadow: var(--shadow); }
.steps { list-style: none; display: flex; gap: 8px; margin: 0 0 22px; padding: 0; flex-wrap: wrap; }
.steps li { flex: 1; min-width: 130px; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); background: var(--wash); border-radius: 10px; padding: 10px 12px; text-align: center; }
.steps li.active { background: var(--brand); color: #fff; }
.steps li.done { background: #d9e8dc; color: var(--brand-deep); }
.quiz-panel { display: none; }
.quiz-panel.active { display: block; }
.quiz-panel h3 { font-size: 1.15rem; margin-bottom: 14px; }
.hint { font-weight: 500; font-size: 0.85rem; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips-col { flex-direction: column; align-items: stretch; }
.chips-row { margin-bottom: 18px; }
.chip {
  font-family: var(--font-th); font-size: 1rem; font-weight: 600;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 12px; padding: 11px 18px; cursor: pointer; transition: border-color 0.15s, background 0.15s;
  text-align: left;
}
.chip small { display: block; font-weight: 500; font-size: 0.82rem; color: var(--ink-soft); }
.chip:hover { border-color: var(--ink); }
.chip.on { border-color: var(--brand); background: #e7f2e9; }
.chips-row .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips-row .chip { border-radius: 999px; }
.chip-n { display: inline-block; font-family: var(--font-num); font-size: 0.78rem; font-weight: 800; background: var(--wash); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.chips-row .chip.on .chip-n { background: rgba(255, 255, 255, 0.2); }
.chip[aria-disabled="true"] { opacity: 0.45; }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 24px; }

/* การ์ดสินค้า */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); display: flex; flex-direction: column; transition: border-color 0.15s, box-shadow 0.15s; }
.card:hover { border-color: #b9cabb; box-shadow: var(--shadow); }
@keyframes card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
#catalogCards .card { animation: card-in 0.35s ease-out backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.empty-state { text-align: center; border: 1.5px dashed var(--line); border-radius: 18px; padding: 36px 20px; background: #fff; animation: card-in 0.3s ease-out; }
.empty-state h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.empty-state .btn { margin-top: 12px; }
section[id] { scroll-margin-top: 84px; }
.card-media { position: relative; height: 148px; display: flex; align-items: center; justify-content: center; }
.card-media img { width: 104px; height: 104px; }
.card-media .badges { position: absolute; top: 10px; left: 10px; }
.card-media .badge { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.tile {
  width: 56px; height: 56px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.5rem; color: #fff;
}
.card-cat { font-size: 0.75rem; font-weight: 700; color: var(--brand); background: #e7f2e9; display: inline-block; padding: 2px 10px; border-radius: 999px; margin-bottom: 4px; }
.card-name { font-weight: 700; font-size: 1rem; line-height: 1.4; margin: 0; }
.card-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-blurb { font-size: 0.87rem; color: var(--ink-soft); margin: 0; }
.card-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; }
.card-meta strong { font-family: var(--font-num); }
.comm { color: var(--accent-deep); font-weight: 700; }
.rating { color: var(--ink-soft); }
.reasons { list-style: none; margin: 0; padding: 10px 12px; background: var(--wash); border-radius: 10px; font-size: 0.84rem; display: flex; flex-direction: column; gap: 4px; }
.reasons li::before { content: "✓ "; color: var(--brand); font-weight: 800; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.price { font-family: var(--font-num); font-weight: 800; font-size: 1.2rem; }
.score-ring {
  font-family: var(--font-num); font-weight: 800; font-size: 0.85rem;
  background: var(--brand); color: #fff; border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.btn-pin { padding: 9px 18px; font-size: 0.92rem; }
.btn-pin.pinned { background: var(--brand); }

/* วิธีทำงาน */
.how { background: var(--ink); color: #eef4ee; }
.how .section-head p { color: #9db5a6; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid #33473c; border-radius: 18px; overflow: hidden; }
.how-item { padding: 26px; }
.how-item + .how-item { border-left: 1px solid #33473c; }
.how-num { font-family: var(--font-num); font-weight: 800; font-size: 2rem; color: var(--gold); display: block; margin-bottom: 8px; }
.how-item h3 { font-size: 1.1rem; }
.how-item p { color: #b9cabb; margin: 0; font-size: 0.95rem; }

/* ส่วนท้าย */
.footer { border-top: 1px solid var(--line); padding: 26px 0 40px; }
.footer-inner p { margin: 0 0 4px; }

/* ตะกร้า */
.basket-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  font-family: var(--font-th); font-weight: 700; font-size: 1rem;
  background: var(--ink); color: #fff; border: none; border-radius: 999px;
  padding: 14px 22px; cursor: pointer; box-shadow: var(--shadow);
}
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20, 30, 24, 0.5); z-index: 70; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 71;
  background: #fff; display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.2rem; }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 36px; height: 36px; cursor: pointer; font-size: 1rem; }
.drawer-list { list-style: none; margin: 0; padding: 12px 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.drawer-list li { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.drawer-list .tile { width: 44px; height: 44px; font-size: 1.1rem; }
.drawer-item-info { flex: 1; min-width: 0; }
.drawer-item-info strong { display: block; font-size: 0.9rem; line-height: 1.35; }
.drawer-item-info span { font-size: 0.8rem; color: var(--ink-soft); }
.drawer-remove { border: none; background: none; color: var(--accent-deep); cursor: pointer; font-weight: 700; font-size: 0.85rem; }
.drawer-empty { color: var(--ink-soft); text-align: center; padding: 30px 0; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.drawer-foot .row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.earn { color: var(--brand); font-family: var(--font-num); }

/* แจ้งเตือน */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80;
  background: var(--ink); color: #fff; font-weight: 600;
  padding: 12px 24px; border-radius: 999px; box-shadow: var(--shadow);
  max-width: calc(100vw - 40px); text-align: center;
}

/* จอเล็ก */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .how-grid { grid-template-columns: 1fr; }
  .how-item + .how-item { border-left: none; border-top: 1px solid #33473c; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 24px; }
  .cta-art { max-width: 380px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-actions .btn-ghost { display: none; }
  .hero h1 { font-size: 1.7rem; }
  .hero-stats { flex-direction: column; }
  .hero-stats div + div { border-left: none; border-top: 1px solid var(--line); }
  .quiz { padding: 18px; }
  .search { min-width: 0; width: 100%; }
  .section-head.split { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* จัดให้วันนี้ */
.daily-band { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.refresh {
  font-weight: 700; font-size: 0.9rem; color: var(--brand-deep);
  background: #d9e8dc; border-radius: 999px; padding: 8px 16px; white-space: nowrap;
}

/* ป้ายสินค้า + รูป demo */
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.badge-hot { background: #fde3d8; color: var(--accent-deep); }
.badge-comm { background: #e7f2e9; color: var(--brand-deep); }
.badge-new { background: var(--ink); color: #fff; }
.more-link { border: none; background: none; padding: 0; font-family: var(--font-th); font-size: 0.85rem; font-weight: 700; color: var(--brand); cursor: pointer; text-align: left; }
.more-link:hover { text-decoration: underline; }

/* เครื่องมือแค็ตตาล็อก */
.catalog-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.sort {
  font-family: var(--font-th); font-size: 0.95rem; font-weight: 600;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer;
}
.sort:focus { outline: 2px solid var(--brand); }

/* โซนสำรวจ + หัวข้อย่อย */
.sub-head { font-size: 1.2rem; margin: 26px 0 2px; }
.sub-head:first-of-type { margin-top: 0; }
.sub-note { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 14px; }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ศูนย์ช่วยเหลือ */
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 8px; }
.help-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--card); }
.help-card .how-num { font-size: 1.6rem; }
.help-card h3 { font-size: 1.05rem; }
.help-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: var(--card); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq summary:hover { color: var(--brand); }
.faq details p { color: var(--ink-soft); margin: 8px 0 0; font-size: 0.94rem; }

/* การ์ดสมาชิกในฮีโร่ */
.member-card {
  border: 1px solid #33473c; border-radius: 18px; background: var(--ink); color: #eef4ee;
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.mc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mc-brand { font-family: var(--font-num); font-weight: 800; font-size: 0.8rem; letter-spacing: 2px; color: var(--gold); }
.role-badge { font-size: 0.75rem; font-weight: 700; background: #234534; color: #bfe3c8; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.role-badge.mcn { background: var(--gold); color: var(--ink); }
.mc-user { display: flex; align-items: center; gap: 12px; }
.mc-user div { display: flex; flex-direction: column; }
.mc-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--gold); color: var(--ink); font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
#mcName { font-size: 1.1rem; }
.mc-sub { font-size: 0.82rem; color: #9db5a6; }
.mc-coins {
  display: flex; align-items: center; justify-content: space-between;
  background: #28382f; border-radius: 12px; padding: 12px 16px; font-size: 0.92rem;
}
.mc-coins strong { font-family: var(--font-num); font-size: 1.5rem; color: var(--gold); }
.mc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mc-actions .btn-ghost { background: transparent; border-color: #4a6154; color: #eef4ee; }
.mc-today { color: var(--gold); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.mc-today:hover { text-decoration: underline; }

/* แถบบน: เหรียญ + สมาชิก */
.top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: none; margin-left: auto; }
.top-actions .btn, .top-actions .coin-pill { white-space: nowrap; flex: none; }
.coin-pill { font-weight: 700; font-size: 0.88rem; background: #fdf3d7; border: 1px solid #ecd9a0; border-radius: 999px; padding: 7px 14px; }
.coin-pill b { font-family: var(--font-num); }

/* โมดัล */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(20, 30, 24, 0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 71;
  width: min(440px, calc(100vw - 40px)); background: #fff; border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(20, 30, 24, 0.28);
  max-height: calc(100vh - 60px); overflow-y: auto;
  animation: modal-in 0.18s ease-out;
}
@keyframes modal-in {
  from { opacity: 0; margin-top: 10px; }
  to { opacity: 1; margin-top: 0; }
}
.modal .drawer-head { background: var(--ink); border-bottom: none; border-radius: 18px 18px 0 0; padding: 18px 20px; }
.modal-title { display: flex; align-items: center; gap: 12px; }
.modal-title .brand-mark { background: var(--gold); color: var(--ink); }
.modal .drawer-head h2 { margin: 0; font-size: 1.15rem; letter-spacing: -0.2px; color: #fff; }
.modal-sub { margin: 2px 0 0; font-size: 0.82rem; font-weight: 500; color: #9db5a6; }
.modal .icon-btn { border-color: var(--line); color: var(--ink-soft); background: #fff; border-radius: 10px; transition: background 0.15s, border-color 0.15s; }
.modal .icon-btn:hover { background: var(--wash); border-color: var(--brand); color: var(--ink); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; }
.icon-btn svg { width: 18px; height: 18px; }
.modal-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 16px; }
#authForm, #authProfile { display: flex; flex-direction: column; gap: 16px; }
.modal-body .btn-block { min-height: 50px; font-size: 1.02rem; }
.auth-toggle { margin: 0; text-align: center; font-size: 0.9rem; color: var(--ink-soft); }
.link-btn { border: none; background: none; padding: 0; font-family: var(--font-th); font-weight: 700; font-size: 0.9rem; color: var(--brand); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.input-wrap { position: relative; display: block; }
.input-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #8aa196; pointer-events: none; }
.field .input-wrap input { width: 100%; padding-left: 42px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 0.92rem; }
.field input, .field select {
  font-family: var(--font-th); font-size: 1rem; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.15); }
/* ฟอร์มแอดมิน */
.admin-form { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 18px 20px; margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row .field { flex: 1; min-width: 140px; }
.field-label { font-weight: 600; font-size: 0.92rem; margin: 0 0 8px; }
.demo-note {
  margin: 0; font-size: 0.8rem; line-height: 1.55; text-align: center;
  color: var(--ink-soft); background: var(--wash);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
}
.small { font-size: 0.82rem; }
.profile-line { margin: 0; }

/* การ์ดวิเคราะห์ */
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; margin-top: 8px; }
.bar-row span:first-child { min-width: 110px; font-weight: 600; }
.bar { flex: 1; height: 10px; background: var(--wash); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.bar-row b { font-family: var(--font-num); min-width: 64px; text-align: right; }
.insight-big { font-family: var(--font-num); font-weight: 800; font-size: 1.6rem; color: var(--brand-deep); }

/* footer เต็มรูป */
.footer { background: var(--ink); color: #eef4ee; border-top: none; padding: 40px 0 0; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 30px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-brand p { color: #b9cabb; font-size: 0.9rem; margin: 0; }
.footer-stats { color: var(--gold); font-weight: 700; font-size: 0.85rem; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { margin: 0 0 4px; font-size: 1rem; color: #fff; }
.footer-col a { color: #b9cabb; text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col p { color: #b9cabb; font-size: 0.9rem; margin: 0; }
.footer-col .muted { color: #7e937f; font-size: 0.82rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid #33473c; padding-top: 18px; padding-bottom: 22px;
  color: #7e937f; font-size: 0.84rem;
}

/* ช่องค้นหาพร้อมคำแนะนำ */
.search-wrap { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.search-wrap .search { width: 100%; }
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  list-style: none; margin: 0; padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  max-height: 260px; overflow-y: auto;
}
.suggest li button {
  width: 100%; display: flex; align-items: center; gap: 10px;
  border: none; background: none; cursor: pointer; text-align: left;
  font-family: var(--font-th); font-size: 0.92rem; padding: 8px 10px; border-radius: 8px;
}
.suggest li button:hover { background: var(--wash); }
.suggest .tile { width: 36px; height: 36px; }
.suggest .tile img { width: 24px; height: 24px; }
.suggest .s-price { margin-left: auto; font-family: var(--font-num); font-weight: 700; white-space: nowrap; }

/* โปรไฟล์ */
.profile-top { display: flex; align-items: center; gap: 14px; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--line); }
.avatar-pick { display: flex; gap: 10px; }
.avatar-pick button { border: 2px solid var(--line); background: #fff; border-radius: 50%; padding: 3px; cursor: pointer; }
.avatar-pick button.on { border-color: var(--brand); }
.avatar-pick img { width: 48px; height: 48px; border-radius: 50%; display: block; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat-grid div { background: var(--wash); border-radius: 12px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; }
.stat-grid b { font-family: var(--font-num); font-size: 1.2rem; }
.stat-grid span { font-size: 0.75rem; color: var(--ink-soft); }

/* แถบ CTA */
.cta-band {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center;
  border: 1px solid var(--line); border-radius: 20px; background: var(--wash);
  padding: 32px;
}
.cta-band h2 { font-size: 1.6rem; }
.cta-band p { color: var(--ink-soft); }
.cta-art { width: 100%; height: auto; }

/* รูปสินค้า + ภาพสถานะว่าง */
.tile img { width: 34px; height: 34px; }
.drawer-list .tile img { width: 28px; height: 28px; }
.empty-art { width: 150px; height: auto; display: block; margin: 6px auto 10px; }

/* คลังคลิป */
.clip-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.clip-card h3 { font-size: 1.02rem; margin: 0; }
.clip-meta { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.clip-dur { font-family: var(--font-num); font-weight: 800; background: var(--ink); color: #fff; border-radius: 8px; padding: 2px 10px; font-size: 0.8rem; align-self: flex-start; }
.lock-panel { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 30px 22px; text-align: center; background: var(--wash); grid-column: 1 / -1; }
.lock-panel h3 { margin-bottom: 6px; }
.lock-panel p { color: var(--ink-soft); }
.lock-panel .btn { margin-top: 10px; }

/* แถบเมนูล่าง (มือถือ + แท็บเล็ต) + topbar โหมดกะทัดรัด */
.bottom-nav { display: none; }
@media (max-width: 980px) {
  body { padding-bottom: 76px; }
  .navband { display: none; }
  .nav { display: none; }
  .bottom-nav {
    display: flex; justify-content: center; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: rgba(255, 255, 255, 0.98); border-top: 1px solid var(--line);
    padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
  }
  .bottom-nav a, .bottom-nav button {
    flex: 1 1 0; max-width: 170px; border: none; background: none; cursor: pointer; position: relative;
    font-family: var(--font-th); font-size: 0.74rem; font-weight: 700; color: var(--ink-soft);
    min-height: 54px; border-radius: 12px; text-decoration: none; padding: 2px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  }
  .bottom-nav a.on, .bottom-nav button.on { color: var(--brand-deep); background: var(--wash); }
  .bottom-nav svg { width: 22px; height: 22px; }
  .nav-badge {
    position: absolute; top: 2px; right: calc(50% - 26px);
    font-family: var(--font-num); font-size: 0.68rem; font-weight: 800;
    background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 7px;
  }
  .basket-fab { display: none; }
  .toast { bottom: 88px; }
}
@media (max-width: 700px) {
  .long-label { display: none; }
  .brand-name small { display: none; }
  .topbar-inner { gap: 12px; }
}

/* ============ โหมดมือถือแบบแอพ ============ */
@media (max-width: 640px) {
  .section { padding: 30px 0; }
  .wrap { padding: 0 16px; }
  section[id] { scroll-margin-top: 124px; }

  /* สวิตช์แพลตฟอร์มย้ายลงแถวที่สองใน header */
  .top-switch { display: none; }
  .platform-bar { display: block; border-top: 1px solid var(--line); }
  .platform-bar-inner { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
  .platform-bar-label { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
  .platform-bar .platform-switch { flex: 1; max-width: 340px; }
  .platform-bar .platform-switch button { flex: 1; }

  /* การ์ดแนวนอนแบบร้านค้า */
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { flex-direction: row; }
  .card-media { width: 126px; height: auto; min-height: 168px; flex: none; }
  .card-media img { width: 84px; height: 84px; }
  .card-media .badges { top: 8px; left: 8px; }
  .badge { font-size: 0.66rem; }
  .card-body { padding: 12px; gap: 6px; }
  .card-name { font-size: 0.92rem; }
  .card-blurb { font-size: 0.8rem; }
  .price { font-size: 1.05rem; }
  .reasons { font-size: 0.78rem; padding: 8px 10px; }

  /* ปุ่มกดง่ายนิ้วโป้ง */
  .btn { min-height: 46px; }
  .btn-sm { min-height: 40px; }
  .chip { min-height: 48px; font-size: 0.95rem; }
  .quiz-nav .btn { flex: 1; }
  .quiz-nav { gap: 10px; }

  /* โมดัลแบบ bottom sheet */
  .modal {
    top: auto; bottom: 0; left: 0; right: 0; transform: none; width: 100%;
    border-radius: 20px 20px 0 0; max-height: 92vh;
  }
  .modal .drawer-head { border-radius: 20px 20px 0 0; }
  .hero-actions .btn { flex: 1; }
  .mc-actions .btn { flex: 1; }
  .catalog-tools { flex-direction: column; }
  .search-wrap { max-width: none; }
  .sort { width: 100%; }
}

/* ---------- หน้าแยก + การ์ด aff ---------- */
.page-title { font-size: 1.7rem; margin: 0 0 8px; line-height: 1.35; }
.result-count { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 14px; }
.card-body h3 { margin: 0; }
.card-foot .btn-pin { flex: 1; }
.card-foot .btn-aff { flex: 0 0 auto; padding: 9px 14px; font-size: 0.85rem; }
.btn-aff svg { width: 17px; height: 17px; }
.card-actions { gap: 8px; }
.drawer-item-na { background: var(--wash); }
.drawer-item-na .drawer-item-info strong { color: var(--ink-soft); }
.drawer-platform { margin: 0; font-size: 0.8rem; text-align: center; color: var(--ink-soft); }

/* ---------- แท็บบันทึก + ปุ่มบุ๊กมาร์ก ---------- */
.drawer-tabs { display: flex; gap: 8px; padding: 12px 20px 0; }
.drawer-tab {
  flex: 1; font-family: var(--font-th); font-weight: 700; font-size: 0.9rem;
  border: 1px solid var(--line); background: var(--wash); color: var(--ink-soft);
  border-radius: 10px; padding: 9px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.drawer-tab:hover { color: var(--ink); }
.drawer-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab-count {
  font-family: var(--font-num); font-size: 0.75rem; font-weight: 800;
  background: rgba(71, 96, 86, 0.18); border-radius: 999px; padding: 1px 8px;
}
.drawer-tab.on .tab-count { background: var(--gold); color: var(--ink); }
.bookmark-btn {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.95); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.15s;
}
.bookmark-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.bookmark-btn:hover { background: #fff; }
.bookmark-btn.on { background: var(--gold); }
.bookmark-btn.on svg { fill: var(--ink); }
.saved-actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex: none; }

/* ---------- สตูดิโอล็อก (เฉพาะ MCN) ---------- */
.studio-lock {
  background: var(--ink); color: #eef4ee; border-radius: 20px;
  padding: 40px 32px; text-align: center;
  max-width: 600px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.studio-lock h3 { font-size: 1.4rem; margin: 0; }
.studio-lock > p { color: #b9cabb; margin: 0; max-width: 26rem; }
.studio-perks {
  list-style: none; margin: 6px 0 8px; padding: 0; width: 100%;
  display: flex; flex-direction: column; gap: 8px; text-align: left;
}
.studio-perks li {
  background: #28382f; border-radius: 10px; padding: 10px 16px;
  font-size: 0.92rem; font-weight: 600;
}
.studio-perks li::before { content: "✓ "; color: var(--gold); font-weight: 800; }
@media (max-width: 640px) {
  .studio-lock { padding: 28px 20px; }
}

/* ---------- ไอคอน ---------- */
.ico { width: 1.1em; height: 1.1em; flex: none; }
.coin-pill { display: inline-flex; align-items: center; gap: 6px; }
.mc-coins-label { display: inline-flex; align-items: center; gap: 8px; }
.search-wrap .search { padding-left: 42px; }
.search-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #8aa196; pointer-events: none; }
.pickme-band h2 { display: flex; align-items: center; gap: 10px; }
.ico-gold { color: var(--gold); width: 28px; height: 28px; }
.studio-lock-play { width: 60px; height: 60px; }

/* ---------- เช็กลิสต์มือใหม่ + ตะกร้าว่าง ---------- */
.starter { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; padding: 0; }
.starter li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: #b9cabb;
  background: #28382f; border-radius: 999px; padding: 7px 14px 7px 8px;
}
.starter-num {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: #3d5548; color: #eef4ee; font-size: 0.8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.starter li.done { color: #eef4ee; }
.starter li.done .starter-num { background: var(--gold); color: var(--ink); }
.drawer-list li.drawer-empty { flex-direction: column; }
.drawer-empty-cta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.card-name a { color: inherit; text-decoration: none; }
.card-name a:hover { color: var(--brand-deep); text-decoration: underline; }

/* ---------- หน้าสินค้ารายชิ้น ---------- */
.crumbs { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 16px; }
.crumbs a { color: var(--brand-deep); }
.pd-head { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; margin-bottom: 8px; }
.pd-media { height: 300px; border-radius: 20px; }
.pd-media img { width: 170px; height: 170px; }
.pd-info h1 { font-size: 1.7rem; margin: 0 0 8px; line-height: 1.35; }
.pd-guess { margin: 0 0 16px; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.aff-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.aff-table th, .aff-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.92rem; text-align: left; vertical-align: top; }
.aff-table thead th { background: var(--ink); color: #fff; }
.aff-table tbody tr:last-child th, .aff-table tbody tr:last-child td { border-bottom: none; }
.brief-points { margin: 0 0 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.dont-box { background: #fdf3e3; border: 1px solid #ecd9ac; color: #7a5a17; border-radius: 12px; padding: 12px 16px; font-size: 0.9rem; margin-top: 16px; }
@media (max-width: 760px) {
  .pd-head { grid-template-columns: 1fr; }
  .pd-media { height: 220px; }
}

/* ---------- ป๊อปอัพเช็คอิน ---------- */
.checkin-modal { text-align: center; }
.checkin-body { align-items: center; text-align: center; padding: 28px 24px 26px; position: relative; }
.checkin-close { position: absolute; top: 12px; right: 12px; border-color: var(--line); color: var(--ink-soft); background: #fff; }
.checkin-burst {
  width: 120px; height: 120px; border-radius: 50%; margin: 6px auto 4px;
  background: var(--ink); border: 4px solid var(--gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: burst-in 0.45s ease-out;
}
@keyframes burst-in {
  from { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  to { transform: scale(1); opacity: 1; }
}
.checkin-num { font-family: var(--font-num); font-weight: 800; font-size: 2rem; color: var(--gold); line-height: 1.1; }
.checkin-unit { font-size: 0.8rem; font-weight: 700; color: #b9cabb; }
.checkin-body h2 { font-size: 1.4rem; margin: 0; }
.checkin-streak { font-size: 1rem; margin: 0; }
.checkin-streak b { color: var(--brand-deep); }
.checkin-rewards { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.checkin-rewards li {
  background: var(--wash); border-radius: 10px; padding: 10px 16px;
  font-size: 0.9rem; font-weight: 600; display: flex; justify-content: space-between; gap: 8px;
}
.checkin-rewards li span { display: flex; align-items: center; gap: 6px; }
.checkin-rewards li span::before { content: "✓"; color: var(--brand); font-weight: 800; }
.checkin-rewards li b { font-family: var(--font-num); color: var(--brand-deep); }
.cal { background: var(--wash); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-size: 0.95rem; }
.cal-nav {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.cal-nav:hover:not(:disabled) { border-color: var(--brand); }
.cal-nav:disabled { opacity: 0.3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { font-size: 0.72rem; font-weight: 800; color: var(--ink-soft); text-align: center; padding: 2px 0; }
.cal-day {
  aspect-ratio: 1; font-size: 0.8rem; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--ink-soft); position: relative;
}
.cal-day.on { background: var(--brand); color: #fff; font-weight: 800; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--gold); font-weight: 800; color: var(--ink); }
.cal-day.today.on { color: #fff; }
.cal-day.mile::after { content: "★"; position: absolute; bottom: 1px; font-size: 0.55rem; line-height: 1; color: var(--gold); }
.cal-hint { margin: 0; font-size: 0.78rem; color: var(--ink-soft); text-align: center; }
.checkin-next { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- เลเวล + ไทม์ไลน์โปรไฟล์ ---------- */
.level-line { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 0.85rem; color: #bfe3c8; flex-wrap: wrap; }
.level-badge { font-weight: 800; font-size: 0.78rem; background: var(--gold); color: var(--ink); border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.level-bar { flex: 1; min-width: 120px; max-width: 220px; height: 8px; background: #28382f; border-radius: 999px; overflow: hidden; }
.level-bar i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.timeline { display: flex; flex-direction: column; }
.tl-day { font-weight: 800; font-size: 0.85rem; color: var(--brand-deep); margin: 14px 0 6px; }
.tl-day:first-child { margin-top: 0; }
.tl-item { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); }
.tl-item .tile { width: 40px; height: 40px; flex: none; }
.tl-item .tile img { width: 26px; height: 26px; }
.tl-dot { width: 40px; height: 40px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 800; background: #e7f2e9; color: var(--brand-deep); }
.tl-text { flex: 1; min-width: 0; font-size: 0.92rem; }
.tl-time { font-size: 0.8rem; color: var(--ink-soft); white-space: nowrap; font-family: var(--font-num); }

/* ---------- หยิบให้ + สตูดิโอ + โปรไฟล์ ---------- */
.pickme-band {
  background: var(--ink); color: #eef4ee;
  border-radius: 20px; padding: 30px 32px; margin-bottom: 20px;
}
.pickme-band h2 { font-size: 1.5rem; margin-bottom: 6px; }
.pickme-band p { color: #b9cabb; margin-bottom: 6px; }
.pickme-band .hero-actions { margin: 16px 0 0; }
.pickme-band .btn-ghost { background: transparent; border-color: #4a6154; color: #eef4ee; }
.pick-cards:empty { display: none; }
.pick-cards { margin-bottom: 4px; }

.mini-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.mini-tab {
  font-family: var(--font-th); font-weight: 700; font-size: 0.95rem;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 10px 20px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.mini-tab:hover { border-color: var(--ink); color: var(--ink); }
.mini-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.mini-badge {
  font-size: 0.7rem; font-weight: 800; background: var(--gold); color: var(--ink);
  border-radius: 999px; padding: 1px 8px;
}

.studio {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start;
  border: 1px solid var(--line); border-radius: 20px; background: var(--card);
  padding: 24px;
}
.studio-controls { display: flex; flex-direction: column; gap: 14px; }
.studio-step { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 18px 0 4px; }
.studio-step:first-child { margin-top: 0; }
.step-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; }
.studio-pick-search { max-width: none; margin-bottom: 4px; }
.studio-pick-search .search { width: 100%; min-width: 0; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pick-grid .lock-panel { grid-column: 1 / -1; }
.pick-card { display: flex; gap: 10px; align-items: center; text-align: left; font-family: var(--font-th); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; min-width: 0; }
.pick-card:hover { border-color: var(--ink); }
.pick-card.on { border-color: var(--brand); background: #e7f2e9; }
.pick-info { flex: 1; min-width: 0; }
.pick-info strong { display: block; font-size: 0.86rem; line-height: 1.4; }
.pick-info small { color: var(--ink-soft); font-size: 0.76rem; }
.pick-check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); color: transparent; font-weight: 800; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }
.pick-card.on .pick-check { background: var(--brand); border-color: var(--brand); color: #fff; }
.credit-box { border: 1px solid var(--line); border-radius: 12px; background: var(--wash); padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.credit-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 0.95rem; }
.credit-row b { font-family: var(--font-num); }
.studio-selected { font-weight: 700; font-size: 0.92rem; margin: 0; }
.quota-line {
  margin: 0; font-size: 0.85rem; font-weight: 600; text-align: center;
  color: var(--brand-deep); background: #e7f2e9;
  border-radius: 10px; padding: 10px 14px;
}
.quota-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.gen-progress { display: flex; flex-direction: column; gap: 8px; }
.gen-bar { height: 12px; background: var(--wash); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.gen-bar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width 0.12s linear; }
.gen-progress p { margin: 0; text-align: center; }
.studio-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.studio-side .sub-head { margin-top: 8px; }
.studio-videos { display: flex; flex-direction: column; gap: 10px; }
.video-card {
  display: flex; gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff;
}
.video-card .tile { width: 52px; height: 52px; }
.video-card .btn-sm { flex: none; }

.profile-hero {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--ink); color: #eef4ee; border-radius: 20px; padding: 28px;
  margin-bottom: 8px;
}
.profile-hero-avatar {
  width: 96px; height: 96px; border-radius: 50%; flex: none;
  border: 3px solid var(--gold); background: #fff;
}
.profile-hero-info { flex: 1; min-width: 0; }
.profile-hero-info h1 { font-size: 1.5rem; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-hero-sub { color: #9db5a6; font-size: 0.9rem; margin: 0 0 14px; }
.profile-stats { max-width: 480px; margin-bottom: 14px; }
.profile-stats div { background: #28382f; }
.profile-stats b { color: var(--gold); }
.profile-stats span { color: #9db5a6; }
.profile-hero .quota-line { text-align: left; background: #28382f; color: #bfe3c8; }
.profile-hero .quota-actions { justify-content: flex-start; margin-top: 12px; }
.profile-hero .btn-ghost { background: transparent; border-color: #4a6154; color: #eef4ee; }
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 8px; }

.btn:disabled { opacity: 0.55; cursor: wait; }

@media (max-width: 920px) {
  .studio { grid-template-columns: 1fr; }
  .stat-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pickme-band { padding: 24px 20px; }
  .pickme-band h2 { font-size: 1.25rem; }
  .profile-hero { flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; }
  .profile-hero-info h1 { justify-content: center; }
  .profile-hero .quota-line { text-align: center; }
  .profile-hero .quota-actions { justify-content: center; }
  .profile-stats { width: 100%; }
  .studio { padding: 18px; }
}

/* ---------- การ์ดกดได้ทั้งใบ + ปุ่มดูข้อมูล ---------- */
.card-click { cursor: pointer; }
.card-click:hover { border-color: var(--brand); }
.card-click:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.card-view { justify-content: flex-start; }
.view-link {
  border: none; background: none; padding: 2px 0; cursor: pointer;
  font-family: var(--font-th); font-size: 0.88rem; font-weight: 700; color: var(--brand-deep);
}
.view-link:hover { text-decoration: underline; }
.card-view .more-link { margin-left: auto; }

/* ---------- หน้าสินค้า: ปุ่มกลับต้นทาง ---------- */
.pd-backbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.pd-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-th); font-weight: 700; font-size: 0.95rem;
  background: var(--ink); color: #fff; border: none; border-radius: 999px;
  padding: 10px 20px 10px 14px; cursor: pointer;
}
.pd-back:hover { background: #000; }
.pd-back svg { width: 18px; height: 18px; }
.pd-from { font-size: 0.85rem; color: var(--ink-soft); }
.pd-from b { color: var(--brand-deep); }

/* ---------- บอร์ดเช็คอินสไตล์เกม ---------- */
.checkin-modal { width: min(660px, calc(100vw - 40px)); }
.checkin-body { align-items: stretch; }
.quest-head {
  background: var(--ink); color: #eef4ee; border-radius: 14px;
  border-top: 4px solid var(--gold); padding: 18px 20px 16px; text-align: center;
}
.quest-kicker {
  font-family: var(--font-num); font-weight: 800; font-size: 0.72rem; letter-spacing: 3px;
  color: var(--gold);
}
.quest-head h2 { font-size: 1.5rem; margin: 2px 0 6px; color: #fff; }
.quest-streak { margin: 0; font-size: 0.95rem; color: #b9cabb; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.quest-streak b { color: var(--gold); }
.qd-flame { width: 26px; height: 26px; display: inline-flex; }
.qd-flame svg { width: 100%; height: 100%; }
.quest-earned {
  margin: 0; text-align: center; font-weight: 800; font-size: 1.05rem; color: var(--brand-deep);
  background: #e7f2e9; border: 1px solid #bcd8c1; border-radius: 10px; padding: 10px 14px;
  animation: quest-pop 0.4s ease-out;
}
.quest-track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.quest-day {
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 0.78rem; min-width: 0;
}
.qd-day { font-weight: 700; font-size: 0.74rem; color: var(--ink-soft); white-space: nowrap; }
.qd-tag {
  font-style: normal; font-size: 0.64rem; font-weight: 800;
  background: var(--gold); color: var(--ink); border-radius: 999px; padding: 0 6px; margin-left: 2px;
}
.qd-icon { width: 38px; height: 38px; margin: 4px 0 2px; }
.qd-icon svg { width: 100%; height: 100%; }
.qd-amt { font-family: var(--font-num); font-weight: 800; font-size: 1rem; color: var(--ink); }
.quest-day small { font-size: 0.7rem; color: var(--ink-soft); }
.qd-state { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 0.72rem; color: var(--ink-soft); margin-top: 4px; }
.qd-state svg { width: 14px; height: 14px; }
.quest-day.done { background: #e7f2e9; border-color: #9cc3a4; }
.quest-day.done .qd-state { color: var(--brand-deep); }
.quest-day.mile-done { border-style: solid; border-color: var(--gold); }
.quest-day.today {
  background: #fdf3d7; border: 2px solid var(--gold);
  animation: quest-glow 1.6s ease-in-out infinite;
}
.quest-day.today .qd-go { color: var(--accent-deep); }
.quest-day.just { animation: quest-pop 0.45s ease-out; }
.quest-day.locked { opacity: 0.75; background: var(--wash); }
.quest-day.locked .qd-state { color: #9aa8a0; }
.quest-day.mile { border-style: dashed; }
@keyframes quest-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 177, 52, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(242, 177, 52, 0); }
}
@keyframes quest-pop {
  from { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.06); opacity: 1; }
  to { transform: scale(1); opacity: 1; }
}
.quest-progress { background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.quest-progress p { margin: 8px 0 0; font-size: 0.86rem; color: var(--ink-soft); text-align: center; }
.quest-progress b { color: var(--brand-deep); }
.qp-bar { height: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qp-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width 0.3s; }
.quest-claim-btn { min-height: 52px; font-size: 1.05rem; animation: quest-pop 0.35s ease-out; }
.quest-note { margin: 0; font-size: 0.82rem; color: var(--ink-soft); text-align: center; }
.quest-sub { font-size: 0.95rem; margin: 4px 0 0; text-align: left; }
.quest-miles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qmile {
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--wash);
  padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 0.76rem; text-align: center; color: var(--ink-soft);
}
.qmile .qd-icon { width: 34px; height: 34px; }
.qmile b { font-size: 0.84rem; color: var(--ink); }
.qmile span { font-family: var(--font-num); font-weight: 700; }
.qmile i { font-style: normal; font-size: 0.7rem; }
.qmile.done { background: #e7f2e9; border-color: #9cc3a4; }
.qmile.done i { color: var(--brand-deep); font-weight: 700; }
.qmile.next { background: #fdf3d7; border-color: var(--gold); }
.qmile.next i { color: var(--accent-deep); font-weight: 700; }
.quest-cal { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; }
.quest-cal summary { font-weight: 700; font-size: 0.88rem; cursor: pointer; color: var(--brand-deep); }
.quest-cal .cal { margin-top: 10px; border: none; background: none; padding: 0; }
/* กระดานภารกิจ: แท็บ + รายการ (ไอคอนล็อกขนาด ไม่บวมเต็มจอ) */
.ms-tabs { display: flex; gap: 8px; margin: 12px 0; }
.ms-tab { flex: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 6px; cursor: pointer; font-family: var(--font-th); font-weight: 700; font-size: 0.85rem; color: var(--ink-soft); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ms-tab small { font-weight: 500; font-size: 0.7rem; }
.ms-tab.on { border-color: var(--brand); background: #e7f2e9; color: var(--brand-deep); }
.ms-list { display: flex; flex-direction: column; gap: 8px; }
.ms-row { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px; }
.ms-row.done { background: #e7f2e9; border-color: #9cc3a4; }
.ms-ico { width: 36px; height: 36px; flex: none; display: inline-flex; color: var(--brand-deep); }
.ms-ico svg { width: 100%; height: 100%; }
.ms-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ms-info strong { font-size: 0.9rem; }
.ms-info > span { font-size: 0.78rem; color: var(--ink-soft); }
.ms-bar { height: 8px; background: var(--wash); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.ms-bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.ms-prog { font-family: var(--font-num); font-weight: 700; font-size: 0.78rem; }
.ms-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ms-reward { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-num); font-weight: 800; font-size: 0.85rem; }
.ms-reward svg { width: 18px; height: 18px; flex: none; }
.ms-done { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 0.8rem; color: var(--brand-deep); white-space: nowrap; }
.ms-done svg { width: 16px; height: 16px; flex: none; }
.ms-note { font-size: 0.8rem; color: var(--ink-soft); text-align: center; }
/* หน้าภารกิจ: สรุป + ประวัติ */
.quest-summary { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 12px 0; font-size: 0.9rem; }
.quest-summary b { font-family: var(--font-num); }
.hist-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hist-row { display: flex; gap: 10px; align-items: baseline; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px; font-size: 0.88rem; }
.hist-row time { margin-left: auto; flex: none; font-size: 0.76rem; color: var(--ink-soft); white-space: nowrap; }
.hist-empty { color: var(--ink-soft); font-size: 0.88rem; }
/* หน้ากิจกรรม: อ่านง่าย ตัวใหญ่ ขั้นตอนชัด */
.guide-band { background: #e7f2e9; border: 2px solid #9cc3a4; border-radius: 16px; padding: 18px 20px; margin: 16px 0 20px; }
.guide-band h2 { font-size: 1.25rem; margin: 0 0 10px; color: var(--brand-deep); }
.guide-band ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: step; }
.guide-band li { position: relative; font-size: 1.02rem; line-height: 1.6; padding-left: 40px; counter-increment: step; }
.guide-band li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-deep); color: #fff; font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.event-card { border: 2px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.event-band { padding: 16px 20px; color: #fff; }
.event-tag { display: inline-block; font-size: 0.8rem; font-weight: 800; background: rgba(255, 255, 255, 0.24); border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.event-band h3 { margin: 10px 0 0; font-size: 1.35rem; line-height: 1.5; }
.event-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.event-detail { font-size: 1.02rem; line-height: 1.7; color: var(--ink); margin: 0; }
.event-facts { margin: 0; padding: 12px 14px; background: var(--wash); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.event-facts > div { display: flex; gap: 10px; font-size: 1rem; line-height: 1.6; }
.event-facts dt { flex: none; width: 52px; font-weight: 800; color: var(--brand-deep); }
.event-facts dd { margin: 0; }
.event-how { background: #fdf3d7; border: 1.5px dashed #d9b64a; border-radius: 12px; padding: 12px 14px 12px 16px; }
.event-how h4 { margin: 0 0 8px; font-size: 1rem; color: var(--ink); }
.event-how ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; font-size: 1rem; line-height: 1.65; }
.event-reward-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; font-size: 1rem; }
.event-reward { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-num); font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.event-reward svg { width: 22px; height: 22px; flex: none; }
.event-seats { font-weight: 700; color: var(--brand-deep); }
.event-seats.full { color: var(--accent-deep); }
.event-join { min-height: 56px; font-size: 1.1rem; margin-top: 4px; }
@media (max-width: 640px) {
  .event-grid { grid-template-columns: 1fr; }
  .event-band h3 { font-size: 1.2rem; }
}
@media (max-width: 640px) {
  .checkin-modal { width: 100%; }
  .quest-track { grid-template-columns: repeat(4, 1fr); }
  .quest-miles { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .quest-day.today, .quest-day.just, .quest-claim-btn, .quest-earned { animation: none; }
  #catalogCards .card, .empty-state, .bar i, .suggest { animation: none; }
  .rotator.rot-in { animation: none; }
}
@keyframes bar-grow {
  from { width: 0; }
}
.bar i { animation: bar-grow 0.6s ease-out backwards; }
@keyframes suggest-in {
  from { opacity: 0; transform: translateY(-4px); }
}
.suggest:not(.hidden) { animation: suggest-in 0.15s ease-out; }

/* Generated sample product photography */
.card-media:has(.product-photo) { background: #f7f4ee !important; overflow: hidden; }
.card-media img.product-photo { width: 100%; height: 100%; object-fit: contain; }
.tile:has(.product-photo) { background: #f7f4ee !important; overflow: hidden; }
.tile img.product-photo, .suggest .tile img.product-photo, .drawer-list .tile img.product-photo, .tl-item .tile img.product-photo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* React components share the same media and responsive layout contracts. */
.card-name a, .pd-back { color: inherit; text-decoration: none; }
.card-name a:hover { color: var(--brand); text-decoration: underline; }
.pd-back { color: #fff; }
.card-media { overflow: hidden; }
.card-media img { max-width: 100%; }
.pd-head > *, .studio > *, .card-body { min-width: 0; }
.card-actions { flex-wrap: wrap; }
.view-link, .more-link { text-decoration: none; }
.pd-media { width: 100%; }
.pick-card .tile img { width: 100%; height: 100%; object-fit: cover; }
.pick-card .pick-info { overflow-wrap: anywhere; }
.ms-info h3 { font-size: 1rem; margin: 0; }
.ms-info p { margin: 0; }
.ms-row > .btn { flex-shrink: 0; }
.card > .card-body > .btn:last-child { margin-top: auto; }
.basket-modal { width: min(600px, calc(100vw - 32px)); }
.basket-modal .drawer-list { padding: 0; }
.basket-modal .drawer-item { flex-wrap: wrap; }
.basket-modal .drawer-item-info { flex: 1 1 130px; min-width: 0; }
.basket-modal .drawer-item-info a { overflow-wrap: anywhere; }
.btn:disabled { cursor: not-allowed; }
@media (max-width: 640px) {
  .section.wrap { padding-top: 30px; padding-bottom: 30px; }
  .topbar-inner { gap: 6px; }
  .topbar .brand { min-width: 0; }
  .topbar .brand-name { font-size: .88rem; }
  .top-actions { gap: 4px; }
  .top-actions .coin-pill { padding: 6px 8px; font-size: .76rem; }
  .top-actions .btn { padding-left: 10px; padding-right: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .basket-modal { width: 100%; }
  .ms-row { align-items: flex-start; flex-wrap: wrap; }
  .ms-info { flex-basis: 180px; }
  .studio .search { min-width: 0; width: 100%; }
  .pick-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Commission-first product cards and motion — previous version: backup/ui-before-motion-20261005 */
.product-card-modern { --card-accent: #0d745c; --card-tint: #e7f7ef; --card-soft: #b6e8d3; border: 1px solid #dce7e1; border-radius: 24px; box-shadow: 0 8px 28px #16382a08; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; isolation: isolate; }
.product-card-modern.tone-beauty { --card-accent: #7544a5; --card-tint: #f4edfc; --card-soft: #ddc9f3; }
.product-card-modern.tone-fashion { --card-accent: #2751a8; --card-tint: #edf2ff; --card-soft: #c9d7fa; }
.product-card-modern.tone-food { --card-accent: #ad4d20; --card-tint: #fff1e6; --card-soft: #f5d5b5; }
.product-card-modern.tone-gadget { --card-accent: #17667c; --card-tint: #e7f6fa; --card-soft: #b7e0eb; }
.product-card-modern.tone-fitness { --card-accent: #597222; --card-tint: #f0f6df; --card-soft: #d5e4af; }
.product-card-modern:hover { transform: translateY(-5px); border-color: var(--card-soft); box-shadow: 0 16px 40px #1c382a14; }
.product-card-modern:focus-within { outline: 2px solid var(--card-accent); outline-offset: 3px; }
.product-card-modern .card-media { width: 100%; height: 154px; flex: none; background: #f7f4ee; border-bottom: 1px solid #eee9e1; }
.product-card-modern .card-media img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.product-card-modern:hover .card-media img { transform: scale(1.045); }
.product-card-modern .card-media .badges { z-index: 1; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 78px); }
.product-card-modern .badge { backdrop-filter: blur(8px); font-size: .7rem; padding: 5px 9px; border-radius: 9px; box-shadow: 0 2px 8px #00000008; }
.product-card-modern .badge-comm { color: var(--card-accent); background: var(--card-tint); }
.product-card-modern .bookmark-btn { top: 14px; right: 14px; box-shadow: 0 4px 14px #1a352015; }
.product-card-modern .card-body { padding: 14px; gap: 8px; }
.product-card-modern .card-cat { align-self: flex-start; background: var(--card-tint); color: var(--card-accent); padding: 4px 10px; font-size: .72rem; margin-bottom: 0; }
.product-card-modern .card-name { font-size: .91rem; line-height: 1.45; min-height: 2.9em; }
.product-card-modern .card-blurb { font-size: .74rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; min-height: 1.4em; }
.commission-panel { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px; padding: 12px; border-radius: 13px; background: linear-gradient(120deg, var(--card-tint), #fff); border: 1px solid var(--card-soft); overflow: hidden; }
.commission-panel::after { content: ''; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, #ffffff80 50%, transparent 65%); transform: translateX(-120%); }
.product-card-modern:hover .commission-panel::after { animation: commission-shine 1.2s ease both; }
.commission-rate { display: flex; flex-direction: column; gap: 4px; color: var(--card-accent); }
.commission-label { font-size: .72rem; font-weight: 600; }
.commission-rate strong { font-family: var(--font-num); font-size: 1.9rem; font-weight: 800; line-height: 1.05; letter-spacing: -.06em; }
.commission-rate strong span { font-size: 1.05rem; letter-spacing: 0; margin-left: 3px; }
.commission-income { display: flex; flex-direction: column; gap: 3px; border-left: 1px solid var(--card-soft); padding-left: 14px; }
.commission-income > span { font-size: .67rem; color: #536574; }
.commission-income strong { font-family: var(--font-num); font-size: 1.05rem; line-height: 1.2; color: var(--card-accent); }
.commission-income small { font-size: .6rem; color: #617380; }
.product-card-modern .card-meta { font-size: .72rem; color: #65746b; }
.product-card-modern .rating { color: #65746b; }
.product-card-modern .reasons { background: #f7f9f7; font-size: .75rem; border-radius: 12px; padding: 10px 12px; }
.product-card-modern .price { font-size: 1.25rem; }
.price-label { display: block; font-family: var(--font-body, inherit); font-size: .65rem; font-weight: 500; color: #65746b; margin-bottom: 4px; }
.product-card-modern .card-actions, .product-card-modern .card-view { margin-top: 0; }
.product-card-modern .btn-primary { background: linear-gradient(120deg, #087e82, #096975); box-shadow: 0 4px 10px #ef57251a; transition: transform .2s, box-shadow .2s; }
.product-card-modern .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 14px #ef572533; }
.product-card-modern .card-view { font-size: .72rem; gap: 8px; flex-wrap: wrap; }
.product-card-modern .more-link { font-size: .68rem; }
.daily-band { background: radial-gradient(ellipse at 95% 0, #e7edff80, transparent 45%), radial-gradient(ellipse at 0 100%, #dff5ef, transparent 50%), #f4f8fa; }
.daily-band .refresh { border-radius: 999px; background: #ffffffb0; border: 1px solid #dce9de; padding: 9px 15px; font-size: .75rem; }
.daily-band .cards { gap: 20px; }
.daily-band .product-card-modern { animation: card-reveal .65s ease both; }
.daily-band .product-card-modern:nth-child(2) { animation-delay: .1s; }
.daily-band .product-card-modern:nth-child(3) { animation-delay: .2s; }
.section-eyebrow { display: inline-block; font-family: var(--font-num); font-size: .65rem; letter-spacing: .15em; color: #687c6f; margin-bottom: 7px; }
.commission-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 52px; padding: 24px 28px; border: 1px solid #d6e8db; border-radius: 22px; background: linear-gradient(120deg, #eaf8ee, #f4f0ff); }
.commission-section-heading h3 { font-size: 1.5rem; margin: 0 0 6px; color: #164b35; }
.commission-section-heading p { margin: 0; font-size: .85rem; color: #536e60; }
.commission-section-mark { font-family: var(--font-num); font-size: 3rem; background: #ffffffa0; color: #34764f; border: 1px solid #fff; width: 74px; height: 74px; flex: none; border-radius: 23px; text-align: center; line-height: 74px; transform: rotate(-8deg); }
.product-carousel { min-width: 0; }
.carousel-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 20px 0 8px; }
.carousel-hint { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: #52715e; }
.carousel-live-dot { width: 6px; height: 6px; background: #339e63; border-radius: 50%; box-shadow: 0 0 0 4px #e8f4ec; }
.carousel-controls { display: flex; gap: 8px; align-items: center; }
.carousel-controls button { border: 1px solid #dce7df; background: #fff; color: #195b3f; width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; transition: background .2s, transform .2s; }
.carousel-controls button:hover { background: #e9f5ed; transform: translateY(-2px); }
.carousel-controls button:disabled { opacity: .4; cursor: default; }
.carousel-controls .carousel-play { width: auto; border-radius: 999px; padding: 0 12px; font-size: .7rem; white-space: nowrap; }
.carousel-position { font-family: var(--font-num); font-size: .72rem; color: #63766b; white-space: nowrap; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px 1px 20px; align-items: stretch; overscroll-behavior-x: contain; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid #346b50; outline-offset: 4px; border-radius: 12px; }
.carousel-slide { flex: 0 0 calc((100% - 40px) / 3); min-width: 0; scroll-snap-align: start; }
.carousel-slide .card { height: 100%; }
.carousel-progress { height: 3px; border-radius: 99px; background: #e8ede8; overflow: hidden; margin-bottom: 22px; }
.carousel-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #24864e, #a297db); transition: width .5s ease; }
@keyframes commission-shine { to { transform: translateX(120%); } }
@keyframes card-reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 980px) { .carousel-slide { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px) {
  .product-card-modern { flex-direction: column; border-radius: 20px; }
  .product-card-modern .card-media { width: 100%; min-height: 0; height: 150px; }
  .product-card-modern .card-body { padding: 14px; }
  .product-card-modern .card-name { min-height: 0; }
  .product-card-modern .card-blurb { min-height: 0; }
  .commission-panel { padding: 12px 14px; }
  .carousel-slide { flex-basis: 88%; }
  .carousel-hint { display: none; }
  .carousel-toolbar { justify-content: flex-end; }
  .commission-section-heading { padding: 20px; margin-top: 30px; }
  .commission-section-heading h3 { font-size: 1.2rem; }
  .commission-section-heading p { font-size: .75rem; }
  .commission-section-mark { width: 52px; height: 52px; font-size: 2rem; line-height: 52px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card-modern, .product-card-modern *, .carousel-progress span { animation: none !important; transition: none !important; }
  .product-card-modern:hover, .product-card-modern:hover .card-media img, .product-card-modern .btn-primary:hover { transform: none; }
  .carousel-track { scroll-behavior: auto; }
}
@media (min-width: 981px) { .daily-band .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 641px) and (max-width: 980px) { .daily-band .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Compact teal/navy refinement */
.product-card-modern { border-radius: 18px; box-shadow: 0 4px 18px #17384a08; }
.product-card-modern.tone-beauty { --card-accent: #5364a0; --card-tint: #edf0fa; --card-soft: #d2d9ef; }
.product-card-modern.tone-fashion { --card-accent: #267487; --card-tint: #e9f5f7; --card-soft: #c2e4e9; }
.product-card-modern .card-cat { padding: 2px 8px; font-size: .65rem; }
.product-card-modern .card-media .badges { top: 10px; left: 10px; }
.product-card-modern .badge { font-size: .62rem; padding: 3px 7px; }
.product-card-modern .bookmark-btn { top: 10px; right: 10px; width: 32px; height: 32px; }
.product-card-modern .reasons { padding: 6px 9px; font-size: .68rem; background: #f2f7f8; }
.product-card-modern .reasons li { white-space: normal; overflow-wrap: anywhere; }
.product-card-modern .card-foot { margin-top: 0; padding-top: 3px; }
.product-card-modern .card-foot:has(.price) { margin-top: auto; }
.product-card-modern .card-actions .btn { min-height: 36px; padding: 7px 14px; font-size: .8rem; }
.product-card-modern .price { font-size: 1.08rem; }
.product-card-modern .price-label { font-size: .58rem; margin-bottom: 0; }
.product-card-modern .score-ring { background: #e5f4f1; color: #09656a; font-size: .66rem; padding: 4px 8px; }
.product-card-modern .card-view { font-size: .66rem; }
.product-card-modern .card-view a { font-size: inherit; }
.commission-section-heading { background: linear-gradient(120deg, #e4f3f2, #edf1fc); border-color: #d5e4eb; padding: 18px 22px; margin-top: 32px; }
.commission-section-heading h3 { color: #123f54; font-size: 1.25rem; }
.commission-section-mark { color: #0c7a80; width: 56px; height: 56px; line-height: 56px; font-size: 2.1rem; border-radius: 18px; }
.daily-band .section-head { margin-bottom: 18px; }
.carousel-progress span { background: linear-gradient(90deg, #087e82, #809adb); }
@media (max-width:640px) {
  .product-card-modern .card-name { min-height: 0; }
  .product-card-modern .card-blurb { display: none; }
  .product-card-modern .card-media { height: 138px; }
  .product-card-modern .card-body { padding: 12px; gap: 7px; }
  .commission-section-heading h3 { font-size: 1.05rem; }
}
/* Keep the essential buying information in a shorter card. */
.product-card-modern { position: relative; }
.product-card-modern .card-media { height: 132px; }
.product-card-modern .card-cat { position: absolute; top: 105px; left: 12px; z-index: 1; background: #fffffff0; }
.product-card-modern .card-name { min-height: 0; font-size: .9rem; }
.product-card-modern .card-blurb { display: none; }
.product-card-modern .commission-panel { padding: 8px 10px; border-radius: 11px; }
.product-card-modern .commission-label { font-size: .65rem; line-height: 1.3; }
.product-card-modern .commission-rate strong { font-size: 1.18rem; letter-spacing: -.03em; }
.product-card-modern .commission-income > span, .product-card-modern .commission-income small { line-height: 1.25; }
.product-card-modern .price { display: flex; align-items: baseline; gap: 6px; line-height: 1.3; }
.product-card-modern .price-label { display: inline; }
@media (max-width:640px) { .product-card-modern .card-media { height: 132px; } }

/* Soft category colors and a quieter commission summary. */
.product-card-modern { border-color: var(--card-soft); }
.product-card-modern .card-body { background: linear-gradient(180deg, #fff 65%, var(--card-tint)); }
.product-card-modern .commission-rate { gap: 3px; }
.product-card-modern .commission-rate strong span { font-size: .75rem; }
.product-card-modern .commission-label { font-size: .6rem; }
.product-card-modern .commission-income > span { font-size: .6rem; }
.product-card-modern .commission-income small { font-size: .55rem; }
.product-card-modern .reasons { background: #ffffffba; border: 1px solid var(--card-soft); }
.product-card-modern .btn-primary { background: var(--card-accent); box-shadow: 0 3px 10px #17384a0c; }
.product-card-modern .btn-primary:hover { background: var(--card-accent); filter: brightness(.94); box-shadow: 0 5px 12px #17384a18; }
.product-card-modern .score-ring { background: var(--card-tint); color: var(--card-accent); }
/* Distinct card edges with a soft layered shadow. */
.product-card-modern {
  border: 1px solid var(--card-soft);
  box-shadow: 0 2px 4px #18384c08, 0 8px 20px #18384c12, 0 20px 38px #18384c08;
  background: #fff;
}
.product-card-modern:hover {
  border-color: var(--card-accent);
  box-shadow: 0 4px 8px #18384c0c, 0 14px 28px #18384c1c, 0 26px 46px #18384c0c;
  transform: translateY(-3px);
}
.daily-band .cards { gap: 24px; }
.carousel-track { padding-bottom: 30px; }
@media (prefers-reduced-motion: reduce) { .product-card-modern:hover { transform: none; } }

/* Creator motion: lightweight transforms, with a visible pause control. */
.hero-scene { position: relative; isolation: isolate; padding: 90px 0 12px; }
.hero-scene .member-card { position: relative; z-index: 2; background: linear-gradient(130deg,#14364d,#14666b); border-color:#3d7c86; box-shadow:0 20px 50px #15556326; }
.hero-orbit { position:absolute; inset:5px -15px 10px; z-index:-1; border-radius:45%; background:radial-gradient(ellipse,#bdeee8 0%,#e6e9fc 52%,transparent 72%); }
.hero-product-cloud { position:absolute; inset:0 0 auto; height:110px; display:flex; justify-content:space-around; gap:15px; }
.hero-mini-product { width:94px; height:102px; padding:6px; background:#ffffffed; border:1px solid #d5e6e9; border-radius:18px; box-shadow:0 8px 28px #153b521a; transform:rotate(-7deg); }
.hero-mini-product .product-photo { width:100%; height:70px; object-fit:cover; border-radius:12px; }
.hero-mini-product span { display:block; font-size:.6rem; color:#526481; text-align:center; padding-top:3px; }
.hero-mini-product.mini-1 { transform:translateY(-15px) rotate(5deg); }
.hero-mini-product.mini-2 { transform:rotate(9deg); }
.motion-toggle { display:inline-flex; align-items:center; gap:7px; border:1px solid #dae7ea; border-radius:99px; background:#fff; color:#526b7a; font:inherit; font-size:.72rem; padding:6px 11px; margin:0 0 15px; cursor:pointer; }
.motion-toggle:hover { border-color:#087e82; color:#087e82; }
.creator-ribbon { grid-column:1/-1; overflow:hidden; min-width:0; border-block:1px solid #d5e6e9; background:linear-gradient(90deg,#edf8f6,#f0f2fc); border-radius:12px; padding:13px 0; mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.creator-ribbon-track { display:flex; width:max-content; }
.creator-ribbon-track>div { display:flex; align-items:center; gap:32px; padding-right:32px; }
.creator-ribbon span { font-size:.85rem; font-weight:700; color:#3c6373; white-space:nowrap; }
.creator-ribbon b { color:#6698a1; font-size:.9rem; }
.home-motion[data-motion="on"] .hero-mini-product { animation:creatorFloat 6s ease-in-out infinite; }
.home-motion[data-motion="on"] .mini-1 { animation-delay:-2s; }
.home-motion[data-motion="on"] .mini-2 { animation-delay:-4s; }
.home-motion[data-motion="on"] .hero-orbit { animation:creatorAura 10s ease-in-out infinite alternate; }
.home-motion[data-motion="on"] .creator-ribbon-track { animation:creatorMarquee 32s linear infinite; }
.creator-ribbon:hover .creator-ribbon-track { animation-play-state:paused; }
.home-motion[data-motion="on"] .motion-arrived > .section-head,
.home-motion[data-motion="on"] .motion-arrived > .hero-copy,
.home-motion[data-motion="on"] .motion-arrived > .hero-scene { animation:creatorReveal .7s cubic-bezier(.2,.7,.2,1) both; }
.home-motion[data-motion="on"] .motion-arrived > .grid { animation:creatorReveal .8s .1s cubic-bezier(.2,.7,.2,1) both; }
.home-motion[data-motion="off"] .creator-ribbon-track,
.home-motion[data-motion="off"] .hero-mini-product,
.home-motion[data-motion="off"] .hero-orbit { animation:none; }
@keyframes creatorFloat { 0%,100% { translate:0 0; } 50% { translate:0 -10px; } }
@keyframes creatorAura { from { transform:scale(.94) rotate(-8deg); } to { transform:scale(1.04) rotate(8deg); } }
@keyframes creatorMarquee { to { transform:translateX(-50%); } }
@keyframes creatorReveal { from { opacity:.25; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:640px) { .hero-scene { padding-top:88px; } .hero-product-cloud { justify-content:space-evenly; } .hero-mini-product { width:80px; height:92px; } .hero-mini-product .product-photo { height:60px; } .creator-ribbon-track>div { gap:22px; padding-right:22px; } .creator-ribbon span { font-size:.75rem; } }

/* Brand intro. The page remains usable without JavaScript. */
.brand-loader { position:fixed; inset:0; z-index:200; display:grid; place-items:center; background:#fafcfe; overflow:hidden; transition:opacity .4s ease,visibility .4s; }
.brand-loader.leaving { opacity:0; pointer-events:none; visibility:hidden; }
.loader-aura { position:absolute; width:min(700px,140vw); aspect-ratio:1; border-radius:50%; background:radial-gradient(ellipse at 30% 40%,#a9e9df80,transparent 65%),radial-gradient(ellipse at 75% 55%,#b6bff580,transparent 65%),radial-gradient(ellipse at 50% 80%,#f6cfe666,transparent 65%); filter:blur(45px); animation:loaderAura 4s ease-in-out infinite alternate; }
.loader-center { position:relative; display:flex; flex-direction:column; align-items:center; gap:20px; }
.loader-logo-shell { position:relative; isolation:isolate; width:190px; height:190px; display:grid; place-items:center; background:radial-gradient(circle at 35% 25%,#fff,#f6f9ff); border:1px solid #ffffff; border-radius:50%; box-shadow:0 18px 60px #526a8415,0 0 0 9px #ffffff45; animation:loaderLogo 2.2s ease-in-out infinite !important; }
.loader-logo-shell::before,.loader-logo-shell::after { content:""; position:absolute; inset:-8px; z-index:-1; border:1px solid #719bc278; border-radius:50%; pointer-events:none; animation:loaderRipple 2.2s ease-out infinite !important; }
.loader-logo-shell::after { border-color:#94cbdc70; animation-delay:-1.1s !important; }
.loader-logo-shell img { width:150px; height:auto; object-fit:contain; mix-blend-mode:multiply; animation:loaderLogoFade 2.2s ease-in-out infinite !important; }
.loader-caption { color:#61778e; letter-spacing:4px; font-size:.65rem; font-weight:800; }
.loader-line { width:150px; height:4px; background:#dce8ef; border-radius:99px; overflow:hidden; }
/* Keep this small loading indicator moving, as explicitly requested. */
.brand-loader .loader-line span { display:block; width:40%; height:100%; background:linear-gradient(90deg,#087e82,#697bd6); border-radius:inherit; animation:loaderProgress 1.2s ease-in-out infinite alternate !important; }
.loader-center p { color:#81909e; font-size:.75rem; margin:0; }
.loader-skip { position:absolute; bottom:32px; background:transparent; color:#60798a; border:0; font:inherit; font-size:.75rem; cursor:pointer; padding:12px; }
@keyframes loaderLogo { 0%,100% { transform:translateY(0) scale(1); } 50% { transform:translateY(-5px) scale(1.025); } }
@keyframes loaderLogoFade { 0%,100% { opacity:1; filter:blur(0); } 50% { opacity:.55; filter:blur(.4px); } }
@keyframes loaderRipple { 0% { transform:scale(.95); opacity:0; } 15% { opacity:.65; } 100% { transform:scale(1.35); opacity:0; } }
@keyframes loaderAura { to { transform:rotate(12deg) scale(1.15); } }
@keyframes loaderProgress { from { transform:translateX(0); } to { transform:translateX(150%); } }
@media(prefers-reduced-motion:reduce) { .brand-loader .loader-aura,.brand-loader .loader-logo-shell { animation:none; } .brand-loader { transition:none; } }
/* Explicit user opt-in can enable only these homepage effects in reduced-motion mode. */
@media(prefers-reduced-motion:reduce) {
  .home-motion[data-motion="on"] .hero-mini-product { animation:creatorFloat 6s ease-in-out infinite !important; }
  .home-motion[data-motion="on"] .mini-1 { animation-delay:-2s !important; }
  .home-motion[data-motion="on"] .mini-2 { animation-delay:-4s !important; }
  .home-motion[data-motion="on"] .hero-orbit { animation:creatorAura 10s ease-in-out infinite alternate !important; }
  .home-motion[data-motion="on"] .creator-ribbon-track { animation:creatorMarquee 32s linear infinite !important; }
  .home-motion[data-motion="on"] .creator-ribbon:hover .creator-ribbon-track { animation-play-state:paused !important; }
  .home-motion[data-motion="on"] .motion-arrived > .section-head,
  .home-motion[data-motion="on"] .motion-arrived > .hero-copy,
  .home-motion[data-motion="on"] .motion-arrived > .hero-scene,
  .home-motion[data-motion="on"] .motion-arrived > .grid { animation:creatorReveal .7s cubic-bezier(.2,.7,.2,1) both !important; }
}

/* Internal page transitions use a compact glass panel, distinct from the intro. */
.route-loader { position:fixed; inset:0; z-index:200; display:grid; place-items:center; background:#f3f8fc99; backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px); transition:opacity .3s ease,visibility .3s; }
.route-loader.leaving { opacity:0; visibility:hidden; pointer-events:none; }
.route-loader-rail { position:absolute; inset:0 0 auto; height:4px; background:#dce8ef88; overflow:hidden; }
.route-loader-rail span { display:block; width:35%; height:100%; border-radius:99px; background:linear-gradient(90deg,#087e82,#6b7ee0,#91c8df); box-shadow:0 0 16px #6b7ee066; animation:routeRail 1s ease-in-out infinite alternate !important; }
.route-loader-card { display:flex; align-items:center; gap:18px; width:min(350px,calc(100vw - 48px)); box-sizing:border-box; padding:22px; background:#ffffffed; border:1px solid #fff; border-radius:22px; box-shadow:0 20px 70px #173b5820,0 2px 8px #173b5808; }
.route-loader-icon { flex:none; display:grid; place-items:center; width:76px; height:64px; background:#f0f5fa; border:1px solid #e3edf3; border-radius:16px; }
.route-loader-icon img { width:68px; height:auto; object-fit:contain; }
.route-loader-copy { flex:1; min-width:0; }
.route-loader-copy>span { display:block; font-size:.7rem; color:#71869a; margin-bottom:5px; }
.route-loader-copy strong { display:flex; align-items:center; flex-wrap:wrap; gap:9px; color:#21445c; font-size:.95rem; }
.route-loader-dots { display:inline-flex; gap:4px; align-items:center; }
.route-loader-dots i { width:4px; height:4px; background:#087e82; border-radius:50%; animation:routeDot .9s ease-in-out infinite alternate !important; }
.route-loader-dots i:nth-child(2) { animation-delay:.15s !important; }
.route-loader-dots i:nth-child(3) { animation-delay:.3s !important; }
.route-loader-skip { flex:none; width:28px; height:28px; display:grid; place-items:center; border:1px solid #e0e9ee; border-radius:50%; background:white; color:#648399; font:inherit; cursor:pointer; }
.route-loader-skip:hover { color:#087e82; border-color:#087e82; }
@keyframes routeRail { from { transform:translateX(-30%); } to { transform:translateX(215%); } }
@keyframes routeDot { from { opacity:.3; } to { opacity:1; } }

/* Dense product browsing: six compact cards on desktop. */
.product-grid,.daily-band .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.carousel-slide { flex-basis:calc((100% - 20px)/2); }
.product-card-modern { min-width:0; border-radius:15px; }
.product-card-modern .card-media { height:115px; }
.product-card-modern .card-body { padding:10px; gap:7px; }
.product-card-modern .card-cat { top:90px; left:10px; font-size:.6rem; padding:3px 8px; }
.product-card-modern .card-name { font-size:.78rem; line-height:1.45; min-height:2.9em; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.product-card-modern .card-media .badges { top:8px; left:8px; max-width:calc(100% - 45px); gap:4px; }
.product-card-modern .badge { font-size:.58rem; padding:3px 6px; }
.product-card-modern .badge-comm { display:none; }
.product-card-modern .bookmark-btn { width:28px; height:28px; top:8px; right:8px; }
.product-card-modern .bookmark-btn svg { width:14px; height:14px; }
.product-card-modern .commission-panel { padding:7px; gap:6px; border-radius:9px; }
.product-card-modern .commission-rate strong { font-size:1.02rem; }
.product-card-modern .commission-income strong { font-size:.92rem; }
.product-card-modern .commission-label,.product-card-modern .commission-income>span { font-size:.55rem; }
.product-card-modern .commission-income small { display:none; }
.product-card-modern .card-meta { font-size:.62rem; gap:4px; line-height:1.5; }
.product-card-modern .card-reasons { display:none; }
.product-card-modern .price { font-size:.95rem; }
.product-card-modern .score-ring { font-size:.56rem; padding:3px 6px; }
.product-card-modern .card-actions { gap:6px; }
.product-card-modern .btn-pin { min-height:32px; height:32px; padding:5px 8px; font-size:.72rem; }
.product-card-modern .btn-aff { flex:0 0 32px; width:32px; padding:0; }
.product-card-modern .btn-aff span { display:none; }
.product-card-modern .btn-aff svg { width:15px; height:15px; }
.product-card-modern .view-link { font-size:.65rem; }
.product-card-modern .more-link { display:none; }
@media(min-width:641px) { .product-grid,.daily-band .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .carousel-slide { flex-basis:calc((100% - 40px)/3); } }
@media(min-width:901px) { .product-grid,.daily-band .product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } .carousel-slide { flex-basis:calc((100% - 60px)/4); } }
@media(min-width:1200px) { .wrap { max-width:1400px; } .product-grid,.daily-band .product-grid { grid-template-columns:repeat(6,minmax(0,1fr)); } .carousel-slide { flex-basis:calc((100% - 100px)/6); } }
@media(max-width:360px) { .product-grid,.daily-band .product-grid { gap:10px; } .product-card-modern .card-body { padding:8px; } .product-card-modern .card-meta { font-size:.58rem; } }
.product-card-modern .reasons { display:flex; }
.product-card-modern .btn-aff span { display:block; position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

/* Orbit transition: two counter-rotating gradient rings around the brand. */
.route-loader { background:radial-gradient(ellipse at center,#eff5ffde 0%,#f6fbf9bf 48%,#f8fbfbb3 100%); backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); }
.route-loader-orbit-content { display:flex; flex-direction:column; align-items:center; gap:22px; padding:26px; text-align:center; }
.route-spinner { position:relative; width:142px; height:142px; display:grid; place-items:center; }
.route-spinner-ring { position:absolute; border-radius:50%; background:conic-gradient(from 20deg,transparent 8%,#9ddad8 25%,#087e82 48%,#7184e2 72%,transparent 88%); mask-image:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3px)); -webkit-mask-image:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3px)); }
.route-spinner-ring.outer { inset:0; animation:routeOrbitSpin 1.5s linear infinite !important; }
.route-spinner-ring.inner { inset:12px; background:conic-gradient(transparent 15%,#bcb3ef 38%,#6b9bd7 60%,transparent 80%); mask-image:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1px)); -webkit-mask-image:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 calc(100% - 1px)); animation:routeOrbitSpin 2.4s linear infinite reverse !important; }
.route-spinner-core { width:94px; height:94px; display:grid; place-items:center; border-radius:50%; background:#fff; border:1px solid #e5edf4; box-shadow:0 8px 32px #36578114; }
.route-spinner-core img { width:82px; height:auto; }
.route-loader-orbit-content .route-loader-copy>span { letter-spacing:.8px; font-size:.72rem; margin-bottom:7px; }
.route-loader-orbit-content .route-loader-copy strong { justify-content:center; font-size:1.05rem; }
.route-loader-skip.orbit-skip { width:auto; height:auto; padding:6px 15px; border-radius:99px; font-size:.68rem; color:#71889a; background:#ffffff99; }
@keyframes routeOrbitSpin { to { transform:rotate(360deg); } }
/* Five cards per row on desktop, requested for the latest comparison. */
@media(min-width:1200px) { .product-grid,.daily-band .product-grid { grid-template-columns:repeat(5,minmax(0,1fr)); } .carousel-slide { flex-basis:calc((100% - 80px)/5); } }

/* Mobile browsing: swipeable recommendations and comfortable touch targets. */
@media(max-width:640px) {
  .wrap { padding-left:16px; padding-right:16px; }
  .hero { gap:24px; padding-top:28px; padding-bottom:28px; }
  .hero-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .hero-stats div { padding:10px 8px; }
  .hero-stats div+div { border-top:0; border-left:1px solid var(--line); }
  .hero-stats dt { font-size:.6rem; line-height:1.5; }
  .hero-stats dd { font-size:.88rem; margin-top:5px; }
  .hero-actions .btn { min-height:44px; }
  .carousel-slide { flex-basis:78%; }
  .carousel-toolbar { justify-content:space-between; flex-wrap:wrap; gap:8px; }
  .carousel-toolbar::before { content:"ปัดเพื่อดูสินค้า →"; color:#637c8e; font-size:.68rem; flex:1 1 100px; }
  .carousel-controls { gap:6px; }
  .carousel-controls button { width:44px; height:44px; }
  .carousel-controls .carousel-play { min-height:44px; padding:0 10px; }
  .carousel-track { padding-top:8px; padding-bottom:24px; }
  .product-card-modern .btn-pin { height:44px; min-height:44px; }
  .product-card-modern .btn-aff { flex-basis:44px; width:44px; }
  .product-card-modern .bookmark-btn { width:44px; height:44px; }
  .product-card-modern .bookmark-btn svg { width:17px; height:17px; }
  .product-card-modern .card-media .badges { max-width:calc(100% - 62px); }
  .carousel-slide .product-card-modern .card-media { height:155px; }
  .carousel-slide .product-card-modern .card-cat { top:130px; }
  .carousel-slide .product-card-modern .card-body { padding:13px; gap:9px; }
  .carousel-slide .product-card-modern .card-name { font-size:.92rem; }
  .carousel-slide .product-card-modern .card-meta { font-size:.72rem; }
  .carousel-slide .product-card-modern .commission-label,.carousel-slide .product-card-modern .commission-income>span { font-size:.64rem; }
  .carousel-slide .product-card-modern .commission-rate strong { font-size:1.2rem; }
  .carousel-slide .product-card-modern .commission-income strong { font-size:1.05rem; }
  .carousel-slide .product-card-modern .view-link { font-size:.75rem; }
  .product-grid .product-card-modern .card-name { font-size:.8rem; }
  .product-grid .product-card-modern .price { flex-wrap:wrap; gap:2px; }
  .bottom-nav { padding-bottom:env(safe-area-inset-bottom); }
  .bottom-nav a,.bottom-nav button { min-height:52px; }
  .commission-section-heading { padding:16px; gap:12px; }
  .commission-section-heading h3 { font-size:1.05rem; }
  .route-loader-orbit-content { max-width:calc(100vw - 32px); box-sizing:border-box; }
}

.image-studio-intro { color:#087e82; font-size:.82rem; }
.image-studio { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px; padding:28px; border:1px solid #dce7ee; border-radius:22px; background:linear-gradient(120deg,#f5fbf9,#f4f5fc); }
.image-studio-controls { display:flex; flex-direction:column; gap:13px; min-width:0; }
.image-free-badge { align-self:flex-start; padding:5px 10px; border-radius:99px; background:#e0f4ed; color:#087e82; font-size:.72rem; font-weight:700; }
.image-studio h3 { margin:0; font-size:1.3rem; }
.image-studio-controls>p { margin:0; color:#657b8d; font-size:.85rem; }
.image-studio-controls label { display:flex; flex-direction:column; gap:6px; font-size:.82rem; font-weight:600; }
.image-studio-controls input:not([type="checkbox"]),.image-studio-controls select { width:100%; box-sizing:border-box; min-height:44px; padding:10px 12px; border:1px solid #d8e4eb; border-radius:10px; background:white; color:#24445c; font:inherit; }
.image-studio-controls .image-price-toggle { flex-direction:row; align-items:center; min-height:40px; }
.image-price-toggle input { width:20px; height:20px; accent-color:#087e82; }
.image-studio-controls>.btn { min-height:44px; }
.image-studio-preview { display:flex; flex-direction:column; align-items:center; gap:12px; min-width:0; padding:18px; background:#eaf0f7; border-radius:16px; }
.image-studio-preview>span { color:#6b8093; font-size:.75rem; }
.image-studio-preview canvas { display:block; width:100%; max-width:380px; height:auto; border-radius:12px; box-shadow:0 12px 28px #314d6818; }
@media(max-width:640px) { .image-studio { grid-template-columns:minmax(0,1fr); padding:16px; gap:20px; } .mini-tabs { display:flex; overflow-x:auto; gap:8px; padding-bottom:8px; } .mini-tab { flex:none; min-height:44px; white-space:nowrap; } .image-studio-controls input:not([type="checkbox"]),.image-studio-controls select { font-size:16px; } }

/* Daily picks: three moving cards with a content inspiration panel. */
.daily-content-layout { display:grid; grid-template-columns:minmax(0,3fr) minmax(260px,1fr); gap:24px; align-items:start; }
.daily-content-layout .carousel-slide { flex-basis:calc((100% - 40px)/3); }
.daily-inspiration { margin-top:20px; border-radius:22px; padding:16px; color:#eef7ff; background:linear-gradient(145deg,#153448,#176b73); box-shadow:0 14px 32px #143c4a1a; overflow:hidden; }
.inspiration-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.inspiration-top>span { font-size:.62rem; letter-spacing:2px; color:#afdcd8; font-weight:700; }
.inspiration-top button { width:32px; height:32px; border:1px solid #ffffff38; border-radius:50%; background:#ffffff10; color:white; cursor:pointer; }
.inspiration-photo { position:relative; height:192px; overflow:hidden; border-radius:14px; background:linear-gradient(130deg,#fbf5e9,#ddeaf0); }
.inspiration-photo .product-photo { width:100%; height:100%; object-fit:contain; animation:inspirationZoom 5s ease-in-out infinite alternate !important; }
.inspiration-photo[data-paused="true"] .product-photo { animation-play-state:paused !important; }
.inspiration-photo>span { position:absolute; bottom:10px; left:10px; padding:4px 8px; border-radius:99px; color:#355169; background:#ffffffdb; font-size:.57rem; }
.inspiration-copy { padding:14px 0 12px; }
.inspiration-copy>span { font-size:.65rem; color:#a8ded6; }
.inspiration-copy h3 { margin:3px 0 6px; font-size:1.1rem; color:white; }
.inspiration-copy p { margin:0; font-size:.73rem; line-height:1.6; color:#d3e7eb; min-height:3.2em; }
.inspiration-bottom { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.inspiration-bottom>a { color:#d0f3e8; font-size:.73rem; font-weight:700; text-decoration:none; }
.inspiration-dots { display:flex; gap:5px; }
.inspiration-dots button { width:24px; height:24px; padding:0; border:0; background:transparent; display:grid; place-items:center; cursor:pointer; }
.inspiration-dots button::before { content:""; width:5px; height:5px; border-radius:50%; background:#ffffff60; }
.inspiration-dots button[aria-pressed="true"]::before { width:16px; border-radius:99px; background:#a4e9d7; }
@keyframes inspirationZoom { from { transform:scale(1) rotate(-2deg); } to { transform:scale(1.06) rotate(2deg); } }
@media(max-width:1000px) { .daily-content-layout { grid-template-columns:minmax(0,1fr); } .daily-inspiration { display:grid; grid-template-columns:minmax(180px,1fr) minmax(0,1fr); gap:0 20px; margin-top:0; } .inspiration-top { grid-column:1/-1; } .inspiration-photo { grid-row:2/4; } .inspiration-copy { padding-top:5px; } }
@media(max-width:640px) { .daily-content-layout { gap:8px; } .daily-content-layout .carousel-slide { flex-basis:78%; } .daily-inspiration { display:block; padding:16px; } .inspiration-photo { height:180px; } .inspiration-copy p { min-height:0; } .inspiration-top button,.inspiration-dots button { min-width:44px; min-height:44px; } }

/* Brand-colour hero with a slowly moving blue ambient background. */
.hero.wrap { position:relative; isolation:isolate; overflow:hidden; margin:24px auto 30px; padding:36px 28px; border:1px solid #d8e5f0; border-radius:28px; background:#f2f7fc; box-shadow:0 18px 45px #2c507510; align-items:center; }
.hero.wrap::before { content:""; position:absolute; inset:0; z-index:-2; border-radius:inherit; background:radial-gradient(ellipse at 15% 20%,#d7e5fa 0%,transparent 50%),radial-gradient(ellipse at 80% 30%,#a9c6e76b 0%,transparent 48%),radial-gradient(ellipse at 60% 90%,#dcf1ee 0%,transparent 50%),linear-gradient(130deg,#f8fbff,#edf4fc); background-size:150% 150%; animation:heroAmbient 14s ease-in-out infinite alternate !important; }
.hero.wrap::after { content:""; position:absolute; width:450px; height:450px; right:10%; top:-200px; z-index:-1; border:1px solid #ffffffa0; border-radius:50%; box-shadow:0 0 0 55px #ffffff1c,0 0 0 110px #ffffff15; animation:heroHalo 18s ease-in-out infinite alternate !important; pointer-events:none; }
.hero-copy .kicker { display:inline-flex; gap:6px; align-items:center; padding:6px 12px; border:1px solid #ffffff; border-radius:99px; background:#ffffffb3; color:#446585; font-size:.76rem; }
.hero-copy h1 { color:#20394d; }
.hero-copy .hl { color:#38649a; }
.hero-copy .lede { color:#5b7189; }
.hero-copy .hero-stats { border-color:#d3e2ee; }
.hero-copy .hero-stats div { background:#ffffffb3; }
.hero-copy .hero-actions .btn-primary { background:linear-gradient(110deg,#284e83,#638bc0); border-color:#406da5; box-shadow:0 7px 18px #3b609b24; }
.hero-copy .hero-actions .btn-ghost { background:#ffffffcc; }
.hero .creator-ribbon { background:#ffffff70; border-color:#d5e3ef; }
@keyframes heroAmbient { from { background-position:0% 0%; } to { background-position:100% 100%; } }
@keyframes heroHalo { from { transform:translate(0,0) scale(.95); } to { transform:translate(45px,25px) scale(1.08); } }
@media(max-width:640px) { .hero.wrap { width:calc(100% - 24px); box-sizing:border-box; margin:14px 12px 24px; padding:22px 16px; border-radius:22px; } .hero-copy h1 { font-size:1.75rem; } .hero-copy .kicker { font-size:.65rem; gap:4px; padding:5px 8px; } .hero.wrap::after { width:280px; height:280px; right:-80px; top:-140px; } }
main#top { scroll-margin-top:150px; }
@media(max-width:640px) { main#top { scroll-margin-top:110px; } }

/* Full-width atmosphere, without a framed hero container. */
.hero-brand-section { position:relative; isolation:isolate; overflow:hidden; background:#f2f6fd; }
.hero-brand-section::before { content:""; position:absolute; inset:0; z-index:-2; background:radial-gradient(ellipse at 12% 15%,#bdcff39c,transparent 50%),radial-gradient(ellipse at 88% 25%,#809fcc66,transparent 48%),radial-gradient(ellipse at 60% 95%,#bee9e17a,transparent 55%),linear-gradient(135deg,#f8fbff,#ecf2fb); background-size:150% 150%; animation:heroAmbient 14s ease-in-out infinite alternate !important; }
.hero-brand-section::after { content:""; position:absolute; inset:0; z-index:-1; opacity:.45; background-image:radial-gradient(#587dae38 1px,transparent 1px),linear-gradient(115deg,transparent 58%,#ffffff55 58.1%,transparent 58.3%); background-size:24px 24px,100% 100%; mask-image:linear-gradient(90deg,transparent,#000 65%,transparent); pointer-events:none; }
.hero-brand-section .hero.wrap { background:transparent; border:0; border-radius:0; box-shadow:none; overflow:visible; width:auto; max-width:1400px; margin:0 auto; padding:44px 28px 32px; }
.hero-brand-section .hero.wrap::before,.hero-brand-section .hero.wrap::after { display:none; }
.hero-brand-section .hero-copy,.hero-brand-section .hero-scene { animation:none !important; }
.hero-brand-section .hero-orbit { background:radial-gradient(ellipse,#a6c9e66e 0%,#b9b7e559 52%,transparent 72%); }
.hero-brand-section .hero-scene .member-card { box-shadow:0 24px 55px #1d416d24,0 4px 12px #1d416d10; }
.hero-brand-section .creator-ribbon { background:#ffffff65; border:0; box-shadow:0 8px 30px #31577d08; }
@media(max-width:640px) { .hero-brand-section .hero.wrap { width:auto; margin:0; padding:26px 16px 24px; } .hero-brand-section::after { background-size:20px 20px,100% 100%; opacity:.3; } }
/* Soft violet/blue light and a quiet brand pattern, inspired by WonderSupply. */
.hero-brand-section { background:#f8f8fd; }
.hero-brand-section::before { background:radial-gradient(ellipse at 68% 24%,#b893ee70,transparent 38%),radial-gradient(ellipse at 78% 72%,#9ecff670,transparent 42%),radial-gradient(ellipse at 80% 10%,#e5b9ef55,transparent 36%),linear-gradient(115deg,#fafbff 10%,#f4f2fc 70%,#f9fbff); background-size:150% 150%; }
.hero-brand-section::after { content:"WDMEDIA"; top:18px; color:#50689808; font-family:var(--font-num); font-size:clamp(80px,15vw,210px); font-weight:800; line-height:1; letter-spacing:-.05em; white-space:nowrap; opacity:1; mask-image:none; background-image:radial-gradient(#687baa20 1px,transparent 1px); background-size:26px 26px; }
@media(max-width:640px) { .hero-brand-section::after { top:8px; font-size:90px; opacity:.7; } }
.image-studio-controls>.btn[aria-disabled="true"] { opacity:.5; cursor:wait; }

/* Shared blue atmosphere follows the WD logo across the header and hero. */
.topbar-home { isolation:isolate; border-bottom:0; background:#f5f8fc; box-shadow:none; }
.topbar-home::before,.hero-brand-section::before { background:radial-gradient(ellipse at 72% 22%,#719bd348,transparent 44%),radial-gradient(ellipse at 90% 65%,#a6c9ec65,transparent 45%),radial-gradient(ellipse at 40% 90%,#d1deeb66,transparent 48%),linear-gradient(115deg,#fafcff 10%,#edf3fa 70%,#f7faff); background-size:150% 150%; background-attachment:fixed; animation:heroAmbient 14s ease-in-out infinite alternate !important; }
.topbar-home::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; }
.topbar-home .navband,.topbar-home .platform-bar { background:transparent; border:0; }
.topbar-home .nav a:hover { background:#ffffff66; }
.topbar-home .nav a.on { background:#315b91; border-color:transparent; box-shadow:0 4px 12px #315b911a; }
.topbar-home .btn-ghost,.topbar-home .platform-switch { background:#ffffff80; border-color:#8ea7c32b; }
.topbar-home .brand-mark { background:linear-gradient(130deg,#202b35,#497cb8); }
.hero-brand-section { background:#f5f8fc; }
.hero-brand-section .hero-scene .member-card { background:linear-gradient(125deg,#202e3e,#315b91); border-color:#627fa84d; }

/* Small half-body creators peek from behind the member card in three poses. */
.hero-brand-section .hero.wrap { isolation:auto; }
.hero-scene { padding-top:104px; isolation:auto; }
.hero-mascot-cloud { position:absolute; inset:0 0 auto; z-index:1; height:106px; overflow:hidden; display:flex; justify-content:space-around; align-items:flex-start; gap:8px; }
.hero-mascot { position:relative; flex:1; max-width:130px; min-width:0; height:156px; padding-top:26px; }
/* Blend the clean white matte into the light hero without cutout fringes. */
.hero-mascot-cloud { mix-blend-mode:multiply; }
.creator-character { display:block; width:100%; aspect-ratio:1; background-image:url('/img/creator-mascots-clean.png'); background-size:300% 100%; background-position:0 0; background-repeat:no-repeat; transform-origin:50% 95%; animation:mascotHello 9s ease-in-out infinite !important; }
.mascot-1 .creator-character { background-position:50% 0; animation:mascotWai 9s ease-in-out -3s infinite !important; }
.mascot-2 .creator-character { background-position:100% 0; animation:mascotCheer 9s ease-in-out -6s infinite !important; }
.hero-greeting { position:absolute; top:0; left:50%; transform:translateX(-50%); z-index:1; white-space:nowrap; background:#ffffffed; border:1px solid #dce7f0; border-radius:99px; padding:4px 8px; font-size:.61rem; color:#506889; box-shadow:0 4px 12px #34567f0a; animation:mascotGreeting 9s ease-in-out infinite !important; }
.mascot-1 .hero-greeting { animation-delay:-3s !important; }
.mascot-2 .hero-greeting { animation-delay:-6s !important; }
@keyframes mascotHello { 0%,78%,100% { transform:translateY(110px); } 12%,62% { transform:translateY(0) rotate(-3deg); } 25%,45% { transform:translateY(-3px) rotate(5deg); } 35%,55% { transform:translateY(0) rotate(-4deg); } }
@keyframes mascotWai { 0%,78%,100% { transform:translateY(110px); } 12%,62% { transform:translateY(0); } 28%,48% { transform:translateY(8px) rotate(4deg); } 38%,58% { transform:translateY(0) rotate(0); } }
@keyframes mascotCheer { 0%,78%,100% { transform:translateY(110px); } 12%,62% { transform:translateY(0) rotate(2deg); } 26%,46% { transform:translateY(-8px) rotate(-4deg); } 36%,56% { transform:translateY(0) rotate(3deg); } }
@keyframes mascotGreeting { 0%,8%,72%,100% { opacity:0; transform:translate(-50%,8px); } 16%,60% { opacity:1; transform:translate(-50%,0); } }
@media(max-width:640px) { .hero-scene { padding-top:90px; } .hero-mascot-cloud { height:92px; gap:4px; } .hero-mascot { max-width:110px; padding-top:24px; } .hero-greeting { font-size:.5rem; padding:3px 5px; } }

/* A relaxed entrance gives each greeting time to breathe. */
.creator-character { animation-duration:20s !important; }
.mascot-1 .creator-character { animation-duration:20s !important; animation-delay:-6.67s !important; }
.mascot-2 .creator-character { animation-duration:20s !important; animation-delay:-13.33s !important; }
.hero-greeting { animation-duration:20s !important; }
.mascot-1 .hero-greeting { animation-delay:-6.67s !important; }
.mascot-2 .hero-greeting { animation-delay:-13.33s !important; }
@keyframes mascotHello { 0%,94%,100% { transform:translateY(110px); } 22%,72% { transform:translateY(0) rotate(-2deg); } 36%,56% { transform:translateY(-2px) rotate(3deg); } 46%,66% { transform:translateY(0) rotate(-3deg); } }
@keyframes mascotWai { 0%,94%,100% { transform:translateY(110px); } 22%,72% { transform:translateY(0); } 38%,58% { transform:translateY(5px) rotate(3deg); } 48%,68% { transform:translateY(0); } }
@keyframes mascotCheer { 0%,94%,100% { transform:translateY(110px); } 22%,72% { transform:translateY(0) rotate(2deg); } 36%,56% { transform:translateY(-5px) rotate(-3deg); } 46%,66% { transform:translateY(0) rotate(2deg); } }
@keyframes mascotGreeting { 0%,14%,90%,100% { opacity:0; transform:translate(-50%,8px); } 26%,72% { opacity:1; transform:translate(-50%,0); } }

/* Circular logo area with no backplate, border or shadow. */
.topbar .brand { gap:11px; }
.brand-logo-shell { display:grid; place-items:center; flex:none; width:72px; height:72px; padding:0; border:0; border-radius:50%; background:transparent; box-shadow:none; }
.brand-logo { display:block; width:100%; height:100%; object-fit:contain; border-radius:50%; mix-blend-mode:multiply; }
.topbar .brand-name { color:#243e5e; letter-spacing:.02em; }
.topbar .brand-name small { color:#6b7e94; letter-spacing:0; }
@media(max-width:640px) { .topbar .brand { gap:6px; } .brand-logo-shell { width:44px; height:44px; } .topbar .brand-name { font-size:.75rem; } .topbar .brand-name small { font-size:.5rem; } }
@media(max-width:380px) { .topbar .brand-name { display:none; } }

/* Daily recommendations move continuously without navigation controls. */
.daily-auto-carousel { min-width:0; }
.daily-auto-hint { display:flex; align-items:center; gap:7px; margin:0 0 10px; color:#637c8e; font-size:.75rem; }
.daily-auto-track { position:relative; scroll-snap-type:none; scroll-behavior:auto !important; scrollbar-width:none; }
.daily-auto-track::-webkit-scrollbar { display:none; }
.daily-auto-track .carousel-slide { scroll-snap-align:none; }

/* Soft metallic silver with diagonal highlights and graphite details. */
.hero-brand-section .hero-scene .member-card { color:#293440; background:radial-gradient(ellipse at 85% 10%,#ffffffb8,transparent 50%),linear-gradient(125deg,#d1d7df 0%,#f8fafc 24%,#e1e5ea 45%,#bdc5cf 68%,#eef1f5 85%,#d4dae2 100%); border:1px solid #ffffffc9; box-shadow:inset 0 1px 0 #ffffff,0 20px 50px #33415522,0 4px 12px #3341550f; }
.hero-brand-section .member-card .mc-brand { color:#485563; letter-spacing:.12em; }
.hero-brand-section .member-card .mc-sub { color:#5e6b78; }
.hero-brand-section .member-card .mc-avatar { color:#fff; background:linear-gradient(140deg,#697786,#354352); box-shadow:0 4px 14px #33415524; }
.hero-brand-section .member-card .role-badge { color:#4d5b69; background:#ffffff85; border-color:#ffffff; }
.hero-brand-section .member-card .role-badge.mcn { color:#354352; background:#f8fafc; }
.hero-brand-section .member-card .mc-coins { background:#ffffff64; border:1px solid #ffffff94; box-shadow:inset 0 1px 0 #ffffff70; }
.hero-brand-section .member-card .mc-coins-label { color:#536170; }
.hero-brand-section .member-card .mc-coins strong { color:#354352; }
.hero-brand-section .member-card .mc-actions .btn-primary { color:#fff; background:linear-gradient(120deg,#5a6878,#344251); border-color:transparent; box-shadow:0 5px 14px #33415524; }
.hero-brand-section .member-card .mc-actions .btn-primary:hover { background:#293744; }
.hero-brand-section .member-card .mc-actions .btn-ghost { color:#42515f; background:#ffffff75; border-color:#6c7b8a30; }
.hero-brand-section .member-card .mc-today { color:#42515f; border-color:#6c7b8a30; }

/* A blue/silver starting point with a clear four-step journey. */
#pickme { scroll-margin-top:165px; }
.pickme-band { position:relative; isolation:isolate; overflow:hidden; display:grid; grid-template-columns:1.15fr 1fr; gap:36px; align-items:center; padding:36px; background:linear-gradient(125deg,#f8fbff,#eaf1fb 55%,#e2e9f3); color:#253d58; border:1px solid #dce5ef; border-radius:24px; box-shadow:0 12px 35px #344b6a0a; }
.pickme-band::before { content:""; position:absolute; z-index:-1; width:480px; height:480px; top:-180px; left:-100px; border-radius:50%; background:radial-gradient(circle,#ffffffdb,#a6c6ec40 50%,transparent 70%); animation:pickmeGlow 10s ease-in-out infinite alternate !important; pointer-events:none; }
.pickme-eyebrow { display:inline-flex; align-items:center; gap:7px; padding:5px 10px; border:1px solid #ffffffb8; background:#ffffff85; color:#52749b; border-radius:99px; font-size:.72rem; margin-bottom:14px; }
.pickme-eyebrow .ico { width:16px; height:16px; }
.pickme-band h2 { display:block; font-size:clamp(1.5rem,2.5vw,2.05rem); line-height:1.4; letter-spacing:-.03em; margin-bottom:12px; }
.pickme-band h2 span { color:#3d6ca6; }
.pickme-band .pickme-copy>p { color:#61758c; font-size:.88rem; max-width:440px; line-height:1.8; }
.pickme-band .hero-actions { gap:10px; margin-top:22px; }
.pickme-band .btn-primary { background:linear-gradient(120deg,#4678b7,#2e5488); color:#fff; box-shadow:0 6px 18px #315b9124; font-size:.86rem; min-height:46px; padding:12px 18px; }
.pickme-band .btn-primary:disabled { opacity:.6; cursor:wait; }
.pickme-band .btn-primary>span { margin-left:6px; transition:transform .2s; }
.pickme-band .btn-primary:hover>span { transform:translateX(3px); }
.pickme-band .btn-ghost { color:#4b6482; background:#ffffff78; border-color:#b9cadd66; font-size:.8rem; min-height:46px; padding:12px 15px; }
.pickme-journey { padding:22px; border:1px solid #ffffffba; border-radius:20px; background:linear-gradient(120deg,#ffffffb0,#ffffff70); box-shadow:inset 0 1px 0 #fff,0 8px 24px #344b6a08; }
.pickme-journey-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.pickme-journey-head>div>span { color:#75889e; font-size:.7rem; }
.pickme-journey-head h3 { color:#334e6e; font-size:1.1rem; margin:3px 0 0; }
.pickme-complete { display:grid; place-items:center; width:42px; height:42px; flex:none; border-radius:50%; color:#4d6b91; background:linear-gradient(140deg,#fff,#dce5f1); border:1px solid #fff; font-family:var(--font-num); font-size:.8rem; font-weight:700; }
.pickme-band .starter { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:18px; }
.pickme-band .starter li { display:flex; align-items:flex-start; gap:9px; min-width:0; padding:12px 10px; border:1px solid #dce5f07a; border-radius:12px; background:#ffffff65; color:#465f7c; text-align:left; }
.pickme-band .starter-num { display:grid; place-items:center; flex:none; width:25px; height:25px; border-radius:8px; color:#58769a; background:#e3ebf6; font-family:var(--font-num); font-size:.73rem; }
.pickme-band .starter li strong { display:block; font-size:.74rem; line-height:1.5; }
.pickme-band .starter li small { display:block; color:#7c8b9c; font-size:.6rem; line-height:1.5; margin-top:3px; }
.pickme-band .starter li.done { color:#2b6580; background:#e5f3f680; }
.pickme-band .starter li.done .starter-num { background:#d0e7ef; color:#256780; }
#pickme #pickCards { grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:20px; }
@keyframes pickmeGlow { from { transform:translate(0,0); opacity:.7; } to { transform:translate(120px,50px); opacity:1; } }
@media(max-width:900px) { .pickme-band { grid-template-columns:1fr; gap:24px; padding:28px; } .pickme-band .pickme-copy>p { max-width:none; } }
@media(max-width:640px) { #pickme { scroll-margin-top:125px; } .pickme-band { padding:22px 16px; gap:22px; border-radius:20px; } .pickme-journey { padding:16px 12px; } .pickme-band .hero-actions { flex-direction:column; } .pickme-band .hero-actions .btn { width:100%; } .pickme-band .starter { gap:8px; } .pickme-band .starter li { padding:10px 8px; gap:7px; } .pickme-band .starter li strong { font-size:.7rem; } #pickme #pickCards { grid-template-columns:minmax(0,1fr); } }

/* Crown ribbons distinguish the leading daily recommendations. */
#daily { scroll-margin-top:175px; }
.daily-recommended { position:relative; }
.daily-top-pick { border-color:#d8be87 !important; box-shadow:0 10px 26px #98732d18,0 2px 7px #3341550e,inset 0 0 0 1px #f9e9bd80 !important; }
.daily-card-ribbon { position:relative; overflow:hidden; display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:36px; padding:7px 11px; background:linear-gradient(115deg,#f7e8bf,#fff8e6 45%,#edd8a6); color:#755626; border-bottom:1px solid #d8be8738; font-size:.66rem; font-weight:700; }
.daily-card-ribbon::after { content:""; position:absolute; inset:0; background:linear-gradient(105deg,transparent 35%,#ffffff80 50%,transparent 65%); transform:translateX(-110%); animation:dailyRibbonShine 7s ease-in-out infinite !important; pointer-events:none; }
.daily-card-ribbon.rank-2 { background:linear-gradient(115deg,#e4eaf0,#fafcff 45%,#d4dce7); color:#536879; }
.daily-card-ribbon.rank-3 { background:linear-gradient(115deg,#f4dfcc,#fff5ec 45%,#e8cdb6); color:#855d3f; }
.daily-card-ribbon.rank-4 { background:linear-gradient(115deg,#edf3f9,#f8fbff); color:#627b94; }
.daily-rank-label { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.daily-crown { width:20px; height:20px; filter:drop-shadow(0 2px 2px #a27d3520); transform-origin:50% 85%; animation:dailyCrown 5s ease-in-out infinite !important; }
.daily-pick-tag { padding:2px 7px; border-radius:99px; color:#64778a; background:#ffffffa1; font-size:.6rem; white-space:nowrap; }
.daily-pick-tag.trending { color:#a85d23; background:#fff8e4; }
.daily-recommended .card-cat { top:126px; }
@keyframes dailyRibbonShine { 0%,65% { transform:translateX(-110%); } 100% { transform:translateX(110%); } }
@keyframes dailyCrown { 0%,100% { transform:rotate(-5deg); } 50% { transform:rotate(5deg) translateY(-1px); } }
@media(max-width:640px) { #daily { scroll-margin-top:120px; } .carousel-slide .daily-recommended .card-cat { top:166px; } .daily-card-ribbon { min-height:36px; } }

/* Homepage announcements share the blue/silver visual language. */
.modal-backdrop:has(+ .news-modal) { background:#20375166; backdrop-filter:blur(7px); }
.news-modal { width:min(520px,calc(100vw - 32px)); border:1px solid #ffffffda; border-radius:24px; background:radial-gradient(ellipse at 100% 0,#d8e6f8a3,transparent 50%),linear-gradient(135deg,#ffffff,#f1f5fb); box-shadow:0 25px 90px #1c355840,inset 0 1px 0 #fff; }
.news-modal:focus { outline:none; }
.news-modal .modal-body { padding:30px; gap:16px; }
.news-modal .checkin-close { width:36px; height:36px; min-width:36px; border-radius:50%; top:16px; right:16px; color:#647d9a; border-color:#c7d6e970; background:#ffffffa8; }
.news-modal .checkin-close:hover { color:#315b91; border-color:#a5bdd9; background:#fff; }
.news-symbol { display:grid; place-items:center; width:48px; height:48px; border-radius:15px; color:#446c9f; background:linear-gradient(135deg,#f9fcff,#dce7f5); border:1px solid #fff; box-shadow:0 5px 16px #315b9110; }
.news-symbol svg { width:26px; height:26px; }
.news-modal .news-tag { align-self:flex-start; margin:0; padding:5px 11px; color:#4a6b91; background:#e4edf9; border:1px solid #cfdded90; font-size:.72rem; }
.news-modal h2 { padding-right:0; margin:0; color:#263e5b; font-size:1.4rem; line-height:1.45; letter-spacing:-.02em; }
.news-modal p:not(.news-tag) { color:#61758d; font-size:.91rem; line-height:1.8; margin:0; }
.news-modal .news-actions { gap:10px; margin-top:8px; }
.news-modal .news-actions .btn { min-height:44px; font-size:.85rem; }
.news-modal .btn-primary { background:linear-gradient(120deg,#4678b7,#2e5488); border-color:transparent; color:#fff; box-shadow:0 5px 15px #315b9120; }
.news-modal .btn-primary:hover { background:#2e5488; }
.news-modal .btn-ghost { color:#546d8a; background:#ffffffa3; border-color:#c8d6e6; }
.news-modal .btn:focus-visible,.news-modal .checkin-close:focus-visible { outline:2px solid #4678b7; outline-offset:3px; }
@media(max-width:480px) { .news-modal .modal-body { padding:24px 20px; } .news-modal h2 { font-size:1.2rem; } .news-modal .news-actions { flex-direction:column; } .news-modal .news-actions .btn { width:100%; } }
/* Shared blue / silver finish. Gold remains reserved for ranks and rewards. */
.section.wrap { padding-left:20px; padding-right:20px; }
:where(main section[id]) { scroll-margin-top:175px; }
@media(max-width:640px) {
  :where(main section[id]) { scroll-margin-top:120px; }
  .mini-tabs { flex-wrap:nowrap; }
}
.refresh { background:#e7eef9; color:var(--brand-deep); }
.section-eyebrow { color:var(--ink-soft); }
.studio-lock { background:linear-gradient(125deg,#263e5b,#345780); }
.studio-lock>p { color:#c4d2e6; }
.studio-perks li { background:#ffffff12; }
.quota-line { background:#e7eef9; }
.input-wrap svg { color:#879ab3; }
.event-band { background:var(--event-accent,var(--brand)); border-top:3px solid #ffffff24; }
.footer-logo { display:block; width:80px; height:52px; object-fit:contain; padding:8px; border-radius:12px; background:#fff; }
@media(min-width:1000px) { .help-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } }
.btn-primary { background:linear-gradient(120deg,#4678b7,#2e5488); box-shadow:0 4px 12px #315b9118; }
.btn-primary:hover { background:linear-gradient(120deg,#3d6ba8,#264873); }
.btn:disabled { box-shadow:none; }
.product-card-modern .btn-primary { background:var(--card-accent); box-shadow:0 3px 10px #263e5b14; }
.product-card-modern .btn-primary:hover { background:var(--card-accent); filter:brightness(.9); }
.btn,.chip,.mini-tab,.nav a,.ms-tab { transition:background .2s,border-color .2s,color .2s,box-shadow .2s,transform .2s; }
:where(button,a,input,select,textarea):focus-visible { outline:3px solid #85a9d7; outline-offset:3px; }
.search:focus,.field input:focus,.field select:focus,.field textarea:focus { border-color:var(--brand); box-shadow:0 0 0 3px #3d6ba81c; }
input[type="checkbox"],input[type="radio"],.image-price-toggle input { accent-color:var(--brand); }
.topbar:not(.topbar-home) { background:#f8faffed; backdrop-filter:blur(14px); border-bottom-color:#dce4ef80; }
.topbar:not(.topbar-home) .navband { background:#eef3fa80; border-top-color:#dce4ef60; }
.nav a.on,.mini-tab.on,.chips-row .chip.on { background:var(--brand-deep); border-color:var(--brand-deep); color:#fff; }
.steps li.done,.chip.on,.pick-card.on,.ms-tab.on,.badge-comm,.tl-dot { background:#e7eef9; }
.steps li.active { background:linear-gradient(120deg,#4678b7,#2e5488); }
.chip.on { border-color:#8ca9d0; }
.quiz,.help-card,.insight-card,.event-card,.clip-card { border-color:var(--line); box-shadow:0 5px 20px #263e5b08; }
.role-badge,.image-free-badge { background:#e7eef9; color:#2e5488; }
.image-studio-intro { color:var(--brand-deep); }
.image-studio,.studio,.lock-panel,.guide-band { background:linear-gradient(125deg,#f8faff,#eef2f8); border-color:#d5dfed; }
.guide-band { border-width:1px; }
.mini-badge { background:#e7eef9; color:#2e5488; }
.mini-tab.on .mini-badge { background:#ffffffdf; }
.daily-band { background:radial-gradient(ellipse at 95% 0,#dce7f680,transparent 50%),linear-gradient(120deg,#f5f7fb,#edf2f9); border-color:#e1e7f180; }
.daily-band .refresh { border-color:var(--line); }
.daily-inspiration { background:linear-gradient(145deg,#263e5b,#3d6190); box-shadow:0 14px 32px #263e5b1a; }
.inspiration-top>span,.inspiration-copy>span { color:#bdd0ec; }
.inspiration-copy p { color:#dde6f3; }
.inspiration-bottom>a { color:#e1ecff; }
.inspiration-dots button[aria-pressed="true"]::before { background:#c4d7f2; }
.commission-section-heading { background:linear-gradient(120deg,#eaf0fa,#f4f6fa); border-color:#d7e1ef; }
.commission-section-heading h3,.commission-section-mark { color:var(--brand-deep); }
.commission-section-heading p { color:var(--ink-soft); }
.commission-section-mark { background:linear-gradient(135deg,#fff,#e0e7f1); }
.cta-band { background:radial-gradient(ellipse at 95% 10%,#d9e5f780,transparent 60%),linear-gradient(120deg,#f7f9fc,#edf2f9); border-color:#dce4ef; box-shadow:0 10px 32px #263e5b08; }
.cta-band .hero-actions { margin-bottom:0; }
.how,.profile-hero,.quest-head { background:linear-gradient(125deg,#263e5b,#345780); color:#eef3fc; }
.how .section-head p,.how-item p,.profile-hero-sub,.profile-stats span,.quest-streak { color:#c4d2e6; }
.profile-stats div,.profile-hero .quota-line,.level-bar { background:#ffffff12; }
.profile-hero .quota-line,.level-line { color:#d6e4f7; }
.profile-hero .btn-ghost { border-color:#a0b9d35c; color:#eef3fc; }
.quest-earned,.quest-day.done,.qmile.done,.ms-row.done { background:#e7eef9; border-color:#a9bfdd; }
.footer { background:linear-gradient(125deg,#243951,#1c2e46); color:#eef3fc; }
.footer-brand p,.footer-col a,.footer-col p { color:#c2cfe1; }
.footer-col .muted { color:#9eafc6; }
.footer-bottom { border-color:#ffffff16; color:#aebed3; }
.footer-brand .brand-mark { background:#ffffff14; color:#eef3fc; border:1px solid #ffffff24; }
/* Brief entrance and response motion; no extra waiting or forced looping on other pages. */
@keyframes themePageEnter { from { opacity:.65; transform:translateY(8px); } to { opacity:1; transform:none; } }
@keyframes themePanelEnter { from { opacity:.5; transform:translateY(6px); } to { opacity:1; transform:none; } }
@media(prefers-reduced-motion:no-preference) {
  main:not(.home-motion) { animation:themePageEnter .45s ease-out both; }
  .quiz-panel.active,.image-studio,.studio { animation:themePanelEnter .3s ease-out both; }
}
@media(hover:hover) and (pointer:fine) {
  .help-card,.event-card,.clip-card { transition:transform .25s,box-shadow .25s,border-color .25s; }
  .help-card:hover,.event-card:hover,.clip-card:hover { transform:translateY(-3px); border-color:#a9bedb; box-shadow:0 12px 28px #263e5b12; }
  .mini-tab:not(.on):hover,.chip:not(.on):hover { background:#f2f5fb; border-color:#9db5d5; }
}
/* Colourful categories and distinct creator tools on the blue/silver base. */
.product-card-modern.tone-beauty { --card-accent:#7947a7; --card-tint:#f4eafa; --card-soft:#dfc7ef; }
.product-card-modern.tone-fashion { --card-accent:#a94170; --card-tint:#fbeaf1; --card-soft:#efc8d8; }
.product-card-modern.tone-food { --card-accent:#ad4d20; --card-tint:#fff0e2; --card-soft:#f1d0af; }
.product-card-modern.tone-gadget { --card-accent:#2868a5; --card-tint:#e9f3ff; --card-soft:#c2d9f1; }
.product-card-modern.tone-fitness { --card-accent:#37724c; --card-tint:#edf6e7; --card-soft:#c9dfbe; }
.product-card-modern.tone-home { --card-accent:#147b72; --card-tint:#e8f6f1; --card-soft:#bfe1d8; }
.product-card-modern.tone-lifestyle { --card-accent:#80612d; --card-tint:#fbf4e6; --card-soft:#eadbb9; }
.product-card-modern .btn-aff { color:var(--card-accent); border-color:var(--card-soft); background:var(--card-tint); }
.pickme-band .btn-primary { background:linear-gradient(120deg,#cf5939,#b3452d); box-shadow:0 6px 18px #c2523924; }
.pickme-band .btn-primary:hover { background:linear-gradient(120deg,#bb4d30,#a53d27); }
.pickme-band .btn-ghost { color:#754c9c; border-color:#dcc7ed; background:#faf4ff; }
#clips .mini-tab { --tool-accent:#34759b; --tool-tint:#edf6fc; --tool-border:#c7ddeb; color:var(--tool-accent); border-color:var(--tool-border); background:var(--tool-tint); }
#clips .mini-tab:nth-child(2) { --tool-accent:#7947a7; --tool-tint:#f4eafa; --tool-border:#dfc7ef; }
#clips .mini-tab:nth-child(3) { --tool-accent:#147b72; --tool-tint:#e8f6f1; --tool-border:#bfe1d8; }
#clips .mini-tab.on { background:var(--tool-accent); border-color:var(--tool-accent); color:#fff; }
#clips .mini-tab:not(.on):hover { background:var(--tool-tint); border-color:var(--tool-accent); }
#clips .mini-tab .mini-badge { background:#ffffffd9; color:var(--tool-accent); }
.image-studio-controls>.btn-primary { background:linear-gradient(120deg,#147b72,#11635c); }
.image-free-badge { background:#e8f6f1; color:#147b72; }
.studio-controls .btn-primary { background:linear-gradient(120deg,#7947a7,#623586); }
.help-card:nth-child(4n+1) .how-num { color:#7947a7; }
.help-card:nth-child(4n+2) .how-num { color:#a94170; }
.help-card:nth-child(4n+3) .how-num { color:#147b72; }
.help-card:nth-child(4n) .how-num { color:#ad4d20; }

/* Authentication: compact creator card and restrained motion. */
.auth-modern.modal { width:min(460px,calc(100vw - 28px)); border-radius:28px; border:1px solid #ffffffc9; background:#f8faff; box-shadow:0 30px 100px #142f5b40; animation:auth-card-enter .45s cubic-bezier(.16,1,.3,1) both; scrollbar-width:thin; scrollbar-color:#c5d2e5 transparent; overscroll-behavior:contain; }
.auth-modern.modal .drawer-head { background:#fff; padding:23px 24px; border-bottom:1px solid #e8edf5; border-radius:28px 28px 0 0; }
.auth-modern.modal .drawer-head h2 { color:#172d4d; font-size:21px; letter-spacing:-.6px; }
.auth-modern .modal-sub { color:#73829a; font-size:12px; margin-top:4px; }
.auth-modern .auth-eyebrow { display:block; font:700 9px/1.4 Arial,sans-serif; letter-spacing:2px; color:#6c87b5; margin-bottom:5px; }
.auth-modern .auth-brand-logo { position:relative; display:grid; place-items:center; width:70px; height:58px; flex-shrink:0; border:1px solid #e6edf8; border-radius:17px; background:#f8fbff; }
.auth-modern .auth-brand-logo img { width:62px; height:46px; object-fit:contain; }
.auth-modern .auth-brand-dot { position:absolute; right:-3px; bottom:2px; width:11px; height:11px; border:3px solid white; border-radius:50%; background:#39c6a4; }
.auth-modern.modal .icon-btn { background:#f0f4fa; border:0; border-radius:50%; width:32px; height:32px; flex-shrink:0; transition:transform .2s,background .2s; }
.auth-modern.modal .icon-btn:hover { transform:rotate(90deg); background:#e3ebf8; }
.auth-modern .modal-body { padding:22px 24px 24px; }
.auth-modern #authForm { gap:12px; }
.auth-modern .auth-welcome { position:relative; overflow:hidden; padding:20px; border-radius:21px; background:linear-gradient(120deg,#e7efff,#edf6ff 65%,#e4f6f4); min-height:164px; margin-bottom:7px; }
.auth-modern .auth-welcome-tag { font:700 9px Arial,sans-serif; letter-spacing:2px; color:#5476aa; }
.auth-modern .auth-welcome h3 { position:relative; z-index:1; font-size:25px; line-height:1.3; letter-spacing:-.7px; color:#193754; margin:10px 0 7px; }
.auth-modern .auth-welcome h3 span { color:#4279bf; }
.auth-modern .auth-welcome p { position:relative; z-index:1; margin:0; color:#647c95; font-size:11px; }
.auth-modern .auth-orbit { position:absolute; right:16px; top:25px; width:112px; height:112px; border:1px solid #ffffffc9; border-radius:50%; animation:auth-float 6s ease-in-out infinite; }
.auth-modern .auth-orbit i { position:absolute; inset:13px; border:1px dashed #9dbbdd80; border-radius:50%; animation:auth-orbit-turn 25s linear infinite; }
.auth-modern .auth-orbit b { position:absolute; inset:27px; display:grid; place-items:center; border-radius:19px; background:#ffffffa8; color:#3d74b1; font:800 32px Arial,sans-serif; box-shadow:0 10px 25px #6092cc20; transform:rotate(-12deg); }
.auth-modern .auth-orbit span { position:absolute; right:0; top:0; font-size:27px; color:#ecb449; }
.auth-modern .auth-toggle { margin-top:8px; }
.auth-modern .auth-toggle .link-btn { font-size:12px; color:#486a97; }
@keyframes auth-card-enter { from { opacity:0; transform:translate(-50%,calc(-50% + 22px)) scale(.97); } to { opacity:1; transform:translate(-50%,-50%) scale(1); } }
@keyframes auth-float { 0%,100% { transform:translateY(0) rotate(-5deg); } 50% { transform:translateY(-7px) rotate(5deg); } }
@keyframes auth-orbit-turn { to { transform:rotate(360deg); } }
@media(max-width:400px) { .auth-modern.modal .drawer-head { padding:19px 16px; } .auth-modern .modal-body { padding:18px 16px; } .auth-modern .auth-welcome h3 { font-size:23px; } .auth-modern .auth-orbit { right:4px; opacity:.65; } }
@media(prefers-reduced-motion:reduce) { .auth-modern.modal,.auth-modern .auth-orbit,.auth-modern .auth-orbit i { animation:none; } .auth-modern.modal .icon-btn { transition:none; } }

/* High-density displays: keep page content and brand artwork crisp. */
.modal-backdrop,
.modal-backdrop:has(+ .news-modal) {
  background:rgba(20,35,57,.32);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.route-loader {
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  background:rgba(246,250,255,.94);
}
.loader-logo-shell img {
  animation:none !important;
  opacity:1;
  filter:none;
}
@keyframes loaderLogo {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(-5px); }
}
.brand-logo,.footer-logo,.auth-brand-logo img,.loader-logo-shell img,
.route-spinner-core img,.profile-avatar,.profile-hero-avatar,
.card-media img,.creator-character {
  image-rendering:auto;
}
@media(min-width:2560px) {
  .auth-modern.modal { width:480px; }
}

/* Mobile audit: align the auth bottom sheet and keep controls reachable. */
@media (max-width:640px) {
  .auth-modern.modal {
    width:100%; left:0; right:0; top:auto; bottom:0; transform:none;
    max-height:calc(100dvh - 16px); border-radius:24px 24px 0 0;
    animation:auth-sheet-enter .3s ease-out both;
    padding-bottom:env(safe-area-inset-bottom);
  }
  .auth-modern.modal .drawer-head {
    position:sticky; top:0; z-index:2; border-radius:24px 24px 0 0;
  }
  .auth-modern .field input,.auth-modern .field select { font-size:16px; }
  .auth-modern.modal .icon-btn { width:44px; height:44px; }
  .auth-modern .auth-welcome { min-height:148px; }
  .auth-modern .auth-orbit { opacity:.45; }
  .modal { max-height:calc(100dvh - 16px); }
  .drawer { height:100dvh; padding-bottom:env(safe-area-inset-bottom); }
}
@keyframes auth-sheet-enter { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion:reduce) { .auth-modern.modal { animation:none; } }

/* Mobile product previews: keep the essentials; open the product for details. */
.card-label-short { display:none; }
@media (max-width:640px) {
  .product-card-modern .card-label-full { display:none; }
  .product-card-modern .card-label-short { display:inline; white-space:nowrap; }
  .product-card-modern .card-media,
  .carousel-slide .product-card-modern .card-media { height:104px; }
  .product-card-modern .card-body,
  .carousel-slide .product-card-modern .card-body { padding:9px; gap:6px; }
  .product-card-modern .card-cat,
  .product-card-modern .card-blurb,
  .product-card-modern .card-meta,
  .product-card-modern .reasons,
  .product-card-modern .card-view,
  .product-card-modern .price-label { display:none; }
  .product-card-modern .card-name,
  .product-grid .product-card-modern .card-name,
  .carousel-slide .product-card-modern .card-name {
    font-size:.8rem; line-height:1.4; min-height:2.8em; margin:0;
  }
  .product-card-modern .commission-panel { padding:5px 7px; gap:4px; }
  .product-card-modern .commission-label,
  .product-card-modern .commission-income>span { font-size:.6rem; line-height:1.3; }
  .product-card-modern .commission-rate strong,
  .carousel-slide .product-card-modern .commission-rate strong { font-size:1rem; }
  .product-card-modern .commission-income strong,
  .carousel-slide .product-card-modern .commission-income strong { font-size:.95rem; }
  .product-card-modern .card-foot { margin-top:0; padding-top:0; }
  .product-card-modern .card-actions { margin-top:0; }
  .product-card-modern .btn-pin { min-height:44px; height:44px; }
  .product-card-modern .daily-card-ribbon { padding:5px 8px; }
}

/* New arrivals: warm flame accents and star details, without taller cards. */
.new-arrivals-heading { position:relative; display:flex; align-items:center; gap:16px; margin:32px 0 18px; padding:20px 24px; overflow:hidden; border:1px solid #ffd3b6; border-radius:22px; background:linear-gradient(110deg,#fff0df,#fff9f0 65%,#fff0e9); }
.new-arrivals-flame { display:grid; place-items:center; flex-shrink:0; width:60px; height:66px; border-radius:19px; background:linear-gradient(145deg,#ff7e39,#ed4628); color:#fff; box-shadow:0 7px 18px #ed672535; transform:rotate(-6deg); }
.new-arrivals-flame svg { width:35px; height:42px; }
.new-arrivals-kicker { display:block; color:#ba4c1c; font-size:10px; font-weight:800; letter-spacing:2px; }
.new-arrivals-heading h3 { margin:4px 0; font-size:24px; line-height:1.3; color:#4c291c; }
.new-arrivals-heading h3>span { color:#df5425; margin-left:6px; }
.new-arrivals-heading p { margin:0; font-size:13px; color:#956b56; }
.new-arrivals-stars { margin-left:auto; padding-right:8px; color:#efaa37; font-size:42px; line-height:1; transform:rotate(12deg); }
.new-arrivals-stars i { display:block; margin-left:26px; font-size:23px; font-style:normal; }
.product-card-modern .badge-new { display:inline-flex; align-items:center; gap:3px; background:linear-gradient(120deg,#ff7939,#e84725); color:#fff; border:1px solid #ffffffb3; box-shadow:0 3px 9px #c84b2330; font-weight:800; white-space:nowrap; }
.product-card-modern .badge-new svg { width:11px; height:14px; flex-shrink:0; }
.new-arrivals-grid .product-card-modern { border-color:#f6c7a4; box-shadow:0 5px 18px #b8622010; }
.new-arrivals-grid .product-card-modern .card-media { background:linear-gradient(135deg,#fff1df,#fff9ef) !important; }
@media(max-width:640px) {
  .new-arrivals-heading { gap:12px; padding:16px 14px; margin:24px 0 14px; border-radius:18px; }
  .new-arrivals-flame { width:44px; height:50px; border-radius:14px; }
  .new-arrivals-flame svg { width:27px; height:33px; }
  .new-arrivals-heading h3 { font-size:18px; }
  .new-arrivals-heading p { font-size:11px; }
  .new-arrivals-kicker { font-size:8px; letter-spacing:1.5px; }
  .new-arrivals-stars { position:absolute; right:3px; top:8px; font-size:20px; opacity:.55; }
  .new-arrivals-stars i { font-size:13px; margin-left:10px; }
  .product-card-modern .badge-new { font-size:9px; padding:3px 5px; }
}

/* New-arrival motion stays subtle and never changes card layout. */
.new-arrivals-flame { animation:arrival-flame-float 3.6s ease-in-out infinite; }
.new-arrivals-flame svg { transform-origin:50% 90%; animation:arrival-flame-dance 2.2s ease-in-out infinite; }
.new-arrivals-stars { animation:arrival-star-glow 3.2s ease-in-out infinite; }
.new-arrivals-stars i { animation:arrival-star-glow 2.6s .8s ease-in-out infinite; }
.new-arrivals-kicker>span { display:inline-block; animation:arrival-star-glow 2.8s .4s ease-in-out infinite; }
.product-card-modern .badge-new { position:relative; overflow:hidden; isolation:isolate; }
.product-card-modern .badge-new::after { content:""; position:absolute; inset:-20% auto -20% -65%; width:40%; background:linear-gradient(90deg,transparent,#ffffff80,transparent); transform:skewX(-20deg); pointer-events:none; animation:arrival-badge-shine 5s ease-in-out infinite; }
.new-arrivals-grid .product-card-modern:nth-child(2n) .badge-new::after { animation-delay:.7s; }
.new-arrivals-grid .product-card-modern:nth-child(3n) .badge-new::after { animation-delay:1.4s; }
@keyframes arrival-flame-float {
  0%,100% { transform:translateY(0) rotate(-6deg); }
  50% { transform:translateY(-4px) rotate(-2deg); }
}
@keyframes arrival-flame-dance {
  0%,100% { transform:scale(1) rotate(-2deg); }
  50% { transform:scale(.95,1.06) rotate(3deg); }
}
@keyframes arrival-star-glow {
  0%,100% { opacity:.65; transform:scale(.9) rotate(8deg); }
  50% { opacity:1; transform:scale(1.08) rotate(-5deg); }
}
@keyframes arrival-badge-shine {
  0%,65% { left:-65%; }
  90%,100% { left:140%; }
}
@media(prefers-reduced-motion:reduce) {
  .new-arrivals-flame,.new-arrivals-flame svg,.new-arrivals-stars,
  .new-arrivals-stars i,.new-arrivals-kicker>span,
  .product-card-modern .badge-new::after { animation:none; }
  .product-card-modern .badge-new::after { display:none; }
}
.arrival-motion-toggle { display:none; }
@media(prefers-reduced-motion:reduce) {
  .arrival-motion-toggle { display:inline-flex; align-items:center; min-height:36px; margin-top:6px; padding:4px 12px; border:1px solid #eebd99; border-radius:20px; background:#fff8ef; color:#a33e18; font:inherit; font-size:11px; cursor:pointer; }
  .arrival-motion-on .new-arrivals-flame { animation:arrival-flame-float 3.6s ease-in-out infinite !important; }
  .arrival-motion-on .new-arrivals-flame svg { animation:arrival-flame-dance 2.2s ease-in-out infinite !important; }
  .arrival-motion-on .new-arrivals-stars,.arrival-motion-on .new-arrivals-stars i { animation:arrival-star-glow 3.2s ease-in-out infinite !important; }
  .arrival-motion-on .new-arrivals-grid .badge-new::after { display:block; animation:arrival-badge-shine 5s ease-in-out infinite !important; }
}

/* Decoration is confined to the unused desktop gutters. */
.side-atmosphere { display:none; }
@media(min-width:1650px) {
  .side-atmosphere { display:block; position:fixed; inset:0; z-index:2; pointer-events:none; overflow:hidden; }
  .ambient-rail { position:absolute; top:18%; bottom:12%; width:calc((100vw - 1400px)/2 - 28px); max-width:300px; color:#799fc9; }
  .ambient-left { left:14px; }
  .ambient-right { right:14px; color:#7caeaa; }
  .ambient-ring { position:absolute; top:19%; left:10%; width:80%; aspect-ratio:1; border:1px solid #88aace40; border-radius:50%; box-shadow:0 0 0 22px #9fbddd0a,0 0 0 45px #9fbddd09; }
  .ambient-ring::after { content:""; position:absolute; width:9px; height:9px; top:12%; left:12%; background:#b5cbe5; border:3px solid #fff; border-radius:50%; }
  .ambient-tile { position:absolute; display:grid; place-items:center; width:68px; height:76px; border:1px solid #ffffffed; border-radius:23px; background:linear-gradient(145deg,#ffffffed,#e4edfaad); box-shadow:0 12px 32px #396c9b12,inset 0 0 0 1px #b9cde830; }
  .ambient-tile svg { width:40px; height:40px; }
  .tile-one { top:21%; left:20%; transform:rotate(-12deg); }
  .tile-two { top:63%; right:18%; width:54px; height:58px; font-size:28px; color:#bd9b5c; background:linear-gradient(145deg,#fffaf0,#f7ead7b0); transform:rotate(12deg); }
  .ambient-right .tile-one { top:32%; left:auto; right:17%; color:#6a9f9a; background:linear-gradient(145deg,#fff,#e3f2ed); transform:rotate(10deg); }
  .ambient-right .tile-two { top:73%; right:auto; left:15%; color:#8d8abd; background:linear-gradient(145deg,#fff,#e9e5f7); }
  .ambient-star { position:absolute; font-size:28px; color:#9ebbd6; }
  .star-one { top:8%; right:24%; }
  .star-two { top:51%; left:20%; font-size:40px; color:#c8b788; }
  .ambient-right .star-one { top:10%; right:50%; }
  .ambient-right .star-two { top:60%; left:62%; }
  .ambient-dot { position:absolute; width:5px; height:5px; border-radius:50%; background:#b5c9df; }
  .dot-one { top:49%; right:18%; }
  .dot-two { top:85%; left:25%; }
  .ambient-caption { position:absolute; bottom:0; left:0; width:100%; text-align:center; font:700 9px/1.5 Arial,sans-serif; letter-spacing:3px; color:#839eb8; opacity:.65; }
  .is-moving .tile-one { animation:ambient-drift 7s ease-in-out infinite !important; }
  .is-moving .tile-two { animation:ambient-drift 9s -3s ease-in-out infinite reverse !important; }
  .is-moving .ambient-right .tile-one { animation-delay:-3s !important; }
  .is-moving .ambient-star { animation:ambient-twinkle 5s ease-in-out infinite !important; }
  .is-moving .star-two { animation-delay:-2s !important; }
  .is-moving .ambient-ring { animation:ambient-orbit 45s linear infinite !important; }
  .is-moving .ambient-right .ambient-ring { animation-direction:reverse !important; }
}
@keyframes ambient-drift { 0%,100% { translate:0 0; rotate:-4deg; } 50% { translate:0 -16px; rotate:4deg; } }
@keyframes ambient-twinkle { 0%,100% { opacity:.45; scale:.9; } 50% { opacity:.9; scale:1.12; } }
@keyframes ambient-orbit { to { transform:rotate(360deg); } }

.header-basket-icon { display:none; }
@media(max-width:640px) {
  .top-actions #openBasketTop { display:inline-flex; align-items:center; justify-content:center; gap:7px; height:44px; min-height:44px; padding:0 12px; margin:0; border:1px solid #d6e1ef; border-radius:14px; background:#fff; color:#294462; box-shadow:0 2px 7px #2944620a; line-height:1; flex-shrink:0; }
  #openBasketTop .header-basket-icon { display:block; width:20px; height:20px; flex:none; }
  #openBasketTop .header-basket-label { display:inline-flex; align-items:center; font-size:12px; line-height:1.2; }
  #openBasketTop .header-basket-count { display:inline-flex; align-items:center; justify-content:center; position:static; min-width:22px; height:22px; padding:0 5px; margin:0; border-radius:7px; background:#eaf1fb; color:#294462; font-size:11px; font-weight:800; line-height:1; font-variant-numeric:tabular-nums; }
  .topbar-inner .top-actions { flex-wrap:nowrap; }
}
@media(max-width:360px) {
  #openBasketTop .header-basket-label { display:none; }
  .top-actions #openBasketTop { gap:6px; padding:0 10px; }
}

/* Keep the mobile cart beside the marketplace switch. */
.mobile-platform-basket { display:none; }
@media(max-width:640px) {
  .top-actions #openBasketTop { display:none; }
  .platform-bar-inner { display:flex; align-items:center; gap:8px; }
  .platform-bar-label { display:none; }
  .platform-bar-inner .platform-switch { flex:1; min-width:0; }
  .mobile-platform-basket { display:inline-flex; align-items:center; justify-content:center; flex:none; gap:5px; width:62px; height:44px; padding:0 7px; border:1px solid #d6e1ef; border-radius:14px; background:#fff; color:#294462; cursor:pointer; }
  .mobile-platform-basket svg { width:21px; height:21px; flex:none; }
  .mobile-platform-basket span { display:grid; place-items:center; min-width:19px; height:20px; padding:0 3px; border-radius:6px; background:#eaf1fb; font-size:10px; font-weight:800; line-height:1; font-variant-numeric:tabular-nums; }
}

/* ---------- ระบบวิเคราะห์ช่อง & จับคู่สินค้าอัจฉริยะ (Channel Intelligence & Blueprint) ---------- */
.algo-kicker {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--brand);
  background: #eaf2fc;
  border: 1px solid #cde0f7;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.algo-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.channel-source-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.source-pill {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
}
.source-pill strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--ink);
}
.source-pill small {
  display: block;
  font-size: 0.79rem;
  color: var(--ink-soft);
  margin-top: 2px;
  line-height: 1.45;
}
.source-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  margin-top: 5px;
  flex: none;
}
.source-dot.on {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}
.source-dot.sim {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.channel-sim-panel {
  border: 1px solid #c9dcf2;
  border-radius: 18px;
  background: linear-gradient(145deg, #f5f9ff, #ffffff);
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: 0 10px 26px rgba(38, 62, 91, 0.07);
}
.channel-sim-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.channel-sim-top h3 {
  font-size: 1.05rem;
  margin: 0 0 4px;
}
.channel-sim-top p {
  font-size: 0.85rem;
  margin: 0;
}
.preset-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.preset-chip {
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
}
.sim-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sim-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sim-field-wide {
  grid-column: 1 / -1;
}
.sim-field span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}
.sim-field input {
  font-family: var(--font-th);
  font-size: 0.92rem;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.sim-field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(61, 107, 168, 0.14);
}
.sim-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.goal-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.goal-selector > span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.chip-sm {
  font-size: 0.84rem;
  padding: 7px 13px;
  border-radius: 999px;
}

/* รายงานวิเคราะห์ข้อมูลช่อง (Channel Intelligence Card) */
.channel-intel-card {
  border: 1px solid #c8dbf2;
  border-radius: 22px;
  background: linear-gradient(165deg, #1d324c 0%, #274466 100%);
  color: #f4f8fd;
  padding: 26px 28px;
  margin-bottom: 30px;
  box-shadow: 0 18px 42px rgba(26, 46, 71, 0.18);
}
.channel-intel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.channel-intel-head h2 {
  font-size: 1.5rem;
  color: #fff;
  margin: 8px 0 4px;
}
.channel-intel-head .muted {
  color: #bfd2ea;
  margin: 0;
}
.channel-intel-head .muted b {
  color: #ffd166;
}
.intel-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  margin-right: 8px;
}
.intel-badge.engagement-high {
  background: #16a34a;
  color: #fff;
}
.intel-badge.engagement-good {
  background: #2563eb;
  color: #fff;
}
.intel-stat-boxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(96px, 1fr));
  gap: 10px;
}
.intel-stat-boxes > div {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
}
.intel-stat-boxes small {
  display: block;
  font-size: 0.73rem;
  color: #bfd2ea;
}
.intel-stat-boxes strong {
  font-family: var(--font-num);
  font-size: 1.15rem;
  color: #ffd166;
}
.intel-body-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  margin-top: 22px;
}
.suitability-pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pillar-box {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  padding: 14px 16px;
}
.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 209, 102, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex: none;
}
.pillar-box span {
  display: block;
  font-family: var(--font-num);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #ffd166;
}
.pillar-box h4 {
  margin: 2px 0 4px;
  font-size: 1rem;
  color: #fff;
}
.pillar-box p {
  margin: 0;
  font-size: 0.88rem;
  color: #dbe7f6;
  line-height: 1.55;
}
.pillar-tip {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #fde68a;
}

.intel-radar-panel {
  background: rgba(15, 28, 46, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.intel-radar-panel h3 {
  font-size: 1.02rem;
  color: #fff;
  margin: 0 0 14px;
}
.dimension-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.dimension-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  margin-bottom: 4px;
  color: #dbe7f6;
}
.dimension-label strong {
  font-family: var(--font-num);
  color: #ffd166;
}
.dimension-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
}
.dimension-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #ffd166);
  border-radius: 999px;
}
.intel-cross-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  font-size: 0.83rem;
  color: #bfd2ea;
}
.intel-cross-note strong {
  color: #fff;
}

/* บลูพรินต์เจาะลึกรายสินค้า (Interactive Match Blueprint) */
.blueprint-section {
  margin: 24px 0 36px;
}
.blueprint-selector {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.blueprint-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-th);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.blueprint-tab:hover {
  border-color: var(--brand);
}
.blueprint-tab.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.bp-rank {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--brand);
}
.blueprint-tab.on .bp-rank {
  color: var(--gold);
}
.bp-score {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 0.78rem;
  background: var(--wash);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 999px;
}
.blueprint-tab.on .bp-score {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.blueprint-card {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow);
}
.blueprint-media-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blueprint-thumb {
  position: relative;
  height: 190px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blueprint-thumb img {
  width: 128px;
  height: 128px;
  object-fit: contain;
}
.bp-match-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-num);
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--ink);
  color: #fff;
  padding: 4px 11px;
  border-radius: 999px;
}
.blueprint-earning-box {
  background: #f5f9ff;
  border: 1px solid #d5e4f7;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blueprint-earning-box small {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-soft);
}
.blueprint-earning-box strong {
  font-family: var(--font-num);
  font-size: 1.15rem;
  color: var(--ink);
}
.blueprint-earning-box strong.gold-text {
  color: var(--brand-deep);
}

.blueprint-detail-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.blueprint-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.blueprint-title-row h3 {
  margin: 4px 0 0;
  font-size: 1.3rem;
}
.bp-fit-bars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bp-fit-chip {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bp-fit-chip b {
  font-family: var(--font-num);
  color: var(--brand);
}
.bp-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.bp-guide-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  background: #fcfdff;
}
.bp-guide-item strong {
  display: block;
  font-size: 0.83rem;
  color: var(--brand-deep);
  margin-bottom: 3px;
}
.bp-guide-item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.5;
}
.bp-hook-box {
  background: linear-gradient(135deg, #f3f8ff, #fff9eb);
  border: 1px solid #d7e4f5;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.bp-hook-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--brand-deep);
  margin-bottom: 4px;
}
.bp-hook-box p {
  margin: 0;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ink);
}
.bp-hook-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .channel-source-strip,
  .sim-grid,
  .intel-body-grid,
  .blueprint-card,
  .bp-guide-grid {
    grid-template-columns: 1fr;
  }
  .intel-stat-boxes {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
}

/* ---------- TikTok Creator Profile Studio (user.wdmediamcn.com/profile/) ---------- */
.profile-guest-shell {
  padding: 8px 0 24px;
}
.profile-guest-hero {
  padding: 36px 32px;
  border-radius: 26px;
  background: linear-gradient(135deg, #1b2e47 0%, #27476e 55%, #1d3554 100%);
  color: #f8fafc;
  box-shadow: 0 20px 50px rgba(20, 38, 64, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.profile-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #f2b134;
  background: rgba(242, 177, 52, 0.14);
  border: 1px solid rgba(242, 177, 52, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.profile-guest-hero h1 {
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.35;
  margin: 0 0 12px;
  max-width: 780px;
}
.profile-guest-hero h1 span {
  color: #7dd3fc;
}
.profile-guest-hero p {
  color: #cbd5e1;
  max-width: 680px;
  font-size: 0.98rem;
  line-height: 1.75;
  margin: 0 0 22px;
}
.profile-guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.btn-tiktok-connect {
  background: #0f172a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
.btn-tiktok-connect:hover {
  background: #000;
}
.profile-guest-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.profile-guest-highlights > div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-guest-highlights strong {
  color: #fff;
  font-size: 0.95rem;
}
.profile-guest-highlights span {
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.55;
}

.creator-profile-studio {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.creator-hero-upgraded {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  background: linear-gradient(130deg, #1b2f49 0%, #28496e 55%, #1e3756 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(24, 43, 73, 0.18);
  margin-bottom: 0;
}
.creator-hero-left {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  min-width: 0;
}
.creator-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.creator-avatar-img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 3px solid #f2b134;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  object-fit: cover;
  background: #fff;
}
.creator-status-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.creator-status-pill.connected {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.35);
}
.creator-status-pill.unlinked {
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}
.creator-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.creator-title-row h1 {
  margin: 0;
  font-size: 1.65rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.verified-tick {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #38bdf8;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}
.tier-pill-gold {
  font-size: 0.75rem;
  font-weight: 800;
  background: linear-gradient(120deg, #f7d070, #f2b134);
  color: #1e293b;
  padding: 4px 11px;
  border-radius: 999px;
}
.creator-handle-line {
  margin: 0 0 10px;
  color: #cbd5e1;
  font-size: 0.88rem;
}
.creator-handle-line strong {
  color: #7dd3fc;
}
.creator-bio-quote {
  background: rgba(15, 23, 42, 0.35);
  border-left: 3px solid #f2b134;
  border-radius: 8px 12px 12px 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.bio-quote-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}
.creator-bio-quote p {
  margin: 0;
  color: #f8fafc;
  font-size: 0.92rem;
  line-height: 1.55;
}
.creator-scope-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.scope-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 4px 10px;
  border-radius: 999px;
}
.dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
}
.creator-hero-actions {
  justify-content: flex-start;
  margin-top: 4px;
}
.creator-hero-right {
  display: flex;
  flex-direction: column;
}
.creator-wallet-box {
  flex: 1;
  background: rgba(15, 23, 42, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.wallet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.wallet-xp {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 600;
}
.wallet-level-bar {
  max-width: none;
  width: 100%;
  height: 8px;
}
.wallet-stats-grid {
  max-width: none;
  margin: 0;
}
.wallet-quota-note {
  margin: 0;
  font-size: 0.78rem;
  text-align: center;
}

.studio-block {
  background: #ffffff;
  border: 1px solid #dce5f1;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 8px 26px rgba(38, 62, 91, 0.05);
}
.suitability-blueprint {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}
.studio-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.studio-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #3d6ba8;
  margin-bottom: 4px;
}
.studio-block-head .sub-head {
  margin: 0 0 4px;
  font-size: 1.35rem;
  color: #1e3550;
}
.studio-block-head .sub-note {
  margin: 0;
}
.overall-health-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(125deg, #f0f6ff, #e6effc);
  border: 1px solid #c8daf2;
  border-radius: 16px;
  padding: 10px 16px;
}
.overall-health-pill small {
  display: block;
  font-size: 0.7rem;
  color: #55708f;
  font-weight: 600;
}
.overall-health-pill strong {
  font-size: 1.35rem;
  color: #1e3a5f;
  font-family: var(--font-num);
}
.health-grade {
  font-size: 0.75rem;
  font-weight: 800;
  color: #155e75;
  background: #e0f2fe;
  padding: 5px 10px;
  border-radius: 999px;
}

.tiktok-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.tiktok-kpi-card {
  border: 1px solid #e1e8f2;
  border-radius: 18px;
  padding: 18px;
  background: #fcfdff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tiktok-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(38, 62, 91, 0.08);
}
.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.kpi-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #536983;
}
.kpi-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}
.badge-blue {
  background: #e6effc;
  color: #265187;
}
.badge-purple {
  background: #f3e8ff;
  color: #6b21a8;
}
.badge-teal {
  background: #e0f2fe;
  color: #0f766e;
}
.badge-amber {
  background: #fef3c7;
  color: #92400e;
}
.kpi-value {
  font-family: var(--font-num);
  font-size: 2rem;
  font-weight: 800;
  color: #19314d;
  line-height: 1.1;
  margin: 2px 0;
}
.kpi-meta {
  font-size: 0.78rem;
  color: #3a526e;
}
.ok-text {
  color: #15803d;
  font-weight: 700;
}
.warn-text {
  color: #b45309;
  font-weight: 700;
}
.kpi-desc {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #61758d;
}

.analytics-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.analytics-panel {
  border: 1px solid #e1e8f2;
  border-radius: 18px;
  padding: 20px;
  background: #f8fafd;
}
.panel-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.panel-head-inline h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #1e3550;
}
.milestone-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: #e7eef9;
  color: #2e5488;
  padding: 3px 10px;
  border-radius: 999px;
}
.panel-sub-copy {
  font-size: 0.84rem;
  color: #5b7088;
  line-height: 1.6;
  margin: 0 0 14px;
}

.milestone-progress-box {
  background: #fff;
  border: 1px solid #dce5f1;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.milestone-progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  margin-bottom: 8px;
  color: #3a526e;
}
.milestone-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #e9eff8;
  overflow: hidden;
}
.milestone-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3d6ba8, #38bdf8);
}
.tier-roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tier-stage-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5ecf5;
}
.tier-stage-item.current {
  border-color: #3d6ba8;
  background: #f0f6ff;
  box-shadow: 0 4px 12px rgba(61, 107, 168, 0.08);
}
.tier-stage-item.completed {
  background: #f4fbf7;
  border-color: #cce8d6;
}
.stage-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.76rem;
  font-weight: 800;
  flex-shrink: 0;
  background: #e2e8f0;
  color: #475569;
}
.tier-stage-item.completed .stage-dot {
  background: #16a34a;
  color: #fff;
}
.tier-stage-item.current .stage-dot {
  background: #2e5488;
  color: #fff;
}
.stage-body {
  flex: 1;
  min-width: 0;
}
.stage-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stage-title-line strong {
  font-size: 0.88rem;
  color: #1e3550;
}
.stage-range {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}
.stage-you-badge {
  font-size: 0.68rem;
  font-weight: 800;
  background: #f2b134;
  color: #1e293b;
  padding: 2px 8px;
  border-radius: 999px;
}
.stage-body p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: #5b7088;
}

.analytics-panel .dimension-item {
  background: #fff;
  border: 1px solid #e5ecf5;
  border-radius: 12px;
  padding: 11px 14px;
}
.analytics-panel .dimension-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.analytics-panel .dimension-top strong {
  font-size: 0.86rem;
  color: #1e3550;
}
.analytics-panel .dimension-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.analytics-panel .dimension-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #3d6ba8;
  background: #edf3fc;
  padding: 2px 8px;
  border-radius: 999px;
}
.analytics-panel .dimension-score {
  font-family: var(--font-num);
  font-size: 0.86rem;
  color: #1e3550;
}
.analytics-panel .dimension-bar {
  height: 7px;
  background: #ecf1f8;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}
.analytics-panel .dimension-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2e5488, #5b8fd4);
}
.analytics-panel .dimension-item p {
  margin: 0;
  font-size: 0.76rem;
  color: #61758d;
  line-height: 1.5;
}

.dna-signals-bar {
  background: #f0f5fd;
  border: 1px solid #d5e2f4;
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.dna-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #2c4c75;
  margin-bottom: 10px;
}
.dna-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.dna-chip {
  background: #fff;
  border: 1px solid #dce6f5;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dna-chip strong {
  font-size: 0.82rem;
  color: #264873;
}
.dna-chip span {
  font-size: 0.75rem;
  color: #5b7088;
  line-height: 1.45;
}

.suitability-three-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.suitability-card {
  background: #fff;
  border: 1px solid #dde6f2;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.suit-step-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #2e5488;
  background: #e7eef9;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.suit-card-header h3 {
  margin: 0;
  font-size: 1.06rem;
  color: #1e3550;
}
.suit-lead {
  margin: 0;
  font-size: 0.83rem;
  color: #556b84;
  line-height: 1.6;
}
.suit-bullet-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.81rem;
  color: #3c526b;
  line-height: 1.55;
}

.category-fit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cat-fit-row {
  text-align: left;
  font-family: inherit;
  background: #f9fbff;
  border: 1px solid #e2eaf5;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s, background 0.15s;
}
.cat-fit-row:hover,
.cat-fit-row.active {
  border-color: #3d6ba8;
  background: #eef5ff;
}
.cat-fit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cat-fit-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e3550;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cat-fit-name i {
  font-style: normal;
}
.cat-fit-pct {
  font-family: var(--font-num);
  font-size: 0.76rem;
  color: #2e5488;
  background: #e5effc;
  padding: 2px 8px;
  border-radius: 999px;
}
.cat-fit-bar {
  height: 5px;
  background: #e9eff8;
  border-radius: 999px;
  overflow: hidden;
}
.cat-fit-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.cat-fit-why {
  font-size: 0.73rem;
  color: #5b7088;
  line-height: 1.45;
}
.cat-fit-items {
  font-size: 0.71rem;
  color: #334e6e;
}

.style-formula-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.style-formula-box {
  background: #f8fafd;
  border: 1px solid #e3ebf5;
  border-radius: 12px;
  padding: 10px 12px;
}
.style-formula-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.style-badge {
  font-size: 0.67rem;
  font-weight: 800;
  color: #6b21a8;
  background: #f3e8ff;
  padding: 2px 7px;
  border-radius: 999px;
}
.style-formula-head small {
  font-size: 0.68rem;
  color: #0f766e;
  font-weight: 700;
}
.style-formula-box strong {
  display: block;
  font-size: 0.83rem;
  color: #1e3550;
  margin-bottom: 3px;
}
.style-formula-box p {
  margin: 0;
  font-size: 0.74rem;
  color: #5b7088;
  line-height: 1.5;
}

.revenue-simulator-box {
  margin-top: auto;
  background: linear-gradient(135deg, #1e3550, #2c4f78);
  color: #f8fafc;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rev-sim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.rev-sim-head strong {
  font-size: 0.82rem;
  color: #fff;
}
.rev-sim-head span {
  font-size: 0.7rem;
  color: #f2b134;
  font-weight: 700;
}
.rev-scenario-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.rev-scenario-tabs button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
}
.rev-scenario-tabs button.on {
  background: #f2b134;
  color: #1e293b;
  border-color: #f2b134;
}
.rev-slider-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.76rem;
}
.rev-slider-row input[type="range"] {
  width: 100%;
  accent-color: #f2b134;
}
.rev-result-card {
  background: rgba(15, 23, 42, 0.38);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rev-result-card small {
  display: block;
  font-size: 0.68rem;
  color: #cbd5e1;
}
.rev-result-card strong {
  font-family: var(--font-num);
  font-size: 1.25rem;
  color: #f2b134;
}
.rev-note {
  font-size: 0.7rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.bulk-pin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.match-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: thin;
}
.match-filter-chip {
  flex: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d5e0ee;
  background: #f8fafd;
  color: #465f7c;
  cursor: pointer;
  white-space: nowrap;
}
.match-filter-chip.on {
  background: #263e5b;
  border-color: #263e5b;
  color: #fff;
}

.creator-match-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.creator-match-card {
  border: 1px solid #dce5f1;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(38, 62, 91, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.creator-match-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(38, 62, 91, 0.11);
}
.cmc-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(115deg, #eef4fc, #f8faff);
  border-bottom: 1px solid #e2eaf5;
  font-size: 0.72rem;
  font-weight: 800;
}
.cmc-rank {
  color: #2e5488;
}
.cmc-score {
  background: #2e5488;
  color: #fff;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--font-num);
}
.cmc-main {
  display: flex;
  gap: 12px;
  padding: 14px 14px 10px;
  align-items: center;
}
.cmc-media {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 14px;
  flex-shrink: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #e5ecf5;
}
.cmc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cmc-niche-tag {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.92);
  color: #1e3550;
  border-radius: 999px;
  padding: 1px 4px;
}
.cmc-info {
  flex: 1;
  min-width: 0;
}
.cmc-info h3 {
  margin: 0 0 8px;
  font-size: 0.94rem;
  line-height: 1.35;
}
.cmc-info h3 a {
  color: #1e3550;
  text-decoration: none;
}
.cmc-info h3 a:hover {
  color: #2e5488;
  text-decoration: underline;
}
.cmc-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f8fafd;
  border: 1px solid #e5ecf5;
  border-radius: 10px;
  padding: 6px 8px;
}
.cmc-numbers small {
  display: block;
  font-size: 0.62rem;
  color: #64748b;
}
.cmc-numbers strong {
  font-family: var(--font-num);
  font-size: 0.88rem;
  color: #1e3550;
}
.cmc-numbers strong.comm-hl {
  color: #2e5488;
}
.cmc-numbers strong.earn-hl {
  color: #15803d;
}

.cmc-why-box {
  padding: 0 14px 10px;
  font-size: 0.76rem;
}
.cmc-why-box strong {
  display: block;
  color: #2c4c75;
  margin-bottom: 4px;
}
.cmc-why-box ul {
  margin: 0;
  padding: 8px 10px 8px 22px;
  background: #f4f8fd;
  border-radius: 10px;
  color: #3c526b;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.45;
}

.cmc-hook-box {
  margin: 0 14px 12px;
  padding: 9px 11px;
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  border-radius: 10px;
  font-size: 0.75rem;
}
.cmc-hook-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
  font-weight: 700;
  color: #92400e;
}
.copy-hook-btn {
  border: 1px solid #f59e0b;
  background: #fff;
  color: #92400e;
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  cursor: pointer;
}
.copy-hook-btn:hover {
  background: #fef3c7;
}
.cmc-hook-box p {
  margin: 0;
  color: #78350f;
  line-height: 1.45;
}

.cmc-actions {
  margin-top: auto;
  padding: 10px 14px 14px;
  border-top: 1px solid #eef2f8;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cmc-detail-link {
  margin-left: auto;
  font-size: 0.76rem;
  font-weight: 700;
  color: #2e5488;
  text-decoration: none;
}
.cmc-detail-link:hover {
  text-decoration: underline;
}
.empty-video-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

@media (max-width: 1040px) {
  .creator-hero-upgraded {
    grid-template-columns: 1fr;
  }
  .tiktok-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .suitability-three-grid {
    grid-template-columns: 1fr;
  }
  .creator-match-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .profile-guest-hero {
    padding: 24px 20px;
  }
  .profile-guest-highlights {
    grid-template-columns: 1fr;
  }
  .creator-hero-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .creator-title-row,
  .creator-scope-row,
  .creator-hero-actions {
    justify-content: center;
  }
  .creator-bio-quote {
    text-align: left;
  }
  .tiktok-kpi-grid,
  .analytics-two-col,
  .creator-match-cards-grid {
    grid-template-columns: 1fr;
  }
  .studio-block {
    padding: 18px 16px;
  }
}


