@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background: #080d17;
  color: #eef3fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --page: #080d17;
  --surface: #101827;
  --surface-raised: #151f30;
  --line: #253247;
  --muted: #8391a5;
  --text: #eef3fa;
  --cyan: #43e5dc;
  --cyan-dark: #11aba8;
  --lime: #d2f46d;
  --peach: #ffbd83;
  --red: #ff6276;
  --display-font: "Barlow Condensed", Impact, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}


/* Prevent image saving, context-menu saving, and dragging */
img,
svg,
canvas,
.feed-post-photo,
.feed-image-preview,
.event-poster,
.hero-image,
.user-avatar-badge,
.feed-avatar-badge,
.chat-message-avatar,
[data-image-protected] {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 16% 0%, rgb(34 91 111 / 11%), transparent 33rem),
    var(--page);
  color: var(--text);
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  top: auto;
  z-index: 10000;
  overflow: visible;
  border-bottom: 1px solid rgb(141 163 190 / 12%);
  background: rgb(8 13 23 / 91%);
  backdrop-filter: blur(16px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
}

.header-inner {
  position: relative;
  display: flex;
  min-height: 88px;
  height: auto;
  padding: 10px 0;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  transition: transform 180ms ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.footer-brand .brand-logo,
.site-footer .brand-logo {
  width: 52px;
  height: 52px;
}


.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgb(255 188 128 / 55%);
  border-radius: 13px;
  background: linear-gradient(145deg, #ffd09f, #f38b68);
  box-shadow: 0 0 28px rgb(243 139 104 / 17%);
}

.brand-mark svg {
  width: 29px;
  stroke: #713b34;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.peach-fruit {
  fill: #ffbd83;
}

.peach-leaf {
  fill: #79a95a;
  stroke: #365d37;
}

.peach-seam {
  fill: none;
  stroke: #b45d50;
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #f4f8fc;
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.8px;
  line-height: 1.05;
}

.brand-line-accent {
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.header-actions .theme-toggle-button,
.header-actions #refresh-cache-btn {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0;
  border: 1px solid var(--line, #334258);
  border-radius: 8px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.header-actions .calendar-create-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  flex-shrink: 0;
}

.header-actions .calendar-create-button span {
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.header-actions .calendar-create-button .back-text-short {
  display: none;
}

.header-actions .calendar-create-button .back-text-full {
  display: inline;
}

#peachbook-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
  box-sizing: border-box;
  flex-shrink: 0;
}

#peachbook-auth-btn-label {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

.site-menu {
  position: relative;
  margin-left: auto;
  margin-right: 12px;
}

.site-menu-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #334258;
  border-radius: 8px;
  background: #131e2d;
  color: #dbe5ef;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.site-menu-toggle::-webkit-details-marker {
  display: none;
}

.site-menu-toggle:hover,
.site-menu[open] .site-menu-toggle {
  border-color: var(--cyan-dark);
  color: #fff;
}

.site-menu-toggle span {
  color: var(--cyan);
  font-size: 15px;
  line-height: 1;
}

.site-menu-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 10005;
  display: grid;
  width: 190px;
  gap: 3px;
  padding: 6px;
  border: 1px solid #304055;
  border-radius: 9px;
  background: #131e2d;
  box-shadow: 0 14px 35px rgb(0 0 0 / 35%);
}

.menu-link {
  display: block;
  padding: 10px 11px;
  border-radius: 5px;
  color: #b8c5d4;
  font-size: 12px;
  font-weight: 600;
}

.menu-link:hover,
.menu-link[aria-current="page"] {
  background: #1d3040;
  color: var(--cyan);
}

.menu-link[hidden] {
  display: none;
}

#home-page[hidden],
#calendar[hidden] {
  display: none;
}

.sign-in-button {
  display: inline-flex;
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid #334258;
  border-radius: 8px;
  background: #131e2d;
  color: #f4f7fb;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease;
}

.sign-in-button:hover {
  border-color: var(--cyan-dark);
  background: #182638;
}

.sign-in-button svg {
  width: 16px;
  fill: none;
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sign-in-button .google-mark {
  flex-shrink: 0;
  fill: initial;
  stroke: none;
}

.account-name {
  max-width: 120px;
  overflow: hidden;
  color: #9fb0c1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-shell {
  padding: 12px 0 74px;
}

.hero {
  position: relative;
  display: flex;
  min-height: 355px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #263549;
  border-radius: 16px;
  isolation: isolate;
  background: #111a27;
}

.hero-slides,
.hero-slide,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-position: center 48%;
  background-size: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 850ms ease, transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(7 13 22 / 94%) 0%, rgb(7 13 22 / 76%) 35%, rgb(7 13 22 / 12%) 72%, rgb(7 13 22 / 6%) 100%),
    linear-gradient(0deg, rgb(7 13 22 / 45%), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: min(720px, calc(100% - 380px));
  padding: 40px 54px 48px;
}

.hero-event-sidebar {
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 28px;
  display: flex;
  width: min(320px, calc(100% - 56px));
  flex-direction: column;
  gap: 12px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.45px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 13px rgb(210 244 109 / 65%);
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 6px;
  color: #fff;
  font-family: var(--display-font);
  font-size: clamp(46px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: 0.1px;
  line-height: 0.96;
}

.hero h1 .hero-local-line {
  margin-bottom: 8px;
  color: #e5edf5;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}

.hero h1 .hero-league-name {
  display: flex;
  flex-direction: column;
  color: inherit;
}

.hero h1 .hero-league-name > span:first-child {
  color: var(--peach);
  text-transform: uppercase;
}

.hero h1 .hero-league-subtitle {
  color: #fff;
}

.hero h1 .hero-league-social-club {
  color: var(--cyan, #43e5dc);
}

.hero-description {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1px;
  line-height: 1.5;
}

.hero-event-title {
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--display-font);
  font-size: clamp(21px, 2.8vw, 28px);
  font-weight: 700;
  line-height: 1.1;
}

.hero-event-description {
  max-width: 540px;
  margin: 0 0 18px;
  color: #e0e7ef;
  font-size: 12px;
  line-height: 1.5;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: 11px;
  font-weight: 600;
}

.hero-date,
.hero-prize {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-date {
  color: #e3eaf2;
}

.hero-date svg {
  width: 15px;
  fill: none;
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero-prize {
  color: var(--lime);
}

.prize-star {
  font-size: 16px;
}

.hero-register {
  padding-left: 14px;
  border-left: 1px solid #58616d;
  color: #b5c1d0;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 21px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgb(228 239 248 / 26%);
  border-radius: 50%;
  background: rgb(8 13 23 / 56%);
  transition: border-color 160ms ease, background 160ms ease;
}

.carousel-button:hover {
  border-color: var(--cyan);
  background: #152738;
}

.carousel-button svg {
  width: 16px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #8f9aa8;
  transition: width 180ms ease, background 180ms ease;
}

.carousel-dot.active {
  width: 19px;
  background: var(--cyan);
}

.demo-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 15px 2px 23px;
  color: #8794a6;
  font-size: 10px;
}

#connection-note[hidden],
#connection-note:not(.admin-visible) {
  display: none !important;
}

.admin-connection-note {
  margin: 6px 4px 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 189, 131, 0.2);
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.4;
  color: #aab8c8;
}

.demo-note-icon {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid #58697d;
  border-radius: 50%;
  color: #aab8c8;
  font-size: 10px;
  font-weight: 700;
}

.auth-status {
  margin: -12px 2px 20px;
  color: #8fe5d9;
  font-size: 11px;
  line-height: 1.6;
}

.auth-status.error {
  color: #ff9da9;
}

.chat-panel {
  margin-top: 22px;
  padding: 22px;
}

.chat-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9eacbd;
  font-size: 10px;
  font-weight: 600;
}

.chat-live-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgb(210 244 109 / 50%);
}

.chat-signin-prompt,
.chat-empty-state {
  margin: 0;
  color: #a4b1c0;
  font-size: 12px;
  line-height: 1.6;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
}

.chat-presence {
  min-width: 0;
  padding: 12px;
  border: 1px solid #253247;
  border-radius: 9px;
  background: rgb(7 13 22 / 48%);
}

.chat-presence-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--cyan);
  font-size: 11px;
}

.chat-online-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgb(210 244 109 / 50%);
}

.chat-presence-status {
  margin: 8px 0 0;
  color: #ff9da9;
  font-size: 10px;
  line-height: 1.5;
}

.chat-presence-status:empty {
  display: none;
}

.chat-online-users {
  display: grid;
  max-height: 285px;
  gap: 8px;
  margin: 13px 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.chat-online-users li:not(.chat-empty-state) {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  color: #c0d0dc;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.chat-online-users li:not(.chat-empty-state)::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgb(210 244 109 / 45%);
  content: "";
}

.chat-online-users .chat-empty-state {
  font-size: 10px;
}

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

.chat-messages {
  display: flex;
  min-height: 140px;
  max-height: 320px;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid #253247;
  border-radius: 8px;
  background: rgb(7 13 22 / 48%);
}

.chat-empty-state {
  margin: auto;
  text-align: center;
}

.chat-message {
  align-self: flex-start;
  max-width: min(85%, 680px);
  padding: 4px 8px;
  border: 1px solid #29384b;
  border-radius: 6px 6px 6px 2px;
  background: #151f30;
  overflow-wrap: anywhere;
}

.chat-message-avatar {
  width: 17px !important;
  height: 17px !important;
  font-size: 8px !important;
  border-radius: 4px !important;
}

.chat-message-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.chat-message-header strong {
  color: var(--cyan);
  font-size: 10.5px;
  line-height: 1.15;
}

.chat-message-header time {
  color: #75849a;
  font-size: 8.5px;
  white-space: nowrap;
}

/* Live chat message actions menu */
.chat-actions-menu {
  position: relative;
  margin-left: auto;
}

.chat-actions-toggle {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #324358;
  border-radius: 4px;
  background: #111a27;
  color: #8fa1b8;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.chat-actions-toggle::-webkit-details-marker {
  display: none;
}

.chat-actions-toggle::marker {
  display: none;
}

.chat-actions-toggle:hover,
.chat-actions-menu[open] .chat-actions-toggle {
  background: #1a273a;
  border-color: var(--cyan);
  color: #fff;
}

.chat-actions-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 15;
  display: grid;
  min-width: 104px;
  gap: 3px;
  padding: 4px;
  border: 1px solid #2e3e52;
  border-radius: 7px;
  background: #0d1522;
  box-shadow: 0 10px 24px rgb(0 0 0 / 60%);
}

.chat-action-item {
  display: inline-flex;
  width: 100%;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #c0cfdf;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease;
}

.chat-action-item:hover {
  background: #182537;
  color: #fff;
}

.chat-action-delete {
  color: #ff9da9;
}

.chat-action-delete:hover {
  background: #34151e;
  color: #ff6e81;
}

/* Red circle X icon for delete */
.chat-red-circle-x {
  display: inline-flex;
  width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #d42036;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.chat-action-delete:hover .chat-red-circle-x {
  background: #ff334b;
}

.chat-edited-badge {
  color: #6a7c93;
  font-size: 9px;
  font-style: italic;
  margin-left: 2px;
}

.chat-delete-button {
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid #4a2732;
  border-radius: 4px;
  background: #201319;
  color: #ff9da9;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.chat-delete-button:hover {
  background: #391722;
  border-color: #ff6276;
  color: #fff;
}

.chat-message p {
  margin: 0;
  color: #f4f7fb;
  font-size: 11.5px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.chat-message-moderated {
  border-color: rgb(255 98 118 / 55%);
  background: linear-gradient(135deg, rgb(46 16 24 / 92%), rgb(28 14 22 / 95%));
}

.chat-red-warning-stamp {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px dashed rgb(255 98 118 / 65%);
  border-radius: 6px;
  background: rgb(255 46 76 / 12%);
}

.chat-warning-stamp-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1.5px solid #ff6276;
  border-radius: 4px;
  background: rgb(255 46 76 / 24%);
  color: #ff8595;
  font-family: var(--display-font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  transform: rotate(-1deg);
  box-shadow: 0 0 12px rgb(255 46 76 / 22%);
}

.chat-warning-stamp-detail {
  margin: 0 !important;
  color: #ffc2ca !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}

.chat-status {
  min-height: 0;
  margin: 8px 0 0;
  color: #ff9da9;
  font-size: 11px;
}

.chat-status:empty {
  display: none;
}

.chat-form {
  display: flex;
  gap: 9px;
  margin-top: 0;
}

.chat-composer {
  margin-top: 10px;
}

.chat-emoji-tools {
  position: relative;
  margin-bottom: 7px;
}

.chat-emoji-toggle,
.chat-emoji-grid button {
  display: inline-grid;
  width: 34px;
  height: 32px;
  place-items: center;
  border: 1px solid #2b3a4e;
  border-radius: 6px;
  background: #111b29;
  cursor: pointer;
  font-size: 17px;
}

.chat-emoji-toggle:hover,
.chat-emoji-grid button:hover {
  border-color: var(--cyan-dark);
  background: #182638;
}

.chat-emoji-toggle:focus-visible,
.chat-emoji-grid button:focus-visible,
.chat-emoji-tab:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.chat-emoji-picker {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 0;
  z-index: 4;
  display: flex;
  width: min(340px, calc(100vw - 56px));
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid #304055;
  border-radius: 10px;
  background: #131e2d;
  box-shadow: 0 12px 32px rgb(0 0 0 / 45%);
}

.chat-emoji-picker[hidden] {
  display: none;
}

.chat-emoji-header {
  display: flex;
}

.chat-emoji-search {
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #2b3a4e;
  border-radius: 6px;
  background: #0c1420;
  color: #eef3fa;
  font: inherit;
  font-size: 11px;
}

.chat-emoji-search:focus {
  border-color: var(--cyan);
  outline: 2px solid rgb(67 229 220 / 18%);
}

.chat-emoji-tabs {
  display: flex;
  gap: 4px;
  padding-bottom: 4px;
  overflow-x: auto;
  border-bottom: 1px solid #243245;
  scrollbar-width: thin;
}

.chat-emoji-tab {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  opacity: 0.72;
  transition: opacity 140ms ease, background 140ms ease, border-color 140ms ease;
}

.chat-emoji-tab:hover {
  background: #182638;
  opacity: 1;
}

.chat-emoji-tab.active {
  border-color: var(--cyan-dark);
  background: #1b2d40;
  opacity: 1;
}

.chat-emoji-group-label {
  margin: 0;
  color: #8f9fb2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.chat-emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
  max-height: 210px;
  gap: 5px;
  padding-right: 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-emoji-grid button {
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.chat-form input {
  min-width: 0;
  min-height: 42px;
  flex: 1;
  padding: 0 12px;
  border: 1px solid #2b3a4e;
  border-radius: 7px;
  background: #0c1420;
  color: #eef3fa;
  font: inherit;
  font-size: 12px;
}

.chat-form input:focus {
  border-color: var(--cyan);
  outline: 2px solid rgb(67 229 220 / 18%);
}

.chat-send-button {
  min-width: 68px;
  padding: 0 15px;
  border: 0;
  border-radius: 7px;
  background: var(--cyan);
  color: #092021;
  font-size: 11px;
  font-weight: 700;
}

.chat-send-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.chat-guidelines {
  margin: 8px 0 0;
  color: #75849a;
  font-size: 10px;
}

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

.main-column {
  display: grid;
  gap: 22px;
}

.panel {
  border: 1px solid #202d3f;
  border-radius: 13px;
  background: linear-gradient(150deg, rgb(17 26 40 / 99%), rgb(13 21 33 / 99%));
}

.scoreboard-panel,
.standings-panel,
.past-results-panel,
.events-panel {
  padding: 22px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.section-kicker {
  margin-bottom: 5px;
  color: #8190a4;
  font-size: 9px;
  letter-spacing: 1.35px;
}

.section-heading h2,
.join-card h2 {
  margin: 0;
  color: #f4f7fb;
  font-family: var(--display-font);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.25px;
  line-height: 1.1;
}

.sport-picker {
  position: relative;
}

.sport-picker-button {
  display: inline-flex;
  min-width: 93px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid #324256;
  border-radius: 7px;
  background: #151f2e;
  color: #edf4fa;
  font-size: 11px;
  font-weight: 700;
}

.sport-picker-button:hover,
.sport-picker-button[aria-expanded="true"] {
  border-color: #2b9297;
}

.sport-picker-button svg {
  width: 14px;
  fill: none;
  stroke: #8e9bad;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sport-options {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 5;
  width: 174px;
  overflow: hidden;
  padding: 4px;
  border: 1px solid #304055;
  border-radius: 9px;
  background: #131e2d;
  box-shadow: 0 14px 35px rgb(0 0 0 / 35%);
}

.sport-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 10px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #ebf1f7;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
}

.sport-option:hover,
.sport-option.selected {
  background: #1d3040;
}

.sport-option span {
  color: #718096;
  font-size: 9px;
  font-weight: 500;
}

.sport-option.selected span {
  color: var(--cyan);
}

.score-list {
  display: grid;
  gap: 10px;
}

.score-card {
  padding: 13px 15px 14px;
  border: 1px solid #253245;
  border-radius: 9px;
  background: linear-gradient(110deg, #111b2a 0%, #0e1725 100%);
  transition: border-color 160ms ease, transform 160ms ease;
}

.score-card:hover {
  transform: translateY(-1px);
  border-color: #344a60;
}

.match-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.match-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #96a3b4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.match-status.live {
  color: var(--red);
}

.match-status.upcoming {
  color: var(--cyan);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 9px rgb(255 98 118 / 72%);
}

.match-time {
  color: #718095;
  font-size: 9px;
}

.team-row {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
}

.team-row + .team-row {
  margin-top: 3px;
}

.team-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-badge {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid #334359;
  border-radius: 8px;
  background: linear-gradient(145deg, #243348, #172333);
  color: #c8d5e2;
  font-family: var(--display-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.team-name {
  color: #e6ecf3;
  font-size: 12px;
  font-weight: 600;
}

.team-score {
  min-width: 20px;
  color: #aebac8;
  font-family: var(--display-font);
  font-size: 23px;
  font-weight: 700;
  text-align: right;
}

.team-score.winner {
  color: #fff;
}

.registration-match .match-topline {
  align-items: flex-start;
}

.registration-event-title {
  color: #d4e0eb;
  font-size: 10px;
  line-height: 1.5;
}

.registered-player-label {
  color: #718095;
  font-size: 9px;
  font-weight: 600;
}

.team-name.waiting,
.team-badge.waiting {
  color: #75859a;
}

.team-name {
  overflow-wrap: anywhere;
}

.score-footnote {
  margin: 14px 0 0;
  color: #69798e;
  font-size: 9px;
}

.match-score-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #263448;
}

.match-result-unavailable {
  margin: 10px 0 0;
  color: #ffb0b8;
  font-size: 10px;
}

.match-score-form label {
  display: grid;
  gap: 4px;
  color: #9eacbd;
  font-size: 9px;
}

.match-score-form input {
  width: 82px;
  min-height: 32px;
  padding: 4px 7px;
  border: 1px solid #304055;
  border-radius: 5px;
  background: #0c1420;
  color: #edf5fb;
  font: inherit;
  font-size: 12px;
}

.match-score-form input:focus {
  border-color: var(--cyan);
  outline: 2px solid rgb(67 229 220 / 16%);
}

.match-score-form button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: var(--cyan);
  color: #092021;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.match-score-form button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.match-final-score,
.bracket-final-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid #284b50;
  border-radius: 6px;
  background: rgb(67 229 220 / 7%);
  color: #dce9ef;
  font-size: 11px;
}

.match-final-score strong {
  margin-left: 5px;
  color: var(--cyan);
  font-size: 16px;
}

.score-separator {
  color: #76899b;
}

.standings-table-wrap {
  overflow-x: auto;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.standings-table th,
.standings-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #253247;
  color: #cbd7e2;
  font-size: 11px;
  white-space: nowrap;
  vertical-align: middle;
}

.standings-table th {
  color: #8190a4;
  font-size: 9px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.standings-table td:not(:first-child),
.standings-table th:not(:first-child) {
  width: 68px;
  min-width: 52px;
  text-align: center;
}

.standings-table td:first-child,
.standings-table th:first-child {
  width: auto;
}

.standings-table td:first-child {
  color: #edf3f8;
  font-weight: 600;
}

.standing-player {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  vertical-align: middle;
}

.standing-rank {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-right: 0;
  flex-shrink: 0;
  border-radius: 6px;
  background: #1c2a3a;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
}

.standing-avatar {
  width: 26px;
  height: 26px;
  font-size: 10px;
  flex-shrink: 0;
}

.standing-username {
  color: #edf3f8;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.past-result-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.past-result-player-right {
  justify-content: flex-end;
  text-align: right;
}

.past-result-player-name,
.past-result-player span:not(.standing-avatar) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.past-result-player-right .past-result-player-name,
.past-result-player-right span:not(.standing-avatar) {
  text-align: right;
}

[data-theme="light"] .standings-table th,
[data-theme="light"] .standings-table td {
  border-bottom-color: #e2e8f0;
  color: #334155;
}

[data-theme="light"] .standing-username,
[data-theme="light"] .standings-table td:first-child {
  color: #0f172a;
}

[data-theme="light"] .standing-rank {
  background: #e0f2fe;
  color: #0891b2;
}

.standings-empty {
  color: #94a1b2 !important;
  font-weight: 400 !important;
  text-align: center !important;
}

.standings-status {
  margin: 12px 0 0;
  color: var(--muted, #8b9bb1);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}

.past-results-list {
  display: grid;
  gap: 9px;
}

.past-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #253245;
  border-radius: 8px;
  background: linear-gradient(110deg, #111b2a 0%, #0e1725 100%);
}

.past-result-meta {
  display: grid;
  gap: 4px;
}

.past-result-meta strong {
  color: #d8e3ed;
  font-size: 14px;
  font-weight: 700;
}

.past-result-meta span {
  color: #8b9bb1;
  font-size: 12px;
}

.past-result-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: #b8c5d2;
  font-size: 13px;
  width: 100%;
  min-width: 0;
}

.past-result-score strong {
  color: var(--cyan);
  font-family: var(--display-font);
  font-size: 18px;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(8, 13, 23, 0.45);
  letter-spacing: 0.5px;
  flex-shrink: 0;
  text-align: center;
}

.past-result-score .standing-avatar {
  flex-shrink: 0;
}

.past-result-score .result-winner {
  color: var(--lime);
  font-weight: 700;
}

.bracket-final-score {
  justify-content: flex-start;
  width: fit-content;
  margin-top: 4px;
  padding: 5px 8px;
  font-size: 9px;
}

.empty-scores {
  padding: 28px 16px;
  border: 1px dashed #314156;
  border-radius: 9px;
  color: #a4b1c0;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}

.empty-scores strong {
  display: block;
  color: #ecf2f8;
  font-family: var(--display-font);
  font-size: 20px;
  letter-spacing: 0.3px;
}

.events-panel {
  min-height: 0;
}

.events-heading {
  margin-bottom: 19px;
}

.events-count {
  display: inline-grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #354358;
  border-radius: 7px;
  color: #c4d0df;
  font-family: var(--display-font);
  font-size: 13px;
}

.social-events-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #263348;
}

.social-events-section .section-heading {
  margin-bottom: 15px;
}

.event-list {
  display: grid;
  gap: 10px;
}

.event-card {
  position: relative;
  overflow: hidden;
  padding: 14px 13px 13px 15px;
  border: 1px solid #263348;
  border-radius: 9px;
  background: #0e1725;
  transition: border-color 160ms ease, background 160ms ease;
}

.event-card:hover {
  border-color: #3a4e65;
  background: #111c2c;
}

.event-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: #617085;
  content: "";
}

.event-card.upcoming::before {
  background: var(--cyan);
}

.event-card.live::before {
  background: var(--red);
}

.event-card.completed::before {
  background: #738094;
}

.event-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.event-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #aab5c3;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.75px;
  text-transform: uppercase;
}

.event-card.upcoming .event-tag {
  color: var(--cyan);
}

.event-card.live .event-tag {
  color: var(--red);
}

.event-card.completed .event-tag {
  color: #8d9aac;
}

.event-card.live .event-tag::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.event-card.tonight {
  border-color: rgba(255, 189, 131, 0.45);
}

.event-card.tonight::before {
  background: linear-gradient(180deg, var(--peach, #ffbd83), var(--red, #ff6276));
  box-shadow: 0 0 10px rgba(255, 189, 131, 0.6);
}

.event-card.tonight .event-tag {
  color: var(--peach, #ffbd83);
  font-weight: 800;
  letter-spacing: 1px;
}

.event-card.tonight .event-tag::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--peach, #ffbd83);
  box-shadow: 0 0 8px var(--peach, #ffbd83);
  content: "";
  display: inline-block;
  animation: pulse-tonight 2s infinite ease-in-out;
}

@keyframes pulse-tonight {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

.event-card.tonight .event-detail svg {
  stroke: var(--peach, #ffbd83);
}

.hero-date.hero-date-tonight {
  color: var(--peach, #ffbd83);
  font-weight: 700;
}

.hero-date.hero-date-tonight svg {
  stroke: var(--peach, #ffbd83);
}

.calendar-event.tonight {
  border-color: var(--peach, #ffbd83);
  color: var(--peach, #ffbd83);
}

.event-prize {
  color: var(--lime);
  font-family: var(--display-font);
  font-size: 14px;
  font-weight: 700;
}

.social-event-card .event-prize {
  color: #c5a7ff;
}

.event-attendees {
  margin-top: 10px;
  border-top: 1px solid #202d3e;
  color: #aab8c8;
  font-size: 13px;
}

.event-attendees summary {
  padding: 9px 0 4px;
  color: #aab8c8;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  list-style-position: inside;
}

.event-attendees summary:hover,
.event-attendees[open] summary {
  color: var(--cyan);
}

.event-attendees ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 5px 0 2px;
  padding: 0;
  list-style: none;
}

.event-attendees li {
  padding: 5px 9px;
  border: 1px solid #304055;
  border-radius: 999px;
  background: #152132;
  color: #d8e2ed;
  font-size: 12px;
  font-weight: 500;
}

.entry-fee-status {
  color: #aab8c8;
  font-size: 11px;
}

.entry-fee-toggle,
.event-admin-action,
.bracket-winner-button {
  padding: 6px 10px;
  border: 1px solid #398a8b;
  border-radius: 5px;
  background: rgb(36 126 126 / 18%);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}

.entry-fee-toggle:hover,
.event-admin-action:hover,
.bracket-winner-button:hover {
  border-color: var(--cyan);
  background: rgb(36 126 126 / 32%);
}

.tournament-entry-note,
.tournament-bracket-status,
.bracket-waiting-player {
  margin-top: 10px !important;
  color: var(--peach, #ffbd83) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

.tournament-bracket {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #202d3e;
}

.tournament-bracket h4,
.bracket-round h4 {
  margin: 0;
  color: #dce7f2;
  font-family: var(--display-font);
  font-size: 15px;
  letter-spacing: 0.3px;
}

.bracket-round ol {
  display: grid;
  gap: 7px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.bracket-match {
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1px solid #2a394d;
  border-radius: 6px;
  background: #121d2b;
}

.bracket-player {
  color: #d8e2ed;
  font-size: 9px;
}

.bracket-player.waiting {
  color: #8795a8;
}

.bracket-player.winner,
.tournament-champion span {
  color: var(--lime);
  font-weight: 700;
}

.bracket-winner-button {
  text-align: left;
}

.bracket-match-result {
  color: #8291a5;
  font-size: 8px;
}

.bracket-waiting-player {
  margin: 7px 0 0 !important;
}

.tournament-champion {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #73883f;
  border-radius: 6px;
  background: rgb(119 147 45 / 12%);
  font-size: 10px;
}

.event-admin-action {
  justify-self: start;
  margin-top: 9px;
}

.event-card h3 {
  margin: 0 0 5px;
  color: #eef3f8;
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
}

.event-image {
  display: block;
  width: 100%;
  max-height: 220px;
  aspect-ratio: 16 / 9;
  margin: 0 0 12px;
  border: 1px solid #26364a;
  border-radius: 7px;
  background: #0b1320;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.event-image:hover {
  border-color: #43e5dc;
  box-shadow: 0 4px 16px rgba(67, 229, 220, 0.2);
  transform: translateY(-2px);
}

.event-admin-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.event-admin-reminder-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: #151f30;
  border: 1px solid #253247;
  color: #ffbd83;
  transition: all 0.15s ease;
}

.event-admin-reminder-btn:hover {
  background: #253247;
  color: #43e5dc;
  border-color: #43e5dc;
}

.image-lightbox-dialog {
  padding: 0;
  border: 1px solid #253247;
  border-radius: 12px;
  background: #080d17;
  color: #eef3fa;
  max-width: 92vw;
  max-height: 92vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.88);
  overflow: hidden;
  margin: auto;
}

.image-lightbox-dialog::backdrop {
  background: rgba(3, 7, 13, 0.88);
  backdrop-filter: blur(8px);
}

.image-lightbox-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 92vh;
}

.lightbox-close-button {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(16, 24, 39, 0.85);
  border: 1px solid #253247;
  color: #ffbd83;
  font-size: 26px;
  line-height: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.15s ease;
}

.lightbox-close-button:hover {
  background: #253247;
  color: #43e5dc;
  border-color: #43e5dc;
  transform: scale(1.1);
}

#image-lightbox-img {
  display: block;
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  background: #05080f;
}

.image-lightbox-caption {
  width: 100%;
  padding: 12px 18px;
  background: #101827;
  border-top: 1px solid #253247;
  color: #ffbd83;
  font-weight: 700;
  font-size: 14.5px;
  text-align: center;
  box-sizing: border-box;
  letter-spacing: 0.02em;
}

.event-card p {
  margin: 0;
  color: #a4b3c6;
  font-size: 13px;
  line-height: 1.55;
}

.event-divider {
  height: 1px;
  margin: 12px 0 9px;
  background: #202d3e;
}

.event-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c5d2e0;
  font-size: 13px;
}

.event-detail svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: #8595a9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.event-detail strong {
  color: #d4e0eb;
  font-weight: 600;
}

.event-registration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.event-registration-count {
  color: #a4b3c6;
  font-size: 13px;
  font-weight: 600;
}

.event-register-button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #398a8b;
  border-radius: 6px;
  background: rgb(36 126 126 / 18%);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.event-register-button:hover:not(:disabled) {
  border-color: var(--cyan);
  background: rgb(36 126 126 / 32%);
}

.event-register-button:disabled {
  border-color: #344357;
  background: #151e2b;
  color: #8996a7;
  cursor: default;
}

.event-edit-button {
  margin-top: 10px;
  padding: 5px 8px;
  border: 1px solid #35465b;
  border-radius: 5px;
  background: #152132;
  color: #c5d3e1;
  font-size: 9px;
  font-weight: 700;
}

.event-edit-button:hover {
  border-color: var(--cyan-dark);
  color: var(--cyan);
}

.event-card.upcoming .event-detail svg {
  stroke: var(--cyan);
}

.event-card.live .event-detail svg {
  stroke: var(--red);
}

.event-card.completed .event-detail svg {
  stroke: var(--lime);
}

.events-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid #26374a;
  border-radius: 7px;
  color: #bdc9d7;
  font-size: 10px;
  font-weight: 600;
  transition: border-color 160ms ease, color 160ms ease;
}

.events-link:hover {
  border-color: #318789;
  color: var(--cyan);
}

.events-link span {
  color: var(--cyan);
  font-size: 14px;
}

.admin-calendar {
  margin-bottom: 22px;
  padding: 22px;
}

.admin-calendar-heading {
  margin-bottom: 16px;
}

.admin-health-page {
  margin-bottom: 24px;
}

.admin-health-panel {
  padding: 24px;
}

.health-intro {
  margin: 0 0 18px;
  color: #aab8c8;
  font-size: 12px;
  line-height: 1.6;
}

.health-admin-controls {
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d1522;
}

.health-controls-heading {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.health-toggle-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid #233146;
  border-radius: 10px;
  background: #101b2b;
  transition: border-color 0.2s, background-color 0.2s;
}

.health-toggle-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.health-toggle-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.health-toggle-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}

.health-toggle-badge.badge-on {
  background: rgb(67 229 220 / 16%);
  color: var(--cyan);
  border: 1px solid rgb(67 229 220 / 30%);
}

.health-toggle-badge.badge-off {
  background: rgb(255 98 118 / 16%);
  color: #ff8291;
  border: 1px solid rgb(255 98 118 / 30%);
}

.health-toggle-badge.badge-warn {
  background: rgb(255 189 131 / 18%);
  color: #ffbd83;
  border: 1px solid rgb(255 189 131 / 35%);
}

.health-toggle-title {
  margin: 2px 0 0;
  color: #eef3fa;
  font-size: 14px;
  font-weight: 700;
}

.health-toggle-desc {
  margin: 0;
  color: #98a7b9;
  font-size: 11px;
  line-height: 1.5;
}

.health-switch-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.system-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.system-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  position: absolute;
}

.system-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #253247;
  transition: 0.25s;
  border-radius: 34px;
  border: 1px solid #3d4f68;
}

.system-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #cdd8e6;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.system-switch input:checked + .system-switch-slider {
  background-color: var(--cyan);
  border-color: var(--cyan);
}

.system-switch input:checked + .system-switch-slider:before {
  transform: translateX(22px);
  background-color: #080d17;
}

.system-switch input:disabled + .system-switch-slider {
  opacity: 0.45;
  cursor: not-allowed;
}

.health-switch-label {
  font-size: 11px;
  font-weight: 700;
  color: #d7e1eb;
  text-align: center;
}

.health-toggle-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.health-action-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 14px;
  border: 1px solid #35465b;
  border-radius: 6px;
  background: #131d2d;
  color: #eef3fa;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.health-action-button:hover:not(:disabled) {
  background: #1c2b3e;
  border-color: var(--cyan);
  color: var(--cyan);
}

.health-action-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.health-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0d1522;
}

.health-card > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.health-card h3,
.health-collection-checks h3 {
  margin: 0;
  color: #eef3fa;
  font-size: 13px;
}

.health-indicator {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: #283547;
  color: #c4d0dc;
  font-size: 12px;
  font-weight: 800;
}

.health-card[data-health="healthy"] .health-indicator {
  background: rgb(67 229 220 / 16%);
  color: var(--cyan);
}

.health-card[data-health="unavailable"] .health-indicator {
  background: rgb(255 98 118 / 16%);
  color: var(--red);
}

.health-card > strong {
  display: block;
  margin-top: 11px;
  color: #d7e1eb;
  font-size: 12px;
}

.health-card[data-health="healthy"] > strong,
.health-collection-checks [data-health="healthy"] {
  color: var(--cyan);
}

.health-card[data-health="unavailable"] > strong,
.health-collection-checks [data-health="unavailable"] {
  color: #ff8291;
}

.health-card > p {
  margin: 5px 0 0;
  color: #98a7b9;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.health-collection-checks {
  margin-top: 20px;
}

.health-collection-checks ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.health-collection-checks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #c3cedb;
  font-size: 11px;
}

.health-collection-checks li strong {
  color: #aab8c8;
  font-size: 10px;
  text-align: right;
}

.health-updated {
  margin: 16px 0 0;
  color: #8797aa;
  font-size: 10px;
}

.calendar-create-button,
.calendar-today-button,
.calendar-nav-button,
.delete-event-button,
.dialog-close-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #35465b;
  border-radius: 7px;
  background: #152132;
  color: #e8f0f7;
  font-size: 11px;
  font-weight: 700;
  transition: border-color 150ms ease, background 150ms ease;
}

.calendar-create-button {
  gap: 7px;
  padding: 0 13px;
  border-color: #43e5dc;
  background: #43e5dc;
  color: #082021;
}

.calendar-create-button:hover {
  background: #7ef1e8;
}

.calendar-create-button span {
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.calendar-today-button {
  min-width: 55px;
  padding: 0 10px;
}

.calendar-today-button:hover,
.calendar-nav-button:hover {
  border-color: #318b91;
  background: #1b2b3c;
}

.calendar-toolbar {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.calendar-toolbar h3 {
  min-width: 150px;
  margin: 0;
  color: #f3f7fb;
  font-family: var(--display-font);
  font-size: 23px;
  text-align: center;
}

.calendar-nav-button {
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.calendar-nav-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.calendar-toolbar .calendar-today-button {
  margin-left: 5px;
}

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

.calendar-weekdays {
  border: 1px solid #27364a;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: #131e2e;
}

.calendar-weekdays span {
  padding: 10px 8px;
  color: #9baabd;
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.calendar-grid {
  overflow: hidden;
  border: 1px solid #27364a;
  border-radius: 0 0 9px 9px;
  background: #27364a;
  gap: 1px;
}

.calendar-day {
  min-width: 0;
  min-height: 95px;
  padding: 6px;
  background: #0e1725;
}

.calendar-day.outside-month {
  background: #0b121e;
}

.calendar-day.outside-month .calendar-day-number {
  color: #5e6e82;
}

.calendar-day-number {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #c4ceda;
  font-size: 10px;
}

.calendar-day-number:hover {
  background: #1c3042;
  color: #fff;
}

.calendar-day-number.today {
  background: #43e5dc;
  color: #081516;
  font-weight: 800;
}

.calendar-day-events {
  display: grid;
  gap: 3px;
  margin-top: 3px;
}

.calendar-event {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 4px 5px;
  border: 0;
  border-left: 2px solid #728198;
  border-radius: 3px;
  background: #1a2637;
  color: #d9e3ec;
  font-size: 9px;
  line-height: 1.3;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event.upcoming {
  border-left-color: var(--cyan);
  background: rgb(31 117 121 / 22%);
}

.calendar-event.live {
  border-left-color: var(--red);
  background: rgb(133 47 65 / 23%);
}

.calendar-event.completed {
  border-left-color: #8491a3;
}

.calendar-event:hover {
  filter: brightness(1.3);
}

.calendar-event-time {
  margin-right: 4px;
  color: #9babbc;
}

.calendar-unscheduled {
  margin-top: 16px;
}

.calendar-unscheduled h3 {
  margin: 0 0 9px;
  color: #abb9c9;
  font-size: 11px;
}

.calendar-unscheduled-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.unscheduled-event {
  padding: 8px 10px;
  border: 1px solid #334357;
  border-radius: 7px;
  background: #131e2e;
  color: #d9e3ec;
  font-size: 10px;
}

.unscheduled-event:hover {
  border-color: var(--cyan-dark);
}

.event-dialog {
  width: min(510px, calc(100% - 28px));
  max-height: min(90vh, 820px);
  overflow-y: auto;
  padding: 0;
  border: 1px solid #35465a;
  border-radius: 14px;
  background: #101a28;
  color: #eef3fa;
  box-shadow: 0 24px 90px rgb(0 0 0 / 65%);
}

dialog.event-dialog[open] {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  z-index: 100000 !important;
}

.event-dialog::backdrop {
  position: fixed;
  inset: 0;
  background: rgb(3 7 13 / 77%);
  backdrop-filter: blur(4px);
  z-index: 99999;
}

.event-dialog form {
  display: grid;
  gap: 14px;
  padding: 23px;
}

.event-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 2px;
}

.event-dialog-heading h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 27px;
}

.dialog-close-button {
  width: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 22px;
  font-weight: 400;
}

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

.form-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.form-field[hidden] {
  display: none;
}

#prize-field[hidden] {
  display: none;
}

.form-field > span {
  color: #c6d1dd;
  font-size: 10px;
  font-weight: 700;
}

.form-field > label {
  color: #c6d1dd;
  font-size: 10px;
  font-weight: 700;
}

.form-field small {
  color: #77879a;
  font-size: 9px;
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #34445a;
  border-radius: 7px;
  background: #0b1320;
  color: #edf3f9;
  color-scheme: dark;
  font: inherit;
  font-size: 11px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--cyan-dark);
  outline: 2px solid rgb(67 229 220 / 15%);
}

.form-field textarea {
  resize: vertical;
}

.form-field .image-size-note {
  margin: -2px 0 0;
  color: #8190a3;
  font-size: 9px;
  line-height: 1.5;
}

.event-image-preview {
  max-width: 320px;
}

.event-image-preview img {
  display: block;
  width: 100%;
  max-height: 180px;
  border: 1px solid #34445a;
  border-radius: 7px;
  object-fit: cover;
}

.remove-event-image-button {
  justify-self: start;
  padding: 5px 8px;
  border: 1px solid #783d4a;
  border-radius: 5px;
  background: #251722;
  color: #ff9da9;
  font-size: 9px;
}

.event-form-error {
  margin: 0;
  color: #ff9da9;
  font-size: 11px;
  line-height: 1.5;
}

.event-dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.dialog-actions-spacer {
  flex: 1;
}

.delete-event-button {
  padding: 0 11px;
  border-color: #783d4a;
  color: #ff9da9;
}

.delete-event-button:hover {
  border-color: #ff6276;
  background: #351b25;
}

.event-dialog-actions .calendar-create-button {
  min-height: 36px;
}

.join-card {
  position: relative;
  display: flex;
  min-height: 0;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 18px;
  overflow: hidden;
  border: 1px solid #176c74;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 90% 45%, rgb(44 198 192 / 17%), transparent 43%),
    linear-gradient(110deg, #102337 0%, #102c3d 51%, #10343d 100%);
}

.join-copy {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: none;
  align-items: center;
  gap: 18px;
  padding: 0;
}

.join-copy .section-kicker {
  display: none;
}

.join-card h2 {
  flex: 0 0 auto;
  font-size: 20px;
}

.join-card p:not(.section-kicker) {
  flex: 1 1 auto;
  max-width: none;
  margin: 0;
  color: #b7c9d5;
  font-size: 12px;
  line-height: 1.45;
}

.join-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: var(--cyan);
  color: #092021;
  font-size: 10px;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.join-button:hover {
  transform: translateY(-1px);
  background: #7ef1e8;
}

.join-button svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.join-decoration {
  position: absolute;
  inset: 0 0 0 auto;
  width: 18%;
  overflow: hidden;
  opacity: 0.3;
}

.join-ring {
  position: absolute;
  top: 50%;
  right: -70px;
  width: 250px;
  height: 250px;
  transform: translateY(-50%);
  border: 1px solid rgb(100 230 220 / 20%);
  border-radius: 50%;
}

.ring-two {
  right: -24px;
  width: 158px;
  height: 158px;
  border-color: rgb(100 230 220 / 17%);
}

.join-spark {
  position: absolute;
  top: 32%;
  right: 48px;
  color: rgb(153 247 225 / 40%);
  font-size: 22px;
}

.site-footer {
  border-top: 1px solid #1d2939;
  background: #0b111c;
}

.footer-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer-brand .brand-mark svg {
  width: 20px;
}

.footer-brand .brand-name {
  font-size: 13px;
}

.footer-inner p,
.copyright {
  margin: 0;
  color: #76859a;
  font-size: 10px;
}

.copyright {
  text-align: right;
}

.footer-laketime-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 189, 131, 0.35);
  border-radius: 999px;
  padding: 7px 20px 7px 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: transform 160ms ease, opacity 160ms ease, border-color 160ms ease, background-color 160ms ease;
  vertical-align: middle;
  max-width: 100%;
}

.footer-laketime-link:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 189, 131, 0.65);
  opacity: 1;
}

.footer-laketime-logo {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 189, 131, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  flex-shrink: 0;
}

.footer-laketime-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.footer-laketime-powered {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-laketime-brand {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffbd83;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.footer-laketime-sub {
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.footer-laketime-dot {
  color: rgba(255, 189, 131, 0.6);
  font-size: 11px;
}

/* ==========================================================================
   Lake Time Consulting Capsule Pill - Light Mode Gradient Override
   ========================================================================== */
[data-theme="light"] .footer-laketime-link {
  background: linear-gradient(135deg, #ff6b2b 0%, #ec4899 52%, #7c3aed 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.28), 0 2px 6px rgba(124, 58, 237, 0.16);
}

[data-theme="light"] .footer-laketime-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff7a3d 0%, #f43f5e 52%, #8b5cf6 100%);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 22px rgba(236, 72, 153, 0.42), 0 3px 8px rgba(124, 58, 237, 0.25);
}

[data-theme="light"] .footer-laketime-logo {
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background: #ffffff;
}

[data-theme="light"] .footer-laketime-powered {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .footer-laketime-brand {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .footer-laketime-sub {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .footer-laketime-dot {
  color: rgba(255, 255, 255, 0.85);
}

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

@media (max-width: 850px) {
  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(100% - 36px, 680px);
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }

  .main-column {
    min-width: 0;
    width: 100%;
  }

  .events-panel {
    min-height: 0;
  }

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

  .events-link {
    max-width: 240px;
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 86px;
  }

  .header-inner,
  .page-shell,
  .footer-inner {
    width: calc(100% - 24px);
  }

  .header-inner {
    min-height: 76px;
    height: auto;
    padding: 6px 0;
  }

  .brand {
    gap: 7px;
    flex-shrink: 0;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .brand-mark svg {
    width: 22px;
  }

  .brand-name {
    font-size: 10px;
    letter-spacing: 0.35px;
    line-height: 1.05;
    gap: 1px;
  }

  .site-menu {
    margin-left: auto;
    margin-right: 4px !important;
  }

  .header-actions {
    gap: 4px;
  }

  .site-menu-toggle {
    height: 32px;
    min-height: 32px;
    box-sizing: border-box;
    gap: 4px;
    padding: 0 7px;
    font-size: 10px;
  }

  .theme-toggle-button {
    height: 32px !important;
    min-height: 32px !important;
    width: 32px !important;
    min-width: 32px !important;
    box-sizing: border-box;
    margin: 0 4px 0 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
  }

  .theme-picker-wrap {
    margin: 0 !important;
  }

  .sign-in-button {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    box-sizing: border-box;
    gap: 4px;
    padding: 0 7px;
    font-size: 10px;
    flex-shrink: 0;
  }

  .sign-in-button svg {
    width: 14px;
    height: 14px;
  }

  #peachbook-auth-btn {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    box-sizing: border-box;
    padding: 0 7px;
    font-size: 10px;
    gap: 4px;
    flex-shrink: 0;
  }

  .header-actions .theme-toggle-button,
  .header-actions #refresh-cache-btn {
    width: 32px;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    box-sizing: border-box;
    font-size: 13px;
  }

  .header-actions .calendar-create-button {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    box-sizing: border-box;
    padding: 0 8px;
    font-size: 10px;
  }

  .header-actions .calendar-create-button span {
    font-size: 10px !important;
  }

  .sign-in-avatar,
  #peachbook-user-avatar {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    font-size: 8px;
  }

  .past-result-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .past-result-score {
    gap: 8px;
    width: 100%;
  }

  .past-result-player {
    gap: 6px;
    font-size: 12px;
  }

  .past-result-score strong {
    font-size: 16px;
  }

  .past-result-score .standing-avatar {
    width: 22px;
    height: 22px;
    font-size: 9px;
  }
}

@media (max-width: 440px) {
  .header-inner {
    min-height: 70px;
    height: auto;
    padding: 6px 0;
  }

  .brand {
    gap: 5px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .brand-mark svg {
    width: 19px;
  }

  .brand-name {
    font-size: 9px;
    letter-spacing: 0.25px;
    line-height: 1.05;
    gap: 1px;
  }

  .site-menu {
    margin-right: 3px !important;
  }

  .site-menu-toggle {
    height: 30px;
    min-height: 30px;
    padding: 0 5px;
    font-size: 9.5px;
    gap: 3px;
  }

  .theme-toggle-button {
    height: 30px !important;
    min-height: 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    flex-shrink: 0 !important;
    margin-right: 3px !important;
    font-size: 12px !important;
  }

  .sign-in-button {
    height: 30px;
    min-height: 30px;
    padding: 0 6px;
    font-size: 9px;
    gap: 3px;
  }

  .header-actions {
    gap: 3px;
  }

  #peachbook-auth-btn {
    height: 30px;
    min-height: 30px;
    padding: 0 6px;
    font-size: 9px;
    gap: 3px;
  }

  .header-actions .theme-toggle-button,
  .header-actions #refresh-cache-btn {
    width: 30px;
    height: 30px;
    min-height: 30px;
  }

  .header-actions .calendar-create-button {
    height: 34px;
    min-height: 34px;
    padding: 0 8px;
    font-size: 10px;
  }

  .header-actions .calendar-create-button span {
    font-size: 10px !important;
  }

  .sign-in-avatar,
  #peachbook-user-avatar {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
  }

  .sign-in-button svg {
    width: 14px;
  }

  .account-name {
    display: none;
  }

  .page-shell {
    padding-top: 17px;
    padding-bottom: 46px;
  }

  .hero {
    min-height: 330px;
    height: auto;
    max-height: none;
    border-radius: 12px;
    align-items: flex-start;
  }

  .hero-slide {
    background-position: 72% 35%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgb(7 13 22 / 93%) 0%, rgb(7 13 22 / 69%) 65%, rgb(7 13 22 / 37%) 100%),
      linear-gradient(0deg, rgb(7 13 22 / 57%), transparent 55%);
  }

  .hero-content {
    padding: 22px 10px 24px 16px;
    max-width: calc(100% - 160px);
    flex: 1;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.05;
  }

  .hero h1 .hero-local-line {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .hero h1 .hero-league-subtitle {
    font-size: 14px;
    line-height: 1.2;
  }


  .hero-event-description {
    display: block;
    margin: 4px 0 6px;
    font-size: 10px;
    line-height: 1.35;
    color: #c2d1e0;
  }

  .hero-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 9.5px;
    margin-top: 4px;
    padding-bottom: 8px;
  }

  .hero-date,
  .hero-prize {
    gap: 5px;
  }

  .hero-date svg {
    width: 12px;
    height: 12px;
  }

  .hero-description {
    position: relative;
    margin: 8px 0 0;
    font-size: 10px;
    line-height: 1.35;
  }

  .hero-event-title {
    font-size: 12px;
    margin-top: 8px;
    color: var(--lime);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-register {
    padding-left: 0;
    border-left: 0;
    flex-basis: 100%;
  }

  .hero-controls {
    left: 16px;
    right: auto;
    bottom: 12px;
    gap: 7px;
  }

  .demo-note {
    margin: 13px 2px 18px;
    font-size: 9px;
  }

  .dashboard-grid,
  .main-column {
    gap: 15px;
  }

  .dashboard-grid,
  .main-column,
  .member-dashboard {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .scoreboard-panel,
  .standings-panel,
  .past-results-panel,
  .events-panel,
  .gloves-panel,
  .feed-panel,
  .polls-panel,
  .marketplace-panel,
  .peachbook-hub-panel,
  .member-of-month-card {
    padding: 16px 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .peachbook-hub-panel .section-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .open-peachbook-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: normal;
  }

  .standings-panel {
    overflow: hidden;
  }

  .standings-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .standings-table {
    width: 100%;
    min-width: 300px;
  }

  .standings-table th,
  .standings-table td {
    padding: 8px 6px;
    font-size: 11px;
  }

  .standings-table td:not(:first-child),
  .standings-table th:not(:first-child) {
    width: 44px;
    min-width: 36px;
    padding: 8px 4px;
  }

  .standings-table td:first-child,
  .standings-table th:first-child {
    max-width: 140px;
  }

  .standing-player {
    max-width: 100%;
    gap: 6px;
  }

  .standing-username {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90px;
  }

  .admin-calendar {
    margin-bottom: 15px;
    padding: 15px 10px;
  }

  .admin-health-panel {
    padding: 16px 12px;
  }

  .health-grid,
  .health-toggles-grid,
  .health-collection-checks ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .health-card {
    padding: 12px;
  }

  .calendar-weekdays span {
    padding: 8px 2px;
    font-size: 9px;
    text-align: center;
  }

  .calendar-day {
    min-height: 71px;
    padding: 3px;
  }

  .calendar-day-number {
    width: 22px;
    height: 22px;
    margin: 0 auto;
    font-size: 9px;
  }

  .calendar-event {
    padding: 3px 2px;
    border-left-width: 2px;
    font-size: 8px;
  }

  .calendar-event-time {
    display: none;
  }

  .calendar-toolbar {
    gap: 7px;
  }

  .calendar-toolbar h3 {
    min-width: 115px;
    font-size: 20px;
  }

  .calendar-toolbar .calendar-today-button {
    min-width: 46px;
    margin-left: 0;
    padding: 0 6px;
    font-size: 10px;
  }

  .calendar-create-button {
    min-height: 33px;
    gap: 4px;
    padding: 0 8px;
    font-size: 10px;
  }

  .calendar-create-button span {
    font-size: 16px;
  }

  .event-dialog form {
    gap: 12px;
    padding: 18px 15px;
  }

  .section-heading {
    margin-bottom: 15px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .score-card {
    padding: 12px 12px 13px;
  }

  .team-name {
    font-size: 11px;
  }

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

  .past-result-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .past-result-score {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .past-result-player {
    gap: 6px;
    font-size: 12px;
  }

  .past-result-player-name,
  .past-result-player span:not(.standing-avatar) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  .past-result-player-right .past-result-player-name,
  .past-result-player-right span:not(.standing-avatar) {
    text-align: right;
  }

  .past-result-score strong {
    font-size: 16px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(8, 13, 23, 0.45);
    letter-spacing: 0.5px;
    flex-shrink: 0;
  }

  .past-result-score .standing-avatar {
    width: 22px;
    height: 22px;
    font-size: 9px;
    flex-shrink: 0;
  }

  .match-score-form {
    gap: 7px;
  }

  .match-score-form label {
    flex: 1 1 90px;
  }

  .match-score-form input {
    width: 100%;
  }

  .chat-panel {
    padding: 17px 14px;
  }

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

  .chat-presence {
    padding: 10px 12px;
  }

  .chat-online-users {
    display: flex;
    max-height: 90px;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 9px;
  }

  .chat-messages {
    min-height: 120px;
    max-height: 270px;
    padding: 6px;
    gap: 4px;
  }

  .join-copy {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .join-decoration {
    display: none;
  }

  .join-card h2 {
    font-size: 18px;
  }

  .join-card p:not(.section-kicker) {
    flex-basis: 100%;
    order: 1;
  }

  .join-button {
    margin-left: auto;
  }

  .footer-inner {
    min-height: 95px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 16px 0;
  }

  .footer-brand {
    order: 1;
    margin: 0 auto;
  }

  .footer-center-group {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 4px 0;
  }

  .footer-nav-links {
    width: 100%;
    justify-content: center;
  }

  .footer-bug-report-wrap {
    text-align: center;
    margin: 0;
    width: 100%;
  }

  .copyright,
  .footer-laketime-link {
    order: 5;
    max-width: fit-content;
    width: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 8px auto 0;
  }

  .footer-laketime-logo {
    width: 50px;
    height: 50px;
  }
}

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

/* ---------- Gloves Off!, social feed, profile ---------- */
.menu-link-button {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.gloves-panel,
.feed-panel {
  margin-top: 22px;
  padding: 22px;
}

.gloves-intro {
  max-width: 70ch;
  margin: 0 0 14px;
  color: #a4b1c0;
  font-size: 12px;
  line-height: 1.6;
}

.gloves-roster-wrap {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #253247;
  border-radius: 10px;
  background: rgb(7 13 22 / 48%);
}

.gloves-roster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.gloves-roster-title {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.gloves-roster-count {
  color: #8fa1b8;
  font-size: 11px;
  font-weight: 600;
}

.gloves-roster-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 2px;
}

.gloves-roster-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #29384b;
  border-radius: 8px;
  background: #131d2d;
  color: #e6eef8;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 120ms ease;
}

.gloves-roster-item:hover {
  border-color: var(--cyan-dark);
  background: #182538;
}

.gloves-roster-item.selected {
  border-color: var(--peach);
  background: linear-gradient(120deg, rgb(255 189 131 / 14%), rgb(67 229 220 / 8%));
  box-shadow: 0 0 0 1px rgb(255 189 131 / 35%);
}

.gloves-roster-avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.gloves-open-badge {
  background: linear-gradient(145deg, #2d2318, #1f1710);
  border-color: #5c4328;
  font-size: 13px;
}

.gloves-roster-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.gloves-roster-info strong {
  font-size: 12px;
  color: #f4f7fb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gloves-roster-info small {
  font-size: 10px;
  color: #8b9bb1;
}

.gloves-roster-action {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #32445a;
  background: #0f1724;
  color: #c6d4e4;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.gloves-roster-item.selected .gloves-roster-action {
  border-color: var(--peach);
  background: rgb(255 189 131 / 20%);
  color: var(--peach);
}

.gloves-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.gloves-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1.4fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 8px;
}

.gloves-submit {
  min-height: 38px;
  white-space: nowrap;
}

.gloves-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.gloves-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #253245;
  border-left: 3px solid var(--peach);
  border-radius: 9px;
  background: linear-gradient(110deg, #111b2a 0%, #0e1725 100%);
}

.gloves-card-body {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.gloves-card-body strong {
  font-size: 13px;
}

.gloves-card-meta {
  color: var(--muted);
  font-size: 10px;
}

.gloves-card-message {
  margin: 4px 0 0;
  color: #d5deea;
  font-size: 12px;
  font-style: italic;
  overflow-wrap: anywhere;
}

.gloves-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gloves-card-actions .chat-delete-button {
  margin-left: 0;
}

.gloves-match-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #253247;
}

.gloves-match-heading {
  margin: 0 0 10px;
  color: var(--peach);
  font-family: var(--display-font);
  font-size: 20px;
  letter-spacing: 0.04em;
}

.gloves-match {
  border-left: 3px solid var(--peach);
}

.gloves-match .chat-delete-button,
.gloves-match .calendar-today-button {
  margin: 10px 8px 0 0;
}

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

.feed-form-fields {
  display: grid;
  gap: 8px;
}

.feed-image-button {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px dashed #3d5670;
  border-radius: 7px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.feed-image-button:hover,
#feed-image:focus-visible + .feed-image-button {
  border-color: var(--cyan);
  background: rgb(67 229 220 / 8%);
}

.feed-image-preview {
  max-width: 260px;
}

.feed-image-preview img {
  display: block;
  width: 100%;
  max-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.feed-form textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #34445a;
  border-radius: 7px;
  background: #0b1320;
  color: #edf3f9;
  color-scheme: dark;
  font: inherit;
  font-size: 12px;
  resize: vertical;
}

.feed-form textarea:focus {
  border-color: var(--cyan-dark);
  outline: 2px solid rgb(67 229 220 / 15%);
}

.feed-form .calendar-create-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.feed-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.feed-post {
  overflow: hidden;
  border: 1px solid #253245;
  border-radius: 11px;
  background: linear-gradient(150deg, #111b2a 0%, #0e1725 100%);
}

.feed-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.feed-post-author {
  display: grid;
  gap: 1px;
}

.feed-post-author strong {
  font-size: 13px;
}

.feed-post-author time,
.feed-comment time {
  color: var(--muted);
  font-size: 10px;
}

.feed-post-image {
  display: block;
  width: 100%;
  max-height: 520px;
  background: #060a12;
  object-fit: contain;
}

.feed-post-description {
  margin: 0;
  padding: 12px 14px 4px;
  color: #f4f7fb;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.feed-post-moderated .chat-red-warning-stamp {
  margin: 0 14px 6px;
}

.feed-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px 10px;
}

.feed-reaction {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid #2c3d52;
  border-radius: 999px;
  background: #0d1624;
  color: #dbe5f0;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.feed-reaction:hover {
  border-color: var(--cyan-dark);
  transform: translateY(-1px);
}

.feed-reaction.active {
  border-color: var(--cyan);
  background: rgb(67 229 220 / 14%);
}

.feed-reaction-count {
  color: #b8c5d4;
  font-size: 11px;
  font-weight: 700;
}

.feed-comments {
  display: grid;
  gap: 5px;
  padding: 0 14px;
}

.feed-comment {
  padding: 5px 9px;
  border-radius: 6px;
  background: #0c1420;
}

.feed-comment p {
  margin: 0;
  color: #f4f7fb;
  font-size: 11.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.feed-comment .chat-message-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.feed-comment-form {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
}

.feed-comment-form input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #34445a;
  border-radius: 7px;
  background: #0b1320;
  color: #edf3f9;
  font: inherit;
  font-size: 12px;
}

.feed-comment-form input:focus {
  border-color: var(--cyan-dark);
  outline: 2px solid rgb(67 229 220 / 15%);
}

.feed-load-more {
  display: block;
  margin: 16px auto 0;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-identity > div {
  display: grid;
  gap: 2px;
}

.profile-identity span {
  color: var(--muted);
  font-size: 11px;
}

.profile-avatar {
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
}

.profile-preferences {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px 14px 14px;
  border: 1px solid #2c3d52;
  border-radius: 9px;
}

.profile-preferences legend {
  padding: 0 6px;
  color: var(--peach);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.profile-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--cyan);
}

.profile-check span {
  display: grid;
  gap: 1px;
  font-size: 12px;
}

.profile-check small {
  color: var(--muted);
  font-size: 10px;
}

.profile-saved {
  margin: 0;
  color: var(--lime);
  font-size: 11px;
}

@media (max-width: 760px) {
  .gloves-form,
  .feed-form {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   Members Presence Banner & Green Counts
   ========================================================================== */

.presence-banner {
  border-bottom: 1px solid rgb(37 50 71 / 80%);
  background: linear-gradient(180deg, rgb(16 24 39 / 95%) 0%, rgb(11 18 29 / 95%) 100%);
  padding: 6px 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #a8b8cc;
  box-shadow: 0 2px 8px rgb(0 0 0 / 25%);
}

.presence-banner-inner {
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.presence-status-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.presence-count-green,
.presence-num-green {
  color: #22c55e;
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.presence-banner-sep {
  color: #3b4e68;
}

/* ==========================================================================
   Admin Email Toggle Button
   ========================================================================== */

.admin-email-menu-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #ffbd83;
}

.admin-email-menu-button:hover {
  color: #ff6276;
}

.admin-email-menu-button.emails-disabled {
  color: #22c55e;
}

/* ==========================================================================
   User Avatars & Badges (Everywhere beside usernames)
   ========================================================================== */

.user-avatar-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  vertical-align: middle;
  background: linear-gradient(145deg, #243348, #172333);
  border: 1px solid #334359;
  color: #c8d5e2;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.user-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sign-in-avatar,
#peachbook-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  max-width: 24px;
  max-height: 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--cyan-dark, #00d2c4);
  flex-shrink: 0;
  vertical-align: middle;
  background: #1d2a3a;
  color: #c8d5e2;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
}

.sign-in-avatar img,
#peachbook-user-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-message-avatar,
.chat-online-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: #1d2a3a;
  border: 1px solid #334359;
  font-size: 9px;
  color: #a8b8cc;
  font-weight: 700;
  line-height: 1;
}

.chat-online-avatar {
  width: 22px;
  height: 22px;
}

.chat-message-avatar img,
.chat-online-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: #1d2a3a;
  border: 1px solid #334359;
  font-size: 12px;
  color: #a8b8cc;
  font-weight: 700;
}

.feed-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.comment-avatar-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: #1d2a3a;
  border: 1px solid #334359;
  font-size: 9px;
  color: #a8b8cc;
  font-weight: 700;
}

.comment-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}

/* Profile dialog avatar editor */
.profile-avatar-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #141f2e;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.profile-avatar-fallback {
  color: var(--muted);
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 700;
}

.profile-info-wrap {
  display: grid;
  gap: 4px;
}

.profile-avatar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.avatar-upload-btn,
.avatar-google-btn,
.avatar-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border: 1px solid #334258;
  border-radius: 6px;
  background: #162232;
  color: #cfdbeb;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.avatar-upload-btn:hover {
  border-color: var(--cyan);
  background: #1c2b3e;
}

.avatar-google-btn {
  color: var(--peach);
}

.avatar-google-btn:hover {
  border-color: var(--peach);
  background: #252433;
}

.avatar-remove-btn {
  color: var(--red);
}

.avatar-remove-btn:hover {
  border-color: var(--red);
  background: rgb(255 98 118 / 10%);
}

/* ==========================================================================
   Admin Menu Beside User Menu
   ========================================================================== */

.admin-site-menu {
  margin-left: 0;
  margin-right: 12px;
}

.admin-menu-toggle {
  border-color: #4a3828;
  background: #1f1a14;
  color: var(--peach);
}

.admin-menu-toggle span {
  color: var(--peach);
}

.admin-menu-toggle:hover,
.admin-site-menu[open] .admin-menu-toggle {
  border-color: var(--peach);
  color: #fff;
}

.admin-menu-panel {
  border-color: #4a3828;
  background: #181410;
}

/* ==========================================================================
   Theme Toggle & Popover Menu
   ========================================================================== */

.theme-picker-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-toggle-button {
  display: inline-flex;
  height: 40px;
  min-height: 40px;
  width: 40px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  padding: 0;
  border: 1px solid var(--line, #334258);
  border-radius: 8px;
  background: var(--surface, #131e2d);
  color: var(--text, #f4f7fb);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.theme-toggle-button:hover {
  border-color: var(--cyan);
  background: var(--surface-raised, #182638);
  transform: scale(1.05);
}

.theme-toggle-icon {
  line-height: 1;
  display: block;
}

.theme-picker-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1200;
  min-width: 210px;
  padding: 8px;
  background: var(--surface, #101827);
  border: 1px solid var(--line, #253247);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.theme-picker-popover[hidden] {
  display: none !important;
}

.theme-option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text, #eef3fa);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.theme-option-btn:hover {
  background: var(--surface-raised, rgba(255, 255, 255, 0.06));
  border-color: var(--line, rgba(255, 255, 255, 0.12));
}

.theme-option-btn.active {
  background: rgba(67, 229, 220, 0.12);
  border-color: var(--cyan, #43e5dc);
  color: var(--cyan, #43e5dc);
}

.theme-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  display: inline-block;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Light Mode Theme Overrides [data-theme="light"]
   Peach City Sunset Arcade Palette: Whites, Oranges, Purples, Pinks & Dark Ink
   ========================================================================== */

[data-theme="light"] {
  color-scheme: light;
  --page: #fffaf6;
  --surface: #ffffff;
  --surface-raised: #fdf7ff;
  --line: #ebd2e8;
  --muted: #533b6e;
  --text: #181028;
  --cyan: #7c3aed;
  --cyan-dark: #6d28d9;
  --peach: #ea580c;
  --lime: #db2777;
  --red: #e11d48;
  background: #fffaf6;
  color: #181028;
}

[data-theme="light"] body {
  background:
    radial-gradient(ellipse at 12% 0%, rgb(255 107 43 / 16%), transparent 38rem),
    radial-gradient(ellipse at 88% 6%, rgb(236 72 153 / 14%), transparent 36rem),
    radial-gradient(ellipse at 50% 55%, rgb(124 58 237 / 9%), transparent 46rem),
    linear-gradient(180deg, #fffaf6 0%, #fff5f9 52%, #f9f5ff 100%);
  color: #181028;
}

[data-theme="light"] .site-header {
  border-bottom: 2px solid #f2bfe0;
  background: rgb(255 255 255 / 93%);
  box-shadow: 0 4px 20px rgb(124 58 237 / 8%);
  backdrop-filter: blur(16px);
}

[data-theme="light"] .brand-mark {
  border-color: #fdba74;
  background: linear-gradient(145deg, #ffb36b, #ff5e8e, #a855f7);
  box-shadow: 0 4px 16px rgb(236 72 153 / 28%);
}

[data-theme="light"] .brand-name {
  color: #181028;
}

[data-theme="light"] .brand-line-accent {
  color: #c026d3;
}

[data-theme="light"] .site-menu-toggle,
[data-theme="light"] .sign-in-button,
[data-theme="light"] .theme-toggle-button,
[data-theme="light"] .sport-picker-button {
  border-color: #e4bfe6;
  background: #ffffff;
  color: #181028;
  box-shadow: 0 2px 8px rgb(124 58 237 / 7%);
}

[data-theme="light"] .site-menu-toggle span {
  color: #ea580c;
}

[data-theme="light"] .site-menu-toggle:hover,
[data-theme="light"] .sign-in-button:hover,
[data-theme="light"] .theme-toggle-button:hover,
[data-theme="light"] .sport-picker-button:hover,
[data-theme="light"] .site-menu[open] .site-menu-toggle {
  border-color: #ec4899;
  background: linear-gradient(135deg, #fff5f0 0%, #fdf2f8 55%, #f5f3ff 100%);
  color: #6d28d9;
}

[data-theme="light"] .admin-menu-toggle {
  border-color: #fdba74;
  background: linear-gradient(135deg, #fff7ed, #fce7f3);
  color: #c2410c;
}

[data-theme="light"] .admin-menu-toggle span {
  color: #ea580c;
}

[data-theme="light"] .admin-menu-toggle:hover,
[data-theme="light"] .admin-site-menu[open] .admin-menu-toggle {
  border-color: #ea580c;
  color: #9a3412;
}

[data-theme="light"] .site-menu-panel,
[data-theme="light"] .sport-options,
[data-theme="light"] .chat-emoji-picker,
[data-theme="light"] .chat-actions-panel {
  border-color: #e4bfe6;
  background: #ffffff;
  box-shadow: 0 16px 38px rgb(88 28 135 / 15%);
}

[data-theme="light"] .admin-menu-panel {
  border-color: #fdba74;
  background: #fffaf5;
}

[data-theme="light"] .menu-link,
[data-theme="light"] .sport-option,
[data-theme="light"] .chat-action-item {
  color: #231438;
}

[data-theme="light"] .menu-link:hover,
[data-theme="light"] .menu-link[aria-current="page"],
[data-theme="light"] .sport-option:hover,
[data-theme="light"] .sport-option.selected,
[data-theme="light"] .chat-action-item:hover {
  background: linear-gradient(90deg, rgb(255 107 43 / 12%), rgb(236 72 153 / 12%), rgb(124 58 237 / 12%));
  color: #6d28d9;
}

[data-theme="light"] .sport-option span {
  color: #5b4378;
}

[data-theme="light"] .account-name {
  color: #3d2659;
  font-weight: 600;
}

[data-theme="light"] .presence-banner {
  border-bottom: 1px solid #f0c4e0;
  background: linear-gradient(90deg, #fff4eb 0%, #fdf2f8 50%, #f5f0ff 100%);
  color: #231438;
  box-shadow: 0 2px 10px rgb(236 72 153 / 7%);
}

[data-theme="light"] .presence-count-green,
[data-theme="light"] .presence-num-green {
  color: #15803d;
}

[data-theme="light"] .presence-banner-sep {
  color: #c084fc;
}

/* Hero Banner in Light Mode: Luminous Sunset Overlay & Crisp Dark Typography */
[data-theme="light"] .hero {
  border: 1.5px solid #f0bde0;
  background: #fff5f8;
  box-shadow:
    0 14px 36px -6px rgb(124 58 237 / 14%),
    0 6px 18px -4px rgb(255 107 43 / 12%);
}

[data-theme="light"] .hero-shade {
  background:
    linear-gradient(
      90deg,
      rgb(255 255 255 / 94%) 0%,
      rgb(255 248 243 / 82%) 30%,
      rgb(253 242 248 / 20%) 58%,
      rgb(255 255 255 / 4%) 100%
    ),
    linear-gradient(0deg, rgb(255 248 244 / 55%) 0%, transparent 40%);
}

[data-theme="light"] .eyebrow {
  color: #c026d3;
}

[data-theme="light"] .eyebrow-dot {
  background: #ff6b2b;
  box-shadow: 0 0 12px rgb(255 107 43 / 75%);
}

[data-theme="light"] .hero h1,
[data-theme="light"] .hero-title-main,
[data-theme="light"] .hero h1 .hero-league-subtitle {
  color: #181028;
}

[data-theme="light"] .hero h1 .hero-league-social-club {
  color: #0891b2;
}

[data-theme="light"] .hero h1 .hero-local-line {
  color: #3b235a;
  font-weight: 600;
}

[data-theme="light"] .hero h1 .hero-league-name > span:first-child {
  background: linear-gradient(95deg, #ea580c 0%, #db2777 52%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .hero-description {
  color: #0f766e;
  font-weight: 600;
}

[data-theme="light"] .hero-event-title {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .hero-event-description {
  color: #f1f5f9;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .hero-date {
  color: #fed7aa;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .hero-prize {
  color: #43e5dc;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .hero-register {
  border-left-color: rgba(255, 255, 255, 0.35);
  color: #cbd5e1;
}

[data-theme="light"] .carousel-button {
  border-color: #e4bfe6;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 2px 8px rgb(24 16 40 / 12%);
}

[data-theme="light"] .carousel-button:hover {
  border-color: #ff6b2b;
  background: #ffffff;
}

[data-theme="light"] .carousel-button svg {
  stroke: #181028;
}

[data-theme="light"] .carousel-dot {
  background: rgb(109 40 217 / 35%);
}

[data-theme="light"] .carousel-dot.active {
  background: linear-gradient(90deg, #ff6b2b, #ec4899, #7c3aed);
}

[data-theme="light"] .demo-note {
  color: #4a3269;
}

[data-theme="light"] .demo-note-icon {
  border-color: #c084fc;
  color: #6d28d9;
}

[data-theme="light"] .auth-status {
  color: #6d28d9;
  font-weight: 600;
}

[data-theme="light"] .auth-status.error {
  color: #dc2626;
}

/* Panels, Cards & Headings */
[data-theme="light"] .panel {
  border: 1px solid #ead0e8;
  background: linear-gradient(160deg, #ffffff 0%, #fffbfd 65%, #faf5ff 100%);
  box-shadow:
    0 10px 28px -8px rgb(124 58 237 / 9%),
    0 2px 8px rgb(236 72 153 / 5%);
}

[data-theme="light"] .section-heading h2,
[data-theme="light"] .join-card h2 {
  color: #181028;
}

[data-theme="light"] .section-kicker {
  color: #c026d3;
}

/* Join Card */
[data-theme="light"] .join-card {
  border: 1.5px solid #f4a8d0;
  background:
    radial-gradient(ellipse at 90% 45%, rgb(255 107 43 / 18%), transparent 45%),
    linear-gradient(115deg, #fff1e6 0%, #fce7f3 50%, #f3e8ff 100%);
  box-shadow: 0 10px 26px rgb(236 72 153 / 12%);
}

[data-theme="light"] .join-card p:not(.section-kicker) {
  color: #2e1a47;
  font-weight: 500;
}

[data-theme="light"] .join-button,
[data-theme="light"] .calendar-create-button,
[data-theme="light"] .chat-send-button,
[data-theme="light"] .match-score-form button {
  border-color: transparent;
  background: linear-gradient(135deg, #ff6b2b 0%, #ec4899 55%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgb(236 72 153 / 28%);
}

[data-theme="light"] .join-button:hover,
[data-theme="light"] .calendar-create-button:hover,
[data-theme="light"] .chat-send-button:hover:not(:disabled),
[data-theme="light"] .match-score-form button:hover:not(:disabled) {
  filter: brightness(1.07);
  color: #ffffff;
}

/* Events Carousel & Event Cards */
[data-theme="light"] .events-count {
  border-color: #f3bce0;
  background: #fdf2f8;
  color: #9d174d;
}

[data-theme="light"] .event-card {
  border: 1px solid #ead0e8;
  background: linear-gradient(155deg, #ffffff 0%, #fff9fc 65%, #fcf7ff 100%);
  box-shadow: 0 4px 14px rgb(124 58 237 / 6%);
}

[data-theme="light"] .event-card:hover {
  border-color: #ec4899;
  background: #ffffff;
  box-shadow: 0 8px 22px rgb(236 72 153 / 13%);
}

[data-theme="light"] .event-card.upcoming::before {
  width: 3px;
  background: linear-gradient(180deg, #ff6b2b, #ec4899, #7c3aed);
}

[data-theme="light"] .event-card.tonight {
  border-color: rgba(224, 109, 26, 0.4);
}

[data-theme="light"] .event-card.tonight::before {
  background: linear-gradient(180deg, #ea580c, #db2777);
  box-shadow: 0 0 8px rgba(234, 88, 12, 0.4);
}

[data-theme="light"] .event-card.tonight .event-tag {
  color: #c2410c;
}

[data-theme="light"] .event-card.tonight .event-tag::before {
  background: #c2410c;
  box-shadow: 0 0 6px rgba(194, 65, 12, 0.6);
}

[data-theme="light"] .hero-date.hero-date-tonight {
  color: #c2410c;
}

[data-theme="light"] .hero-date.hero-date-tonight svg {
  stroke: #c2410c;
}

[data-theme="light"] .calendar-event.tonight {
  border-color: #ea580c;
  color: #ea580c;
}

[data-theme="light"] .event-card h3 {
  color: #181028;
}

[data-theme="light"] .event-card p {
  color: #3b235a;
}

[data-theme="light"] .event-tag {
  color: #6d28d9;
}

[data-theme="light"] .event-prize {
  color: #ea580c;
}

[data-theme="light"] .social-event-card .event-prize {
  color: #db2777;
}

[data-theme="light"] .event-divider,
[data-theme="light"] .event-attendees,
[data-theme="light"] .tournament-bracket {
  border-color: #f0d9ec;
  background-color: transparent;
}

[data-theme="light"] .event-divider {
  background: #f0d9ec;
}

[data-theme="light"] .event-detail,
[data-theme="light"] .event-registration-count,
[data-theme="light"] .event-attendees summary,
[data-theme="light"] .entry-fee-status,
[data-theme="light"] .tournament-entry-note,
[data-theme="light"] .tournament-bracket-status,
[data-theme="light"] .bracket-waiting-player {
  color: #3d2659 !important;
}

[data-theme="light"] .event-detail strong,
[data-theme="light"] .tournament-bracket h4,
[data-theme="light"] .bracket-round h4,
[data-theme="light"] .bracket-player {
  color: #181028;
}

[data-theme="light"] .event-attendees li {
  background: #fdf2f8;
  border-color: #f3c4e2;
  color: #231438;
}

[data-theme="light"] .bracket-match {
  background: #fcf8ff;
  border-color: #e9d5ff;
}

[data-theme="light"] .event-register-button,
[data-theme="light"] .entry-fee-toggle,
[data-theme="light"] .event-admin-action,
[data-theme="light"] .bracket-winner-button {
  border-color: transparent;
  background: linear-gradient(135deg, #ff6b2b 0%, #ec4899 55%, #7c3aed 100%);
  color: #ffffff;
}

[data-theme="light"] .event-register-button:disabled {
  border-color: #e9d5ff;
  background: #f5f0ff;
  color: #5b4378;
}

[data-theme="light"] .event-edit-button,
[data-theme="light"] .events-link {
  background: #fdf7ff;
  border-color: #e4bfe6;
  color: #2e1a47;
}

/* Match Center, Standings & Past Results */
[data-theme="light"] .score-card,
[data-theme="light"] .past-result-card,
[data-theme="light"] .gloves-card {
  border-color: #eed0e8;
  background: linear-gradient(120deg, #ffffff 0%, #fff7ed 55%, #fdf2f8 100%);
  box-shadow: 0 3px 10px rgb(124 58 237 / 5%);
}

[data-theme="light"] .gloves-card {
  border-left: 4px solid #ff6b2b;
}

[data-theme="light"] .registration-event-title,
[data-theme="light"] .past-result-meta strong,
[data-theme="light"] .gloves-card-body strong,
[data-theme="light"] .team-name,
[data-theme="light"] .team-score.winner {
  color: #181028;
}

[data-theme="light"] .team-score,
[data-theme="light"] .past-result-score,
[data-theme="light"] .gloves-card-message {
  color: #2e1a47;
}

[data-theme="light"] .past-result-meta span,
[data-theme="light"] .registered-player-label,
[data-theme="light"] .score-footnote,
[data-theme="light"] .standings-status,
[data-theme="light"] .gloves-card-meta,
[data-theme="light"] .gloves-intro {
  color: #533b6e;
}

[data-theme="light"] .gloves-match-heading {
  color: #ea580c;
}

[data-theme="light"] .past-result-score strong,
[data-theme="light"] .match-final-score strong {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .past-result-score .result-winner {
  color: #ea580c;
}

[data-theme="light"] .match-final-score,
[data-theme="light"] .bracket-final-score {
  background: #faf5ff;
  border-color: #e9d5ff;
  color: #181028;
}

[data-theme="light"] .team-badge {
  border-color: #f9a8d4;
  background: linear-gradient(145deg, #ffedd5, #fce7f3);
  color: #9a3412;
}

[data-theme="light"] .standing-rank {
  background: linear-gradient(135deg, #ff6b2b, #ec4899);
  color: #ffffff;
}

[data-theme="light"] .standings-table th {
  color: #6d28d9;
}

[data-theme="light"] .standings-table th,
[data-theme="light"] .standings-table td {
  border-bottom-color: #f0d9ec;
  color: #231438;
}

[data-theme="light"] .standing-username,
[data-theme="light"] .standings-table td:first-child {
  color: #181028;
}

[data-theme="light"] .empty-scores {
  background: #fffafd;
  border-color: #e5bfe2;
  color: #4a3269;
}

[data-theme="light"] .empty-scores strong {
  color: #181028;
}

/* Avatars, Chat, Gloves Off Roster & Social Feed */
[data-theme="light"] .user-avatar-badge,
[data-theme="light"] .chat-message-avatar,
[data-theme="light"] .chat-online-avatar,
[data-theme="light"] .feed-avatar-badge,
[data-theme="light"] .comment-avatar-badge {
  background: linear-gradient(145deg, #ffedd5, #fce7f3);
  border-color: #f4a8d0;
  color: #7c2d12;
}

[data-theme="light"] .chat-presence,
[data-theme="light"] .chat-messages,
[data-theme="light"] .gloves-roster-wrap {
  background: #fff9fc;
  border-color: #ead0e8;
}

[data-theme="light"] .chat-online-users li:not(.chat-empty-state) {
  color: #181028;
  font-weight: 600;
}

[data-theme="light"] .chat-signin-prompt,
[data-theme="light"] .chat-empty-state,
[data-theme="light"] .chat-guidelines,
[data-theme="light"] .chat-live-indicator,
[data-theme="light"] .gloves-roster-count {
  color: #4a3269;
}

[data-theme="light"] .gloves-roster-item {
  background: #ffffff;
  border-color: #e9cbe8;
  color: #181028;
}

[data-theme="light"] .gloves-roster-item:hover {
  border-color: #ec4899;
  background: #fff5f9;
}

[data-theme="light"] .gloves-roster-item.selected {
  border-color: #ea580c;
  background: linear-gradient(120deg, #fff7ed, #fce7f3);
  box-shadow: 0 0 0 1px rgb(234 88 12 / 35%);
}

[data-theme="light"] .gloves-roster-info strong {
  color: #181028;
}

[data-theme="light"] .gloves-roster-info small {
  color: #533b6e;
}

[data-theme="light"] .gloves-roster-action {
  background: #fdf2f8;
  border-color: #f5bfe0;
  color: #9d174d;
}

[data-theme="light"] .chat-message {
  border-color: #e9cbe8;
  background: #ffffff;
  box-shadow: 0 2px 6px rgb(124 58 237 / 5%);
}

[data-theme="light"] .chat-message-header strong {
  color: #6d28d9;
}

[data-theme="light"] .chat-message-header time,
[data-theme="light"] .feed-post-author time,
[data-theme="light"] .feed-comment time {
  color: #5b4378;
}

[data-theme="light"] .chat-actions-toggle {
  background: #fdf4ff;
  border-color: #e4bfe6;
  color: #533b6e;
}

[data-theme="light"] .chat-delete-button {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

[data-theme="light"] .chat-message p,
[data-theme="light"] .feed-post-description,
[data-theme="light"] .feed-comment p,
[data-theme="light"] .feed-post-author strong,
[data-theme="light"] .feed-comment strong {
  color: #181028;
}

[data-theme="light"] .chat-form input,
[data-theme="light"] .chat-emoji-search,
[data-theme="light"] .feed-comment-form input,
[data-theme="light"] .gloves-form input,
[data-theme="light"] .gloves-form select,
[data-theme="light"] .feed-form input,
[data-theme="light"] .feed-form textarea,
[data-theme="light"] .form-field input,
[data-theme="light"] .form-field select,
[data-theme="light"] .form-field textarea,
[data-theme="light"] .match-score-form input {
  background: #ffffff;
  border-color: #dfb8e2;
  color: #181028;
  color-scheme: light;
}

[data-theme="light"] .chat-emoji-toggle,
[data-theme="light"] .chat-emoji-grid button {
  background: #ffffff;
  border-color: #e4bfe6;
}

[data-theme="light"] .feed-post,
[data-theme="light"] .feed-post-card {
  border-color: #ead0e8;
  background: #ffffff;
  box-shadow: 0 4px 14px rgb(124 58 237 / 6%);
}

[data-theme="light"] .feed-post-image,
[data-theme="light"] .feed-post-image-wrap,
[data-theme="light"] .feed-image-preview {
  background: #faf6f9 !important;
}

[data-theme="light"] .feed-comment {
  background: #fdf7ff;
  border: 1px solid #f0d9ec;
}

[data-theme="light"] .feed-reaction {
  background: #fff8fc;
  border-color: #e4bfe6;
  color: #231438;
}

[data-theme="light"] .feed-reaction.active {
  background: #fce7f3;
  border-color: #ec4899;
  color: #be185d;
}

[data-theme="light"] .feed-reaction-count {
  color: #3d2659;
}

/* Dialogs, Calendars, Health & Footer in Light Mode */
[data-theme="light"] .event-dialog {
  background: #ffffff;
  border-color: #e4bfe6;
  color: #181028;
  box-shadow: 0 24px 70px rgb(88 28 135 / 22%);
}

[data-theme="light"] .form-field > span,
[data-theme="light"] .form-field > label,
[data-theme="light"] .profile-check span,
[data-theme="light"] .calendar-toolbar h3 {
  color: #181028;
}

[data-theme="light"] .form-field small,
[data-theme="light"] .profile-check small,
[data-theme="light"] .form-field .image-size-note {
  color: #533b6e;
}

[data-theme="light"] .profile-preferences {
  border-color: #ead0e8;
  background: #fffafd;
}

[data-theme="light"] .profile-avatar-wrap {
  background: #fdf2f8;
  border-color: #f4a8d0;
}

[data-theme="light"] .avatar-upload-btn,
[data-theme="light"] .calendar-today-button,
[data-theme="light"] .calendar-nav-button,
[data-theme="light"] .dialog-close-button {
  background: #fdf7ff;
  border-color: #e4bfe6;
  color: #231438;
}

[data-theme="light"] .calendar-weekdays {
  background: #fdf2f8;
  border-color: #ead0e8;
}

[data-theme="light"] .calendar-weekdays span {
  color: #6d28d9;
}

[data-theme="light"] .calendar-grid {
  background: #ead0e8;
  border-color: #ead0e8;
}

[data-theme="light"] .calendar-day {
  background: #ffffff;
}

[data-theme="light"] .calendar-day.outside-month {
  background: #faf5ff;
}

[data-theme="light"] .calendar-day-number {
  color: #231438;
}

[data-theme="light"] .calendar-event {
  background: #fdf2f8;
  color: #181028;
}

[data-theme="light"] .health-admin-controls {
  background: #ffffff;
  border-color: #ead0e8;
}

[data-theme="light"] .health-controls-heading {
  color: #be185d;
}

[data-theme="light"] .health-toggle-card {
  background: #fff9fc;
  border-color: #ead0e8;
}

[data-theme="light"] .health-toggle-title {
  color: #181028;
}

[data-theme="light"] .health-toggle-desc {
  color: #4a3269;
}

[data-theme="light"] .health-switch-label {
  color: #181028;
}

[data-theme="light"] .health-action-button {
  background: #ffffff;
  border-color: #ead0e8;
  color: #181028;
}

[data-theme="light"] .health-action-button:hover:not(:disabled) {
  background: #fdf2f8;
  border-color: #f472b6;
  color: #be185d;
}

[data-theme="light"] .health-toggle-footer {
  border-top-color: #f2e2ee;
}

[data-theme="light"] .system-switch-slider {
  background-color: #e5d6e3;
  border-color: #ccaec7;
}

[data-theme="light"] .system-switch input:checked + .system-switch-slider {
  background-color: #be185d;
  border-color: #be185d;
}

[data-theme="light"] .system-switch input:checked + .system-switch-slider:before {
  background-color: #ffffff;
}

[data-theme="light"] .health-card {
  background: #ffffff;
  border-color: #ead0e8;
}

[data-theme="light"] .health-card h3,
[data-theme="light"] .health-collection-checks h3,
[data-theme="light"] .health-card > strong {
  color: #181028;
}

[data-theme="light"] .health-card > p,
[data-theme="light"] .health-intro,
[data-theme="light"] .health-updated {
  color: #4a3269;
}

[data-theme="light"] .health-collection-checks li {
  background: #fff9fc;
  border-color: #ead0e8;
  color: #181028;
}

[data-theme="light"] .site-footer {
  border-top: 2px solid #f2bfe0;
  background: linear-gradient(90deg, #fff7ed 0%, #fdf2f8 50%, #f5f3ff 100%);
  color: #3b235a;
}

[data-theme="light"] .footer-inner p,
[data-theme="light"] .copyright {
  color: #4a3269;
}

@media (max-width: 760px) {
  .theme-toggle-button {
    height: 36px;
    min-height: 36px;
    width: 36px;
    min-width: 36px;
    flex-shrink: 0;
    box-sizing: border-box;
    margin-right: 8px;
    font-size: 14px;
  }
  .admin-site-menu {
    margin-right: 6px;
  }
}



/* Maintenance Mode Banner & Dialog */
.maintenance-banner {
  background: linear-gradient(90deg, #3d2403 0%, #291802 50%, #3d2403 100%);
  border-bottom: 2px solid #f59e0b;
  color: #fef3c7;
  padding: 10px 16px;
  box-shadow: 0 4px 14px rgb(0 0 0 / 45%);
  position: relative;
  z-index: 10;
  animation: maintenanceSlideDown 240ms ease-out;
}

@keyframes maintenanceSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.maintenance-banner-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.maintenance-pulse {
  font-size: 20px;
  display: inline-block;
  animation: pulseAmber 2s infinite ease-in-out;
}

@keyframes pulseAmber {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px #f59e0b);
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px #fbbf24);
  }
}

.maintenance-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.4;
}

.maintenance-banner-text strong {
  color: #fbbf24;
  font-family: var(--display-font);
  font-size: 14px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.maintenance-banner-text span {
  color: #fde68a;
  font-size: 12px;
}

.maintenance-admin-edit-btn {
  padding: 5px 12px;
  border: 1px solid #d97706;
  border-radius: 6px;
  background: #78350f;
  color: #fef3c7;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 140ms ease;
}

.maintenance-admin-edit-btn:hover {
  background: #92400e;
  border-color: #fbbf24;
  color: #ffffff;
}

.admin-maintenance-menu-button.maintenance-active {
  background: #78350f;
  color: #fbbf24;
  font-weight: 700;
}

.maintenance-dialog {
  max-width: 480px;
  width: 92%;
}

@media (max-width: 640px) {
  .maintenance-banner {
    padding: 6px 12px;
    border-bottom-width: 1px;
  }

  .maintenance-banner-inner {
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: center;
  }

  .maintenance-pulse {
    font-size: 13px;
  }

  .maintenance-banner-text {
    gap: 1px;
    font-size: 11px;
    line-height: 1.25;
  }

  .maintenance-banner-text strong {
    font-size: 11px;
    letter-spacing: 0.2px;
  }

  .maintenance-banner-text span {
    font-size: 10px;
    line-height: 1.22;
    opacity: 0.94;
  }

  .maintenance-banner-actions {
    gap: 5px;
    margin-left: auto;
  }

  .maintenance-admin-edit-btn {
    padding: 2px 8px;
    font-size: 9.5px;
    min-height: 22px;
    height: auto;
    border-radius: 4px;
    align-self: center;
  }
}

/* Light theme adaptation */
[data-theme="light"] .maintenance-banner {
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 50%, #fffbeb 100%);
  border-bottom-color: #d97706;
  color: #78350f;
}

[data-theme="light"] .maintenance-banner-text strong {
  color: #92400e;
}

[data-theme="light"] .maintenance-banner-text span {
  color: #78350f;
}

[data-theme="light"] .maintenance-admin-edit-btn {
  background: #fde68a;
  color: #78350f;
  border-color: #d97706;
}

[data-theme="light"] .maintenance-admin-edit-btn:hover {
  background: #fcd34d;
  color: #451a03;
}


/* ==========================================================================
   Club Events Horizontal Left-to-Right Carousel (Below Main Banner)
   ========================================================================== */

.events-carousel-panel {
  margin-bottom: 22px;
  padding: 20px 22px;
  overflow: hidden;
}

.events-carousel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.events-carousel-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.events-carousel-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.events-carousel-btn {
  width: 34px;
  height: 34px;
}

.events-carousel-wrapper {
  position: relative;
  width: 100%;
}

.events-side-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(8, 13, 23, 0.92);
  border: 1px solid var(--line, #253247);
  color: var(--cyan, #43e5dc);
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease, color 140ms ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.events-side-arrow:hover {
  background: var(--surface-raised, #151f30);
  border-color: var(--cyan, #43e5dc);
  color: #ffffff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 0 14px rgba(67, 229, 220, 0.45);
}

.events-arrow-prev {
  left: -10px;
}

.events-arrow-next {
  right: -10px;
}

@media (max-width: 640px) {
  .events-arrow-prev {
    left: 2px;
  }
  .events-arrow-next {
    right: 2px;
  }
}

.events-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #2f4259 transparent;
}

.events-carousel-viewport::-webkit-scrollbar {
  height: 6px;
}

.events-carousel-viewport::-webkit-scrollbar-track {
  background: transparent;
}

.events-carousel-viewport::-webkit-scrollbar-thumb {
  background: #2f4259;
  border-radius: 999px;
}

.events-carousel-track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  min-width: 100%;
}

.events-carousel-track > .event-list {
  display: contents;
}

.events-carousel-track > .event-list[hidden] {
  display: none !important;
}

.events-carousel-track .event-card {
  flex: 0 0 320px;
  width: 320px;
  max-width: calc(100vw - 64px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.events-carousel-track .event-card .event-divider {
  margin-top: auto;
}

.events-carousel-track .empty-scores {
  flex: 1 1 100%;
  width: 100%;
}

[data-theme="light"] .events-carousel-viewport {
  scrollbar-color: #d8b4fe transparent;
}

[data-theme="light"] .events-carousel-viewport::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #ff6b2b, #ec4899, #7c3aed);
}

/* Mobile Admin Menu & Maintenance Mode fixes */
.admin-maintenance-menu-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #fbbf24;
  touch-action: manipulation;
}

.admin-maintenance-menu-button:hover {
  color: #fde68a;
}

[data-theme="light"] .admin-maintenance-menu-button {
  color: #c2410c;
}

[data-theme="light"] .admin-maintenance-menu-button:hover {
  color: #9a3412;
}

[data-theme="light"] .admin-email-menu-button {
  color: #7c3aed;
}

.maintenance-banner {
  z-index: 10;
}

.maintenance-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.maintenance-admin-off-btn {
  background: #451a03;
  border-color: #b45309;
}

dialog.maintenance-dialog[open] {
  display: block;
}

@media (max-width: 640px) {
  .events-carousel-panel {
    padding: 16px 14px;
  }

  .events-carousel-track .event-card {
    flex: 0 0 285px;
    width: 285px;
  }

  .site-menu {
    position: static;
  }

  .site-menu-panel,
  .admin-site-menu .admin-menu-panel {
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    width: min(220px, 100%);
    z-index: 10005;
  }
}

/* ==========================================================================
   Member Public Profiles, Bio & Favorite E-Sports Games
   ========================================================================== */

.clickable-member {
  cursor: pointer;
  transition: color 130ms ease, transform 130ms ease, opacity 130ms ease;
}

.clickable-member:hover {
  color: var(--cyan) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.user-avatar-badge.clickable-member:hover,
.chat-message-avatar.clickable-member:hover,
.chat-online-avatar.clickable-member:hover,
.feed-avatar-badge.clickable-member:hover,
.comment-avatar-badge.clickable-member:hover {
  border-color: var(--cyan);
  transform: scale(1.06);
  text-decoration: none;
}

.gloves-roster-profile-btn {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #30455f;
  background: #0d1624;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.gloves-roster-profile-btn:hover {
  border-color: var(--cyan);
  background: rgb(67 229 220 / 16%);
  color: #ffffff;
}

.profile-dialog {
  max-width: 540px;
  width: min(540px, 94vw);
}

.profile-preview-btn {
  align-self: flex-start;
  margin-top: 2px;
  font-size: 11px;
  min-height: 28px;
  padding: 0 10px;
}

.profile-games-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.profile-game-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #2e4057;
  border-radius: 999px;
  background: #0d1624;
  color: #b7c7db;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 130ms ease, background 130ms ease, color 130ms ease;
}

.profile-game-chip:hover {
  border-color: var(--cyan-dark);
  color: #ffffff;
}

.profile-game-chip.active {
  border-color: var(--cyan);
  background: rgb(67 229 220 / 16%);
  color: var(--cyan);
}

.profile-custom-game-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-custom-game-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #34445a;
  border-radius: 7px;
  background: #0b1320;
  color: #edf3f9;
  font: inherit;
  font-size: 12px;
}

.profile-custom-game-row input:focus {
  border-color: var(--cyan-dark);
  outline: 2px solid rgb(67 229 220 / 15%);
}

/* Public Member Profile Modal */
.member-profile-dialog {
  max-width: 470px;
  width: min(470px, 94vw);
}

.member-profile-content {
  display: grid;
  gap: 16px;
  padding: 20px 22px 22px;
}

.member-profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #243347;
}

.member-profile-avatar-wrap {
  width: 64px;
  height: 64px;
  border: 2px solid var(--cyan-dark);
  box-shadow: 0 0 16px rgb(67 229 220 / 15%);
}

.member-profile-title-group {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.member-profile-title-group h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 26px;
  letter-spacing: 0.03em;
  color: #f4f7fb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-profile-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.member-profile-status.online {
  border: 1px solid rgb(34 197 94 / 45%);
  background: rgb(34 197 94 / 14%);
  color: #4ade80;
}

.member-profile-status.offline {
  border: 1px solid #2f4056;
  background: #101927;
  color: #8fa2b9;
}

.member-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.member-stat-box {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 9px 6px;
  border: 1px solid #263549;
  border-radius: 8px;
  background: #0d1624;
  text-align: center;
}

.member-stat-box strong {
  font-family: var(--display-font);
  font-size: 22px;
  line-height: 1.05;
  color: var(--cyan);
}

.member-stat-box span {
  font-size: 10px;
  font-weight: 600;
  color: #8ea0b6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.member-profile-section {
  display: grid;
  gap: 6px;
}

.member-profile-section h4 {
  margin: 0;
  color: var(--peach);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-profile-bio {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #253448;
  border-radius: 8px;
  background: #0c1421;
  color: #e6eef8;
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.member-profile-bio.muted {
  color: #7e90a6;
  font-style: italic;
}

.member-profile-games {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.member-game-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid #2d425c;
  border-radius: 999px;
  background: linear-gradient(135deg, #132033, #0e1827);
  color: #e2edf8;
  font-size: 11px;
  font-weight: 700;
}

.member-games-empty {
  color: #7e90a6;
  font-size: 12px;
  font-style: italic;
}

[data-theme="light"] .gloves-roster-profile-btn {
  background: #fdf2f8;
  border-color: #f4a8d0;
  color: #7c3aed;
}

[data-theme="light"] .gloves-roster-profile-btn:hover {
  background: linear-gradient(135deg, #ff6b2b, #ec4899, #7c3aed);
  border-color: transparent;
  color: #ffffff;
}

[data-theme="light"] .profile-game-chip {
  background: #fff9fc;
  border-color: #e4bfe6;
  color: #231438;
}

[data-theme="light"] .profile-game-chip:hover {
  border-color: #ec4899;
  color: #6d28d9;
}

[data-theme="light"] .profile-game-chip.active {
  background: linear-gradient(135deg, #ff6b2b 0%, #ec4899 55%, #7c3aed 100%);
  border-color: transparent;
  color: #ffffff;
}

[data-theme="light"] .profile-custom-game-row input {
  background: #ffffff;
  border-color: #dfb8e2;
  color: #181028;
}

[data-theme="light"] .member-profile-hero {
  border-bottom-color: #ead0e8;
}

[data-theme="light"] .member-profile-title-group h3 {
  color: #181028;
}

[data-theme="light"] .member-profile-status.online {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

[data-theme="light"] .member-profile-status.offline {
  background: #fdf2f8;
  border-color: #f3c4e2;
  color: #533b6e;
}

[data-theme="light"] .member-stat-box {
  background: linear-gradient(145deg, #fff7ed, #fdf2f8);
  border-color: #f2cce4;
}

[data-theme="light"] .member-stat-box strong {
  color: #7c3aed;
}

[data-theme="light"] .member-stat-box span {
  color: #3d2659;
}

[data-theme="light"] .member-profile-bio {
  background: #fff9fc;
  border-color: #ead0e8;
  color: #181028;
}

[data-theme="light"] .member-profile-bio.muted,
[data-theme="light"] .member-games-empty {
  color: #533b6e;
}

[data-theme="light"] .member-game-badge {
  background: linear-gradient(135deg, #fff1e6 0%, #fce7f3 55%, #f3e8ff 100%);
  border-color: #f4a8d0;
  color: #181028;
}

/* =========================================================
   Club Polls Section
   ========================================================= */
.polls-panel {
  padding: 22px;
  margin-top: 24px;
}

.polls-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.poll-create-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: rgba(16, 24, 39, 0.9);
  border: 1px solid rgba(67, 229, 220, 0.35);
}

.poll-create-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.poll-create-header strong {
  font-size: 1rem;
  color: var(--text);
}

.poll-create-header small {
  color: var(--muted);
  font-size: 0.8rem;
}

.poll-options-inputs {
  display: grid;
  gap: 8px;
}

.poll-option-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.poll-option-input-row input {
  flex: 1;
}

.poll-remove-option-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 113, 130, 0.12);
  color: var(--danger);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.poll-remove-option-btn:hover {
  background: rgba(255, 113, 130, 0.24);
}

.poll-options-toolbar {
  margin-top: 4px;
}

.poll-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.polls-list {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.poll-card {
  padding: 16px;
  border-radius: 11px;
  background: linear-gradient(150deg, #111b2a 0%, #0e1725 100%);
  border: 1px solid #253245;
  display: grid;
  gap: 12px;
}

.poll-card.closed {
  opacity: 0.88;
}

.poll-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.poll-card-title-wrap {
  display: grid;
  gap: 4px;
}

.poll-card-question {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.poll-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}

.poll-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.poll-status-badge.open {
  background: rgba(67, 229, 220, 0.14);
  border: 1px solid rgba(67, 229, 220, 0.45);
  color: var(--cyan);
}

.poll-status-badge.closed {
  background: rgba(255, 189, 131, 0.14);
  border: 1px solid rgba(255, 189, 131, 0.4);
  color: var(--peach);
}

.poll-choices-list {
  display: grid;
  gap: 10px;
}

.poll-choice-item {
  display: grid;
  gap: 6px;
}

.poll-choice-btn {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 23, 0.65);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 140ms ease, transform 120ms ease;
}

.poll-choice-btn:not(:disabled):hover {
  border-color: var(--cyan);
}

.poll-choice-btn.voted {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(67, 229, 220, 0.35);
}

.poll-choice-btn:disabled {
  cursor: default;
}

.poll-choice-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, rgba(67, 229, 220, 0.22), rgba(255, 189, 131, 0.18));
  pointer-events: none;
  transition: width 240ms ease;
}

.poll-choice-btn.voted .poll-choice-bar {
  background: linear-gradient(90deg, rgba(67, 229, 220, 0.34), rgba(255, 189, 131, 0.28));
}

.poll-choice-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.poll-choice-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.94rem;
}

.poll-choice-check {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.poll-choice-btn.voted .poll-choice-check {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #07191a;
}

.poll-choice-stats {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.poll-choice-btn.voted .poll-choice-stats {
  color: var(--text);
}

.poll-voters-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-left: 2px;
}

.poll-voter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}

.poll-voter-chip .user-avatar-badge {
  width: 18px;
  height: 18px;
  font-size: 8px;
}

.poll-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

[data-theme="light"] .poll-create-form {
  background: linear-gradient(145deg, #fff8f2, #fdf2f8);
  border-color: #f4a8d0;
}

[data-theme="light"] .poll-card {
  background: #ffffff;
  border-color: #ead0e8;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.07);
}

[data-theme="light"] .poll-status-badge.open {
  background: #f3e8ff;
  border-color: #c084fc;
  color: #6d28d9;
}

[data-theme="light"] .poll-status-badge.closed {
  background: #ffedd5;
  border-color: #fdba74;
  color: #c2410c;
}

[data-theme="light"] .poll-choice-btn {
  background: #fff9fc;
  border-color: #e4bfe6;
  color: #181028;
}

[data-theme="light"] .poll-choice-btn:not(:disabled):hover {
  border-color: #ec4899;
}

[data-theme="light"] .poll-choice-btn.voted {
  border-color: #7c3aed;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.25);
}

[data-theme="light"] .poll-choice-bar {
  background: linear-gradient(90deg, rgba(255, 107, 43, 0.2), rgba(236, 72, 153, 0.18), rgba(124, 58, 237, 0.16));
}

[data-theme="light"] .poll-choice-btn.voted .poll-choice-bar {
  background: linear-gradient(90deg, rgba(255, 107, 43, 0.32), rgba(236, 72, 153, 0.28), rgba(124, 58, 237, 0.26));
}

[data-theme="light"] .poll-choice-btn.voted .poll-choice-check {
  background: linear-gradient(135deg, #ff6b2b, #ec4899, #7c3aed);
  border-color: transparent;
  color: #ffffff;
}

[data-theme="light"] .poll-voter-chip {
  background: #fdf2f8;
  border-color: #f3c4e2;
  color: #2d1d47;
}

/* ========================================================
   Admin Submenu inside Site Menu Panel
   ======================================================== */
.admin-submenu {
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 4px;
}

.admin-submenu-toggle {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--peach, #ffbd83);
}

.admin-submenu-toggle::-webkit-details-marker {
  display: none;
}

.admin-submenu-panel {
  display: grid;
  gap: 2px;
  padding-left: 8px;
  margin-top: 4px;
}

/* ========================================================
   Member of the Month Banner
   ======================================================== */
.member-of-month-card {
  padding: 20px 24px;
  margin-bottom: 22px;
  border: 1px solid #ffbd83;
  background: radial-gradient(ellipse at 85% 30%, rgba(255, 189, 131, 0.14), transparent 55%),
              linear-gradient(135deg, #161e2d 0%, #101622 100%);
  box-shadow: 0 4px 20px rgba(255, 189, 131, 0.08);
}

.member-of-month-inner {
  display: grid;
  gap: 16px;
}

.member-of-month-badge-col {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.motm-crown {
  font-size: 24px;
}

.motm-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--peach, #ffbd83);
}

.motm-title {
  margin: 0;
  font-family: var(--display-font);
  font-size: 24px;
  color: #fff;
}

.motm-winner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(8, 13, 23, 0.55);
  border: 1px solid rgba(255, 189, 131, 0.28);
}

.motm-winner-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.motm-avatar {
  width: 44px;
  height: 44px;
  font-size: 16px;
}

.motm-name {
  display: block;
  font-size: 16px;
  color: var(--text, #eef3fa);
}

.motm-points {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan, #43e5dc);
}

.motm-breakdown {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted, #8391a5);
}

.motm-runners-up {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.motm-runners-label {
  color: var(--muted, #8391a5);
  font-weight: 700;
}

.motm-runner {
  color: var(--peach, #ffbd83);
  font-weight: 600;
}

/* ========================================================
   Marketplace Styles
   ======================================================== */
.marketplace-panel {
  padding: 22px;
  margin-top: 24px;
}

.marketplace-filter-tabs {
  display: inline-flex;
  gap: 6px;
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.marketplace-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background: rgba(16, 24, 39, 0.9);
  border: 1px solid var(--line, #253247);
  overflow: hidden;
  transition: transform 140ms ease, border-color 140ms ease;
}

.marketplace-card:hover {
  border-color: var(--cyan, #43e5dc);
  transform: translateY(-2px);
}

.marketplace-card.sold {
  opacity: 0.75;
}

.marketplace-card-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.marketplace-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.marketplace-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.marketplace-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.marketplace-badge.sale {
  background: rgba(67, 229, 220, 0.15);
  border: 1px solid var(--cyan, #43e5dc);
  color: var(--cyan, #43e5dc);
}

.marketplace-badge.wanted {
  background: rgba(255, 189, 131, 0.15);
  border: 1px solid var(--peach, #ffbd83);
  color: var(--peach, #ffbd83);
}

.marketplace-badge.sold {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #22c55e;
}

.marketplace-price {
  font-family: var(--display-font);
  font-size: 18px;
  color: var(--lime, #d2f46d);
}

.marketplace-title {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text, #eef3fa);
}

.marketplace-condition {
  margin: 0 0 6px;
  font-size: 11px;
  color: var(--muted, #8391a5);
}

.marketplace-desc {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #c4d3e2;
  flex: 1;
}

.marketplace-seller-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.marketplace-seller {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
}

.marketplace-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========================================================
   Gloves Off Dropdown Selector
   ======================================================== */
.gloves-dropdown-field {
  position: relative;
}

.gloves-dropdown-container {
  position: relative;
  width: 100%;
}

.gloves-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 8px 14px;
  background: var(--surface, #101827);
  border: 1px solid var(--line, #253247);
  border-radius: 8px;
  color: var(--text, #eef3fa);
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.gloves-dropdown-trigger:hover,
.gloves-dropdown-trigger[aria-expanded="true"] {
  border-color: var(--cyan, #43e5dc);
  background: var(--surface-raised, #151f30);
  box-shadow: 0 0 0 1px rgba(67, 229, 220, 0.25);
}

.gloves-dropdown-trigger-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.gloves-trigger-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.gloves-trigger-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #eef3fa);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gloves-trigger-profile-btn,
.gloves-dropdown-profile-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--line, #253247);
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan, #43e5dc);
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.gloves-trigger-profile-btn:hover,
.gloves-dropdown-profile-btn:hover {
  background: rgba(67, 229, 220, 0.16);
  border-color: var(--cyan, #43e5dc);
  color: #ffffff;
}

.gloves-dropdown-caret {
  font-size: 12px;
  color: var(--muted, #8391a5);
  transition: transform 160ms ease;
}

.gloves-dropdown-trigger[aria-expanded="true"] .gloves-dropdown-caret {
  transform: rotate(180deg);
}

.gloves-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1100;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  background: var(--surface, #101827);
  border: 1px solid var(--line, #253247);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gloves-dropdown-menu[hidden] {
  display: none !important;
}

.gloves-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.gloves-dropdown-item:hover,
.gloves-dropdown-item:focus-visible {
  border-color: var(--cyan, #43e5dc);
  background: var(--surface-raised, #151f30);
  outline: none;
}

.gloves-dropdown-item.selected {
  border-color: var(--peach, #ffbd83);
  background: rgba(255, 189, 131, 0.08);
}

.gloves-dropdown-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.gloves-dropdown-item-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.gloves-dropdown-item-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #eef3fa);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gloves-dropdown-item-sub {
  font-size: 11px;
  color: var(--muted, #8391a5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gloves-dropdown-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gloves-dropdown-select-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(67, 229, 220, 0.12);
  color: var(--cyan, #43e5dc);
  border: 1px solid rgba(67, 229, 220, 0.3);
}

.gloves-dropdown-item.selected .gloves-dropdown-select-pill {
  background: var(--peach, #ffbd83);
  color: #101827;
  border-color: var(--peach, #ffbd83);
}

[data-theme="light"] .gloves-dropdown-trigger {
  background: #ffffff;
  border-color: #ebd2e8;
  color: #181028;
}

[data-theme="light"] .gloves-dropdown-trigger:hover,
[data-theme="light"] .gloves-dropdown-trigger[aria-expanded="true"] {
  border-color: #7c3aed;
  background: #fdf7ff;
}

[data-theme="light"] .gloves-dropdown-menu {
  background: #ffffff;
  border-color: #ebd2e8;
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.12);
}

[data-theme="light"] .gloves-dropdown-item:hover,
[data-theme="light"] .gloves-dropdown-item:focus-visible {
  border-color: #7c3aed;
  background: #fdf2f8;
}

[data-theme="light"] .gloves-dropdown-item.selected {
  border-color: #ea580c;
  background: #fff7ed;
}

[data-theme="light"] .gloves-dropdown-item-name {
  color: #181028;
}

[data-theme="light"] .gloves-dropdown-item-sub {
  color: #533b6e;
}

/* ========================================================
   Locked Layout Mode (No page scroll)
   ======================================================== */
html.locked-layout,
body.locked-layout {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
  padding-bottom: 0 !important;
}

body.locked-layout .page-shell {
  height: calc(100vh - 120px) !important;
  overflow: hidden !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
}

/* ========================================================
   Footer Links & Dialogs
   ======================================================== */
.site-footer {
  border-top: 1px solid var(--line, #253247);
  padding: 24px 0;
  margin-top: 40px;
}

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

.footer-copy {
  margin: 0;
  font-size: 11px;
  color: var(--muted, #8391a5);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-link,
.footer-link-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan, #43e5dc);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 140ms ease;
}

.footer-link:hover,
.footer-link-btn:hover {
  color: var(--peach, #ffbd83);
  text-decoration: underline;
}

.legal-list {
  padding-left: 20px;
  margin: 12px 0;
  display: grid;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #cad5e2;
}

.legal-bot-check {
  margin: 16px 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(67, 229, 220, 0.08);
  border: 1px solid rgba(67, 229, 220, 0.3);
}

/* ========================================================
   Admin Submenu Lock Notice
   ======================================================== */
.admin-locked-notice {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 189, 131, 0.08);
  border: 1px solid rgba(255, 189, 131, 0.25);
  margin-bottom: 8px;
}

.admin-notice-text {
  font-size: 11px;
  line-height: 1.4;
  color: #ffbd83;
  margin: 0 0 8px;
}

.admin-signin-prompt-btn {
  width: 100%;
  text-align: center;
  font-size: 11px;
  padding: 6px 10px;
  background: var(--surface-raised, #151f30);
  border: 1px solid var(--cyan, #43e5dc);
  color: var(--cyan, #43e5dc);
}

.admin-signin-prompt-btn:hover {
  background: var(--cyan, #43e5dc);
  color: #080d17;
}

/* ========================================================
   Footer Center Group & Bug Report Button Under Legal Links
   ======================================================== */
.footer-center-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.footer-bug-report-wrap {
  width: auto;
  margin: 0;
  text-align: center;
}

.footer-bug-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 189, 131, 0.35);
  background: rgba(255, 189, 131, 0.08);
  color: #ffbd83;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 140ms ease;
}

.footer-bug-btn:hover {
  background: rgba(255, 45, 120, 0.16);
  border-color: rgba(255, 45, 120, 0.5);
  color: #ff528f;
  transform: translateY(-1px);
}

/* ========================================================
   PEACHBOOK Hub Panel & Latest Posts Carousel on Main Page
   ======================================================== */
.peachbook-hub-panel {
  background: radial-gradient(ellipse at 90% 20%, rgba(255, 110, 180, 0.12), transparent 60%),
              radial-gradient(ellipse at 10% 80%, rgba(255, 189, 131, 0.10), transparent 50%),
              linear-gradient(135deg, #101a28 0%, #0c1421 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 22px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
}

.peachbook-hub-panel .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.open-peachbook-btn {
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
}

.peachbook-hub-subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted, #98a7b9);
  line-height: 1.5;
}

.peachbook-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.peachbook-side-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(16, 25, 40, 0.9);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  user-select: none;
}

.peachbook-side-arrow:hover {
  background: #43e5dc;
  color: #082021;
  border-color: #43e5dc;
  transform: scale(1.05);
}

.peachbook-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.peachbook-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.peachbook-carousel-track {
  display: flex;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.peachbook-card-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  scroll-snap-align: center;
  background: rgba(16, 25, 40, 0.75);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.18s ease;
}

.peachbook-card-slide:hover {
  border-color: rgba(67, 229, 220, 0.45);
}

.peachbook-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.peachbook-feed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.peachbook-feed-badge.badge-social {
  background: rgba(67, 229, 220, 0.14);
  color: #43e5dc;
  border: 1px solid rgba(67, 229, 220, 0.35);
}

.peachbook-feed-badge.badge-marketplace {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.peachbook-feed-badge.badge-chef {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.peachbook-feed-badge.badge-sponsors {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.peachbook-post-time {
  font-size: 11px;
  color: var(--muted, #98a7b9);
}

.peachbook-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.peachbook-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.peachbook-card-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  flex-shrink: 0;
}

.peachbook-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.peachbook-card-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.peachbook-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.peachbook-card-price {
  font-size: 13px;
  font-weight: 800;
  color: #48c78e;
  background: rgba(72, 199, 142, 0.14);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.peachbook-card-text {
  font-size: 13px;
  line-height: 1.45;
  color: #d5e0ee;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.peachbook-card-thumb-wrap {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 220px;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  background: #080d17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.peachbook-card-thumb {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  background: #060a12;
  transition: transform 0.28s ease;
}

.peachbook-card-slide:hover .peachbook-card-thumb {
  transform: scale(1.03);
}

.peachbook-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 25, 40, 0.75) 0%, transparent 60%);
  pointer-events: none;
}

.peachbook-reactions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.peachbook-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #43e5dc;
  text-decoration: none;
  margin-top: auto;
  padding-top: 4px;
  transition: color 0.15s ease;
}

.peachbook-card-cta:hover {
  color: #7ef1e8;
  text-decoration: underline;
}

.peachbook-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.peachbook-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.peachbook-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #43e5dc;
}

/* Light Theme Overrides */
[data-theme="light"] .peachbook-hub-panel {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .peachbook-card-slide {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .peachbook-card-name,
[data-theme="light"] .peachbook-card-title {
  color: #0f172a;
}

[data-theme="light"] .peachbook-card-text {
  color: #334155;
}

[data-theme="light"] .peachbook-side-arrow {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .peachbook-side-arrow:hover {
  background: #0f172a;
  color: #ffffff;
}

[data-theme="light"] .peachbook-card-cta {
  color: #0284c7;
}

[data-theme="light"] .peachbook-dot {
  background: #cbd5e1;
}

[data-theme="light"] .peachbook-dot.active {
  background: #0284c7;
}





/* Service Offer & Service Wanted Marketplace Badges */
.marketplace-badge.service-offer {
  background: rgba(72, 199, 142, 0.15);
  border: 1px solid #48c78e;
  color: #48c78e;
}

.marketplace-badge.service-wanted {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid #c084fc;
  color: #c084fc;
}

/* Event Reactions & Floating Emoji Pickers */
.feed-emoji-picker,
.event-emoji-picker {
  position: fixed;
  z-index: 1050;
  max-height: 380px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  border: 1px solid var(--peach, #ffbd83);
}

.event-emoji-picker {
  border-color: var(--cyan, #43e5dc);
}

.event-reactions-bar,
.feed-reactions-bar,
.chef-reactions-bar,
.chat-reactions-bar,
.poll-reactions-bar,
.result-reactions-bar,
.motm-reactions-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line, #253247);
}

.chat-reactions-bar {
  gap: 3px !important;
  margin-top: 3px !important;
  padding-top: 3px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.chat-reactions-bar .event-reaction-btn,
.chat-reactions-bar .chat-add-reaction-btn {
  padding: 1px 5px !important;
  font-size: 9px !important;
  height: 18px !important;
  min-height: 18px !important;
  line-height: 1 !important;
  border-radius: 10px !important;
  gap: 2px !important;
}

.chat-reactions-bar .event-reaction-btn .rx-count {
  font-size: 8px !important;
}

.result-reactions-bar {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 8px;
}

.motm-reactions-bar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 189, 131, 0.2);
}

.motm-comments-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 189, 131, 0.2);
}

.motm-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
}

.motm-comments-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--peach, #ffbd83);
}

.motm-comments-list {
  padding: 0;
  display: grid;
  gap: 8px;
}

.motm-comment {
  background: rgba(12, 20, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.motm-comment-form {
  padding: 10px 0 0;
}

.event-reaction-btn {
  appearance: none;
  background: #141f30;
  border: 1px solid var(--line, #253247);
  border-radius: 20px;
  padding: 4px 10px;
  color: var(--muted, #98a7b9);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  user-select: none;
}

.event-reaction-btn:hover {
  background: #1c2a40;
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.event-reaction-btn.active {
  background: rgba(67, 229, 220, 0.15);
  border-color: var(--cyan, #43e5dc);
  color: #fff;
  box-shadow: 0 0 10px rgba(67, 229, 220, 0.2);
}

.event-add-reaction-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--line, #253247);
  border-radius: 20px;
  padding: 4px 10px;
  color: var(--muted, #98a7b9);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.event-add-reaction-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--cyan, #43e5dc);
}

.feed-post-edit-container {
  margin: 10px 0;
}

.feed-post-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.chat-edit-button {
  background: transparent;
  border: 1px solid var(--line, #253247);
  color: var(--muted, #98a7b9);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-edit-button:hover {
  background: rgba(255, 189, 131, 0.15);
  color: var(--peach, #ffbd83);
  border-color: var(--peach, #ffbd83);
}

.feed-edited-tag {
  font-size: 11px;
  color: var(--muted, #98a7b9);
  font-style: italic;
  margin-left: 6px;
}

.feed-comment-edit-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.feed-comment-edit-input {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--line, #253247);
  background: #080d17;
  color: #fff;
  font: inherit;
  font-size: 12px;
  box-sizing: border-box;
}

.feed-comment-edit-input:focus {
  border-color: var(--cyan, #43e5dc);
  outline: none;
}

.feed-comment-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.feed-comment-edit-actions button {
  padding: 3px 8px;
  font-size: 11px;
}

.chat-message-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.chat-message-actions .chat-mention-button,
.chat-message-actions .chat-edit-button,
.chat-message-actions .chat-delete-button {
  padding: 1px 5px !important;
  font-size: 8.5px !important;
  line-height: 1.1 !important;
  height: auto !important;
  min-height: unset !important;
  border-radius: 4px !important;
}

.chat-message-edit-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.chat-message-edit-input {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--line, #253247);
  background: #0b121e;
  color: #fff;
  font: inherit;
  font-size: 13px;
  box-sizing: border-box;
  resize: vertical;
}

.chat-message-edit-input:focus {
  border-color: var(--cyan, #43e5dc);
  outline: none;
}

.chat-message-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.chat-message-edit-actions button {
  padding: 3px 8px;
  font-size: 11px;
}

/* Modern Reaction Pills & Floating Emoji Pickers */
.feed-reaction,
.feed-reaction-button,
.chef-reaction-btn,
.chef-react-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--line, #253247);
  border-radius: 999px;
  background: #141f30;
  color: var(--muted, #98a7b9);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  line-height: 1;
}

.feed-reaction:hover,
.feed-reaction-button:hover,
.chef-reaction-btn:hover,
.chef-react-btn:hover {
  background: #1c2a40;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

.feed-reaction.active,
.feed-reaction-button.active,
.chef-reaction-btn.active,
.chef-react-btn.active {
  background: rgba(67, 229, 220, 0.18);
  border-color: var(--cyan, #43e5dc);
  color: #fff;
  box-shadow: 0 0 12px rgba(67, 229, 220, 0.25);
}

.open-emoji-picker-btn,
.event-add-reaction-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--line, #253247);
  border-radius: 999px;
  color: var(--muted, #98a7b9);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.open-emoji-picker-btn:hover,
.event-add-reaction-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--cyan, #43e5dc);
  border-style: solid;
  transform: translateY(-1px);
}

.feed-emoji-picker,
.event-emoji-picker {
  position: fixed !important;
  bottom: auto !important;
  right: auto !important;
  z-index: 10000 !important;
  width: 340px !important;
  max-width: calc(100vw - 32px) !important;
  max-height: 420px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8) !important;
  border: 1px solid var(--cyan, #43e5dc) !important;
  border-radius: 12px !important;
  background: #131e2d !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 10px !important;
}

.feed-emoji-picker[hidden],
.event-emoji-picker[hidden] {
  display: none !important;
}


/* Sponsor Slots Management Dialog Styles */
.sponsor-slots-container {
  max-height: 440px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding-right: 4px;
}

.sponsor-slot-card {
  display: grid;
  grid-template-columns: 80px 1.4fr 1.6fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #233345;
  border-radius: 8px;
  font-size: 12px;
}

.sponsor-slot-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan, #43e5dc);
}

.sponsor-slot-status-active {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
}

.sponsor-slot-status-vacant {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 640px) {
  .sponsor-slot-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.registered-member-chip {
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

.registered-member-chip:hover {
  background: rgba(255, 189, 131, 0.15) !important;
  border-color: var(--peach, #ffbd83) !important;
  color: var(--peach, #ffbd83) !important;
  transform: translateY(-1px);
}


/* ========================================================
   Enhanced Club Member of the Month Styles (Peaches System)
   ======================================================== */
.member-of-month-card {
  padding: 22px 24px;
  margin-bottom: 24px;
}

.member-of-month-header {
  margin-bottom: 12px;
}

.motm-prize-box {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 189, 131, 0.25);
  margin: 14px 0;
}

.motm-prize-thumb-wrap {
  flex-shrink: 0;
}

.motm-prize-thumb {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 189, 131, 0.35);
  display: block;
}

.motm-prize-thumb-placeholder {
  display: grid;
  place-items: center;
  background: rgba(255, 189, 131, 0.08);
  font-size: 32px;
}

.motm-prize-info {
  flex: 1;
  min-width: 0;
}

.motm-prize-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.motm-prize-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 189, 131, 0.2);
  color: var(--peach, #ffbd83);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.motm-target-badge {
  font-size: 11px;
  color: var(--cyan, #43e5dc);
  font-weight: 600;
}

.motm-prize-admin-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.motm-prize-admin-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line, #233345);
  color: #fff;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 160ms ease;
  line-height: 1.2;
}

.motm-prize-admin-btn:hover {
  background: rgba(255, 189, 131, 0.2);
  border-color: var(--peach, #ffbd83);
  color: var(--peach, #ffbd83);
}

.motm-prize-admin-btn.motm-prize-delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
}

.motm-prize-box-empty {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.015);
}

.motm-prize-title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.motm-prize-sponsor {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--muted, #8391a5);
}

.motm-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}

.motm-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffbd83, #43e5dc);
  border-radius: 999px;
  transition: width 240ms ease;
}

.motm-progress-label {
  font-size: 10px;
  color: #aab8c8;
}

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

.motm-top-main {
  flex: 1 1 54%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ========================================================
   Hero Main Carousel Banner Sponsor Ad Spotlight
   ======================================================== */
.hero-sponsor-ad {
  position: relative;
  width: 100%;
  max-width: none;
  border-radius: 12px;
  background: rgba(7, 13, 22, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 189, 131, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  overflow: hidden;
}

.hero-sponsor-ad:hover {
  background: rgba(7, 13, 22, 0.58);
  border-color: rgba(255, 189, 131, 0.7);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 189, 131, 0.2);
}

.hero-sponsor-ad.hero-sponsor-ad-clickable {
  cursor: pointer;
}

.hero-sponsor-ad.hero-sponsor-ad-clickable:hover {
  transform: translateY(-2px);
  border-color: var(--cyan, #43e5dc);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 18px rgba(67, 229, 220, 0.25);
}

.hero-sponsor-ad.hero-sponsor-ad-clickable:hover .hero-sponsor-title {
  color: var(--cyan, #43e5dc);
}

.hero-sponsor-ad.hero-sponsor-ad-clickable:hover .hero-sponsor-visit-btn {
  background: rgba(67, 229, 220, 0.28);
  border-color: var(--cyan, #43e5dc);
}

.hero-sponsor-ad-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.hero-sponsor-ad-inner {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-sponsor-ad-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.hero-sponsor-badge {
  display: none !important;
}

.hero-sponsor-visit-btn {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--cyan, #43e5dc);
  background: rgba(67, 229, 220, 0.15);
  border: 1px solid rgba(67, 229, 220, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.hero-sponsor-ad-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-sponsor-logo-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 2px 0;
}

.hero-sponsor-logo {
  max-height: 85px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.85));
}

.hero-sponsor-text-group {
  width: 100%;
  text-align: center;
}

.hero-sponsor-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

.hero-sponsor-subtext {
  margin: 2px 0 0;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

.hero-sponsor-daily-perk {
  color: var(--cyan, #43e5dc);
  font-weight: 700;
}

@media (max-width: 860px) {
  .hero-slide {
    background-position: 72% 35%;
  }

  .hero-content {
    max-width: min(720px, calc(100% - 270px));
  }

  .hero-event-sidebar {
    top: 14px;
    right: 14px;
    width: 220px;
  }

  .hero-sponsor-ad {
    width: 100%;
  }
  .hero-sponsor-logo {
    max-height: 55px;
  }
}

@media (max-width: 560px) {
  .hero-slide {
    background-position: 72% 35%;
  }

  .hero-content {
    padding: 22px 10px 24px 16px;
    max-width: calc(100% - 160px);
    flex: 1;
    min-width: 0;
  }

  .hero-description {
    position: relative;
    bottom: auto;
    left: auto;
    margin: 8px 0 0;
    max-width: 100%;
    font-size: 10px;
    line-height: 1.35;
  }

  .hero-event-sidebar {
    position: relative;
    top: auto;
    right: auto;
    align-self: flex-start;
    width: 145px;
    flex-shrink: 0;
    margin: 18px 12px 14px 0;
  }

  .hero-sponsor-ad {
    margin: 0;
    width: 100%;
  }

  .hero-sponsor-ad-inner {
    padding: 8px 10px;
    gap: 6px;
  }

  .hero-sponsor-logo {
    max-height: 48px;
  }

  .hero-sponsor-title {
    font-size: 11.5px;
  }

  .hero-sponsor-subtext {
    font-size: 10px;
    line-height: 1.25;
  }
}

.motm-ad-carousel-frame {
  margin: 0;
  display: none;
}

.motm-ad-carousel-frame.has-ad-image {
  border: 1px solid rgba(255, 189, 131, 0.4);
  background: #090e17;
}

.motm-ad-carousel-frame:hover {
  border-color: rgba(255, 189, 131, 0.7);
  background: rgba(255, 189, 131, 0.05);
}

.motm-ad-carousel-frame.has-ad-image:hover {
  border-color: var(--peach, #ffbd83) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 189, 131, 0.25);
}

.motm-ad-frame-clickable {
  cursor: pointer;
}

.motm-ad-frame-clickable:hover {
  transform: translateY(-2px);
  border-color: var(--cyan, #43e5dc) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(67, 229, 220, 0.25);
}

.motm-ad-frame-clickable:hover .motm-ad-title {
  color: var(--cyan, #43e5dc);
}

.motm-ad-frame-clickable:hover .motm-ad-visit-btn {
  background: rgba(67, 229, 220, 0.25);
  border-color: var(--cyan, #43e5dc);
}

.motm-ad-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  flex: 1;
}

.motm-ad-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 100%;
  flex: 1;
  padding: 14px 16px;
  box-sizing: border-box;
  position: relative;
}

.motm-ad-placeholder-hero {
  justify-content: space-between;
}

.motm-ad-bg-blur {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  object-fit: cover;
  object-position: center;
  filter: blur(24px) brightness(0.35) saturate(1.4);
  z-index: 1;
  pointer-events: none;
}

.motm-ad-full-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.motm-ad-full-bg.is-contain,
.motm-ad-full-bg:not(.is-cover) {
  object-fit: contain;
  object-position: center;
  padding: 38px 16px 54px;
  box-sizing: border-box;
}

.motm-ad-full-bg.is-cover {
  object-fit: cover;
  object-position: center;
  padding: 0;
}

.motm-ad-frame-clickable:hover .motm-ad-full-bg {
  transform: scale(1.03);
}

.motm-ad-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(9, 14, 23, 0.75) 0%,
    rgba(9, 14, 23, 0.15) 35%,
    rgba(9, 14, 23, 0.25) 65%,
    rgba(9, 14, 23, 0.9) 100%
  );
  z-index: 3;
  pointer-events: none;
}

.motm-ad-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 8px;
  position: relative;
  z-index: 4;
}

.motm-ad-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 209, 102, 0.2);
  border: 1px solid rgba(255, 209, 102, 0.35);
  backdrop-filter: blur(4px);
  color: var(--gold, #ffd166);
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.motm-ad-visit-btn {
  font-size: 10px;
  font-weight: 700;
  color: var(--cyan, #43e5dc);
  background: rgba(67, 229, 220, 0.12);
  border: 1px solid rgba(67, 229, 220, 0.35);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.motm-ad-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  position: relative;
  z-index: 4;
}

.motm-ad-content-hero {
  margin-top: auto;
  gap: 0;
}

.motm-ad-content-hero .motm-ad-text-group {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.motm-ad-icon {
  font-size: 24px;
  line-height: 1.1;
  flex-shrink: 0;
}

.motm-ad-text-group {
  flex: 1;
  min-width: 0;
}

.motm-ad-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 3px;
}

.motm-ad-subtext {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.motm-standings-section {
  margin: 14px 0;
  padding: 12px 14px;
  background: rgba(8, 13, 23, 0.45);
  border: 1px solid var(--line, #233345);
  border-radius: 8px;
}

.motm-standings-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.motm-standings-title {
  margin: 0;
  font-size: 13px;
  color: var(--peach, #ffbd83);
  font-weight: 700;
}

.motm-standings-subtitle {
  font-size: 10px;
  color: var(--muted, #8391a5);
}

.motm-standings-scroll {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.motm-standings-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.motm-standing-row {
  display: grid;
  grid-template-columns: 32px minmax(110px, 1fr) auto auto;
  align-items: center;
  gap: 8px 12px;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  transition: background 120ms ease;
}

.motm-standing-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.motm-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
  color: #dbe5ef;
  white-space: nowrap;
}

.motm-stat-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--muted, #8391a5);
}

.motm-stat-item strong {
  font-weight: 700;
  color: #fff;
}

.motm-stat-item.stat-win strong {
  color: #34d399;
}

.motm-stat-item.stat-loss strong {
  color: #f87171;
}

.motm-stat-item.stat-goals strong {
  color: var(--cyan, #43e5dc);
}

.motm-standing-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.motm-standing-top {
  background: rgba(255, 189, 131, 0.08);
  border: 1px solid rgba(255, 189, 131, 0.2);
}

.motm-standing-rank {
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.motm-standing-user-col {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
}

.motm-standing-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.motm-standing-avatar-fallback {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.motm-standing-username {
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.peach-value {
  font-weight: 700;
  color: var(--peach, #ffbd83);
}

.motm-standing-peaches {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.motm-standing-peaches .peach-value {
  font-weight: 700;
  color: var(--peach, #ffbd83);
  font-size: 12px;
}

.motm-standing-peaches .peach-label {
  font-size: 10px;
  color: var(--muted, #8391a5);
}

/* ==========================================================================
   Light Mode Overrides for MOTM Club Standings
   ========================================================================== */
[data-theme="light"] .motm-standings-section {
  background: #fbf7f4;
  border: 1px solid #fae8dc;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.04);
}

[data-theme="light"] .motm-standings-title {
  color: #d9531e;
}

[data-theme="light"] .motm-standings-subtitle {
  color: #6f5885;
}

[data-theme="light"] .motm-standing-row {
  background: #ffffff;
  border: 1px solid rgba(250, 232, 220, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .motm-standing-row:hover {
  background: #fdf5ef;
  border-color: #f6c8af;
}

[data-theme="light"] .motm-standing-top {
  background: #fff8f2;
  border: 1px solid #fed7aa;
}

[data-theme="light"] .motm-standing-rank {
  color: #6f5885;
}

[data-theme="light"] .motm-standing-username {
  color: #1d1427;
  font-weight: 700;
}

[data-theme="light"] .motm-standing-avatar-fallback {
  background: rgba(217, 83, 30, 0.12);
  color: #d9531e;
}

[data-theme="light"] .motm-stat-item {
  background: #fbf7f4;
  border: 1px solid #fae8dc;
  color: #1d1427;
}

[data-theme="light"] .motm-stat-label {
  color: #6f5885;
}

[data-theme="light"] .motm-stat-item strong {
  color: #1d1427;
}

[data-theme="light"] .motm-stat-item.stat-win strong {
  color: #0d8b85;
}

[data-theme="light"] .motm-stat-item.stat-loss strong {
  color: #c52243;
}

[data-theme="light"] .motm-stat-item.stat-goals strong {
  color: #d9531e;
}

[data-theme="light"] .motm-standing-peaches .peach-value {
  color: #d9531e;
}

[data-theme="light"] .motm-standing-peaches .peach-label {
  color: #6f5885;
}

@media (max-width: 860px) {
  .motm-top-grid {
    flex-direction: column;
    gap: 16px;
  }
  .motm-ad-carousel-frame {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
  }
  .motm-ad-placeholder:not(.motm-ad-placeholder-hero) {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .motm-prize-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .motm-prize-admin-actions {
    margin-left: 0;
    width: 100%;
    margin-top: 4px;
  }
  .motm-ad-placeholder {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .motm-standing-row {
    grid-template-columns: 28px 1fr auto;
    gap: 5px 8px;
    padding: 7px 8px;
  }
  .motm-standing-stats {
    grid-column: 2 / -1;
    gap: 5px;
  }
  .motm-stat-item {
    padding: 1px 6px;
    font-size: 10px;
  }
  .motm-stat-label {
    font-size: 8.5px;
  }
}


/* ========================================================
   Firebase Usage & Tier Quotas Dashboard
   ======================================================== */
.health-firebase-quotas-section {
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d1522;
}

.health-quotas-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.health-quotas-title {
  margin: 6px 0 2px;
  color: var(--cyan);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.health-quotas-subtitle {
  margin: 0;
  color: #aab8c8;
  font-size: 11px;
  line-height: 1.5;
}

.health-quotas-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.health-tier-selector-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.health-tier-select-label {
  font-size: 11px;
  font-weight: 700;
  color: #c4d0dc;
}

.health-tier-select {
  padding: 5px 10px;
  background: #141f30;
  color: #fff;
  border: 1px solid #35465b;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.health-quota-alert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  transition: all 0.25s ease;
}

.health-quota-alert-banner.is-healthy {
  background: rgba(67, 229, 220, 0.08);
  border: 1px solid rgba(67, 229, 220, 0.35);
}

.health-quota-alert-banner.is-warn {
  background: rgba(255, 189, 131, 0.12);
  border: 1px solid rgba(255, 189, 131, 0.5);
}

.health-quota-alert-banner.is-critical {
  background: rgba(255, 75, 95, 0.18);
  border: 1px solid #ff4b5f;
  box-shadow: 0 0 16px rgba(255, 75, 95, 0.25);
  animation: quotaPulse 2s infinite ease-in-out;
}

@keyframes quotaPulse {
  0%, 100% { border-color: #ff4b5f; box-shadow: 0 0 12px rgba(255, 75, 95, 0.25); }
  50% { border-color: #ff8291; box-shadow: 0 0 24px rgba(255, 75, 95, 0.5); }
}

.quota-alert-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}

.is-healthy .quota-alert-icon {
  background: rgba(67, 229, 220, 0.2);
  color: var(--cyan);
}

.is-warn .quota-alert-icon {
  background: rgba(255, 189, 131, 0.25);
  color: #ffbd83;
}

.is-critical .quota-alert-icon {
  background: rgba(255, 75, 95, 0.3);
  color: #fff;
}

.quota-alert-copy {
  flex: 1;
  min-width: 0;
}

.quota-alert-headline {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 2px;
}

.is-healthy .quota-alert-headline { color: var(--cyan); }
.is-warn .quota-alert-headline { color: #ffbd83; }
.is-critical .quota-alert-headline { color: #ff7082; }

.quota-alert-detail {
  margin: 0;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.45;
}

.quota-upgrade-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.quota-upgrade-btn:hover {
  background: var(--cyan);
  color: #080d17;
  border-color: var(--cyan);
}

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

.quota-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border-radius: 10px;
  background: #101b2b;
  border: 1px solid #233146;
  transition: border-color 0.2s, background 0.2s;
}

.quota-card:hover {
  border-color: #384e6d;
}

.quota-card[data-status="critical"] {
  border-color: rgba(255, 75, 95, 0.6);
  background: rgba(255, 75, 95, 0.04);
}

.quota-card[data-status="warn"] {
  border-color: rgba(255, 189, 131, 0.5);
  background: rgba(255, 189, 131, 0.03);
}

.quota-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.quota-card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quota-card-icon {
  font-size: 20px;
  line-height: 1;
}

.quota-card-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.quota-card-limit-tag {
  display: block;
  font-size: 10px;
  color: #8fa0b5;
  margin-top: 1px;
}

.quota-status-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.quota-pill-safe {
  background: rgba(67, 229, 220, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(67, 229, 220, 0.3);
}

.quota-pill-warn {
  background: rgba(255, 189, 131, 0.18);
  color: #ffbd83;
  border: 1px solid rgba(255, 189, 131, 0.4);
}

.quota-pill-critical {
  background: rgba(255, 75, 95, 0.22);
  color: #ff6b7e;
  border: 1px solid rgba(255, 75, 95, 0.5);
  font-weight: 900;
}

.quota-numbers-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.quota-used-val {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  font-family: var(--display-font);
}

.quota-slash {
  color: #556882;
  font-size: 14px;
}

.quota-max-val {
  color: #9cb0c7;
  font-size: 12px;
}

.quota-percent-used {
  font-size: 11px;
  font-weight: 700;
  color: #a0aec0;
  margin-left: auto;
}

.quota-progress-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.quota-progress-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease, background 0.3s ease;
}

.quota-bar-safe {
  background: linear-gradient(90deg, #38ef7d, #11998e);
}

.quota-bar-warn {
  background: linear-gradient(90deg, #f6d365, #fda085);
}

.quota-bar-critical {
  background: linear-gradient(90deg, #ff416c, #ff4b2b);
}

.quota-card-footer {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

.quota-remaining-note {
  font-weight: 700;
  color: #cbd5e1;
}

.quota-card[data-status="critical"] .quota-remaining-note {
  color: #ff8291;
}

.quota-card[data-status="warn"] .quota-remaining-note {
  color: #ffbd83;
}

.quota-tier-note {
  color: #788a9f;
}

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

@media (max-width: 680px) {
  .health-quotas-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .health-quotas-header {
    flex-direction: column;
  }
  .health-quota-alert-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

[data-theme="light"] .health-firebase-quotas-section {
  background: #fdf2f8;
  border-color: #eed5e5;
}
[data-theme="light"] .quota-card {
  background: #ffffff;
  border-color: #e5e7eb;
}
[data-theme="light"] .quota-card-title,
[data-theme="light"] .quota-used-val {
  color: #111827;
}
[data-theme="light"] .health-tier-select {
  background: #ffffff;
  color: #111827;
  border-color: #cbd5e1;
}
[data-theme="light"] .quota-card-limit-tag,
[data-theme="light"] .quota-tier-note,
[data-theme="light"] .health-quotas-subtitle {
  color: #6b7280;
}
[data-theme="light"] .quota-remaining-note {
  color: #374151;
}

/* ========================================================
   Mentions & Autocomplete System (@mentions)
   ======================================================== */
.mention-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  margin: 0 2px;
  border-radius: 999px;
  background: rgba(255, 189, 131, 0.16);
  color: var(--peach, #ffbd83);
  font-weight: 700;
  font-size: 0.95em;
  border: 1px solid rgba(255, 189, 131, 0.35);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  vertical-align: baseline;
}

.mention-tag:hover {
  background: rgba(255, 189, 131, 0.3);
  border-color: var(--peach, #ffbd83);
  box-shadow: 0 0 8px rgba(255, 189, 131, 0.35);
}

.mention-tag.mention-tag-me {
  background: var(--peach, #ffbd83);
  color: #111827;
  font-weight: 800;
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255, 189, 131, 0.5);
}

.chat-message.chat-message-mentioned,
.feed-post-card.feed-card-mentioned {
  border-left: 3px solid var(--peach, #ffbd83) !important;
  background: linear-gradient(90deg, rgba(255, 189, 131, 0.08) 0%, transparent 100%);
}

.feed-comment.feed-comment-mentioned {
  border-left: 2px solid var(--peach, #ffbd83);
  background: rgba(255, 189, 131, 0.08);
  border-radius: 6px;
  padding-left: 6px;
}

.mention-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 189, 131, 0.2);
  color: var(--peach, #ffbd83);
  border: 1px solid rgba(255, 189, 131, 0.4);
  margin-left: 6px;
  vertical-align: middle;
}

.mention-autocomplete-menu {
  position: absolute;
  z-index: 10000;
  min-width: 220px;
  max-width: 320px;
  max-height: 220px;
  overflow-y: auto;
  background: #141b26;
  border: 1px solid #33445b;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65), 0 0 12px rgba(255, 189, 131, 0.25);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mention-autocomplete-menu[hidden] {
  display: none !important;
}

.mention-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.1s ease, color 0.1s ease;
  user-select: none;
}

.mention-item:hover,
.mention-item.is-selected {
  background: rgba(255, 189, 131, 0.2);
  color: var(--peach, #ffbd83);
}

.mention-item-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: #233146;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.mention-item-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-mention-button,
.comment-mention-btn,
.feed-mention-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #a0aec0;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.chat-mention-button:hover,
.comment-mention-btn:hover,
.feed-mention-btn:hover {
  background: rgba(255, 189, 131, 0.15);
  border-color: var(--peach, #ffbd83);
  color: var(--peach, #ffbd83);
}

[data-theme="light"] .mention-autocomplete-menu {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .mention-item {
  color: #1e293b;
}

[data-theme="light"] .mention-item:hover,
[data-theme="light"] .mention-item.is-selected {
  background: #ffedd5;
  color: #c2410c;
}

[data-theme="light"] .mention-tag {
  background: #ffedd5;
  color: #c2410c;
  border-color: #fdba74;
}

[data-theme="light"] .chat-mention-button,
[data-theme="light"] .comment-mention-btn,
[data-theme="light"] .feed-mention-btn {
  border-color: #cbd5e1;
  color: #475569;
}

/* ========================================================
   Strict Admin Panel Lockdown & Clicks/Visits Telemetry Suite
   ======================================================== */
body:not(.is-admin) #admin-menu,
body:not(.is-admin) #admin-controls-group,
body:not(.is-admin) #admin-health,
body:not(.is-admin) #calendar,
body:not(.is-admin) #social-calendar,
body:not(.is-admin) #tournament-calendar,
body:not(.is-admin) .event-admin-actions-row,
body:not(.is-admin) .tournament-admin-actions-group,
body:not(.is-admin) #maintenance-admin-edit-btn,
body:not(.is-admin) #maintenance-admin-off-btn {
  display: none !important;
}

.health-telemetry-section {
  margin-top: 24px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(10, 17, 29, 0.85);
  border: 1.5px solid rgba(16, 185, 129, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.health-attack-monitor-section {
  margin-top: 24px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(15, 12, 22, 0.9);
  border: 1.5px solid rgba(239, 68, 68, 0.65);
  box-shadow: 0 12px 32px rgba(127, 29, 29, 0.28);
}

.health-telemetry-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.health-telemetry-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.health-telemetry-kicker-sub {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.telemetry-reset-btn {
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #f87171 !important;
}

.telemetry-reset-btn:hover {
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: #ef4444 !important;
}

.telemetry-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.telemetry-kpi-card {
  background: rgba(7, 12, 21, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
}

.telemetry-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.telemetry-kpi-val {
  font-family: var(--display-font);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.telemetry-kpi-val small {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

.val-emerald { color: #34d399; }
.val-pink { color: #f472b6; }
.val-amber { color: #fbbf24; }
.val-cyan { color: #38bdf8; }
.val-red { color: #f87171; }

.telemetry-kpi-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

.telemetry-bot-split-box {
  background: rgba(7, 12, 21, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.telemetry-bot-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.telemetry-pill-magenta {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #d946ef;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.telemetry-pill-danger {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.telemetry-pill-safe {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
}

.telemetry-bot-title {
  font-size: 13px;
  color: #f8fafc;
  letter-spacing: 0.4px;
}

.telemetry-bot-desc {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: #94a3b8;
}

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

.telemetry-sim-btn {
  font-size: 11px !important;
  padding: 5px 10px !important;
}

.telemetry-split-bar-wrap {
  margin-bottom: 14px;
}

.telemetry-split-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.split-label-human { color: #34d399; }
.split-label-bot { color: #fbbf24; }

.telemetry-dual-track {
  display: flex;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.telemetry-dual-fill-human {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 0.35s ease;
}

.telemetry-dual-fill-bot {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  transition: width 0.35s ease;
}

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

.telemetry-bot-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
}

.telemetry-bot-card-danger {
  border-color: rgba(239, 68, 68, 0.35);
}

.telemetry-bot-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
}

.telemetry-bot-card-val {
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 800;
  margin: 2px 0;
}

.telemetry-bot-card-note {
  font-size: 10px;
  color: #64748b;
}

.telemetry-details-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 16px;
}

.telemetry-categories-panel,
.telemetry-targets-panel,
.telemetry-attacks-box {
  background: rgba(7, 12, 21, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
}

.telemetry-subpanel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #e2e8f0;
}

.telemetry-subpanel-header small {
  font-weight: 500;
  color: #94a3b8;
}

.telemetry-category-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.telemetry-cat-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  margin-bottom: 4px;
  color: #cbd5e1;
}

.telemetry-cat-count {
  font-weight: 700;
  color: #f472b6;
}

.telemetry-cat-track {
  width: 100%;
  height: 7px;
  background: #0f172a;
  border-radius: 999px;
  overflow: hidden;
}

.telemetry-cat-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b2b, #ec4899, #43e5dc);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.telemetry-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.telemetry-filter-pill {
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.7);
  color: #94a3b8;
  cursor: pointer;
}

.telemetry-filter-pill.active,
.telemetry-filter-pill:hover {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.telemetry-table-scroll {
  max-height: 250px;
  overflow-y: auto;
  overflow-x: auto;
}

.telemetry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.telemetry-table th {
  text-align: left;
  padding: 6px 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.telemetry-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

.telemetry-empty-cell {
  text-align: center;
  padding: 24px 12px !important;
  color: #64748b !important;
}

.telemetry-cat-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 9.5px;
  text-transform: uppercase;
  color: #cbd5e1;
}

.telemetry-attack-test-btn {
  background: #dc2626 !important;
  border-color: #f87171 !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.telemetry-attack-test-btn:hover {
  background: #ef4444 !important;
}

.telemetry-attack-feedback {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.5);
  background: rgba(6, 78, 59, 0.55);
  color: #6ee7b7;
}

.telemetry-attack-feedback.is-error {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(120, 53, 15, 0.55);
  color: #fde68a;
}

@media (max-width: 860px) {
  .telemetry-kpi-grid,
  .telemetry-bot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .telemetry-details-grid {
    grid-template-columns: 1fr;
  }
}

[data-theme="light"] .health-telemetry-section,
[data-theme="light"] .health-attack-monitor-section {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .telemetry-kpi-card,
[data-theme="light"] .telemetry-bot-split-box,
[data-theme="light"] .telemetry-bot-card,
[data-theme="light"] .telemetry-categories-panel,
[data-theme="light"] .telemetry-targets-panel,
[data-theme="light"] .telemetry-attacks-box {
  background: #faf6f9;
  border-color: #e9d5ff;
}

[data-theme="light"] .telemetry-bot-title,
[data-theme="light"] .telemetry-subpanel-header,
[data-theme="light"] .telemetry-cat-row-top,
[data-theme="light"] .telemetry-table td {
  color: #1e1b4b;
}

[data-theme="light"] .telemetry-cat-badge {
  background: #f3e8ff;
  border-color: #d8b4fe;
  color: #5b21b6;
}

.event-admin-rollback-btn {
  border-color: rgba(251, 146, 60, 0.55) !important;
  background: rgba(251, 146, 60, 0.14) !important;
  color: #fdba74 !important;
  cursor: pointer;
}

.event-admin-rollback-btn:hover {
  border-color: #fb923c !important;
  background: rgba(251, 146, 60, 0.28) !important;
}

.bracket-undo-match-btn,
.attendee-remove-btn {
  padding: 4px 9px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 5px;
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.bracket-undo-match-btn:hover,
.attendee-remove-btn:hover {
  border-color: #f87171;
  background: rgba(239, 68, 68, 0.28);
}

.bracket-round-finals {
  padding: 10px;
  border: 1px solid rgba(255, 189, 131, 0.35);
  border-radius: 8px;
  background: rgba(255, 189, 131, 0.06);
}

.bracket-finals-match {
  border-color: rgba(255, 189, 131, 0.5) !important;
}

body:not(.is-admin) .bracket-undo-match-btn,
body:not(.is-admin) .attendee-remove-btn,
body:not(.is-admin) .admin-guest-register-form {
  display: none !important;
}

.admin-guest-register-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.admin-guest-name-input {
  flex: 1 1 160px;
  min-width: 140px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #2a394d;
  background: #0f172a;
  color: #eef3f8;
  font-size: 12px;
}

.admin-guest-name-input:focus {
  outline: none;
  border-color: var(--cyan, #43e5dc);
}

.guest-attendee-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(67, 229, 220, 0.45);
  background: rgba(67, 229, 220, 0.14);
  color: var(--cyan, #43e5dc);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-theme="light"] .admin-guest-name-input {
  background: #ffffff;
  border-color: #d8b4fe;
  color: #181028;
}

[data-theme="light"] .guest-attendee-badge {
  border-color: #c084fc;
  background: #f3e8ff;
  color: #6b21a8;
}

[data-theme="light"] .bracket-side-card {
  background: #fcf8ff !important;
  border-color: #e9d5ff !important;
  color: #181028 !important;
}

[data-theme="light"] .event-admin-rollback-btn {
  border-color: #fb923c !important;
  background: linear-gradient(135deg, #ea580c 0%, #db2777 100%) !important;
  color: #ffffff !important;
}

[data-theme="light"] .bracket-undo-match-btn,
[data-theme="light"] .attendee-remove-btn {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
}



