:root {
  --bg: #C6D0E2;
  --surface: #AEB9D2;
  --text-primary: #171C2E;
  --text-secondary: #3B4660;
  --accent: #6A5ACD;
  --on-accent: #F7F7FF;
  --border: #94A1BE;
  --hover: rgba(106, 90, 205, 0.14);
}

[data-theme="dark"] {
  --bg: #1B1712;
  --surface: #262019;
  --text-primary: #EDE6D9;
  --text-secondary: #A79A86;
  --accent: #47693F;
  --on-accent: #F2EDE2;
  --border: #3D3326;
  --hover: rgba(71, 105, 63, 0.24);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  transition: background 0.3s ease, color 0.3s ease;
}

.app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  transition: background 0.3s ease, border 0.3s ease;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 16px 20px;
  border-bottom: 1px solid var(--border);
}

.brand-logo-wrap {
  display: flex;
  justify-content: center;
}

.brand-logo {
  width: 165px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

[data-theme="dark"] .brand-logo {
  background: transparent;
}

.brand-mark {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 0;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.brand-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.brand-name {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}

.brand-sub {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--text-primary);
  text-transform: uppercase;
}

[data-theme="dark"] .brand-name {
  background: linear-gradient(180deg, #F6F8FB 0%, #C7D0DB 45%, #8E98A7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(199, 208, 219, 0.25);
}

.brand-name {
  color: #3E4A5C;
  background: linear-gradient(180deg, #5A6A7E 0%, #3E4A5C 55%, #26313F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-name .brand-mono {
  display: inline-block;
  -webkit-text-fill-color: #171C2E;
  background: linear-gradient(160deg, #EEF2F7 0%, #C7D0DB 45%, #8E98A7 100%);
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #171C2E;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), 0 0 14px rgba(199, 208, 219, 0.45);
  width: 1.15em;
  height: 1.15em;
  line-height: 1.05em;
  text-align: center;
  margin-right: 0.1em;
}

[data-theme="dark"] .brand-name .brand-mono {
  -webkit-text-fill-color: #1B1712;
  color: #1B1712;
  border-color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .brand-sub {
  background: linear-gradient(90deg, #f0d98c, #D4AF37, #fff3cd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}

.brand-sub {
  color: #8A6A1F;
}

.brand-tagline {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: 100%;
}

.brand-tagline .tl-1,
.brand-tagline .tl-2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #B08A2E;
  font-style: italic;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
  white-space: nowrap;
}

[data-theme="dark"] .brand-tagline .tl-1,
[data-theme="dark"] .brand-tagline .tl-2 {
  background: linear-gradient(90deg, #f0d98c, #D4AF37, #fff3cd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}

.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-group-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-group-toggle:hover {
  color: var(--text-primary);
}

.nav-group-label {
  flex: 1;
  text-align: left;
}

.nav-chevron {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.nav-group.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-group-items {
  display: none;
  flex-direction: column;
  gap: 2px;
}

.nav-group.open .nav-group-items {
  display: flex;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 0;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-item:hover {
  background: var(--hover);
}

.nav-item.active {
  background: var(--hover);
  color: var(--accent);
}

[data-theme="dark"] .nav-item.active {
  color: #8CBE82;
}

.nav-item .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.badge {
  margin-left: auto;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}

[data-theme="dark"] .badge {
  color: var(--on-accent);
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coin-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: border-color .15s ease, transform .15s ease;
}

.coin-chip:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.coin-ico { font-size: 15px; }
.coin-bal { color: var(--accent); }
.coin-label { font-size: 12px; color: var(--text-secondary); font-weight: 600; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--hover);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 0;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.theme-toggle .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  border-radius: 0;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

[data-theme="dark"] .avatar {
  color: var(--on-accent);
}

.av-sm { width: 38px; height: 38px; font-size: 13px; }
.av-lg { width: 56px; height: 56px; font-size: 18px; }

.profile-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.profile-name {
  font-weight: 600;
  font-size: 14px;
}

.profile-status {
  font-size: 12px;
  color: var(--text-secondary);
}

.logout-link {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 0;
  transition: color 0.2s, background 0.2s;
}

.logout-link:hover {
  color: #e11d48;
  background: var(--hover);
}

.sidebar-legal {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.sidebar-legal a {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
}
.sidebar-legal a:hover { color: var(--accent); text-decoration: underline; }

/* Main */
.main {
  flex: 1;
  padding: 20px 24px;
  max-width: 1200px;
  width: 100%;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

/* Buttons */
.btn {
  border: none;
  border-radius: 0;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

[data-theme="dark"] .btn-primary {
  color: var(--on-accent);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: var(--hover);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* Sections */
.section {
  display: none;
}

.section.active {
  display: block;
}

/* Chat uses the full available width */
.has-chat .main {
  max-width: none;
}

/* Stats */
/* Nearby map */
.map-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.map-wrap {
  position: relative;
}

.map-container {
  width: 100%;
  height: 460px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  z-index: 0;
}

.has-chat .map-container,
.map-container:focus { outline: none; }

.map-status {
  padding: 10px 0 14px;
  font-size: 13px;
}

.leaflet-container {
  font: inherit;
}

.leaflet-popup-content {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.map-pop {
  min-width: 150px;
}

.map-pop strong {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-pop .muted { color: #6b7280; }

.map-pop a {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.map-pop a:hover { text-decoration: underline; }

.map-pop img.map-pop-av {
  width: 220px;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 0 6px;
}

@media (max-width: 700px) {
  .map-container { height: 340px; }
}

/* Announcements */
.announce {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left-width: 4px;
}

.announce strong {
  font-size: 15px;
}

.ann-body {
  font-size: 14px;
  margin-top: 4px;
  line-height: 1.5;
  color: var(--text-primary);
}

.ann-by {
  display: block;
  font-size: 12px;
  margin-top: 6px;
}

.ann-dismiss {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
}

.ann-dismiss:hover {
  color: #e11d48;
}

.adm-ann {
  border-bottom: 1px solid var(--border);
  padding: 12px 2px;
}

.adm-ann .wink-actions {
  margin-top: 8px;
}

/* Club Gallery */
.gallery-tabs {
  display: flex;
  gap: 6px;
}

.gallery-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 6px 0 12px;
}

.gl-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
}

.gl-item img,
.gl-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gl-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity .2s ease;
}

.gl-item:hover .gl-overlay { opacity: 1; }
.gl-overlay strong { color: #fff; }

.gl-open {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.4);
  opacity: 0;
  transition: opacity .2s ease;
}

.gl-item:hover .gl-open { opacity: 1; }
.gl-open:hover { background: rgba(0,0,0,.85); }

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox[hidden] { display: none; }

.gl-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
}

.gl-content {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.gl-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.gl-close:hover { color: #e11d48; }

.gl-caption {
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}

.gl-caption .gl-caption-text {
  margin-top: 4px;
}

.gl-caption a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-left: 8px;
}

.gl-caption a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .gallery-wall { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* Gifts & coins */
.gift-send-card {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.gift-recip-results {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border);
  background: var(--surface);
}

.gift-recip-item {
  text-align: left;
  background: none;
  border: none;
  padding: 9px 12px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 14px;
}

.gift-recip-item:hover { background: var(--hover); }
.gift-recip-none { padding: 9px 12px; font-size: 13px; color: var(--text-secondary); }

.gift-h {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 18px 0 10px;
}

.gift-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.gift-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-primary);
  transition: border-color .15s ease, transform .15s ease;
}

.gift-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.gift-emoji { font-size: 28px; }
.gift-name { font-size: 14px; font-weight: 600; text-align: center; }
.gift-cost { font-size: 13px; color: var(--accent); font-weight: 700; }

.gift-coins-row {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 420px;
}

.gift-coins-row input { flex: 1; }

.kink-suggestions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.kink-cat {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.kink-cat-name {
  min-width: 90px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 700;
}

.tag.kink-tag,
.chip.tag.kink-tag {
  background: var(--hover);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* Compatible members */
.shared-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.chip.shared-tag {
  background: var(--hover);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 7px;
}

/* Dashboard tiles */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.dash-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  color: var(--text-primary);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.2s ease;
}

.dash-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--hover);
}

.dash-tile.active {
  border-color: var(--accent);
  background: var(--hover);
}

.dash-tile-emoji {
  font-size: 22px;
}

.dash-tile-label {
  font-weight: 700;
  font-size: 14px;
}

.dash-tile-count {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.dash-tile-hint {
  font-size: 12px;
  color: var(--text-secondary);
}

.dash-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.dash-detail[hidden] { display: none; }

.dash-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
}

.dash-detail-card .card-header { display: flex; justify-content: space-between; align-items: center; }
.dash-detail-card .card-body { padding: 16px 18px; }
.dash-list { padding: 8px 16px; }
.dash-row { display: flex; align-items: center; text-decoration: none; color: var(--text-primary); }
.dash-row:hover { background: var(--hover); }
.dash-event-row { cursor: pointer; }
.dash-event-row:hover .event-item { background: var(--hover); }

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.3s ease, border 0.3s ease;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
}

.stat-trend {
  font-size: 13px;
  color: var(--text-secondary);
}

.stat-trend.up {
  color: var(--accent);
}

/* Cards & grids */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 24px;
  margin-bottom: 24px;
  transition: background 0.3s ease, border 0.3s ease;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.card-header h3 {
  font-size: 17px;
  font-weight: 700;
}

.card-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid-2col .card {
  margin-bottom: 0;
}

.spotlight-body {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 4px 2px;
}

.spotlight-av {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  background-size: cover;
  background-position: center;
}

.spotlight-info {
  flex: 1;
  min-width: 0;
}

.spotlight-name {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spotlight-loc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.spotlight-bio {
  font-size: 14px;
  color: var(--text-primary);
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-cta {
  flex-shrink: 0;
}

@media (max-width: 1000px) {
  .spotlight-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .spotlight-body { flex-direction: column; text-align: center; }
  .spotlight-name { justify-content: center; }
}

.avatar-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.as-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 64px;
  text-decoration: none;
  color: var(--text-primary);
  text-align: center;
}

.as-item:hover .as-name {
  color: var(--accent);
}

.as-av {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background-size: cover;
  background-position: center;
}

.as-item .online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
}

.as-name {
  font-size: 12px;
  line-height: 1.2;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

/* Activity list */
.activity-list, .event-list {
  list-style: none;
}

.activity-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-body p {
  font-size: 14px;
  line-height: 1.4;
}

.muted {
  color: var(--text-secondary);
}

strong {
  color: var(--text-primary);
}

.timestamp {
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
}

/* Events */
.event-list {
  list-style: none;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.event-meta-right { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.event-actions { display: flex; gap: 6px; flex-shrink: 0; }

.cal-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cal-date { font-family: Georgia, serif; font-weight: 700; color: var(--accent); min-width: 120px; }

.event-item:last-child {
  border-bottom: none;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--hover);
}

.day {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.mon {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.event-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.events-full {
  display: flex;
  flex-direction: column;
}

/* Posts / feed */
.feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 18px;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.post-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.post-body {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.post-actions {
  display: flex;
  gap: 16px;
}

.post-action {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
}

.post-action:hover {
  color: var(--accent);
}

/* Member / group grid */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: background 0.3s ease, border 0.3s ease;
}

.msg-card {
  padding: 24px;
  align-items: flex-start;
  text-align: left;
}

.msg-card .muted {
  font-size: 13px;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-overlay.open {
  display: flex;
}

.quota-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 34px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.quota-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--accent, #D4AF37);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.quota-sub {
  font-size: 13px;
  color: var(--muted, #9CA3AF);
  line-height: 1.55;
  margin-bottom: 20px;
}
.quota-sub a {
  color: var(--accent, #D4AF37);
}
.quota-timer {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text, #F3F4F6);
  margin-bottom: 22px;
}
.quota-close {
  background: var(--accent, #D4AF37);
  color: #121212;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.quota-close:hover { opacity: 0.92; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 28px;
  width: 100%;
  max-width: 540px;
  transition: background 0.3s ease;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
}

.post-textarea {
  width: 100%;
  min-height: 120px;
  background: var(--bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 14px;
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  transition: background 0.3s ease, color 0.3s ease;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.chip {
  background: var(--hover);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* Member search */
.member-search {
  margin-bottom: 4px;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.search-grid .field { margin-bottom: 0; }

.seg-sm .seg-btn { padding: 6px 12px; font-size: 12px; }

.search-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.search-hint {
  font-size: 12px;
}

.loc-line {
  font-size: 12px;
}

.dist-badge {
  color: var(--accent);
}

.members-empty {
  padding: 20px;
  text-align: center;
}

/* Role stats + badges */
.role-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.role-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  transition: background 0.3s ease, border 0.3s ease;
}

.role-num {
  font-size: 26px;
  font-weight: 700;
}

.role-lbl {
  font-size: 13px;
  color: var(--text-secondary);
}

.role-stat-card.daddy { border-color: var(--border); }
.role-stat-card.admirer { border-color: var(--border); }
.role-stat-card.both { border-color: var(--border); }

.role-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2px 0;
}

.role-badge {
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 8px;
  letter-spacing: 0.3px;
}

.daddy-badge {
  background: rgba(30, 41, 59, 0.12);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

[data-theme="dark"] .daddy-badge {
  background: rgba(71, 105, 63, 0.18);
  border-color: #47693F;
  color: #9cc490;
}

.admirer-badge {
  background: rgba(71, 105, 63, 0.14);
  border: 1px solid #47693F;
  color: #6b915f;
}

[data-theme="dark"] .admirer-badge {
  background: rgba(71, 105, 63, 0.22);
  color: #9cc490;
}

.member-card.clickable {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.member-card.clickable:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.small-link {
  margin-top: 6px;
  font-size: 13px;
}

/* Online / offline status */
.member-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  margin-top: 2px;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2E9E3F;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(46, 158, 63, 0.22);
  animation: onlinePulse 2s ease-in-out infinite;
}

.online-text {
  color: #2E9E3F;
  font-weight: 700;
}

@keyframes onlinePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46, 158, 63, 0.22); }
  50% { box-shadow: 0 0 0 6px rgba(46, 158, 63, 0.05); }
}

.status-off {
  color: var(--text-secondary);
}

.offline-time {
  color: var(--text-secondary);
  opacity: 0.85;
}

/* Member modal */
.member-modal {
  max-width: 460px;
}

.mm-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.mm-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mm-dist {
  font-size: 13px;
  color: var(--text-secondary);
}

.mm-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.mm-bio {
  font-size: 14px;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  color: var(--text-primary);
}

.mm-shared {
  margin-top: 12px;
}

.mm-note {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mm-note.locked {
  flex-direction: row;
  align-items: center;
  background: rgba(212, 175, 55, 0.04);
  border-style: dashed;
  gap: 10px;
  cursor: pointer;
}
.mm-note-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
}
.mm-note-lock {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.note-input {
  width: 100%;
  resize: vertical;
  min-height: 68px;
  background: var(--bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  font-size: 13.5px;
}
.mm-note-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.new-profiles-card {
  margin-bottom: 16px;
}
.new-profiles-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.np-row {
  display: flex;
  gap: 12px;
  padding: 12px 2px;
  border-top: 1px solid var(--border);
}
.np-row:first-child { border-top: none; }
.np-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.np-body { flex: 1; min-width: 0; }
.np-name { font-weight: 700; font-size: 14.5px; }
.np-age { color: var(--muted); font-weight: 400; }
.np-gallery { margin-left: 6px; font-size: 10px; }
.np-loc { font-size: 12.5px; color: var(--muted); margin: 2px 0; }
.np-loc .np-dist { margin-left: 8px; }
.np-bio { font-size: 13px; line-height: 1.5; color: var(--text-primary); margin: 4px 0; }
.np-pref { font-size: 12.5px; color: var(--muted); margin: 2px 0; }

/* Winks */
.winks-list { padding: 6px 2px; }
.wink-row.unread { background: var(--hover); }
.wink-row .np-body { display: flex; flex-direction: column; gap: 2px; }
.wink-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.wink-actions .btn { margin: 0; }

.fav-remove {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.fav-remove:hover { color: var(--accent); }

/* Admin reports + analytics */
.admin-tabs .tab { display: inline-flex; align-items: center; gap: 6px; }

.adm-report {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--surface);
}
.adm-report-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.adm-report-reason { font-weight: 700; text-transform: capitalize; }
.adm-report-body { font-size: 13.5px; color: var(--text-primary); display: flex; align-items: flex-start; gap: 12px; }
.adm-report-path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.adm-report-arrow { color: var(--text-secondary); }
.adm-report-path p { width: 100%; }
.adm-report-actions { display: flex; gap: 8px; margin-top: 10px; }

.analytics-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.analytics-row .card { padding: 16px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bar { width: 100%; border-radius: 3px 3px 0 0; min-height: 2px; }
.bar-label { font-size: 10px; color: var(--text-secondary); }
.rank-row { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.rank-name { color: var(--text-primary); }

/* Responsive */
@media (max-width: 900px) {
  .app {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
  }
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
  }
  .sidebar-footer {
    flex-direction: row;
    align-items: center;
  }
  .grid-2col {
    grid-template-columns: 1fr;
  }
  .analytics-row {
    grid-template-columns: 1fr;
  }
  .main {
    padding: 20px;
  }
}

/* ===== Profile ===== */
.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.profile-preview {
  position: sticky;
  top: 24px;
}

.avatar-xl {
  width: 96px;
  height: 96px;
  font-size: 28px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.preview-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.preview-head h3 {
  font-size: 20px;
}

.pv-views {
  font-size: 13px;
  margin-bottom: 18px;
}

.completion {
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 14px;
  margin-bottom: 16px;
}

.completion-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.completion-bar {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.completion-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
}

.completion-hint {
  font-size: 12px;
  margin-top: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  background: var(--hover);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
}

.link-copy {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

[data-theme="dark"] .tab.active {
  color: #8CBE82;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

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

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field label em {
  font-style: normal;
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 12px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  transition: background 0.3s ease, border 0.3s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.readonly-field {
  opacity: 0.75;
  cursor: not-allowed;
  background: var(--surface);
}

.field input[type="checkbox"] {
  width: auto;
}

.field input[type="file"] {
  padding: 8px;
}

.unit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.unit-row .w-16 { width: 70px; }
.unit-row .w-20 { width: 90px; }

.or {
  color: var(--text-secondary);
  font-size: 13px;
}

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

.seg-btn,
.chip-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.seg-btn.on,
.chip-btn.on {
  background: var(--hover);
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

[data-theme="dark"] .seg-btn.on,
[data-theme="dark"] .chip-btn.on {
  color: #8CBE82;
}

.chip-btn.sm {
  padding: 5px 10px;
  font-size: 12px;
}

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

.chip.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chip-x {
  cursor: pointer;
  font-size: 14px;
  opacity: 0.7;
}

.chip-x:hover {
  opacity: 1;
}

.chip-input {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 8px;
  min-height: 44px;
  margin-bottom: 8px;
}

.chip-input input {
  flex: 1;
  min-width: 120px;
  border: none;
  background: transparent;
}

.chip-input input:focus {
  outline: none;
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.toggle-row:last-child {
  border-bottom: none;
}

.tiny-hint {
  font-size: 12px;
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: 0.3s;
}

.slider:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: var(--bg);
  border-radius: 50%;
  transition: 0.3s;
}

.switch input:checked + .slider {
  background: var(--accent);
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
  background: #fff;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Photos */
.main-photo {
  width: 200px;
  height: 200px;
  border-radius: 0;
  background: var(--hover);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.gallery-photo {
  overflow: hidden;
}

.gthumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0;
  background: var(--hover);
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: 8px;
}

.gthumb.is-main {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gthumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  background: #000;
}

.gkind {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.main-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

[data-theme="dark"] .main-badge {
  color: var(--on-accent);
}

.gphoto-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.add-photo-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.add-photo-row input[type="text"] {
  flex: 1;
  min-width: 180px;
}

/* Privacy */
.privacy-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

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

.privacy-row span {
  font-size: 14px;
  font-weight: 500;
}

.privacy-row select {
  width: auto;
  padding: 6px 10px;
}

.danger-zone {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.pa-section {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pa-head {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin: 10px 0 4px;
}

.pa-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 10px;
}

.pa-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.pa-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.details-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.details-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent);
}

.btn-danger {
  background: transparent;
  border: 1px solid var(--text-secondary);
  color: var(--text-primary);
  margin-top: 10px;
}

.btn-danger:hover {
  border-color: #e11d48;
  color: #e11d48;
}

/* Toast */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#toast.err {
  border-color: #e11d48;
  color: #e11d48;
}

@media (max-width: 700px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-preview {
    position: static;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Messaging (Gmail-style) ===== */
.message-app {
  display: grid;
  grid-template-columns: 180px 300px 1fr;
  height: 640px;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  background: var(--surface);
}

.message-sidebar {
  border-right: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg-new {
  display: block;
  text-align: center;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px;
  border-radius: 0;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 12px;
  text-decoration: none;
}

[data-theme="dark"] .msg-new { color: var(--on-accent); }

.msg-folder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 0;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
}

.msg-folder.active {
  background: var(--hover);
  color: var(--accent);
}

[data-theme="dark"] .msg-folder.active {
  color: #8CBE82;
}

.msg-count {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
}

[data-theme="dark"] .msg-count { color: var(--on-accent); }

.message-list {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.msg-search {
  width: calc(100% - 24px);
  margin: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 13px;
}

#conversationList {
  flex: 1;
  overflow-y: auto;
}

.msg-conv {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  align-items: flex-start;
}

.msg-conv:hover { background: var(--hover); }
.msg-conv.unread { background: rgba(71, 105, 63, 0.1); }
.msg-conv.unread .msg-from { font-weight: 700; }

.msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

[data-theme="dark"] .msg-avatar { color: var(--on-accent); }

.msg-body { flex: 1; min-width: 0; }

.msg-line1 { display: flex; justify-content: space-between; align-items: center; }
.msg-from { font-weight: 600; font-size: 14px; }
.msg-time { font-size: 11px; color: var(--text-secondary); }

.msg-subject { font-size: 13px; font-weight: 600; margin-top: 2px; }
.msg-preview {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.msg-unread-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 14px;
}

.msg-empty { padding: 24px; text-align: center; }

.message-thread { display: flex; flex-direction: column; overflow-y: auto; }
.msg-thread-empty { padding: 32px; text-align: center; }

.thread-toolbar { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }

.thread-msg { padding: 14px; border-bottom: 1px solid var(--border); }
.thread-msg.mine { background: rgba(71, 105, 63, 0.06); }

.thread-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.thread-head .msg-time { margin-left: auto; }
.thread-body { font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.thread-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thread-attach img { max-width: 260px; max-height: 260px; border-radius: 0; border: 1px solid var(--border); display: block; }

.attach-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

.quick-decline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.04);
}
.quick-decline-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  line-height: 1.5;
}
.quick-decline-btn:hover { text-decoration: underline; }
.quick-decline-note { font-size: 12px; color: var(--muted); }
.attach-thumb { position: relative; width: 56px; height: 56px; border-radius: 0; overflow: hidden; border: 1px solid var(--border); flex-shrink: 0; }
.attach-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.attach-remove { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.65); color: #fff; border: none; border-radius: 50%; width: 18px; height: 18px; line-height: 18px; cursor: pointer; font-size: 11px; padding: 0; }

.msg-field {
  width: 100%;
  margin-bottom: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 12px;
  color: var(--text-primary);
  font-size: 14px;
}

.msg-divider {
  margin-top: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  padding: 8px 12px 4px;
}

.friends-mini {
  overflow-y: auto;
  max-height: 200px;
}

.friend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 0;
  cursor: pointer;
  font-size: 13px;
}

.friend-row:hover { background: var(--hover); }

.friend-av {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}

[data-theme="dark"] .friend-av { color: var(--on-accent); }

.friend-name { color: var(--text-primary); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.friend-msg { color: var(--accent); font-size: 13px; opacity: 0; transition: opacity .15s; }

.friend-row:hover .friend-msg { opacity: 1; }

/* ===== Groups ===== */
.card-header-actions { display: flex; align-items: center; gap: 10px; }

.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.group-card { cursor: pointer; transition: transform .15s, border-color .2s; }
.group-card:hover { transform: translateY(-2px); border-color: var(--accent); }

.group-card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.group-card-title { display: flex; flex-direction: column; }
.group-desc { font-size: 13px; line-height: 1.5; min-height: 38px; }
.group-card-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.group-card-foot .btn { margin-left: auto; }

.group-modal { max-width: 640px; }
.group-meta { margin-bottom: 10px; font-size: 13px; }

.group-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.gpanel { display: none; }
.gpanel.active { display: block; }

.group-chat { max-height: 300px; overflow-y: auto; margin-bottom: 12px; }
.gchat-msg { padding: 10px; border-bottom: 1px solid var(--border); }
.gchat-msg.mine { background: rgba(71, 105, 63, 0.08); }
.gchat-body { font-size: 14px; line-height: 1.5; margin-top: 6px; white-space: pre-wrap; }
#groupSendBtn { margin-top: 8px; }

.group-members { max-height: 260px; overflow-y: auto; margin-bottom: 12px; }
.gmember { display: flex; align-items: center; gap: 10px; padding: 8px; }
.gmember-name { flex: 1; }
.group-add-member { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.group-add-member input { flex: 1; margin: 0; }
#groupDeleteBtn { margin-top: 12px; }


.compose-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  margin-top: -4px;
  z-index: 50;
  max-height: 180px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cs-item {
  padding: 9px 12px;
  cursor: pointer;
  font-size: 14px;
}

.cs-item:hover { background: var(--hover); }

@media (max-width: 900px) {
  .message-app { grid-template-columns: 1fr; height: auto; grid-template-rows: auto auto auto; }
  .message-sidebar { flex-direction: row; flex-wrap: wrap; }
  .message-list { max-height: 300px; }
  .message-thread { max-height: 400px; }
}
/* ===== Live chat (channels, composer, video) ===== */
.chan-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--bg); }
.chan-chip { border: 1px solid var(--border); background: transparent; color: var(--text-secondary); padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 999px; }
.chan-chip:hover { border-color: var(--accent); color: var(--accent); }
.chan-chip.on { background: var(--hover); border-color: var(--accent); color: var(--accent); }
.chan-chip.add { border-style: dashed; }
.gchat-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.gchat-toolbar #gchatTitle { flex: 1; font-size: 13px; font-weight: 700; }
.gchat-composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--border); }
.gchat-composer textarea { flex: 1; margin-bottom: 0; }
.gchat-attach-wrap { display: flex; flex-direction: column; gap: 4px; }
.gchat-emojis { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px; border-top: 1px solid var(--border); max-height: 140px; overflow-y: auto; }
.gchat-emojis button.emoji { background: transparent; border: none; font-size: 22px; cursor: pointer; padding: 2px; }
.gchat-emojis button.emoji:hover { transform: scale(1.2); }
.gchat-pend-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 12px; border-top: 1px solid var(--border); }
.pthumb { position: relative; width: 52px; height: 52px; border: 1px solid var(--border); border-radius: 0; overflow: hidden; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.pthumb.vid { display: flex; align-items: center; justify-content: center; font-size: 12px; width: auto; padding: 0 8px; }
.pthumb button { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,.7); color: #fff; border: none; width: 16px; height: 16px; line-height: 16px; font-size: 11px; cursor: pointer; }
.gchat-media { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gchat-media img { max-width: 240px; max-height: 240px; border-radius: 0; border: 1px solid var(--border); }
.gchat-media video { max-width: 280px; max-height: 240px; border-radius: 0; border: 1px solid var(--border); background: #000; }
#gchatTyping { font-size: 12px; color: var(--accent); padding: 2px 12px; font-style: italic; }

/* Channel create modal */
.channel-priv { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; color: var(--text-secondary); font-size: 14px; }
.chan-members { position: relative; }
 .chan-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ===== Standalone Chat ===== */
.chat-app { display: grid; grid-template-columns: 300px 1fr 240px; height: calc(100vh - 120px); min-height: 420px; }
.chat-rail { background: var(--surface); border: 1px solid var(--border); border-radius: 0; display: flex; flex-direction: column; }
.chat-rail-head { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-bottom: 1px solid var(--border); font-weight: 700; }
.chat-room-list { overflow-y: auto; flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.chat-room { padding: 8px 12px; cursor: pointer; color: var(--text-secondary); border-radius: 0; border: 1px solid transparent; }
.chat-room:hover { background: var(--hover); color: var(--text-primary); }
.chat-room.on { background: var(--hover); color: var(--accent); border-color: var(--accent); }
[data-theme="dark"] .chat-room.on { color: #8CBE82; }
.room-main { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.room-name { font-weight: 600; color: var(--text-primary); }
[data-theme="dark"] .room-name { color: #F5EFE2; }
.room-topic { font-size: 12px; color: var(--text-secondary); line-height: 1.35; margin-top: 2px; white-space: normal; word-break: break-word; }
[data-theme="dark"] .room-topic { color: #C9BFA8; }
.room-count { margin-left: auto; font-size: 11px; color: var(--text-secondary); white-space: nowrap; flex-shrink: 0; }
.room-crown { margin-left: 6px; font-size: 12px; }
.chat-room-empty { padding: 12px; }
.chat-panel { border: 1px solid var(--border); border-left: none; display: flex; flex-direction: column; border-radius: 0; min-width: 0; }
.chat-panel-empty { display: flex; align-items: center; justify-content: center; height: 100%; }
.chat-room-view { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.chat-head-actions { display: flex; gap: 8px; }
.chat-feed { flex: 1; overflow-y: auto; min-height: 0; }
.chat-composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--border); }
.chat-composer textarea { flex: 1; margin-bottom: 0; }
#roomTyping { padding: 4px 14px; }
.room-members-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
#roomInviteRow { margin-top: 10px; }

/* ===== Chat members column + moderation ===== */
.chat-members { border: 1px solid var(--border); border-left: none; background: var(--surface); overflow-y: auto; min-height: 0; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.chat-members-head { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); padding: 4px 2px 8px; }
.cmember { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 0; }
.cmember.on { background: var(--hover); }
.cmember .cm-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.mod-btn { background: transparent; border: none; color: var(--text-secondary); cursor: pointer; font-size: 16px; line-height: 1; }
.mod-btn:hover { color: var(--accent); }
.mod-menu { position: fixed; z-index: 300; background: var(--surface); border: 1px solid var(--border); border-radius: 0; box-shadow: 0 8px 24px rgba(0,0,0,.35); min-width: 170px; }
.mod-menu button { display: block; width: 100%; text-align: left; background: transparent; border: none; padding: 9px 12px; color: var(--text-primary); cursor: pointer; font-size: 14px; }
.mod-menu button:hover { background: var(--hover); }
.move-list { max-height: 220px; overflow-y: auto; }
.gchat-del { margin-left: auto; background: transparent; border: none; color: var(--text-secondary); cursor: pointer; font-size: 15px; line-height: 1; opacity: 0; transition: opacity .15s; }
.gchat-msg:hover .gchat-del { opacity: 1; }
.gchat-del:hover { color: #e05252; }
.room-muted-badge { margin-left: auto; font-size: 11px; color: var(--text-secondary); }

/* ===== Member context ===== */
.ctx-sep { padding: 6px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); }
.cmember { cursor: pointer; }
.cmember:hover { background: var(--hover); }
.cmember .avatar.av-sm { flex-shrink: 0; color: var(--on-accent); }


/* ===== Present members / offline ===== */
.muted-head { color: var(--text-secondary); opacity: .75; }
.cmember.off { opacity: .55; }
.cmember.off .avatar { filter: grayscale(1); }

/* ===== Channel member counter ===== */
.room-count { margin-left: auto; font-size: 11px; color: var(--text-secondary); white-space: nowrap; }
.chat-room.on .room-count { color: var(--accent); }
[data-theme="dark"] .chat-room.on .room-count { color: #8CBE82; }

/* ===== Announcements / pinned ===== */
.chat-pinned { display: flex; gap: 8px; align-items: center; padding: 6px 12px; border-bottom: 1px solid var(--border); background: rgba(212,175,55,.06); flex-wrap: wrap; font-size: 13px; }
.pinned-label { color: var(--accent); }
.pinned-item { cursor: pointer; color: var(--text-secondary); }
.pinned-item:hover { color: var(--accent); text-decoration: underline; }
.gchat-pinned-tag { font-size: 11px; color: var(--accent); margin-right: 6px; }
.gchat-pin { margin-left: auto; background: transparent; border: none; cursor: pointer; font-size: 14px; color: var(--text-secondary); }
.gchat-pin:hover { color: var(--accent); }

/* ===== Reactions ===== */
.gchat-reactions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.react-pill { background: var(--bg); border: 1px solid var(--border); border-radius: 0; color: var(--text-secondary); padding: 2px 8px; font-size: 13px; cursor: pointer; }
.react-pill.mine { border-color: var(--accent); color: var(--accent); }
.react-pill:hover { border-color: var(--accent); }
.gchat-reactbar { display: flex; gap: 4px; margin-top: 6px; opacity: 0; transition: opacity .15s; }
.gchat-msg:hover .gchat-reactbar { opacity: 1; }
.react-add { background: transparent; border: none; cursor: pointer; font-size: 15px; padding: 0 3px; }
.react-add:hover { transform: scale(1.2); }

/* ===== Polls ===== */
.chat-polls { padding: 8px 14px; border-bottom: 1px solid var(--border); background: var(--bg); display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.poll-card { border: 1px solid var(--border); border-radius: 0; padding: 10px 12px; background: var(--surface); }
.poll-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.poll-body { display: flex; flex-direction: column; gap: 6px; }
.poll-opt-row { cursor: pointer; padding: 6px 8px; background: var(--bg); border: 1px solid var(--border); }
.poll-opt-row.mine { border-color: var(--accent); }
.poll-opt-label { font-size: 13px; margin-bottom: 4px; }
.poll-voted { color: var(--accent); }
.poll-bar { height: 6px; background: var(--border); }
.poll-fill { height: 100%; background: var(--accent); }
.poll-pct { font-size: 11px; color: var(--text-secondary); }
.poll-total { font-size: 11px; margin-top: 6px; }
[data-theme="dark"] .poll-voted { color: #8CBE82; }
[data-theme="dark"] .poll-fill { background: #8CBE82; }

/* ===== Happenings strip ===== */
.chat-happenings { border-bottom: 1px solid var(--border); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; max-height: 150px; overflow-y: auto; }
.hap-section { display: flex; flex-direction: column; gap: 2px; }
.hap-head { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; }
.hap-item { font-size: 12px; color: var(--text-secondary); display: flex; justify-content: space-between; gap: 6px; }
.hap-date { color: var(--text-primary); font-weight: 600; }

/* ===== Overview happenings ===== */
.hap-block { margin-bottom: 12px; }
.hap-title { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 6px; }
.hap-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.hap-row:last-child { border-bottom: none; }
.hap-when { color: var(--text-secondary); font-weight: 600; }

/* ===== Admin panel ===== */
.adm-topic-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.adm-name { font-weight: 600; min-width: 140px; }
.adm-topic-input { flex: 1; min-width: 180px; margin-bottom: 0 !important; }

/* ===== Category headers + channel topic in rail ===== */
.room-cat { margin-bottom: 6px; }
.room-cat-head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
  padding: 8px 10px 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
[data-theme="dark"] .room-cat-head { color: #D4AF37; }

/* ===== Admin category manager ===== */
.adm-cat { border: 1px solid var(--border); margin-bottom: 10px; padding: 8px 10px; }
.adm-cat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.adm-cat-name { font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
.adm-ch { flex: 0 0 140px; margin-bottom: 0 !important; }

/* ===== Admin category reorder ===== */
.adm-cat-actions { display: flex; gap: 4px; }
.adm-cat-actions button[disabled] { opacity: .35; cursor: not-allowed; }

/* ===== Admin dashboard ===== */
.admin-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.admin-tabs .tab { padding: 10px 16px; }
.apanel { display: none; }
.apanel.active { display: block; }
.adm-member-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.adm-m-av { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.adm-m-name { font-weight: 600; min-width: 120px; }
.adm-m-email, .adm-m-loc { flex: 1; min-width: 100px; }
.adm-m-active { font-size: 12px; min-width: 90px; }
.adm-admin-badge { background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; margin-left: 6px; }
.adm-prem-badge { background: #22C55E; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; margin-left: 6px; }
[data-theme="dark"] .adm-admin-badge { color: #fff; }

/* ===== WNY ABDL Group — gallery likes ===== */
.gl-like {
  position:absolute; bottom:8px; right:8px; z-index:5;
  background:rgba(0,0,0,.55); color:#fff; border:1px solid rgba(255,255,255,.25);
  border-radius:20px; padding:5px 12px; font-size:13px; cursor:pointer;
  display:inline-flex; align-items:center; gap:6px; line-height:1;
}
.gl-like:hover { background:rgba(0,0,0,.75); }
.gl-like.liked { color:#ff6b81; border-color:#ff6b81; }
.gl-like-lb { position:static; margin-left:8px; background:var(--hover); color:var(--text-primary); border:1px solid var(--border); }
.gl-like-lb.liked { color:#ff6b81; border-color:#ff6b81; }

/* ===== WNY ABDL Group — community radio ===== */
.radio-row { transition: background .2s; }
.radio-row:hover { background: var(--hover); }
.radio-row.radio-active { border-color: var(--accent); }
.radio-row.radio-active > div > div:first-child > div { color: var(--accent); }

/* =========================================================================
   WNY ABDL Group — theme variants
   "alt" = Clean SFW theme · "crinkle" = crinklecorner pastel/pattern theme
   ========================================================================= */

[data-theme="alt"] {
  --bg: #F2F5F9;
  --surface: #FFFFFF;
  --text-primary: #1F2937;
  --text-secondary: #64748B;
  --accent: #0F766E;
  --on-accent: #FFFFFF;
  --border: #DCE4EE;
  --hover: rgba(15, 118, 110, 0.10);
}
[data-theme="alt"] body {
  background: linear-gradient(180deg, #F4F8FB 0%, #EAF0F7 100%) fixed;
}
[data-theme="alt"] .sidebar {
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F7FB 100%);
  border-right: 1px solid var(--border);
}

/* ---- crinkle (replaces old light) ---- */
[data-theme="crinkle"] {
  --bg: #5A4F7A;
  --surface: rgba(255, 246, 236, 0.88);
  --text-primary: #57453A;
  --text-secondary: #87715F;
  --accent: #B58F4E;
  --on-accent: #FFFFFF;
  --border: #D8C2A0;
  --hover: rgba(181, 143, 78, 0.18);
}
[data-theme="crinkle"] body {
  background-image: url("/assets/img/crinkle-bg.png");
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: 280px;
  background-color: #5A4F7A;
}
[data-theme="crinkle"] h1,
[data-theme="crinkle"] h2,
[data-theme="crinkle"] h3 {
  color: #A87C5F;
}
[data-theme="crinkle"] a {
  color: #6A5E8E;
}
[data-theme="crinkle"] .sidebar {
  background: linear-gradient(180deg, rgba(247, 243, 255, 0.85) 0%, rgba(228, 247, 250, 0.85) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid rgba(110, 187, 201, 0.35);
}
[data-theme="crinkle"] .card,
[data-theme="crinkle"] input,
[data-theme="crinkle"] textarea,
[data-theme="crinkle"] select,
[data-theme="crinkle"] .thread-toolbar,
[data-theme="crinkle"] .chat-panel {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
[data-theme="crinkle"] .btn-primary {
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}
