:root {
  --bg: #020a11;
  --panel: #061520;
  --panel-2: #0a1e2b;
  --text: #f5f2e9;
  --muted: #8fa5b2;
  --gold: #dfbb70;
  --gold-soft: #a98247;
  --line: #233b49;
  --line-soft: rgba(255,255,255,.1);
  --glass: rgba(5,18,27,.78);
  --green: #72c6a6;
}

html.dots-restore-pending {
  background: #020a11;
}

html.dots-restore-pending body {
  visibility: hidden;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.world-app { min-height: 100vh; background: var(--bg); }
.topbar {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(16px, 3vw, 34px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(2,10,17,.8);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.08rem;
}
.brand-copy { min-width: 0; }
.brand-copy strong {
  display: block;
  font-size: .78rem;
  letter-spacing: .19em;
  white-space: nowrap;
}
.brand-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .57rem;
  letter-spacing: .15em;
}
.desktop-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.desktop-nav a, .nav-search {
  border: 0;
  padding: 8px 0;
  color: var(--muted);
  background: transparent;
  font-size: .86rem;
  cursor: pointer;
}
.desktop-nav .active, .desktop-nav a:hover, .nav-search:hover { color: var(--text); }
.claim-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #101820;
  background: var(--gold);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}

.claim-button[hidden] {
  display: none !important;
}

.explorer-shell {
  position: relative;
  min-height: 100vh;
  padding-top: 78px;
  background: radial-gradient(circle at 43% 39%, #102e3e 0%, #06141e 47%, #02090f 80%);
  overflow: hidden;
}
.explorer-shell::before {
  content: "";
  position: absolute;
  inset: 78px 0 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56,84,99,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,84,99,.055) 1px, transparent 1px);
  background-size: 38px 38px;
}
.map-stage {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 78px;
  right: 360px;
  bottom: 0;
  min-height: 610px;
  overflow: hidden;
}
.map-copy {
  position: absolute;
  z-index: 6;
  top: 25px;
  left: clamp(18px, 3vw, 36px);
  pointer-events: none;
}
.eyebrow {
  color: var(--gold);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.map-copy h1 {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.055em;
}
.map-copy h1 em { color: var(--gold); font-style: normal; }
.map-copy p { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.world-map { position: absolute; inset: 112px 0 84px; width: 100%; height: calc(100% - 196px); touch-action: none; }
.map-status {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .82rem;
  pointer-events: none;
}
.map-status.hidden { display: none; }
.country {
  fill: #102632;
 stroke: #587586;
stroke-width: .82;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill .18s ease, opacity .18s ease;
}
.country.has-members { fill: #4c4430; }

.country.activity-1 { fill: #4c4430; }
.country.activity-2 { fill: #5f5134; }
.country.activity-3 { fill: #77633a; }
.country.activity-4 { fill: #967b47; }
.country.activity-5 { fill: #b89557; }
.country:hover { fill: #78623e; }
.country.selected { fill: var(--gold); }
.country.dimmed { opacity: .23; }
.member-dot { fill: var(--gold); stroke: #fff5dd; stroke-width: 1.3; pointer-events: none; vector-effect: non-scaling-stroke; }
.member-ring {
  fill: none;
  stroke: #fff5dd;
  stroke-width: 1;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.6s infinite;
}

.member-dot.marker-activity-1 {
  opacity: .82;
}

.member-dot.marker-activity-2 {
  opacity: .9;
  stroke-width: 1.4;
}

.member-dot.marker-activity-3 {
  opacity: 1;
  stroke-width: 1.5;
}

.member-dot.marker-activity-4 {
  opacity: 1;
  stroke-width: 1.7;
}

.member-dot.marker-activity-5 {
  opacity: 1;
  stroke-width: 1.9;
}

.member-ring.marker-activity-1 {
  stroke-width: .9;
  animation-duration: 2.8s;
}

.member-ring.marker-activity-2 {
  stroke-width: 1;
  animation-duration: 2.5s;
}

.member-ring.marker-activity-3 {
  stroke-width: 1.15;
  animation-duration: 2.2s;
}

.member-ring.marker-activity-4 {
  stroke-width: 1.3;
  animation-duration: 1.9s;
}

.member-ring.marker-activity-5 {
  stroke-width: 1.5;
  animation-duration: 1.6s;
}

@keyframes pulse { 0% { transform: scale(.7); opacity: .8; } 75%,100% { transform: scale(2.5); opacity: 0; } }

.map-controls {
  position: absolute;
  z-index: 8;
  left: 18px;
  bottom: 96px;
  display: flex;
  gap: 8px;
}
.map-controls button, .round-control {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: var(--text);
  background: rgba(4,16,25,.84);
  cursor: pointer;
}
.map-hint {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  max-width: calc(100% - 170px);
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(4,16,25,.74);
  backdrop-filter: blur(10px);
  font-size: .7rem;
  text-align: center;
  white-space: nowrap;
}
.map-stats {
  position: absolute;
  z-index: 9;
  left: clamp(16px, 3vw, 34px);
  right: clamp(16px, 3vw, 34px);
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.map-stats article, .country-metrics article {
  padding: 12px 14px;
  border: 1px solid rgba(223,187,112,.18);
  border-radius: 15px;
  background: var(--glass);
  backdrop-filter: blur(14px);
}
.map-stats span, .country-metrics span {
  display: block;
  color: var(--muted);
  font-size: .55rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.map-stats strong { display: block; margin-top: 3px; font-size: 1.2rem; font-weight: 600; }

.country-panel {
  position: absolute;
  z-index: 15;
  top: 78px;
  right: 0;
  bottom: 0;
  width: 360px;
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6,21,32,.97), rgba(3,13,21,.99));
  overflow: auto;
}
.panel-handle { display: none; }
.panel-inner { padding: 28px 24px 30px; }
.panel-head { display: flex; justify-content: space-between; gap: 16px; }
.panel-head h2 { margin: 7px 0 0; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; letter-spacing: -.03em; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.country-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.country-metrics article { background: #091c28; }
.country-metrics strong { display: block; margin-top: 4px; font-size: 1.35rem; font-weight: 600; }
.country-message {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid rgba(223,187,112,.24);
  border-radius: 15px;
  background: rgba(223,187,112,.05);
}
.country-message strong { font-size: .84rem; }
.country-message span { color: var(--muted); font-size: .73rem; line-height: 1.45; }
.country-message a {
  margin-top: 5px;
  color: var(--gold);
  font-size: .74rem;
  font-weight: 700;
}
.member-section { margin-top: 22px; }
.member-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: .78rem; }
.member-section-head button { border: 0; color: var(--gold); background: transparent; font-size: .72rem; cursor: pointer; }
.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.member-tile {
  position: relative;
  aspect-ratio: .82;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(71,105,123,.38);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(25,49,63,.8), rgba(10,29,40,.72));
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
}
.member-tile:hover { transform: translateY(-2px); border-color: rgba(223,187,112,.72); }
.member-tile.founder { border-color: rgba(223,187,112,.76); }
.member-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-tile::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(transparent, rgba(1,8,13,.88));
  pointer-events: none;
}
.member-tile .member-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.1rem;
}
.member-tile .tile-copy { position: absolute; z-index: 2; left: 7px; right: 7px; bottom: 7px; text-align: left; }
.member-tile .tile-copy strong { display: block; overflow: hidden; color: var(--text); font-size: .61rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.member-tile .tile-copy span { display: block; margin-top: 2px; color: rgba(226,235,239,.68); font-size: .48rem; letter-spacing: .04em; }
.member-tile .founder-mark { position: absolute; z-index: 3; top: 6px; right: 6px; padding: 3px 5px; border-radius: 999px; color: #15120b; background: var(--gold); font-size: .4rem; font-weight: 800; }
.empty-state { grid-column: 1 / -1; padding: 24px 8px; color: var(--muted); font-size: .76rem; text-align: center; }

.meaning-strip {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 72px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: radial-gradient(circle at 70% 30%, rgba(223,187,112,.08), transparent 30%), #06141e;
}
.meaning-strip h2 { margin: 11px 0 0; max-width: 780px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 4rem); font-weight: 500; line-height: 1.06; letter-spacing: -.045em; }
.meaning-strip > a { flex: 0 0 auto; padding-bottom: 7px; color: var(--gold); font-size: .85rem; font-weight: 700; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); color: #718692; background: var(--bg); font-size: .7rem; }

.search-backdrop, .profile-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(1,6,10,.8);
  backdrop-filter: blur(16px);
}
.search-backdrop[hidden], .profile-backdrop[hidden] { display: none; }
.search-dialog, .profile-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px;
  background: #081925;
  box-shadow: 0 35px 120px rgba(0,0,0,.55);
}
.search-close, .profile-close { position: absolute; top: 18px; right: 18px; }

.profile-back {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease, transform 0.2s ease;
}

.profile-back svg {
  width: 22px;
  height: 22px;
  display: block;
}

.profile-back:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(-1px);
}

.profile-back:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.search-dialog h2, .profile-dialog h2 { margin: 8px 0 24px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.search-dialog label { display: block; margin-bottom: 7px; color: #cbd7dd; font-size: .76rem; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search-row input { min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; outline: none; color: var(--text); background: rgba(255,255,255,.035); }
.search-row input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(223,187,112,.08); }
.search-row button { padding: 0 18px; border: 0; border-radius: 12px; color: #101820; background: var(--gold); font-weight: 700; cursor: pointer; }
.search-note { margin: 10px 0 18px; color: var(--muted); font-size: .7rem; }
.search-results { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.profile-dialog { width: min(460px, 100%); text-align: center; }
.profile-image { width: 150px; aspect-ratio: 1; margin: 14px auto 18px; overflow: hidden; display: grid; place-items: center; border: 1px solid rgba(223,187,112,.35); border-radius: 28px; color: var(--gold); background: #0a202d; font-size: 2rem; }
.profile-image img { width: 100%; height: 100%; object-fit: cover; }
.profile-tier { display: inline-flex; padding: 6px 9px; border: 1px solid rgba(223,187,112,.28); border-radius: 999px; color: var(--gold); background: rgba(223,187,112,.06); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.profile-dialog h2 { margin: 12px 40px 0; }
.profile-meta, .profile-joined { color: var(--muted); font-size: .75rem; }
.profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 6px;
  padding: 9px 15px;
  border: 1px solid rgba(223,187,112,.32);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(223,187,112,.06);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.profile-link[hidden] {
  display: none;
}
.profile-link:hover {
  background: rgba(223,187,112,.12);
  border-color: rgba(223,187,112,.55);
  transform: translateY(-1px);
}

.profile-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.profile-dot-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0 0 6px;
  padding: 9px 18px;

  border: 1px solid rgba(223,187,112,.42);
  border-radius: 999px;

  background: rgba(223,187,112,.10);
  color: var(--gold);

  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .10em;

  cursor: pointer;

  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.profile-dot-button[hidden] {
  display: none;
}

.profile-dot-button:hover {
  background: rgba(223,187,112,.17);
  border-color: rgba(223,187,112,.62);
  transform: translateY(-1px);
}

.profile-dot-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.profile-dialog blockquote { margin: 24px 0; padding: 20px 4px; border-block: 1px solid var(--line); color: #d8e2e7; font-family: Georgia, serif; font-size: 1.05rem; line-height: 1.5; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .explorer-shell { min-height: 950px; }
  .map-stage { top: 78px; right: 0; bottom: 390px; min-height: 0; }
  .country-panel {
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 410px;
    border-top: 1px solid rgba(223,187,112,.25);
    border-left: 0;
    border-radius: 24px 24px 0 0;
    transform: translateY(calc(100% - 74px));
    transition: transform .35s ease;
    overflow: hidden;
  }
  .country-panel.open { transform: translateY(0); }
  .panel-handle { display: block; width: 42px; height: 4px; margin: 10px auto 2px; border-radius: 99px; background: rgba(255,255,255,.2); }
  .panel-inner { padding: 10px 18px 22px; overflow-y: auto; height: calc(100% - 16px); }
  .member-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
  .map-hint { bottom: 99px; }
}

@media (max-width: 620px) {
  .topbar { height: 72px; padding: 0 14px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-copy strong { font-size: .72rem; }
  .brand-copy small { display: none; }
  .claim-button { min-height: 38px; padding: 0 14px; font-size: .72rem; }
  .explorer-shell {
  height: calc(100dvh - 64px - env(safe-area-inset-bottom));
  min-height: 0;
  padding-top: 72px;
    box-sizing: border-box;
}
  .explorer-shell::before { inset-top: 72px; }
  .map-stage { top: 72px; bottom: 70px; }
  .map-copy { top: 16px; left: 16px; }
  .map-copy h1 { margin-top: 7px; font-size: 2.3rem; }
  .map-copy p { margin-top: 7px; font-size: .73rem; }
  .world-map { inset: 120px -92px 82px; width: calc(100% + 184px); height: calc(100% - 202px); }
  .map-controls { left: auto; right: 12px; bottom: 95px; flex-direction: column; gap: 7px; }
  .map-controls button { width: 37px; height: 37px; }
  .map-hint { display: none; }
  .map-stats { left: 12px; right: 12px; bottom: 13px; gap: 6px; }
  .map-stats article { padding: 9px 5px; text-align: center; }
  .map-stats strong { font-size: .98rem; }
  .map-stats span { font-size: .47rem; }
  .country-panel { top: auto; height: 380px; transform: translateY(100%); }
  .panel-inner { padding-inline: 16px; }
  .panel-head h2 { font-size: 1.55rem; }
  .country-metrics { margin-top: 14px; }
  .country-message { margin-top: 12px; padding: 12px; }
  .member-section { margin-top: 14px; }
  .member-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .member-tile { border-radius: 8px; }
  .member-tile .tile-copy strong { font-size: .52rem; }
  .member-tile .tile-copy span { font-size: .4rem; }
  .founder-mark { display: none; }
  .meaning-strip { align-items: flex-start; flex-direction: column; padding: 54px 20px; }
  .meaning-strip h2 { font-size: 2rem; }
  .site-footer { display: none; }
  .search-dialog { padding: 26px 18px; }
  .search-row { grid-template-columns: 1fr; }
  .search-row button { height: 44px; }
  .search-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

}

/* 1NDEKS mobile app navigation */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 620px) {
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;

    display: grid;
    grid-template-columns: repeat(5, 1fr);

    min-height: 64px;
    padding:
      7px
      6px
      calc(7px + env(safe-area-inset-bottom));

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    background: rgba(2, 10, 17, 0.96);
    backdrop-filter: blur(18px);
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 48px;
    padding: 4px 2px;

    border: 0;
    background: transparent;

    color: rgba(240, 244, 246, 0.58);
    font: inherit;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;

    cursor: pointer;
  }

  .mobile-bottom-nav .active {
    color: #f2d384;
  }

  .mobile-nav-icon {
    display: block;
    margin-bottom: 3px;

    font-size: 18px;
    line-height: 1;
  }

  .mobile-dots-icon {
  position: relative;
}

.mobile-dots-badge {
  position: absolute;
  top: -8px;
  right: -13px;

  display: grid;
  place-items: center;

  min-width: 17px;
  height: 17px;
  padding: 0 4px;

  border-radius: 999px;

  background: #e8c66d;
  color: #07111a;

  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.mobile-dots-badge[hidden] {
  display: none;
}

  .mobile-dots-badge.pop {
  animation: mobileDotsPop 520ms ease;
}

@keyframes mobileDotsPop {
  0% {
    transform: scale(0.65);
  }

  45% {
    transform: scale(1.35);
  }

  70% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
}
  
body {
  padding-bottom: 0;
}
}

/* 1NDEKS mobile More sheet */
.mobile-more-backdrop {
  display: none;
}

@media (max-width: 620px) {
  .mobile-more-backdrop {
    position: fixed;
    inset: 0;
    z-index: 130;

    display: flex;
    align-items: flex-end;

    background: rgba(0, 0, 0, 0.56);
    backdrop-filter: blur(4px);
  }

  .mobile-more-backdrop[hidden] {
    display: none;
  }

  .mobile-more-sheet {
    width: 100%;
    padding:
      10px
      18px
      calc(84px + env(safe-area-inset-bottom));

    border-top:
      1px solid rgba(223, 187, 112, 0.22);

    border-radius: 24px 24px 0 0;

    background: #071018;
    box-shadow:
      0 -18px 50px rgba(0, 0, 0, 0.45);
  }

  .mobile-more-handle {
    width: 42px;
    height: 4px;
    margin: 0 auto 18px;

    border-radius: 99px;

    background:
      rgba(255, 255, 255, 0.18);
  }

  .mobile-more-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
  }

  .mobile-more-header h2 {
    margin: 5px 0 0;
    font-size: 1.7rem;
    font-weight: 500;
  }

  .mobile-more-links {
    display: grid;
    gap: 10px;
  }

  .mobile-more-links a {
    display: flex;
    flex-direction: column;
    gap: 4px;

    padding: 16px;

    border:
      1px solid rgba(255, 255, 255, 0.08);

    border-radius: 14px;

    background:
      rgba(255, 255, 255, 0.035);

    color: #f4f1e8;
    text-decoration: none;
  }

  .mobile-more-links strong {
    font-size: 14px;
    font-weight: 650;
  }

  .mobile-more-links span {
    color: rgba(240, 244, 246, 0.52);
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.country:focus {
  outline: none;
}

.country:focus-visible {
  stroke: var(--gold);
  stroke-width: 1.5px;
}

.member-hub {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.member-hub-label {
  display: none;
}

.member-hub h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.1;
  font-weight: 500;
}

#myStarIdentity {
  margin: 2px 0 6px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(240, 244, 246, 0.72);
  line-height: 1.6;
}

#myStarIdentity strong {
  display: inline-block;
  margin-bottom: 6px;
  color: #f2d384;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1;
  letter-spacing: 0.02em;
}

#myStarIdentity span {
  color: #f2d384;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.member-hub-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.member-hub-actions button {
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #f4f1e8;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.member-hub-actions button:hover {
  border-color: rgba(242, 211, 132, 0.48);
  background: rgba(242, 211, 132, 0.07);
  transform: translateY(-1px);
}

.member-hub-signout {
  align-self: flex-start;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(240, 244, 246, 0.5);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.member-hub-signout:hover {
  color: #f4f1e8;
}

@media (max-width: 640px) {
  #memberAccessBackdrop.my-star-open .search-dialog {
    width: calc(100vw - 24px);
    padding: 26px 20px;
  }

  .member-hub-actions {
    grid-template-columns: 1fr;
  }

  .member-hub-actions button {
    min-height: 54px;
  }
}

/* =========================================================
   MY STAR — PROFILE EDITOR
   ========================================================= */

.edit-profile-dialog {
  position: relative;
  width: min(620px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 36px;
  border: 1px solid rgba(214, 183, 95, 0.22);
  background:
    radial-gradient(
      circle at 85% 0%,
      rgba(214, 183, 95, 0.07),
      transparent 32%
    ),
    #071722;
}

.edit-profile-dialog h2 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
}

.edit-profile-dialog .profile-meta {
  margin: 0 0 26px;
  color: rgba(238, 242, 244, 0.55);
  font-size: 12px;
}

.edit-profile-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.edit-profile-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(244, 241, 232, 0.82);
  font-size: 12px;
  font-weight: 600;
}

.edit-profile-form input,
.edit-profile-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.035);
  color: #f4f1e8;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.edit-profile-form input:focus,
.edit-profile-form textarea:focus {
  border-color: rgba(242, 211, 132, 0.55);
  background: rgba(242, 211, 132, 0.045);
}

.edit-profile-form input::placeholder,
.edit-profile-form textarea::placeholder {
  color: rgba(240, 244, 246, 0.3);
}

.edit-profile-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 4px;
}

#saveProfileChanges {
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: #e8c66d;
  color: #07111a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#cancelProfileEdit {
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: transparent;
  color: rgba(244, 241, 232, 0.7);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

#saveProfileChanges:hover {
  background: #f1d47f;
}

#cancelProfileEdit:hover {
  color: #f4f1e8;
  border-color: rgba(255, 255, 255, 0.24);
}

#editProfileNote {
  min-height: 18px;
  margin: 0;
}

@media (max-width: 640px) {
  .edit-profile-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 28px 20px;
  }

  .edit-profile-actions {
    grid-template-columns: 1fr;
  }

  #saveProfileChanges,
  #cancelProfileEdit {
    width: 100%;
  }
}

.my-star-back {
  position: absolute;
  top: 22px;
  left: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(244, 241, 232, 0.58);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color 160ms ease;
}

.my-star-back:hover {
  color: #f2d384;
}

/* MY STAR — SIGN OUT OVERRIDE */
#signOutMember.member-hub-signout {
  align-self: flex-start;
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 2px 0 0;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(240, 244, 246, 0.5);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

#signOutMember.member-hub-signout:hover {
  border: 0;
  background: transparent;
  color: #f2d384;
  box-shadow: none;
  transform: none;
}

/* 1NDEKS BRAND */
.brand-logo {
  display: block;
  width: 172px;
  height: auto;
  max-width: 42vw;
}

@media (max-width: 640px) {
  .brand-logo {
    width: 128px;
  }
}

/* 1NDEKS heading numeral alignment */
#memberAccessTitle {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

/* =========================================
   1NDEKS MESSAGES
========================================= */

.messages-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.messages-nav-badge,
.messages-title-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e8c66d;
  color: #07111a;
  font-size: 10px;
  font-weight: 800;
}

.messages-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(2, 10, 17, 0.96);
}

.messages-shell {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  background: #04111a;
}

.messages-inbox-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #061722;
}

.messages-inbox-header {
  min-height: 100px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.messages-inbox-header h2 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1;
}

.dots-section-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;

  padding: 10px;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.08);
}

.dots-section-tab {
  min-height: 38px;
  padding: 0 12px;

  border: 1px solid transparent;
  border-radius: 10px;

  background: transparent;

  color: rgba(240, 244, 246, 0.46);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  cursor: pointer;
}

.dots-section-tab.active {
  border-color: rgba(242, 211, 132, 0.18);
  background: rgba(242, 211, 132, 0.07);
  color: #f2d384;
}

.messages-inbox-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.messages-loading,
.messages-empty-inbox {
  margin: 0;
  padding: 30px 18px;
  color: rgba(240, 244, 246, 0.48);
  font-size: 13px;
  line-height: 1.6;
}

.messages-inbox-item {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #f4f1e8;
  text-align: left;
  cursor: pointer;
}

.messages-inbox-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

.messages-inbox-item.has-unread {
  background: rgba(232, 198, 109, 0.05);
  border-color: rgba(232, 198, 109, 0.14);
}

.messages-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #f2d384;
  font-size: 15px;
  font-weight: 700;
}

.messages-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.messages-inbox-copy {
  min-width: 0;
}

.messages-inbox-name {
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 700;
}

.messages-inbox-preview {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(240, 244, 246, 0.48);
  font-size: 12px;
}

.messages-inbox-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  color: rgba(240, 244, 246, 0.4);
  font-size: 10px;
}

.messages-unread-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e8c66d;
  color: #07111a;
  font-size: 10px;
  font-weight: 800;
}

.messages-request-label {
  color: #e8c66d;
  font-size: 10px;
}

.messages-thread-panel {
  min-width: 0;
  min-height: 0;
height: 100%;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 55% 45%,
      rgba(232, 198, 109, 0.025),
      transparent 32%
    ),
    #031019;
}

.messages-empty-state {
  max-width: 420px;
  padding: 30px;
  text-align: center;
}

.messages-empty-state h2 {
  margin: 12px 0;
  font-size: 38px;
}

.messages-empty-state p {
  color: rgba(240, 244, 246, 0.48);
}

@media (max-width: 760px) {
  .messages-shell {
    grid-template-columns: 1fr;
  }

  .messages-thread-panel {
    display: none;
  }

  .messages-inbox-header {
    min-height: 86px;
    padding: 20px;
  }

  .messages-inbox-panel {
    border-right: 0;
  }
}

.messages-nav-badge[hidden],
.messages-title-count[hidden] {
  display: none !important;
}

/* =========================================
   1NDEKS MESSAGE THREAD
========================================= */

.messages-thread-view {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.messages-compose-wrap {
  min-height: 0;
  flex: 0 0 auto;
}

.messages-thread-header {
  min-height: 88px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #061722;
}

.messages-thread-back {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: transparent;
  color: #f4f1e8;
  font-size: 20px;
  cursor: pointer;
}

.messages-thread-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #f2d384;
  font-size: 14px;
  font-weight: 700;
  flex: 0 0 auto;
}

.messages-thread-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.messages-thread-person {
  min-width: 0;
}

.messages-thread-person strong {
  display: block;
  color: #f4f1e8;
  font-size: 15px;
}

.messages-thread-person span {
  display: block;
  margin-top: 3px;
  color: rgba(240, 244, 246, 0.48);
  font-size: 11px;
}

.messages-thread-history {
  min-height: 0;
  overflow-y: auto;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-row {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
}

.message-row.mine {
  justify-content: flex-end;
}

.message-bubble {
  position: relative;
  width: fit-content;
  max-width: min(620px, 72%);
  padding: 9px 48px 10px 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
background: rgba(255, 255, 255, 0.085);
  color: #f4f1e8;
  font-size: 14px;
  line-height: 1.42;
}

.message-text {
  display: inline;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
}

.message-bubble.multiline {
  width: auto;
  min-width: 150px;
}

.message-row.mine .message-bubble {
  background: rgba(232, 198, 109, 0.13);
  border-color: rgba(232, 198, 109, 0.28);
}

.message-time {
  position: absolute;
  right: 10px;
  bottom: 6px;

  color: rgba(240, 244, 246, 0.34);
  font-size: 8px;
  line-height: 1;
  white-space: nowrap;
  font-weight: 400;
}

.messages-request-box {
  margin: 0 30px 18px;
  padding: 14px 16px;
  border: 1px solid rgba(232, 198, 109, 0.22);
  border-radius: 12px;
  background: rgba(232, 198, 109, 0.05);
}

.messages-request-box p {
  margin: 0 0 12px;
  color: rgba(244, 241, 232, 0.72);
  font-size: 12px;
}

.messages-request-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.messages-request-actions button {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.message-ignore {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #f4f1e8;
}

.message-block {
  border: 1px solid rgba(210, 91, 91, 0.35);
  background: transparent;
  color: #e18b8b;
}

.messages-compose {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #061722;
}

.messages-compose textarea {
  width: 100%;
  min-height: 46px;
  max-height: 130px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  outline: none;
  resize: none;
  background: rgba(255, 255, 255, 0.035);
  color: #f4f1e8;
  font: inherit;
  font-size: 14px;
}

.messages-compose textarea:focus {
  border-color: rgba(232, 198, 109, 0.45);
}

.messages-compose button {
  min-width: 86px;
  border: 0;
  border-radius: 11px;
  background: #e8c66d;
  color: #07111a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 760px) {
  .messages-backdrop.thread-open .messages-inbox-panel {
    display: none;
  }

  .messages-backdrop.thread-open .messages-thread-panel {
    display: block;
  }

  .messages-thread-panel {
    width: 100%;
    height: 100%;
  }

  .messages-thread-back {
    display: grid;
    place-items: center;
  }

  .messages-thread-header {
    min-height: 76px;
    padding: 14px 16px;
  }

  .messages-thread-history {
    padding: 20px 14px;
  }

  .message-bubble {
    max-width: 84%;
  }

  .messages-compose {
    padding: 12px;
  }

  .messages-request-box {
    margin: 0 14px 12px;
  }
}

/* Keep Messages composer visible */
.messages-thread-panel {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.messages-thread-view {
  min-height: 0;
  overflow: hidden;
}

.messages-thread-history {
  min-height: 0;
  overflow-y: auto;
}

/* Keep the 1 in 1NDEKS visually aligned with uppercase letters */
body {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

/* =========================================
   DOTSQUARE MESSAGE IDENTITY
   Bubble geometry inherits Direct DOTS
========================================= */

/* =========================================
   DOTSQUARE MEMBER IDENTITY
   Bubble itself uses Direct DOT styling
========================================= */

.square-message-entry {
  width: 100%;
}

.square-message-author {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px 6px;
  text-align: left;
}

.square-message-entry.mine .square-message-author {
  justify-content: flex-end;
}

.square-message-entry:not(.mine) .square-message-author {
  justify-content: flex-start;
}

.square-message-avatar {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  object-fit: cover;
}

.square-message-avatar.fallback {
  display: grid;
  place-items: center;
  background: rgba(216, 183, 115, 0.14);
  color: #f0d69d;
  font-size: 10px;
  font-weight: 800;
}

.square-message-author span {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.square-message-author strong {
  color: #f5f1e8;
  font-size: 12px;
}

.square-message-author small {
  color: #8097a5;
  font-size: 10px;
}

.square-message-entry .message-row {
  width: 100%;
}

/* DOTSQUARE ARRIVAL EVENT */

.square-arrival {
  align-self: center;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  margin: 8px auto;
  padding: 5px 10px;

  color: rgba(240, 244, 246, 0.52);
  font-size: 11px;
  text-align: center;
}

.square-arrival-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;

  border-radius: 50%;
  background: #e8c66d;
}

.square-arrival small {
  color: rgba(240, 244, 246, 0.3);
  font-size: 8px;
  white-space: nowrap;
}

/* =========================================================
   1NDEKS HELP / REPORT
   ========================================================= */

.help-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 34px;
}

.help-dialog h2 {
  margin-bottom: 8px;
}

.help-dialog > .profile-meta {
  margin: 0 0 22px;
}

.help-dialog .edit-profile-form {
  gap: 15px;
}

/* Match the existing 1NDEKS form geometry */

.help-dialog select {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;

  padding: 0 13px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;

  outline: none;

  background: #0d202c;
  color: #f4f1e8;

  font: inherit;
  font-size: 14px;

  cursor: pointer;
}

.help-dialog select:focus {
  border-color: rgba(242, 211, 132, 0.55);
}

.help-dialog select option {
  background: #0d202c;
  color: #f4f1e8;
}

.help-optional {
  color: rgba(240, 244, 246, 0.4);
  font-size: 10px;
  font-weight: 400;
}

.help-context-note {
  margin: 0 !important;
  padding: 2px 0;

  color: rgba(240, 244, 246, 0.42) !important;
  font-size: 10px !important;
  line-height: 1.5;
}

#helpSubmitNote {
  min-height: 18px;
  margin: 0;

  color: rgba(242, 211, 132, 0.78);
  font-size: 11px;
}

/* Primary action */

#submitHelpReport {
  min-height: 48px;
  padding: 12px 20px;

  border: 0;
  border-radius: 10px;

  background: #e8c66d;
  color: #07111a;

  font: inherit;
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

#submitHelpReport:hover {
  background: #f1d47f;
}

#submitHelpReport:disabled {
  cursor: wait;
  opacity: 0.65;
}

/* Secondary action */

#cancelHelp {
  min-height: 48px;
  padding: 12px 20px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;

  background: transparent;
  color: rgba(244, 241, 232, 0.7);

  font: inherit;
  font-size: 13px;

  cursor: pointer;
}

#cancelHelp:hover {
  color: #f4f1e8;
  border-color: rgba(255, 255, 255, 0.24);
}

@media (max-width: 640px) {
  .help-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 28px 20px;
  }

  .help-dialog .edit-profile-actions {
    grid-template-columns: 1fr;
  }

  #submitHelpReport,
  #cancelHelp {
    width: 100%;
  }
}

/* 1NDEKS custom select arrow */

.help-dialog select {
  appearance: none;
  -webkit-appearance: none;

  padding-right: 42px;

  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      #e8c66d 50%
    ),
    linear-gradient(
      135deg,
      #e8c66d 50%,
      transparent 50%
    );

  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;

  background-size:
    5px 5px,
    5px 5px;

  background-repeat: no-repeat;
}

/* Hero 1 — reservation holding screen */

.success-hero-mark {
  display: block;
  width: 82px;
  height: 82px;
  margin: 0 auto 24px;
  object-fit: contain;
}

/* Disabled DOT composer */

.messages-compose textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.messages-compose button:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 241, 232, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}
