:root {
  --bg: #07110c;
  --bg2: #0a1711;
  --panel: #0f1d16;
  --panel2: #13251c;
  --panel3: #182c21;
  --line: #223a2e;
  --line2: #2e4d3c;
  --text: #eaf5ec;
  --muted: #93a99b;
  --muted2: #6f8578;
  --ball: #d7f36a;
  --ball2: #b6e84a;
  --ball-ink: #1a2a08;
  --court: #2f6fed;
  --ok: #4ade80;
  --bad: #f87171;
  --warn: #fbbf24;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1000px 600px at 15% -10%, rgba(47, 111, 237, 0.13), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(215, 243, 106, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ball); }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.spacer { flex: 1; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: rgba(7, 17, 12, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  flex: none;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .word {
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 16px;
  line-height: 1.1;
}
.brand .word small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.1px;
  margin-top: 2px;
}

.tabs {
  display: flex;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 999px;
}
.tabs button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { background: var(--panel3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.tabs .badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ball);
  color: var(--ball-ink);
  font-size: 11px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
}
.tabs .badge.on { display: inline-flex; }

.topright { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.identity {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  cursor: pointer;
  max-width: 230px;
}
.identity:hover { border-color: var(--line2); }
.identity .ava { width: 28px; height: 28px; font-size: 11px; }
.identity .who { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.identity .who small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; }
.identity.new { border-color: rgba(215, 243, 106, 0.45); color: var(--ball); font-weight: 700; font-size: 13px; padding: 9px 14px; }

.alertsBtn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.alertsBtn.on { color: var(--ball); border-color: rgba(215, 243, 106, 0.35); }
.alertsBtn:hover { color: var(--text); }

/* ---------- layout ---------- */
main { flex: 1; display: flex; min-height: 0; }
.view { flex: 1; display: none; min-height: 0; }
.view.active { display: flex; flex-direction: column; }

/* ---------- find / hero ---------- */
#view-find { padding: 22px; gap: 16px; overflow: auto; }

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 32px;
  background:
    linear-gradient(115deg, rgba(47, 111, 237, 0.16), transparent 55%),
    linear-gradient(160deg, #11251a 0%, #0b1a12 65%);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(215, 243, 106, 0.5), rgba(182, 232, 74, 0.06) 62%, transparent 70%);
  filter: blur(1px);
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  right: 90px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}
.hero .heroText { flex: 1; min-width: 260px; position: relative; z-index: 1; }
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(25px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.hero h1 em { font-style: normal; color: var(--ball); }
.hero p { margin: 0; color: var(--muted); font-size: 15px; max-width: 620px; line-height: 1.6; }
.heroActions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.stats { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.stat {
  background: rgba(7, 17, 12, 0.55);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
}
.stat b { color: var(--text); font-size: 15px; margin-right: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line2);
  background: var(--panel2);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s, transform 0.06s;
  white-space: nowrap;
}
.btn:hover { background: var(--panel3); border-color: #3b5f4a; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(135deg, var(--ball), var(--ball2));
  border-color: transparent;
  color: var(--ball-ink);
  box-shadow: 0 10px 26px rgba(215, 243, 106, 0.16);
}
.btn.primary:hover { background: linear-gradient(135deg, #e2f98c, #c6f35c); }
.btn.court {
  background: linear-gradient(135deg, #3b82f6, var(--court));
  border-color: transparent;
  color: #fff;
}
.btn.court:hover { background: linear-gradient(135deg, #4f8ff8, #2a63d6); }
.btn.ghost { background: transparent; }
.btn.danger { background: #2a1315; border-color: #5a2b30; color: #ffb4b4; }
.btn.danger:hover { background: #35181b; }
.btn.small { padding: 8px 12px; font-size: 12.5px; border-radius: 9px; }
.btn.wide { width: 100%; }

/* ---------- filters ---------- */
.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 14px;
}
.searchWrap { position: relative; flex: 1; min-width: 210px; }
.searchWrap svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted2);
}
input[type="text"], input[type="search"], input[type="date"], input[type="time"], select, textarea {
  width: 100%;
  background: #08130d;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  outline: none;
  font-size: 14px;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(215, 243, 106, 0.55);
  box-shadow: 0 0 0 3px rgba(215, 243, 106, 0.1);
}
.searchWrap input { padding-left: 34px; }
.filters select { width: auto; min-width: 130px; cursor: pointer; }
.filters input.city { width: 170px; }
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--line);
  background: #0a1610;
  border-radius: 10px;
  padding: 9px 11px;
  white-space: nowrap;
}
.toggle input { accent-color: var(--ball); width: 15px; height: 15px; }
.toggle.on { color: var(--ball); border-color: rgba(215, 243, 106, 0.4); }

/* ---------- player grid ---------- */
.playersGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 13px;
}
.playerCard {
  background: linear-gradient(180deg, var(--panel), #0b1811);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  cursor: pointer;
  transition: border-color 0.14s, transform 0.14s, box-shadow 0.14s;
  position: relative;
  overflow: hidden;
}
.playerCard:hover {
  border-color: var(--line2);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}
.pcTop { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1c3a2a, #14271d);
  border: 1px solid var(--line2);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #cfe5d5;
  flex: none;
  position: relative;
}
.avatar .dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted2);
  border: 2px solid #0b1811;
}
.avatar .dot.on { background: var(--ok); box-shadow: 0 0 9px rgba(74, 222, 128, 0.65); }
.pcName { min-width: 0; flex: 1; }
.pcName h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcName .loc { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.skill {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.skill.beginner { background: rgba(74, 222, 128, 0.12); color: #86efac; border-color: rgba(74, 222, 128, 0.25); }
.skill.intermediate { background: rgba(96, 165, 250, 0.12); color: #93c5fd; border-color: rgba(96, 165, 250, 0.25); }
.skill.advanced { background: rgba(251, 191, 36, 0.12); color: #fcd34d; border-color: rgba(251, 191, 36, 0.25); }
.skill.pro { background: rgba(248, 113, 113, 0.13); color: #fca5a5; border-color: rgba(248, 113, 113, 0.3); }
.pcBio {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
}
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  font-size: 10.5px;
  font-weight: 650;
  color: #bcd0c2;
  background: #122219;
  border: 1px solid #1e3527;
  border-radius: 7px;
  padding: 3px 7px;
}
.pcMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 2px;
}
.lastSeen { font-size: 11.5px; color: var(--muted2); }
.lastSeen.on { color: var(--ok); font-weight: 650; }
.pcActions { display: flex; gap: 7px; }
.pcActions .btn { flex: 1; }
.emptyState {
  border: 1px dashed var(--line2);
  border-radius: var(--radius);
  padding: 44px 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(15, 29, 22, 0.5);
}
.emptyState h3 { margin: 0 0 6px; color: var(--text); font-size: 18px; }
.emptyState p { margin: 0 0 16px; }

/* ---------- chats ---------- */
#view-chats { padding: 0; overflow: hidden; }
.chatsLayout {
  flex: 1;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 0;
}
.threadsPane {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(10, 23, 17, 0.6);
}
.paneTitle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.paneTitle .count {
  font-size: 11px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 7px;
  letter-spacing: 0;
  color: var(--muted);
}
.threadsList { flex: 1; overflow: auto; padding: 0 8px 12px; }
.threadItem {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 11px;
  cursor: pointer;
  border: 1px solid transparent;
}
.threadItem:hover { background: var(--panel2); }
.threadItem.active { background: var(--panel2); border-color: var(--line2); }
.threadItem .ava { width: 38px; height: 38px; font-size: 12px; }
.threadMain { flex: 1; min-width: 0; }
.threadTop { display: flex; align-items: center; gap: 6px; }
.threadTop b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.threadTop .when { margin-left: auto; font-size: 10.5px; color: var(--muted2); white-space: nowrap; }
.threadPreview {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.threadUnread {
  flex: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ball);
  color: var(--ball-ink);
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.threadsEmpty { padding: 22px 16px; color: var(--muted); font-size: 13px; text-align: center; line-height: 1.7; }

.chatPane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chatEmpty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  text-align: center;
  padding: 30px;
}
.chatEmpty svg { width: 54px; height: 54px; color: var(--line2); }
#chatMain { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chatHead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 23, 17, 0.6);
  min-height: 64px;
}
.chatHead .ava { width: 38px; height: 38px; font-size: 12px; }
.chatHead .who { min-width: 0; flex: 1; }
.chatHead .who b { font-size: 14.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatHead .who small { font-size: 11.5px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatHead #chatPropose svg { flex: none; }
.chatHead .who small .extra { color: var(--muted2); }
.chatHead .who small.on { color: var(--ok); }
.iconBtn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 9px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
}
.messages {
  flex: 1;
  overflow: auto;
  padding: 18px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  scroll-behavior: smooth;
}
.msgRow { display: flex; flex-direction: column; max-width: min(76%, 560px); }
.msgRow.mine { align-self: flex-end; align-items: flex-end; }
.msgRow.theirs { align-self: flex-start; align-items: flex-start; }
.bubble {
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.mine .bubble { background: linear-gradient(135deg, var(--ball2), #a5d93e); color: var(--ball-ink); border-bottom-right-radius: 5px; }
.theirs .bubble { background: var(--panel2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msgMeta { font-size: 10.5px; color: var(--muted2); margin-top: 3px; padding: 0 3px; }
.dayDivider { align-self: center; font-size: 10.5px; color: var(--muted2); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; margin: 6px 0; }

.proposal {
  min-width: 230px;
  background: linear-gradient(160deg, #16281d, #101d16);
  border: 1px solid rgba(215, 243, 106, 0.28);
  border-radius: 13px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.proposal.confirmed { border-color: rgba(74, 222, 128, 0.55); background: linear-gradient(160deg, #14301f, #0e2015); }
.proposal .propHead {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ball);
}
.proposal .propWhen { font-size: 14.5px; font-weight: 750; color: var(--text); line-height: 1.35; }
.proposal .propPlace { font-size: 13px; color: #cfe0d3; display: flex; gap: 6px; align-items: flex-start; }
.proposal .propNote { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 7px; white-space: pre-wrap; }
.proposal .propActions { display: flex; gap: 7px; margin-top: 3px; }
.proposal .propStatus { font-size: 11.5px; color: var(--ok); font-weight: 650; }
.proposal .propStatus.pending { color: var(--muted); }

.composer {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: rgba(8, 19, 13, 0.85);
}
.composer input { flex: 1; }
.composer .btn { flex: none; }

/* ---------- my card ---------- */
#view-me { padding: 22px; overflow: auto; }
.myCardWrap { width: min(760px, 100%); margin: 0 auto; }
.card {
  background: linear-gradient(180deg, var(--panel), #0b1811);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}
.card h2 { margin: 0 0 5px; font-size: 23px; letter-spacing: -0.3px; }
.card .sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.formGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
  font-weight: 700;
}
.field .hint { font-size: 11.5px; color: var(--muted2); }
.pillGroup { display: flex; flex-wrap: wrap; gap: 6px; }
.pillCheck { position: relative; }
.pillCheck input { position: absolute; opacity: 0; pointer-events: none; }
.pillCheck span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #0a1610;
  color: var(--muted);
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
}
.pillCheck input:checked + span {
  background: rgba(215, 243, 106, 0.12);
  border-color: rgba(215, 243, 106, 0.45);
  color: var(--ball);
}
.formActions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.manageBox { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.manageBox h3 { margin: 0; font-size: 15px; }
.manageRow { display: flex; gap: 8px; }
.manageRow input { flex: 1; font-size: 12px; color: var(--muted); }
.deleteRow { margin-top: 6px; display: flex; justify-content: flex-end; }
.savedNote { font-size: 12px; color: var(--ok); min-height: 16px; }

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(3, 8, 5, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modalPanel {
  width: min(520px, 100%);
  background: linear-gradient(180deg, #14241a, #0d1a12);
  border: 1px solid var(--line2);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  max-height: 92vh;
  overflow: auto;
}
.modalPanel h3 { margin: 0 0 4px; font-size: 19px; }
.modalPanel .sub { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.modalRow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modalActions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

/* ---------- call overlay ---------- */
.callOverlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(3, 8, 5, 0.84);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.callPanel {
  width: min(430px, 100%);
  background: linear-gradient(170deg, #13251c, #0a1610);
  border: 1px solid var(--line2);
  border-radius: 24px;
  padding: 30px 24px 24px;
  text-align: center;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}
.callPanel::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto;
  height: 240px;
  background: radial-gradient(circle, rgba(215, 243, 106, 0.12), transparent 65%);
  pointer-events: none;
}
.callAvatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(135deg, #284a36, #173023);
  border: 1px solid var(--line2);
  position: relative;
  z-index: 1;
}
.callAvatar.ringing { animation: ringPulse 1.6s ease-in-out infinite; }
@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(215, 243, 106, 0.28); }
  50% { box-shadow: 0 0 0 16px rgba(215, 243, 106, 0); }
}
.callName { font-size: 21px; font-weight: 750; margin: 0 0 3px; position: relative; z-index: 1; }
.callStatus { font-size: 13px; color: var(--muted); margin: 0 0 20px; position: relative; z-index: 1; }
.callTimer { font-variant-numeric: tabular-nums; color: var(--ball); font-weight: 700; }
.callMeter { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 42px; margin: 0 auto 18px; width: 190px; }
.callMeter i {
  flex: 1;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--ball), #7ea52e);
  transform-origin: bottom center;
  transform: scaleY(0.1);
  transition: transform 0.07s linear;
}
.callActions { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.callActions .btn { min-width: 108px; }
.pttCall {
  width: 100%;
  border: none;
  border-radius: 13px;
  padding: 16px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ball-ink);
  background: linear-gradient(135deg, var(--ball), var(--ball2));
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.pttCall.talking {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2), 0 10px 30px rgba(34, 197, 94, 0.35);
}
.pttCall strong { display: block; font-size: 11.5px; font-weight: 650; opacity: 0.75; margin-top: 2px; }
.callNote { font-size: 11px; color: var(--muted2); margin-top: 12px; position: relative; z-index: 1; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  background: #eaf5ec;
  color: #0a140d;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transition: opacity 0.18s, transform 0.18s;
  max-width: 92vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- scrollbars ---------- */
* { scrollbar-width: thin; scrollbar-color: #2a4535 transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: #243b2d; border-radius: 999px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .topbar { flex-wrap: wrap; gap: 8px 10px; padding: 9px 12px; }
  .brand .word { font-size: 15px; }
  .brand .word small { display: none; }
  .tabs { order: 3; width: 100%; justify-content: center; overflow-x: auto; }
  .topright { margin-left: auto; }
  .alertsBtn { padding: 8px 10px; }
  #view-find, #view-me { padding: 12px; }
  .hero { padding: 22px; }
  .chatsLayout { grid-template-columns: 1fr; }
  .threadsPane { border-right: none; }
  #view-chats.chatOpen .threadsPane { display: none; }
  #view-chats:not(.chatOpen) .chatPane { display: none; }
  .iconBtn { display: inline-flex; }
  .formGrid { grid-template-columns: 1fr; }
  .filters .searchWrap { flex: 1 1 100%; }
  .filters input.city { width: auto; flex: 1 1 140px; }
  .filters select { flex: 1 1 130px; }
  .chatHead .btn.small { padding: 7px 10px; font-size: 12px; }
  .messages { padding: 12px 12px 6px; }
  .msgRow { max-width: 88%; }
  .playerCard { padding: 14px; }
  .modalRow { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .chatHead #chatPropose span { display: none; }
  .chatHead #chatPropose { padding: 9px 10px; }
  .chatHead .who small .extra { display: none; }
  .identity { max-width: 44px; padding: 5px; }
  .identity .who { display: none; }
  .alertsBtn span { display: none; }
  .hero h1 { font-size: 25px; }
  .hero::after { opacity: 0.55; }
  .pcActions .btn { padding: 9px 10px; font-size: 12px; }
  .callPanel { padding: 26px 18px 20px; }
}

.heroKicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ball);
  margin-bottom: 10px;
}

[hidden] { display: none !important; }

/* Keep the site-wide floating Sites widget from covering chat controls. */
#teleden-sites-widget { display: none !important; }

.chatHead .spacer { display: none; }
