:root {
  --ink: #22211f;
  --muted: #706b63;
  --line: #e8e1d7;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --clay: #ad6f5c;
  --olive: #73775f;
  --sea: #52707b;
  --gold: #b58a4a;
  --gold-deep: #8e6428;
  --gold-soft: #f7ecd3;
  --soft: #f1ece3;
  --shadow: 0 18px 50px rgba(39, 34, 28, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.legal-footer {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 36px 0 18px;
  flex-wrap: wrap;
}

.legal-modal-card {
  width: min(920px, calc(100vw - 28px));
  max-height: min(86vh, 900px);
  overflow: hidden;
}

.legal-anchor-row {
  display: flex;
  gap: 8px;
  padding: 12px 0 18px;
  overflow-x: auto;
}

.legal-anchor-row a,
.inline-link {
  border: 0;
  background: transparent;
  color: #8a6a38;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.legal-anchor-row a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(189, 143, 76, 0.12);
  color: #5f4526;
  font-size: 12px;
}

.legal-content {
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 8px;
}

.legal-section {
  border-top: 1px solid rgba(36, 33, 30, 0.1);
  padding: 18px 0;
}

.legal-section h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 24px;
}

.legal-section p,
.ai-disclosure {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.ai-disclosure {
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(36, 33, 30, 0.05);
}

.legal-consent {
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
}

.onboarding-legal-links,
.legal-link-list {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.legal-link-list {
  justify-content: flex-start;
  flex-direction: column;
  align-items: flex-start;
}

.danger-link,
.danger-button {
  color: #b42318;
}

.danger-button {
  background: #b42318;
  color: #fff;
}

.moderation-queue {
  margin-bottom: 18px;
}

.report-table {
  display: grid;
  gap: 8px;
}

.report-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(36, 33, 30, 0.04);
  color: var(--muted);
}

.report-row strong {
  color: var(--ink);
}

@media (max-width: 720px) {
  .report-row {
    grid-template-columns: 1fr;
  }

  .legal-content {
    max-height: 58vh;
  }

  .world-editorial-grid,
  .free-world-strategy .world-preview-strip {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

img {
  max-width: 100%;
  background: linear-gradient(90deg, #f3f0ea, #fbfaf7, #f3f0ea);
}

.image-failed img {
  opacity: 0;
}

.image-failed {
  background:
    linear-gradient(135deg, rgba(181, 138, 74, 0.22), rgba(82, 112, 123, 0.2)),
    var(--soft);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  max-width: 100%;
}

button,
.tag,
.text-button,
.primary-button,
.chip,
.icon-button {
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  overflow-wrap: anywhere;
  white-space: normal;
}

p,
h1,
h2,
h3,
h4,
span,
strong,
small,
label,
li {
  overflow-wrap: anywhere;
}

.shell {
  min-height: 100vh;
  overflow-x: clip;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(232, 225, 215, 0.86);
  background: rgba(242, 240, 236, 0.92);
  backdrop-filter: blur(18px);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-family: Georgia, serif;
  font-size: 17px;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  letter-spacing: 0;
}

.search-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
}

.search-wrap span {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 100%;
  place-items: center;
  color: var(--muted);
}

.search-wrap svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.search-wrap input {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px 0 0;
  background: transparent;
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.icon-button,
.text-button,
.primary-button {
  display: inline-flex;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

.icon-button {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: grid;
  place-items: center;
  font-size: 17px;
  padding: 0;
  line-height: 1;
}

.text-button,
.primary-button {
  padding: 0 18px;
  white-space: nowrap;
  font-weight: 650;
}

.primary-button {
  border-color: var(--ink);
  color: white;
  background: var(--ink);
}

.language-control {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
}

.language-control:hover {
  border-color: var(--line);
  background: var(--surface);
}

.globe-icon {
  width: 24px;
  height: 24px;
  background-color: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.language-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.plan-toggle {
  display: flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface);
}

.plan-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

.plan-toggle button.active {
  color: white;
  background: var(--ink);
}

.premium-mode .plan-toggle button.active {
  color: #fff8e7;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
}

.premium-mode .primary-button {
  border-color: var(--gold);
  color: #fff8e7;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 10px 26px rgba(181, 138, 74, 0.24);
}

.main {
  padding: 24px clamp(16px, 4vw, 44px) 70px;
}

.hero {
  display: grid;
  min-height: 430px;
  align-items: end;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(90deg, rgba(24, 22, 19, 0.72), rgba(24, 22, 19, 0.24)),
    var(--hero-image, url("https://images.unsplash.com/photo-1512453979798-5ea266f8880c?auto=format&fit=crop&w=1800&q=85")) center/cover;
}

.hero-content {
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 72px);
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 8vw, 96px);
  font-weight: 400;
  line-height: 0.95;
}

.hero p {
  max-width: 570px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.hero-mood-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.hero-mood-row button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 0 14px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 16px;
}

.section-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
}

.section-head p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.tabs,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  overflow-x: visible;
  margin: 0 0 12px;
  padding-bottom: 0;
  scrollbar-width: none;
}

.tabs + .tabs {
  margin-top: -2px;
  margin-bottom: 18px;
}

.tabs::-webkit-scrollbar,
.filters::-webkit-scrollbar {
  display: none;
}

.location-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 18px 0 18px;
  padding: 18px;
  border: 1px solid rgba(181, 138, 74, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 238, 0.96), rgba(239, 243, 241, 0.9)),
    var(--surface);
}

.location-copy span {
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.location-copy h2 {
  margin: 7px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 500;
}

.location-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.location-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nearby-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.social-discovery {
  margin: 24px 0 36px;
}

.compact-head {
  margin-top: 0;
}

.social-grid,
.moment-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.social-profile-card,
.moment-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(39, 34, 28, 0.05);
}

.social-profile-card {
  display: grid;
  gap: 7px;
}

.small-avatar {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.social-profile-card p,
.social-profile-card span,
.social-profile-card small,
.moment-card p,
.moment-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.moment-strip {
  margin-top: 12px;
}

.moment-card {
  overflow: hidden;
  padding: 0;
}

.moment-card img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.moment-card div {
  padding: 12px;
}

.nearby-sections article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.nearby-row {
  display: grid;
  gap: 8px;
}

.nearby-empty {
  min-height: 74px;
  display: grid;
  align-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  line-height: 1.4;
}

.nearby-spot {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 8px;
  background: var(--paper);
  text-align: left;
}

.nearby-spot img {
  grid-row: span 2;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.nearby-spot span {
  font-weight: 800;
}

.nearby-spot small {
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--ink);
  background: var(--surface);
  white-space: nowrap;
}

.chip.active {
  border-color: var(--ink);
  color: white;
  background: var(--ink);
}

.premium-mode .chip.active {
  border-color: var(--gold);
  color: #fff8e7;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
}

.safe-chip.active {
  border-color: rgba(116, 78, 122, 0.4);
  color: #fff8ff;
  background: linear-gradient(135deg, #8e658f, #425f78);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 28px;
}

.masonry {
  columns: 4 220px;
  column-gap: 16px;
}

.spot-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  break-inside: avoid;
  box-shadow: 0 8px 22px rgba(39, 34, 28, 0.05);
  cursor: pointer;
}

.locked-card img {
  filter: saturate(0.78) contrast(0.95);
}

.premium-mode .spot-card.locked-card {
  border-color: rgba(181, 138, 74, 0.72);
  box-shadow: 0 18px 42px rgba(142, 100, 40, 0.2);
}

.lock-overlay {
  position: absolute;
  inset: 12px 12px auto 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.lock-overlay span,
.lock-overlay strong {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 12px;
  color: white;
  background: rgba(34, 33, 31, 0.76);
  backdrop-filter: blur(10px);
  font-size: 12px;
}

.premium-mode .lock-overlay span,
.premium-mode .lock-overlay strong {
  color: #fff9e8;
  background: linear-gradient(135deg, rgba(181, 138, 74, 0.94), rgba(142, 100, 40, 0.92));
}

.spot-card img {
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio);
  object-fit: cover;
  background: var(--soft);
  opacity: 0.88;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.spot-card:hover img {
  transform: scale(1.03);
  opacity: 0.96;
}

.spot-card,
.primary-button,
.icon-button,
.chip,
.hero-mood-row button {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button:active,
.icon-button:active,
.chip:active,
.hero-mood-row button:active {
  transform: scale(0.98);
}

.spot-body {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 16px 14px;
  color: white;
  background: linear-gradient(180deg, transparent, rgba(20, 18, 16, 0.82));
}

.meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.panel .meta-line,
.drawer-content .meta-line,
.admin-card .meta-line,
.request-row .meta-line {
  color: var(--muted);
}

.spot-body h3 {
  margin: 7px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
}

.card-scene {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.35;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.safe-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.safe-signal-row span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 5px 8px;
  color: #fff8f3;
  background: rgba(118, 84, 118, 0.54);
  font-size: 11px;
  font-weight: 850;
  backdrop-filter: blur(10px);
}

.trust-row span {
  min-height: 22px;
  border-radius: 999px;
  padding: 4px 7px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 800;
}

.card-footline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.card-footline span {
  max-width: 60%;
  overflow-wrap: normal;
  word-break: normal;
}

.card-footline strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--sea);
  background: #edf4f3;
  font-size: 12px;
}

.premium {
  color: var(--gold-deep);
  background: var(--gold-soft);
  border: 1px solid rgba(181, 138, 74, 0.32);
}

.spot-body .tag {
  color: white;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.premium-mode .spot-body .premium,
.premium-mode .tag.premium,
.premium-mode .spot-body .tag {
  color: #fff9e8;
  background: linear-gradient(135deg, rgba(181, 138, 74, 0.96), rgba(142, 100, 40, 0.9));
  border-color: rgba(255, 247, 224, 0.26);
}

.side-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.panel,
.collection-card,
.admin-card,
.modal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(39, 34, 28, 0.05);
}

.panel {
  padding: 18px;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.panel p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.free-panel {
  border-color: rgba(181, 138, 74, 0.42);
  background: #fffaf0;
}

.benefit-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.mini-stat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.mini-stat div {
  padding: 12px 8px;
  border-radius: 8px;
  background: var(--soft);
}

.mini-stat strong {
  display: block;
  font-size: 19px;
}

.collections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.continent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.collection-card {
  overflow: hidden;
}

.country-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(39, 34, 28, 0.05);
}

.continent-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 8px 22px rgba(39, 34, 28, 0.08);
}

.continent-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.continent-card div {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 270px;
  align-content: end;
  gap: 10px;
  padding: 18px;
  color: white;
  background: linear-gradient(180deg, rgba(34, 33, 31, 0.08), rgba(34, 33, 31, 0.78));
}

.continent-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
}

.continent-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.42;
}

.continent-card .text-button {
  width: fit-content;
}

.micro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.micro-tags span,
.micro-tags button {
  border: 1px solid rgba(181, 138, 74, 0.22);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--gold-deep);
  background: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
}

.micro-tags button {
  cursor: pointer;
}

.africa-strategy {
  display: grid;
  gap: 16px;
  margin-bottom: 46px;
}

.africa-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.africa-controls label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.africa-controls select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  text-transform: none;
}

.africa-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.africa-feature-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, #fffdf7, #f7ecd3);
}

.africa-feature-card > span {
  color: var(--gold-deep);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.africa-feature-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
}

.africa-feature-card p,
.africa-readiness p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.africa-country-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.africa-country-strip button {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: white;
  text-align: left;
}

.africa-country-strip img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.africa-country-strip span,
.africa-country-strip small {
  display: block;
  padding: 0 10px;
}

.africa-country-strip span {
  margin-top: 9px;
  font-weight: 900;
}

.africa-country-strip small {
  margin: 3px 0 10px;
  color: var(--muted);
}

.africa-readiness {
  border: 1px solid rgba(82, 112, 123, 0.2);
  border-radius: 8px;
  padding: 14px;
  background: #eef3f1;
}

.africa-readiness span {
  display: block;
  margin-bottom: 6px;
  color: var(--sea);
  font-weight: 900;
  text-transform: uppercase;
}

.world-strategy {
  position: relative;
}

.world-paywall-intro {
  display: grid;
  gap: 10px;
  max-width: 720px;
  padding: 22px;
  border: 1px solid rgba(181, 138, 74, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdf8, #f7ecd3);
}

.world-paywall-intro span,
.world-editorial-card span {
  color: var(--gold-deep);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.world-paywall-intro h3,
.world-editorial-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
  line-height: 1;
}

.world-paywall-intro p,
.world-editorial-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.world-editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 14px;
}

.world-editorial-card {
  display: grid;
  align-content: end;
  min-height: 260px;
  gap: 14px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(181, 138, 74, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(34, 33, 31, 0.08)),
    #fffaf0;
}

.world-editorial-card:first-child {
  min-height: 320px;
  background:
    linear-gradient(180deg, rgba(34, 33, 31, 0.02), rgba(181, 138, 74, 0.2)),
    #fffdf8;
}

.free-world-strategy .world-preview-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.clubs-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.club-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 14px 34px rgba(39, 34, 28, 0.12);
}

.club-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  filter: saturate(0.95) contrast(1.04);
}

.club-content {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 330px;
  align-content: end;
  gap: 10px;
  padding: 18px;
  color: white;
}

.club-content span {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.club-content h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
}

.club-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

.club-content .text-button {
  width: fit-content;
  border-color: rgba(255, 255, 255, 0.34);
  color: white;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.club-jazz .club-content {
  background: linear-gradient(180deg, rgba(33, 18, 25, 0.08), rgba(33, 18, 25, 0.9));
}

.club-jazz .club-content span {
  color: #ffe9bd;
  background: rgba(130, 78, 36, 0.72);
}

.club-rock .club-content {
  background: linear-gradient(180deg, rgba(18, 18, 19, 0.05), rgba(12, 12, 13, 0.93));
}

.club-rock .club-content span {
  color: #ffd7d7;
  background: rgba(130, 28, 35, 0.78);
}

.club-anime .club-content {
  background: linear-gradient(180deg, rgba(32, 29, 72, 0.06), rgba(42, 35, 94, 0.88));
}

.club-anime .club-content span {
  color: #fff;
  background: rgba(206, 92, 171, 0.78);
}

.club-skate .club-content {
  background: linear-gradient(180deg, rgba(30, 35, 32, 0.08), rgba(36, 48, 40, 0.9));
}

.club-skate .club-content span {
  color: #e9ffd8;
  background: rgba(83, 112, 65, 0.78);
}

.club-books .club-content {
  background: linear-gradient(180deg, rgba(58, 43, 32, 0.05), rgba(72, 51, 36, 0.88));
}

.club-books .club-content span {
  color: #fff2d3;
  background: rgba(154, 103, 51, 0.74);
}

.club-music .club-content {
  background: linear-gradient(180deg, rgba(19, 25, 45, 0.05), rgba(18, 24, 48, 0.9));
}

.club-music .club-content span {
  color: #e8f1ff;
  background: rgba(69, 92, 155, 0.78);
}

.club-sports .club-content {
  background: linear-gradient(180deg, rgba(18, 48, 56, 0.05), rgba(12, 64, 72, 0.9));
}

.club-sports .club-content span {
  color: #e8fff6;
  background: rgba(35, 128, 108, 0.78);
}

.club-lgbtq .club-content {
  background:
    linear-gradient(180deg, rgba(42, 18, 52, 0.04), rgba(33, 22, 58, 0.9)),
    linear-gradient(135deg, rgba(229, 69, 103, 0.34), rgba(250, 188, 76, 0.22), rgba(70, 180, 142, 0.24), rgba(76, 118, 214, 0.34));
}

.club-lgbtq .club-content span {
  color: #fff8fb;
  background: rgba(166, 74, 133, 0.78);
}

.country-card img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.country-card div {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 16px;
}

.country-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
}

.country-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.collection-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.collection-card div {
  padding: 14px;
}

.collection-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.collection-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.gems-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gem-card,
.gem-paywall-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(39, 34, 28, 0.07);
}

.gem-card {
  cursor: pointer;
}

.gem-card img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.gem-card div,
.gem-paywall-card {
  padding: 16px;
}

.gem-card h3,
.gem-paywall-card h3 {
  margin: 10px 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.gem-card p,
.gem-paywall-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.gem-mini-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.gem-paywall-card {
  display: grid;
  align-content: center;
  min-height: 100%;
  background: linear-gradient(135deg, #fffaf0, #f7ecd3);
}

.drawer,
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.drawer.open,
.modal.open {
  display: block;
}

.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 22, 0.42);
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(620px, 100vw);
  height: 100%;
  overflow: auto;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.admin-card,
.panel,
.spot-card,
.country-card,
.continent-card,
.collection-card,
.gem-card,
.club-card,
.request-row,
.trend-row {
  min-width: 0;
}

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(12px);
}

.drawer-content {
  padding: 18px;
}

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 8px;
}

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  border-radius: 8px;
  object-fit: cover;
}

.gallery-stack {
  display: grid;
  gap: 8px;
}

.detail-title {
  margin: 22px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}

.detail-copy {
  color: var(--muted);
  line-height: 1.65;
}

.spot-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.spot-facts div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.premium-mode .spot-facts div {
  border-color: rgba(181, 138, 74, 0.46);
  background: #fffaf0;
}

.spot-facts span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.spot-facts strong {
  font-size: 13px;
  line-height: 1.3;
}

.highlight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}

.vibe-section {
  display: grid;
  gap: 12px;
  margin: 16px 0 20px;
  padding: 16px;
  border: 1px solid rgba(115, 119, 95, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, #fbfaf7, #eef0e7);
}

.accessibility-section {
  display: grid;
  gap: 14px;
  margin: 16px 0 22px;
  padding: 16px;
  border: 1px solid rgba(82, 112, 123, 0.24);
  border-radius: 8px;
  background: #f4f7f5;
}

.safe-place-section {
  display: grid;
  gap: 14px;
  margin: 16px 0 22px;
  padding: 16px;
  border: 1px solid rgba(116, 78, 122, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, #fbf6f8, #f1f6f5);
}

.safe-place-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.safe-place-head span,
.safe-place-head small {
  color: #7c5a82;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.safe-place-head strong {
  display: block;
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.safe-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.safe-signal-grid div {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 11px;
  border: 1px solid rgba(116, 78, 122, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.safe-signal-grid span {
  color: var(--muted);
  font-size: 12px;
}

.safe-indicator-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.safe-indicator-row span {
  border-radius: 999px;
  padding: 7px 10px;
  color: #5f4965;
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.accessibility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.accessibility-grid div {
  display: grid;
  gap: 4px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(82, 112, 123, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.accessibility-grid span {
  color: var(--muted);
  font-size: 12px;
}

.accessibility-grid strong {
  color: var(--ink);
  font-size: 14px;
}

.accessibility-note,
.audio-guidance-box,
.transcript-box {
  border: 1px solid rgba(82, 112, 123, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.accessibility-note p,
.audio-guidance-box p,
.transcript-box p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.5;
}

.audio-guidance-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.accessibility-tabs {
  margin-top: -16px;
}

.accessibility-admin-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.text-large {
  font-size: 1.08rem;
}

.text-xlarge {
  font-size: 1.16rem;
}

.high-contrast-mode {
  --ink: #050505;
  --muted: #2f2f2f;
  --line: #101010;
  --paper: #fff;
  --surface: #fff;
}

.high-contrast-mode button,
.high-contrast-mode input,
.high-contrast-mode select,
.high-contrast-mode textarea {
  border-color: #050505;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.reduce-motion-mode *,
.reduce-motion * {
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
  animation-duration: 0.001ms !important;
}

.premium-mode .vibe-section {
  border-color: rgba(181, 138, 74, 0.36);
  background: linear-gradient(135deg, #fffdf8, #f7ecd3);
}

.vibe-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.vibe-head span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  color: var(--ink);
}

.vibe-head strong {
  color: var(--olive);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vibe-tags,
.sensory-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vibe-tags span,
.sensory-row span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.vibe-tags span {
  color: #44503c;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(115, 119, 95, 0.2);
}

.sensory-row span {
  color: var(--sea);
  background: rgba(82, 112, 123, 0.1);
}

.vibe-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.highlight-list span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--olive);
  background: #eef0e7;
  font-size: 13px;
}

.premium-mode .highlight-list span {
  color: var(--gold-deep);
  background: var(--gold-soft);
}

.map-box {
  display: grid;
  min-height: 180px;
  place-items: center;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--sea);
  background:
    linear-gradient(90deg, rgba(82, 112, 123, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(82, 112, 123, 0.12) 1px, transparent 1px),
    #eef3f1;
  background-size: 28px 28px;
}

.locked-detail {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(181, 138, 74, 0.4);
  border-radius: 8px;
  background: #fff8e8;
}

.premium-mode .locked-detail,
.premium-mode .free-panel {
  border-color: rgba(181, 138, 74, 0.62);
  background: linear-gradient(135deg, rgba(255, 250, 238, 0.94), rgba(247, 236, 211, 0.86));
  box-shadow: 0 16px 38px rgba(181, 138, 74, 0.16);
}

.locked-detail h3 {
  margin: 10px 0 8px;
}

.locked-detail p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, calc(100% - 28px));
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  transform: translate(-50%, -50%);
  padding: 22px;
}

.admin-modal-card {
  width: min(1180px, calc(100vw - 24px));
  padding: 0;
}

.admin-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px 0;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px;
}

.admin-ops-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 16px;
}

.admin-ops-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  border: 1px solid rgba(181, 138, 74, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #fffdf8, #f7ecd3);
}

.admin-stats-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-stats-grid span,
.admin-card-head span {
  color: var(--muted);
  font-size: 12px;
}

.admin-stats-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.admin-ops-card span,
.admin-metric-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-ops-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
}

.admin-ops-card p,
.admin-command-grid p,
.admin-calendar-list small,
.admin-metric-list small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-command-grid > div,
.admin-calendar-list article,
.admin-metric-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
}

.admin-command-grid h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.admin-calendar-list,
.admin-metric-list {
  display: grid;
  gap: 8px;
}

.admin-calendar-list article {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 10px;
  align-items: center;
}

.admin-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-checklist li {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  color: var(--muted);
}

.admin-checklist span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-weight: 900;
}

.capture-upload-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.2fr;
  gap: 10px;
  margin: 14px 0;
}

.upload-reminder {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  border: 1px solid rgba(181, 138, 74, 0.24);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 250, 238, 0.96), rgba(244, 247, 245, 0.92)),
    var(--surface);
}

.upload-reminder strong {
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.upload-reminder p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.capture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.compact-capture-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.capture-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.capture-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.capture-card div {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.capture-card strong {
  font-size: 14px;
}

.capture-card p,
.capture-card small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  padding: 0 18px 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-card {
  padding: 16px;
}

.admin-wide {
  grid-column: 1 / -1;
}

.admin-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-card-head h3 {
  margin: 0;
}

.admin-card input,
.admin-card textarea,
.admin-card select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  outline: 0;
  background: var(--paper);
}

.admin-card textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-card label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.trend-list,
.request-list {
  display: grid;
  gap: 12px;
}

.trend-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
}

.trend-rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-size: 13px;
}

.trend-main {
  min-width: 0;
}

.trend-bar {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.trend-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--clay), var(--gold));
}

.request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.request-row p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.request-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.json-preview {
  max-height: 260px;
  overflow: auto;
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f7f3eb;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.comments-section {
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.social-videos-section {
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

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

.social-video-card {
  display: grid;
  min-height: 138px;
  align-content: end;
  gap: 7px;
  padding: 14px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(34, 33, 31, 0.18), rgba(34, 33, 31, 0.88)),
    radial-gradient(circle at top right, rgba(181, 138, 74, 0.68), transparent 42%),
    var(--ink);
}

.social-video-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
}

.social-video-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.1;
}

.social-video-card small {
  color: rgba(255, 255, 255, 0.78);
}

.trust-box {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(82, 112, 123, 0.25);
  border-radius: 8px;
  background: #eef3f1;
}

.trust-box p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.comment-row {
  padding: 12px;
  border-radius: 8px;
  background: var(--paper);
}

.comment-row div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.comment-row p {
  margin: 8px 0 0;
  line-height: 1.45;
}

.comment-form {
  display: grid;
  gap: 10px;
}

.comment-form textarea {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
  background: var(--paper);
}

.check-line {
  display: flex;
  align-items: start;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.settings-modal-card {
  width: min(1040px, calc(100% - 28px));
  padding: 0;
}

.settings-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  padding: 18px;
}

.settings-wide {
  grid-column: 1 / -1;
}

.profile-card {
  text-align: left;
}

.profile-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}

.profile-style-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--paper);
}

.profile-style-grid span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
}

.profile-style-grid strong {
  font-size: 13px;
}

.subscription-card {
  display: grid;
  gap: 14px;
}

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

.subscription-status-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
}

.subscription-status-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.subscription-status-grid strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

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

.profile-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.profile-modal-card {
  width: min(1120px, calc(100vw - 24px));
  padding: 0;
  background: var(--surface);
}

.profile-hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 26px;
  color: white;
  background:
    linear-gradient(135deg, rgba(27, 25, 23, 0.84), rgba(54, 43, 52, 0.62)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=85") center/cover;
}

.profile-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  line-height: 1;
  color: white;
  background: rgba(255, 255, 255, 0.16);
}

.xl-avatar {
  width: 88px;
  height: 88px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  font-size: 30px;
}

.profile-hero-panel h2 {
  margin: 8px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 0.95;
}

.profile-hero-panel p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.profile-stat-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.profile-stat-row div {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.profile-stat-row strong,
.profile-stat-row span {
  display: block;
}

.profile-stat-row strong {
  font-size: 24px;
}

.profile-stat-row span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px 0;
}

.profile-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  padding: 18px;
}

.profile-media-grid {
  columns: 3 190px;
  column-gap: 12px;
}

.profile-media-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  break-inside: avoid;
}

.profile-media-card img {
  width: 100%;
  aspect-ratio: 0.9;
  object-fit: cover;
}

.profile-media-card.is-video img {
  aspect-ratio: 1.45;
}

.profile-media-card.is-video::before {
  content: "Video";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  border-radius: 999px;
  padding: 7px 10px;
  color: white;
  background: rgba(27, 25, 23, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.profile-media-card div {
  padding: 12px;
}

.profile-media-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-media-card strong,
.memory-timeline strong {
  display: block;
}

.profile-media-card p,
.memory-timeline p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.profile-memory-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
}

.profile-mood-stack,
.mini-map-card {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-mood-stack span,
.mini-map-card span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--paper);
  font-weight: 800;
  font-size: 12px;
}

.mini-map-card {
  min-height: 150px;
  align-content: center;
  padding: 14px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 25% 30%, rgba(194, 150, 83, 0.24), transparent 24%),
    radial-gradient(circle at 72% 62%, rgba(70, 120, 140, 0.22), transparent 26%),
    linear-gradient(135deg, var(--paper), var(--surface));
}

.memory-timeline {
  display: grid;
  gap: 10px;
}

.memory-timeline article {
  border-left: 2px solid var(--gold);
  padding-left: 12px;
}

.memory-timeline small {
  color: var(--muted);
  font-weight: 800;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.policy-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.policy-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.policy-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.premium-page {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  overflow: auto;
  padding: clamp(54px, 8vw, 92px) 20px 70px;
  color: var(--ink);
  background: rgba(251, 250, 247, 0.98);
}

.premium-close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 2;
}

.premium-avatar {
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-deep);
  background: #f3efe8;
  box-shadow: inset 0 0 0 1px rgba(181, 138, 74, 0.12);
}

.premium-avatar span {
  font-size: 44px;
  line-height: 1;
}

.premium-page h2 {
  margin: 34px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 72px);
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.premium-lead {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(19px, 3vw, 28px);
  line-height: 1.32;
  text-align: center;
}

.premium-context {
  width: min(560px, 100%);
  margin: 16px 0 0;
  border: 1px solid rgba(181, 138, 74, 0.22);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-weight: 800;
  text-align: center;
}

.billing-toggle {
  display: flex;
  align-items: center;
  margin: 56px 0 42px;
  padding: 6px;
  border-radius: 999px;
  background: #f1efeb;
}

.billing-toggle button {
  display: inline-flex;
  min-width: 148px;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 22px;
  font-weight: 650;
}

.billing-toggle button.active {
  color: var(--ink);
  background: white;
  box-shadow: 0 5px 18px rgba(39, 34, 28, 0.08);
}

.premium-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  color: var(--ink);
}

.premium-price strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 9vw, 92px);
  line-height: 0.9;
}

.premium-price span {
  color: var(--muted);
  font-size: clamp(24px, 4vw, 34px);
}

.premium-note {
  margin: 16px 0 42px;
  color: var(--gold-deep);
  font-weight: 650;
  text-align: center;
}

.premium-benefits {
  display: grid;
  gap: 26px;
  width: min(620px, 100%);
  margin: 0 0 64px;
  padding: 0;
  list-style: none;
}

.premium-benefits li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 18px;
  font-size: clamp(18px, 2.5vw, 25px);
}

.premium-benefits span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-deep);
  background: #f5efe7;
  font-weight: 800;
}

.premium-subscribe {
  display: inline-flex;
  width: min(430px, 100%);
  min-height: 74px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 16px 30px rgba(181, 138, 74, 0.28);
  font-size: 24px;
  font-weight: 800;
}

.premium-secondary {
  margin-top: 18px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 16px;
}

.premium-subscribe:disabled,
.premium-secondary:disabled {
  cursor: wait;
  opacity: 0.68;
}

.gems-modal-card {
  width: min(1180px, calc(100% - 28px));
  padding: 0;
}

.gems-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.state-banner {
  margin: 14px 18px 0;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 650;
}

.loading-state {
  color: var(--sea);
  background: #eef3f1;
}

.error-state {
  color: #8d2e2e;
  background: #fff0ed;
}

.info-state {
  color: var(--gold-deep);
  background: #fff8e8;
}

.gems-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
}

.gem-list-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--surface);
  text-align: left;
}

.gem-list-item.active {
  border-color: var(--gold);
  background: #fffaf0;
}

.gem-list-item img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.gem-detail {
  display: grid;
  gap: 14px;
}

.gem-hero {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
}

.gem-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.gem-hero div {
  position: relative;
  display: grid;
  min-height: 300px;
  align-content: end;
  gap: 10px;
  padding: 24px;
  color: white;
  background: linear-gradient(180deg, transparent, rgba(24, 22, 19, 0.82));
}

.gem-hero h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 72px);
}

.gem-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.45;
}

.gem-actions,
.collaborator-row,
.memory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gem-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
}

.collaborator-row span {
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--soft);
  font-size: 13px;
}

.gem-spots-grid,
.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gem-spots-grid article,
.memory-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.gem-spots-grid img,
.memory-card img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
}

.gem-spots-grid div,
.memory-card div {
  padding: 12px;
}

.gem-spots-grid p,
.memory-card p {
  margin: 7px 0;
  color: var(--muted);
  line-height: 1.4;
}

.memory-card h3 {
  margin: 10px 0 6px;
  font-size: 18px;
}

.memory-card small {
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 20px;
  color: var(--muted);
  background: var(--paper);
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.empty-state p {
  margin: 0;
}

.memory-filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface);
}

.memory-filters button.active {
  border-color: var(--ink);
  color: white;
  background: var(--ink);
}

.small-modal-card {
  width: min(620px, calc(100% - 28px));
  padding: 0;
}

.form-stack {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.form-stack label {
  color: var(--muted);
  font-size: 13px;
}

.form-stack input,
.form-stack textarea,
.form-stack select {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--paper);
}

.form-stack textarea {
  min-height: 110px;
}

.gem-paywall-modal {
  padding: 28px;
  text-align: center;
}

.gem-paywall-modal h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
}

.gem-paywall-modal p {
  color: var(--muted);
  line-height: 1.45;
}

.welcome-onboarding {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: grid;
  align-items: end;
  min-height: 100vh;
  background: #15120e;
}

.welcome-onboarding > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
}

.welcome-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto clamp(44px, 10vh, 96px);
  color: white;
  text-align: center;
}

.welcome-content span {
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.welcome-content h2,
.auth-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 500;
  line-height: 0.98;
}

.welcome-content p,
.auth-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.welcome-content .primary-button {
  justify-self: center;
  min-width: 180px;
  border-color: var(--gold);
  background: var(--gold);
}

.interest-modal-card {
  width: min(760px, calc(100% - 28px));
  padding: 0;
}

.interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 20px 6px;
}

.interest-chip {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
}

.interest-chip.active {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: var(--gold-soft);
}

.onboarding-actions {
  display: flex;
  gap: 10px;
  padding: 18px 20px 20px;
}

.auth-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px;
  text-align: center;
}

.auth-card h2 {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 54px);
}

.auth-card p {
  max-width: 420px;
  color: var(--muted);
  font-size: 17px;
}

.auth-orb {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--warm);
  color: var(--muted);
  font-weight: 900;
}

.auth-methods {
  display: grid;
  gap: 10px;
  width: 100%;
}

.auth-method {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  background: white;
  text-align: left;
}

.auth-method:disabled {
  cursor: wait;
  opacity: 0.68;
}

.auth-method span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-error {
  border: 1px solid rgba(180, 66, 66, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff5f2;
  color: #9f3328;
  font-weight: 750;
}

.location-onboarding {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--paper);
}

.location-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.location-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(181, 138, 74, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(20, 18, 16, 0.28), rgba(20, 18, 16, 0.05));
}

.location-onboarding-content {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 6vw, 80px);
}

.location-onboarding-content > span {
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--gold-deep);
  background: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.location-onboarding-content h2 {
  max-width: 620px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 500;
  line-height: 0.95;
}

.location-onboarding-content > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
}

.privacy-note {
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.privacy-note p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.location-inline-state {
  width: fit-content;
  max-width: 560px;
  border: 1px solid rgba(188, 145, 82, 0.24);
  border-radius: 8px;
  padding: 11px 13px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.location-onboarding-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.manual-location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.manual-location-grid button {
  display: grid;
  justify-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
  text-align: left;
}

.manual-location-grid span {
  color: var(--muted);
  font-size: 13px;
}

.compact-benefits {
  gap: 12px;
  margin: 22px auto;
  text-align: left;
}

.compact-benefits li {
  grid-template-columns: 34px 1fr;
  font-size: 16px;
}

.compact-benefits span {
  width: 30px;
  height: 30px;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .search-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .content-grid,
  .nearby-sections,
  .social-grid,
  .moment-strip,
  .collections,
  .gems-preview-grid,
  .country-grid,
  .continent-grid,
  .africa-feature-grid,
  .world-editorial-grid,
  .africa-country-strip,
  .safe-signal-grid,
  .clubs-grid,
  .gems-layout,
  .gem-spots-grid,
  .memory-grid,
  .admin-layout,
  .admin-ops-grid,
  .admin-command-grid,
  .admin-stats-grid,
  .settings-layout,
  .policy-grid,
  .profile-style-grid,
  .capture-upload-row,
  .capture-grid,
  .compact-capture-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .request-row {
    grid-template-columns: 1fr;
  }

  .admin-calendar-list article {
    grid-template-columns: 1fr;
  }

  .country-card {
    grid-template-columns: 1fr;
  }

  .africa-controls {
    grid-template-columns: 1fr;
  }

  .request-actions {
    justify-content: stretch;
  }

  .side-panel {
    position: static;
    order: -1;
  }

  .location-strip,
  .location-onboarding {
    grid-template-columns: 1fr;
  }

  .location-visual {
    min-height: 280px;
  }

  .admin-modal-card,
  .settings-modal-card,
  .gems-modal-card,
  .profile-modal-card {
    width: calc(100vw - 18px);
  }

  .profile-body-grid,
  .profile-hero-panel {
    grid-template-columns: 1fr;
  }

  .profile-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .main {
    padding-inline: 12px;
  }

  .hero {
    min-height: 370px;
    border-radius: 0;
  }

  .hero-content {
    padding: 28px 18px;
  }

  .brand-name {
    font-size: 21px;
  }

  .topbar {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .brand,
  .top-actions {
    width: 100%;
  }

  .text-button {
    display: none;
  }

  .location-actions .text-button,
  .location-onboarding-actions .text-button,
  .form-stack .text-button,
  .profile-actions-row .text-button,
  .gem-actions .text-button,
  .gems-sidebar .text-button,
  .legal-footer .text-button,
  .legal-link-list .text-button,
  .comment-row .text-button {
    display: inline-flex;
  }

  .top-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-actions .auth-status {
    display: inline-flex;
    width: 100%;
    grid-column: 1 / -1;
  }

  .top-actions [data-profile-open],
  .top-actions [data-admin],
  .top-actions [data-settings] {
    display: inline-flex;
  }

  .profile-hero-panel {
    padding: 22px 16px;
  }

  .profile-body-grid {
    padding: 14px;
  }

  .profile-media-grid {
    columns: 1;
  }

  .location-actions,
  .location-onboarding-actions,
  .onboarding-actions {
    justify-content: stretch;
  }

  .location-actions button,
  .location-onboarding-actions button,
  .onboarding-actions button {
    flex: 1;
  }

  .welcome-content {
    text-align: left;
  }

  .welcome-content .primary-button {
    justify-self: stretch;
  }

  .auth-method {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .manual-location-grid {
    grid-template-columns: 1fr;
  }

  .masonry {
    columns: 1;
    column-gap: 10px;
  }

  .spot-card {
    margin-bottom: 10px;
  }

  .spot-body {
    padding: 10px;
  }

  .spot-body h3 {
    font-size: 15px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .spot-facts {
    grid-template-columns: 1fr;
  }

  .accessibility-grid,
  .audio-guidance-box {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .social-video-grid {
    grid-template-columns: 1fr;
  }

  .billing-toggle {
    width: 100%;
    max-width: 360px;
  }

  .billing-toggle button {
    min-width: 0;
    flex: 1;
    font-size: 18px;
  }

  .premium-benefits li {
    grid-template-columns: 38px 1fr;
  }

  .detail-title {
    font-size: 34px;
  }

  .modal-card {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 20px);
    padding: 16px;
  }

  .drawer-panel {
    width: 100vw;
  }
}

@media (min-width: 621px) and (max-width: 900px) {
  .masonry {
    columns: 2 220px;
  }

  .country-grid,
  .continent-grid,
  .clubs-grid,
  .collections,
  .gems-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
