/* ============================================================
   Txao's World Collector - Stylesheet
   Theme : dark glassmorphism
   Canvas #0b0d11 | glass rgba(18,18,18,.88) + blur(12px) | Lato
   Layout: mobile-first. < 768px = bottom dock, >= 768px = single top-right bar
   ============================================================ */

@font-face {
  font-family: 'Lato';
  src: url('./assets/fonts/Lato-Regular.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/der46er/website@main/assets/fonts/lato-v24-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('./assets/fonts/Lato-Bold.woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/gh/der46er/website@main/assets/fonts/lato-v24-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #0b0d11;
  --glass: rgba(18, 18, 18, 0.88);
  --glass-border: rgba(255, 255, 255, 0.15);
  --text: #ffffff;
  --text-dim: #a1a1aa;
  --text-faint: #71717a;
  --accent: #e4e4e7;
  --gold: #fbbf24;

  --gutter: 10px;
  --bar-h: 42px;

  /* Mobile dock: core height + gap above the device safe area */
  --nav-core: 62px;
  --nav-gap: 10px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --nav-h: calc(var(--nav-core) + var(--nav-gap) + var(--safe-b));
  --header-h: calc(var(--bar-h) + var(--gutter) + max(var(--gutter), var(--safe-t)));
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body {
  font-family: 'Inter', 'Lato', system-ui, sans-serif;
  background-color: var(--canvas);
  color: var(--text);
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.hidden { display: none !important; }

button, a, input, select, textarea, [role="button"] {
  touch-action: manipulation;
}

button { font-family: inherit; }

/* ---------- Glass ---------- */
.glass-box {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.glass-input {
  background: rgba(10, 12, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.glass-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

/* ============================================================
   Map stage
   ============================================================ */
.wc-map-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--canvas);
}

#map,
.leaflet-container {
  background: var(--canvas) !important;
  font-family: 'Inter', 'Lato', system-ui, sans-serif !important;
  touch-action: pan-x pan-y !important;
  pointer-events: auto !important;
  width: 100% !important;
  height: 100% !important;
}

/* Tile tinting (class is applied to <body> by layout.js) */
.map-dark-tiles .leaflet-tile-pane {
  filter: brightness(60%) invert(100%) contrast(140%) hue-rotate(185deg);
}

.map-satellite-tiles .leaflet-tile-pane {
  filter: brightness(85%) contrast(110%);
}

.map-minimal-tiles .leaflet-tile-pane {
  filter: grayscale(1) brightness(0.72) contrast(1.05);
}

.leaflet-popup-content-wrapper {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.leaflet-popup-content { margin: 0 !important; }
.leaflet-popup-tip-container { display: none !important; }
.leaflet-popup-close-button { display: none !important; }

/* Zoom control: bottom-left, stacked above the coordinates pill */
.leaflet-bottom.leaflet-left .leaflet-control-zoom {
  margin-bottom: 3.6rem !important;
  margin-left: 1rem !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 0.75rem !important;
  overflow: hidden;
  background: rgba(18, 18, 18, 0.9) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.leaflet-control-zoom-in, .leaflet-control-zoom-out {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  font-family: 'Inter', 'Lato', system-ui, sans-serif !important;
}

.leaflet-control-zoom-in:hover, .leaflet-control-zoom-out:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

/* Leaflet's own attribution control is disabled; credits live in #mapAttributionDisplay */
.leaflet-bottom.leaflet-right .leaflet-control-attribution {
  background: rgba(11, 13, 17, 0.9) !important;
  color: var(--text-faint) !important;
  font-size: 8px !important;
  margin: 0 !important;
  padding: 1px 4px !important;
  border-top-left-radius: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  right: 0 !important;
  bottom: 0 !important;
}

.leaflet-control-attribution a { color: var(--text-dim) !important; }

/* ---------- Pins ---------- */
.map-pin {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-pin:hover {
  transform: scale(1.15) translateY(-2px);
  z-index: 1000 !important;
}

.custom-pin {
  background: transparent !important;
  border: none !important;
}

.profile-map-pin {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-map-pin:hover {
  transform: scale(1.12) translateY(-2px);
  z-index: 1050 !important;
}

.profile-pin-avatar {
  border-radius: 9999px !important;
  border: 2px solid #ffffff;
  background: var(--canvas);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1 !important;
  box-sizing: border-box;
}

.profile-pin-avatar img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 9999px !important;
  display: block !important;
}

/* ---------- Scrollbars ---------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.35); }

/* ---------- Modal avatar clamping ---------- */
#profileAvatarContainer {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  border-radius: var(--avatar-radius, 1rem) !important;
  overflow: hidden !important;
}

@media (min-width: 640px) {
  #profileAvatarContainer {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
  }
}

#profileAvatarPreview {
  border-radius: var(--avatar-radius, 1rem) !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.avatar-isolated-wrapper {
  overflow: visible !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Hit-testing & overlay rules ---------- */
.opacity-0.pointer-events-none {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#drawer:not(.translate-x-full),
#drawerBackdrop:not(.opacity-0),
#pinsDrawer:not(.translate-x-full),
#pinsBackdrop:not(.opacity-0),
#formModal:not(.opacity-0),
#authModal:not(.opacity-0),
#profileModal:not(.opacity-0),
#settingsModal:not(.opacity-0),
#tutorialModal:not(.opacity-0),
#claimUsernameModal:not(.opacity-0),
#leaderboardModal:not(.opacity-0),
#quicklinkInviteModal:not(.opacity-0),
#lanyardTutorialModal:not(.opacity-0),
#kofiModal:not(.opacity-0),
#trustLocationModal:not(.opacity-0),
#setFriendAddressModal:not(.opacity-0),
#reportModal:not(.opacity-0),
#privacyBanner:not(.hidden) {
  pointer-events: auto !important;
}

#drawer.translate-x-full,
#pinsDrawer.translate-x-full { pointer-events: none !important; }

.safe-area-top { padding-top: max(0.625rem, env(safe-area-inset-top)); }
.safe-area-bottom { padding-bottom: max(0.625rem, env(safe-area-inset-bottom)); }

#toast {
  top: calc(var(--header-h) + 6px);
}

/* ============================================================
   Top bar
   ============================================================ */
.wc-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 950;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: max(var(--gutter), var(--safe-t)) var(--gutter) 0;
  pointer-events: none;
}

.wc-top > * { pointer-events: auto; }

/* Brand + OpenStreetMap credit (top-left, always visible) */
.wc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: var(--bar-h);
  padding: 0 11px 0 9px;
  border-radius: 14px;
  flex: 0 1 auto;
}

.wc-brand-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: none;
}

.wc-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.wc-brand-name {
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-brand-full { display: none; }
.wc-brand-short { display: inline; }

.wc-osm {
  font-size: 9px;
  line-height: 1.1;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
}

.wc-osm:hover { color: #fff; text-decoration: underline; }

/* Consolidated toolbar (top-right) */
.wc-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--bar-h);
  padding: 4px;
  border-radius: 14px;
  min-width: 0;
  flex: 0 1 auto;
}

.wc-relative { position: relative; }

.wc-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 2px;
  flex: none;
}

/* Search */
.wc-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(10, 12, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-faint);
  cursor: text;
  min-width: 0;
  transition: border-color 0.15s ease, width 0.18s ease;
}

.wc-search:focus-within {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.wc-search-icon { font-size: 12px; flex: none; }

.wc-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  height: 100%;
  font-family: inherit;
  width: 100%;
  min-width: 0;
  padding: 0;
}

.wc-search input::placeholder { color: var(--text-faint); font-size: 12px; }
.wc-search input::-webkit-search-cancel-button { display: none; }

.wc-search-clear {
  color: var(--text-faint);
  font-size: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex: none;
}

.wc-search-clear:hover { color: #fff; }

/* Unlocked-countries badge */
.wc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  flex: none;
  transition: background 0.15s ease;
}

.wc-chip:hover { background: rgba(255, 255, 255, 0.12); }
.wc-chip i { font-size: 12px; }
.wc-accent { color: #d4d4d8; }

/* Desktop tool buttons: same box as the search field and the countries chip */
.wc-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-sizing: border-box;
  height: 34px;
  min-width: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.wc-tool:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.wc-tool:active { transform: scale(0.96); }
.wc-tool > i,
.wc-tool .wc-icon-wrap > i { width: 14px; font-size: 12px; line-height: 1; text-align: center; }
.wc-tool-label { line-height: 1; }
.wc-tool-primary { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.wc-tool-primary > i { color: var(--accent); }
.wc-tool-primary:hover { border-color: rgba(255, 255, 255, 0.45); }
.wc-chip { box-sizing: border-box; line-height: 1; }
.wc-search { box-sizing: border-box; }

/* Support button: same box as the countries chip, solid gold (hidden once you have donated) */
.wc-donate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #f59e0b;
  background: #fbbf24;
  color: #1c1203;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  flex: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.wc-donate:hover { background: #fcd34d; }
.wc-donate:active { transform: scale(0.96); }
.wc-donate i { font-size: 12px; }

/* Friends menu footer: feedback, supporter, copyright + legal in one style */
.wc-drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.wc-foot-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-faint);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.wc-foot-link i { font-size: 9px; }
.wc-foot-link:hover { color: #fff; }
.wc-foot-gold { color: var(--gold); }

.wc-tool-label { display: none; }

.wc-tool-label-account {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-icon-wrap { position: relative; display: inline-flex; align-items: center; }

.wc-count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 14px;
  padding: 2px 4px;
  border-radius: 9999px;
  background: #f43f5e;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.wc-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #18181b;
  flex: none;
}

.wc-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 9999px; }
.wc-avatar-sm { width: 20px; height: 20px; }

/* Menus (map style) */
.wc-menu {
  border-radius: 14px;
  padding: 6px;
  z-index: 1000;
}

.wc-layers-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 188px;
}

.wc-menu-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.layer-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 9px;
  border: none;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.layer-opt:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.layer-opt.bg-white\/10 { background: rgba(255, 255, 255, 0.1); }

/* Search results: outside the blurred toolbar so fixed/absolute math is simple */
.wc-search-results {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: calc(100% + 4px);
  max-height: min(320px, 55dvh);
  overflow-y: auto;
  border-radius: 16px;
  padding: 6px;
  pointer-events: auto;
}

/* Narrow phones: search collapses to an icon, expands on focus */
@media (max-width: 479px) {
  .wc-search {
    width: 34px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  .wc-search input,
  .wc-search .wc-search-clear { width: 0; opacity: 0; pointer-events: none; padding: 0; }

  .wc-search:focus-within,
  .wc-search.is-open {
    width: min(58vw, 220px);
    padding: 0 10px;
    justify-content: flex-start;
    gap: 6px;
  }

  .wc-search:focus-within input,
  .wc-search.is-open input { width: 100%; opacity: 1; pointer-events: auto; }

  .wc-search:focus-within .wc-search-clear,
  .wc-search.is-open .wc-search-clear { width: auto; opacity: 1; pointer-events: auto; }

  /* while typing, give the field the room it needs */
  .wc-toolbar:has(.wc-search:focus-within) .wc-chip { display: none; }
  .wc-top:has(.wc-search:focus-within) .wc-brand { display: none; }
  .wc-top:has(.wc-search:focus-within) { justify-content: flex-end; }
  .wc-top:has(.wc-search:focus-within) .wc-search { width: min(78vw, 300px); }
}

@media (min-width: 480px) and (max-width: 767px) {
  .wc-search { width: 190px; }
  .wc-brand-full { display: none; }
}

/* ============================================================
   Bottom-left: coordinates + support | Bottom-right: credits
   ============================================================ */
.wc-status {
  position: fixed;
  z-index: 500;
  bottom: 14px;
  pointer-events: none;
}

.wc-status-left { left: 16px; }
.wc-status-right { right: 16px; }

.wc-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 10px;
  pointer-events: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.wc-coords {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  line-height: 1;
  color: #d4d4d8;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.wc-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: none;
  background: rgba(251, 191, 36, 0.12);
  color: var(--gold);
  cursor: pointer;
  flex: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.wc-pill-btn:hover { background: rgba(251, 191, 36, 0.25); color: #fff; }

.wc-credits {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 2px;
  padding: 4px 9px;
  max-width: min(640px, calc(100vw - 260px));
  font-size: 9px;
  line-height: 1.25;
  color: var(--text-dim);
  text-align: right;
}

.wc-credits, .wc-credits a { font-family: inherit; font-weight: 600; font-style: normal; letter-spacing: 0; }
.wc-credits a { color: var(--text-dim); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); }
.wc-credits a:hover { color: #fff; text-decoration-color: #fff; }

.wc-legal {
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  white-space: nowrap;
}

/* ============================================================
   Mobile bottom dock
   ============================================================ */
.wc-nav-wrap { display: none; }

.wc-nav-btn,
.wc-nav-add {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

.wc-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  height: 100%;
  color: #a1a1aa;
  font-size: 9px;
  font-weight: 700;
  border-radius: 12px;
  transition: color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.wc-nav-btn i { font-size: 16px; line-height: 1; height: 18px; display: inline-flex; align-items: center; }
.wc-nav-btn .wc-avatar { width: 18px; height: 18px; }
.wc-nav-btn .wc-icon-wrap { height: 18px; }
.wc-nav-btn:hover, .wc-nav-btn:active { color: #fff; }
.wc-nav-btn:active { transform: scale(0.94); }
.wc-nav-btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wc-nav-add {
  justify-self: center;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: 9999px;
  background: #fff;
  color: #000;
  font-size: 17px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
  transition: transform 0.1s ease;
}

.wc-nav-add:active { transform: scale(0.9); }

/* ============================================================
   Mobile (< 768px)
   ============================================================ */
@media screen and (max-width: 767px) {
  .wc-desktop { display: none !important; }
  .wc-donate { padding: 0 10px; }
  .wc-donate-label { display: none; }

  .wc-nav-wrap {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding: 0 var(--gutter) calc(var(--nav-gap) + var(--safe-b));
    pointer-events: none;
  }

  .wc-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    height: var(--nav-core);
    padding: 0 6px;
    border-radius: 18px;
    pointer-events: auto;
  }

  /* Coordinates: bottom-left, directly above the dock */
  .wc-status { bottom: calc(var(--nav-h) + 8px); }
  .wc-status-left { left: var(--gutter); }
  .wc-status-right { right: var(--gutter); }

  .wc-credits {
    max-width: calc(100vw - 190px);
    font-size: 8px;
    padding: 3px 7px;
  }

  .wc-legal { letter-spacing: 0.04em; }

  .leaflet-bottom.leaflet-left .leaflet-control-zoom {
    margin-bottom: calc(var(--nav-h) + 46px) !important;
    margin-left: var(--gutter) !important;
  }

  /* Map style popup sits right above the dock */
  .wc-layers-popup {
    position: fixed;
    left: var(--gutter);
    bottom: calc(var(--nav-h) + 8px);
    width: 196px;
  }

  .wc-search-results {
    position: fixed;
    top: calc(var(--header-h) + 2px);
    left: var(--gutter);
    right: var(--gutter);
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  input[type="url"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* ============================================================
   Desktop (>= 768px): one consolidated bar, top-right
   ============================================================ */
@media screen and (min-width: 768px) {
  :root { --gutter: 16px; --bar-h: 44px; }

  .wc-top { padding-top: max(14px, var(--safe-t)); }

  .wc-nav-wrap,
  #mobileLayersPopup { display: none !important; }

  .wc-brand-full { display: inline; }
  .wc-brand-short { display: none; }
  .wc-brand-name { font-size: 12px; }

  .wc-search { width: 190px; }

  .wc-search-results {
    left: auto;
    right: var(--gutter);
    width: min(380px, calc(100vw - 2 * var(--gutter)));
  }

  .wc-credits { max-width: min(640px, calc(100vw - 300px)); font-size: 10px; }
}

@media screen and (min-width: 1100px) {
  .wc-search { width: 250px; }
  .wc-tool-label { display: inline; }
}

@media screen and (min-width: 1440px) {
  .wc-search { width: 300px; }
}

/* ============================================================
   Profile badges (rendered by api-adapter.js): plain coloured
   emblems like Discord's, click one to see what it means
   ============================================================ */
.wc-badge-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

.wc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--badge, #e4e4e7);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.wc-badge svg { width: 17px; height: 17px; }
.wc-badge:hover { background: rgba(255, 255, 255, 0.08); }
.wc-badge:active { transform: scale(0.92); }
.wc-badge:focus-visible { outline: 2px solid var(--badge, #fff); outline-offset: 1px; }

.wc-badge-pop {
  position: fixed;
  z-index: 1300;
  width: 230px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #121317;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  color: #e4e4e7;
  font-size: 11px;
  line-height: 1.45;
}

.wc-badge-pop-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wc-badge-pop-head .wc-badge { cursor: default; background: rgba(255, 255, 255, 0.06); }
.wc-badge-pop-title { font-size: 12px; font-weight: 800; color: #fff; }
.wc-badge-pop p { margin: 0; color: #a1a1aa; }

/* ============================================================
   Collected countries window (click the "1 / 195" box)
   ============================================================ */
.wc-countries {
  position: fixed;
  z-index: 1000;
  width: min(300px, calc(100vw - 2 * var(--gutter)));
  max-height: min(420px, 60dvh);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  padding: 10px;
}

.wc-countries-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2px 4px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.wc-countries-title { font-size: 12px; font-weight: 800; color: #fff; }
.wc-countries-count { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #d4d4d8; }
.wc-countries-bar { height: 4px; border-radius: 9999px; background: rgba(255, 255, 255, 0.08); margin: 8px 4px; overflow: hidden; }
.wc-countries-bar > span { display: block; height: 100%; background: #e4e4e7; border-radius: 9999px; }
.wc-countries-list { list-style: none; margin: 0; padding: 0 2px; overflow-y: auto; }
.wc-countries-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px; border-radius: 8px; font-size: 12px; color: #e4e4e7; }
.wc-countries-list li:hover { background: rgba(255, 255, 255, 0.05); }
.wc-countries-src { font-size: 10px; color: var(--text-faint); white-space: nowrap; }
.wc-countries-empty { padding: 14px 6px; font-size: 11px; color: var(--text-faint); text-align: center; line-height: 1.5; }

/* ============================================================
   Profile card styles + banner filters (chosen in the profile editor)
   ============================================================ */
#profileCardWrapper.card-style-glass { background: rgba(18, 18, 18, 0.88); }
#profileCardWrapper.card-style-oled { background: #000; border-color: rgba(255, 255, 255, 0.12); backdrop-filter: none; }
#profileCardWrapper.card-style-slate { background: rgba(51, 65, 85, 0.55); border-color: rgba(148, 163, 184, 0.35); backdrop-filter: blur(20px) saturate(1.2); }
#profileCardWrapper.card-style-cyberpunk {
  background: linear-gradient(160deg, rgba(24, 6, 38, 0.95), rgba(4, 18, 28, 0.95));
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 0 28px rgba(236, 72, 153, 0.3);
}
#profileCardWrapper.card-style-supporter-gold {
  background: linear-gradient(160deg, rgba(38, 28, 6, 0.96), rgba(14, 12, 8, 0.96));
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 0 26px rgba(251, 191, 36, 0.28);
}

#profileBannerBox::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
#profileBannerBox.banner-filter-vignette::after { background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.75) 100%); }
#profileBannerBox.banner-filter-scanlines::after { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.32) 0 1px, transparent 1px 3px); }
#profileBannerBox.banner-filter-frosted::after { backdrop-filter: blur(6px); background: rgba(255, 255, 255, 0.06); }
#profileBannerBox.banner-filter-neon::after { background: linear-gradient(120deg, rgba(236, 72, 153, 0.35), rgba(34, 211, 238, 0.3)); mix-blend-mode: screen; }
#profileBannerBox > label, #profileBannerBox > div { z-index: 2; }

/* ============================================================
   thataustrianone.eu look: glass cards, quiet hover glow, Inter
   ============================================================ */
:root { --glass-border: rgba(255, 255, 255, 0.2); --radius-card: 1.2rem; }

button.glass-box,
a.glass-box,
.wc-tool,
.wc-chip,
.wc-nav-btn {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.2s ease, transform 0.1s ease;
}

button.glass-box:hover,
a.glass-box:hover,
.wc-tool:hover,
.wc-chip:hover {
  border-color: rgba(212, 212, 216, 0.8);
  box-shadow: 0 0 30px -6px rgba(212, 212, 216, 0.4);
}

button.glass-box:active,
a.glass-box:active { transform: scale(0.99); }

/* Tool and chip buttons use the same neutral tile as the icon tiles there */
.wc-tool, .wc-chip { background: rgba(212, 212, 216, 0.08); border-color: rgba(255, 255, 255, 0.1); }
.wc-tool-primary > i { color: #f4f4f5; }

/* Windows: same card radius as the site */
[role="dialog"] > .glass-box,
#profileCardWrapper,
.wc-countries,
#drawer,
#pinsDrawer { border-radius: var(--radius-card); }
#drawer,
#pinsDrawer { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* Headings: heavy italic uppercase, tight */
.wc-brand-name,
[role="dialog"] h2,
[role="dialog"] h3 { font-family: 'Inter', system-ui, sans-serif; font-weight: 900; font-style: italic; letter-spacing: -0.02em; }

/* Profile card: avatar above the accent line, never crossed out by it */
#profileAccentStrip { z-index: 1 !important; }
#profileBannerBox > div.absolute.-bottom-8 { z-index: 5 !important; }

/* ============================================================
   Profile card buttons (Edit card / Edit pin / Share / map)
   ============================================================ */
.wc-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--pc-button, rgba(212, 212, 216, 0.08));
  color: var(--pc-text, #e4e4e7);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.2s ease, transform 0.1s ease;
}
.wc-card-btn:hover { border-color: rgba(212, 212, 216, 0.8); box-shadow: 0 0 30px -6px rgba(212, 212, 216, 0.4); color: #fff; }
.wc-card-btn:active { transform: scale(0.97); }
.wc-card-btn i { font-size: 12px; width: 14px; text-align: center; }
.wc-card-btn-square { width: 34px; padding: 0; justify-content: center; }
.wc-card-btn-primary { background: #f4f4f5; color: #09090b; border-color: #f4f4f5; }
.wc-card-btn-primary:hover { background: #fff; color: #000; }
.wc-card-btn-danger { color: #fda4af; border-color: rgba(244, 63, 94, 0.35); }
.wc-card-btn.is-active { border-color: rgba(244, 244, 245, 0.85); background: rgba(244, 244, 245, 0.14); color: #fff; }

/* ============================================================
   Status: Discord-style speech bubble beside the avatar
   ============================================================ */
.wc-status-bubble {
  position: absolute;
  left: 96px;
  bottom: -26px;
  z-index: 6;
  max-width: calc(100% - 150px);
  display: flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 14px;
  background: var(--pc-panel, #1f2024);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  color: var(--pc-text, #f4f4f5);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.wc-status-bubble.hidden { display: none; }
.wc-status-bubble span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* the two little "thought" dots leading back to the avatar */
.wc-status-bubble::before,
.wc-status-bubble::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  background: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.wc-status-bubble::before { width: 10px; height: 10px; left: -9px; top: 4px; }
.wc-status-bubble::after { width: 5px; height: 5px; left: -17px; top: 0; }
@media (min-width: 640px) {
  .wc-status-bubble { left: 116px; bottom: -30px; }
}
#profileCardWrapper:has(#profileForm:not(.hidden)) .wc-status-bubble { display: none !important; }
#profileViewCard { padding-top: 3rem !important; }

/* ============================================================
   Spotify: equaliser bars that move like music
   ============================================================ */
.wc-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.wc-eq span {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: #e4e4e7;
  transform-origin: bottom;
  animation: wc-eq 1.1s ease-in-out infinite;
}
.wc-eq span:nth-child(1) { animation-duration: 0.9s; animation-delay: -0.2s; }
.wc-eq span:nth-child(2) { animation-duration: 1.25s; animation-delay: -0.55s; }
.wc-eq span:nth-child(3) { animation-duration: 0.75s; animation-delay: -0.1s; }
.wc-eq span:nth-child(4) { animation-duration: 1.05s; animation-delay: -0.8s; }
.wc-eq span:nth-child(5) { animation-duration: 0.95s; animation-delay: -0.35s; }
@keyframes wc-eq {
  0%, 100% { transform: scaleY(0.25); }
  20% { transform: scaleY(0.9); }
  40% { transform: scaleY(0.45); }
  60% { transform: scaleY(1); }
  80% { transform: scaleY(0.6); }
}
@media (prefers-reduced-motion: reduce) { .wc-eq span { animation: none; transform: scaleY(0.6); } }

/* ============================================================
   Card colors chosen in the editor (only the ones that are set)
   ============================================================ */
.wc-color-field { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 11px; color: #d4d4d8; cursor: pointer; }
.wc-color-field input { width: 26px; height: 26px; border: none; padding: 0; background: transparent; cursor: pointer; }

#profileCardWrapper.pc-has-bg { background: var(--pc-bg) !important; }
#profileCardWrapper.pc-has-border { border-color: var(--pc-border) !important; }
#profileCardWrapper.pc-has-text #profileViewCard,
#profileCardWrapper.pc-has-text #profileViewCard .text-white,
#profileCardWrapper.pc-has-text #profileViewCard .text-zinc-100,
#profileCardWrapper.pc-has-text #profileViewCard .text-zinc-200 { color: var(--pc-text) !important; }
#profileCardWrapper.pc-has-muted #profileViewCard .text-zinc-300,
#profileCardWrapper.pc-has-muted #profileViewCard .text-zinc-400,
#profileCardWrapper.pc-has-muted #profileViewCard .text-zinc-500 { color: var(--pc-muted) !important; }
#profileCardWrapper.pc-has-panel #profileViewCard .bg-white\/\[0\.03\],
#profileCardWrapper.pc-has-panel #profileViewCard .bg-white\/10,
#profileCardWrapper.pc-has-panel #viewBioBox { background: var(--pc-panel) !important; }

/* ============================================================
   Avatar frames (cosmetics) and pin shapes
   ============================================================ */
.wc-avatar-frame {
  position: absolute;
  z-index: 7;
  pointer-events: none;
  width: calc(100% * var(--frame-scale, 1.28));
  height: calc(100% * var(--frame-scale, 1.28));
  left: calc(50% - 50% * var(--frame-scale, 1.28));
  top: calc(50% - 50% * var(--frame-scale, 1.28));
  object-fit: contain;
}
.wc-avatar-frame.hidden { display: none; }

.profile-pin-avatar.wc-pin-avatar,
.profile-pin-avatar.wc-pin-avatar img,
.profile-pin-avatar.wc-pin-beacon,
.profile-pin-avatar.wc-pin-beacon img { border-radius: 9999px !important; }
.profile-pin-avatar.wc-pin-badge,
.profile-pin-avatar.wc-pin-badge img { border-radius: 28% !important; }
.profile-pin-avatar.wc-pin-diamond { border-radius: 22% !important; transform: rotate(45deg); }
.profile-pin-avatar.wc-pin-diamond img { border-radius: 18% !important; transform: rotate(-45deg) scale(1.42); }
.profile-pin-avatar.wc-pin-beacon { animation: wc-beacon 1.8s ease-out infinite; }
@keyframes wc-beacon {
  0% { box-shadow: 0 0 0 0 var(--pin-ring, #e4e4e7); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}
@media (prefers-reduced-motion: reduce) { .profile-pin-avatar.wc-pin-beacon { animation: none; } }

/* ============================================================
   Admin console
   ============================================================ */
.wc-admin { max-height: min(88dvh, 820px); }

/* ============================================================
   Direct messages
   ============================================================ */
.wc-chat {
  position: fixed;
  z-index: 1160;
  right: var(--gutter);
  bottom: var(--gutter);
  width: min(380px, calc(100vw - 2 * var(--gutter)));
  height: min(560px, calc(100dvh - var(--header-h) - 2 * var(--gutter)));
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card, 1.2rem);
  overflow: hidden;
}
.wc-chat.hidden { display: none; }
@media (max-width: 767px) {
  .wc-chat { inset: 0; width: 100%; height: 100dvh; border-radius: 0; padding-top: var(--safe-t); padding-bottom: var(--safe-b); }
}
.wc-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.wc-chat-peer { display: flex; align-items: center; gap: 10px; min-width: 0; background: none; border: none; padding: 0; cursor: pointer; text-align: left; font-family: inherit; }
.wc-chat-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.wc-chat-empty { margin: auto; color: var(--text-faint); font-size: 12px; text-align: center; }
.wc-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; }
.wc-msg.is-mine { align-self: flex-end; align-items: flex-end; }
.wc-msg-bubble {
  padding: 8px 12px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(212, 212, 216, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f4f4f5;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wc-msg.is-mine .wc-msg-bubble { border-radius: 16px 16px 4px 16px; background: #f4f4f5; color: #09090b; border-color: #f4f4f5; }
.wc-msg-time { margin-top: 3px; font-size: 9px; color: var(--text-faint); }
.wc-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.wc-chat-form textarea { flex: 1; resize: none; min-height: 36px; max-height: 120px; border-radius: 12px; padding: 8px 12px; font-size: 13px; color: #fff; font-family: inherit; line-height: 1.35; }
.wc-chat-form.is-locked { opacity: 0.6; }
.wc-unread-dot { position: absolute; top: -3px; right: -5px; width: 8px; height: 8px; border-radius: 9999px; background: #f43f5e; box-shadow: 0 0 0 2px #121212; }
.wc-chat-btn { position: relative; }
.wc-chat-btn.has-unread::after { content: ""; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 9999px; background: #f43f5e; }

/* ============================================================
   Admin console: full-screen dashboard
   ============================================================ */
.wc-adm {
  position: fixed;
  inset: 0;
  z-index: 1180;
  display: grid;
  grid-template-columns: 220px 1fr;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255, 255, 255, 0.03), transparent 60%),
    rgba(9, 10, 13, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #e4e4e7;
  font-size: 12px;
}
.wc-adm.hidden { display: none; }
html.wc-adm-open body { overflow: hidden; }

.wc-adm-side { display: flex; flex-direction: column; gap: 6px; padding: 18px 12px; border-right: 1px solid rgba(255, 255, 255, 0.08); background: rgba(18, 18, 18, 0.6); }
.wc-adm-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; font-size: 18px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.02em; color: #fff; }
.wc-adm-nav { display: flex; flex-direction: column; gap: 4px; }
.wc-adm-nav button {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid transparent; background: transparent; color: #a1a1aa; font: inherit; font-weight: 700; font-size: 12px; text-align: left; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.wc-adm-nav button i { width: 16px; text-align: center; }
.wc-adm-nav button:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.wc-adm-nav button.is-active { background: rgba(212, 212, 216, 0.1); border-color: rgba(255, 255, 255, 0.15); color: #fff; }
.wc-adm-nav em { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 800; min-width: 18px; padding: 1px 6px; border-radius: 9999px; background: #f43f5e; color: #fff; text-align: center; }
.wc-adm-nav em:empty { display: none; }
.wc-adm-live { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 12px; color: #71717a; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.wc-adm-pulse { width: 8px; height: 8px; border-radius: 9999px; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: wc-adm-pulse 2s infinite; }
@keyframes wc-adm-pulse { 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.wc-adm-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.wc-adm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 28px 14px; }
.wc-adm-head h2 { margin: 0; font-size: 30px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.04em; color: #fff; line-height: 1; }
.wc-adm-head p { margin: 6px 0 0; color: #71717a; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.wc-adm-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 28px 28px; }

.wc-adm-card { padding: 16px; border-radius: 1.2rem; background: rgba(18, 18, 18, 0.88); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45); }
.wc-adm-card h3 { margin: 0 0 10px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: #71717a; }
.wc-adm-danger { border-color: rgba(244, 63, 94, 0.3); }
.wc-adm-muted { color: #71717a; }
.wc-adm-label { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: #71717a; }

.wc-adm-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wc-adm-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wc-adm-stat { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 1.2rem; background: rgba(18, 18, 18, 0.88); border: 1px solid rgba(255, 255, 255, 0.12); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.wc-adm-stat:hover { border-color: rgba(212, 212, 216, 0.6); box-shadow: 0 0 40px -10px rgba(212, 212, 216, 0.35); }
.wc-adm-stat-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(212, 212, 216, 0.1); color: #d4d4d8; font-size: 16px; flex: none; }
.wc-adm-value { font-size: 28px; font-weight: 900; color: #fff; line-height: 1.1; margin-top: 2px; font-variant-numeric: tabular-nums; }
.wc-adm-hint { color: #71717a; font-size: 11px; margin-top: 2px; }

.wc-adm-health { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.wc-adm-health b { margin-left: auto; color: #fff; }
.wc-adm-dot { width: 8px; height: 8px; border-radius: 9999px; background: #71717a; }
.wc-adm-dot.is-ok { background: #34d399; }
.wc-adm-dot.is-off { background: #f43f5e; }

.wc-adm-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: #e4e4e7; font: inherit; text-align: left; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.wc-adm-row:hover { background: rgba(255, 255, 255, 0.05); }
.wc-adm-row.is-selected { background: rgba(212, 212, 216, 0.1); border-color: rgba(255, 255, 255, 0.18); }
.wc-adm-row b { color: #fff; }
.wc-adm-row small { display: block; color: #71717a; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-adm-line { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.wc-adm-line small { color: #71717a; }
.wc-adm-ico { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(244, 63, 94, 0.12); color: #fda4af; flex: none; }
.wc-adm-ico.is-auto { background: rgba(255, 255, 255, 0.08); color: #e4e4e7; }

.wc-adm-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; background: rgba(255, 255, 255, 0.08); color: #d4d4d8; border: 1px solid rgba(255, 255, 255, 0.1); }
.wc-adm-chip button { background: none; border: none; color: inherit; cursor: pointer; font-size: 12px; line-height: 1; padding: 0 0 0 2px; }
.wc-adm-chip.is-active, .wc-adm-chip.is-actioned { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.3); }
.wc-adm-chip.is-restricted, .wc-adm-chip.is-open { background: rgba(251, 146, 60, 0.12); color: #fdba74; border-color: rgba(251, 146, 60, 0.3); }
.wc-adm-chip.is-banned { background: rgba(244, 63, 94, 0.12); color: #fda4af; border-color: rgba(244, 63, 94, 0.3); }
.wc-adm-chip.is-admin { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.wc-adm-pill { height: 28px; padding: 0 10px; font-size: 11px; }

.wc-adm-split { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 14px; height: 100%; min-height: 0; }
.wc-adm-pane { min-height: 0; overflow-y: auto; padding: 14px; border-radius: 1.2rem; background: rgba(18, 18, 18, 0.7); border: 1px solid rgba(255, 255, 255, 0.1); }
.wc-adm-list { display: flex; flex-direction: column; gap: 2px; }
.wc-adm-hero { position: relative; height: 110px; border-radius: 14px; background: #18181b center / cover no-repeat; margin-bottom: 34px; }
.wc-adm-hero-fade { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55)); }
.wc-adm-hero-av { position: absolute; left: 16px; bottom: -28px; width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.35); background: #27272a; }
.wc-adm-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.wc-adm-facts > div { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); color: #e4e4e7; overflow-wrap: anywhere; }
.wc-adm-facts small { display: block; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #71717a; margin-bottom: 2px; }

.wc-adm-reports { display: flex; flex-direction: column; gap: 10px; }
.wc-adm-empty { text-align: center; padding: 50px 0; color: #71717a; }
.wc-adm-empty i { font-size: 28px; margin-bottom: 8px; }

.wc-adm-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.wc-adm-frame-prev { position: relative; width: 70px; height: 70px; margin: 14px auto 8px; }
.wc-adm-frame-prev span { position: absolute; inset: 0; border-radius: 9999px; background: #3f3f46; }
.wc-adm-frame-prev img { position: absolute; width: calc(100% * var(--s)); height: calc(100% * var(--s)); left: calc(50% - 50% * var(--s)); top: calc(50% - 50% * var(--s)); pointer-events: none; }

.wc-adm-big-dot { width: 16px; height: 16px; border-radius: 9999px; background: #34d399; box-shadow: 0 0 18px rgba(52, 211, 153, 0.6); flex: none; }
.wc-adm-big-dot.is-on { background: #fb923c; box-shadow: 0 0 18px rgba(251, 146, 60, 0.6); }

@media (max-width: 1100px) {
  .wc-adm-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wc-adm-grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .wc-adm { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .wc-adm-side { flex-direction: row; align-items: center; padding: 10px; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); overflow-x: auto; padding-top: max(10px, var(--safe-t)); }
  .wc-adm-brand { padding: 0 6px; font-size: 14px; }
  .wc-adm-brand span, .wc-adm-live { display: none; }
  .wc-adm-nav { flex-direction: row; }
  .wc-adm-nav button span { display: none; }
  .wc-adm-head { padding: 14px 16px 8px; }
  .wc-adm-head h2 { font-size: 22px; }
  .wc-adm-body { padding: 4px 12px 20px; }
  .wc-adm-split { grid-template-columns: 1fr; height: auto; }
  .wc-adm-grid4 { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Round 6: frames sized against the avatar, pin extras, tags, tick
   ============================================================ */
/* The avatar holder takes the avatar's exact size so the frame can be scaled around it */
#profileBannerBox > div.absolute.-bottom-8 { width: 64px; height: 64px; }
@media (min-width: 640px) { #profileBannerBox > div.absolute.-bottom-8 { width: 80px; height: 80px; } }
#profileBannerBox > div.absolute.-bottom-8 > #profileAvatarContainer { position: absolute; inset: 0; }

.wc-pin-wrap { position: relative; }
.wc-pin-frame {
  position: absolute;
  pointer-events: none;
  width: calc(100% * var(--s, 1.28));
  height: calc(100% * var(--s, 1.28));
  left: calc(50% - 50% * var(--s, 1.28));
  top: calc(50% - 50% * var(--s, 1.28));
}
.wc-pin-supporter {
  position: absolute;
  right: -18%;
  top: -18%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #fbbf24;
  color: #1c1203;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.wc-tag { flex: none; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; padding: 1px 6px; border-radius: 9999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); color: #f4f4f5; }
.wc-tag-gold { background: rgba(251, 191, 36, 0.15); border-color: rgba(251, 191, 36, 0.45); color: #fcd34d; }
.wc-verified { color: #38bdf8; margin-left: 4px; font-size: 0.95em; }

/* Tailwind caps images at 100% of their box; frames are meant to be bigger than the avatar */
.wc-avatar-frame, .wc-pin-frame, .wc-adm-frame-prev img { max-width: none !important; }

/* Profile card bottom bar: one row that wraps instead of overflowing */
.wc-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.wc-card-actions-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wc-card-actions-end { justify-content: flex-end; margin-left: auto; }

/* ============================================================
   Map pin card (friend / own profile pin)
   ============================================================ */
.wc-popcard {
  width: min(300px, 80vw);
  border-radius: 1.2rem;
  overflow: hidden;
  background: var(--pc-bg, rgba(18, 18, 18, 0.94));
  border: 1px solid var(--pc-border, rgba(255, 255, 255, 0.2));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--pc-text, #fff);
  font-size: 12px;
}
.wc-popcard-banner { position: relative; height: 74px; background: #18181b center / cover no-repeat; }
.wc-popcard-close { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(0, 0, 0, 0.6); color: #e4e4e7; cursor: pointer; z-index: 3; }
.wc-popcard-avatar { position: absolute; left: 12px; bottom: -22px; width: 52px; height: 52px; z-index: 3; }
.wc-popcard-avatar > img:first-child { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); border: 2px solid rgba(255, 255, 255, 0.4); background: #09090b; }
.wc-popcard-avatar .wc-pin-frame { max-width: none; }
.wc-popcard-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--pc-accent); z-index: 2; }
.wc-popcard-bubble { left: 74px; bottom: -16px; max-width: calc(100% - 90px); font-size: 11px; padding: 5px 10px; }
.wc-popcard-body { padding: 30px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.wc-popcard-name { font-size: 14px; font-weight: 900; color: var(--pc-text, #fff); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-popcard-handle { margin: 1px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; color: var(--pc-accent); }
.wc-popcard-chip { flex: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; padding: 2px 8px; border-radius: 8px; background: var(--pc-panel, rgba(255, 255, 255, 0.08)); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--pc-muted, #d4d4d8); }
.wc-popcard-loc { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--pc-muted, #d4d4d8); font-size: 11px; }
.wc-popcard-loc i { color: var(--pc-muted, #a1a1aa); font-size: 10px; }
.wc-popcard-music { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--pc-panel, rgba(255, 255, 255, 0.05)); border: 1px solid rgba(255, 255, 255, 0.08); }
.wc-popcard-music.hidden { display: none; }
.wc-popcard-music img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.wc-popcard-music-label { display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pc-muted, #a1a1aa); }
.wc-popcard-music-label .wc-eq { height: 10px; }
.wc-popcard-music-label .wc-eq span { width: 2px; }
.wc-popcard-music-track { font-weight: 800; color: var(--pc-text, #fff); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-popcard-music-artist { font-size: 10px; color: var(--pc-muted, #a1a1aa); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-popcard-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.wc-popcard-open { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: none; font: inherit; font-weight: 800; font-size: 11px; color: var(--pc-accent); cursor: pointer; }
.wc-popcard-open:hover { filter: brightness(1.2); }
.wc-popcard-meta { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; color: var(--pc-muted, #71717a); }

.wc-msg-receipt { color: var(--text-faint); }
.wc-msg-receipt.is-read { color: #e4e4e7; }
.wc-msg-receipt i { font-size: 8px; }
.wc-friend-card:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 2px; }

.wc-adm-frame-shapes { display: flex; gap: 14px; flex-wrap: wrap; }
.wc-adm-frame-shapes figure { margin: 0; text-align: center; }
.wc-adm-frame-shapes figcaption { margin-top: 10px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #71717a; }
.wc-adm-frame-prev { position: relative; margin: 10px auto 0; }
.wc-adm-frame-prev .wc-adm-frame-av { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wc-adm-frame-prev span { display: none; }

/* Frame picker in the profile editor */
.wc-frame-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.wc-frame-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 6px 8px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); color: #d4d4d8; font: inherit; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.wc-frame-tile:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.35); }
.wc-frame-tile.is-active { border-color: #f4f4f5; background: rgba(255, 255, 255, 0.1); color: #fff; }
.wc-frame-tile:disabled { opacity: 0.45; cursor: not-allowed; }
.wc-frame-tile-art { position: relative; width: 44px; height: 44px; }
.wc-frame-tile-art > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.wc-frame-tile-name { font-size: 10px; font-weight: 700; text-align: center; line-height: 1.2; }

/* ============================================================
   Notifications tab + Ko-fi reminder
   ============================================================ */
.wc-note-title { margin: 6px 2px 2px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: #71717a; }
.wc-note { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); font-size: 12px; color: #e4e4e7; }
.wc-note p { margin: 4px 0 0; color: #a1a1aa; line-height: 1.45; }
.wc-note b { color: #fff; }
.wc-note-row { display: flex; align-items: center; gap: 10px; }
.wc-note.is-new { border-color: rgba(244, 63, 94, 0.45); }
.wc-note-head { display: flex; align-items: center; gap: 8px; }
.wc-note-alert { border-color: rgba(244, 63, 94, 0.35); background: rgba(244, 63, 94, 0.06); }
.wc-note-gold { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.06); }
.wc-note-gold .wc-note-head i { color: #fbbf24; }
.wc-note-muted { color: #71717a; font-size: 11px; }
.wc-note-ico { width: 30px; height: 30px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.06); color: #e4e4e7; }
.wc-note-empty { text-align: center; padding: 40px 10px; color: #71717a; font-size: 12px; }
.wc-note-empty i { font-size: 22px; opacity: 0.5; margin-bottom: 6px; }
.wc-appeal { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.wc-appeal textarea { width: 100%; resize: vertical; border-radius: 12px; padding: 8px 10px; font: inherit; font-size: 12px; color: #fff; }
.wc-appeal button { align-self: flex-end; }

.wc-nag {
  position: fixed; z-index: 1190; left: var(--gutter); bottom: calc(var(--gutter) + 40px);
  width: min(340px, calc(100vw - 2 * var(--gutter))); display: flex; gap: 12px; padding: 14px;
  border-radius: 1.2rem; border-color: rgba(251, 191, 36, 0.45); color: #e4e4e7; font-size: 12px;
  animation: wc-nag-in 0.35s ease-out;
}
.wc-nag b { color: #fff; font-size: 13px; }
.wc-nag p { margin: 4px 0 0; color: #a1a1aa; line-height: 1.45; }
.wc-nag-icon { width: 38px; height: 38px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #fbbf24; color: #1c1203; font-size: 16px; }
@media (max-width: 767px) { .wc-nag { bottom: calc(var(--nav-h) + 56px); } }
@keyframes wc-nag-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
#drawerRequestsBadge { background: #f43f5e !important; }

/* ============================================================
   Chat inside the Friends menu (replaces the floating window)
   ============================================================ */
#drawer .wc-chat {
  position: absolute; inset: 0; z-index: 30; width: auto; height: auto;
  border-radius: 0; border: none; box-shadow: none;
  background: rgba(14, 14, 16, 0.98);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
}
#drawer .wc-chat.hidden { display: none; }
.wc-chat-head { gap: 6px; }
.wc-msg-line { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.wc-msg.is-mine .wc-msg-line { flex-direction: row-reverse; }
.wc-msg-more { flex: none; width: 26px; height: 26px; border-radius: 8px; border: none; background: transparent; color: #71717a; cursor: pointer; opacity: 0; transition: opacity 0.15s ease, background 0.15s ease; }
.wc-msg:hover .wc-msg-more, .wc-msg-more:focus-visible { opacity: 1; }
.wc-msg-more:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
@media (hover: none) { .wc-msg-more { opacity: 0.7; } }
.wc-msg.is-unsent .wc-msg-bubble { background: transparent; border: 1px dashed rgba(255, 255, 255, 0.18); color: #71717a; font-style: italic; }
.wc-msg.is-mine.is-unsent .wc-msg-bubble { background: transparent; color: #71717a; border-color: rgba(255, 255, 255, 0.18); }
.wc-msg-fwd { font-size: 9px; font-weight: 700; color: #71717a; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.wc-chat-menu { position: absolute; z-index: 40; min-width: 150px; padding: 6px; border-radius: 12px; background: #18181b; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6); }
.wc-chat-menu.hidden { display: none; }
.wc-chat-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; border: none; background: transparent; color: #e4e4e7; font: inherit; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; }
.wc-chat-menu button:hover { background: rgba(255, 255, 255, 0.08); }
.wc-chat-menu button i { width: 14px; text-align: center; color: #a1a1aa; }
.wc-chat-menu button.is-danger, .wc-chat-menu button.is-danger i { color: #fda4af; }
.wc-chat-editing { display: flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 11px; color: #d4d4d8; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.wc-chat-editing.hidden { display: none; }
.wc-chat-editing button { margin-left: auto; background: none; border: none; color: #a1a1aa; cursor: pointer; }
.wc-chat-forward { position: absolute; inset: 0; z-index: 45; display: flex; flex-direction: column; background: rgba(14, 14, 16, 0.98); padding: 14px; gap: 10px; }
.wc-chat-forward.hidden { display: none; }
.wc-chat-forward-head { display: flex; align-items: center; justify-content: space-between; color: #fff; }
.wc-chat-forward-head button { background: none; border: none; color: #a1a1aa; cursor: pointer; font-size: 14px; }
.wc-chat-forward-quote { margin: 0; padding: 8px 10px; border-left: 2px solid rgba(255, 255, 255, 0.3); color: #a1a1aa; font-size: 12px; white-space: pre-wrap; max-height: 80px; overflow: hidden; }
.wc-chat-forward-list { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.wc-chat-forward-list button { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.03); color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-align: left; }
.wc-chat-forward-list button:hover { border-color: rgba(255, 255, 255, 0.2); }
.wc-chat-forward-list small { margin-left: auto; color: #71717a; font-weight: 500; }

/* Private notes about a friend (profile card) */
.wc-fnotes { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255, 255, 255, 0.15); }
.wc-fnotes-head { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #e4e4e7; }
.wc-fnotes-head i { color: #a1a1aa; font-size: 10px; }
.wc-fnotes-head span { margin-left: auto; font-size: 9px; color: #71717a; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; }
.wc-fnotes input, .wc-fnotes select { border-radius: 10px; padding: 7px 10px; font-size: 12px; color: #fff; background: rgba(10, 12, 16, 0.7); }
.wc-fnotes-socials { display: flex; flex-wrap: wrap; gap: 6px; }
.wc-fnotes-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 8px; border-radius: 9999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 11px; color: #e4e4e7; }
.wc-fnotes-chip b { font-weight: 700; color: #a1a1aa; }
.wc-fnotes-chip button { border: none; background: none; color: #71717a; cursor: pointer; padding: 0 2px; }
.wc-fnotes-add { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) auto; gap: 6px; }
#drawer .wc-chat { background: #0e0e10; }
#drawer .wc-chat-head { justify-content: flex-start; }
#drawer .wc-chat-peer { flex: 1; min-width: 0; }

/* ============================================================
   Search field: centered text on every device
   - no native search styling (Safari/iPad shifts it otherwise)
   - touch devices: 16px text (stops iOS zoom-on-focus) shown at 12px,
     so typed text and placeholder share one size and one baseline
   ============================================================ */
.wc-search input,
.wc-search input::-webkit-search-decoration,
.wc-search input::-webkit-search-results-button {
  -webkit-appearance: none;
  appearance: none;
}
.wc-search input { margin: 0; align-self: center; line-height: normal; }

@media (max-width: 767px), (pointer: coarse) and (max-width: 1366px) {
  .wc-search { overflow: hidden; }
  .wc-search input {
    font-size: 16px !important;
    height: 22px;
    line-height: 22px;
    width: 133.334% !important;
    max-width: none;
    transform: scale(0.75);
    transform-origin: left center;
    margin-right: -33.334%;
  }
  .wc-search input::placeholder { font-size: 16px; line-height: 22px; }
}

/* ---------- custom badge pictures (round 9) ---------- */
.wc-badge.has-image img { width: 20px; height: 20px; max-width: none; object-fit: contain; display: block; pointer-events: none; }
.wc-badge-pop .wc-badge-pop-how { margin-top: 6px; color: #d4d4d8; }
.wc-badge-pop .wc-badge-pop-how b { color: #fff; font-weight: 700; }
.wc-adm-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.wc-adm-badge-ico {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--badge, #e4e4e7); font-size: 18px;
}
.wc-adm-badge-ico img { width: 72%; height: 72%; max-width: none; object-fit: contain; }
.wc-align-pick { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.wc-align-pick button { width: 24px; height: 20px; border-radius: 6px; font-size: 10px; color: #71717a; display: inline-flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s; }
.wc-align-pick button:hover { color: #e4e4e7; }
.wc-align-pick button.is-active { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* friend notes: platform icons instead of a dropdown */
.wc-fnotes-plats { display: flex; flex-wrap: wrap; gap: 4px; }
.wc-fnotes-plats button {
  width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: #a1a1aa;
  transition: background 0.15s, border-color 0.15s, transform 0.1s; cursor: pointer;
}
.wc-fnotes-plats button:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.wc-fnotes-plats button:active { transform: scale(0.94); }
.wc-fnotes-plats button.is-active { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.45); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); }
.wc-fnotes-plats button svg, .wc-fnotes-plats button img { width: 16px; height: 16px; }
.wc-fnotes .wc-fnotes-add { grid-template-columns: minmax(0, 1fr) auto; }

/* ---------- round 10: pin glyph centering, counters, mono icons ---------- */
.wc-pin-box { display: flex; align-items: center; justify-content: center; }
.wc-pin-glyph { display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.wc-pin-glyph > img, .wc-pin-glyph > svg { width: 100%; height: 100%; min-width: 0; max-width: 100%; max-height: 100%; flex: none; object-fit: contain; display: block; }
.wc-pin-count {
  position: absolute; top: -5px; right: -6px; padding: 0 4px; border-radius: 9999px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fafafa; color: #09090b; font-size: 9px; font-weight: 900; line-height: 1;
  border: 1.5px solid #09090b; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); pointer-events: none;
}
.wc-pop-stack { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.wc-mono-icon { color: #fff; }

/* leaderboard: you, when you are in the top 5 */
.wc-lb-me { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 18px rgba(255, 255, 255, 0.12); }
.wc-lb-me:hover { background: rgba(255, 255, 255, 0.16); }
.wc-tag-you { background: #fafafa; color: #09090b; border-color: #fafafa; }

/* ---------- link in bio page (/@name) ---------- */


.wc-bio-missing-box { position: fixed; inset: 0; margin: auto; width: min(92vw, 380px); height: fit-content; padding: 28px 22px; text-align: center; z-index: 1300; border-radius: 1.2rem; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wc-bio-missing-box i { font-size: 26px; color: #a1a1aa; }
.wc-bio-missing-box h1 { font-size: 16px; font-weight: 900; color: #fff; }
.wc-bio-missing-box p { font-size: 12px; color: #a1a1aa; }

/* Collapsed search on narrow phones: the field takes no room, so the icon stays centered in its box */
@media (max-width: 479px) {
  .wc-search:not(:focus-within):not(.is-open) input { width: 0 !important; margin: 0; }
  .wc-search:not(:focus-within):not(.is-open) .wc-search-icon { margin: 0; }
}

/* ---------- round 11: profile action bar, bio editor, bio page options ---------- */
.wc-card-actions { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; }
.wc-card-actions-group { display: flex; align-items: center; gap: 8px; width: 100%; flex-wrap: nowrap; }
.wc-card-actions-group > .wc-card-btn { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 8px; overflow: hidden; }
.wc-card-actions-group > .wc-card-btn span { overflow: hidden; text-overflow: ellipsis; }
.wc-card-actions-group > .wc-card-btn-square { flex: 0 0 42px; }
.wc-card-actions-group:not(:has(> :not(.hidden))) { display: none; }
.wc-card-actions-end { justify-content: stretch; margin-left: 0; }
@media (max-width: 400px) { .wc-card-actions-group > .wc-card-btn { font-size: 11px; gap: 5px; padding: 0 6px; } }

.wc-bio-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 12px; color: #e4e4e7; cursor: pointer; min-width: 0; }
.wc-bio-opt:hover { background: rgba(255, 255, 255, 0.07); }
.wc-bio-opt input { width: 16px; height: 16px; accent-color: #fff; flex: none; }
.wc-bio-opt-ico { width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.06); color: #a1a1aa; font-size: 11px; flex: none; }





/* ---------- link in bio page: final layout ---------- */


/* never on this page: pins, location, role tag, card actions, moderation and notes */








/* full screen: the card is the page */







/* ---------- round 13: location warning (replaces the old blue tick on verified locations) ---------- */
.wc-loc-warn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(251, 191, 36, 0.14); border: 1.5px solid rgba(251, 191, 36, 0.7); color: #fde68a; animation: wc-warn-pulse 2.2s ease-in-out infinite; }
.wc-loc-warn > i { font-size: 22px; color: #fbbf24; flex: none; }
.wc-loc-warn b { display: block; font-size: 13px; font-weight: 900; color: #fef3c7; line-height: 1.25; }
.wc-loc-warn p { margin: 2px 0 0; font-size: 11px; line-height: 1.35; color: #fde68a; }
.wc-loc-warn .wc-card-btn { flex: none; }
@keyframes wc-warn-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.0); } 50% { box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18); } }
@media (prefers-reduced-motion: reduce) { .wc-loc-warn { animation: none; } }
.wc-popcard-warn { margin: 3px 0 0; font-size: 10px; font-weight: 800; color: #fbbf24; display: flex; align-items: center; gap: 5px; }

/* badge arranger */
.wc-barr { display: flex; flex-direction: column; gap: 6px; }
.wc-barr-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); }
.wc-barr-row.is-off { opacity: 0.55; }
.wc-barr-ico { flex: none; display: inline-flex; }
.wc-barr-ico .wc-badge { cursor: default; pointer-events: none; }
.wc-barr-name { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; color: #f4f4f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-barr-row button { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: #d4d4d8; font-size: 10px; cursor: pointer; flex: none; }
.wc-barr-row button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); color: #fff; }
.wc-barr-row button:disabled { opacity: 0.3; cursor: default; }

/* ---------- link in bio page (Linktree style) ---------- */
html.wc-bio, html.wc-bio body { overflow: hidden; background: #0b0d11; }
html.wc-bio body > *:not(#wcb):not(script):not(style):not(.wc-toast-host):not(.wc-badge-pop):not(.wc-verified-pop):not(.wc-push-ask):not(.wc-pride-pop):not(.wc-promo):not(.wc-push-modal):not(.wc-story-view) { display: none !important; }
.wcb { position: fixed; inset: 0; z-index: 10; color: var(--tx, #f4f4f5); font-family: inherit; background: radial-gradient(ellipse at 50% -10%, #20263a 0%, #0b0d11 62%); }
.wcb.wcb-solid { background: var(--pg); }
.wcb-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.wcb-page { position: relative; margin: 0 auto; background: var(--card); border: 1px solid var(--bd); overflow: hidden; }
.wcb-card .wcb-page { width: min(100% - 28px, 480px); margin: 20px auto 130px; border-radius: 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.wcb-full .wcb-page { width: 100%; min-height: 100dvh; border: none; border-radius: 0; padding-bottom: 130px; background: transparent; } /* full screen: the page background shows, not the grey card */
.wcb-full .wcb-foot { background: linear-gradient(to top, color-mix(in srgb, var(--pg, #0b0d11) 94%, transparent) 50%, transparent); }
.wcb-banner { height: clamp(96px, 26vw, 150px); background: #18181b center / cover no-repeat; border-bottom: 3px solid var(--ac); }
.wcb-full .wcb-banner { height: clamp(130px, 24vw, 280px); }
.wcb-banner-none { background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 35%, #0b0d11), #0b0d11); }
.wcb-body { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 18px 26px; max-width: 560px; margin: 0 auto; }
.wcb-avatar { position: relative; width: 92px; height: 92px; margin-top: -46px; flex: none; }
.wcb-avatar > img:first-child { width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: var(--r); border: 3px solid var(--card); background: #09090b; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45); display: block; }
.wcb-frame { position: absolute; left: 50%; top: 50%; width: calc(100% * var(--s, 1.28)); height: calc(100% * var(--s, 1.28)); max-width: none !important; transform: translate(-50%, -50%); pointer-events: none; }
.wcb-name { margin: 12px 0 0; font-size: 24px; font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; color: var(--tx); }
.wcb-handle { margin: 3px 0 0; font-size: 12px; font-weight: 700; color: var(--mu); font-family: ui-monospace, monospace; }
.wcb-status { margin: 10px 0 0; max-width: 100%; padding: 6px 12px; border-radius: 9999px; background: var(--pn); border: 1px solid var(--bd); font-size: 12px; font-weight: 600; color: var(--tx); }
.wcb-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 10px; }
.wcb-tagline { margin: 14px 0 0; max-width: 440px; font-size: 14px; line-height: 1.55; color: var(--tx); opacity: 0.92; }
.wcb-tagline a { text-decoration: underline; }
.wcb-links { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 22px; }
.wcb-link { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px; border-radius: var(--lr, 14px); background: var(--pn); border: 1px solid var(--bd); color: var(--tx); text-decoration: none; transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease; }
.wcb-link:hover { background: color-mix(in srgb, var(--pn) 70%, #fff 12%); border-color: var(--ac); }
.wcb-link:active { transform: scale(0.985); }
.wcb-link-ico { width: 30px; height: 30px; flex: none; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.3); }
.wcb-link-ico img, .wcb-link-ico svg { width: 20px; height: 20px; max-width: none; }
.wcb-link-text { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcb-link-go { font-size: 10px; opacity: 0.5; flex: none; }
.wcb-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(8, 9, 12, 0.94) 50%, rgba(8, 9, 12, 0)); pointer-events: none; }
.wcb-foot > * { pointer-events: auto; }
.wcb-ad { text-decoration: none; transition: transform 0.12s ease, background 0.15s ease; }
.wcb-ad:active { transform: scale(0.97); }
.wcb-ad-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 9999px; background: rgba(250, 250, 250, 0.95); color: #09090b; font-size: 12px; font-weight: 800; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); }
.wcb-ad-pill:hover { background: #fff; }
.wcb-ad-text { font-size: 12px; font-weight: 700; color: #e4e4e7; }
.wcb-ad-text:hover { color: #fff; text-decoration: underline; }
.wcb-ad-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 9px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); color: #e4e4e7; font-size: 11px; font-weight: 700; }
.wcb-ad-badge:hover { background: rgba(255, 255, 255, 0.18); }
.wcb-legal { margin: 0; max-width: 520px; text-align: center; font-size: 9px; line-height: 1.4; color: #71717a; }
.wcb-legal a { color: #a1a1aa; text-decoration: underline; }

/* ---------- link in bio editor ---------- */
.wc-bio-h { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #a1a1aa; margin-bottom: 8px; }
.wc-bio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wc-bio-chips > button { flex: 1 1 140px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1.5px solid rgba(255, 255, 255, 0.1); color: #e4e4e7; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.wc-bio-chips > button:hover { background: rgba(255, 255, 255, 0.08); }
.wc-bio-chips > button small { font-size: 10px; font-weight: 500; color: #71717a; }
.wc-bio-chips > button.is-on { border-color: #fff; background: rgba(255, 255, 255, 0.13); }
.wc-bio-chips > button.is-locked { opacity: 0.55; }
.wc-bio-ads > button { flex: 1 1 44%; gap: 8px; }
.wc-ad-demo { display: inline-block; font-size: 10px; font-weight: 800; color: #d4d4d8; }
.wc-ad-demo-pill { padding: 4px 10px; border-radius: 9999px; background: #fafafa; color: #09090b; }
.wc-ad-demo-text { text-decoration: underline; }
.wc-ad-demo-badge { padding: 3px 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); font-weight: 700; }
.wc-lock-tag { display: inline-block; font-size: 9px; font-weight: 900; padding: 1px 6px; border-radius: 9999px; background: rgba(251, 191, 36, 0.18); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.4); margin-left: 4px; letter-spacing: 0; text-transform: none; }
.wc-lock-tag.is-open { display: none; }
#bioEditorThemeBox.is-locked { opacity: 0.7; }
.wc-bio-linkrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); }
.wc-bio-linkrow input { flex: 1 1 130px; min-width: 0; }
.wc-bio-linkrow button { width: 32px; height: 32px; flex: none; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: #d4d4d8; font-size: 10px; cursor: pointer; }
.wc-bio-linkrow button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); color: #fff; }
.wc-bio-linkrow button:disabled { opacity: 0.3; cursor: default; }

/* supporter levels */
.wc-tier { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 11px; color: #d4d4d8; }
.wc-tier b { font-size: 12px; color: #fff; }
.wc-tier span { grid-column: 1 / -1; font-size: 10.5px; color: #a1a1aa; line-height: 1.35; }
.wc-tier em { display: none; font-style: normal; font-size: 9px; font-weight: 900; text-transform: uppercase; color: #fbbf24; align-self: center; grid-row: 1; grid-column: 2; }
.wc-tier.is-on { border-color: rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.08); }
.wc-tier.is-current em { display: block; }

/* ---------- pins menu ---------- */
.wc-pf { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 4px 10px; border-radius: 9999px; font-size: 9px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(255, 255, 255, 0.05); color: #a1a1aa; border: 1px solid transparent; cursor: pointer; transition: color 0.15s, background 0.15s; }
.wc-pf:hover { color: #fff; }
.wc-pf.is-on { background: #fff; color: #000; }
.wc-pin-row { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); }
.wc-pin-row:hover { background: rgba(255, 255, 255, 0.06); }
.wc-pin-row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: none; color: inherit; cursor: pointer; padding: 2px; }
.wc-pin-row-ico { width: 30px; height: 30px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.wc-pin-row-btn { width: 30px; height: 30px; flex: none; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #d4d4d8; font-size: 11px; cursor: pointer; }
.wc-pin-row-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.wc-pin-row-btn.is-danger { color: #fda4af; }

/* ---------- round 14: bio page layout, preview, switches, unlock overlays ---------- */
.wcb { container-type: inline-size; background: radial-gradient(ellipse at 50% -10%, color-mix(in srgb, var(--ac, #7c3aed) 30%, var(--pgbase, #0b0d11)) 0%, var(--pgbase, #0b0d11) 66%); }
.wcb.wcb-solid { background: var(--pg); }
.wcb-banner { height: clamp(96px, 26cqw, 150px); }
.wcb-full .wcb-banner { height: clamp(130px, 24cqw, 280px); }
.wcb-card .wcb-scroll { display: flex; flex-direction: column; padding: 20px 0 112px; }
.wcb-card .wcb-page { margin: auto; }
.wcb-card .wcb-page { width: min(100% - 28px, 480px); }
.wcb-preview { position: absolute; inset: 0; z-index: 1; }
.wcb-preview.wcb-full .wcb-page { min-height: 100%; }
.wcb-phone { position: relative; width: 100%; max-width: 320px; height: 560px; border-radius: 30px; overflow: hidden; border: 6px solid #27272a; background: #000; flex: none; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
#bioEditorForm.is-previewing #bioEditorEdit { display: none; }
#bioEditorForm.is-previewing #bioEditorPreviewCol { display: flex; width: 100%; border-left: none; }
@media (min-width: 1024px) { #bioEditorForm.is-previewing #bioEditorEdit { display: block; } #bioEditorForm.is-previewing #bioEditorPreviewCol { width: 360px; border-left: 1px solid rgba(255, 255, 255, 0.1); } }

.wc-switch { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 9999px; background: rgba(255, 255, 255, 0.18); position: relative; cursor: pointer; flex: none; transition: background 0.15s; border: none; }
.wc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.wc-switch:checked { background: #34d399; }
.wc-switch:checked::after { transform: translateX(16px); }
.wc-switch:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wc-bio-opt input.wc-switch { width: 38px; height: 22px; }
.wc-bio-opt { order: 0; }
.wc-bio-opt:has(.wc-switch) { justify-content: flex-start; }
.wc-switch-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: #d4d4d8; cursor: pointer; }

.wc-locked { position: relative; }
.wc-locked > *:not(.wc-lock-ov) { opacity: 0.4; pointer-events: none; filter: saturate(0.6); }
.wc-lock-ov { position: absolute; inset: -4px; z-index: 6; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; cursor: pointer; color: #fde68a; font-size: 12px; font-weight: 900; background: linear-gradient(135deg, rgba(251, 191, 36, 0.24), rgba(245, 158, 11, 0.12)); border: 1.5px solid rgba(251, 191, 36, 0.65); box-shadow: 0 0 22px rgba(251, 191, 36, 0.16) inset; }
.wc-lock-ov:hover { background: linear-gradient(135deg, rgba(251, 191, 36, 0.34), rgba(245, 158, 11, 0.2)); color: #fff; }
.wc-badge-pop .wc-badge-pop-ad { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 10px; color: #a1a1aa; }
.wc-badge-pop .wc-badge-pop-ad a { color: #fff; text-decoration: underline; }
#bioEditorPreviewCol { display: none; }
@media (min-width: 1024px) { #bioEditorPreviewCol { display: flex; } }
#bioEditorForm.is-previewing #bioEditorPreviewCol { display: flex; }
.wc-lock-ov { background: linear-gradient(135deg, rgba(58, 44, 10, 0.9), rgba(40, 30, 8, 0.9)); }
.wc-lock-ov:hover { background: linear-gradient(135deg, rgba(78, 58, 12, 0.92), rgba(54, 40, 10, 0.92)); }

/* preview: draw the page like a real 390 x 700 phone, then shrink it to fit */
.wcb-phone { width: 320px; height: 574px; max-width: 100%; }
.wcb-phone-inner { position: absolute; left: 0; top: 0; width: 390px; height: 700px; transform: scale(0.8205); transform-origin: 0 0; }
.wcb-phone-inner .wcb-preview { position: absolute; inset: 0; }
@media (max-width: 380px) { .wcb-phone { width: 280px; height: 502px; } .wcb-phone-inner { transform: scale(0.7179); } }

.wcb-phone { border: none; box-shadow: 0 0 0 6px #27272a, 0 12px 40px rgba(0, 0, 0, 0.5); margin: 6px 0; }

.wc-loc-busy { margin: 6px 0 0; font-size: 11px; font-weight: 800; color: #fef3c7; display: flex; align-items: center; gap: 7px; }

/* ---------- discover + friends on the profile ---------- */
#profileDiscoverBtn.is-on { color: #34d399; border-color: rgba(52, 211, 153, 0.55); box-shadow: 0 0 14px rgba(52, 211, 153, 0.25); }
.wc-friends-panel { padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); }
.wc-friends-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 200px; overflow-y: auto; overscroll-behavior: contain; }
.wc-friend-chip { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); cursor: pointer; min-width: 0; color: inherit; }
.wc-friend-chip:hover { background: rgba(255, 255, 255, 0.09); }

/* ---------- pride flags ---------- */
.wc-flag { display: inline-flex; width: 24px; height: 16px; border-radius: 3px; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3); vertical-align: middle; margin-left: 6px; }
.wc-flag svg, .wc-flag img { width: 100%; height: 100%; display: block; object-fit: cover; max-width: none; }
.wc-flag-slot { display: inline-flex; align-items: center; flex: none; }
.wc-flag-slot .wc-flag { margin-left: 0; width: 21px; height: 14px; }
.wcb-name .wc-flag { width: 22px; height: 15px; margin-left: 8px; }
.wc-popcard-name + .wc-flag { margin-left: 6px; width: 17px; height: 11px; }
.wc-flag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.wc-flag-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 4px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1.5px solid rgba(255, 255, 255, 0.1); color: #d4d4d8; cursor: pointer; font-size: 9px; font-weight: 700; text-align: center; }
.wc-flag-opt .wc-flag { margin-left: 0; width: 34px; height: 22px; }
.wc-flag-opt:hover { background: rgba(255, 255, 255, 0.09); }
.wc-flag-opt.is-on { border-color: #fff; background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------- chat settings: nickname + background ---------- */
.wc-chat-settings { padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); }
.wc-chat-bgs { display: flex; flex-wrap: wrap; gap: 8px; }
.wc-chat-bg { width: 30px; height: 30px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.15); display: inline-flex; align-items: center; justify-content: center; color: #d4d4d8; font-size: 11px; cursor: pointer; background: rgba(255, 255, 255, 0.05); }
.wc-chat-bg.is-on { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }

/* ---------- chat stickers and GIFs ---------- */
.wc-msg-bubble.is-media { background: none !important; border: none !important; box-shadow: none !important; padding: 0 !important; }
.wc-msg-sticker { display: block; max-width: 160px; max-height: 160px; width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.wc-msg-gif { max-width: 220px; max-height: 220px; }
.wc-stickers { border-top: 1px solid rgba(255, 255, 255, 0.08); background: rgba(10, 12, 16, 0.96); display: flex; flex-direction: column; max-height: 300px; }
.wc-stk-tabs { display: flex; gap: 4px; padding: 8px 10px 0; overflow-x: auto; }
.wc-stk-tabs button { flex: none; padding: 5px 10px; border-radius: 9999px; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(255, 255, 255, 0.05); color: #a1a1aa; border: 1px solid transparent; cursor: pointer; }
.wc-stk-tabs button.is-on { background: #fff; color: #000; }
.wc-stk-tools { display: flex; align-items: center; gap: 8px; padding: 8px 10px; flex-wrap: wrap; }
.wc-stk-tools .glass-input { flex: 1; min-width: 0; border-radius: 10px; padding: 7px 10px; font-size: 12px; color: #fff; }
.wc-stk-count { font-size: 10px; color: #71717a; flex-basis: 100%; }
.wc-stk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; padding: 0 10px 10px; overflow-y: auto; overscroll-behavior: contain; min-height: 110px; }
.wc-stk { position: relative; aspect-ratio: 1; border-radius: 12px; background: rgba(255, 255, 255, 0.04); overflow: hidden; }
.wc-stk-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; padding: 4px; }
.wc-stk-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.wc-stk-fav, .wc-stk-pub, .wc-stk-del { position: absolute; width: 22px; height: 22px; border-radius: 8px; background: rgba(0, 0, 0, 0.6); border: none; color: #d4d4d8; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.wc-stk-fav { top: 3px; right: 3px; }
.wc-stk-fav.is-on { color: #fbbf24; }
.wc-stk-pub { bottom: 3px; left: 3px; }
.wc-stk-pub.is-on { color: #34d399; }
.wc-stk-del { bottom: 3px; right: 3px; color: #fda4af; }
.wc-stk-empty { grid-column: 1 / -1; text-align: center; font-size: 11px; color: #71717a; padding: 22px 8px; }

.wc-adm-badge.is-deleted { opacity: 0.55; border-style: dashed; }

/* ---------- public / private account choice ---------- */
.wc-acct-opt { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1.5px solid rgba(255, 255, 255, 0.12); cursor: pointer; color: #e4e4e7; transition: border-color 0.15s, background 0.15s; }
.wc-acct-opt:hover { background: rgba(255, 255, 255, 0.07); }
.wc-acct-opt:has(input:checked) { border-color: #fff; background: rgba(255, 255, 255, 0.12); }
.wc-acct-opt input { margin-top: 3px; accent-color: #fff; flex: none; }
.wc-acct-opt b { display: block; font-size: 12px; font-weight: 800; color: #fff; }
.wc-acct-opt small { display: block; margin-top: 2px; font-size: 10px; line-height: 1.35; color: #a1a1aa; }

/* "a new version is ready" bar */
.wc-update-bar { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 3000; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: #fafafa; color: #09090b; font-size: 12px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); max-width: calc(100vw - 24px); }
.wc-update-bar button { padding: 6px 12px; border-radius: 9px; background: #09090b; color: #fff; font-weight: 800; font-size: 11px; }

/* ---------- verified pop-up, push prompt ---------- */
.wc-verified { cursor: pointer; }
.wc-verified-pop { position: fixed; z-index: 3200; width: 250px; padding: 12px 14px; border-radius: 14px; background: #121317; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65); color: #e4e4e7; font-size: 12px; line-height: 1.45; }
.wc-verified-pop p { margin: 6px 0 0; }
.wc-verified-pop-head { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #fff; }
.wc-verified-pop-head i { color: #38bdf8; font-size: 16px; }
.wc-verified-pop-sub { color: #a1a1aa; font-size: 11px; }
.wc-verified-pop a { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 11px; border-radius: 10px; background: #fafafa; color: #09090b; font-weight: 800; font-size: 11px; text-decoration: none; }
.wc-push-ask { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 3100; width: min(94vw, 380px); padding: 14px; border-radius: 16px; background: #121317; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65); color: #e4e4e7; font-size: 12px; }
.wc-push-ask b { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; }
.wc-push-ask p { margin: 6px 0 10px; color: #a1a1aa; line-height: 1.4; }
.wc-push-ask .row { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- pride flag: ring around the profile picture, explain pop-up ---------- */
.wc-flag[data-pride], .wc-pride-ring { cursor: pointer; }
.wc-pride-ring { position: absolute; inset: -6px; border-radius: calc(var(--r, 9999px) + 6px); padding: 4px; background: var(--pf); z-index: 4; pointer-events: auto;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.wc-pride-ring.hidden { display: none; }
.wc-pride-pop { position: fixed; z-index: 3300; width: min(92vw, 300px); padding: 14px; border-radius: 16px; background: #121317; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 14px 38px rgba(0, 0, 0, 0.7); color: #e4e4e7; font-size: 12px; line-height: 1.45; }
.wc-pride-pop .wc-pride-flagbig { width: 100%; height: 56px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.wc-pride-pop .wc-pride-flagbig svg, .wc-pride-pop .wc-pride-flagbig img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.wc-pride-pop b { display: block; margin: 10px 0 4px; color: #fff; font-size: 14px; }
.wc-pride-pop p { margin: 0 0 10px; color: #c4c4cc; }
.wc-pride-pop .row { display: flex; gap: 8px; flex-wrap: wrap; }
.wc-pride-pop a, .wc-pride-pop button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; font-weight: 800; font-size: 11px; text-decoration: none; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.08); color: #fff; }
.wc-pride-pop button.primary { background: #fafafa; color: #09090b; border-color: transparent; }
#profFlagMode .is-active { background: #fff; color: #000; }

/* ---------- what's new pop-up ---------- */
.wc-whatsnew { position: fixed; inset: 0; z-index: 3400; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(6px); }
.wc-whatsnew-card { width: min(100%, 440px); max-height: min(86vh, 640px); display: flex; flex-direction: column; border-radius: 20px; background: #121317; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7); color: #e4e4e7; overflow: hidden; }
.wc-whatsnew-head { padding: 18px 20px 10px; }
.wc-whatsnew-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #d4d4d8; }
.wc-whatsnew-head h2 { margin: 8px 0 2px; font-size: 24px; font-weight: 900; color: #fff; }
.wc-whatsnew-head p { margin: 0; font-size: 12px; color: #a1a1aa; }
.wc-whatsnew-body { padding: 4px 20px 8px; overflow-y: auto; }
.wc-whatsnew-body section + section { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.wc-whatsnew-body h3 { display: flex; align-items: baseline; gap: 8px; margin: 8px 0; font-size: 14px; font-weight: 800; color: #fff; }
.wc-whatsnew-body h3 small { font-size: 10px; font-weight: 600; color: #71717a; }
.wc-whatsnew-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wc-whatsnew-body li { display: flex; gap: 11px; align-items: flex-start; }
.wc-whatsnew-body .ico { flex: none; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, 0.09); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; }
.wc-whatsnew-body b { display: block; font-size: 12.5px; color: #fff; }
.wc-whatsnew-body em { display: block; font-style: normal; font-size: 11.5px; line-height: 1.4; color: #a1a1aa; }
.wc-whatsnew-foot { padding: 12px 20px 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.wc-whatsnew-foot button { width: 100%; padding: 10px; border-radius: 12px; border: 0; background: #fafafa; color: #09090b; font-weight: 800; font-size: 13px; cursor: pointer; }

/* ---------- promo code pop-up ---------- */
.wc-promo { position: fixed; inset: 0; z-index: 3400; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(6px); }
.wc-promo-card { width: min(100%, 380px); padding: 18px; border-radius: 18px; background: #121317; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7); color: #e4e4e7; font-size: 12px; }
.wc-promo-card h2 { margin: 0 0 4px; font-size: 17px; font-weight: 900; color: #fff; display: flex; align-items: center; gap: 8px; }
.wc-promo-card p { margin: 0 0 12px; color: #a1a1aa; line-height: 1.45; }
.wc-promo-card input { width: 100%; padding: 11px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; outline: none; }
.wc-promo-card .row { display: flex; gap: 8px; margin-top: 12px; justify-content: flex-end; }
.wc-promo-msg { min-height: 18px; margin-top: 8px; font-size: 12px; font-weight: 700; }
.wc-promo-msg.is-bad { color: #fca5a5; }
.wc-promo-msg.is-ok { color: #86efac; }

/* ---------- extra sign-in methods ---------- */
.wc-signin-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background 0.15s; }
.wc-signin-btn:hover { background: rgba(255, 255, 255, 0.14); }
.wc-signin-btn i { font-size: 15px; }
.wc-or { display: flex; align-items: center; gap: 10px; color: #71717a; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; }
.wc-or::before, .wc-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.12); }

/* ---------- notifications opt-in menu (after sign-up) ---------- */
.wc-push-ask.wc-push-modal { position: fixed; inset: 0; left: 0; bottom: 0; transform: none; width: auto; z-index: 3500; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(8px); border: 0; border-radius: 0; box-shadow: none; }
.wc-push-card { max-height: calc(100dvh - 32px); overflow-y: auto; width: min(100%, 380px); padding: 22px 20px 18px; border-radius: 22px; background: #121317; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75); color: #e4e4e7; text-align: center; }
.wc-push-icon { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; }
.wc-push-card h2 { margin: 0 0 8px; font-size: 19px; font-weight: 900; color: #fff; }
.wc-push-card p { margin: 0 0 8px; font-size: 12.5px; color: #c4c4cc; }
.wc-push-card ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; text-align: left; }
.wc-push-card li { display: flex; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); font-size: 12px; color: #e4e4e7; }
.wc-push-card li i { width: 16px; text-align: center; color: #fff; }
.wc-push-card .wc-push-small { font-size: 11px; color: #8b8b95; margin-bottom: 14px; }
.wc-push-yes { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border: 0; border-radius: 14px; background: #fafafa; color: #09090b; font-size: 13px; font-weight: 800; cursor: pointer; }
.wc-push-no { display: block; width: 100%; margin-top: 8px; padding: 11px; border-radius: 14px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.16); color: #a1a1aa; font-size: 12px; font-weight: 700; cursor: pointer; }
.wc-push-card button:disabled { opacity: 0.6; cursor: default; }

/* ---------- sign-in buttons: every service the same size, each in its own colour ---------- */
#wcSigninList { display: grid; gap: 8px; width: 100%; max-width: 300px; margin: 0 auto; }
#wcSigninList .wc-signin-slot { min-height: 40px; display: flex; justify-content: center; }
.wc-signin-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border-radius: 4px; border: 1px solid transparent; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: filter 0.15s; }
.wc-signin-btn:hover { filter: brightness(1.12); }
.wc-signin-btn i { font-size: 18px; width: 20px; text-align: center; }
.wc-signin-btn[data-brand="github"], .wc-signin-btn.is-github { background: #24292f; border-color: #3d444d; }
.wc-signin-btn[data-brand="discord"], .wc-signin-btn.is-discord { background: #5865f2; }
.wc-signin-btn[data-brand="twitch"], .wc-signin-btn.is-twitch { background: #9146ff; }
.wc-signin-btn[data-brand="steam"], .wc-signin-btn.is-steam { background: linear-gradient(90deg, #171a21, #1b2838); border-color: #2a475e; }
.wc-signin-btn[data-brand="google"], .wc-signin-btn.is-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.wc-signin-btn.is-google .g-mark { width: 18px; height: 18px; }
/* Login methods card in Settings */
.wc-lm-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.wc-lm-ico { flex: none; width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; }
.wc-lm-ico[data-brand="github"] { background: #24292f; }
.wc-lm-ico[data-brand="discord"] { background: #5865f2; }
.wc-lm-ico[data-brand="twitch"] { background: #9146ff; }
.wc-lm-ico[data-brand="steam"] { background: #1b2838; }
.wc-lm-ico[data-brand="google"] { background: #fff; }
.wc-lm-name { font-size: 12px; font-weight: 800; color: #fff; }
.wc-lm-sub { font-size: 10.5px; color: #a1a1aa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-lm-row .wc-card-btn { margin-left: auto; flex: none; }
.wc-lm-google-slot { margin-left: auto; flex: none; }
/* Settings: bigger on computers */
@media (min-width: 1024px) {
  #settingsModal h4 { font-size: 15px; }
  #settingsModal p, #settingsModal label span { font-size: 13px; line-height: 1.5; }
  #settingsModal button, #settingsModal a { font-size: 13px; }
  #settingsModal .glass-box.rounded-xl { padding: 1.15rem; }
  #settingsModal .wc-lm-name { font-size: 14px; }
  #settingsModal .wc-lm-sub { font-size: 12px; }
}

/* ---------- red dot on the admin button ---------- */
#adminConsoleBtn { position: relative; }
.wc-dot { position: absolute; top: 3px; right: 3px; width: 11px; height: 11px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px #0b0d11, 0 0 8px rgba(239, 68, 68, 0.7); pointer-events: none; }
.wc-dot.hidden { display: none; }

/* ---------- stories ---------- */
.wc-st-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.wc-st-row::-webkit-scrollbar { display: none; }
.wc-st-bubble { flex: none; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; color: #d4d4d8; padding: 0; }
.wc-st-bubble:disabled { opacity: 0.5; cursor: default; }
.wc-st-ring { width: 54px; height: 54px; border-radius: 50%; padding: 2.5px; display: flex; background: rgba(255, 255, 255, 0.18); }
.wc-st-bubble.is-new .wc-st-ring { background: conic-gradient(from 200deg, #f97316, #ec4899, #8b5cf6, #38bdf8, #f97316); }
.wc-st-bubble.wc-st-add .wc-st-ring { background: rgba(255, 255, 255, 0.14); border: 1px dashed rgba(255, 255, 255, 0.45); padding: 2px; }
.wc-st-av { width: 100%; height: 100%; border-radius: 50%; background: #1b1d23; border: 2px solid #0b0d11; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; color: #fff; font-weight: 800; font-size: 16px; }
.wc-st-av img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.wc-st-name { max-width: 62px; font-size: 10px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-story-compose, .wc-story-view { position: fixed; inset: 0; z-index: 3600; display: flex; align-items: center; justify-content: center; }
.wc-story-compose { padding: 16px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); }
.wc-story-card { width: min(100%, 400px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 18px; border-radius: 18px; background: #121317; border: 1px solid rgba(255, 255, 255, 0.16); color: #e4e4e7; font-size: 12px; }
.wc-story-card h2 { margin: 0 0 6px; font-size: 17px; font-weight: 900; color: #fff; display: flex; gap: 8px; align-items: center; }
.wc-story-card p { margin: 0 0 12px; color: #a1a1aa; line-height: 1.45; }
.wc-story-pick { display: block; cursor: pointer; }
.wc-story-pick input { display: none; }
.wc-story-pick span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, 0.35); color: #fff; font-weight: 700; background: rgba(255, 255, 255, 0.05); }
.wc-story-preview { margin-top: 10px; border-radius: 12px; overflow: hidden; background: #000; max-height: 320px; display: flex; justify-content: center; }
.wc-story-preview img, .wc-story-preview video { max-height: 320px; max-width: 100%; display: block; }
.wc-story-preview.hidden { display: none; }
.wc-story-caption { width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; font-size: 13px; outline: none; }
.wc-story-bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); margin-top: 10px; overflow: hidden; }
.wc-story-bar span { display: block; height: 100%; width: 0; background: #fff; transition: width 0.2s; }
.wc-story-bar.hidden { display: none; }
.wc-story-msg { margin: 8px 0 0; min-height: 16px; font-weight: 700; color: #a1a1aa; }
.wc-story-msg.is-bad { color: #fca5a5; }
.wc-story-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.wc-story-view { background: #000; }
.wc-story-frame { position: relative; width: min(100vw, calc(100dvh * 9 / 16)); height: 100dvh; max-height: 100dvh; background: #0b0d11; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.wc-story-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.wc-story-media img, .wc-story-media video { width: 100%; height: 100%; object-fit: contain; max-width: none; }
.wc-story-progress { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 5; }
.wc-story-progress span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.wc-story-progress span.is-done i { width: 100%; }
.wc-story-progress i { display: block; height: 100%; width: 0; background: #fff; }
.wc-story-head { position: absolute; top: 18px; left: 10px; right: 10px; z-index: 6; display: flex; align-items: center; gap: 9px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); }
.wc-story-head b { display: block; font-size: 13px; }
.wc-story-head small { font-size: 11px; opacity: 0.8; }
.wc-story-av { width: 34px; height: 34px; flex: none; font-size: 14px; }
.wc-story-x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.45); color: #fff; cursor: pointer; }
.wc-story-cap { position: absolute; left: 0; right: 0; bottom: 64px; padding: 10px 16px; z-index: 5; text-align: center; color: #fff; font-size: 15px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); text-shadow: 0 1px 4px #000; }
.wc-story-zone { position: absolute; top: 70px; bottom: 70px; z-index: 4; background: none; border: 0; cursor: pointer; }
.wc-story-zone.is-left { left: 0; width: 30%; }
.wc-story-zone.is-right { right: 0; width: 70%; }
.wc-story-foot { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 6; display: flex; gap: 8px; justify-content: center; }
.wc-story-foot button { padding: 8px 14px; border-radius: 999px; border: 0; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.wc-story-viewers { position: absolute; left: 10px; right: 10px; bottom: 56px; z-index: 7; max-height: 45%; overflow-y: auto; padding: 10px 12px; border-radius: 14px; background: rgba(18, 19, 23, 0.95); color: #e4e4e7; font-size: 12px; display: grid; gap: 8px; }
.wc-story-viewers small { display: block; color: #a1a1aa; }
.wc-story-viewers.hidden { display: none; }

/* ---------- encrypted chat strip ---------- */
.wc-chat-lock { flex: none; padding: 6px 12px; font-size: 11px; color: #a1a1aa; border-bottom: 1px solid rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; gap: 4px; }
.wc-chat-lock:empty { display: none; }
.wc-lock-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wc-lock-line > i { color: #86efac; }
.wc-lock-link { background: none; border: 0; padding: 0; color: #d4d4d8; text-decoration: underline; cursor: pointer; font-size: 11px; }
.wc-lock-link.is-warn { color: #fcd34d; }
.wc-lock-note { font-size: 10.5px; color: #a1a1aa; line-height: 1.4; }
.wc-lock-note.hidden { display: none; }
.wc-lock-code { font-family: ui-monospace, monospace; color: #fff; letter-spacing: 0.04em; }
.wc-chat-lock.is-locked { padding: 12px; background: rgba(255, 255, 255, 0.05); gap: 8px; }
.wc-chat-lock.is-locked b { color: #fff; font-size: 13px; }
.wc-chat-lock.is-locked p { margin: 0; line-height: 1.4; }
.wc-lock-row { display: flex; gap: 8px; }
.wc-lock-row input { flex: 1; min-width: 0; padding: 9px 11px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; font-size: 13px; }
.wc-lock-msg { color: #fca5a5; min-height: 14px; }
.wc-chat-lock.is-error { color: #fca5a5; }

/* ---------- stories: editor, overlays, public ---------- */
.wc-ed-frame { position: relative; width: min(100%, 240px); aspect-ratio: 9 / 16; margin: 10px auto 0; background: #000; border-radius: 12px; overflow: hidden; container-type: inline-size; touch-action: none; }
.wc-ed-media { position: absolute; inset: 0; }
.wc-ed-media img, .wc-ed-media video { width: 100%; height: 100%; object-fit: contain; max-width: none; display: block; }
.wc-ed-layer { position: absolute; inset: 0; }
.wc-ov { position: absolute; user-select: none; -webkit-user-select: none; line-height: 1.1; text-align: center; max-width: 92cqw; white-space: pre-wrap; word-break: break-word; font-weight: 800; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65); cursor: grab; touch-action: none; }
.wc-ov-text.has-bg { background: rgba(0, 0, 0, 0.62); padding: 0.15em 0.45em; border-radius: 0.3em; text-shadow: none; }
.wc-ov-sticker { height: auto; max-width: none; }
.wc-ov.is-sel { outline: 2px dashed rgba(255, 255, 255, 0.9); outline-offset: 3px; }
.wc-ed-tools { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.wc-ed-sel { margin-top: 10px; display: grid; gap: 8px; }
.wc-ed-sel input[type="text"] { width: 100%; padding: 9px 11px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; font-size: 13px; }
.wc-ed-sel.hidden, .wc-ed.hidden, .wc-ed-stickers.hidden, .wc-ed-sel .hidden { display: none; }
.wc-ed-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wc-ed-row > button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); color: #fff; cursor: pointer; }
.wc-ed-row [data-ed-colors] { display: inline-flex; gap: 5px; margin: 0 4px; }
.wc-ed-color { width: 20px !important; height: 20px !important; border-radius: 50% !important; border: 2px solid rgba(255, 255, 255, 0.5) !important; padding: 0; }
.wc-ed-stickers { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; max-height: 150px; overflow-y: auto; }
.wc-ed-stickers button { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; padding: 4px; cursor: pointer; }
.wc-ed-stickers img { width: 100%; height: 44px; object-fit: contain; display: block; }
.wc-story-who { display: flex; gap: 8px; margin-top: 10px; }
.wc-story-who label { flex: 1; cursor: pointer; position: relative; }
.wc-story-who input { position: absolute; opacity: 0; pointer-events: none; }
.wc-story-who span { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.18); color: #d4d4d8; font-weight: 700; font-size: 12px; }
.wc-story-who input:checked + span { background: #fff; color: #09090b; border-color: #fff; }
.wc-story-hint { margin: 6px 0 0 !important; font-size: 11px; color: #8b8b95; }
.wc-story-rights { display: flex; gap: 9px; align-items: flex-start; margin-top: 10px; font-size: 11px; line-height: 1.4; color: #c4c4cc; cursor: pointer; }
.wc-story-rights input { margin-top: 2px; flex: none; }
.wc-story-ovs { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.wc-story-ovs .wc-ov { cursor: default; }
.wc-story-frame { container-type: inline-size; }
.wc-story-x.is-hint { box-shadow: 0 0 0 2px #fde047; }
.wc-st-ring { position: relative; }
.wc-st-pub { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: #0b0d11; border: 2px solid #38bdf8; color: #38bdf8; font-size: 9px; display: flex; align-items: center; justify-content: center; }
.wc-st-sep { flex: none; align-self: center; color: #71717a; font-size: 13px; padding: 0 2px; }

.wc-upd-preview { margin-top: 12px; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); }
.wc-upd-preview.hidden { display: none; }

.wc-chat-bg-note { margin: 8px 0 0; font-size: 10.5px; color: #8b8b95; line-height: 1.4; }
.wc-chat-bg[data-chat-color-wrap], .wc-chat-bg[data-chat-image-wrap] { cursor: pointer; position: relative; }
.wc-chat-bg input.sr-only { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* ---------- two-factor ---------- */
.wc-tf-card { width: min(100%, 400px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.wc-tf-steps { margin: 0 0 10px; padding-left: 18px; color: #a1a1aa; line-height: 1.45; }
.wc-tf-steps a { color: #fff; text-decoration: underline; }
.wc-tf-qr { display: flex; justify-content: center; margin: 6px 0 10px; }
.wc-tf-qr svg { border-radius: 10px; }
.wc-tf-key { text-align: center; font-size: 11px; color: #8b8b95 !important; }
.wc-tf-key b { display: inline-block; margin-top: 3px; color: #fff; font-family: ui-monospace, monospace; letter-spacing: 0.06em; font-size: 12px; user-select: all; }
.wc-promo-card input.wc-tf-code { text-transform: none; letter-spacing: 0.3em; text-align: center; font-size: 18px; }
.wc-tf-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.wc-tf-codes code { padding: 7px 8px; text-align: center; border-radius: 8px; background: rgba(255, 255, 255, 0.07); color: #fff; font-size: 13px; user-select: all; }
.wc-tf-actions { margin: 0 0 10px; justify-content: center !important; }
.wc-tf-small { margin: 10px 0 0 !important; font-size: 10.5px; color: #8b8b95 !important; text-align: center; }

/* ---------- GIF picker: three columns that keep each GIF's own shape ---------- */
.wc-gif-masonry { grid-column: 1 / -1; display: flex; gap: 6px; align-items: flex-start; }
.wc-gif-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wc-gif-tile { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.06); cursor: pointer; }
.wc-gif-tile img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.wc-gif-tile:hover, .wc-gif-tile:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
/* ---------- dialogs: checkboxes keep their own size (the recovery-code dialog was squashed) ---------- */
.wc-promo-card input[type="checkbox"], .wc-promo-card input[type="radio"] { width: auto; padding: 0; text-transform: none; letter-spacing: normal; flex: none; }
.wc-promo-card .wc-story-rights { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0; text-align: left; }
.wc-promo-card .wc-story-rights span { flex: 1; min-width: 0; text-align: left; font-size: 12px; color: #d4d4d8; }
.wc-promo-card .row.wc-tf-actions { display: flex; flex-wrap: wrap; }

/* ---------- story ring: map pins and the top-bar button ---------- */
.profile-pin-avatar.wc-pin-story-new { border: 3px solid transparent !important; animation: none !important;
  background: linear-gradient(#0b0d11, #0b0d11) padding-box, conic-gradient(from 200deg, #f97316, #ec4899, #8b5cf6, #38bdf8, #f97316) border-box !important;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.55) !important; }
.profile-pin-avatar.wc-pin-story-seen { border: 3px solid transparent !important; animation: none !important;
  background: linear-gradient(#0b0d11, #0b0d11) padding-box, linear-gradient(#a1a1aa, #52525b) border-box !important; box-shadow: 0 0 6px rgba(161, 161, 170, 0.35) !important; }
.wc-story-btn { flex: none; width: 36px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wc-story-btn-ring { width: 32px; height: 32px; border-radius: 50%; padding: 2.5px; display: flex; background: rgba(255, 255, 255, 0.22); }
/* any public story: the same colorful ring as a map pin with a story; one you have not seen yet also glows and turns */
.wc-story-btn.has-any .wc-story-btn-ring { background: conic-gradient(from 200deg, #f97316, #ec4899, #8b5cf6, #38bdf8, #f97316); box-shadow: 0 0 8px rgba(236, 72, 153, 0.35); }
.wc-story-btn.has-new .wc-story-btn-ring { background: conic-gradient(from 200deg, #f97316, #ec4899, #8b5cf6, #38bdf8, #f97316); box-shadow: 0 0 12px rgba(236, 72, 153, 0.6); animation: wc-story-spin 6s linear infinite; }
.wc-story-btn.has-new .wc-story-btn-core { animation: wc-story-spin 6s linear infinite reverse; } /* the globe itself stays upright */
.wc-story-btn-core { flex: 1; border-radius: 50%; background: #0b0d11; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.wc-story-btn:hover .wc-story-btn-core, .wc-story-btn:focus-visible .wc-story-btn-core { background: #1b1d23; }
@keyframes wc-story-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wc-story-btn.has-new .wc-story-btn-ring, .wc-story-btn.has-new .wc-story-btn-core { animation: none; } }
/* the picker keeps its tabs and search box in view; only the pictures scroll */
.wc-stickers { overflow: hidden; max-height: min(340px, 52vh); }
.wc-stickers .wc-stk-tabs, .wc-stickers .wc-stk-tools { flex: none; }
.wc-stickers .wc-stk-grid { flex: 1 1 auto; min-height: 0; }

/* ---------- features that can be turned off ---------- */
html.wc-no-stories #storiesTray, html.wc-no-stories #publicStoriesBtn { display: none !important; }
.wc-feat-card { width: min(100%, 440px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.wc-feat-list { display: grid; gap: 10px; margin: 6px 0 12px; }
.wc-feat-row { display: flex; gap: 11px; align-items: flex-start; padding: 11px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.wc-feat-ico { flex: none; width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, 0.1); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.wc-feat-txt { flex: 1; min-width: 0; }
.wc-feat-txt b { display: block; color: #fff; font-size: 13px; }
.wc-feat-txt small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.4; color: #a1a1aa; }
.wc-feat-try { margin-top: 7px; padding: 0; border: 0; background: none; color: #fff; font-size: 11px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.wc-feat-sw { flex: none; display: inline-flex; align-items: center; padding-top: 6px; }
.wc-promo-card .wc-feat-sw input.wc-switch { width: 38px; height: 22px; padding: 0; border: 0; flex: none; }
.wc-feat-actions { margin-top: 4px; }

/* ---------- car mode ---------- */
.wc-car-btn { flex: none; width: 36px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wc-car-btn.hidden { display: none; }
.wc-car-btn-core { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); border: 2px solid rgba(255, 255, 255, 0.28); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; transition: background 0.15s; }
.wc-car-btn:hover .wc-car-btn-core { background: rgba(255, 255, 255, 0.22); }
.wc-car-btn.is-on .wc-car-btn-core { background: #f97316; border-color: #fdba74; box-shadow: 0 0 12px rgba(249, 115, 22, 0.6); }
html.wc-cars #storiesTray, html.wc-cars #publicStoriesBtn { display: none !important; }
.wc-car-pin-wrap { background: none; border: 0; }
.wc-car-pin { width: 48px; height: 48px; border-radius: 14px; overflow: hidden; border: 3px solid #f97316; background: #0b0d11; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.wc-car-pin.is-bike { border-color: #38bdf8; border-radius: 50%; }
.wc-car-pin img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.wc-car-popup { width: 220px; display: grid; gap: 4px; }
.wc-car-popup img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; display: block; max-width: none; }
.wc-car-popup b { font-size: 14px; }
.wc-car-popup small { color: #71717a; }
.wc-car-popup-btns { display: flex; gap: 6px; margin-top: 4px; }
.wc-car-popup-btns button { flex: 1; padding: 6px; border-radius: 8px; border: 1px solid #d4d4d8; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
#map.wc-picking, #map.wc-picking .leaflet-grab { cursor: crosshair !important; }
.wc-pickbar { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 3700; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: #121317; border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }
.wc-garage-card { width: min(100%, 560px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.wc-garage-card .wc-promo-card, .wc-promo-card.wc-garage-card { padding: 16px; }
.wc-garage-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wc-garage-head h2 { margin: 0 !important; }
.wc-garage-quota .bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.wc-garage-quota .bar span { display: block; height: 100%; background: linear-gradient(90deg, #f97316, #ec4899); }
.wc-garage-quota small { display: block; margin-top: 5px; color: #a1a1aa; font-size: 11px; }
.wc-garage-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.wc-garage-warn { color: #fcd34d !important; }
.wc-garage-hint { margin: 8px 0 !important; font-size: 11px; color: #8b8b95 !important; }
.wc-garage-empty { text-align: center; padding: 22px 10px; color: #8b8b95 !important; }
.wc-garage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wc-car-card { position: relative; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.wc-car-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; max-width: none; }
.wc-car-meta { padding: 8px 10px 2px; }
.wc-car-meta b { display: block; color: #fff; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-car-meta small { color: #8b8b95; font-size: 10.5px; }
.wc-car-btns { display: flex; gap: 6px; padding: 6px 10px 10px; }
.wc-car-btns button { flex: 1; padding: 6px 0; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; font-size: 12px; }
.wc-car-btns button:hover { background: rgba(255, 255, 255, 0.2); }
.wc-add-where { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wc-car-preview { margin-top: 10px; border-radius: 12px; overflow: hidden; background: #000; }
.wc-car-preview img { width: 100%; max-height: 240px; object-fit: contain; display: block; max-width: none; }
.wc-car-preview.hidden { display: none; }
.wc-board { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.wc-board li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.wc-board li.is-me { background: rgba(249, 115, 22, 0.18); border: 1px solid rgba(249, 115, 22, 0.5); }
.wc-board .rk { width: 26px; text-align: center; font-weight: 900; color: #fff; }
.wc-board .av { width: 34px; height: 34px; border-radius: 50%; background: #1b1d23; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; flex: none; }
.wc-board .av img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.wc-board .nm { flex: 1; min-width: 0; }
.wc-board .nm b { display: block; color: #fff; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-board .nm small { color: #8b8b95; font-size: 10.5px; }
.wc-board .ct { font-weight: 900; color: #fff; font-size: 16px; }
.wc-promo.wc-garage-wrap.hidden { display: none; }

/* ---------- chat: dots on the outer side, smaller stickers ---------- */
.wc-msg-line { flex-direction: row-reverse; }              /* their message: bubble, then the dots on its right */
.wc-msg.is-mine .wc-msg-line { flex-direction: row; }       /* your message: the dots on its left, bubble flush right */
.wc-msg-sticker { max-width: 110px; max-height: 110px; }
/* ---------- chat photos, videos, voice ---------- */
.wc-chat-form.is-recording > * { display: none !important; }
.wc-voice-rec { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #fff; font-weight: 700; font-size: 13px; }
.wc-voice-rec .dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: wc-rec 1s ease-in-out infinite; }
.wc-voice-rec .dot.is-done { animation: none; background: #71717a; }
.wc-voice-rec .max { color: #71717a; font-weight: 500; }
.wc-voice-rec button:first-of-type { margin-left: auto; }
@keyframes wc-rec { 50% { opacity: 0.3; } }
.wc-cm-progress { padding: 6px 12px; font-size: 11px; color: #a1a1aa; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.wc-cm-progress div { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); margin-top: 4px; overflow: hidden; }
.wc-cm-progress i { display: block; height: 100%; width: 0; background: #fff; transition: width 0.15s; }
.wc-cm-card { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; font-size: 13px; font-weight: 700; text-align: left; max-width: 240px; }
.wc-cm-card small { display: block; color: #a1a1aa; font-weight: 500; font-size: 11px; }
.wc-cm-card > i:first-child { font-size: 18px; width: 22px; text-align: center; }
.wc-cm-card.is-open { cursor: pointer; background: linear-gradient(135deg, rgba(249, 115, 22, 0.28), rgba(236, 72, 153, 0.28)); border-color: rgba(255, 255, 255, 0.3); }
.wc-cm-card.is-open:hover { filter: brightness(1.12); }
.wc-cm-card.is-gone { opacity: 0.65; font-style: italic; font-weight: 600; }
.wc-cm-eye { margin-left: 4px; color: #fde68a; }
.wc-msg.is-mine .wc-cm-card.is-sent { background: #f4f4f5; color: #09090b; border-color: #f4f4f5; }
.wc-msg.is-mine .wc-cm-card.is-sent small { color: #52525b; }
.wc-voice { display: inline-flex; align-items: center; gap: 10px; min-width: 190px; padding: 8px 12px 8px 8px; border-radius: 18px; background: rgba(255, 255, 255, 0.12); color: #fff; }
.wc-msg.is-mine .wc-voice { background: #f4f4f5; color: #09090b; }
.wc-voice button { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 0; background: #fff; color: #09090b; cursor: pointer; }
.wc-msg.is-mine .wc-voice button { background: #09090b; color: #fff; }
.wc-voice-bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(127, 127, 127, 0.35); overflow: hidden; }
.wc-voice-bar i { display: block; height: 100%; width: 0; background: currentColor; }
.wc-voice-t { font-size: 12px; font-variant-numeric: tabular-nums; }
.wc-once-full { padding: 0 !important; background: rgba(0, 0, 0, 0.94) !important; }
.wc-once-view { width: 100%; height: 100dvh; display: flex; flex-direction: column; }
.wc-once-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; color: #fff; font-weight: 800; font-size: 13px; }
.wc-once-btns { display: inline-flex; gap: 6px; }
.wc-once-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; }
.wc-once-btn.is-close { background: #fff; color: #09090b; }
.wc-once-media { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.wc-once-media img, .wc-once-media video { max-width: 100%; max-height: 100%; object-fit: contain; max-width: 100vw; }
.wc-once-hint { margin: 0; padding: 8px 14px 14px; text-align: center; color: #a1a1aa; font-size: 11.5px; }
/* ---------- stories: link stories, evidence ---------- */
.wc-story-linkbtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 8px; padding: 10px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, 0.25); background: none; color: #d4d4d8; font-size: 12px; font-weight: 700; cursor: pointer; }
.wc-story-linkbox { margin-top: 8px; display: grid; gap: 6px; }
.wc-story-linkbox.hidden { display: none; }
.wc-story-embed { width: 100%; height: 100%; border: 0; background: #000; }
.wc-story-frame.is-embed .wc-story-zone { top: 70px; bottom: 120px; width: 14%; }
.wc-story-frame.is-embed .wc-story-zone.is-right { right: 0; left: auto; }
.wc-story-src { position: absolute; left: 12px; right: 12px; bottom: 52px; z-index: 6; text-align: center; font-size: 11px; color: #fff; text-decoration: underline; text-shadow: 0 1px 4px #000; }
.wc-adm-evidence { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.wc-adm-evidence small { flex-basis: 100%; }
.wc-adm-evidence img { max-width: 220px; max-height: 220px; border-radius: 10px; display: block; }
.wc-adm-evidence video { max-width: 280px; border-radius: 10px; }

/* ---- store ---- */
.wc-store-balance { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(236, 72, 153, 0.16)); border: 1px solid rgba(255, 255, 255, 0.12); }
.wc-store-balance span { font-size: 11px; color: #d4d4d8; }
.wc-store-balance b { font-size: 26px; color: #fff; line-height: 1.1; }
.wc-store-balance small { font-size: 11px; color: #a1a1aa; }
.wc-store-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.wc-store-row label { display: block; font-size: 13px; font-weight: 600; color: #fff; min-width: 0; }
.wc-store-row label i { margin-right: 6px; color: #f97316; }
.wc-store-row label small { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; color: #a1a1aa; }
.wc-store-row input[type="number"] { width: 96px; flex: none; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; font-size: 14px; text-align: right; }
.wc-store-row input[type="checkbox"] { width: 22px; height: 22px; accent-color: #f97316; flex: none; }
.wc-store-own { color: #34d399; font-size: 12px; font-weight: 600; flex: none; }
.wc-store-total { display: flex; justify-content: space-between; gap: 10px; padding: 12px 2px 4px; font-size: 13px; color: #d4d4d8; }
.wc-store-total b { color: #fff; }
.wc-store-hist { margin-top: 10px; font-size: 12px; color: #a1a1aa; }
.wc-store-hist ul { list-style: none; padding: 6px 0 0; margin: 0; display: grid; gap: 4px; }
.wc-store-hist small { color: #71717a; margin-left: 6px; }

/* ---- live location ---- */
.wc-live-wrap { background: none; border: 0; }
.wc-live-pin { position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #0b0d11; border: 3px solid #22c55e; color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.wc-live-pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #22c55e; animation: wcLivePulse 2s ease-out infinite; z-index: 1; }
@keyframes wcLivePulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wc-live-pulse { animation: none; opacity: 0.4; } }
.wc-live-popup { display: grid; gap: 2px; }
.wc-live-popup small { color: #71717a; }
.wc-live-chip { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 1200; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(6, 78, 59, 0.92); border: 1px solid #22c55e; color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); cursor: pointer; }
@media (min-width: 768px) { .wc-live-chip { bottom: 22px; } }

/* ---------- Friends menu header: Admin · Store · Settings · close ---------- */
.wc-head-btn { position: relative; height: 32px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #d4d4d8; font-size: 11px; font-weight: 700; transition: background 0.15s, color 0.15s, transform 0.1s; }
.wc-head-btn:hover, .wc-head-btn:focus-visible { background: rgba(255, 255, 255, 0.1); color: #fff; }
.wc-head-btn:active { transform: scale(0.95); }
.wc-head-btn i { font-size: 12px; color: #d4d4d8; }
#drawerStoreBtn i { color: #fbbf24; }
.wc-head-btn.hidden { display: none; }
@media (max-width: 380px) { .wc-head-btn span { display: none; } .wc-head-btn { width: 32px; padding: 0; justify-content: center; } }

/* ---------- store ---------- */
.wc-store-card { padding-bottom: 0 !important; }
.wc-store-feature { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.4); color: #fde68a; font-size: 12px; }
.wc-store-feature b { color: #fff; }
.wc-store-balance .wc-card-btn { margin-top: 8px; align-self: flex-start; }
.wc-store-sec { margin-top: 14px; }
.wc-store-sec h3 { margin: 0; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: #e4e4e7; }
.wc-store-sec > p { margin: 2px 0 4px; font-size: 11px; color: #71717a; }
.wc-store-item { display: flex; align-items: center; gap: 10px; padding: 10px 8px; margin: 0 -8px; border-radius: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.wc-store-item.is-focus { background: rgba(251, 191, 36, 0.1); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.55); }
.wc-store-item.is-owned .wc-store-txt b { color: #a7f3d0; }
.wc-store-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(249, 115, 22, 0.14); color: #fb923c; font-size: 14px; }
.wc-store-txt { flex: 1; min-width: 0; }
.wc-store-txt b { display: block; font-size: 13px; color: #fff; }
.wc-store-txt small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.35; color: #a1a1aa; }
.wc-store-add { flex: none; min-width: 74px; height: 32px; padding: 0 12px; border-radius: 999px; background: #fff; color: #000; font-size: 12px; font-weight: 800; transition: transform 0.1s, background 0.15s; }
.wc-store-add:active { transform: scale(0.95); }
.wc-store-add.is-on { background: #22c55e; color: #fff; }
.wc-store-step { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); }
.wc-store-step button { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; background: rgba(255, 255, 255, 0.08); }
.wc-store-step button:disabled { opacity: 0.35; }
.wc-store-step output { min-width: 44px; text-align: center; font-size: 12px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.wc-store-foot { position: sticky; bottom: 0; margin: 12px -16px 0; padding: 10px 16px 14px; background: linear-gradient(to top, rgba(11, 13, 17, 0.98) 70%, rgba(11, 13, 17, 0.85)); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.wc-store-hist { padding-bottom: 14px; }

/* ---------- live location card (Pins & location menu) ---------- */
.wc-live-row { display: flex; gap: 8px; }
.wc-live-row select { flex: 0 0 auto; width: 118px; }
.wc-live-row .wc-card-btn { flex: 1; justify-content: center; }
.wc-live-note { font-size: 10px; line-height: 1.4; color: #71717a; margin: 0; }
.wc-live-on { font-size: 12px; font-weight: 700; color: #6ee7b7; margin: 0; }
.wc-link-btn { color: #fbbf24; text-decoration: underline; font-weight: 600; }

/* ---- store gifts, admin update editor ---- */
.wc-store-gift { margin-top: 14px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.wc-store-gift h3 { margin: 0 0 2px; font-size: 12px; font-weight: 800; color: #fff; }
.wc-store-gift h3 i { margin-right: 6px; color: #f472b6; }
.wc-store-gift p { margin: 0 0 8px; font-size: 11px; color: #a1a1aa; }
.wc-store-gift select { width: 100%; padding: 10px 12px; border-radius: 12px; background: #18181b; border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; font-size: 13px; }
.wc-store-giftrow { display: flex; gap: 8px; margin-top: 8px; }
.wc-store-giftrow input { flex: 1; min-width: 0; text-transform: none !important; letter-spacing: normal !important; font-size: 14px !important; font-weight: 600 !important; }
.wc-upd-item { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---- big screens: windows that feel like an app, not a popup ---- */
@media (min-width: 1024px) {
  .wc-promo-card { width: min(100%, 460px); padding: 24px; font-size: 13px; }
  .wc-garage-card { width: min(100%, 780px); }
  .wc-promo-card.wc-store-card { width: min(94vw, 1200px); height: min(90vh, 900px); max-height: min(90vh, 900px); padding: 28px 32px 0; border-radius: 24px; font-size: 14px; }
  .wc-store-card h2 { font-size: 26px; }
  .wc-store-card .wc-garage-hint { font-size: 12px; }
  .wc-store-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 36px; align-items: start; }
  .wc-store-side { position: sticky; top: 0; }
  .wc-store-main { min-width: 0; }
  .wc-store-main .wc-store-sec:first-child { margin-top: 0; }
  .wc-store-sec h3 { font-size: 12px; }
  .wc-store-item { padding: 14px 12px; margin: 0 -12px; }
  .wc-store-ico { width: 42px; height: 42px; font-size: 17px; border-radius: 12px; }
  .wc-store-txt b { font-size: 15px; }
  .wc-store-txt small { font-size: 12px; }
  .wc-store-balance { padding: 18px 20px; }
  .wc-store-balance b { font-size: 36px; }
  .wc-store-foot { margin: 14px 0 0; padding: 14px 0 22px; }
  #settingsModal > .glass-box { max-width: 60rem !important; }
  #profileCardWrapper { max-width: 48rem !important; }
  #leaderboardModal > .glass-box { max-width: 44rem !important; padding: 28px !important; }
  #kofiModal > .glass-box { max-width: 40rem !important; }
  #authModal > .glass-box { max-width: 30rem !important; }
  #formModal > .glass-box { max-width: 44rem !important; }
  #drawer, #pinsDrawer { width: 30rem !important; }
}

.wc-badge-pop-donate { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: linear-gradient(90deg, #f59e0b, #fbbf24); color: #111; font-weight: 800; font-size: 12px; text-decoration: none; }
.wc-badge-pop-donate:hover { filter: brightness(1.08); }

.wc-status-bubble.is-editable { cursor: pointer; }
.wc-status-bubble.is-editable:hover { filter: brightness(1.12); }
.wc-status-bubble.is-empty span { opacity: 0.65; font-style: italic; }
.wc-status-input { width: 100%; min-width: 9rem; background: transparent; border: 0; outline: 0; color: inherit; font: inherit; padding: 0; }

/* ---- friends menu: two big boxes, a pinned Notifications chat, pinned friends ---- */
.wc-bigtab { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); color: #a1a1aa; font-size: 13px; font-weight: 800; letter-spacing: 0.02em; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s; }
.wc-bigtab i { font-size: 16px; }
.wc-bigtab:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.wc-bigtab:active { transform: scale(0.97); }
.wc-bigtab.is-active { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.wc-bigtab-count { font-size: 10px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #e4e4e7; }
.wc-notes-row { background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(168, 85, 247, 0.08)); border-color: rgba(125, 211, 252, 0.3); }
.wc-notes-row:hover { background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(168, 85, 247, 0.14)); }
.wc-notes-av { flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #0b0d11; border: 1.5px solid rgba(255, 255, 255, 0.25); display: inline-flex; align-items: center; justify-content: center; }
.wc-notes-av img { width: 100%; height: 100%; object-fit: cover; }
.wc-notes-tick { color: #38bdf8; font-size: 10px; }
.wc-pin-mark { color: #a1a1aa; font-size: 9px; transform: rotate(35deg); }
.wc-friend-card.is-pinned { border-color: rgba(251, 191, 36, 0.25); }
.wc-pin-btn { color: #52525b; }
.wc-pin-btn:hover { color: #e4e4e7; }
.wc-pin-btn.is-on { color: #fbbf24; }
.wc-pin-btn.is-on i { transform: rotate(35deg); }
.wc-note-bar { display: flex; align-items: center; gap: 10px; padding: 8px 4px 10px; margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.wc-note-bar b { display: block; font-size: 13px; color: #fff; }
.wc-note-bar small { display: block; font-size: 10px; color: #71717a; }
.wc-note-back, .wc-note-gear { flex: none; width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #a1a1aa; }
.wc-note-back:hover, .wc-note-gear:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.wc-note-prefs { display: flex; flex-direction: column; gap: 8px; padding: 10px; margin-bottom: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); }
.wc-note-prefs.hidden { display: none; }
.wc-pref { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.wc-pref input { margin-top: 3px; accent-color: #38bdf8; flex: none; }
.wc-pref b { display: block; font-size: 12px; color: #fff; }
.wc-pref small { display: block; font-size: 10px; color: #8b8b95; line-height: 1.35; }
.wc-note-row.wc-note { border-radius: 16px 16px 16px 4px; } /* chat bubble */

/* ---- Discover: a loose wall ---- */
.wc-disc-head { display: flex; gap: 8px; margin-bottom: 10px; }
.wc-disc-shuffle { flex: none; width: 36px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); color: #e4e4e7; }
.wc-disc-shuffle:hover { background: rgba(255, 255, 255, 0.16); }
.wc-wall { column-count: 2; column-gap: 10px; }
.wc-wall-msg { column-span: all; text-align: center; padding: 36px 12px; font-size: 12px; color: #71717a; }
.wc-dc { break-inside: avoid; margin: 0 0 10px; border-radius: 18px; overflow: hidden; transform: rotate(var(--tilt, 0deg)); transition: transform 0.15s; background: hsl(var(--h, 220) 30% 14%); border: 1px solid hsl(var(--h, 220) 35% 28% / 0.7); }
.wc-dc:hover { transform: rotate(0deg) scale(1.02); }
.wc-dc-main { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; text-align: center; color: #e4e4e7; }
.wc-dc-main b { font-size: 12px; color: #fff; line-height: 1.25; word-break: break-word; }
.wc-dc-main small { font-size: 10px; color: #a1a1aa; }
.wc-dc-main em { font-size: 10px; font-style: normal; color: #8b8b95; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wc-dc-ico { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; background: hsl(var(--h, 220) 60% 45% / 0.28); color: hsl(var(--h, 220) 90% 78%); }
.wc-dc-user .wc-dc-add { margin: 0 10px 12px; width: calc(100% - 20px); justify-content: center; }
.wc-dc-story { background: linear-gradient(160deg, hsl(var(--h, 220) 55% 22%), #0e0e10); padding-bottom: 6px; }
.wc-dc-story.is-new { border-color: #f472b6; box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.4); }
.wc-dc-pin { background: linear-gradient(200deg, hsl(var(--h, 220) 45% 20%), #101114); }
.wc-dc-sticker { background: repeating-conic-gradient(rgba(255, 255, 255, 0.05) 0% 25%, transparent 0% 50%) 0 0 / 16px 16px; }
.wc-dc-sticker img { width: 96px; height: 96px; object-fit: contain; }
.wc-dc-car .wc-dc-main { padding: 0 0 10px; }
.wc-dc-car img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; max-width: none; }
.wc-dc-car b, .wc-dc-car small { padding: 0 10px; }
.wc-lightbox { z-index: 3600; cursor: zoom-out; }
.wc-lightbox figure { margin: 0; max-width: min(92vw, 900px); }
.wc-lightbox img { max-width: 100%; max-height: 80vh; border-radius: 16px; display: block; margin: 0 auto; }
.wc-lightbox figcaption { margin-top: 8px; text-align: center; color: #e4e4e7; font-size: 13px; }
@media (min-width: 1024px) { .wc-wall { column-count: 2; } .wc-dc-main b { font-size: 13px; } .wc-bigtab { padding: 16px 12px; font-size: 14px; } }
.wc-car-btns button.is-on { color: #38bdf8; }

.wc-addfriend > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #d4d4d8; padding: 2px 2px; }
.wc-addfriend > summary::-webkit-details-marker { display: none; }
.wc-addfriend > summary::after { content: "078"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; margin-left: auto; font-size: 10px; color: #71717a; transition: transform 0.15s; }
.wc-addfriend[open] > summary::after { transform: rotate(180deg); }

.wc-addfriend > summary::marker { content: ""; }

/* ---- red bubble on the Friends box (only when something is waiting) ---- */
.wc-bigtab-badge { min-width: 18px; padding: 1px 6px; border-radius: 999px; background: #f43f5e; color: #fff; font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; }
.wc-bigtab-badge.hidden { display: none; }
/* public stories: the same colorful ring as friends' stories, and always bright so they stand out */
.wc-st-bubble.is-public.is-seen .wc-st-ring { background: conic-gradient(from 200deg, rgba(249, 115, 22, 0.55), rgba(236, 72, 153, 0.55), rgba(139, 92, 246, 0.55), rgba(56, 189, 248, 0.55), rgba(249, 115, 22, 0.55)); }
.wc-st-bubble.is-public.is-new .wc-st-ring { box-shadow: 0 0 10px rgba(236, 72, 153, 0.5); }

/* ---- admin console on a phone: labelled tabs, bigger tap targets ---- */
@media (max-width: 767px) {
  .wc-adm-side { position: sticky; top: 0; z-index: 3; gap: 4px; scrollbar-width: none; }
  .wc-adm-side::-webkit-scrollbar { display: none; }
  .wc-adm-nav button { flex-direction: column; gap: 3px; min-width: 62px; padding: 8px 6px; font-size: 10px; line-height: 1.1; }
  .wc-adm-nav button span { display: block !important; white-space: nowrap; font-size: 10px; }
  .wc-adm-nav button i { width: auto; font-size: 15px; }
  .wc-adm-nav em { position: absolute; top: 2px; right: 2px; margin: 0; }
  .wc-adm-nav button { position: relative; }
  .wc-adm-head { gap: 8px; }
  .wc-adm-head h2 { font-size: 20px; }
  .wc-adm-grid3, .wc-adm-grid4 { grid-template-columns: 1fr; }
  .wc-adm-card { padding: 12px; }
  .wc-adm-body { overflow-x: hidden; }
  .wc-adm-body table { display: block; overflow-x: auto; max-width: 100%; }
  .wc-adm input, .wc-adm select, .wc-adm textarea { font-size: 16px; min-height: 42px; }
  .wc-adm .wc-card-btn { min-height: 40px; }
}

/* ---- countries box: friends per country, tap a country to zoom ---- */
.wc-country-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.wc-country-row:hover span:first-child { color: #fff; text-decoration: underline; }
.wc-countries-src.has-friends { color: #7dd3fc; font-weight: 800; white-space: nowrap; }
.wc-countries-src.has-friends i { font-size: 10px; margin-right: 3px; }
.wc-country-back { flex: none; width: 26px; height: 26px; border-radius: 8px; color: #a1a1aa; }
.wc-country-back:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.wc-country-friend { display: flex; align-items: center; gap: 6px; }
.wc-country-fav { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 2px 0; text-align: left; color: inherit; cursor: pointer; }
.wc-country-fav span { min-width: 0; }
.wc-country-fav b { display: block; font-size: 12px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-country-fav small { display: block; font-size: 10px; color: #8b8b95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-country-loc { flex: none; width: 30px; height: 30px; border-radius: 9px; color: #a1a1aa; }
.wc-country-loc:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---- new sticker form ---- */
.wc-stk-form { display: flex; flex-direction: column; gap: 10px; }
.wc-stk-form label { display: block; font-size: 11px; font-weight: 700; color: #d4d4d8; }
.wc-stk-form label small { display: block; font-weight: 400; color: #8b8b95; margin: 1px 0 4px; }
.wc-stk-form input[type="text"], .wc-stk-form input:not([type]) { margin-top: 4px; text-transform: none; letter-spacing: normal; font-size: 14px; font-weight: 600; }
.wc-stk-form-pic { align-self: center; width: 96px; height: 96px; border-radius: 16px; background: repeating-conic-gradient(rgba(255, 255, 255, 0.07) 0% 25%, transparent 0% 50%) 0 0 / 14px 14px; display: flex; align-items: center; justify-content: center; }
.wc-stk-form-pic img { max-width: 88px; max-height: 88px; }
.wc-stk-form .wc-stk-form-pub { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); cursor: pointer; }
.wc-stk-form .wc-stk-form-pub b { display: block; color: #fff; font-size: 12px; }
.wc-stk-form .wc-stk-form-pub small { margin: 2px 0 0; }

/* ---- live location: pick who sees you ---- */
.wc-live-pick { display: flex; flex-direction: column; gap: 4px; max-height: 190px; overflow-y: auto; padding: 8px; margin: 6px 0; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); }
.wc-live-pick label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #e4e4e7; cursor: pointer; padding: 3px 2px; }
.wc-live-pick input { accent-color: #22c55e; }
.wc-live-pick-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 800; color: #a1a1aa; }

/* ---- password accounts ---- */
.wc-pw-card input:not([type="checkbox"]):not(.wc-tf-code) { text-transform: none; letter-spacing: normal; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.wc-pw-alt { margin: 10px 0 0 !important; text-align: center; font-size: 11px; }
.wc-pw-codes { margin: 0 0 10px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; font: 600 14px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; user-select: all; }
.wc-pw-why { margin: 0 0 8px !important; font-size: 10.5px !important; color: #8b8b95 !important; line-height: 1.4; }
