@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Playfair+Display:opsz,wght@5..120,600;5..120,700&display=swap');

:root {
  --ink: #102c22;
  --forest: #0b2119;
  --green: #178357;
  --green-dark: #0f6241;
  --lime: #d8f7a2;
  --gold: #e7b542;
  --ivory: #f6f1e8;
  --paper: #fbfbf7;
  --line: #e2e8df;
  --muted: #65776d;
  --white: #fff;
  --shadow: 0 18px 55px rgba(15, 48, 35, 0.1);
  --board-max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.45 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: -0.01em;
}

button, input { font: inherit; }

.hidden { display: none !important; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 max(20px, calc((100% - var(--board-max)) / 2));
  background: rgba(11, 33, 25, 0.98);
  border-bottom: 1px solid rgba(216, 247, 162, 0.12);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font: 700 26px/1 'Playfair Display', Georgia, serif;
  letter-spacing: -1.1px;
  white-space: nowrap;
}

.brand-mark { width: 22px; height: 22px; flex: 0 0 auto; color: var(--lime); }

.nav-indicator {
  margin-left: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(216, 247, 162, 0.12);
  color: #efffd0;
  font: 500 11px/1 'DM Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-spacer { flex: 1; }

.top-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-actions small,
.header-tagline {
  max-width: 200px;
  color: #c6d5ca;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(15, 48, 35, 0.16); }

.button:focus-visible,
.kind-filter:focus-visible,
.listing-card:focus-visible,
.browse-action:focus-visible,
.header-signin:focus-visible {
  outline: 3px solid rgba(231, 181, 66, 0.45);
  outline-offset: 2px;
}

.button.alt { background: var(--lime); color: var(--ink); }

.signup-label-mobile { display: none; }

.button.ghost-top {
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.button.gold { background: var(--gold); color: #1e260e; }

.button.ghost {
  border: 1px solid #d5e7d9;
  background: #edf5ef;
  color: var(--green);
}

.explore-open {
  padding: 28px 0 36px;
  background: linear-gradient(180deg, #0b2119 0%, #123528 72%, #1a4334 100%);
  position: relative;
  overflow: hidden;
}

.explore-open::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 18% 24%, rgba(216, 247, 162, 0.08), transparent),
    radial-gradient(ellipse 45% 40% at 88% 72%, rgba(23, 131, 87, 0.14), transparent);
  pointer-events: none;
}

.explore-shell {
  position: relative;
  z-index: 1;
  padding: 0 max(20px, calc((100% - var(--board-max)) / 2));
}

.explore-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.55fr);
  gap: 22px 28px;
  align-items: start;
}

.explore-main {
  padding: 8px 0 36px;
  color: #fff;
}

.explore-main h1 {
  margin: 0;
  max-width: 620px;
  font: 600 clamp(34px, 4.8vw, 52px)/1.02 'Playfair Display', Georgia, serif;
  letter-spacing: -0.05em;
}

.explore-main .lead {
  max-width: 560px;
  margin: 14px 0 0;
  color: #dce8df;
  font-size: 17px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.browse-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.browse-action:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(216, 247, 162, 0.45);
  transform: translateY(-1px);
}

#nearMeButton[hidden] {
  display: none !important;
}

.area-panel {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.area-kicker {
  margin: 0 0 6px;
  color: rgba(216, 247, 162, 0.88);
  font: 500 11px/1 'DM Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.area-panel h2 {
  margin: 0;
  font: 600 24px/1.08 'Playfair Display', Georgia, serif;
  letter-spacing: -0.04em;
}

.area-panel .area-lead {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
}

.area-panel .area-detail {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.discovery-board {
  position: relative;
  z-index: 2;
  margin: -20px auto 0;
  padding: 0 max(20px, calc((100% - var(--board-max)) / 2)) 48px;
}

.discovery-panel {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, #faf6ee 0%, #fbfbf7 100%);
  box-shadow: 0 22px 50px rgba(15, 48, 35, 0.08);
}

.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.board-head h2 {
  margin: 0;
  font: 600 clamp(28px, 3.5vw, 36px)/1.05 'Playfair Display', Georgia, serif;
  letter-spacing: -0.045em;
}

.board-head .copy {
  margin: 8px 0 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.location {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 48, 35, 0.04);
}

.location span {
  max-width: 280px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.location .button {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
}

.kind-filters-wrap {
  position: sticky;
  top: 64px;
  z-index: 5;
  margin: 0 -4px 18px;
  padding: 8px 4px;
  background: linear-gradient(180deg, rgba(250, 246, 238, 0.98) 70%, rgba(250, 246, 238, 0));
}

.kind-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.kind-filters::-webkit-scrollbar { display: none; }

.kind-filter {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 700 13px/1 'DM Sans', sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.kind-filter.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

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

.listing-card,
.locked-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(17, 54, 36, 0.045);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.listing-card:hover {
  transform: translateY(-3px);
  border-color: #c8dace;
  box-shadow: var(--shadow);
}

.listing-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #eaf5e9;
}

.listing-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-media.has-gradient::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(11, 33, 25, 0.42));
  pointer-events: none;
}

.listing-fallback {
  display: grid;
  place-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #eaf5e9, #f6f1e8);
}

.fallback-initials {
  font: 600 clamp(28px, 5vw, 38px)/1 'Playfair Display', Georgia, serif;
  color: var(--green-dark);
  letter-spacing: -0.04em;
}

.listing-media.locked,
.listing-cover.locked {
  background:
    linear-gradient(120deg, rgba(16, 44, 34, 0.22), rgba(16, 44, 34, 0.08)),
    repeating-linear-gradient(-18deg, rgba(23, 131, 87, 0.08) 0 14px, transparent 14px 28px);
  filter: saturate(0.75);
}

.listing-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 44px 18px 16px;
}

.listing-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.listing-body h3 {
  margin: 0;
  font: 600 22px/1.15 'Playfair Display', Georgia, serif;
  letter-spacing: -0.03em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-meta,
.listing-date {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.listing-price {
  margin: 2px 0 0;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-arrow {
  position: absolute;
  right: 16px;
  bottom: 18px;
  color: var(--green);
  font-size: 18px;
  line-height: 1;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: var(--green);
}

.verified-badge svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.verified-text {
  color: var(--green-dark);
  font: 700 11px/1 'DM Sans', sans-serif;
  letter-spacing: 0.02em;
}

.cat-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(160deg, #eaf6e8, #f7fbf4);
  border: 1px solid #d5e6d4;
  color: var(--green);
}

.cat-icon { width: 22px; height: 22px; display: block; }

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

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 200px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.empty-state h3 {
  margin: 14px 0 8px;
  font: 600 22px/1.1 'Playfair Display', Georgia, serif;
}

.empty-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.preview-locked {
  grid-column: 1 / -1;
  padding: 4px 0 8px;
}

.preview-intro {
  margin: 0 0 18px;
  max-width: 640px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.category-mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.mosaic-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, #fff, #f6f1e8);
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.mosaic-tile span {
  color: var(--ink);
  font: 700 12px/1.25 'DM Sans', sans-serif;
}

.mosaic-tile .cat-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.preview-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.preview-signin {
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  border: 0;
  background: none;
  color: var(--green);
  font: inherit;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.signed-out .kind-filters-wrap,
body.signed-out #locationBar {
  display: none !important;
}

.site-footer {
  max-width: var(--board-max);
  margin: 0 auto;
  padding: 0 max(20px, calc((100% - var(--board-max)) / 2)) calc(40px + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 18px 0 14px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  color: var(--ink);
  font: 700 18px/1 'Playfair Display', Georgia, serif;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.footer-nav a:hover {
  color: var(--green);
}

.verified-explainer {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.verified-explainer h2 {
  margin: 0 0 6px;
  font: 600 20px/1.15 'Playfair Display', Georgia, serif;
  color: var(--ink);
}

.verified-explainer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(6, 23, 15, 0.72);
  backdrop-filter: blur(8px);
  z-index: 30;
}

.modal.open { display: flex; }

.dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: 90vh;
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(4, 21, 13, 0.32);
}

.dialog h2 {
  margin: 0;
  font: 600 32px/1.05 'Playfair Display', Georgia, serif;
}

.dialog p { color: var(--muted); line-height: 1.6; }

.close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f0f4ef;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}

.form { display: grid; gap: 10px; margin-top: 18px; }

.form label { font-size: 13px; font-weight: 700; }

.form input {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d7e1d8;
  border-radius: 12px;
  background: #fcfdfb;
}

.form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 131, 87, 0.1);
  outline: 0;
}

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

.status {
  min-height: 20px;
  margin: 4px 0 0;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
}

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

.password-row input { flex: 1; }

.show-password,
.text-button {
  border: 1px solid #cfdcd2;
  border-radius: 10px;
  background: #f6faf6;
  color: #17683e;
  font-weight: 800;
  cursor: pointer;
}

.text-button {
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
}

.account-menu {
  position: absolute;
  right: 0;
  top: 52px;
  width: 230px;
  padding: 10px;
  border: 1px solid #e2e8df;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(5, 27, 17, 0.2);
  z-index: 25;
}

.account-menu button {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.account-menu button:hover { background: #e6f6e9; }

.account-menu .menu-note {
  display: block;
  padding: 7px 12px 12px;
  color: var(--muted);
  font: 11px/1.3 'DM Mono', monospace;
}

.mobile-nav {
  display: none;
}

@media (max-width: 1024px) {
  html.signed-in body,
  body.signed-in {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  html.signed-out body,
  body.signed-out {
    padding-bottom: 0;
  }

  .site-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  body.signed-in .site-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .nav-indicator { display: none; }

  .explore-layout { grid-template-columns: 1fr; }

  .area-panel { max-width: 420px; }

  .mobile-nav {
    position: fixed;
    z-index: 15;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    padding: 6px;
    border: 1px solid rgba(224, 232, 222, 0.9);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 13px 35px rgba(7, 28, 18, 0.18);
    backdrop-filter: blur(14px);
  }

  html.signed-in .mobile-nav,
  body.signed-in .mobile-nav {
    display: grid;
  }

  body.signed-out.auth-modal-open .mobile-nav {
    display: none !important;
  }

  .mobile-nav button,
  .mobile-nav a {
    display: grid;
    gap: 3px;
    place-items: center;
    min-height: 53px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--muted);
    font: 700 11px/1.1 'DM Sans', sans-serif;
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-nav button:hover,
  .mobile-nav button:focus,
  .mobile-nav a:hover,
  .mobile-nav a.active {
    background: #eef5ee;
    color: var(--green);
  }

  .mobile-nav .nav-icon {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (max-width: 900px) {
  .header-tagline { display: none; }
}

@media (max-width: 760px) {
  .app-header {
    gap: 10px;
    min-height: 58px;
    padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right));
  }

  .brand {
    min-width: 0;
    font-size: clamp(20px, 5.4vw, 26px);
  }

  .brand-word {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-spacer {
    flex: 0 1 8px;
    min-width: 0;
  }

  .top-actions {
    flex-shrink: 0;
    gap: 8px;
  }

  .top-actions .button,
  .header-signin {
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .signup-label-desktop { display: none; }

  .signup-label-mobile { display: inline; }

  .explore-open { padding: 12px 0 14px; }

  .explore-main { padding: 0 0 12px; }

  .explore-main h1 {
    font-size: clamp(28px, 8.2vw, 36px);
    line-height: 1.06;
  }

  .explore-main .lead {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-actions { margin-top: 14px; }

  .area-panel {
    padding: 14px 16px;
    max-width: none;
  }

  .discovery-board { margin-top: -8px; padding-bottom: 20px; }

  .discovery-panel { padding: 20px 16px 22px; border-radius: 22px; }

  .listing-grid,
  .state-grid { grid-template-columns: 1fr; }

  .category-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .kind-filters-wrap { top: 58px; }

  .verified-text { display: none; }

  .browse-action { width: 100%; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .modal {
    align-items: flex-start;
    justify-content: flex-start;
    padding:
      max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .modal.open { display: flex; }

  .dialog {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 24px 18px 28px;
    max-height: none;
  }

  .dialog h2 {
    font-size: clamp(26px, 7vw, 32px);
    padding-right: 42px;
  }

  .form input,
  .form .button,
  .form button.button[type="submit"] {
    width: 100%;
  }

  .password-row {
    width: 100%;
  }

  .password-row input {
    min-width: 0;
  }

  .show-password {
    flex-shrink: 0;
  }

  .text-button {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 390px) {
  .category-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .mosaic-tile { min-height: 84px; padding: 10px 6px; }

  .top-actions .button {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 12px;
  }

  #signupButton .signup-label-mobile {
    font-size: 12px;
  }
}

.hub-kicker {
  margin-bottom: 9px;
  color: var(--green);
  font: 500 11px/1 'DM Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-hub {
  width: min(100%, 780px) !important;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.hub-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-right: 42px;
}

.hub-name {
  margin: 0;
  font: 600 38px/1 'Playfair Display', Georgia, serif;
  letter-spacing: -0.05em;
}

.hub-subtitle { margin: 7px 0 0 !important; }

.hub-tabs {
  display: flex;
  gap: 7px;
  margin: 25px 0 23px;
  padding: 5px;
  background: #eff4ef;
  border-radius: 999px;
  overflow: auto;
}

.hub-tab {
  flex: 1;
  min-width: max-content;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.hub-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(13, 43, 31, 0.1);
}

.hub-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.hub-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.hub-card.dark {
  background: linear-gradient(135deg, #12392b, #0b281e);
  color: #fff;
  border: 0;
}

.hub-card.dark p { color: #d5e6da; }

.hub-card h3 {
  margin: 0;
  font: 600 25px/1 'Playfair Display', Georgia, serif;
  letter-spacing: -0.04em;
}

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

.player-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-identity .profile-avatar {
  flex: 0 0 auto;
  margin: 0 !important;
}

.player-identity strong { font-size: 18px; }

.player-identity small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.stat {
  padding: 15px 12px;
  border-radius: 14px;
  background: #f2f7f1;
}

.stat b {
  display: block;
  font: 600 28px/1 'Playfair Display', Georgia, serif;
}

.stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font: 10px/1 'DM Mono', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hub-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 19px;
}

.hub-action-row .button { font-size: 14px; }

.history-list { display: grid; gap: 9px; margin-top: 15px; }

.round-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.round-row:first-child { border-top: 0; }

.round-row strong { display: block; font-size: 14px; }

.round-row small { color: var(--muted); font-size: 12px; }

.round-score {
  font: 600 27px/1 'Playfair Display', Georgia, serif;
}

.round-score small {
  font: 11px/1 'DM Sans', sans-serif;
}

.player-finder { display: grid; gap: 13px; }

.player-finder input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #d7e1d8;
  border-radius: 12px;
}

.player-list { display: grid; gap: 10px; margin-top: 17px; }

.player-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.player-row .profile-avatar {
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  font-size: 18px !important;
}

.player-row-main { min-width: 0; flex: 1; }

.player-row strong { display: block; }

.player-row small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.player-row .button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}

.empty-hub { padding: 34px 14px; text-align: center; }

.empty-hub h3 {
  margin: 0;
  font: 600 25px/1 'Playfair Display', Georgia, serif;
}

.form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.setup-note {
  padding: 15px;
  border: 1px solid #f0d79a;
  border-radius: 13px;
  background: #fff8e7;
  color: #735d1c;
  font-size: 14px;
  line-height: 1.5;
}

.setup-note code {
  font: 12px/1 'DM Mono', monospace;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #eaf5e9 !important;
  color: var(--green);
  font: 600 24px/1 'Playfair Display', Georgia, serif;
}

.avatar-picker { display: flex; gap: 10px; flex-wrap: wrap; }

.avatar-choice {
  width: 45px;
  height: 45px;
  border: 2px solid #dfe9e0;
  border-radius: 50%;
  background: #e6f6e9;
  color: var(--green);
  font-weight: 800;
  cursor: pointer;
}

.avatar-choice.selected {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.profile-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.profile-row b { display: block; }

.admin-dialog { max-width: 700px; }

.review {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
}

.review h3 {
  margin: 0 0 5px;
  font: 600 20px/1 'Playfair Display', Georgia, serif;
}

.review p { margin: 4px 0; font-size: 14px; }

.review-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.review-actions .reject { background: #8a3428; }

.player-hub-modal { align-items: flex-end; padding: 0; }

@media (max-width: 1024px) {
  .player-hub-modal { padding: 0; }

  .player-hub {
    width: 100% !important;
    max-height: 88vh;
    padding: 27px 20px 34px;
    border-radius: 25px 25px 0 0;
  }

  .hub-name { font-size: 33px; }

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

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

.detail-verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 14px;
}
