:root {
  --bg: #f6f3eb;
  --ink: #1a1a1a;
  --muted: #5a564f;
  --accent: #ffb703;
  --accent-dark: #fb8500;
  --card: #ffffff;
  --success: #1f8a70;
  --danger: #c1121f;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #ffe7c7 0%, var(--bg) 45%, #fef9f1 100%);
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 183, 3, 0.25), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(251, 133, 0, 0.2), transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(39, 125, 161, 0.15), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 20px 55px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-sizing: border-box;
}

.admin-page {
  max-width: 1400px;
}

.dashboard-page {
  max-width: 1280px;
}

.banner {
  background: #1f8a70;
  color: white;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.hero-playful {
  background:
    linear-gradient(135deg, rgba(255, 183, 3, 0.18), rgba(251, 133, 0, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 236, 0.95));
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-console {
  display: flex;
  gap: 10px;
  background: #1a1a1a;
  padding: 14px 18px;
  border-radius: 999px;
}

.console-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb703, #fb8500);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 12px;
}

h1 {
  font-family: "Bungee", sans-serif;
  font-size: 24px;
  margin: 0 0 10px;
}

.subtitle {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
}

.badge {
  background: var(--accent);
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.card-lite {
  padding: 16px;
  border-radius: 18px;
  background: #fff7e8;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.welcome-card {
  max-width: 540px;
}

.jumbo-button {
  width: 100%;
  min-height: 58px;
  font-size: 1.05rem;
}

.card h2 {
  margin-top: 0;
}

.hidden,
[hidden] {
  display: none !important;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}

.pokemon-list-editor {
  margin-top: 18px;
  display: grid;
  gap: 18px;
}

.pokemon-list-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 16px;
  background: #fff8ec;
  min-width: 0;
  overflow: hidden;
}

.pokemon-list-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 6px;
  align-items: start;
}

.pokemon-list-header h3,
.pokemon-list-header h4 {
  margin: 0;
}

.pokemon-list-header .muted {
  grid-column: 1 / -1;
  margin: 0;
}

.pokemon-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.pokemon-choice-grid > * {
  min-width: 0;
}

.pokemon-list-launch-card {
  cursor: pointer;
}

.pokemon-list-launch-card:focus-visible {
  outline: 2px solid rgba(110, 242, 255, 0.75);
  outline-offset: 4px;
}

.pokemon-list-count-badge {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(234, 243, 255, 0.86);
  font-size: 0.88rem;
  font-weight: 700;
}

.pokemon-list-launch-card.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.pokemon-list-launch-card.is-disabled * {
  cursor: not-allowed;
}

.shared-lists-page {
  max-width: 1080px;
}

.shared-lists-shell {
  display: grid;
  gap: 18px;
}

.shared-lists-header-card,
.shared-lists-browser {
  display: grid;
  gap: 16px;
}

.shared-lists-owner-copy {
  min-width: 0;
}

.shared-lists-owner-copy h1 {
  margin: 0;
}

.shared-lists-owner-copy .muted {
  margin: 6px 0 0;
}

.shared-lists-login-hint {
  margin: 0;
}

.shared-lists-empty {
  margin: 0;
  grid-column: 1 / -1;
}

.shared-pokemon-tile {
  cursor: default;
}

.shared-pokemon-tile:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
  .shared-list-results-grid {
    grid-template-columns: 1fr;
  }

  #shared-list-modal-shell .pokemon-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #shared-list-modal-shell .pokemon-filter-bar::-webkit-scrollbar {
    display: none;
  }

  #shared-list-modal-shell .pokemon-filter-chip {
    flex: 0 0 auto;
  }
}

.pokemon-list-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.pokemon-preview-pill {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(8, 14, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pokemon-preview-pill strong {
  font-size: 0.96rem;
}

.pokemon-preview-pill span,
.pokemon-preview-empty,
.pokemon-preview-more {
  color: var(--muted);
  font-size: 0.9rem;
}

.pokemon-list-modal-card {
  width: min(1080px, 100%);
  height: calc(100dvh - 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.pokemon-list-modal-card.is-form-drilldown {
  height: auto;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
}

.pokemon-list-modal-card.is-form-drilldown .pokemon-list-modal-grid {
  flex: 0 0 auto;
  overflow-y: visible;
  contain: none;
}

.pokemon-list-modal-header {
  align-items: flex-start;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.pokemon-list-modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pokemon-list-modal-card > .field {
  gap: 6px;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.pokemon-list-modal-card > .field span {
  font-size: 0.92rem;
}

.pokemon-form-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  align-content: start;
}

.pokemon-form-choice {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 100%;
  border: 1px solid rgb(119 224 255 / 63%);
  border-radius: 16px;
  padding: 10px 12px;
  background: #51aee557 !important;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 84px;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  isolation: auto;
  contain: layout paint;
  transform: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease;
}

.pokemon-form-choice:hover {
  border-color: rgba(110, 242, 255, 0.34);
  background: rgba(14, 22, 44, 0.86);
}

.pokemon-form-choice.selected {
  border-color: rgba(120, 235, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(34, 55, 96, 0.98), rgba(18, 29, 58, 0.98)),
    rgba(16, 27, 54, 0.96);
  box-shadow: none;
}

.pokemon-form-choice.checked .pokemon-picker-check {
  border-color: rgba(156, 243, 255, 0.55);
  background: rgba(113, 229, 255, 0.12);
}

.pokemon-form-choice.checked .pokemon-picker-checkmark {
  color: rgba(231, 252, 255, 0.92);
  opacity: 1;
}

.pokemon-form-choice.selected .pokemon-picker-check {
  border-color: rgba(156, 243, 255, 0.95);
  background: rgba(113, 229, 255, 0.18);
}

.pokemon-form-choice.selected .pokemon-picker-checkmark {
  color: rgba(231, 252, 255, 0.98);
  opacity: 1;
}

.pokemon-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.pokemon-filter-chip {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary.pokemon-filter-chip
{
    margin-top: 0;
    padding: 9px 14px;
    font-size: 15px;
}

.pokemon-filter-chip-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  min-height: 20px;
}

.pokemon-filter-chip-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
  margin: 0;
}

.pokemon-filter-chip:not(.selected) {
  background:
    none;
  border-color: rgba(110, 242, 255, 0.45);
  backdrop-filter: none;
  color: #fffffff5;
  text-shadow: none;
  box-shadow: 0 0 5px #0000006b;
}

.pokemon-list-modal-summary {
  margin: 0;
}

.pokemon-list-modal-grid {
  display: block;
  position: relative;
  z-index: 1;
  margin-top: 0;
  overflow-y: auto;
  padding-right: 4px;
  contain: layout paint style;
  overscroll-behavior: contain;
  flex: 1 1 0;
  min-height: 0;
}

.pokemon-list-request-footer {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 32px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(12, 18, 38, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  z-index: 5;
}

.pokemon-list-request-row {
  width: 100%;
  padding-top: 12px;
  box-sizing: border-box;
}

.pokemon-list-request-link {
  align-self: flex-start;
  text-align: left;
}

.pokemon-list-request-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pokemon-list-request-form textarea {
  min-height: 110px;
  resize: vertical;
}

.pokemon-sprite-preview-card {
  width: min(92vw, 520px);
  padding: 18px;
}

.pokemon-sprite-preview-header {
  align-items: center;
}

.pokemon-sprite-preview-header h3 {
  margin: 0;
}

.pokemon-sprite-preview-body {
  display: grid;
  place-items: center;
  padding: 12px 8px 4px;
  min-height: 240px;
}

#pokemon-sprite-preview-image {
  display: block;
  max-width: min(84vw, 420px);
  max-height: min(62vh, 420px);
  width: auto;
  height: auto;
  image-rendering: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.38));
}

.pokemon-list-virtual-canvas {
  position: relative;
  width: 100%;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none;
  color: #1a1a1a;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1rem;
}

.button-row .primary,
.button-row .ghost,
.dashboard-actions .primary,
.dashboard-actions .ghost {

}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

.small-button,
.icon-button {
  padding: 8px 12px;
  font-size: 0.88rem;
}

.selection-actions .ghost
{
  width: 100%;
  padding: 14px;
  height: 100%;
}

.status {
  margin-top: 12px;
  font-weight: 600;
  white-space: pre-line;
}

.status.error {
  color: var(--danger);
  backdrop-filter: brightness(50%) saturate(2.5);
  padding: 10px;
  width: fit-content;
  border-radius: 11px;
}

.status.success {
  color: var(--success);
}

.scheduler-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.dashboard-grid.hidden,
.dashboard-grid[hidden] {
  display: none !important;
}

.dashboard-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  border: 2px solid transparent;
  background: linear-gradient(180deg, #fff8ec, #fff1d6);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.dashboard-tile-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.dashboard-tile-icon svg {
  width: 24px;
  height: 24px;
  color: #8f4b16;
  fill: none;
  stroke: currentColor;
}

.dashboard-tile-icon i {
  font-size: 1.15rem;
  color: #8f4b16;
}

.dashboard-tile span {
  color: var(--muted);
  font-size: 0.92rem;
}

.dashboard-tile.active,
.dashboard-tile:hover {
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.premium-tile {
  background: linear-gradient(180deg, #ffe57f, #ffcb65);
}

.section-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-panel.hidden,
.section-panel[hidden] {
  display: none !important;
}

.panel-header {
  display: grid;
  gap: 10px;
  align-items: flex-start;
}

.section-back-button {
  white-space: nowrap;
  order: 2;
  justify-self: start;
  flex: none;
}

.lists-share-button {
  order: 3;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 16px;
  border-color: rgba(130, 219, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(80, 208, 255, 0.18), rgba(124, 92, 255, 0.24)),
    rgba(14, 20, 45, 0.78);
  color: #f6fbff;
  box-shadow: 0 14px 30px rgba(10, 14, 34, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lists-share-button i {
  font-size: 1rem;
  color: #9ee7ff;
}

.lists-share-button:hover,
.lists-share-button:focus-visible {
  border-color: rgba(130, 219, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(97, 225, 255, 0.24), rgba(145, 109, 255, 0.3)),
    rgba(18, 24, 52, 0.9);
  color: #ffffff;
}

.panel-header > :not(.section-back-button):not(.lists-share-button) {
  order: 1;
  flex: 1;
}

.panel-header h3,
.panel-header h4 {
  margin: 0;
}

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

.settings-account-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

.settings-account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.settings-account-names {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.settings-account-names strong {
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-account-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stack-card {
  display: grid;
  gap: 18px;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.stack-item {
  background: #fff8ec;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 16px;
  position: relative;
  display: grid;
  gap: 6px;
}

.stack-item .stack-item-top .pill,
.pending-activity-card .stack-item-top .pill {
  position: absolute;
  top: 14px;
  right: 14px;
}

.pending-activity-card {
  position: relative;
  display: grid;
  gap: 6px;
}

.pending-activity-card {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 36%),
    var(--glass-surface-strong);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.pending-activity-card p,
.pending-activity-card strong,
.pending-activity-card a {
  color: var(--ink);
}

.pending-activity-card .muted {
  color: var(--muted);
}

.highlight-card {
  border-color: rgba(251, 133, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.28);
}

.stack-item-body {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.stack-item .availability-card-map,
.pending-activity-card .availability-card-map {
  margin-top: 0;
}

.stack-item .availability-card-map-tile,
.pending-activity-card .availability-card-map-tile {
  flex: 1;
  height: auto;
  min-height: 80px;
}

.location-name-link {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  font-size: 20px !important;
  margin-bottom: 3px !important;
}

.location-name-link:hover {
  text-decoration-style: solid;
}

.meetup-location-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 15px;
}

.meetup-location-row .field {
  flex: 1;
  min-width: 0;
}

#meetup-location-map .availability-card-map {
  margin-top: 0;
}

#meetup-location-map .availability-card-map-tile {
  width: 110px;
  height: 110px;
}

.map-fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
}

.map-fullscreen-overlay > * {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  min-height: 0 !important;
  border-radius: 0 !important;
}

.map-fullscreen-overlay .maplibregl-ctrl-top-right,
.map-fullscreen-overlay .leaflet-top.leaflet-right {
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.map-fullscreen-overlay .maplibregl-ctrl-top-left,
.map-fullscreen-overlay .leaflet-top.leaflet-left {
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
}

.map-fullscreen-overlay .maplibregl-ctrl-bottom-right,
.map-fullscreen-overlay .leaflet-bottom.leaflet-right {
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.meetup-somewhere-else-picker {
  margin-top: 10px;
}

.meetup-somewhere-else-picker.hidden {
  display: none;
}

.meetup-somewhere-else-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.meetup-somewhere-else-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  min-height: 0;
}

.meetup-somewhere-else-map {
  min-height: 260px;
  height: 100%;
  width: 100%;
  aspect-ratio: auto;
  border-radius: 14px;
  overflow: hidden;
  align-self: stretch;
}

.counter-meetup-card .meetup-somewhere-else-layout {
  grid-template-columns: 1fr;
}

.counter-meetup-card .meetup-somewhere-else-map {
  min-height: 220px;
  height: 220px;
  order: 1;
}

@media (max-width: 768px) {
  .meetup-somewhere-else-layout {
    grid-template-columns: 1fr;
  }

  .meetup-somewhere-else-map {
    min-height: 180px;
    height: 180px;
    aspect-ratio: auto;
    order: -1;
  }
}

.stack-item-content {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.scheduled-trade-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.scheduled-trade-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
}

.scheduled-trade-item .availability-card-map {
  margin-top: 0;
  width: 110px;
}

.scheduled-trade-item .availability-card-map-tile {
  flex: none;
  width: 110px;
  height: 90px;
}

@media (min-width: 640px) {
  .scheduled-trade-item .availability-card-map {
    width: 150px;
  }
  .scheduled-trade-item .availability-card-map-tile {
    width: 150px;
    height: 110px;
  }
}

.scheduled-trade-item .stack-item-content {
  display: flex;
  flex-direction: column;
}

.scheduled-trade-item .stack-item-content .button-row {
  margin-top: auto;
}

.scheduled-trade-item .stack-item-content .button-row button {
  height: 40px;
}

.scheduled-date-header {
  font-size: 22px;
    font-weight: 700;
    /* text-transform: uppercase; */
    /* letter-spacing: 0.06em; */
    color: white;
    margin: 16px 0 0px;
    padding: 0 2px;
    filter: opacity(1);
    opacity: 1;
}

.scheduled-date-header:first-child {
  margin-top: 0;
}

.scheduled-trade-item .partner-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-pill-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.scheduled-trade-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-right: 130px;
  flex-wrap: wrap;
}

.scheduled-trade-header p,
.scheduled-trade-header strong {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.scheduled-trade-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16;
  font-weight: 700;
  background: none;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 3px 10px 3px 7px;
  white-space: nowrap;
}

.stack-item-top {
  padding-right: 60px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #fff0cf;
}

.pill.pending {
  background: #fff0cf;
}

.pill.accepted,
.pill.success {
    background: #f1f5ffa8;
    border-color: white;
    color: #212121;
    text-shadow: none;
    border: 3px solid white;
    box-shadow: 1px 1px 1px black;
}

.pill.denied,
.pill.declined,
.pill.canceled {
  background: #fde4e4;
}

.pill.countered {
  background: #e9ebff;
}

.pill.subtle {
  text-transform: none;
  background: none;
}

.compact {
  margin-top: 16px;
}

.friend-code-card {
  background: linear-gradient(135deg, #1f8a70, #277da1);
  color: white;
  border-radius: 20px;
  padding: 20px;
  display: grid;
  gap: 8px;
}

.friend-code-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.friend-code-copy-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.friend-code-copy-button i {
  font-size: 1rem;
}

.friend-manual-add {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.input-with-button {
  position: relative;
  display: flex;
}

.input-with-button input {
  padding-right: 120px;
  width: 100%;
}

.input-with-button .primary {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  height: auto;
  padding: 0 14px;
  white-space: nowrap;
  transition: box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.friend-code-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.rarity-board {
  display: grid;
  gap: 10px;
}

.rarity-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  background: #fff8ec;
  border-radius: 16px;
  padding: 12px 14px;
}

.rarity-row small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.toggle-row {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
  margin-top: 16px;
}

.modal-shell {
  position: fixed;
  inset: 0;
  background: rgba(18, 22, 28, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  z-index: 3;
}

#pokemon-list-modal-shell {
  z-index: 4;
}

.modal-shell.hidden,
.modal-shell[hidden] {
  display: none !important;
}

.modal-card {
  width: min(960px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #fffdf6, #fff6e4);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.confirm-modal-card,
.counter-offer-card,
.counter-meetup-card {
  position: relative;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-card.counter-meetup-card {
  overflow-y: auto;
  max-height: calc(100dvh - 36px);
}

.confirm-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    margin-top: 0;
    padding: 10px 12px;
    font-size: 0.875rem;
}

.confirm-modal-close h3
{
  margin-bottom: 0;
}

.cancel-scheduled-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.onboarding-card {
  width: min(760px, 100%);
}

.onboarding-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}

.onboarding-progress-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border-radius: 999px;
  background: rgba(255, 183, 3, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 700;
  color: var(--muted);
}

.onboarding-progress-step.active {
  background: linear-gradient(135deg, #ffdf8b, #ffc766);
  color: var(--ink);
}

.onboarding-progress-step.complete {
  background: #dff7ee;
  color: var(--success);
}

.onboarding-list-editor {
  margin-top: 0;
}

.onboarding-step {
  display: grid;
  gap: 12px;
}

.onboarding-step > .muted {
  margin: 0;
}

.onboarding-step-copy {
  margin-top: -2px;
}

.onboarding-step.hidden {
  display: none;
}

.onboarding-actions {
  justify-content: space-between;
}

#onboarding-shell {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
  padding-top: 20px;
  padding-bottom: 20px;
}

#onboarding-shell .onboarding-card {
  margin: auto 0;
}

.availability-location-fields {
  display: grid;
  gap: 12px;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
}

#findappointment
{
  margin-top: 15px;
}

.trainer-pill {
  background: rgba(255, 183, 3, 0.15);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 20px;
}

.calendar {
  margin-top: 18px;
  background: #fff9ef;
  border-radius: 20px;
  padding: 20px;
  overflow-x: auto;
}

.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 12px;
}

#month-label {
  font-size: 1.1rem;
}

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

.calendar-cell {
  background: white;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calendar-cell.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar-cell.full {
  background: #fbe8e8;
  border-color: rgba(193, 18, 31, 0.2);
}

.calendar-cell.available {
  background: #f2fbf7;
  border-color: rgba(31, 138, 112, 0.2);
}

.calendar-cell:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.calendar-cell.selected {
  outline: 3px solid var(--accent-dark);
}

.calendar-day {
  font-weight: 700;
}

.calendar-meta {
  font-size: 0.8rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.2;
}

.calendar-labels {
  display: contents;
}

.calendar-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-align: center;
}

.flow {
  margin-top: 28px;
  display: grid;
  gap: 20px;
}

.step {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.location-card {
  background: #fff7e0;
  border-radius: 18px;
  padding: 14px;
  border: 2px solid transparent;
  cursor: pointer;
}

.location-card.selected {
  border-color: var(--accent-dark);
  background: #fff0cf;
}

.location-card.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.location-card a {
  font-weight: 600;
  color: var(--ink);
}

.location-card h4 {
  margin: 0 0 6px;
}

.hosts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.host-card {
  background: #fff7e0;
  border-radius: 18px;
  padding: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.host-card img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.host-card.selected {
  border-color: var(--accent-dark);
  background: #fff0cf;
}

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

.trade-types {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trade-type {
  background: #f7f3ed;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  flex: 1 1 200px;
}

.trade-type.selected {
  border-color: var(--accent-dark);
  background: #fff0cf;
}

.pokemon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.pokemon-grid.shared-list-results-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pokemon-picker {
  -webkit-appearance: none;
  appearance: none;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 10px 12px;
  background: #f7f3ed;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ink);
  width: 100%;
  min-height: 84px;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.pokemon-picker-sprite {
  width: 52px;
  height: 52px;
  object-fit: contain;
  pointer-events: none;
  flex: 0 0 auto;
}

.pokemon-picker.selected {
  border-color: var(--accent-dark);
  background: #fff0cf;
}

.selection-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1 1 0;
}

.selection-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}

.selection-selected {
  flex: 1 1 0;
  display: flex;
}

.selection-selected .pokemon-card {
  width: 100%;
  align-items: center;
  text-align: center;
  height: 100%;
}

.selection-selected .pokemon-picker {
  width: 100%;
  align-items: center;
  text-align: center;
  height: 100%;
}

.selection-selected .pokemon-name {
  text-align: center;
}

.selection-selected .location-card,
.selection-selected .time-btn {
  width: 100%;
  height: 100%;
}

.pokemon-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.pokemon-section {
  margin-bottom: 16px;
}

.trade-disclaimer {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #fff5e0;
  border: 1px solid rgba(251, 133, 0, 0.25);
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.checkbox input {
  margin-top: 3px;
}

.form-dialog {
  border: none;
  border-radius: 18px;
  padding: 20px;
  max-width: 420px;
  width: min(90vw, 420px);
  box-shadow: var(--shadow);
}

.form-dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-body {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dialog-body button {
  border-radius: 999px;
}

.pokemon-card {
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 12px;
  background: #f7f3ed;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
}

.pokemon-card.selected {
  border-color: var(--accent-dark);
  background: #fff0cf;
}

.time-btn {
  padding: 10px 7px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
  cursor: pointer;
  font-weight: 600;
}

.time-btn.selected {
  background: #1f8a70;
  color: white;
  border-color: #1f8a70;
}

.time-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.summary {
  background: rgba(8, 14, 32, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  font-weight: 600;
  color: rgba(245, 249, 255, 0.92);
}

.appointment-details {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.hint {
  color: var(--muted);
  margin-top: 12px;
}

.admin summary {
  font-weight: 700;
  cursor: pointer;
}

.admin-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  align-items: end;
}

.admin-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-tab-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255 255 255 / 0.18);
  background: transparent;
  color: rgb(255 255 255 / 0.65);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.admin-tab:hover {
  background: rgba(255 255 255 / 0.08);
  color: #fff;
}

.admin-tab.active {
  background: rgba(255 255 255 / 0.14);
  border-color: rgba(255 255 255 / 0.35);
  color: #fff;
  font-weight: 600;
}

.content-editor-wrap {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255 255 255 / 0.12);
}

.content-editor-wrap .ql-toolbar {
  background: rgba(255 255 255 / 0.06);
  border: none;
  border-bottom: 1px solid rgba(255 255 255 / 0.12);
}

.content-editor-wrap .ql-toolbar .ql-stroke { stroke: rgb(255 255 255 / 0.7); }
.content-editor-wrap .ql-toolbar .ql-fill   { fill:   rgb(255 255 255 / 0.7); }
.content-editor-wrap .ql-toolbar .ql-picker  { color: rgb(255 255 255 / 0.7); }
.content-editor-wrap .ql-toolbar .ql-picker-options { background: #1a2040; }
.content-editor-wrap .ql-toolbar button:hover .ql-stroke,
.content-editor-wrap .ql-toolbar button.ql-active .ql-stroke { stroke: #fff; }
.content-editor-wrap .ql-toolbar button:hover .ql-fill,
.content-editor-wrap .ql-toolbar button.ql-active .ql-fill   { fill: #fff; }

.content-editor-wrap .ql-container {
  background: rgba(255 255 255 / 0.04);
  border: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  min-height: 220px;
  color: rgb(255 255 255 / 0.88);
}

.content-editor-wrap .ql-editor { min-height: 220px; padding: 14px 18px; }
.content-editor-wrap .ql-editor.ql-blank::before { color: rgb(255 255 255 / 0.3); }

.admin-pokemon-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.2fr);
  gap: 22px;
  align-items: start;
}

.admin-pokemon-browser,
.admin-pokemon-editor {
  background: rgba(11, 19, 44, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-pokemon-browser {
  display: grid;
  gap: 14px;
}

.admin-pokemon-list {
  display: grid;
  gap: 10px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.admin-pokemon-row {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(8, 14, 32, 0.58);
  color: inherit;
  padding: 14px;
  text-align: left;
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.admin-pokemon-row-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.admin-pokemon-row-sprite {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.admin-pokemon-row-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
}

.admin-pokemon-row:hover,
.admin-pokemon-row:focus-visible {
  border-color: rgba(138, 205, 255, 0.55);
  background: rgba(12, 20, 46, 0.72);
}

.admin-pokemon-row.active {
  border-color: rgba(255, 176, 62, 0.88);
  background: linear-gradient(135deg, rgba(36, 68, 132, 0.74), rgba(76, 30, 107, 0.72));
}

.admin-pokemon-row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.admin-pokemon-row-subtitle,
.admin-pokemon-row-meta {
  color: rgba(234, 242, 255, 0.72);
  font-size: 0.92rem;
}

.admin-pokemon-editor {
  display: grid;
  gap: 16px;
}

.admin-pokemon-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-pokemon-editor-header h3 {
  margin: 4px 0 0;
}

.admin-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 12, 28, 0.48);
}

.admin-checkbox input {
  margin: 0;
}

.admin-pokemon-preview {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 14, 32, 0.52);
}

.admin-pokemon-toolbox {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 14, 32, 0.52);
  display: grid;
  gap: 12px;
}

.admin-pokemon-preview p {
  margin: 0;
}

#pokemon-preview-name {
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-background-batch-card {
  margin-top: 18px;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 19, 44, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-background-batch-toolbar {
  display: grid;
  gap: 12px;
}

.admin-background-batch-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
  align-content: start;
}

.admin-background-batch-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 14, 32, 0.5);
  color: inherit;
  min-height: 96px;
}

.admin-background-batch-row input {
  margin: 0;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.admin-background-batch-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-background-batch-title {
  color: rgba(245, 249, 255, 0.96);
  font-weight: 700;
}

.admin-background-batch-meta {
  color: rgba(234, 242, 255, 0.72);
  font-size: 0.92rem;
}

.admin-release-layout {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.admin-release-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

.admin-release-filter {
  min-height: 52px;
  white-space: nowrap;
}

.admin-release-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  max-height: 920px;
  overflow: auto;
  padding-right: 4px;
  color: rgba(245, 249, 255, 0.94);
  align-content: start;
}

.admin-release-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 14, 32, 0.5);
  color: inherit;
  min-height: 96px;
}

.admin-release-row input {
  margin: 0;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.admin-release-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-release-title {
  color: rgba(245, 249, 255, 0.96);
  font-weight: 700;
}

.admin-release-meta {
  color: rgba(234, 242, 255, 0.72);
  font-size: 0.92rem;
}

.admin-empty-state {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: rgba(234, 242, 255, 0.72);
  text-align: center;
}

.admin-missing-pokemon-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.admin-missing-pokemon-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(14, 21, 44, 0.55);
  display: grid;
  gap: 8px;
}

.admin-missing-pokemon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-missing-pokemon-message {
  margin: 0;
  white-space: pre-wrap;
}

.override-list {
  margin-top: 14px;
  font-size: 0.9rem;
}

#admin-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#admin-content.hidden,
#admin-content[hidden] {
  display: none;
}

.availability-editor {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  color: #f4f8ff;
}

.availability-editor.is-disabled {
  opacity: 0.62;
}

.availability-editor.is-disabled * {
  cursor: not-allowed;
}

.availability-editor .muted,
.availability-editor p,
.availability-editor label,
.availability-editor span,
.availability-editor strong {
  color: inherit;
}

.availability-editor .muted {
  color: rgba(228, 237, 255, 0.78);
}

.availability-loading-message {
  padding: 24px 0 8px;
}

.availability-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 16px;
  background: #fff7e8;
  display: grid;
  gap: 14px;
  position: relative;
}

.availability-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0;
}

.availability-location-fields {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 10px;
}

.availability-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.availability-note {
  margin: 0;
  max-width: 620px;
}

.availability-location-map-tools {
  display: grid;
  gap: 8px;
}

.availability-card-map {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 150px;
  margin-top: 20px;
}

.availability-card-map-tile {
  width: 150px;
  height: 110px;
  background-size: 256px 256px;
  background-repeat: no-repeat;
  background-color: #e8efe8;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.availability-card-map-tile:hover {
  outline: 2px solid rgba(78, 167, 255, 0.7);
  outline-offset: 1px;
}

.availability-card-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 28px;
  transform: translate(-50%, -100%);
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.location-map-popup {
  position: absolute;
  z-index: 9999;
  background: rgba(14, 20, 40, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 180px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.location-map-popup.hidden {
  display: none;
}

.location-map-popup-option {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  color: rgba(245, 250, 255, 0.95);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.1s;
}

.location-map-popup-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.availability-entry-list {
  display: grid;
  gap: 12px;
}

.availability-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: baseline;
  font-size: 0.9rem;
}

.availability-summary-day {
  white-space: nowrap;
}

.availability-summary-time {
  white-space: nowrap;
}

.availability-actions {
  display: flex;
  justify-content: flex-start;
}

.availability-entry-card {
  display: grid;
  grid-template-columns: minmax(110px, 1.25fr) minmax(88px, 1fr) minmax(108px, 1.08fr);
  gap: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 22px 16px 16px;
  overflow: hidden;
  position: relative;
  align-items: start;
}

.availability-entry-card > * {
  min-width: 0;
}

.availability-remove-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 0 14px 0 10px;
  border: 1px solid rgba(255, 96, 123, 0.36);
  background: rgb(152 32 55);
  color: #ff8fa5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-top: none;
  border-right: none;
}

.availability-remove-icon:hover,
.availability-remove-icon:focus-visible {
  color: #ffdbe2;
  border-color: rgba(255, 132, 152, 0.52);
  background: rgba(98, 22, 37, 0.88);
}

.availability-remove-icon i {
  font-size: 0.78rem;
}

.availability-remove-icon-location {
  position: absolute;
  top: -1px;
  right: -1px;
}

.availability-remove-icon-entry {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 30px;
  height: 30px;
}

.availability-entry-field {
  min-width: 0;
  width: 100%;
  padding-top: 0;
}

.availability-entry-field select,
.availability-entry-field .time-picker-trigger {
  width: 100%;
}

.availability-override-editor {
  display: grid;
  gap: 10px;
}

.availability-location-picker-card {
  width: min(960px, calc(100vw - 32px));
  height: min(calc(100dvh - 36px), 860px);
  max-height: min(calc(100dvh - 36px), 860px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  min-width: 0;
  min-height: 0;
}

.availability-location-picker-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  column-gap: 12px;
  row-gap: 2px;
}

.availability-location-picker-header h3 {
  margin: 0;
}

.availability-location-picker-header p {
  grid-column: 1 / -1;
  margin: 0;
}

.availability-location-picker-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

.availability-location-picker-layout > .availability-location-picker-sidebar {
  grid-column: 1;
  grid-row: 1;
}

.availability-location-picker-layout > .availability-location-picker-map {
  grid-column: 2;
  grid-row: 1 / -1;
}

#availability-location-status {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
}

.availability-location-picker-layout > * {
  min-width: 0;
  min-height: 0;
}

.availability-location-picker-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 12px;
  align-content: start;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.availability-location-picker-actions {
  justify-content: flex-start;
}

.availability-location-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.availability-location-picker-map {
  min-height: 360px;
  height: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: auto;
  justify-self: stretch;
  align-self: stretch;
  box-sizing: border-box;
  display: block;
  border-radius: 18px;
  overflow: hidden;
}

.availability-location-selected,
.availability-location-results {
  background: rgba(7, 12, 26, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px;
}

.availability-location-selected {
  min-height: 72px;
  display: grid;
  gap: 6px;
  margin-top: 7px;
}

.availability-location-selected strong {
  color: rgba(247, 250, 255, 0.98);
}

.availability-location-results {
  display: none;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.availability-location-picker-card.has-search .availability-location-results {
  display: grid;
}

.availability-location-result {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 22, 44, 0.84);
  color: rgba(247, 250, 255, 0.96);
}

.availability-location-result:hover,
.availability-location-result:focus-visible {
  border-color: rgba(110, 242, 255, 0.42);
  background: rgba(19, 31, 58, 0.96);
}

.availability-location-results-empty {
  margin: 0;
}

.availability-location-picker-footer {
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  z-index: 1;
  padding-top: 6px;
  
}

.availability-range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.availability-entry-card input[type="time"],
.availability-entry-card select,
.availability-range-row input[type="time"],
.time-picker-trigger {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: block;
  padding: 10px 7px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: inherit;
  background: white;
}

.time-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-weight: 600;
  color: #fbfdff;
  appearance: none;
  -webkit-appearance: none;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 36%),
    var(--glass-surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 32px rgba(10, 18, 41, 0.22);
}

.time-picker-trigger:not(.has-value) {
  color: rgba(234, 242, 255, 0.74);
}

.time-picker-trigger-icon {
  flex: none;
  color: #9ee8ff;
  font-size: 0.9rem;
}

.availability-range-separator {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.availability-empty {
  margin: 0;
  font-size: 0.9rem;
}

.time-wheel-open {
  overflow: hidden;
}

.time-wheel-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 16px;
  background: rgba(36, 24, 10, 0.36);
  backdrop-filter: blur(10px);
}

.time-wheel-overlay[hidden] {
  display: none !important;
}

.time-wheel-sheet {
  width: min(560px, 100%);
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(255, 244, 223, 0.98));
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 26px 60px rgba(36, 18, 0, 0.2);
}

.time-wheel-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.time-wheel-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.time-wheel-heading .eyebrow {
  margin-bottom: 4px;
}

.time-wheel-heading .muted {
  margin: 4px 0 0;
}

.time-wheel-frame {
  position: relative;
  margin-top: 16px;
}

.time-wheel-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 12px;
}

.time-wheel-columns.single-column {
  grid-template-columns: minmax(0, 1fr);
  max-width: 260px;
  margin: 0 auto;
}

.time-wheel-columns.single-column .time-wheel-column:not([data-column="hour"]) {
  display: none;
}

.time-wheel-column {
  position: relative;
  height: 260px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 104px 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  scroll-snap-type: y mandatory;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.time-wheel-column::-webkit-scrollbar {
  display: none;
}

.time-wheel-option {
  width: 100%;
  height: 52px;
  border: 0;
  background: transparent;
  color: rgba(41, 37, 30, 0.35);
  font: inherit;
  font-size: 1.95rem;
  line-height: 1;
  letter-spacing: -0.04em;
  scroll-snap-align: center;
  transition: color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.time-wheel-column[data-column="period"] .time-wheel-option {
  font-size: 1.6rem;
}

.time-wheel-option.selected {
  color: #1f1b16;
  transform: scale(1.02);
}

.time-wheel-highlight {
  position: absolute;
  top: 104px;
  left: 0;
  right: 0;
  height: 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.time-wheel-fade {
  position: absolute;
  left: 0;
  right: 0;
  height: 96px;
  pointer-events: none;
  z-index: 2;
}

.time-wheel-fade-top {
  top: 0;
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.98), rgba(255, 249, 239, 0));
}

.time-wheel-fade-bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(255, 244, 223, 0.98), rgba(255, 244, 223, 0));
}

.date-picker-open,
.time-wheel-open {
  overflow: hidden;
}

.date-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 16px;
  background: rgba(36, 24, 10, 0.36);
  backdrop-filter: blur(10px);
}

.date-picker-overlay[hidden] {
  display: none !important;
}

.date-picker-sheet {
  width: min(520px, 100%);
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(255, 244, 223, 0.98));
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 26px 60px rgba(36, 18, 0, 0.2);
}

.date-picker-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.date-picker-heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.date-picker-heading .eyebrow,
.date-picker-heading .muted {
  margin: 0;
}

.date-picker-heading .muted {
  margin-top: 4px;
}

.date-picker-month-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.date-picker-month-bar strong {
  text-align: center;
  font-size: 1.05rem;
}

.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.date-picker-weekdays {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date-picker-weekdays span {
  text-align: center;
}

.date-picker-grid {
  margin-top: 10px;
}

.date-picker-empty,
.date-picker-day {
  min-height: 48px;
  border-radius: 16px;
}

.date-picker-empty {
  display: block;
}

.date-picker-day {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.date-picker-day:disabled {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(0, 0, 0, 0.04);
  color: rgba(36, 30, 22, 0.25);
}

.date-picker-day:not(:disabled):hover,
.date-picker-day:not(:disabled):focus-visible {
  transform: translateY(-1px);
  border-color: rgba(240, 146, 45, 0.45);
}

.date-picker-day.selected {
  background: linear-gradient(180deg, #ffcf6e, #ffb137);
  border-color: rgba(201, 109, 39, 0.34);
  color: #2e2108;
  box-shadow: 0 12px 24px rgba(201, 109, 39, 0.18);
}

@media (min-width: 769px) {
  .time-wheel-overlay {
    align-items: center;
    padding: 28px;
  }

  .time-wheel-sheet {
    width: min(420px, 100%);
    padding: 16px;
  }

  .time-wheel-frame {
    margin-top: 12px;
  }

  .time-wheel-column {
    height: 232px;
    padding: 90px 0;
  }

  .time-wheel-highlight {
    top: 90px;
  }

  .time-wheel-fade {
    height: 82px;
  }

  .time-wheel-option {
    font-size: 1.75rem;
  }

  .time-wheel-column[data-column="period"] .time-wheel-option {
    font-size: 1.4rem;
  }

  .date-picker-overlay {
    align-items: center;
    padding: 28px;
  }

  .date-picker-sheet {
    width: min(430px, 100%);
    padding: 16px;
  }

  .date-picker-day {
    min-height: 44px;
  }
}

.pokemon-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}

.pokemon-list-column h3 {
  margin-top: 0;
}

.table-scroll {
  margin-top: 16px;
  overflow: auto;
}

.booking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.booking-table th,
.booking-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

.booking-table th {
  background: #fff0cf;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: transparent;
}

.admin-users-table th,
.admin-users-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: middle;
  background: transparent;
  box-shadow: none;
}

.admin-users-table th {
  color: rgba(223, 247, 255, 0.92);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-users-table .ghost {
  min-height: 38px;
  padding: 8px 12px;
  box-shadow: none;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }

  .dashboard-topbar {
    flex-direction: column;
  }

  .calendar-cell {
    padding: 10px;
  }

  .availability-entry-card {
    grid-template-columns: minmax(104px, 1.32fr) minmax(74px, 0.9fr) minmax(74px, 0.9fr);
    gap: 8px;
    padding: 22px 14px 14px;
  }

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

  .availability-range-separator {
    display: none;
  }

  .time-wheel-header {
    grid-template-columns: 1fr;
  }

  .time-wheel-header .small-button {
    width: 100%;
  }

  .time-wheel-columns {
    gap: 8px;
  }

  .time-wheel-columns.single-column {
    max-width: none;
  }

  .time-wheel-option {
    font-size: 1.6rem;
  }

  .time-wheel-column[data-column="period"] .time-wheel-option {
    font-size: 1.3rem;
  }

  .date-picker-header,
  .date-picker-month-bar {
    grid-template-columns: 1fr;
  }

  .date-picker-month-bar strong {
    order: -1;
  }

  .date-picker-weekdays,
  .date-picker-grid {
    gap: 6px;
  }

  .date-picker-empty,
  .date-picker-day {
    min-height: 42px;
    border-radius: 14px;
  }
}

@media (min-width: 900px) {
  .split-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  }
}

@media (max-width: 600px) {
  .page {
    padding: 32px 14px 60px;
  }

  .card,
  .hero-playful {
    padding: 20px;
    border-radius: 20px;
  }

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

  .dashboard-tile {
    padding: 14px;
  }

  .dashboard-tile-icon {
    width: 38px;
    height: 38px;
  }

  .panel-header {
    flex-direction: column;
  }

  .section-back-button {
    width: 100%;
  }

  .pokemon-list-editor {
    grid-template-columns: 1fr;
  }

  .pokemon-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pokemon-grid.shared-list-results-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-progress {
    gap: 8px;
  }

  #onboarding-shell {
    padding: 12px;
  }

  #onboarding-shell .onboarding-card {
    max-height: none;
  }

  .friend-code-card strong {
    font-size: 1.1rem;
  }

  .calendar {
    padding: 12px;
  }

  .calendar-grid {
    gap: 6px;
  }

  .calendar-cell {
    padding: 8px;
  }

  .calendar-day {
    font-size: 0.9rem;
  }

  .calendar-meta {
    font-size: 0.7rem;
  }

  .calendar-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
  }

  .availability-toolbar {
    flex-direction: column;
  }

  .availability-actions .ghost,
  .availability-range-row .icon-button {
    width: 100%;
  }

  .availability-card {
    padding-top: 18px;
  }

  .availability-location-fields,
  .availability-entry-field,
  .availability-entry-field select,
  .availability-entry-field .time-picker-trigger {
    width: 100%;
    max-width: 100%;
  }

  .availability-location-picker-card {
    width: min(100vw - 20px, 100%);
    gap: 8px;
    padding: 14px;
  }

  .availability-location-picker-layout {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    gap: 8px;
  }

  .availability-location-picker-sidebar {
    flex-shrink: 0;
    grid-template-rows: auto auto auto;
    overflow-y: visible;
    min-height: 0;
    gap: 6px;
  }

  .availability-location-results {
    max-height: 300px;
  }

  .world-map.availability-location-picker-map {
    flex: 1 0 200px;
    height: auto;
    aspect-ratio: auto;
  }

  #availability-location-status {
    display: none;
    flex-shrink: 0;
    margin: 0;
  }

  .availability-location-picker-card.has-search #availability-location-status {
    display: block;
  }

  .availability-location-picker-footer {
    justify-content: stretch;
  }

  .availability-location-picker-footer .primary,
  .availability-location-picker-footer .ghost {
    flex: 1 1 auto;
  }
}

@media (max-width: 1100px) {
  .pokemon-grid.shared-list-results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .pokemon-grid.shared-list-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pokemon-grid.shared-list-results-grid {
    grid-template-columns: 1fr;
  }
}

/* Liquid Glass Overhaul */

:root {
  --bg: #050816;
  --ink: #f5f7ff;
  --muted: #a7b3d7;
  --accent: #6ef2ff;
  --accent-dark: #b14dff;
  --card: rgba(10, 16, 34, 0.58);
  --success: #6ff7bd;
  --danger: #ff6f91;
  --shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 12px 35px rgba(79, 103, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-surface:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  --glass-surface-strong:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
  --glass-highlight: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(26px) saturate(160%);
}

html {
  background:
    radial-gradient(circle at top, rgba(35, 66, 194, 0.2), transparent 45%),
    #050816;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 227, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(190, 62, 255, 0.22), transparent 30%),
    radial-gradient(circle at 70% 82%, rgba(58, 255, 176, 0.14), transparent 30%),
    linear-gradient(180deg, #070b19 0%, #030611 45%, #050816 100%);
  color: var(--ink);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.55;
}

body::before {
  width: 28rem;
  height: 28rem;
  top: -8rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(132, 92, 255, 0.75), transparent 68%);
}

body::after {
  width: 24rem;
  height: 24rem;
  left: -8rem;
  bottom: 6rem;
  background: radial-gradient(circle, rgba(46, 216, 255, 0.58), transparent 72%);
}

.aurora {
  background:
    radial-gradient(circle at 8% 20%, rgba(92, 224, 255, 0.35), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(176, 96, 255, 0.32), transparent 28%),
    radial-gradient(circle at 72% 76%, rgba(54, 255, 181, 0.22), transparent 24%),
    radial-gradient(circle at 30% 100%, rgba(255, 71, 173, 0.12), transparent 28%);
  filter: blur(8px) saturate(135%);
  opacity: 0.95;
}

.page {
  max-width: 1320px;
}

a {
  color: #8ee8ff;
}

.eyebrow,
.subtitle,
.dashboard-tile span,
.calendar-meta,
.pokemon-note,
.muted,
.friend-code-label {
  color: var(--muted);
}

h1,
h2,
h3,
h4,
strong,
label,
.calendar-day,
.date-picker-month-bar strong,
#month-label {
  color: var(--ink);
}

.hero-playful,
.card::after,
.card-lite,
.banner,
.stack-item,
.pending-activity-card,
.pokemon-list-card,
.rarity-row,
.modal-card,
.form-dialog,
.calendar,
.step,
.location-card,
.host-card,
.trade-type,
.pokemon-picker,
.availability-entry-card,
.date-picker-sheet,
.time-wheel-sheet,
.booking-table th,
.booking-table td,
.friend-code-card,
.welcome-card,
.trainer-pill {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.hero-playful,
.card,
.modal-card,
.form-dialog,
.calendar,
.date-picker-sheet,
.time-wheel-sheet {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Backdrop-filter lives on ::after so children can have their own without
   the parent creating a backdrop root that breaks nested filters. */
.card::after,
.modal-card::after,
.date-picker-sheet::after,
.time-wheel-sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
}

/* filter: opacity(1) forces each card child into its own compositing layer,
   preventing the card's backdrop-filter from bleeding into child text rendering */
/*.card > *,
.modal-card > *,
.date-picker-sheet > *,
.time-wheel-sheet > * {
  position: relative;
  filter: opacity(1);
}*/

#add-friend-code
{
  margin-top: 0;
  margin-right: 3px;
}

.field span
{
  filter: opacity(1);
}

#trade-standard-fields > .field > span, #trade-mirror-fields > .field >  span
{
  margin-top: 8px;
}

#scheduled-tabs .trade-type
{
  color: white;
}

.hero-playful::before,
.card::before,
.modal-card::before,
.form-dialog::before,
.date-picker-sheet::before,
.time-wheel-sheet::before {
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 38%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent);
  pointer-events: none;
}

.hero-playful {
  background:
    radial-gradient(circle at top right, rgba(126, 242, 255, 0.18), transparent 32%),
    radial-gradient(circle at left bottom, rgba(177, 77, 255, 0.16), transparent 32%),
    var(--glass-surface-strong);
}

.hero-console {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(4, 10, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.console-dot:nth-child(1) {
  background: linear-gradient(135deg, #53f8ff, #2882ff);
}

.console-dot:nth-child(2) {
  background: linear-gradient(135deg, #ff58cb, #a855f7);
}

.console-dot:nth-child(3) {
  background: linear-gradient(135deg, #5cffb0, #1cb5a3);
}

.badge,
.pill,
.onboarding-progress-step,
.trainer-pill {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 25px rgba(0, 0, 0, 0.18);
}

.badge,
.trainer-pill {
  background:
    linear-gradient(135deg, rgba(110, 242, 255, 0.22), rgba(177, 77, 255, 0.2)),
    rgba(8, 16, 36, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.field input,
.field select,
.field textarea,
.time-wheel-open,
.date-picker-open {
  background: rgba(7, 12, 28, 0.62);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(205, 215, 247, 0.45);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.primary:focus,
.ghost:focus,
.date-picker-open:focus,
.time-wheel-open:focus {
  outline: none;
  border-color: rgba(110, 242, 255, 0.75);
  box-shadow:
    0 0 0 3px rgba(110, 242, 255, 0.16),
    0 16px 35px rgba(67, 213, 255, 0.12);
}

.primary,
.ghost,
.dashboard-tile,
.location-card,
.host-card,
.trade-type,
.pokemon-picker,
.time-btn,
.date-picker-day,
.friend-code-copy-button {
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.primary {
  color: #f6fbff;
  background:
    linear-gradient(135deg, rgba(126, 242, 255, 0.42), rgba(177, 77, 255, 0.42)),
    rgba(13, 18, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 22px 45px rgba(58, 82, 255, 0.24);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
}

.ghost {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(7, 12, 28, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

@media (hover: hover) {
  .primary:hover,
  .ghost:hover,
  .dashboard-tile:hover,
  .location-card:hover:not(.disabled),
  .host-card:hover,
  .trade-type:hover,
  .pokemon-picker:hover,
  .friend-code-copy-button:hover,
  .date-picker-day:not(:disabled):hover,
  .time-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 18px 36px rgba(0, 0, 0, 0.24),
      0 0 0 1px rgba(137, 233, 255, 0.18);
  }

  .input-with-button .primary:hover {
    transform: none;
  }
}

.dashboard-grid {
  gap: 18px;
}

.dashboard-tile {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 26px 50px rgba(0, 0, 0, 0.28);
}

.dashboard-tile.active,
.dashboard-tile:hover {
  border-color: rgba(110, 242, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 30px 55px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(110, 242, 255, 0.14);
}

.dashboard-tile-icon {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(10, 17, 38, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-tile-icon i,
.dashboard-tile-icon svg {
  color: #363636;
}

.premium-tile {
  background:
    radial-gradient(circle at top right, rgba(255, 223, 113, 0.28), transparent 35%),
    linear-gradient(160deg, rgba(33, 28, 9, 0.84), rgba(34, 22, 8, 0.6));
}

.stack-item,
.pokemon-list-card,
.rarity-row,
.location-card,
.host-card,
.trade-type,
.pokemon-picker,
.step,
.availability-card,
.availability-entry-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(9, 16, 34, 0.64);
}

.location-card.selected,
.host-card.selected,
.trade-type.selected,
.pokemon-picker.selected,
.time-btn.selected,
.calendar-cell.selected,
.date-picker-day.selected,
.onboarding-progress-step.active {
  border-color: rgba(110, 242, 255, 0.8);
  background:
    linear-gradient(135deg, rgba(110, 242, 255, 0.18), rgba(177, 77, 255, 0.2)),
    rgba(10, 18, 38, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(110, 242, 255, 0.12),
    0 22px 40px rgba(0, 0, 0, 0.24);
}

.location-card.disabled,
.calendar-cell.disabled,
.date-picker-day:disabled,
.time-btn.disabled,
.primary:disabled {
  opacity: 0.45;
}

.friend-code-card {
  background:
    radial-gradient(circle at top right, rgba(110, 242, 255, 0.28), transparent 36%),
    linear-gradient(145deg, rgba(8, 67, 118, 0.84), rgba(42, 27, 100, 0.68));
}

.friend-code-card strong {
  letter-spacing: 0.12em;
}

.friend-code-copy-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(6, 16, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.pill {
  color: #f7fbff;
  background:
    linear-gradient(135deg, rgba(110, 242, 255, 0.22), rgba(177, 77, 255, 0.18)),
    rgba(11, 18, 40, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pill.pending {
  color: #f8f8f8;
  background:
    linear-gradient(135deg, rgba(255, 210, 102, 0.34), rgba(255, 157, 77, 0.24)),
    rgba(46, 28, 6, 0.74);
  border-color: rgba(255, 215, 130, 0.34);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
}

.pill.denied,
.pill.declined,
.pill.canceled {
  background:
    linear-gradient(135deg, rgba(255, 111, 145, 0.24), rgba(255, 84, 181, 0.18)),
    rgba(33, 10, 21, 0.62);
}

.pill.countered {
  background:
    linear-gradient(135deg, rgba(173, 108, 255, 0.28), rgba(110, 242, 255, 0.18)),
    rgba(21, 14, 42, 0.62);
}

.trade-summary {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.trade-summary-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.trade-summary-label {
  font-weight: 700;
  color: #f6fbff;
  align-self: center;
  justify-self: start;
}

.trade-summary-pokemon {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  width: 100%;
  min-height: 64px;
  padding: 8px 10px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
      border-width: 1px;
    border-style: solid;
    border-color: rgba(119, 224, 255, 0.63);
    border-image: initial;
    background: rgba(81, 174, 229, 0.34) !important;
}

.trade-summary-pokemon.has-background-art {
  background:
    linear-gradient(135deg, rgba(7, 14, 32, 0.54), rgba(7, 14, 32, 0.76)),
    var(--pokemon-background-image) center / cover no-repeat;
}

.trade-summary-sprite {
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: center;
}

.trade-summary-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  align-content: center;
}

.trade-summary-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-weight: 700;
  color: #f8fbff;
  flex-wrap: wrap;
}

.trade-summary-name-text {
  min-width: 0;
}

.trade-summary-descriptor-list {
  display: grid;
  gap: 2px;
}

.trade-summary-descriptor {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: rgba(232, 239, 255, 0.78);
  font-size: 0.88rem;
  font-style: italic;
}

.trade-summary-fallback {
  color: #f8fbff;
  font-weight: 700;
}

.linked-trade-summary {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.linked-trade-summary-link {
  text-decoration: none;
}

.linked-trade-summary-link .trade-summary {
  margin-top: 0;
}

.onboarding-progress-step {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(7, 14, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.onboarding-progress-step.complete {
  background:
    linear-gradient(135deg, rgba(95, 255, 181, 0.2), rgba(110, 242, 255, 0.16)),
    rgba(9, 20, 25, 0.62);
}

.calendar,
.date-picker-sheet {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(7, 12, 30, 0.76);
}

.calendar-cell,
.date-picker-day,
.time-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(8, 14, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.calendar-cell.available {
  background:
    linear-gradient(135deg, rgba(95, 255, 181, 0.12), rgba(110, 242, 255, 0.08)),
    rgba(7, 14, 31, 0.74);
}

.calendar-cell.full {
  background:
    linear-gradient(135deg, rgba(255, 111, 145, 0.14), rgba(255, 84, 181, 0.08)),
    rgba(26, 10, 22, 0.7);
}

.time-wheel-sheet,
.date-picker-sheet {
  border-radius: 28px;
}

.time-wheel-frame {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(8, 14, 32, 0.68);
  border-radius: 24px;
}

.time-wheel-column {
  background: rgba(3, 8, 20, 0.28);
}

.time-wheel-option {
  color: rgba(229, 239, 255, 0.46);
}

.time-wheel-option.selected {
  color: var(--ink);
  text-shadow: 0 0 24px rgba(110, 242, 255, 0.24);
}

.time-wheel-highlight {
  background:
    linear-gradient(135deg, rgba(110, 242, 255, 0.14), rgba(177, 77, 255, 0.14)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.time-wheel-fade-top {
  background: linear-gradient(180deg, rgba(8, 12, 29, 0.96), rgba(8, 12, 29, 0));
}

.time-wheel-fade-bottom {
  background: linear-gradient(0deg, rgba(8, 12, 29, 0.96), rgba(8, 12, 29, 0));
}

.date-picker-empty {
  background: transparent;
}

.booking-table {
  border-collapse: separate;
  border-spacing: 0;
}

.booking-table th,
.booking-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.booking-table th {
  color: #dff7ff;
}

.highlight-card {
  border-color: rgba(110, 242, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(110, 242, 255, 0.18),
    0 0 0 4px rgba(110, 242, 255, 0.1),
    0 24px 40px rgba(0, 0, 0, 0.22);
}

.pokemon-list-modal-card {
    background: none !important;
  }

@media (max-width: 600px) {
  #pokemon-list-modal-shell {
    padding: 8px;
  }

  .pokemon-list-modal-card {
    width: 100%;
    padding: 14px;
    gap: 8px;
    border-radius: 24px;
  }

  .pokemon-list-modal-header {
    gap: 8px;
  }

  .pokemon-list-modal-header .eyebrow {
    margin-bottom: 4px;
    font-size: 0.66rem;
    letter-spacing: 0.3em;
  }

  #pokemon-list-modal-title {
    font-size: 1.25rem;
    line-height: 1.05;
  }

  #pokemon-list-modal-subtitle {
    margin-top: 2px;
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .pokemon-list-modal-actions {
    gap: 8px;
  }

  .pokemon-list-modal-actions .ghost {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 0.92rem;
  }

  .pokemon-list-modal-card > .field {
    gap: 4px;
  }

  .pokemon-list-modal-card > .field span {
    font-size: 0.86rem;
  }

  .pokemon-list-modal-card > .field input {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .pokemon-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 0;
    overflow-x: auto;
    overflow-y: visible;
    padding: 8px 4px 10px;
    margin-left: -4px;
    margin-right: -4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pokemon-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .pokemon-filter-chip {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .pokemon-filter-chip-content {
    gap: 6px;
    min-height: 18px;
  }

  .pokemon-filter-chip-icon {
    width: 16px;
    height: 16px;
  }

  .pokemon-list-modal-summary {
    font-size: 0.9rem;
  }

  .pokemon-list-modal-grid {
    max-height: none;
    padding-right: 0;
  }

  .pokemon-list-request-link {
    width: 100%;
    justify-content: center;
  }

  .pokemon-list-request-footer {
    top: 58%;
    width: min(460px, calc(100% - 24px));
    padding: 14px;
  }

  .dashboard-tile {
    min-height: 144px;
  }

  .hero-playful {
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
  }

  .card::after,
  .modal-card::after {
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
  }
}

/* Liquid Glass Brightening + Layout Polish */

:root {
  --bg: #09101f;
  --ink: #f8fbff;
  --muted: #bfd0f6;
  --card: rgba(18, 28, 56, 0.62);
  --shadow:
    0 32px 84px rgba(2, 8, 28, 0.42),
    0 18px 50px rgba(74, 112, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-surface:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
  --glass-surface-strong:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --glass-blur: blur(24px) saturate(170%);
}

body {
  background:
    radial-gradient(circle at 10% 18%, rgba(77, 236, 255, 0.3), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(208, 94, 255, 0.3), transparent 28%),
    radial-gradient(circle at 78% 76%, rgba(86, 255, 185, 0.22), transparent 24%),
    radial-gradient(circle at 36% 94%, rgba(255, 105, 195, 0.14), transparent 20%),
    linear-gradient(180deg, #0d1530 0%, #090f22 36%, #060a18 100%);
}

body::before {
  opacity: 0.72;
  background: radial-gradient(circle, rgba(164, 112, 255, 0.82), transparent 70%);
}

body::after {
  opacity: 0.66;
  background: radial-gradient(circle, rgba(82, 229, 255, 0.68), transparent 72%);
}

.aurora {
  background:
    radial-gradient(circle at 8% 18%, rgba(120, 239, 255, 0.45), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(202, 112, 255, 0.42), transparent 26%),
    radial-gradient(circle at 74% 76%, rgba(112, 255, 199, 0.28), transparent 22%),
    radial-gradient(circle at 34% 100%, rgba(255, 92, 203, 0.18), transparent 22%);
  filter: blur(10px) saturate(145%);
}

.landing-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.landing-shell .hero-playful {
  min-height: 100%;
}

.welcome-card {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  display: grid;
  align-content: center;
}

.welcome-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 247, 255, 0.24), transparent 68%);
  filter: blur(14px);
  pointer-events: none;
}

.hero-playful {
  min-height: 232px;
  border-radius: 32px;
}

.dashboard-shell {
  position: relative;
  display: grid;
  gap: 24px;
}

.dashboard-topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 24px;
  align-items: start;
  min-height: 224px;
  padding: 34px;
  border-radius: 30px;
  overflow: hidden;
}

.dashboard-topbar::after {
  content: "";
  position: absolute;
  inset: auto auto -4.5rem -4rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 232, 255, 0.28), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}

.dashboard-topbar::before {
  height: 46%;
}

.dashboard-topbar h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 0.95;
  max-width: 10ch;
}

#dashboard-subtitle {
  max-width: 28ch;
  font-size: 1.05rem;
}

.dashboard-actions {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-content: start;
  justify-content: end;
  gap: 12px;
}

.dashboard-actions .trainer-pill {
  grid-column: 1 / -1;
  justify-self: end;
}

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

/* Equal-size tiles — square-ish via aspect-ratio */
.dashboard-tile {
  padding: 22px 20px;
  border-radius: 26px;
  justify-content: flex-end;
  text-decoration: none;
}

.dashboard-tile strong {
  font-size: 1.18rem;
  line-height: 1.08;
}

.dashboard-tile span:last-child {
  font-size: 0.95rem;
  line-height: 1.35;
}

.card,
.hero-playful,
.modal-card,
.date-picker-sheet,
.time-wheel-sheet {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.15), transparent 34%),
    var(--glass-surface-strong);
}

.time-picker-trigger,
.time-wheel-open,
.date-picker-open {
  min-height: 52px;
}

.time-wheel-overlay,
.date-picker-overlay {
  padding:
    max(12px, env(safe-area-inset-top))
    12px
    max(12px, env(safe-area-inset-bottom));
}

.time-wheel-sheet,
.date-picker-sheet {
  width: min(540px, 100%);
  max-height: min(82vh, 720px);
}

.date-picker-sheet {
  overflow-y: auto;
}

@media (max-width: 1080px) {
  /* dashboard-grid stays 3 columns */
}

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

  .dashboard-topbar {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dashboard-actions {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .dashboard-actions .trainer-pill {
    justify-self: stretch;
  }
}

@media (max-width: 768px) {
  /* Dashboard grid stays 3 columns down to 768px */

  .time-wheel-overlay,
  .date-picker-overlay {
    align-items: center;
  }

  .time-wheel-sheet,
  .date-picker-sheet {
    width: 100%;
    max-width: none;
    border-radius: 24px;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  }

  .time-wheel-header,
  .date-picker-header {
    gap: 10px;
  }

  .time-wheel-frame {
    margin-top: 12px;
  }

  .time-wheel-column {
    height: 220px;
    padding: 84px 0;
  }

  .time-wheel-highlight {
    top: 84px;
  }

  .time-wheel-fade {
    height: 74px;
  }

  .time-wheel-option {
    font-size: 1.38rem;
  }

  .time-wheel-column[data-column="period"] .time-wheel-option {
    font-size: 1.08rem;
  }

  .date-picker-month-bar {
    gap: 8px;
  }

  .date-picker-weekdays,
  .date-picker-grid {
    gap: 5px;
  }

  .date-picker-day,
  .date-picker-empty {
    min-height: 40px;
    border-radius: 12px;
  }
}

@media (max-width: 600px) {
  .hero-playful {
    min-height: 0;
  }

  .dashboard-topbar {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .dashboard-topbar h2 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
    max-width: none;
  }

  .dashboard-tile {
    padding: 18px 16px;
  }

  .dashboard-tile strong {
    font-size: 1.08rem;
  }

  .dashboard-tile span:last-child {
    font-size: 0.94rem;
  }

  .time-wheel-sheet,
  .date-picker-sheet {
    max-height: min(78vh, 640px);
  }
}

/* Shundo64 polish pass */

:root {
  --bg: #ecf6ff;
  --ink: #f8fbff;
  --muted: #d9e6ff;
  --card: rgba(19, 30, 58, 0.58);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow:
    0 24px 60px rgba(17, 25, 52, 0.22),
    0 10px 32px rgba(95, 134, 255, 0.16);
}

html {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 26%),
    linear-gradient(180deg, #f5fbff 0%, #dbeeff 22%, #15203f 70%, #0b1125 100%);
}

body {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.96), transparent 18%),
    radial-gradient(circle at 28% 24%, rgba(132, 235, 255, 0.35), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(202, 112, 255, 0.3), transparent 26%),
    radial-gradient(circle at 78% 76%, rgba(98, 255, 200, 0.22), transparent 20%),
    linear-gradient(180deg, #eef9ff 0%, #d5ecff 16%, #1a274b 54%, #0b1125 100%);
}

body::before {
  top: -6rem;
  right: -5rem;
}

body::after {
  bottom: 2rem;
}

.page {
  padding-top: 28px;
}

.app-wordmark {
  margin: 0 0 10px;
  font-family: "Bungee", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: 0.05em;
  line-height: 1;
  background: linear-gradient(100deg, #ff6b6b 0%, #ffa94d 18%, #ffe066 34%, #69db7c 50%, #4dabf7 66%, #9775fa 82%, #f783ac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 6px 28px rgba(132, 180, 255, 0.18);
}

.compact-wordmark {
  margin-bottom: 8px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.eyebrow,
.subtitle,
.dashboard-tile span,
.calendar-meta,
.pokemon-note,
.muted,
.friend-code-label,
.hint,
.pokemon-picker span {
  color: rgba(240, 246, 255, 0.82);
}

.field,
.field span,
.availability-note,
.status,
.date-picker-heading .muted,
.time-wheel-heading .muted {
  /*color: rgba(245, 249, 255, 0.92);*/
  color: white;
}

.dashboard-shell {
  gap: 14px;
}

.dashboard-topbar {
  min-height: 118px;
  padding: 16px 20px;
  align-items: center;
  gap: 14px;
}

.dashboard-topbar h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1;
}

.dashboard-topbar .eyebrow {
  margin-bottom: 4px;
  font-size: 0.62rem;
}

.dashboard-topbar .compact-wordmark {
  margin-bottom: 4px;
}

.dashboard-actions {
  align-items: center;
  gap: 10px;
}

.dashboard-actions .primary,
.dashboard-actions .ghost,
.dashboard-actions .trainer-pill {
  min-height: 40px;
}

.dashboard-grid {
  gap: 16px;
}

.dashboard-tile {
  color: #fdfefe;
  border-color: rgba(255, 255, 255, 0.16);
}

.dashboard-tile span:last-child,
.dashboard-tile strong,
.dashboard-tile-icon i {
  position: relative;
  z-index: 1;
}

.dashboard-tile strong {
  color: #ffffff;
  text-shadow: -1px 1px 3px rgb(0 0 0 / 49%);
}

.dashboard-tile span:last-child {
  color: rgba(244, 248, 255, 0.92);
}

.premium-tile {
  background:
    radial-gradient(circle at top right, rgba(255, 223, 113, 0.32), transparent 35%),
    linear-gradient(155deg, rgba(88, 64, 20, 0.9), rgba(38, 26, 12, 0.72));
}

.section-panel .panel-header {
  padding: 4px 0 0;
}

.section-panel .panel-header h3 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.section-panel .panel-header .eyebrow {
  color: rgba(167, 207, 255, 0.82);
}

.section-panel .panel-header .muted,
.section-panel .panel-header p:not(.eyebrow) {
  color: rgba(236, 244, 255, 0.82);
}

.landing-shell.hidden,
.landing-shell[hidden],
.dashboard-shell.hidden,
.dashboard-shell[hidden] {
  display: none !important;
}

.field input,
.field select,
.field textarea,
.time-wheel-open,
.date-picker-open,
.time-picker-trigger {
  color: #fbfdff;
}

.field select option {
  color: #111827;
}

.card,
.hero-playful,
.stack-item,
.pending-activity-card,
.pokemon-list-card,
.rarity-row,
.availability-entry-card,
.location-card,
.host-card,
.trade-type,
.pokemon-picker,
.calendar,
.modal-card,
.time-wheel-sheet,
.date-picker-sheet,
.friend-code-card,
.trainer-pill {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 48px rgba(15, 24, 52, 0.22);
}

.date-picker-sheet,
.time-wheel-sheet {
  margin: 0;
  max-height: min(88dvh, 760px);
}

@media (max-width: 900px) {
  .dashboard-topbar {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .page {
    padding-top: 20px;
  }

  .dashboard-topbar {
    padding: 20px;
  }

  .dashboard-actions {
    width: 100%;
  }

  .dashboard-actions .primary,
  .dashboard-actions .ghost,
  .dashboard-actions .trainer-pill {
    width: 100%;
    justify-self: stretch;
  }

  .date-picker-overlay {
    align-items: center;
    padding:
      max(14px, env(safe-area-inset-top))
      14px
      max(14px, env(safe-area-inset-bottom));
  }

  .date-picker-sheet {
    width: min(420px, 100%);
    max-height: min(76vh, 560px);
  }
}

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

  .dashboard-tile {
    min-height: 0;
  }

  .dashboard-tile > span:not(.dashboard-tile-icon) {
    display: none;
  }

  .dashboard-tile {
    justify-content: flex-start;
  }

  .app-wordmark {
    font-size: 1.12rem;
  }

  .date-picker-sheet {
    width: 100%;
  }
}

/* Vibrant readable background rebalance */

:root {
  --bg: #091120;
  --ink: #fbfdff;
  --muted: rgba(234, 242, 255, 0.84);
  --card: rgba(18, 28, 58, 0.6);
  --glass-border: rgba(255, 255, 255, 0.16);
}

html {
  background:
    radial-gradient(circle at 14% 16%, rgba(64, 231, 255, 0.34), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(201, 86, 255, 0.34), transparent 26%),
    linear-gradient(180deg, #111a35 0%, #0e1530 34%, #0b1024 100%);
}

body {
  background:
    radial-gradient(circle at 12% 18%, rgba(71, 228, 255, 0.32), transparent 22%),
    radial-gradient(circle at 28% 62%, rgba(66, 255, 191, 0.16), transparent 22%),
    radial-gradient(circle at 86% 14%, rgba(195, 97, 255, 0.3), transparent 24%),
    radial-gradient(circle at 76% 78%, rgba(255, 163, 72, 0.18), transparent 20%),
    linear-gradient(180deg, #121d3d 0%, #101731 36%, #0b1024 68%, #090e1d 100%);
}

body::before {
  opacity: 0.62;
  background: radial-gradient(circle, rgba(163, 94, 255, 0.68), transparent 70%);
}

body::after {
  opacity: 0.58;
  background: radial-gradient(circle, rgba(72, 228, 255, 0.54), transparent 72%);
}

.aurora {
  background:
    radial-gradient(circle at 10% 18%, rgba(78, 236, 255, 0.34), transparent 26%),
    radial-gradient(circle at 84% 10%, rgba(197, 101, 255, 0.32), transparent 24%),
    radial-gradient(circle at 72% 78%, rgba(78, 255, 191, 0.18), transparent 20%),
    radial-gradient(circle at 32% 100%, rgba(255, 124, 196, 0.14), transparent 18%);
}

.eyebrow,
.subtitle,
.dashboard-tile span,
.calendar-meta,
.pokemon-note,
.muted,
.friend-code-label,
.hint,
.pokemon-picker span {
  /*color: rgba(233, 241, 255, 0.8);*/
  color: white;
}

.field,
.field span,
.availability-note,
.status,
.date-picker-heading .muted,
.time-wheel-heading .muted {
  color: #fbfdff;
}

.pokemon-picker {
  position: relative;
  overflow: hidden;
  isolation: auto;
  contain: layout paint;
  transform: none;
  background: rgba(11, 18, 38, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease;
}

.pokemon-picker.has-background-art {
  background:
    linear-gradient(180deg, rgba(12, 18, 34, 0.34), rgba(8, 13, 24, 0.82)),
    var(--pokemon-background-image) center / cover no-repeat,
    rgba(11, 18, 38, 0.82) !important;
  border-color: rgba(255, 211, 120, 0.38);
}

.pokemon-picker.has-background-art .pokemon-picker-copy strong,
.pokemon-picker.has-background-art .pokemon-picker-detail {
  color: rgba(255, 244, 220, 0.96);
}

.debug-plain-pokemon-tiles .pokemon-picker {
  all: revert;
  position: absolute;
  display: block;
  box-sizing: border-box;
  margin: 0;
  padding: 8px;
  border: 1px solid #8f98ad;
  border-radius: 0;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #111111 !important;
  overflow: visible;
  isolation: auto;
  contain: none;
  transform: none;
  font: 14px/1.3 sans-serif;
}

.debug-plain-pokemon-tiles .pokemon-picker.selected {
  border: 2px solid #111111 !important;
}

.debug-plain-pokemon-tiles .pokemon-picker strong,
.debug-plain-pokemon-tiles .pokemon-picker span {
  all: revert;
  display: block;
  color: #111111 !important;
  text-shadow: none !important;
  font: 14px/1.3 sans-serif;
}

.debug-no-pokemon-tile-blur .pokemon-picker {
  backdrop-filter: saturate(150%) !important;
  -webkit-backdrop-filter: saturate(150%) !important;
}

.pokemon-picker:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: rgba(110, 242, 255, 0.34);
  background: rgba(14, 22, 44, 0.86) !important;
}

.pokemon-picker.selected, .pokemon-form-choice.selected {
  border-color: rgba(120, 235, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(34, 55, 96, 0.98), rgba(18, 29, 58, 0.98)),
    rgba(16, 27, 54, 0.96) !important;
  box-shadow: none !important;
}

.pokemon-picker.has-background-art.selected {
  background:
    linear-gradient(180deg, rgba(34, 51, 82, 0.18), rgba(15, 22, 41, 0.48)),
    var(--pokemon-background-image) center / cover no-repeat,
    rgba(16, 24, 46, 0.92) !important;
  border-color: rgba(255, 226, 146, 0.82);
}

.pokemon-picker strong,
.pokemon-picker-detail,
.pokemon-form-choice strong,
.pokemon-form-choice .pokemon-picker-detail {
  text-shadow: none !important;
}

.pokemon-picker-media {
  position: relative;
  width: 62px;
  min-width: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pokemon-picker-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
}

.pokemon-picker-check {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 0 14px 0 10px;
  border: 1px solid rgba(202, 216, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: -1px;
  top: -1px;
  pointer-events: none;
  border-top: none;
  border-right: none;
}

.pokemon-picker-checkmark {
  font-size: 0.9rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0);
  opacity: 0;
}

.pokemon-picker.selected .pokemon-picker-check {
  border-color: rgba(156, 243, 255, 0.95);
  background: rgba(113, 229, 255, 0.18);
}

.pokemon-picker.checked .pokemon-picker-check {
  border-color: rgba(156, 243, 255, 0.55);
  background: rgba(113, 229, 255, 0.12);
}

.pokemon-picker.selected .pokemon-picker-checkmark {
  color: rgba(231, 252, 255, 0.98);
  opacity: 1;
}

.pokemon-picker.checked .pokemon-picker-checkmark {
  color: rgba(231, 252, 255, 0.92);
  opacity: 1;
}

#trade-mode-switch .trade-type {
  color: rgba(248, 251, 255, 0.96);
}

.trade-type.selected {
  color: rgba(248, 251, 255, 0.98);
}

#meetup-type-switch .trade-type {
  color: rgba(248, 251, 255, 0.96);
}

#meetup-type-switch .trade-type.selected {
  color: rgba(248, 251, 255, 0.98);
}

.pokemon-picker-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.pokemon-name-decorations {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  flex: 0 0 auto;
  line-height: 1;
}

.pokemon-name-decoration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: 0 0 auto;
  margin: 0;
}

.pokemon-name-decoration-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}

.pokemon-picker-sprite {
  width: 62px;
  height: 62px;
  object-fit: contain;
  transform: scale(1.15);
  transform-origin: center;
}

.pokemon-picker strong,
.pokemon-form-choice strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.15;
  color: rgba(247, 250, 255, 0.97);
}

.pokemon-variant-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex: 0 0 auto;
}

.pokemon-picker-details {
  display: grid;
  gap: 2px;
}

.pokemon-picker-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(228, 236, 252, 0.78);
  font-size: 0.75rem;
  line-height: 1.12;
}

.pokemon-descriptor-icon {
  width: 11px;
  height: 11px;
  object-fit: contain;
  flex: 0 0 auto;
}

.pokemon-descriptor-emoji,
.pokemon-filter-chip-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: 0 0 auto;
}

.pokemon-picker-detail-italic {
  font-style: italic;
  opacity: 0.82;
}

.hero-playful,
.card,
.stack-item,
.pokemon-list-card,
.rarity-row,
.availability-entry-card,
.location-card,
.host-card,
.trade-type,
.pokemon-picker,
.calendar,
.modal-card,
.time-wheel-sheet,
.date-picker-sheet,
.friend-code-card,
.trainer-pill {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(14, 22, 46, 0.76);
}

.welcome-card {
  background:
    radial-gradient(circle at top right, rgba(255, 179, 88, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(16, 24, 49, 0.76);
}

.dashboard-tile span:last-child {
    color: #ffffff;
    text-shadow: -1px 1px 2px #00000099;
}

/* Community map */

.community-map-page {
  max-width: 1440px;
}

.community-map-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.community-map-hero h1 {
  max-width: 780px;
}

.community-map-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.community-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
  gap: 22px;
  align-items: start;
}

.community-map-card {
  min-width: 0;
  overflow: hidden;
}

.community-map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.community-map-toolbar h2,
.community-map-toolbar p {
  margin-top: 0;
}

.world-map {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2 / 1;
  min-height: 360px;
  max-height: 600px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 18% 20%, rgba(83, 232, 255, 0.22), transparent 24%),
    radial-gradient(circle at 74% 34%, rgba(193, 101, 255, 0.2), transparent 24%),
    linear-gradient(135deg, rgba(17, 32, 73, 0.92), rgba(8, 18, 42, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 26px 70px rgba(2, 8, 24, 0.28);

    border: none;
    outline: none;
    box-shadow: 0px 0px 10px #00000059;
}

.osm-map {
  isolation: isolate;
}

.osm-map.leaflet-container {
  background: #10254b;
  color: #10223f;
  font-family: "Space Grotesk", sans-serif;
}

.osm-map.maplibregl-map {
  background: #10254b;
  color: #10223f;
  font-family: "Space Grotesk", sans-serif;
}

.osm-map .leaflet-tile {
  filter: saturate(1.08) contrast(0.96) brightness(0.94);
}

.osm-map .leaflet-control-container,
.osm-map .maplibregl-ctrl-container {
  font-family: "Space Grotesk", sans-serif;
}

.osm-map .maplibregl-ctrl-bottom-right {
  padding: 0 14px 0 0;
}

.osm-map .leaflet-bar,
.osm-map .leaflet-control-attribution,
.osm-map .maplibregl-ctrl-group {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(9, 16, 34, 0.72);
  color: rgba(248, 251, 255, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.osm-map .maplibregl-ctrl-attrib {
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.4;
  text-shadow: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.osm-map .maplibregl-ctrl-attrib-inner,
.osm-map .maplibregl-ctrl-attrib-inner a {
  color: rgba(30, 40, 60, 0.85);
}

.osm-map .leaflet-bar a,
.osm-map .maplibregl-ctrl-group button {
  background: transparent;
  color: #f8fbff;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.osm-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon {
  filter: invert(1);
}

.osm-map .maplibregl-ctrl-group button.maplibregl-ctrl-fullscreen,
.osm-map .maplibregl-ctrl-group button.maplibregl-ctrl-shrink {
  width: 40px;
  height: 40px;
  font-size: 18px;
  color: #f8fbff;
  border: none;
  padding: 0;
}

.osm-map .leaflet-bar a:hover,
.osm-map .maplibregl-ctrl-group button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.map-load-error {
  position: absolute;
  inset: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 22px;
  background: rgba(9, 16, 34, 0.7);
  color: #f8fbff;
  font-weight: 700;
}

.osm-compact-attrib {
  position: relative;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 4px;
  margin: 0 10px 10px 0;
}

.osm-compact-attrib-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 16, 34, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #f8fbff;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.osm-compact-attrib-text {
  display: none;
  padding: 4px 10px;
  font-size: 11px;
  line-height: 1.4;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(9, 16, 34, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(200, 220, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.osm-compact-attrib-text a {
  color: rgba(130, 190, 255, 0.9);
}

.osm-compact-attrib.open .osm-compact-attrib-text {
  display: block;
}

.world-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.2));
}

.world-map-svg path {
  fill: rgba(113, 245, 213, 0.2);
  stroke: rgba(218, 250, 255, 0.22);
  stroke-width: 2;
}

.map-grid-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 8.333% 16.666%;
  mask-image: radial-gradient(circle at center, black, transparent 84%);
  opacity: 0.36;
}

.map-pins {
  position: absolute;
  inset: 0;
}

.community-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  box-shadow:
    0 0 0 8px rgba(110, 242, 255, 0.1),
    0 12px 24px rgba(0, 0, 0, 0.28);
}

.community-pin > span {
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: linear-gradient(135deg, #77f5ff, #d75dff 55%, #ffe07a);
  box-shadow: 0 0 22px rgba(117, 245, 255, 0.8);
}

.community-pin.selected {
  width: 36px;
  height: 36px;
  z-index: 3;
  box-shadow:
    0 0 0 10px rgba(255, 224, 122, 0.12),
    0 0 34px rgba(255, 224, 122, 0.5),
    0 18px 32px rgba(0, 0, 0, 0.34);
}

.placed-pin {
  pointer-events: none;
}

.community-marker-icon {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 8px #00000063;
}

.community-marker-icon span {
  position: absolute;
  inset: 5px;
  border-radius: 4px;
  background: linear-gradient(135deg, #77f5ff, #d75dff 55%, #ffe07a);
  box-shadow: 0 0 22px rgba(117, 245, 255, 0.8);
}

.community-marker-icon img {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 5px;
  object-fit: cover;
}

.community-marker-icon.selected {
  width: 36px;
  height: 36px;
  z-index: 3;
  box-shadow:
    0 0 8px #00000063;
}

.community-cluster-icon {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(119, 245, 255, 0.9), rgba(215, 93, 255, 0.9) 55%, rgba(255, 224, 122, 0.96)),
    rgba(255, 255, 255, 0.16);
  color: #071126;
  font-family: "Bungee", "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow:
    0 0 0 10px rgba(110, 242, 255, 0.14),
    0 0 30px rgba(215, 93, 255, 0.42),
    0 18px 34px rgba(0, 0, 0, 0.34);
}

.community-cluster-icon span {
  display: grid;
  place-items: center;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.community-cluster-icon.selected {
  box-shadow:
    0 0 0 12px rgba(255, 224, 122, 0.17),
    0 0 34px rgba(255, 224, 122, 0.55),
    0 18px 34px rgba(0, 0, 0, 0.34);
}

.community-waypoint-icon {
  background: transparent !important;
  border: none !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.community-waypoint-icon i {
  font-size: 2rem;
  color: #e63946;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  line-height: 1;
}

.community-sidebar {
  display: grid;
  gap: 22px;
}

/* Mobile bottom-sheet popup for community detail */
.community-detail-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4, 8, 22, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  padding: 0;
}

.community-detail-popup {
  width: 100%;
  max-height: 82dvh;
  overflow-y: auto;
  border-radius: 28px 28px 0 0 !important;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  position: relative;
  animation: sheet-slide-up 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sheet-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.community-detail-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(240, 248, 255, 0.9);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-detail-top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.community-detail-top img,
.community-list-item img,
.community-list-fallback {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  flex: none;
}

.community-detail-top img,
.community-list-item img {
  object-fit: cover;
}

.community-list-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(110, 242, 255, 0.22), rgba(177, 77, 255, 0.22)),
    rgba(255, 255, 255, 0.08);
  color: #f8fbff;
}

.community-report-section {
  margin-top: 12px;
}

.community-report-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 0;
}

.fa-flag
{
  color: rgba(255, 100, 100, 1);
}

.community-report-toggle:hover {
  color: rgba(255, 120, 120, 1);
}

.community-report-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.community-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.community-stat-grid div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.community-stat-grid span,
.community-list-item small {
  display: block;
  color: rgba(234, 242, 255, 0.78);
  font-size: 0.86rem;
}

.community-stat-grid strong {
  font-size: 1.05rem;
}

.community-list-item {
  display: flex;
  width: 100%;
  gap: 12px;
  align-items: center;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(15, 24, 49, 0.72);
  color: #fbfdff;
  cursor: pointer;
  font: inherit;
}

.community-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.community-list-row .small-button {
  align-self: center;
  white-space: nowrap;
}

.community-list-item.selected {
  border-color: rgba(110, 242, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(110, 242, 255, 0.12);
}

.community-submit-card {
  display: grid;
  gap: 18px;
}

.community-submit-card.hidden,
.community-submit-card[hidden],
.community-leader-entry.hidden {
  display: none !important;
}

.community-leader-entry {
  display: flex;
  justify-content: center;
}

.community-leader-entry .jumbo-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.community-form {
  display: grid;
  gap: 16px;
}

.community-form.is-disabled {
  opacity: 0.72;
}

.community-location-picker {
  display: grid;
  gap: 12px;
}

.community-selected-location {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.leader-community-panel {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.leader-community-panel h3 {
  margin: 0;
}

.mini-map {
  min-height: 240px;
  cursor: crosshair;
}

@media (max-width: 980px) {
  .community-map-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .community-map-hero,
  .community-map-toolbar {
    flex-direction: column;
  }

  .community-map-actions {
    width: 100%;
    justify-content: stretch;
  }

  .community-map-actions .primary,
  .community-map-actions .ghost,
  #bot-invite-link {
    width: 100%;
    text-align: center;
    text-decoration: none;
  }

  .world-map {
    min-height: 260px;
    border-radius: 22px;
  }

  .mini-map {
    min-height: 210px;
  }

  .community-stat-grid {
    grid-template-columns: 1fr;
  }

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

  .community-list-row .small-button {
    width: 100%;
  }
}

.time-wheel-overlay,
.date-picker-overlay {
  align-items: center !important;
  justify-content: center !important;
  min-height: 100dvh;
  height: 100dvh;
}

.time-wheel-sheet,
.date-picker-sheet {
  margin: 0 !important;
  width: min(540px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  max-height: min(88dvh, 760px);
}

.date-picker-overlay {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
  padding:
    max(16px, env(safe-area-inset-top))
    14px
    max(16px, env(safe-area-inset-bottom));
}

.date-picker-sheet {
  margin: auto !important;
  overflow-y: auto;
}

/* Final picker centering pass for iPhone/Safari: keep both the backdrop and sheet
   centered in the visible viewport using CSS only. */
.time-wheel-overlay,
.date-picker-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: grid !important;
  place-items: center !important;
  padding:
    max(16px, env(safe-area-inset-top))
    14px
    max(16px, env(safe-area-inset-bottom)) !important;
  overflow: hidden !important;
}

.time-wheel-sheet,
.date-picker-sheet {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 0 auto !important;
  width: min(540px, calc(100vw - 28px)) !important;
  max-width: calc(100vw - 28px) !important;
  max-height: calc(100% - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)) - 8px) !important;
}

@media (max-width: 980px) {
  .admin-pokemon-layout {
    grid-template-columns: 1fr;
  }

  .admin-pokemon-list {
    max-height: 420px;
  }

  .admin-background-batch-list {
    max-height: 520px;
  }

  .admin-release-list {
    max-height: 560px;
  }
}

@media (max-width: 700px) {
  .admin-section-heading,
  .admin-pokemon-editor-header {
    flex-direction: column;
  }

  .admin-release-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-action-row .primary,
  .admin-action-row .ghost,
  #new-pokemon,
  #reset-pokemon-form,
  #toggle-release-query {
    width: 100%;
    text-align: center;
  }
}

/* ===== Liquid Glass Vibrance Overhaul ===== */

:root {
  --glass-blur: blur(36px) saturate(220%);
  --glass-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.09));
  --glass-surface-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.13));
  --glass-border: rgba(255, 255, 255, 0.30);
  --glass-highlight: rgba(255, 255, 255, 0.42);
  --shadow:
    0 28px 72px rgba(2, 8, 26, 0.38),
    0 10px 32px rgba(60, 110, 255, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

/* Richer vivid background aurora */
html {
  background:
    radial-gradient(ellipse at 14% 0%, rgba(50, 230, 255, 0.55), transparent 38%),
    radial-gradient(ellipse at 88% 0%, rgba(185, 74, 255, 0.55), transparent 38%),
    linear-gradient(180deg, #0d1a38 0%, #09112a 55%, #070c1c 100%);
}

body {
  background:
    radial-gradient(circle at 8% 14%, rgba(55, 228, 255, 0.44), transparent 20%),
    radial-gradient(circle at 22% 58%, rgba(58, 255, 195, 0.22), transparent 18%),
    radial-gradient(circle at 88% 10%, rgba(195, 84, 255, 0.42), transparent 22%),
    radial-gradient(circle at 78% 78%, rgba(255, 162, 60, 0.22), transparent 18%),
    linear-gradient(180deg, #101d40 0%, #0c1534 38%, #08102a 72%, #060a18 100%);
}

body::before {
  opacity: 0.85;
  background: radial-gradient(circle, rgba(175, 108, 255, 0.92), transparent 66%);
}

body::after {
  opacity: 0.80;
  background: radial-gradient(circle, rgba(52, 228, 255, 0.78), transparent 68%);
}

.aurora {
  background:
    radial-gradient(circle at 8% 15%, rgba(82, 242, 255, 0.58), transparent 24%),
    radial-gradient(circle at 84% 7%, rgba(218, 110, 255, 0.54), transparent 22%),
    radial-gradient(circle at 70% 78%, rgba(82, 255, 200, 0.36), transparent 18%),
    radial-gradient(circle at 28% 100%, rgba(255, 118, 200, 0.26), transparent 17%);
  filter: blur(5px) saturate(155%);
  opacity: 1;
}

/* Brighter glass cards with texture overlay */
.hero-playful,
.card,
.modal-card,
.date-picker-sheet,
.time-wheel-sheet {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.10)),
    rgba(14, 24, 52, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 22px 64px rgba(4, 12, 36, 0.36),
    0 4px 16px rgba(80, 140, 255, 0.14);
}

.card::after,
.modal-card::after,
.date-picker-sheet::after,
.time-wheel-sheet::after {
  backdrop-filter: blur(36px) saturate(220%);
  -webkit-backdrop-filter: blur(36px) saturate(220%);
}

.stack-item,
.pokemon-list-card,
.rarity-row,
.availability-entry-card,
.location-card,
.host-card,
.trade-type,
.calendar,
.friend-code-card,
.trainer-pill {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08)),
    rgba(16, 26, 54, 0.72);
  border-color: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.28),
    0 16px 48px rgba(4, 10, 30, 0.28),
    0 2px 8px rgba(80, 130, 255, 0.10);
}

/* Glass texture removed */

/* Bright PRIMARY button — luminous iridescent frosted glass */
.primary {
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.52) 0%,
      rgba(175, 238, 255, 0.42) 38%,
      rgba(215, 192, 255, 0.42) 65%,
      rgba(255, 255, 255, 0.48) 100%
    );
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: #07122a;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.45);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 8px 36px rgba(90, 180, 255, 0.42),
    0 2px 10px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(28px) saturate(220%);
  -webkit-backdrop-filter: blur(28px) saturate(220%);
}

@media (hover: hover) {
  .primary:hover:not(:disabled) {
    background:
      linear-gradient(135deg,
        rgba(255, 255, 255, 0.62) 0%,
        rgba(195, 248, 255, 0.52) 38%,
        rgba(228, 210, 255, 0.52) 65%,
        rgba(255, 255, 255, 0.58) 100%
      );
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, 0.82),
      0 14px 48px rgba(90, 180, 255, 0.54),
      0 4px 14px rgba(0, 0, 0, 0.16);
    transform: translateY(-2px);
  }
}

/* Ghost button — frosted semi-bright glass */
.ghost {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.09));
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #f4f9ff;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.40),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(26px) saturate(185%);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  text-shadow: 1px 0px 1px #0000006b;
  font-size: 15px;
}

@media (hover: hover) {
  .ghost:hover {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.14));
    border-color: rgba(255, 255, 255, 0.50);
    box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, 0.52),
      0 14px 38px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
  }
}

/* Dashboard tiles — more saturated and brighter */
.dashboard-tile {
  backdrop-filter: blur(30px) saturate(125%) brightness(155%);
  -webkit-backdrop-filter: blur(30px) saturate(125%) brightness(155%);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 24px 54px rgba(2, 8, 26, 0.3),
    0 4px 14px rgba(70, 120, 255, 0.12);
    background: none !important;
}

/* Red */
.dashboard-tile:nth-child(1) {
  background:
    radial-gradient(ellipse at top right, rgba(255, 130, 130, 0.52), transparent 36%),
    radial-gradient(ellipse at bottom left, rgba(220, 40, 40, 0.28), transparent 48%),
    linear-gradient(155deg, rgba(140, 20, 20, 1), rgba(80, 8, 8, 0.90));
}
/* Blue */
.dashboard-tile:nth-child(2) {
  background:
    radial-gradient(ellipse at top right, rgba(120, 180, 255, 0.52), transparent 36%),
    radial-gradient(ellipse at bottom left, rgba(40, 100, 230, 0.28), transparent 48%),
    linear-gradient(155deg, rgba(18, 60, 148, 1), rgba(8, 24, 80, 0.90));
}
/* Gold */
.dashboard-tile:nth-child(3) {
  background:
    radial-gradient(ellipse at top right, rgba(255, 220, 80, 0.52), transparent 36%),
    radial-gradient(ellipse at bottom left, rgba(210, 145, 0, 0.30), transparent 48%),
    linear-gradient(155deg, rgba(130, 85, 0, 1), rgba(70, 40, 0, 0.90));
}
/* Green */
.dashboard-tile:nth-child(4) {
  background:
    radial-gradient(ellipse at top right, rgba(100, 240, 140, 0.48), transparent 36%),
    radial-gradient(ellipse at bottom left, rgba(30, 185, 80, 0.26), transparent 48%),
    linear-gradient(155deg, rgba(14, 100, 44, 1), rgba(6, 50, 20, 0.90));
}
/* Pink */
.dashboard-tile:nth-child(5) {
  background:
    radial-gradient(ellipse at top right, rgba(255, 140, 210, 0.52), transparent 36%),
    radial-gradient(ellipse at bottom left, rgba(230, 60, 155, 0.28), transparent 48%),
    linear-gradient(155deg, rgba(148, 28, 98, 1), rgba(80, 10, 52, 0.90));
}
/* Purple */
.dashboard-tile:nth-child(6) {
  background:
    radial-gradient(ellipse at top right, rgba(195, 135, 255, 0.52), transparent 36%),
    radial-gradient(ellipse at bottom left, rgba(130, 50, 240, 0.28), transparent 48%),
    linear-gradient(155deg, rgba(80, 28, 170, 1), rgba(36, 10, 90, 0.90));
}
/* Cyan */
.dashboard-tile:nth-child(7) {
  background:
    radial-gradient(ellipse at top right, rgba(80, 240, 255, 0.52), transparent 36%),
    radial-gradient(ellipse at bottom left, rgba(0, 185, 220, 0.28), transparent 48%),
    linear-gradient(155deg, rgba(0, 110, 145, 1), rgba(0, 50, 80, 0.90));
}
/* Orange */
.dashboard-tile:nth-child(8) {
  background:
    radial-gradient(ellipse at top right, rgba(255, 175, 80, 0.52), transparent 36%),
    radial-gradient(ellipse at bottom left, rgba(220, 100, 0, 0.30), transparent 48%),
    linear-gradient(155deg, rgba(148, 60, 0, 1), rgba(80, 28, 0, 0.90));
}

.premium-tile {
  background:
    radial-gradient(ellipse at top right, rgba(255, 228, 110, 0.44), transparent 36%),
    radial-gradient(ellipse at bottom left, rgba(255, 180, 48, 0.22), transparent 48%),
    linear-gradient(155deg, rgba(98, 70, 18, 0.98), rgba(32, 24, 10, 0.80));
}

/* Dashboard tile icon — brighter glass pill */
.dashboard-tile-icon {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 4px 12px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.dashboard-tile:hover .dashboard-tile-icon {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.14));
  border-color: rgba(255, 255, 255, 0.36);
}

/* Field inputs — brighter glass */
.field input,
.field select,
.field textarea,
.time-picker-trigger {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(8, 16, 40, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(22px) saturate(190%);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
}

/* Calendar cells — brighter */
.calendar-cell,
.date-picker-day,
.time-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(10, 18, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.calendar-cell.available {
  background:
    linear-gradient(135deg, rgba(95, 255, 181, 0.22), rgba(110, 242, 255, 0.14)),
    rgba(7, 18, 36, 0.72);
  border-color: rgba(95, 255, 181, 0.28);
}

.calendar-cell.full {
  background:
    linear-gradient(135deg, rgba(255, 111, 145, 0.22), rgba(255, 84, 181, 0.14)),
    rgba(28, 10, 24, 0.68);
  border-color: rgba(255, 111, 145, 0.28);
}

/* Modal overlay — more dramatic blurred glass */
.modal-shell,
.time-wheel-overlay,
.date-picker-overlay {
  background:
    none;
   backdrop-filter: blur(20px) saturate(160%) brightness(0.75);
  -webkit-backdrop-filter: blur(20px) saturate(160%) brightness(0.75);
}

/* Topbar — richer gradient */
.dashboard-topbar {

  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(44px) saturate(400%) brightness(0.95);
  -webkit-backdrop-filter: blur(44px) saturate(400%) brightness(0.95);
}

/* Welcome card — slightly warmer tint */
.welcome-card {
  background:
    radial-gradient(circle at top right, rgba(255, 182, 84, 0.22), transparent 30%),
    radial-gradient(circle at bottom left, rgba(88, 220, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.10)),
    rgba(14, 22, 52, 0.74);
}

/* Pill badges — brighter */
.pill {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12)),
    rgba(14, 22, 46, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.pill.pending {
  background: #3f4254c2;
    border-color: rgb(194 194 194 / 40%);
    box-shadow: 1px 1px 2px #0000006e;
}

.pill.denied,
.pill.declined,
.pill.canceled {
  background:
    linear-gradient(135deg, rgba(255, 118, 148, 0.38), rgba(255, 88, 188, 0.28)),
    rgba(36, 10, 22, 0.68);
  border-color: rgba(255, 118, 148, 0.30);
}

.pill.countered {
  background:
    linear-gradient(135deg, rgba(178, 118, 255, 0.38), rgba(118, 242, 255, 0.28)),
    rgba(22, 14, 44, 0.68);
  border-color: rgba(178, 118, 255, 0.30);
}

/* Badge and trainer pill */
.badge,
.trainer-pill {
  background:
    linear-gradient(135deg, rgba(110, 242, 255, 0.32), rgba(177, 77, 255, 0.28)),
    rgba(10, 18, 42, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* Selection highlight states — brighter cyan/purple */
.location-card.selected,
.host-card.selected,
.trade-type.selected,
.time-btn.selected,
.calendar-cell.selected,
.date-picker-day.selected,
.onboarding-progress-step.active {
  border-color: rgba(120, 245, 255, 0.88);
  background:
    linear-gradient(135deg, rgba(110, 242, 255, 0.26), rgba(177, 77, 255, 0.26)),
    rgba(10, 20, 44, 0.72);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(120, 245, 255, 0.18),
    0 0 24px rgba(120, 245, 255, 0.2),
    0 18px 42px rgba(0, 0, 0, 0.24);
}

.date-picker-day.selected {
  background:
    linear-gradient(135deg, rgba(120, 245, 255, 0.42), rgba(177, 77, 255, 0.38)),
    rgba(8, 18, 42, 0.78);
  color: #f8fbff;
}

/* Highlight card — glowing border */
.highlight-card {
  border-color: rgba(118, 246, 255, 0.78);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(118, 246, 255, 0.22),
    0 0 32px rgba(118, 246, 255, 0.22),
    0 22px 44px rgba(0, 0, 0, 0.22);
}

/* Time wheel — brighter highlight band */
.time-wheel-highlight {
  background:
    linear-gradient(135deg, rgba(120, 244, 255, 0.22), rgba(180, 82, 255, 0.22)),
    rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

/* Lists share button — brighter */
.lists-share-button {
  background:
    linear-gradient(135deg, rgba(80, 215, 255, 0.32), rgba(130, 100, 255, 0.38)),
    rgba(14, 22, 48, 0.72);
  border-color: rgba(140, 228, 255, 0.50);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 12px 28px rgba(10, 16, 36, 0.22);
}

.lists-share-button:hover,
.lists-share-button:focus-visible {
  background:
    linear-gradient(135deg, rgba(100, 235, 255, 0.40), rgba(155, 120, 255, 0.44)),
    rgba(18, 28, 58, 0.84);
  border-color: rgba(160, 240, 255, 0.65);
}

/* Friend code card — deeper blue with brighter highlights */
.friend-code-card {
  background:
    radial-gradient(circle at top right, rgba(118, 246, 255, 0.36), transparent 34%),
    radial-gradient(circle at bottom left, rgba(88, 160, 255, 0.24), transparent 40%),
    linear-gradient(145deg, rgba(6, 64, 120, 0.92), rgba(36, 22, 98, 0.76));
  border-color: rgba(118, 200, 255, 0.38);
}

.friend-code-copy-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.10));
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Pokemon list count badge — brighter */
.pokemon-list-count-badge {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Community map elements */
.community-list-item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.07)),
    rgba(14, 22, 52, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 8px 24px rgba(4, 10, 28, 0.22);
}

.community-stat-grid div {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Focus ring — vibrant cyan glow */
.field input:focus,
.field select:focus,
.field textarea:focus,
.primary:focus-visible,
.ghost:focus-visible {
  outline: none;
  border-color: rgba(118, 246, 255, 0.85);
  box-shadow:
    0 0 0 3px rgba(118, 246, 255, 0.22),
    0 0 18px rgba(118, 246, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

/* App wordmark — full-spectrum rainbow */
.app-wordmark {
  background: linear-gradient(100deg, #ff6b6b 0%, #ffa94d 18%, #ffe066 34%, #69db7c 50%, #4dabf7 66%, #9775fa 82%, #f783ac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(-1px 0px 0px #000) brightness(1.2);
  font-size: 32px;
  width: fit-content;
}

/* ===== Full-spectrum rainbow blob pass + card/field color fix ===== */

/* Deep dark anchor so rainbow blobs really pop */
html {
  background: #060810;
}

body {
  /*background: #4c506d;*/
  /*background:
    radial-gradient(ellipse at 6%  10%, rgba(45,  220, 255, 0.42), transparent 18%),
    radial-gradient(ellipse at 30%  4%, rgba(58,   80, 255, 0.44), transparent 17%),
    radial-gradient(ellipse at 56%  2%, rgba(162,  42, 255, 0.46), transparent 17%),
    radial-gradient(ellipse at 82%  6%, rgba(255,  40, 175, 0.44), transparent 18%),
    radial-gradient(ellipse at 97% 36%, rgba(255,  52,  72, 0.42), transparent 17%),
    radial-gradient(ellipse at 92% 68%, rgba(255, 128,  28, 0.40), transparent 17%),
    radial-gradient(ellipse at 68% 96%, rgba(215, 242,  28, 0.38), transparent 17%),
    radial-gradient(ellipse at 38% 94%, rgba(28,  255, 118, 0.40), transparent 17%),
    radial-gradient(ellipse at  4% 70%, rgba(28,  210, 255, 0.38), transparent 16%),
    linear-gradient(180deg, #08102a 0%, #060c1e 50%, #040812 100%);*/
}

/* Rainbow aurora — full ROY G BIV ring, heavily blurred for dreamy blobs */
.aurora {
  background:
    radial-gradient(ellipse at  6%  10%, rgba(45,  220, 255, 0.72), transparent 22%),
    radial-gradient(ellipse at 28%   4%, rgba(58,   80, 255, 0.68), transparent 20%),
    radial-gradient(ellipse at 55%   2%, rgba(162,  42, 255, 0.72), transparent 20%),
    radial-gradient(ellipse at 82%   7%, rgba(255,  40, 175, 0.70), transparent 22%),
    radial-gradient(ellipse at 97%  38%, rgba(255,  52,  72, 0.66), transparent 20%),
    radial-gradient(ellipse at 92%  70%, rgba(255, 128,  28, 0.62), transparent 20%),
    radial-gradient(ellipse at 66%  96%, rgba(215, 242,  28, 0.58), transparent 20%),
    radial-gradient(ellipse at 36%  94%, rgba(28,  255, 118, 0.64), transparent 20%),
    radial-gradient(ellipse at  4%  68%, rgba(28,  210, 255, 0.62), transparent 18%);
  filter: blur(52px) saturate(130%);
  opacity: 1;
}

/* body pseudo-element orbs repositioned to fill mid-page with color */
body::before {
  width: 36rem;
  height: 36rem;
  top: 25%;
  right: -10rem;
  opacity: 0.55;
  background: radial-gradient(circle, rgba(220, 80, 255, 0.88), rgba(255, 50, 130, 0.6) 48%, transparent 72%);
}

body::after {
  width: 32rem;
  height: 32rem;
  left: -8rem;
  bottom: 20%;
  opacity: 0.50;
  background: radial-gradient(circle, rgba(38, 220, 255, 0.82), rgba(38, 255, 160, 0.5) 50%, transparent 72%);
}

/* Cards — more transparent + ultra-high saturation backdrop so rainbow bleeds through */
.hero-playful,
.card,
.modal-card,
.date-picker-sheet,
.time-wheel-sheet {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 24px 64px rgba(2, 6, 20, 0.40),
    0 4px 16px rgba(100, 60, 255, 0.16);
  text-shadow: 1px 1px 2px #00000057;
}

.card::after,
.modal-card::after,
.date-picker-sheet::after,
.time-wheel-sheet::after {
  /*backdrop-filter: blur(100px) saturate(1.55) brightness(1.05);
  -webkit-backdrop-filter: blur(100px) saturate(1.55) brightness(1.05);*/
}

/* Stack/list cards and secondary glass surfaces */
.stack-item,
.pokemon-list-card,
.rarity-row,
.availability-entry-card,
.location-card,
.host-card,
.calendar,
.friend-code-card,
.trainer-pill {
  background:
    #cccccc29;
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(38px) saturate(215%) brightness(0.95);
  -webkit-backdrop-filter: blur(38px) saturate(215%) brightness(0.95);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.26),
    0 16px 48px rgba(2, 6, 18, 0.32);
}

.trade-type
{
  background: linear-gradient(135deg, rgba(100, 210, 255, 0.18), rgba(180, 110, 255, 0.14)),
    rgba(8, 14, 36, 0.50);
    font-size: 15px;
  color: white;
}

.trade-type.selected
{
  background: none;
  backdrop-filter: saturate(260%) brightness(1.1);
  -webkit-backdrop-filter: saturate(260%) brightness(1.1);
  color: white !important;
  text-shadow: 1px 1px 0px #00000038;
}

/* Dashboard topbar */
.dashboard-topbar {

  border-color: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(30px) saturate(125%) brightness(140%);
  -webkit-backdrop-filter: blur(30px) saturate(125%) brightness(140%);
}

/* Fields — colorful tinted glass, not plain dark */
.field input,
.field select,
.field textarea {
  background:
    linear-gradient(135deg, rgba(100, 210, 255, 0.16), rgba(180, 110, 255, 0.12)),
    rgba(8, 14, 36, 0.48);
  border: 1px solid rgba(160, 210, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(28px) saturate(260%);
  -webkit-backdrop-filter: blur(28px) saturate(260%);
}

.time-picker-trigger {
  background:
    linear-gradient(135deg, rgba(100, 210, 255, 0.18), rgba(180, 110, 255, 0.14)),
    rgba(8, 14, 36, 0.50);
  border: 1px solid rgba(160, 210, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 4px 16px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(28px) saturate(260%);
  -webkit-backdrop-filter: blur(28px) saturate(260%);
}

/* Calendar cells — slightly colorful */
.calendar-cell,
.date-picker-day,
.time-btn {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(10, 16, 40, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px) saturate(220%);
  -webkit-backdrop-filter: blur(20px) saturate(220%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

/* Pokemon picker — more colorful glass */
.pokemon-picker {
  background:#51aee557 !important;
  border: 1px solid rgb(119 224 255 / 63%);
  backdrop-filter: blur(28px) saturate(240%);
  -webkit-backdrop-filter: blur(28px) saturate(240%);
}

.pokemon-picker:hover {
  background:
    linear-gradient(135deg, rgba(100, 210, 255, 0.18), rgba(180, 110, 255, 0.14)),
    rgba(12, 20, 46, 0.68) !important;
  border-color: rgba(110, 242, 255, 0.44);
}

/* Welcome card — warm tinted glass */
.welcome-card {
  background:
    radial-gradient(ellipse at top right, rgba(255, 190, 80, 0.18), transparent 32%),
    radial-gradient(ellipse at bottom left, rgba(80, 220, 255, 0.14), transparent 32%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.07)),
    rgba(12, 18, 44, 0.52);
}

/* ===== Missing element glass updates ===== */

/* pokemon-list-card — was hardcoded #fff8ec */
.pokemon-list-card {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.26),
    0 16px 48px rgba(2, 6, 20, 0.32);
}

/* availability-card — was hardcoded #fff7e8 */
.availability-card {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(34px) saturate(140%);
  -webkit-backdrop-filter: blur(34px) saturate(140%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    0 14px 40px rgba(2, 6, 20, 0.28);
  color: var(--ink);
}

/* availability-editor wrapper — glass container for the location editor */
.availability-editor {
  border-radius: 20px;
}

/* Ensure availability-editor text colors stay readable */
.availability-editor,
.availability-editor p,
.availability-editor label,
.availability-editor span,
.availability-editor strong {
  color: rgba(245, 250, 255, 0.95);
}

.availability-editor .muted {
  color: rgba(200, 218, 255, 0.78);
}

/* friend-code-card — deepen the color so it reads as vibrant */
.friend-code-card {
  background:
    radial-gradient(ellipse at top right,  rgba(100, 246, 255, 0.38), transparent 34%),
    radial-gradient(ellipse at bottom left, rgba(70, 130, 255, 0.26), transparent 42%),
    linear-gradient(145deg, rgba(6, 58, 118, 0.90), rgba(30, 18, 96, 0.78));
  border: 1px solid rgba(100, 200, 255, 0.38);
  backdrop-filter: blur(36px) saturate(240%);
  -webkit-backdrop-filter: blur(36px) saturate(240%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.32),
    0 18px 48px rgba(2, 8, 26, 0.36),
    0 0 32px rgba(40, 180, 255, 0.14);
}

/* modal-card — make sure it has the full new glass treatment */
.modal-card {
  background: #ffffff1f;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(44px) saturate(280%);
  -webkit-backdrop-filter: blur(44px) saturate(280%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.36),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 28px 70px rgba(2, 6, 20, 0.44),
    0 4px 16px rgba(80, 120, 255, 0.16);
}

/* On touch devices, `:hover` fires on tap/scroll and sticks — kill all
   transitions so there is no animated flash, then reset hover to be
   visually identical to the resting state. */
@media (hover: none) {
  .pokemon-picker, .pokemon-form-choice {
    transition: none !important;
  }
  .pokemon-picker:hover, .pokemon-form-choice:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgb(119 224 255 / 63%) !important;
    background: #51aee557 !important;
  }
}

#refresh-friends
{
  color: #831414
}

a.jumbo-button, a.primary
{
  text-decoration: none;
}

#show-community-form-status
{
  margin-left: 10px;
}

.site-footer {
  position: relative;
  z-index: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 24px;
  padding: 28px 24px calc(40px + env(safe-area-inset-bottom, 0px));
  color: rgb(255 255 255 / 70%);
  font-size: 0.85rem;
  margin-top: auto;
}

@media (max-width: 600px) {
  .site-footer {
    justify-content: flex-start;
  }
  .site-footer > span:first-child {
    flex: 0 0 100%;
    text-align: left;
  }
}

.site-footer a {
  color: rgb(255 255 255 / 70%);
  text-decoration: none;
}

.site-footer a:hover {
  color: rgb(255 255 255)
}

#reset-friend-code-confirm
{
  margin-top: 0;
  color: #831414;
  border: 1px solid rgb(186 0 0 / 58%);
}

.button-row .primary, #admin-action-row .primary
{
  margin-top: 0;
}

#counter-trade-standard-fields .field
{
  margin-top: 8px;
}

#trade-pending-card, #meetup-pending-card
{
  margin-top: 15px;
}

#trade-submit, #copy-friend-link, #refresh-friends, #admin-action-row
{
  margin-top: 16px;
}

