:root {
  --brand: #0b4ea2;
  --brand-2: #0a7ed4;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --text: #1a232e;
  --muted: #6b7684;
  --border: #e2e7ee;
  --accent: #d40000;
  --shadow: 0 2px 12px rgba(10, 40, 80, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1200px;
}
[data-theme="dark"] {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #1f2630;
  --text: #e6edf5;
  --muted: #9aa7b6;
  --border: #2a3441;
  --shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  transition: background .2s, color .2s;
}
a { color: var(--brand-2); text-decoration: none; }
img { max-width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 1.15rem; }
.brand-logo { border-radius: 8px; }
.brand-dot { color: #cfdff4; font-weight: 700; }
.main-nav { display: none; margin-left: auto; gap: 4px; }
.main-nav a {
  color: #e4eefb; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.15); color: #fff; }
.header-actions { display: flex; gap: 4px; margin-left: auto; }
.icon-btn {
  background: transparent; border: none; color: inherit; cursor: pointer;
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: rgba(255,255,255,.15); }
[data-theme="dark"] .site-header { background: linear-gradient(90deg, #0a3d7a, #0a5fa8); }

/* ---------- Search ---------- */
.search-panel {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: var(--surface); box-shadow: var(--shadow);
  padding: 14px; transform: translateY(-110%); transition: transform .25s ease;
  border-bottom: 1px solid var(--border);
}
.search-panel.open { transform: translateY(0); }
.search-box { display: flex; align-items: center; gap: 8px; max-width: 700px; margin: 0 auto; }
.search-ico { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search-box input {
  flex: 1; border: none; background: transparent; font-size: 1rem; padding: 10px 0; color: var(--text);
  outline: none;
}
.search-results { max-width: 700px; margin: 8px auto 0; }
.sr-item { display: block; padding: 10px 6px; border-bottom: 1px solid var(--border); color: var(--text); display:flex; gap:10px; }
.sr-item:hover { background: var(--surface-2); }
.sr-item img { width: 60px; height: 44px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.sr-item .sr-title { font-weight: 600; font-size: .92rem; }
.sr-item .sr-meta { color: var(--muted); font-size: .78rem; }

/* ---------- Location ---------- */
.location-panel {
  position: fixed; top: 0; right: 0; max-width: 400px; width: 88%; height: 100%;
  background: var(--surface); z-index: 70; box-shadow: -4px 0 20px rgba(0,0,0,.15);
  padding: 18px; overflow-y: auto; transform: translateX(105%); transition: transform .25s ease;
}
.location-panel.open { transform: translateX(0); }
.loc-header { display: flex; justify-content: space-between; align-items: center; }
.loc-hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.field { margin: 12px 0; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.field select, .field input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font-size: .95rem;
}
.switch { display: flex; align-items: center; gap: 10px; font-size: .85rem; margin: 14px 0; }
.switch input { display: none; }
.slider { width: 44px; height: 24px; background: var(--surface-2); border-radius: 12px; position: relative; flex-shrink: 0; border: 1px solid var(--border); }
.slider::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .slider { background: var(--brand-2); }
.switch input:checked + .slider::after { left: 22px; }
.loc-near .article-card { margin-top: 10px; }

/* ------------------------------------------------------------------
   Persistent Live-TV Breaking News Overlay (fixed at top on scroll)
------------------------------------------------------------------- */
:root {
  --wfront-red: #e80000;
  --wfront-red-dark: #b30000;
  --wfront-blue: #0b3d91;
  --wfront-gold: #f5c518;
  --header-h: 60px;
}
html { scroll-padding-top: calc(var(--header-h) + 4px); }

/* Push the main content down below the fixed overlay so nothing is hidden.
   JS sets --wfront-total to the overlay's measured height. */
main#app { margin-top: var(--wfront-total, 0px); }
body.ov { }

.breaking-overlay {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 55;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  transform: translateZ(0);
  will-change: transform;
}
.breaking-overlay[hidden] { display: none; }

/* ---- Flashing red bars (top & bottom of overlay) ---- */
.breaking-flash-bar {
  height: 5px;
  background: var(--wfront-red);
  animation: flashBar 1.8s ease-in-out infinite;
}
.breaking-flash-bar--bottom {
  height: 3px;
  animation: flashBar 1.8s ease-in-out infinite 0.3s;
}
@keyframes flashBar {
  0%, 100% { opacity: 1; background: var(--wfront-red); }
  25% { opacity: .4; background: #ff3333; }
  50% { opacity: 1; background: #ff0000; }
  75% { opacity: .5; background: #cc0000; }
}

/* ---- Main hero area ---- */
.wfront-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #111 0%, #000 45%, #140012 100%);
  color: #fff;
  padding: 10px 18px 0;
  border-bottom: none;
}
.wfront-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 2px, transparent 2px 60px);
  pointer-events: none;
  z-index: 1;
}

.wfront-topline {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 6px;
  position: relative; z-index: 2;
}
.wfront-livebox {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wfront-red);
  padding: 4px 14px; border-radius: 4px; font-weight: 800; letter-spacing: .08em;
  box-shadow: 0 0 18px rgba(232,0,0,.7);
  animation: liveboxPulse 2s ease-in-out infinite;
}
@keyframes liveboxPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(232,0,0,.7); }
  50% { box-shadow: 0 0 30px rgba(232,0,0,1), 0 0 60px rgba(232,0,0,.3); }
}
.live-dot {
  width: 12px; height: 12px; border-radius: 50%; background: #fff;
  animation: livePulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255,255,255,.6);
}
.live-text { font-size: 1rem; color: #fff; }
@keyframes livePulse {
  0% { transform: scale(.8); box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 12px rgba(255,255,255,0); }
  100% { transform: scale(.8); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.wfront-now { font-size: .85rem; color: #ffd; font-variant-numeric: tabular-nums; letter-spacing: .04em; white-space: nowrap; }

.wfront-badgestrip { display: flex; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; position: relative; z-index: 2; }
.b-badge {
  font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 4px; font-size: 1.35rem; line-height: 1;
}
.b-breaking {
  color: #fff; background: var(--wfront-red);
  box-shadow: 0 2px 14px rgba(232,0,0,.6);
  animation: badgeFlash 1.5s step-end infinite;
}
@keyframes badgeFlash {
  0%, 100% { background: var(--wfront-red); opacity: 1; }
  50% { background: #ff4444; opacity: .85; }
}
.b-news { color: #0b3d91; background: var(--wfront-gold); }

@keyframes badgeGlow { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }

/* ---- Main headline area — TV broadcast style with cycling ---- */
.wfront-main {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  z-index: 2;
}
.wm-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .8s ease-in-out;
  pointer-events: none;
}
.wm-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}
.wm-image-wrap {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image .6s ease-in-out;
  overflow: hidden;
}
.wm-image-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: none;
}
.wm-image-wrap img[src] { display: block; }
.wm-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  transition: opacity .4s ease;
  pointer-events: none;
}
.wm-loading .spinner {
  width: 34px; height: 34px;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: var(--wfront-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.wm-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.7) 35%, rgba(0,0,0,.35) 65%, rgba(0,0,0,.15) 100%);
  z-index: 1;
}
.wm-content {
  position: relative; z-index: 3;
  padding: 14px 18px 18px;
  width: 100%;
}
.wm-label-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.wm-breaking-label {
  display: inline-block;
  background: var(--wfront-red);
  color: #fff;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .15em;
  padding: 3px 10px;
  border-radius: 3px;
  animation: labelFlash 2s step-end infinite;
  text-transform: uppercase;
}
@keyframes labelFlash {
  0%, 70% { opacity: 1; }
  71%, 85% { opacity: .3; }
  86%, 100% { opacity: 1; }
}
.wm-story-num {
  font-size: .7rem;
  color: rgba(255,255,255,.5);
  font-weight: 600;
  letter-spacing: .08em;
}
.wfront-main .wm-text {
  font-size: 1.5rem; font-weight: 800; line-height: 1.18; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.8), 0 1px 3px rgba(0,0,0,.9);
  display: block;
  animation: textSlideIn .6s ease-out both;
}
@keyframes textSlideIn {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.wfront-main a.wm-text { text-decoration: none; }
.wfront-main a.wm-text:hover { text-decoration: underline; }
.wfront-main .wm-source {
  display: block; font-size: .8rem; font-weight: 600; color: var(--wfront-gold);
  margin-top: 6px; letter-spacing: .03em;
  text-shadow: 0 1px 4px rgba(0,0,0,.9);
  animation: textSlideIn .6s ease-out .15s both;
}

/* ---- Lower-third ticker ---- */
.lower-third {
  display: flex; align-items: stretch; overflow: hidden;
  background: #111; color: #fff; height: 30px;
  border-top: 1px solid #333;
}
.lt-label {
  background: var(--wfront-red); color: #fff; font-weight: 800; font-size: .72rem;
  letter-spacing: .1em; padding: 0 12px; display: flex; align-items: center; flex-shrink: 0; gap: 6px;
}
.lt-track { flex: 1; display: flex; align-items: center; overflow: hidden; white-space: nowrap; position: relative; }
.lt-inner { display: inline-flex; align-items: center; gap: 0; animation: marquee 55s linear infinite; will-change: transform; }
.lt-item { display: inline-flex; align-items: center; padding: 0 4px; }
.lt-item .spacer { font-size: 1.1rem; margin: 0 18px; color: var(--wfront-gold); flex-shrink: 0; }
.lt-item a { color: #fff; font-size: .88rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.lt-item a:hover { text-decoration: underline; color: var(--wfront-gold); }
.lt-item .lt-tag { background: var(--wfront-red); font-size: .62rem; font-weight: 800; padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.lower-third { animation-play-state: paused; }
.lower-third:hover .lt-inner { animation-play-state: running; }

/* Keep marquee always moving (default running) */
.lower-third .lt-inner { animation-play-state: running; }

/* Reduce motion for accessibility -> disable marquee */
@media (prefers-reduced-motion: reduce) {
  .lower-third .lt-inner, .live-dot, .b-breaking, .breaking-flash-bar, .wfront-livebox,
  .b-breaking, .wm-breaking-label, .wfront-main .wm-text, .wfront-main .wm-source { animation: none !important; }
}

/* ---- Responsive: mobile / Android / PWA ---- */
@media (max-width: 700px) {
  .breaking-overlay { top: var(--header-h); }
  .wfront-hero { padding: 8px 12px 0; }
  .b-badge { font-size: 1.05rem; padding: 5px 12px; }
  .wfront-main { min-height: 130px; }
  .wfront-main .wm-text { font-size: 1.1rem; }
  .wm-content { padding: 10px 12px 14px; }
  .wfront-now { font-size: .72rem; }
  .live-text { font-size: .85rem; }
  .lt-label { font-size: .62rem; padding: 0 8px; }
  .lt-item a { font-size: .8rem; }
}
@media (max-width: 430px) {
  .wfront-topline { gap: 8px; }
  .wfront-now { display: none; }
  .b-badge { font-size: .95rem; }
  .wfront-main .wm-text { font-size: 1rem; }
}


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  font-size: .95rem; font-weight: 600; text-decoration: none; transition: .15s;
}
.btn-primary { background: var(--brand-2); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-danger { background: var(--accent); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: .82rem; }

/* ---------- Layout ---------- */
#app { max-width: var(--maxw); margin: 0 auto; padding: 18px 14px 90px; min-height: 60vh; }
.page-title { font-size: 1.6rem; font-weight: 800; margin: 6px 0 4px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: .85rem; font-weight: 600; cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--brand-2); color: var(--brand-2); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Article grid ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid.grid-4 { }
@media (min-width: 1100px) { .grid.grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Article card ---------- */
.article-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.article-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.article-card .thumb { height: 150px; background: var(--surface-2); position: relative; overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card .thumb img[data-lz] { opacity: 0; transition: opacity .25s; }
.article-card .thumb img[data-lz].loaded { opacity: 1; }
/* If a real image fails to load, show the branded fallback layer, never a blank box */
.article-card .thumb.img-err { background: var(--surface-2); }
.article-card .thumb img.img-err { display: none; }
.article-card .thumb .thumb-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: #fff; text-align: center;
}
.article-card .thumb.thumb-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; }
.article-card .thumb-fb-icon { font-size: 2.2rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.article-card .thumb-fb-label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.article-card .thumb .cat-tag {
  position: absolute; top: 8px; left: 8px; background: var(--brand); color: #fff;
  font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-transform: uppercase;
}
.article-card .thumb .breaking-tag {
  position: absolute; top: 8px; right: 8px; background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 6px;
}
.article-card .card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.article-card h3 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--brand-2); }
.article-card .card-summary { color: var(--muted); font-size: .85rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .card-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .75rem; flex-wrap: wrap; }
.article-card .card-meta .src { font-weight: 600; color: var(--text); }

/* ---------- Featured hero ---------- */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; min-height: 260px; display: flex; align-items: flex-end; background: var(--surface); box-shadow: var(--shadow); }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.82)); }
.hero-body { position: relative; padding: 22px; color: #fff; z-index: 2; }
.hero-body .cat-tag { display: inline-block; background: var(--brand-2); padding: 4px 10px; border-radius: 6px; font-size: .7rem; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.hero-body h2 { margin: 0 0 6px; font-size: 1.35rem; }
.hero-body p { margin: 0; opacity: .9; font-size: .9rem; }
.hero-body .meta { opacity: .8; font-size: .78rem; margin-top: 8px; }

/* ---------- Section head ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 12px; }
.section-head h2 { margin: 0; font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.section-head .see-all { font-size: .85rem; font-weight: 600; color: var(--brand-2); }

/* ---------- Article page ---------- */
.article-page { max-width: 800px; margin: 0 auto; }
.article-page .cat-tag { display: inline-block; background: var(--brand); color: #fff; padding: 5px 12px; border-radius: 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.article-page h1 { font-size: 1.8rem; line-height: 1.2; margin: 12px 0; }
.article-hero-img { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .85rem; margin: 12px 0; align-items: center; }
.article-meta .src { color: var(--brand-2); font-weight: 600; }
.article-summary { font-size: 1.08rem; color: var(--text); border-left: 4px solid var(--brand-2); padding-left: 14px; margin: 16px 0; }
.article-actions { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.related { margin-top: 34px; }
.related h3 { font-size: 1.15rem; }

/* ---------- Country page ---------- */
.country-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.country-hero h1 { margin: 0; font-size: 1.7rem; }
.region-note { color: var(--muted); font-size: .9rem; }

/* ---------- Location list / map ---------- */
.region-block h3 { border-bottom: 2px solid var(--brand); padding-bottom: 6px; }
.country-links { display: flex; flex-wrap: wrap; gap: 8px; }
.country-links a { background: var(--surface); border: 1px solid var(--border); padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: .85rem; }
.country-links a:hover { border-color: var(--brand-2); color: var(--brand-2); }
.map-container { position: relative; height: 60vh; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.map-canvas { width: 100%; height: 100%; }
.map-legend { position: absolute; bottom: 12px; left: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; font-size: .78rem; box-shadow: var(--shadow); }
.map-legend .dot { display:inline-block; width: 10px; height:10px; border-radius:50%; margin-right:5px; }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,.06); padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 0 6px;
  color: var(--muted); font-size: .66rem; font-weight: 600;
}
.bottom-nav a.active { color: var(--brand-2); }
.bottom-nav .bn-ico { font-size: 1.3rem; line-height: 1; }
@media (min-width: 800px) { .bottom-nav { display: none; } .main-nav { display: flex; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 30px; padding-bottom: 76px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 24px 14px 40px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 8px; }
.footer-tagline { color: var(--muted); font-size: .85rem; margin: 0 0 12px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--brand-2); font-size: .85rem; }
@media (min-width: 800px) { .site-footer { padding-bottom: 24px; } }

/* ---------- Auth / account ---------- */
.account-panel { max-width: 420px; margin: 0 auto; }
.card { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.form-row { margin: 12px 0; }
.form-row label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font-size: .95rem; font-family: inherit;
}
.list-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.list-item img { width: 52px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 10px;
  font-size: .88rem; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: 90%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
[data-theme="dark"] .toast { background: var(--text); color: var(--bg); }

/* ---------- Skeleton ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Utilities ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.spacer { height: 20px; }
.pill { display:inline-block; background: var(--brand-2); color:#fff; font-size:.7rem; font-weight:700; padding:3px 9px; border-radius:999px; }
iframe.fallback-map { width:100%; height:100%; border:0; }
@media (max-width: 600px) { .article-page h1 { font-size: 1.5rem; } .hero-body h2 { font-size: 1.15rem; } }

/* ---------- Weverse Shop Updates ---------- */
.product-card .card-body h3 { font-size: .98rem; }
.product-card .product-price { color: var(--brand-2); font-weight: 700; }
.buy-btn { margin-top: 10px; }
.buy-btn:hover { text-decoration: none; }
#shopSearch { margin: 10px 0; }
