/* ScamWatch Myanmar — UI v2 */
:root {
  --bg: #f1f5f9;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --navy: #0f2a5c;
  --navy2: #1a56db;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --ok: #047857;
  --ok-bg: #ecfdf5;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(15, 42, 92, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 66px; }
body {
  margin: 0;
  font-family: "Myanmar Text", "Noto Sans Myanmar", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 0 18px; }
a { color: var(--navy2); }
.fine { color: var(--muted); font-size: .85rem; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 42, 92, .96);
  backdrop-filter: blur(6px);
  color: #fff;
}
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.logo { height: 40px; width: auto; display: block; }

.bar-right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.menubtn {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: .85rem; font-weight: 700;
  cursor: pointer; padding: 6px 12px; border-radius: 8px;
}
.menubtn:hover { background: rgba(255,255,255,.22); }
.hdr-link {
  color: rgba(255,255,255,.9); text-decoration: none;
  font-size: .9rem; font-weight: 600; white-space: nowrap;
}
.hdr-link:hover { color: #fff; }
@media (max-width: 480px) {
  .hdr-link { font-size: .82rem; }
  .bar-right { gap: 14px; }
  .menubtn { font-size: .78rem; padding: 5px 10px; }
}
}
.topbar { position: sticky; top: 0; z-index: 10; }
.topbar nav {
  display: none; position: absolute; top: 68px; left: 0; right: 0;
  background: var(--navy); flex-direction: column; padding: 8px 0;
  box-shadow: 0 8px 16px rgba(0,0,0,.25);
}
.topbar nav.open { display: flex; }
.topbar nav a {
  color: rgba(255,255,255,.9); text-decoration: none;
  font-size: 1rem; font-weight: 600;
  margin: 0; padding: 13px 20px; border-top: 1px solid rgba(255,255,255,.1);
}
.topbar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.menu-lang {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px; border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.9); font-weight: 600;
}
.menu-lang .langsel { margin-left: 0; font-size: .9rem; padding: 8px 10px; }

/* ---------- language switcher ---------- */
.langsel {
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.25); border-radius: 6px;
  font-size: .8rem; font-weight: 700; padding: 5px 6px; margin-left: 12px; cursor: pointer;
}
.langsel option { color: #111; }

/* ---------- payment logos ---------- */
.pay-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-top: 10px;
}
.pay-logo {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 10px; display: flex; align-items: center; justify-content: center;
  min-height: 64px;
}
.pay-logo img { max-width: 100%; max-height: 44px; object-fit: contain; }
@media (max-width: 480px) {
  .pay-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- payment scam stats ---------- */
.paystat-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid #f1f5f9;
}
.paystat-row:last-child { border-bottom: none; }
.paystat-medal { font-size: 18px; min-width: 32px; text-align: center; }
.paystat-logo {
  width: 72px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 4px;
  flex-shrink: 0;
}
.paystat-logo img { max-width: 100%; max-height: 30px; object-fit: contain; }
.paystat-mid { flex: 1; min-width: 0; }
.paystat-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-name { font-size: 11px; line-height: 1.2; text-align: center; }
.paystat-bar-wrap { flex: 1; height: 10px; background: #f1f5f9; border-radius: 5px; overflow: hidden; }
.paystat-bar { height: 100%; background: linear-gradient(90deg, #ef4444, #f59e0b); border-radius: 5px; }
.paystat-count { font-weight: bold; min-width: 28px; text-align: right; }

/* ---------- scam types ---------- */
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.type-card {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 16px 12px; text-align: center;
}
.type-ico { font-size: 1.8rem; margin-bottom: 6px; }
.type-card b { display: block; font-size: .92rem; margin-bottom: 4px; }
.type-card span { font-size: .8rem; color: #475569; line-height: 1.4; }

/* ---------- bot card ---------- */
.bot-card { background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 100%); border: 1px solid #bae6fd; }
.bot-card .btn { margin-top: 12px; }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid #f1f5f9; padding: 10px 0; }
.faq details:last-child { border-bottom: none; }
.faq summary { font-weight: 700; cursor: pointer; font-size: .95rem; padding: 4px 0; }
.faq summary:hover { color: var(--navy2); }
.faq details p { margin: 8px 0 4px; color: #475569; font-size: .9rem; line-height: 1.6; }

/* ---------- how to use ---------- */
.howto { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.howto li {
  counter-increment: step; position: relative;
  padding: 10px 0 10px 52px; border-bottom: 1px solid #f1f5f9;
}
.howto li:last-child { border-bottom: none; }
.howto li::before {
  content: counter(step); position: absolute; left: 0; top: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
}
.howto li b { display: block; font-size: .98rem; margin-bottom: 2px; }
.howto li span { font-size: .88rem; color: #475569; }

/* ---------- FB alerts ---------- */
.fb-item { padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.fb-item:last-child { border-bottom: none; }
.fb-meta { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.fb-preview { font-size: 14px; margin: 4px 0; }
.fb-link { font-size: 13px; color: #2563eb; }

/* ---------- disclaimer ticker ---------- */
.ticker {
  overflow: hidden; white-space: nowrap;
  background: #fef3c7; border-top: 1px solid #fde68a; border-bottom: 1px solid #fde68a;
  color: #92400e; font-size: 14px; padding: 8px 0;
}
.ticker-inner { display: inline-block; padding-left: 100%; animation: ticker-scroll 40s linear infinite; }
.ticker-inner span { padding-right: 60px; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; padding-left: 0; white-space: normal; }
  .ticker { white-space: normal; padding: 8px 12px; }
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%);
  color: #fff;
  padding: 44px 0 36px;
  border-radius: 0 0 28px 28px;
}
.hero h1 { margin: 0 0 10px; font-size: 1.9rem; line-height: 1.45; letter-spacing: -.01em; }
.lede { margin: 0 0 22px; opacity: .88; font-size: 1rem; max-width: 34em; }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35);
  color: #fff; border-radius: 999px; padding: 7px 14px;
  font-size: .85rem; cursor: pointer; font-weight: 600;
}
.chip:hover { background: rgba(255,255,255,.28); }
.chip:active { transform: scale(.96); }
.chip svg { width: 16px; height: 16px; fill: #fff; flex-shrink: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.searchbox { display: flex; gap: 10px; }
.searchbox input {
  flex: 1; min-width: 0;
  padding: 17px 18px; font-size: 1.05rem;
  border: 2px solid transparent; border-radius: 14px;
  background: #fff; color: var(--ink);
}
.searchbox input:focus { outline: none; border-color: #93c5fd; }
.searchbox button {
  padding: 0 14px; font-size: .9rem; font-weight: 700;
  border: none; border-radius: 14px; cursor: pointer;
  background: #fbbf24; color: #451a03;
  white-space: nowrap; flex-shrink: 0;
  transition: transform .08s ease, background .15s ease;
}
.searchbox input { flex: 1 1 auto; }
.hero-cta { margin-top: 20px; text-align: center; }
.hero-cta p { margin: 0 0 10px; opacity: .92; font-size: .95rem; }
.hero-cta .btn-report {
  display: inline-block; background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.5); color: #fff;
  padding: 12px 28px; border-radius: 12px; font-weight: 700;
  text-decoration: none; font-size: 1rem;
}
.hero-cta .btn-report:hover { background: rgba(255,255,255,.25); }
.searchbox button:hover { background: #f59e0b; }
.searchbox button:active { transform: scale(.97); }

/* ---------- results ---------- */
#result { margin-top: 18px; }
.loading {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.92); font-size: .95rem;
  background: rgba(255,255,255,.12);
  border-radius: 12px; padding: 14px 16px;
}
.spinner {
  width: 22px; height: 22px; flex: none;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.rcard {
  background: var(--card); color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 5px solid var(--muted);
  padding: 18px; margin-bottom: 14px;
  animation: rise .25s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.rcard.danger { border-top-color: var(--danger); }
.rcard.warn { border-top-color: var(--warn); }
.rcard.ok { border-top-color: var(--ok); }
.rhead { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.badge {
  font-size: .78rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; color: #fff;
}
.badge.danger { background: var(--danger); }
.badge.warn { background: var(--warn); }
.badge.ok { background: var(--ok); }
.rtitle { font-size: 1.15rem; font-weight: 700; margin: 2px 0 10px; }
.rrows { display: grid; gap: 7px; margin-bottom: 6px; }
.rrow {
  display: flex; gap: 10px; font-size: .93rem;
  padding: 8px 12px; background: #f8fafc; border-radius: 10px;
}
.rrow .k { color: var(--muted); flex: none; min-width: 86px; }
.rrow .v { font-weight: 600; }
.story {
  background: #f8fafc; border-left: 3px solid var(--line);
  border-radius: 0 10px 10px 0;
  padding: 10px 14px; margin: 10px 0; font-size: .92rem;
  white-space: pre-wrap;
}
.readmore {
  display: inline-block; margin-top: 4px;
  font-weight: 700; text-decoration: none;
  background: var(--danger-bg); color: var(--danger);
  padding: 9px 18px; border-radius: 999px; font-size: .92rem;
}
.readmore:hover { background: #fee2e2; }
.rnote { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }

/* ---------- stats ---------- */
.stats { margin: 22px 0 6px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.stat {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 14px; text-align: center;
}
.stat-num { font-size: 1.65rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.stat-label { font-size: .85rem; color: #475569; font-weight: 600; margin-top: 6px; line-height: 1.35; }
.stats .fine { text-align: center; margin: 10px 0 0; }

/* ---------- cards / footer ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px; margin: 16px 0;
}
.card h2 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0 0 14px; color: #334155; font-size: .95rem; }
.btn {
  display: inline-block; background: var(--navy2); color: #fff;
  text-decoration: none; font-weight: 700;
  padding: 13px 24px; border-radius: 12px;
  transition: background .15s ease;
}
.btn:hover { background: #1443ad; }
ul.tight { margin: 0; padding-left: 20px; color: #334155; font-size: .95rem; }
ul.tight li { margin-bottom: 6px; }
.disclaimer {
  background: var(--warn-bg); border: 1px solid #fde68a;
  border-radius: 12px; padding: 12px 16px;
  font-size: .88rem; color: #92400e; margin: 18px 0 8px;
}
footer { margin-top: 26px; padding: 22px 0 34px; }
.foot-in { text-align: center; }
.social { display: flex; gap: 14px; justify-content: center; margin-bottom: 14px; }
.soc {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--card); box-shadow: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.soc:hover { transform: translateY(-2px); }
.soc:active { transform: scale(.94); }
.soc svg { width: 27px; height: 27px; }
.soc.tg svg { fill: #229ED9; }
.soc.bot svg { fill: #475569; }
.soc.fb svg { fill: #1877F2; }
.soc.msgr svg { fill: #0084FF; }
.soc.mail svg { fill: #EA4335; }
footer .fine { margin: 0; }

@media (min-width: 560px) {
  .hero h1 { font-size: 2.3rem; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .wrap { max-width: 1100px; }
  .type-grid { grid-template-columns: repeat(4, 1fr); }
}
