/* MashhadPro hub UI layer (loaded after platform.css). Hub only; the tour has its own styles. */
.platform {
  /* iOS system blue + gray neutrals (less “green site”) */
  --hx-brand: #007aff;
  --hx-brand-2: #0a64d6;
  --hx-sun: #ff9f0a;
  --hx-surface: #ffffff;
  --hx-soft: #f2f2f7;
  --hx-ink: #1c1c1e;
  --hx-muted: rgba(60, 60, 67, .72);
  --hx-line: rgba(60, 60, 67, .14);
  --hx-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --hx-shadow-lg: 0 4px 16px rgba(0, 0, 0, .08), 0 20px 40px rgba(0, 0, 0, .1);
  --hx-r: 16px;
  --hx-r-lg: 22px;
  --accent: var(--hx-brand);
  --accent-soft: rgba(0, 122, 255, .12);
  --bg: var(--hx-soft);
  --panel: var(--hx-surface);
  --ink: var(--hx-ink);
  --muted: var(--hx-muted);
  --line: var(--hx-line);
}
html[data-theme="dark"] .platform {
  --hx-brand: #0a84ff;
  --hx-brand-2: #409cff;
  --hx-sun: #ffd60a;
  --hx-surface: #1c1c1e;
  --hx-soft: #000000;
  --hx-ink: #f5f5f7;
  --hx-muted: rgba(235, 235, 245, .6);
  --hx-line: rgba(84, 84, 88, .65);
  --hx-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  --hx-shadow-lg: 0 8px 28px rgba(0, 0, 0, .55);
  --accent: var(--hx-brand);
  --accent-soft: rgba(10, 132, 255, .2);
  --bg: #000;
  --panel: var(--hx-surface);
  --ink: var(--hx-ink);
  --muted: var(--hx-muted);
  --line: var(--hx-line);
}
.platform .wrap { width: min(1100px, calc(100% - 40px)); }
.platform .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.platform.hub { background: var(--hx-soft); color: var(--hx-ink); }
.platform .btn { border-radius: 980px; font-weight: 700; letter-spacing: -.01em; min-height: 44px; }
.platform .btn:not(.btn-ghost):not(.btn-sm) { background: var(--hx-brand); color: #fff; border: 0; box-shadow: none; }
html[data-theme="dark"] .platform .btn:not(.btn-ghost):not(.btn-sm) { color: #fff; }
.platform .btn-ghost { border-radius: 980px; background: rgba(120,120,128,.12); border: 0; color: var(--hx-ink); }
.platform .ig-tabbar {
  align-items: stretch;
  justify-content: space-around;
  gap: 0;
  min-height: 52px;
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--hx-surface) 86%, transparent);
  backdrop-filter: saturate(1.8) blur(22px);
  -webkit-backdrop-filter: saturate(1.8) blur(22px);
  border-top: 0.5px solid var(--hx-line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .04);
}
.platform .ig-tabbar a,
.platform .ig-tabbar .tab-create {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 6px 2px 4px;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent !important;
  color: var(--hx-muted);
  text-decoration: none;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: none !important;
  box-shadow: none !important;
}
.platform .ig-tabbar a[aria-current="page"],
.platform .ig-tabbar .tab-create[aria-current="page"] {
  color: var(--hx-brand);
  background: transparent !important;
}
.platform .ig-tabbar svg {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.platform .ig-tabbar .tab-create {
  color: var(--hx-muted);
}
.platform .ig-tabbar .tab-create {
  position: relative;
}
.platform .ig-tabbar .tab-create svg {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50% !important;
  background: var(--hx-brand) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0, 122, 255, .32) !important;
}
.platform .ig-tabbar .tab-create span {
  display: block;
  margin-top: 1px;
  color: var(--hx-muted);
}
.platform .ig-tabbar .tab-create[aria-current="page"] span {
  color: var(--hx-brand);
}
html[data-theme="dark"] .platform .ig-tabbar {
  background: color-mix(in srgb, #1c1c1e 88%, transparent);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .35);
}
.platform .mp-marker-link { color: var(--hx-brand); font-weight: 700; text-decoration: none; }

/* Content must never be hidden by the reveal helper */
.platform [data-reveal], .platform [data-reveal].reveal-ready { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- Header ---------- */
.platform .ig-nav { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.platform .ig-nav .nav-row { min-height: 66px; }
.platform .ig-nav .links a { border-radius: 10px; padding: 8px 12px; font-weight: 700; }
.platform .ig-nav .links a[aria-current="page"] { box-shadow: none; background: var(--accent-soft); color: var(--hx-brand); }
.platform .ig-nav .links .nav-tour-link { color: var(--hx-sun); }
.platform .ig-nav .btn.keep { background: var(--hx-brand); color: #fff; border-radius: 980px; }
html[data-theme="dark"] .platform .ig-nav .btn.keep { color: #fff; }

/* Language menu with flags */
.platform .lang-menu > summary { gap: 8px; padding: 0 10px 0 8px; min-height: 40px; border-radius: 999px; background: var(--hx-surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
html[dir="rtl"] .platform .lang-menu > summary { padding: 0 8px 0 10px; }
.platform .lang-menu .flag { width: 26px; height: 18px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.14); flex: none; display: block; }

/* Soft custom scrollbars */
.platform, .platform * {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--hx-ink) 28%, transparent) transparent;
}
.platform::-webkit-scrollbar,
.platform *::-webkit-scrollbar { width: 9px; height: 9px; }
.platform::-webkit-scrollbar-track,
.platform *::-webkit-scrollbar-track { background: transparent; }
.platform::-webkit-scrollbar-thumb,
.platform *::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--hx-ink) 22%, transparent);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.platform::-webkit-scrollbar-thumb:hover,
.platform *::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--hx-ink) 38%, transparent);
  background-clip: padding-box;
}

/* Minimal soft theme toggle */
.platform .theme-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(120,120,128,.12);
  color: var(--hx-ink);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: background .25s ease, transform .2s ease, color .25s ease;
}
.platform .theme-btn:hover { background: rgba(120,120,128,.2); transform: scale(1.04); }
.platform .theme-btn:active { transform: scale(.96); }
.platform .theme-btn.is-switching { transform: scale(.92) rotate(-12deg); }
.platform .theme-btn .theme-orb {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 55%);
  pointer-events: none;
  opacity: .7;
}
.platform .theme-btn svg {
  width: 18px; height: 18px;
  transition: opacity .28s ease, transform .35s ease;
}
.platform .theme-btn .ico-sun,
.platform .theme-btn .ico-moon { grid-area: 1 / 1; }
html[data-theme="light"] .platform .theme-btn .ico-sun { opacity: 0; transform: rotate(-40deg) scale(.6); }
html[data-theme="light"] .platform .theme-btn .ico-moon { opacity: 1; transform: none; }
html[data-theme="dark"] .platform .theme-btn .ico-sun { opacity: 1; transform: none; }
html[data-theme="dark"] .platform .theme-btn .ico-moon { opacity: 0; transform: rotate(40deg) scale(.6); }

/* Live pulse drawer */
.hx-live-btn {
  position: relative;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: rgba(120,120,128,.12);
  color: var(--hx-ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.hx-live-btn:hover { background: rgba(120,120,128,.2); }
.hx-live-dot {
  position: absolute; top: 2px; inset-inline-end: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #ff3b30; color: #fff;
  font-size: .65rem; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--hx-surface);
}
.hx-live[hidden] { display: none !important; }
.hx-live { position: fixed; inset: 0; z-index: 80; }
.hx-live-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.28); backdrop-filter: blur(2px); }
.hx-live-panel {
  position: absolute; top: 64px; inset-inline-end: 16px;
  width: min(360px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  display: flex; flex-direction: column;
  background: var(--hx-surface); color: var(--hx-ink);
  border: 1px solid var(--hx-line); border-radius: 22px;
  box-shadow: var(--hx-shadow-lg); overflow: hidden;
  animation: hx-pop .22s ease;
}
@keyframes hx-pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.hx-live-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 16px 10px; border-bottom: 1px solid var(--hx-line); }
.hx-live-head strong { display: block; font-size: 1.05rem; }
.hx-live-pts { display: block; margin-top: 4px; font-size: .86rem; color: var(--hx-muted); }
.hx-live-pts b { color: var(--hx-brand); }
.hx-live-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(120,120,128,.12); color: inherit; font-size: 1.2rem; cursor: pointer; }
.hx-live-chat { padding: 10px 14px 0; }
.hx-live-chat a {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--hx-brand); text-decoration: none; font-weight: 700;
}
.hx-live-list { list-style: none; margin: 0; padding: 8px; overflow: auto; flex: 1; }
.hx-live-list li a { display: grid; gap: 2px; padding: 12px 12px; border-radius: 14px; text-decoration: none; color: inherit; }
.hx-live-list li.is-new a { background: color-mix(in srgb, var(--hx-brand) 8%, transparent); }
.hx-live-list li a:hover { background: rgba(120,120,128,.1); }
.hx-live-list small { color: var(--hx-muted); font-size: .78rem; }
.hx-live-empty { margin: 0; padding: 20px 18px; color: var(--hx-muted); text-align: center; }
.hx-live-foot { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--hx-line); }
.hx-live-foot a { flex: 1; text-align: center; padding: 10px; border-radius: 980px; background: rgba(120,120,128,.12); color: var(--hx-ink); text-decoration: none; font-weight: 700; font-size: .9rem; }
.hx-toast-host { position: fixed; inset-inline-end: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 90; display: grid; gap: 8px; pointer-events: none; }
.hx-toast {
  min-width: 180px; max-width: min(320px, 80vw);
  padding: 12px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--hx-surface) 92%, transparent);
  color: var(--hx-ink); border: 1px solid var(--hx-line);
  box-shadow: var(--hx-shadow-lg); font-weight: 700; font-size: .92rem;
  opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease;
  backdrop-filter: blur(12px);
}
.hx-toast.is-in { opacity: 1; transform: none; }

/* Pro map */
.hx-map-pro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .9fr);
  gap: 0;
  border-radius: var(--hx-r-lg);
  overflow: hidden;
  border: 1px solid var(--hx-line);
  background: var(--hx-surface);
  min-height: 420px;
}
.hx-map-canvas .mp-leaflet { height: 100%; min-height: 420px; border-radius: 0; }
.hx-map-rail {
  display: flex; flex-direction: column; gap: 0;
  max-height: 420px; overflow: auto;
  border-inline-start: 1px solid var(--hx-line);
}
.hx-map-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px; align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hx-line);
}
.hx-map-thumb {
  width: 64px; height: 64px; border-radius: 14px;
  background: center/cover no-repeat var(--hx-soft);
  display: block;
}
.hx-map-card-body { min-width: 0; text-decoration: none; color: inherit; display: grid; gap: 2px; }
.hx-map-card-body strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-map-card-body small { color: var(--hx-muted); font-size: .78rem; }
.hx-map-pinbtn {
  border: 0; border-radius: 980px; padding: 8px 12px;
  background: var(--accent-soft); color: var(--hx-brand);
  font: inherit; font-weight: 700; font-size: .78rem; cursor: pointer;
}
.hx-review-card.has-media { grid-template-columns: 96px minmax(0, 1fr); display: grid; gap: 0; padding: 0; overflow: hidden; }
.hx-review-media { display: block; min-height: 100%; background: center/cover no-repeat var(--hx-soft); }
.hx-review-body { padding: 14px 16px; display: grid; gap: 8px; }
.hx-cta-visual {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--hx-surface);
  min-height: 200px;
  text-align: start;
  justify-items: start;
  padding: 0;
}
.hx-cta-visual::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--cta-img) center/cover no-repeat;
  transform: scale(1.04);
}
.hx-cta-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.28) 55%, rgba(0,0,0,.15));
}
html[dir="rtl"] .hx-cta-shade { background: linear-gradient(270deg, rgba(0,0,0,.62), rgba(0,0,0,.28) 55%, rgba(0,0,0,.15)); }
.hx-cta-copy { position: relative; padding: 28px 24px; color: #fff; display: grid; gap: 10px; max-width: 48ch; }
.hx-cta-copy .btn-ghost { background: rgba(255,255,255,.16); color: #fff; }
@media (max-width: 900px) {
  .hx-map-pro { grid-template-columns: 1fr; }
  .hx-map-rail { max-height: 280px; border-inline-start: 0; border-top: 1px solid var(--hx-line); }
  .hx-map-canvas .mp-leaflet { min-height: 300px; }
}
.platform .lang-menu .lang-code { font-size: .78rem; letter-spacing: .04em; }
.platform .lang-menu .lang-caret { opacity: .55; transition: transform .2s; }
.platform .lang-menu[open] .lang-caret { transform: rotate(180deg); }
.platform .lang-menu-panel { min-width: 190px; padding: 8px; border-radius: 16px; box-shadow: var(--hx-shadow-lg); gap: 2px; background: var(--hx-surface); }
.platform .lang-menu-panel a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: .95rem; }
.platform .lang-menu-panel a[aria-current="true"] { background: var(--accent-soft); color: var(--hx-brand); }
.platform .lang-menu-panel a[aria-current="true"]::after { content: "✓"; margin-inline-start: auto; font-weight: 800; }

/* ---------- Buttons ---------- */
.platform .btn { border-radius: 12px; font-weight: 800; }
.platform .hx-home .btn:not(.btn-ghost) { background: var(--hx-brand); color: #fff; }

/* ---------- Hero ---------- */
.hx-hero { position: relative; isolation: isolate; color: #fff; min-height: clamp(520px, 78vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: #0d2a22; }
.hx-slides { position: absolute; inset: 0; z-index: -2; }
.hx-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: hx-fade 36s infinite; }
.hx-slide:nth-child(1) { opacity: 1; animation-delay: 0s; }
.hx-slide:nth-child(2) { animation-delay: 6s; }
.hx-slide:nth-child(3) { animation-delay: 12s; }
.hx-slide:nth-child(4) { animation-delay: 18s; }
.hx-slide:nth-child(5) { animation-delay: 24s; }
.hx-slide:nth-child(6) { animation-delay: 30s; }
@keyframes hx-fade { 0%, 14% { opacity: 1; } 18%, 96% { opacity: 0; } 100% { opacity: 1; } }
.hx-hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(6, 22, 17, .55) 0%, rgba(6, 22, 17, .15) 38%, rgba(6, 22, 17, .82) 100%),
  radial-gradient(70% 60% at 20% 60%, rgba(6, 22, 17, .55), transparent 70%); }
.hx-hero-body { padding-block: 72px 28px; display: grid; gap: 18px; justify-items: start; max-width: 1200px; }
.hx-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 700; font-size: .85rem; border: 1px solid rgba(255,255,255,.22); }
.hx-dot { width: 8px; height: 8px; border-radius: 50%; background: #5df2b9; box-shadow: 0 0 0 4px rgba(93,242,185,.25); }
.hx-hero h1 { margin: 0; font-size: clamp(2.1rem, 5.4vw, 4rem); line-height: 1.15; font-weight: 800; max-width: 18ch; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hx-hero-lead { margin: 0; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.8; max-width: 52ch; opacity: .94; }
.hx-search { display: flex; align-items: center; gap: 10px; width: min(640px, 100%); background: var(--hx-surface); color: var(--hx-ink); padding: 8px 8px 8px 16px; border-radius: 18px; box-shadow: var(--hx-shadow-lg); }
html[dir="rtl"] .hx-search { padding: 8px 16px 8px 8px; }
.hx-search svg { flex: none; opacity: .55; }
.hx-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.02rem; color: inherit; padding: 10px 4px; }
.hx-search input::placeholder { color: color-mix(in srgb, currentColor 50%, transparent); }
.hx-search .btn { min-height: 46px; padding-inline: 22px; border-radius: 12px; }
.hx-search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--hx-brand) 35%, transparent), var(--hx-shadow-lg); }
.hx-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hx-quick-label { opacity: .8; font-size: .9rem; margin-inline-end: 4px; }
.hx-quick a { color: #fff; text-decoration: none; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 700; font-size: .9rem; transition: background .2s, transform .2s; }
.hx-quick a:hover { background: rgba(255,255,255,.28); transform: translateY(-1px); }
.hx-hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 28px; flex-wrap: wrap; }
.hx-stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hx-stats a { display: grid; gap: 2px; min-width: 112px; padding: 12px 18px; border-radius: 16px; color: #fff; text-decoration: none; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .2s; }
.hx-stats a:hover { background: rgba(255,255,255,.22); }
.hx-stats strong { font-size: 1.5rem; line-height: 1.1; }
.hx-stats span { font-size: .8rem; opacity: .85; }
.hx-caption { position: relative; margin: 0; height: 1.6em; min-width: 200px; font-size: .85rem; opacity: .9; text-align: end; }
.hx-caption span { position: absolute; inset-inline-end: 0; top: 0; opacity: 0; white-space: nowrap; animation: hx-fade 24s infinite; }
.hx-caption span:nth-child(1) { opacity: 1; animation-delay: 0s; }
.hx-caption span:nth-child(2) { animation-delay: 6s; }
.hx-caption span:nth-child(3) { animation-delay: 12s; }
.hx-caption span:nth-child(4) { animation-delay: 18s; }
.hx-caption span::before { content: "📍 "; }

/* ---------- Sections ---------- */
.hx-home { background: var(--bg); }
.hx-sec { padding-block: 56px 8px; }
.hx-sec-tint { background: var(--hx-soft); margin-top: 48px; padding-block: 48px; }
html[data-theme="dark"] .hx-sec-tint { background: color-mix(in srgb, var(--bg-2) 70%, var(--bg)); }
.hx-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.hx-sec-head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.25; font-weight: 800; }
.hx-sec-head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; line-height: 1.7; }
.hx-more { font-weight: 800; color: var(--hx-brand); text-decoration: none; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); }
.hx-more::after { content: "←"; margin-inline-start: 6px; }
html[dir="ltr"] .hx-more::after { content: "→"; }
.hx-more:hover { filter: brightness(.95); }

/* ---------- Worlds ---------- */
.hx-worlds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hx-world { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--hx-r); overflow: hidden; color: #fff; text-decoration: none; background: #123; box-shadow: var(--hx-shadow); isolation: isolate; }
.hx-world img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; z-index: -2; }
.hx-world:hover img { transform: scale(1.07); }
.hx-world-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 25%, rgba(5, 18, 14, .88)); }
.hx-world-count { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .8rem; font-weight: 700; border: 1px solid rgba(255,255,255,.25); }
.hx-world-body { position: absolute; inset-inline: 18px; inset-block-end: 16px; display: grid; gap: 4px; }
.hx-world-body strong { font-size: 1.35rem; line-height: 1.2; }
.hx-world-body span { font-size: .9rem; opacity: .9; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Place cards ---------- */
.hx-card { margin: 0; background: var(--hx-surface); border: 1px solid var(--line); border-radius: var(--hx-r); overflow: hidden; box-shadow: var(--hx-shadow); transition: transform .25s ease, box-shadow .25s ease; height: 100%; }
.hx-card:hover { transform: translateY(-4px); box-shadow: var(--hx-shadow-lg); }
.hx-card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.hx-card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--hx-soft); flex: none; }
.hx-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.hx-card:hover .hx-card-media img { transform: scale(1.06); }
.hx-card-art { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.9); background: linear-gradient(145deg, #2f5d50, #8aa899); }
.hx-card-art svg { width: 44px; height: 44px; }
.hx-card-art.cat-restaurant, .hx-card-art.cat-fastfood { background: linear-gradient(145deg, #9a3412, #fdba74); }
.hx-card-art.cat-cafe { background: linear-gradient(145deg, #5b3a29, #d6b79b); }
.hx-card-art.cat-park, .hx-card-art.cat-leisure { background: linear-gradient(145deg, #14532d, #86efac); }
.hx-card-art.cat-fun, .hx-card-art.cat-amusement { background: linear-gradient(145deg, #1d4e89, #7dd3fc); }
.hx-card-art.cat-sight, .hx-card-art.cat-hotel, .hx-card-art.cat-culture { background: linear-gradient(145deg, #44403c, #d6d3d1); }
.hx-chip { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: #141816; font-size: .75rem; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.hx-rate { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(20,24,22,.78); color: #ffd36b; font-size: .78rem; font-weight: 800; }
.hx-card-body { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; flex: 1; }
.hx-card-body h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; font-weight: 800; }
.hx-card-body p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: var(--faint); font-size: .8rem; font-weight: 600; }
.hx-card-meta i { font-style: normal; opacity: .5; }
.hx-ok { color: var(--hx-brand); font-weight: 800; }
.hx-ok::before { content: "✓ "; }

/* Featured grid: first card is large */
.hx-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hx-feature-cell.is-lead { grid-column: span 2; grid-row: span 2; }
.hx-feature-cell.is-lead .hx-card-media { aspect-ratio: 4 / 3; }
.hx-feature-cell.is-lead .hx-card-body h3 { font-size: 1.5rem; }
.hx-feature-cell.is-lead .hx-card-body p { font-size: 1rem; -webkit-line-clamp: 4; }

/* Generic grid for listings */
.hx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

/* Horizontal rail */
.hx-rail-wrap { position: relative; }
.hx-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; }
.hx-rail-item { flex: 0 0 min(300px, 78vw); scroll-snap-align: start; }
.hx-rail-btn { position: absolute; top: 38%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--hx-surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--hx-shadow); }
.hx-rail-btn.is-prev { inset-inline-start: -14px; }
.hx-rail-btn.is-next { inset-inline-end: -14px; }
html[dir="rtl"] .hx-rail-btn svg { transform: scaleX(-1); }
.hx-rail-btn:hover { background: var(--hx-brand); color: #fff; }
.hx-rail-btn[disabled] { opacity: .35; pointer-events: none; }

/* ---------- Pin tiles ---------- */
.platform .hx-pin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 0; }
.platform .hx-pin-grid .explore-tile { aspect-ratio: 4 / 5; border-radius: var(--hx-r); box-shadow: var(--hx-shadow); }
.platform .hx-pin-grid .explore-tile-body strong { font-size: 1rem; }
.hx-tile-kind { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 1; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.9); color: #141816; font-size: .74rem; font-weight: 800; }
.platform .explore-like { inset-block-start: 10px; inset-inline-end: 10px; }

/* ---------- Map ---------- */
.platform .hx-map { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--hx-surface); box-shadow: var(--hx-shadow); margin: 0; padding: 0; }
.hx-map-main { position: relative; min-width: 0; }
.hx-map-main .mp-leaflet { height: 520px; border-radius: 0; border: 0; }
.hx-map-main .map-open-row { padding: 10px 12px; border-top: 1px solid var(--line); margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hx-map-list { display: grid; align-content: start; max-height: 574px; overflow-y: auto; border-inline-start: 1px solid var(--line); }
.hx-map-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.hx-map-item:last-child { border-bottom: 0; }
.hx-map-thumb { width: 64px; height: 64px; border-radius: 12px; background: linear-gradient(145deg, #2f5d50, #8aa899) center / cover; display: block; }
.hx-map-item a { color: inherit; text-decoration: none; }
.hx-map-item strong { display: block; font-size: .96rem; line-height: 1.35; }
.hx-map-item span { color: var(--muted); font-size: .8rem; }
.hx-map-go { border: 1px solid var(--line); background: var(--hx-surface); color: var(--hx-brand); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.hx-map-go:hover { background: var(--hx-brand); color: #fff; }

/* ---------- Feed ---------- */
.hx-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--chip); }
.hx-tabs a { padding: 8px 18px; border-radius: 999px; font-weight: 800; color: var(--muted); text-decoration: none; }
.hx-tabs a.is-on { background: var(--hx-surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.hx-feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.hx-feed { display: grid; gap: 20px; }
.platform .hx-post { border-radius: 20px; background: var(--hx-surface); box-shadow: var(--hx-shadow); border: 1px solid var(--line); }
.platform .hx-post .ig-post-media { aspect-ratio: 16 / 10; }
.platform .hx-post .ig-post-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.35)); pointer-events: none; }
.hx-media-tag { position: absolute; inset-inline-start: 12px; inset-block-end: 12px; z-index: 1; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: #141816; font-weight: 800; font-size: .8rem; }
.hx-kind { padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--hx-brand); font-size: .75rem; font-weight: 800; white-space: nowrap; flex: none; }
.platform .hx-post .ig-act { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; padding: 0; background: var(--chip); font-size: 1.15rem; line-height: 1; }
.platform .hx-post .ig-act[href*="#comments"] { width: auto; padding: 0 14px; border-radius: 999px; font-size: .85rem; }
.platform .hx-post .ig-act.is-on { background: #fde2e7; color: #c23b55; }
.platform .hx-post .ig-post-actions { padding: 12px 14px 6px; }
.platform .hx-post .ig-post-caption strong { font-size: 1.1rem; }
.feed-more { justify-self: center; }
.hx-side { display: grid; gap: 16px; position: sticky; top: 84px; }
.hx-side-card { display: block; border: 1px solid var(--line); background: var(--hx-surface); border-radius: var(--hx-r); padding: 18px; box-shadow: var(--hx-shadow); color: inherit; text-decoration: none; }
.hx-join { display: grid; gap: 10px; background: linear-gradient(150deg, var(--hx-brand-2), var(--hx-brand)); color: #fff; border: 0; }
.hx-join strong { font-size: 1.2rem; }
.hx-join p { margin: 0; opacity: .92; line-height: 1.7; font-size: .92rem; }
.platform .hx-join .btn { background: #fff; color: var(--hx-brand-2); justify-self: start; }
html[data-theme="dark"] .hx-join { color: #fff; }
html[data-theme="dark"] .platform .hx-home .hx-join .btn { background: #fff; color: var(--hx-brand); }
.hx-link { color: inherit; font-weight: 800; font-size: .88rem; opacity: .9; }
.hx-side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.hx-side-head a { font-size: .85rem; color: var(--hx-brand); font-weight: 800; text-decoration: none; }
.hx-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hx-people a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: inherit; text-decoration: none; }
.hx-people a:hover { background: var(--chip); }
.hx-people strong { display: block; font-size: .95rem; }
.hx-people small { color: var(--muted); }
.hx-tour { position: relative; min-height: 190px; padding: 0; overflow: hidden; color: #fff; background: #123 var(--hx-img) center / cover; isolation: isolate; display: flex; align-items: flex-end; }
.hx-tour-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(5,18,14,.88)); }
.hx-tour-body { display: grid; gap: 4px; padding: 18px; }
.hx-tour-body em { font-style: normal; font-size: .75rem; font-weight: 800; opacity: .85; }
.hx-tour-body strong { font-size: 1.25rem; }
.hx-tour-body small { opacity: .9; line-height: 1.6; }

/* ---------- Steps ---------- */
.hx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hx-steps li { position: relative; padding: 24px; border-radius: var(--hx-r); border: 1px solid var(--line); background: var(--hx-surface); box-shadow: var(--hx-shadow); display: grid; gap: 8px; }
.hx-step-n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--hx-brand); color: #fff; font-weight: 800; font-size: 1.1rem; }
.hx-steps strong { font-size: 1.15rem; }
.hx-steps p { margin: 0; color: var(--muted); line-height: 1.8; }
.hx-seo { padding-block: 36px 20px; color: var(--muted); line-height: 1.9; }
.hx-seo p { margin: 0; max-width: 80ch; }

/* ---------- Page hero (subpages) ---------- */
.hx-phero { position: relative; isolation: isolate; color: #fff; background: #0d2a22 var(--hx-img) center / cover; padding-block: 56px 40px; margin-bottom: 8px; }
.hx-phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,22,17,.62), rgba(6,22,17,.86)); }
.hx-phero-in { display: grid; gap: 12px; }
.hx-kicker { margin: 0; font-weight: 800; font-size: .85rem; color: #5df2b9; letter-spacing: .04em; }
html[dir="ltr"] .hx-kicker { text-transform: uppercase; }
.hx-phero h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; font-weight: 800; text-wrap: balance; }
.hx-lead { margin: 0; max-width: 62ch; line-height: 1.85; opacity: .92; font-size: 1.05rem; }
.hx-phero-stats { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hx-phero-stats li { display: grid; padding: 10px 16px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); min-width: 92px; }
.hx-phero-stats strong { font-size: 1.3rem; }
.hx-phero-stats span { font-size: .78rem; opacity: .85; }
.hx-phero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.platform .hx-phero .btn { background: #fff; color: #0b4d3f; }
.platform .hx-phero .btn-ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.hx-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; opacity: .85; }
.hx-crumbs a { color: #fff; text-decoration: none; }
.hx-crumbs a:hover { text-decoration: underline; }
.hx-crumbs span::before { content: "‹"; margin-inline-end: 6px; opacity: .6; }
html[dir="ltr"] .hx-crumbs span::before { content: "›"; }

.hx-page { padding-block: 28px 16px; }
.hx-tools { display: grid; gap: 14px; margin-bottom: 22px; padding: 16px; background: var(--hx-surface); border: 1px solid var(--line); border-radius: var(--hx-r); box-shadow: var(--hx-shadow); }
.hx-tools form { display: flex; gap: 10px; flex-wrap: wrap; }
.hx-tools input[type="search"], .hx-tools input[type="text"], .hx-tools select { flex: 1; min-width: 180px; min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 14px; font: inherit; }
.hx-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-pills a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--hx-surface); color: var(--muted); font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.hx-pills a:hover { color: var(--ink); border-color: var(--hx-brand); }
.hx-pills a.is-on { background: var(--hx-brand); color: #fff; border-color: transparent; }
.hx-count { color: var(--muted); font-weight: 700; margin: 0 0 14px; }
.hx-empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--hx-r); color: var(--muted); display: grid; gap: 12px; justify-items: center; }

/* ---------- People ---------- */
.hx-people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.hx-person { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 22px 16px; background: var(--hx-surface); border: 1px solid var(--line); border-radius: var(--hx-r); box-shadow: var(--hx-shadow); }
.hx-person a { color: inherit; text-decoration: none; display: grid; gap: 8px; justify-items: center; }
.hx-person .person-avatar { width: 72px; height: 72px; font-size: 1.4rem; }
.hx-person strong { font-size: 1.05rem; }
.hx-person small { color: var(--muted); }

/* ---------- Place detail ---------- */
.hx-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-block: 28px; }
.hx-detail-main { display: grid; gap: 22px; min-width: 0; }
.hx-panel { background: var(--hx-surface); border: 1px solid var(--line); border-radius: var(--hx-r); padding: 22px; box-shadow: var(--hx-shadow); }
.hx-panel h2 { margin: 0 0 10px; font-size: 1.25rem; }
.hx-panel p { line-height: 1.95; margin: 0 0 10px; }
.hx-info { display: grid; gap: 14px; position: sticky; top: 84px; }
.hx-info dl { margin: 0; display: grid; gap: 12px; }
.hx-info dt { font-size: .78rem; color: var(--faint); font-weight: 800; }
.hx-info dd { margin: 2px 0 0; font-weight: 700; line-height: 1.7; }
.hx-credit { font-size: .8rem; color: var(--faint); margin: 8px 0 0; }
.hx-credit a { color: inherit; }
.hx-cover { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--hx-soft); box-shadow: var(--hx-shadow); }
.hx-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.hx-badge { padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); font-weight: 800; font-size: .82rem; }

/* ---------- Footer (matches light/dark surface — no dark-green island) ---------- */
.platform .hx-foot,
.hx-foot {
  background: var(--hx-surface);
  color: var(--hx-muted);
  margin-top: 28px;
  margin-bottom: 0;
  padding: 36px 0 calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hx-line);
}
.hx-foot a { color: var(--hx-ink); text-decoration: none; opacity: .88; }
.hx-foot a:hover { color: var(--hx-brand); opacity: 1; }
.hx-foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.hx-foot-brand { display: grid; gap: 12px; align-content: start; }
.hx-foot .logo { color: var(--hx-ink); }
.hx-foot-brand p { margin: 0; line-height: 1.8; max-width: 38ch; color: var(--hx-muted); }
.hx-foot-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-foot-langs a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 980px; background: rgba(120,120,128,.12); border: 0; font-weight: 700; font-size: .85rem; color: var(--hx-ink); }
html[dir="rtl"] .hx-foot-langs a { padding: 6px 8px 6px 12px; }
.hx-foot-langs a[aria-current="true"] { background: var(--accent-soft); color: var(--hx-brand); }
.hx-foot .flag { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; }
.hx-foot-col { display: grid; gap: 8px; align-content: start; }
.hx-foot-col strong { color: var(--hx-ink); margin-bottom: 2px; display: block; font-size: .92rem; }
.hx-foot-bar { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--hx-line); font-size: .88rem; color: var(--hx-muted); }
.platform .foot.hx-foot nav { display: grid; }
.platform main { padding-bottom: 12px; }
@media (max-width: 900px) {
  .platform { padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important; }
  .platform .hx-foot { padding-bottom: 12px; margin-top: 16px; }
  .hx-foot-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hx-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-feed-layout { grid-template-columns: 1fr; }
  .hx-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform .hx-pin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hx-detail { grid-template-columns: 1fr; }
  .hx-info { position: static; }
  .hx-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .platform .wrap { width: calc(100% - 28px); }
  .hx-hero { min-height: 640px; }
  .hx-hero-body { padding-block: 48px 18px; }
  .hx-search { border-radius: 16px; flex-wrap: wrap; }
  .hx-search .btn { width: 100%; }
  .hx-search svg { display: none; }
  .hx-stats { width: 100%; }
  .hx-stats li { flex: 1 1 calc(50% - 10px); }
  .hx-stats a { min-width: 0; padding: 10px 14px; }
  .hx-caption { display: none; }
  .hx-sec { padding-block: 40px 4px; }
  .hx-worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hx-world { aspect-ratio: 1; }
  .hx-world-body strong { font-size: 1.05rem; }
  .hx-world-body span { display: none; }
  .hx-feature-grid { grid-template-columns: 1fr; }
  .hx-feature-cell.is-lead { grid-column: auto; grid-row: auto; }
  .hx-feature-cell.is-lead .hx-card-body h3 { font-size: 1.2rem; }
  .platform .hx-pin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform .hx-map { grid-template-columns: 1fr; }
  .hx-map-main .mp-leaflet { height: 340px; }
  .hx-map-list { max-height: 360px; border-inline-start: 0; border-top: 1px solid var(--line); }
  .hx-side { grid-template-columns: 1fr; }
  .hx-steps { grid-template-columns: 1fr; }
  .hx-rail-btn { display: none; }
  .hx-foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .hx-phero { padding-block: 40px 28px; }
  .platform .ig-nav .nav-row { min-height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-slide, .hx-caption span { animation: none; }
  .hx-slide:not(:first-child), .hx-caption span:not(:first-child) { display: none; }
  .hx-card, .hx-world img, .hx-card-media img { transition: none; }
}

/* Place detail extras */
.hx-info .mp-leaflet { height: 260px; border-radius: 12px; }
.hx-info .map-open-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hx-phero.is-place { padding-block: 72px 44px; }
.hx-detail .review-card { margin-top: 10px; }
.hx-detail textarea { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); padding: 12px; font: inherit; }

/* Fixes after first review */
.hx-feature-cell.is-lead .hx-card > a { display: flex; }
.hx-feature-cell.is-lead .hx-card-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 280px; }
.hx-rail { scrollbar-width: none; }
.hx-rail::-webkit-scrollbar { display: none; }

.platform .hx-post .ig-mini-avatar { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: linear-gradient(145deg, #cfe3d8, #e7dcc0); color: #1a2a22; font-weight: 800; }
.platform .hx-post .ig-mini-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.platform .hx-post .ig-post-user > span:last-child { min-width: 0; }
.platform .hx-post .ig-post-user strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.platform .hx-post .ig-post-user small { white-space: nowrap; }
.platform .hx-home .hx-join .btn { background: #fff; color: var(--hx-brand); }
.platform .hx-home .hx-join .btn:hover { filter: brightness(.95); }

/* Unified primary button across the hub — text always contrasts with brand fill */
.platform main .btn:not(.btn-ghost) { background: var(--hx-brand); color: #fff; }
html[data-theme="dark"] .platform main .btn:not(.btn-ghost) { background: var(--hx-brand); color: #fff; }
.platform .hx-phero .btn:not(.btn-ghost) { background: #fff; color: #007aff; }
.platform .hx-home .hx-join .btn:not(.btn-ghost),
.platform .hx-cta-card .btn:not(.btn-ghost) { background: #fff; color: var(--hx-brand); }
.platform .hx-cta-card .btn.btn-ghost { color: inherit; }

/* Theme-aware text/surfaces sync */
.platform .btn,
.platform .hx-pills a,
.platform .chip,
.platform .theme-btn,
.platform .hx-auth-tabs button {
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.platform .uname {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
.mp-popup { display: grid; gap: 8px; min-width: 140px; font: inherit; }
.mp-popup .mp-marker-link { color: var(--hx-brand); font-weight: 800; text-decoration: none; }
.mp-nav-btn {
  border: 0; border-radius: 10px; padding: 8px 10px; cursor: pointer;
  background: var(--hx-brand); color: #fff; font: inherit; font-weight: 700; font-size: .85rem;
}
.platform .explore-like { background: rgba(0,0,0,.45); }
.platform .explore-like.is-on { background: #c23b55; }

/* Pins page */
@media (min-width: 981px) { .platform .ig-explore-page { max-width: none; } }
.platform .explore-grid-dense { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(210px, 1fr); gap: 14px; overflow: visible; border-radius: 0; }
.platform .explore-grid-dense .explore-tile { border-radius: var(--hx-r); height: 100%; aspect-ratio: auto; box-shadow: var(--hx-shadow); }
@media (max-width: 1080px) { .platform .explore-grid-dense { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .platform .explore-grid-dense { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(170px, 1fr); gap: 10px; } }
.platform .ig-map-details { border-top: 0; padding-top: 0; margin-top: 36px; }
.platform .ig-map-details summary { font-size: 1.3rem; font-weight: 800; margin-bottom: 14px; }

/* iOS-leaning home (calmer density) */
.ios-home .hx-hero { min-height: clamp(460px, 68vh, 640px); }
.ios-home .hx-hero-body { gap: 14px; padding-block: 64px 36px; }
.ios-home .hx-eyebrow { background: rgba(255,255,255,.18); border: 0; font-weight: 600; letter-spacing: .02em; }
.ios-home .hx-dot { display: none; }
.ios-home .hx-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); max-width: 16ch; letter-spacing: -.03em; }
.ios-home .hx-hero-lead { max-width: 40ch; opacity: .9; font-size: 1.05rem; }
.ios-home .hx-search { border-radius: 980px; padding: 6px 6px 6px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
html[dir="rtl"] .ios-home .hx-search { padding: 6px 18px 6px 6px; }
.ios-home .hx-search .btn { border-radius: 980px; min-height: 42px; }
.ios-home .hx-quick a { border-radius: 980px; background: rgba(255,255,255,.16); border: 0; padding: 8px 14px; font-weight: 600; backdrop-filter: blur(10px); }
.ios-home .hx-hero-meta { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: rgba(255,255,255,.82); font-size: .92rem; }
.ios-home .hx-hero-meta a { color: inherit; text-decoration: none; font-weight: 600; }
.ios-home .hx-sec { padding-block: 40px 16px; }
.ios-home .hx-sec-head { margin-bottom: 16px; }
.ios-home .hx-sec-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); letter-spacing: -.02em; font-weight: 800; }
.ios-home .hx-sec-head p { color: color-mix(in srgb, var(--hx-ink) 58%, transparent); }
.ios-home .hx-more { border-radius: 980px; padding: 8px 14px; background: rgba(120,120,128,.12); color: var(--hx-brand); font-weight: 700; }
.hx-worlds-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hx-worlds-compact .hx-world { aspect-ratio: 16/10; border-radius: var(--hx-r-lg); overflow: hidden; box-shadow: none; border: 1px solid var(--hx-line); }
.hx-worlds-compact .hx-world-body { padding: 14px; }
.hx-worlds-compact .hx-world-body strong { font-size: 1.05rem; }
.hx-worlds-compact .hx-world-count { display: none; }
.hx-grid-home { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hx-grid-home .hx-card {
  border-radius: var(--hx-r-lg);
  border: 1px solid var(--hx-line);
  box-shadow: none;
  background: var(--hx-surface);
  overflow: hidden;
  transition: border-color .18s ease, transform .15s ease;
}
.hx-grid-home .hx-card:hover {
  border-color: color-mix(in srgb, var(--hx-brand) 28%, var(--hx-line));
  transform: translateY(-2px);
  box-shadow: none;
}
.hx-grid-home .hx-card-media { aspect-ratio: 4/3; }
.hx-map-solo { display: block; border-radius: var(--hx-r-lg); overflow: hidden; border: 1px solid var(--hx-line); background: var(--hx-surface); }
.hx-map-solo .mp-leaflet { height: min(420px, 56vh); border-radius: 0; }
.hx-map-solo .map-open-row, .hx-map-solo .mp-open-chips { display: none !important; }
.hx-review-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hx-review-card { background: var(--hx-surface); border: 1px solid var(--hx-line); border-radius: var(--hx-r-lg); padding: 16px 18px; display: grid; gap: 10px; min-height: 150px; }
.hx-review-place { font-weight: 800; color: var(--hx-brand); text-decoration: none; }
.hx-review-card p { margin: 0; line-height: 1.7; color: color-mix(in srgb, var(--hx-ink) 88%, transparent); }
.hx-review-card footer { display: flex; justify-content: space-between; gap: 8px; font-size: .86rem; color: color-mix(in srgb, var(--hx-ink) 55%, transparent); }
.hx-stars { color: var(--hx-sun); font-weight: 700; }
.hx-cta-band { padding-bottom: 48px; }
.hx-compose-prompt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--hx-line);
  background: var(--hx-surface);
  color: inherit;
  text-decoration: none;
  font: inherit;
  text-align: start;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.hx-compose-prompt:hover {
  border-color: color-mix(in srgb, var(--hx-brand) 35%, var(--hx-line));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  transform: translateY(-1px);
}
.hx-compose-avatar,
.hx-compose-prompt .person-avatar,
.hx-compose-prompt .hx-compose-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  font-weight: 700;
  background: linear-gradient(160deg, #64d2ff, #007aff 55%, #5856d6);
  color: #fff;
}
.hx-compose-avatar.is-guest { font-size: 1.4rem; line-height: 1; }
.hx-compose-prompt .person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hx-compose-fake {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.hx-compose-fake strong {
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -.01em;
}
.hx-compose-fake em {
  font-style: normal;
  font-size: .88rem;
  color: color-mix(in srgb, var(--hx-ink) 55%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hx-compose-go {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 980px;
  background: var(--hx-brand);
  color: #fff;
  font-size: .86rem;
  font-weight: 750;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .hx-compose-prompt { grid-template-columns: auto 1fr; gap: 12px; }
  .hx-compose-go { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
}
.platform .lang-menu .flag { border-radius: 5px; width: 26px; height: 18px; object-fit: cover; box-shadow: 0 0 0 1px var(--hx-line); }
.platform .lang-menu > summary, .platform .lang-menu-panel { border-radius: 14px; }
.platform .hx-foot-bar { justify-content: center; font-size: .9rem; }
@media (max-width: 980px) {
  .hx-worlds-compact, .hx-grid-home, .hx-review-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ios-home .hx-hero { min-height: 520px; }
  .hx-worlds-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-grid-home, .hx-review-rail { grid-template-columns: 1fr; }
  .hx-map-solo .mp-leaflet { height: 300px; }
}

/* ——— auth modal ——— */
html.hx-auth-open, html.hx-auth-open body { overflow: hidden; }
.hx-auth {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.hx-auth[hidden] { display: none !important; }
.hx-auth-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  opacity: 0; transition: opacity .28s ease;
}
.hx-auth.is-open .hx-auth-backdrop { opacity: 1; }
.hx-auth-panel {
  position: relative; z-index: 1;
  width: min(420px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: var(--hx-surface, var(--bg));
  color: var(--hx-ink, var(--ink));
  border: 1px solid var(--hx-line, var(--line));
  border-radius: 22px;
  padding: 22px 20px 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
  transform: translateY(18px) scale(.96);
  opacity: 0;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .28s ease;
}
.hx-auth.is-open .hx-auth-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.hx-auth-x {
  position: absolute; inset-block-start: 12px; inset-inline-end: 12px;
  width: 36px; height: 36px; border: 0; border-radius: 12px;
  background: rgba(120,120,128,.12); color: inherit; font-size: 1.35rem; cursor: pointer;
}
.hx-auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin-bottom: 16px; margin-inline-end: 36px;
  border-radius: 14px; background: rgba(120,120,128,.12);
}
.hx-auth-tabs button {
  border: 0; background: transparent; color: inherit;
  font: inherit; font-weight: 700; padding: 10px 8px; border-radius: 11px; cursor: pointer;
}
.hx-auth-tabs button.is-on {
  background: var(--hx-surface, #fff);
  color: var(--hx-brand, #007aff);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
html[data-theme="dark"] .hx-auth-tabs button.is-on { background: #2c2c2e; }
.hx-auth-pane h2 { margin: 0 0 6px; font-size: 1.35rem; letter-spacing: -.02em; }
.hx-auth-pane .muted { margin: 0 0 14px; }
.hx-auth-form { display: grid; gap: 12px; }
.hx-auth-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.hx-auth-form input {
  min-height: 46px; border-radius: 12px; border: 1px solid var(--hx-line, var(--line));
  background: var(--bg); color: inherit; padding: 0 14px; font: inherit;
}
.hx-auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hx-auth-form .btn { min-height: 48px; border-radius: 14px; font-weight: 800; }
@media (prefers-reduced-motion: reduce) {
  .hx-auth-backdrop, .hx-auth-panel { transition: none; }
}

/* ——— page polish: places / people / explore / talk ——— */
.hx-tools-soft {
  background: color-mix(in srgb, var(--hx-surface) 88%, transparent);
  border-radius: 18px;
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.hx-tools-soft .hx-pills a,
.hx-tools .hx-pills a {
  border-radius: 12px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.hx-tools .hx-pills a:hover { transform: translateY(-1px); }
.hx-filter-form { align-items: stretch; }
.places-page .hx-count { margin: 0 0 14px; color: color-mix(in srgb, var(--hx-ink) 55%, transparent); font-weight: 600; }
.hx-people-modern .hx-person {
  border-radius: 18px;
  border: 1px solid var(--hx-line);
  background: var(--hx-surface);
  box-shadow: none;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.hx-people-modern .hx-person:hover {
  border-color: color-mix(in srgb, var(--hx-brand) 35%, var(--hx-line));
  transform: translateY(-2px);
}
.hx-person-bio { margin: 4px 0 0; line-height: 1.55; font-size: .92rem; }
.hx-worlds-pro .hx-world {
  border-radius: 20px;
  box-shadow: none;
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
}
.hx-worlds-pro .hx-world-body strong { letter-spacing: -.02em; }
.talk-gate-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
/* Full-bleed talk — do not box the messenger shell */
.hx-talk-shell {
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  min-height: 0;
}
@media (max-width: 900px) {
  .platform.talk-app {
    padding-bottom: 0 !important;
  }
}
.admin-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.admin-split > div { display: grid; gap: 8px; align-content: start; }
.admin-split h2 { margin: 0; font-size: 1.1rem; }
@media (max-width: 760px) {
  .hx-auth-row { grid-template-columns: 1fr; }
  .admin-split { grid-template-columns: 1fr; }
  .hx-worlds-pro { grid-template-columns: 1fr 1fr; }
}

/* ——— Social network visual polish (hub only) ——— */
.platform.hub {
  font-feature-settings: "ss01" on;
  letter-spacing: -.01em;
}
.platform .ig-nav {
  border-bottom: 0.5px solid var(--hx-line);
  background: color-mix(in srgb, var(--hx-surface) 78%, transparent);
}
.platform .ig-nav .brand {
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 1.15rem;
}
.platform .ig-nav .links a {
  font-size: .9rem;
  font-weight: 650;
  color: var(--hx-muted);
}
.platform .ig-nav .links a[aria-current="page"] {
  color: var(--hx-brand);
  background: var(--accent-soft);
}

/* Home: cleaner first viewport + media-forward tiles */
.ios-home .hx-hero-meta { display: none; }
.ios-home .hx-hero-lead { max-width: 34ch; }
.ios-home .hx-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ios-home .hx-sec-head p { font-size: .92rem; max-width: 42ch; }
.hx-worlds-compact .hx-world {
  border: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
  transform: translateZ(0);
}
.hx-worlds-compact .hx-world:hover img { transform: scale(1.04); }
.hx-worlds-compact .hx-world img { transition: transform .45s ease; }
.hx-worlds-compact .hx-world-shade {
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.62));
}
.hx-grid-home .hx-card {
  border: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  background: var(--hx-surface);
}
.hx-grid-home .hx-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .1);
  border-color: transparent;
}
.hx-grid-home .hx-card-body {
  padding: 14px 14px 16px;
  display: grid;
  gap: 6px;
}
.hx-grid-home .hx-card-body h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -.02em;
  line-height: 1.35;
}
.hx-grid-home .hx-card-body p {
  margin: 0;
  font-size: .88rem;
  color: var(--hx-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hx-review-card {
  border: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .05);
}
.hx-compose-prompt {
  border: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f2f7ff 100%);
  box-shadow: 0 10px 28px rgba(0, 122, 255, .08);
}
html[data-theme="dark"] .hx-compose-prompt {
  background: linear-gradient(135deg, #1c1c1e 0%, #122033 100%);
  box-shadow: none;
}

/* Pins / votes strip */
.platform .hx-pin-grid a,
.ios-home .hx-pin a {
  border-radius: 16px;
  border: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

/* People */
.hx-people-modern {
  gap: 14px;
}
.hx-people-modern .hx-person {
  border: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
  border-radius: 22px;
  padding: 22px 18px 18px;
  background: var(--hx-surface);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hx-people-modern .hx-person:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .1);
}
.hx-people-modern .person-avatar,
.hx-people-modern .person-avatar.lg {
  width: 76px;
  height: 76px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hx-brand) 18%, transparent);
}
.people-page .hx-tools-soft {
  background: var(--hx-surface);
  border: 0;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  margin-bottom: 18px;
}
.platform .hx-phero {
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}
.platform .hx-phero h1 {
  letter-spacing: -.03em;
}

/* Feed / activity cards */
.platform .ig-post,
.platform .feed-card,
.platform .activity-row.panel {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
  background: var(--hx-surface);
  overflow: hidden;
}
.platform .person-chip {
  border: 0;
  background: var(--hx-surface);
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
  border-radius: 16px;
}
.platform .person-avatar {
  background: linear-gradient(160deg, #64d2ff 0%, #007aff 48%, #5856d6 100%);
}

/* Talk pick empty — social network tone */
.platform .tg-pick-empty strong {
  color: var(--hx-ink);
  font-weight: 800;
  letter-spacing: -.03em;
}
.platform .tg-col-room {
  background-color: #eef1f6;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(0,122,255,.06), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(88,86,214,.05), transparent 42%);
}
.platform .tg-bubble.mine {
  background: #d6ebff;
  box-shadow: 0 1px 2px rgba(0, 122, 255, .12);
}
.platform .tg-bubble {
  box-shadow: 0 1px 2px rgba(16, 35, 47, .08);
}
.platform .tg-folders button.is-on {
  background: rgba(0, 122, 255, .12);
  color: #007aff;
}
.platform .tg-drawer-panel {
  border-radius: 0 20px 20px 0;
}
html[dir="rtl"] .platform .tg-drawer-panel {
  border-radius: 20px 0 0 20px;
}

/* Talk inbox polish */
.platform.talk-app .tg-col-list .tg-col-head {
  background: linear-gradient(180deg, #0a84ff 0%, #007aff 100%);
}
.platform .tg-search {
  margin: 10px 12px 8px;
  border: 0;
  border-radius: 12px;
  background: #f2f2f7;
  padding: 10px 14px;
  font: inherit;
  font-size: .92rem;
}
.platform .tg-inbox-row {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(60, 60, 67, .06);
  transition: background .14s ease;
}
.platform .tg-inbox-row:active { background: #ebebed; }
.platform .tg-tap-hint {
  font-weight: 650;
  font-size: .72rem;
  color: #007aff;
  background: rgba(0, 122, 255, .1);
  border-radius: 999px;
  padding: 3px 8px;
  flex: 0 0 auto;
}
.platform .tg-guest-card {
  text-align: center;
  justify-items: center;
  padding: 28px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(16, 35, 47, .08);
}
.platform .tg-guest-mark {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #007aff;
  background: linear-gradient(160deg, rgba(100, 210, 255, .35), rgba(0, 122, 255, .18));
  margin-bottom: 4px;
}
.platform .tg-guest-card h1 {
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  letter-spacing: -.03em;
}
.platform .tg-guest-card .talk-gate-actions {
  width: 100%;
  justify-content: center;
}
.platform .tg-guest-card .talk-gate-actions .btn {
  min-width: 7.5rem;
}

/* Tab bar label readability */
.platform .ig-tabbar a span,
.platform .ig-tabbar .tab-create span {
  font-size: .68rem;
  font-weight: 650;
}

@media (max-width: 760px) {
  .hx-grid-home .hx-card,
  .hx-worlds-compact .hx-world,
  .hx-people-modern .hx-person {
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
  }
  .ios-home .hx-sec { padding-block: 28px 12px; }
}

/* Votes + reviews product surfaces */
.votes-page,
.reviews-page { padding-block: 20px 56px; }
.hx-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 0 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hx-soft) 88%, var(--hx-line));
}
.hx-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--hx-muted);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.hx-switch a.is-on {
  background: var(--hx-surface);
  color: var(--hx-ink);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.votes-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background:
    radial-gradient(520px 180px at 100% 0%, rgba(0,122,255,.16), transparent 60%),
    radial-gradient(420px 160px at 0% 100%, rgba(52,199,89,.1), transparent 55%),
    var(--hx-surface);
  border: 1px solid color-mix(in srgb, var(--hx-line) 75%, transparent);
}
.votes-hero h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3.4vw, 2.15rem);
  letter-spacing: -.035em;
}
.votes-hero .lead {
  margin: 8px 0 0;
  max-width: 46ch;
  color: var(--hx-muted);
  line-height: 1.7;
}
.votes-hint {
  margin: 10px 0 0;
  font-size: .86rem;
  font-weight: 650;
  color: #007aff;
}
.votes-cta { min-width: 8.5rem; }
.votes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.votes-sort {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--hx-soft) 90%, var(--hx-line));
}
.votes-sort a {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  font-size: .86rem;
  font-weight: 750;
  color: var(--hx-muted);
  text-decoration: none;
}
.votes-sort a.is-on {
  background: var(--hx-surface);
  color: var(--hx-ink);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.votes-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.votes-filters::-webkit-scrollbar { display: none; }
.votes-filters a { flex: 0 0 auto; white-space: nowrap; }
.votes-count { margin: 0 0 14px; font-size: .9rem; }
.votes-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 750;
  color: #248a3d;
  background: rgba(52, 199, 89, .14);
  border-radius: 999px;
  padding: 5px 10px;
}
.votes-live-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 0 rgba(52, 199, 89, .55);
  animation: voteLivePulse 1.6s ease infinite;
}
@keyframes voteLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, .5); }
  70% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}
.votes-feed,
.votes-explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}
.votes-explore-grid {
  grid-auto-flow: dense;
}
.votes-explore .vote-pin.is-tall .vote-pin-media {
  aspect-ratio: 3 / 4;
}
.votes-explore .vote-pin.is-wide {
  grid-column: span 2;
}
@media (max-width: 720px) {
  .votes-explore .vote-pin.is-wide { grid-column: span 1; }
}
.vote-explore-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.72));
  pointer-events: none;
}
.vote-explore-title {
  position: absolute;
  inset-inline: 12px;
  bottom: 42px;
  color: #fff;
  font-weight: 800;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -.02em;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vote-pin-rail {
  padding: 10px 12px 12px !important;
  gap: 8px !important;
}
.vote-split-compact {
  font-size: .78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.vote-pin-meta-inline {
  color: var(--hx-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 46%;
  text-align: center;
}
.votes-compose-map.is-compact {
  min-height: 220px;
  max-height: 280px;
}
.votes-compose-map.is-compact .leaflet-container,
.votes-compose-map.is-compact [data-mp-map] {
  min-height: 200px;
  height: 220px;
}
.vote-show-cover-hero {
  margin: 0 0 14px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.vote-show-cover-hero img {
  max-height: 460px;
}
.vote-detail-rail {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--hx-line) 80%, transparent);
  background: var(--hx-surface);
}
.vote-actions-lg .vote-choice {
  min-height: 48px;
  font-size: 1rem;
}
.vote-detail-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vote-detail-ctas .btn {
  flex: 1 1 140px;
  text-align: center;
}
.votes-toast.is-error {
  background: #ff3b30;
}
.votes-guest-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,122,255,.1);
  color: #007aff;
  font-weight: 650;
  font-size: .9rem;
}
.composer-hint { margin: -4px 0 8px; font-size: .82rem; }
.votes-compose-map .map-open-row,
.votes-compose .map-open-row { display: none !important; }
.vote-cover-preview {
  margin: 0 0 10px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--hx-line) 80%, transparent);
  background: color-mix(in srgb, var(--hx-surface) 92%, #000);
  aspect-ratio: 16 / 10;
}
.vote-cover-preview[hidden] { display: none !important; }
.vote-cover-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vote-show-cover {
  margin: 12px 0 0;
  border-radius: 18px;
  overflow: hidden;
  background: color-mix(in srgb, var(--hx-surface) 90%, #000);
}
.vote-show-cover img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.vote-pin {
  position: relative;
  display: grid;
  background: var(--hx-surface);
  border: 1px solid color-mix(in srgb, var(--hx-line) 80%, transparent);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.vote-pin:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(16, 35, 47, .1);
}
.vote-pin.is-hot {
  border-color: color-mix(in srgb, #ff9f0a 45%, var(--hx-line));
  box-shadow: 0 12px 32px rgba(255, 159, 10, .12);
}
.vote-pin.is-voted {
  border-color: color-mix(in srgb, #007aff 35%, var(--hx-line));
}
.vote-pin.is-flash {
  animation: votePinFlash .55s ease;
}
@keyframes votePinFlash {
  0% { box-shadow: 0 0 0 0 rgba(0,122,255,.35); }
  100% { box-shadow: 0 16px 36px rgba(16, 35, 47, .1); }
}
.vote-hot-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  inset-inline-end: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  color: #9a3412;
  background: rgba(255, 214, 10, .92);
  backdrop-filter: blur(6px);
}
.vote-pin-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: center/cover no-repeat linear-gradient(145deg, #64d2ff, #007aff 48%, #5856d6);
  text-decoration: none;
  overflow: hidden;
}
.vote-pin-media.is-empty { filter: saturate(1.05); }
.vote-pin-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.vote-pin-media.has-cover .vote-kind-chip,
.vote-pin-media.has-cover .vote-explore-shade,
.vote-pin-media.has-cover .vote-explore-title,
.vote-pin-media.has-cover .ig-heart-burst {
  z-index: 1;
}
.vote-kind-chip {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 750;
  color: #fff;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(8px);
}
.vote-dbl-hint {
  position: absolute;
  z-index: 2;
  inset-inline-end: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 650;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.35);
  opacity: .85;
  transform: none;
  transition: opacity .2s ease;
  pointer-events: none;
}
.vote-pin:hover .vote-dbl-hint { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .vote-dbl-hint { opacity: 0; }
  .vote-pin:hover .vote-dbl-hint { opacity: 1; }
}
.vote-pin-media .ig-heart-burst {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 4rem;
  color: #ff375f;
  opacity: 0;
  pointer-events: none;
  transform: scale(.4);
}
.vote-pin-media .ig-heart-burst.is-show {
  animation: voteHeartPop .7s ease forwards;
}
@keyframes voteHeartPop {
  0% { opacity: 0; transform: scale(.4); }
  35% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.4); }
}
.vote-pin-body {
  padding: 14px 14px 12px;
  display: grid;
  gap: 8px;
}
.vote-pin-body h2 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -.02em;
  line-height: 1.35;
}
.vote-pin-body h2 a {
  color: inherit;
  text-decoration: none;
}
.vote-pin-body > p {
  margin: 0;
  color: var(--hx-muted);
  font-size: .9rem;
  line-height: 1.65;
}
.vote-pin-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--hx-muted);
}
.vote-pin-body .person-avatar.sm,
.review-feed-meta .person-avatar.sm {
  width: 26px;
  height: 26px;
  font-size: .68rem;
}
.vote-split {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(120,120,128,.14);
  margin-top: 2px;
}
.vote-split i {
  display: block;
  height: 100%;
  transition: width .4s cubic-bezier(.2,.8,.2,1);
}
.vote-split .is-up { background: linear-gradient(90deg, #30d158, #34c759); }
.vote-split .is-down { background: linear-gradient(90deg, #ff6482, #ff375f); }
.vote-split-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: .78rem;
  color: var(--hx-muted);
}
.vote-split-labels b { color: var(--hx-ink); font-weight: 800; }
.vote-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}
.vote-actions.is-pulse .vote-choice.is-on {
  animation: voteChoicePop .38s ease;
}
@keyframes voteChoicePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.vote-choice {
  border: 1px solid color-mix(in srgb, var(--hx-line) 85%, transparent);
  border-radius: 16px;
  min-height: 52px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  font: inherit;
  cursor: pointer;
  background: color-mix(in srgb, var(--hx-soft) 55%, var(--hx-surface));
  color: var(--hx-ink);
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.vote-choice:active { transform: scale(.96); }
.vote-choice-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .85rem;
  font-weight: 800;
  background: rgba(120,120,128,.12);
}
.vote-choice-label {
  font-size: .86rem;
  font-weight: 750;
  text-align: start;
}
.vote-choice strong {
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}
.vote-choice.vote-up.is-on {
  background: rgba(52,199,89,.16);
  border-color: rgba(52,199,89,.35);
  color: #1f7a33;
}
.vote-choice.vote-up.is-on .vote-choice-ico {
  background: #34c759;
  color: #fff;
}
.vote-choice.vote-down.is-on {
  background: rgba(255,55,95,.12);
  border-color: rgba(255,55,95,.3);
  color: #c4002d;
}
.vote-choice.vote-down.is-on .vote-choice-ico {
  background: #ff375f;
  color: #fff;
}
.vote-choice:hover { filter: brightness(1.02); }
.vote-more {
  justify-self: start;
  font-size: .84rem;
  font-weight: 700;
  color: #007aff;
  text-decoration: none;
  padding: 2px 0 4px;
}
.votes-toast {
  position: fixed;
  inset-inline: 0;
  bottom: calc(var(--tg-tab-h, 64px) + 18px);
  z-index: 40;
  width: min(420px, calc(100% - 28px));
  margin-inline: auto;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(28,28,30,.92);
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  animation: voteToastIn .28s ease;
}
.votes-toast[hidden] { display: none !important; }
@keyframes voteToastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  .votes-hero { padding: 14px; }
  .votes-feed { grid-template-columns: 1fr; gap: 12px; }
  .vote-choice { min-height: 48px; }
  .vote-dbl-hint { display: none; }
}

.reviews-search { margin-bottom: 16px; }
.reviews-feed { display: grid; gap: 12px; }
.review-feed-card {
  background: var(--hx-surface);
  border: 1px solid color-mix(in srgb, var(--hx-line) 80%, transparent);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  gap: 0;
}
.review-feed-place {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--hx-line);
}
.review-feed-media {
  width: 68px;
  height: 52px;
  border-radius: 12px;
  background: center/cover no-repeat linear-gradient(145deg, #8e8e93, #48484a);
}
.review-feed-place strong { display: block; font-size: .98rem; }
.review-feed-place em {
  font-style: normal;
  font-size: .8rem;
  color: var(--hx-muted);
}
.review-feed-body { padding: 13px 14px 15px; display: grid; gap: 10px; }
.review-feed-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.review-feed-meta strong { display: block; font-size: .92rem; }
.review-feed-meta .muted { font-size: .78rem; }
.review-feed-rating {
  display: inline-flex;
  gap: 1px;
  font-size: .95rem;
  letter-spacing: -.05em;
  line-height: 1;
}
.review-feed-rating i {
  font-style: normal;
  color: color-mix(in srgb, var(--hx-muted) 35%, transparent);
}
.review-feed-rating i.is-on { color: #ff9f0a; }
.review-feed-body p { margin: 0; line-height: 1.7; }
.review-feed-more {
  justify-self: start;
  font-weight: 700;
  font-size: .86rem;
  color: var(--hx-brand);
  text-decoration: none;
}
@media (max-width: 700px) {
  .vote-card-main { grid-template-columns: 68px minmax(0, 1fr); }
  .votes-head { align-items: start; }
  .vote-ballot { padding: 8px 6px; }
  .vote-ballot button { min-width: 46px; }
}
