@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ========================================================
   Sportymus — Design Tokens (colors sampled from logo.png)
   ======================================================== */
:root {
  --brand-blue: #0FBCF9;
  --brand-blue-dark: #0B93C4;
  --brand-blue-darker: #086E93;
  --brand-blue-light: #E4F7FE;
  --brand-blue-lighter: #F2FCFF;
  --brand-ink: #241F21;

  --accent-orange: #F5A623;
  --accent-orange-dark: #D9880C;
  --accent-orange-light: #FFF3E0;
  --accent-green: #22C55E;
  --accent-green-dark: #16A34A;
  --accent-green-light: #E9FBF0;
  --accent-red: #EF4444;
  --accent-red-light: #FDEDED;

  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --border: #E7EAF0;
  --text: #241F21;
  --text-muted: #667085;
  --text-faint: #9AA2B1;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 20, 30, 0.04);
  --shadow-card: 0 2px 10px rgba(20, 20, 30, 0.05);
  --shadow-card-hover: 0 10px 22px rgba(20, 20, 30, 0.08);
  --shadow-pop: 0 16px 40px rgba(20, 20, 30, 0.12);
  --shadow-nav: 0 1px 0 rgba(20, 20, 30, 0.04);

  --transition: 200ms cubic-bezier(.4,0,.2,1);
  --transition-slow: 320ms cubic-bezier(.4,0,.2,1);

  --container: 1280px;
  --nav-height: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-pill); }
::selection { background: var(--brand-blue); color: #fff; }

.hidden { display: none !important; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: scale(0.97); }

.btn--primary { background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark)); color: #fff; box-shadow: 0 4px 12px rgba(15,188,249,0.20); }
.btn--primary:hover { box-shadow: 0 6px 16px rgba(15,188,249,0.28); transform: translateY(-1px); }

.btn--outline { background: #fff; color: var(--text); border-color: var(--border); }
.btn--outline:hover { border-color: var(--brand-blue); color: var(--brand-blue-dark); }

.btn--ghost { background: transparent; color: var(--text-muted); }
.btn--ghost:hover { background: var(--bg); color: var(--text); }

.btn--danger-outline { background: #fff; color: var(--accent-red); border-color: #F3C6C6; }
.btn--danger-outline:hover { background: var(--accent-red-light); }

.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--pill-toggle { border-radius: var(--radius-pill); }

/* ================================================================
   NAVBAR
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar__brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.navbar__logo { height: 56px; width: auto; }

/* Primary content-type tabs: Play / Coach / Club + Create — the site's main navigation */
.navtabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
}
.navtab {
  position: relative;
  background: none;
  border: none;
  padding: 14px 28px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.navtab:hover { color: var(--text); background: var(--bg); }

.navtab.active { color: var(--brand-blue-dark); background: var(--brand-blue-light); }
.navtab--coach.active { color: var(--accent-orange-dark); background: var(--accent-orange-light); }
.navtab--club.active { color: var(--accent-green-dark); background: var(--accent-green-light); }

.navtab-create {
  margin-left: 8px;
  padding: 14px 30px;
  font-size: 17px;
  font-weight: 800;
}
.navtab-create svg { width: 20px; height: 20px; }

.dropdown-panel--wide { width: 300px; }

.navbar__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius-pill);
  margin-right: 4px;
}
.lang-switch button {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.lang-switch button.active { background: var(--brand-blue); color: #fff; }

.icon-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--bg); color: var(--text); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .badge-dot {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  border: 2px solid var(--surface);
}
.badge-dot--orange { background: var(--accent-orange); }
.badge-dot--red { background: var(--accent-red); }

.avatar-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand-blue-light);
  color: var(--brand-blue-dark);
  border: none;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
.avatar-btn:hover { background: var(--brand-blue); color: #fff; }
.avatar-btn svg { width: 20px; height: 20px; }

/* ================================================================
   DROPDOWN PANELS (notifications / chat / user menu)
   ================================================================ */
.dropdown-anchor { position: relative; }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 340px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  border: 1px solid var(--border);
  z-index: 300;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  transform-origin: top right;
}
.dropdown-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.dropdown-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.dropdown-panel__head h4 { margin: 0; font-size: 15px; font-weight: 800; }
.dropdown-panel__head a { font-size: 12.5px; font-weight: 700; color: var(--brand-blue-dark); }
.dropdown-panel__body { max-height: 360px; overflow-y: auto; padding: 6px; }

.notif-item, .chat-item {
  display: flex; gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  position: relative;
}
.notif-item:hover, .chat-item:hover { background: var(--bg); }
.notif-item__icon, .chat-item__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand-blue-light); color: var(--brand-blue-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-item__icon svg, .chat-item__avatar svg { width: 18px; height: 18px; }

/* Type-coded colors (request/message = blue, booking = green, tournament = orange) */
.notif-item__icon--booking { background: var(--accent-green-light); color: var(--accent-green-dark); }
.notif-item__icon--tournament { background: var(--accent-orange-light); color: var(--accent-orange-dark); }

/* Chat avatar colors by category (Player = blue, Coach = orange, Club = green) */
.chat-item__avatar--player { background: var(--brand-blue-light); color: var(--brand-blue-dark); }
.chat-item__avatar--coach { background: var(--accent-orange-light); color: var(--accent-orange-dark); }
.chat-item__avatar--club { background: var(--accent-green-light); color: var(--accent-green-dark); }
.notif-item__title, .chat-item__name { font-size: 13.5px; font-weight: 700; margin: 0 0 2px; }
.notif-item__desc, .chat-item__msg { font-size: 12.5px; color: var(--text-muted); margin: 0; line-height: 1.4; }
.notif-item__time, .chat-item__time { font-size: 11px; color: var(--text-faint); margin-top: 3px; display:block; }
.dot-unread {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand-blue);
  position: absolute; top: 14px; right: 12px;
}
.dropdown-panel__search {
  margin: 10px 10px 4px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border-radius: var(--radius-pill);
  padding: 8px 12px;
}
.dropdown-panel__search svg { width: 15px; height: 15px; color: var(--text-faint); }
.dropdown-panel__search input { border: none; background: none; outline: none; font-size: 12.5px; width: 100%; }

.user-menu-list {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.user-menu-list a, .user-menu-list button.menu-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 500; color: var(--text);
  background: none; border-left: none; border-right: none; border-top: none;
  width: 100%; text-align: left;
  transition: background var(--transition);
}
.user-menu-list a:last-child, .user-menu-list button.menu-row:last-child { border-bottom: none; }
.user-menu-list a:hover, .user-menu-list button.menu-row:hover { background: var(--bg); }
.user-menu-list svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.user-menu-list .menu-row--danger { color: var(--accent-red); }
.user-menu-list .menu-row--danger svg { color: var(--accent-red); }

/* Rich menu rows (icon + title/subtitle + arrow) — used in Discover drawer */
.menu-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.menu-icon svg { width: 17px; height: 17px; }
.menu-icon--blue { background: var(--brand-blue-light); color: var(--brand-blue-dark); }
.menu-icon--orange { background: var(--accent-orange-light); color: var(--accent-orange-dark); }
.menu-icon--green { background: var(--accent-green-light); color: var(--accent-green-dark); }
.menu-icon--red { background: var(--accent-red-light); color: var(--accent-red); }

.menu-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.menu-text strong { font-size: 14px; font-weight: 600; color: var(--text); }
.menu-text span { font-size: 12px; color: var(--text-muted); }

.menu-arrow { width: 14px !important; height: 14px !important; color: var(--text-faint) !important; flex-shrink: 0; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  background:
    radial-gradient(1100px 420px at 15% -10%, rgba(15,188,249,0.16), transparent 60%),
    radial-gradient(900px 380px at 100% 0%, rgba(245,166,35,0.10), transparent 55%),
    linear-gradient(180deg, var(--brand-blue-lighter) 0%, var(--bg) 100%);
  padding: 64px 0 0;
  text-align: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 700; color: var(--brand-blue-dark);
  box-shadow: var(--shadow-sm);
}
.hero h1 {
  font-size: 48px; font-weight: 900; letter-spacing: -0.03em;
  margin: 22px auto 14px; max-width: 760px; line-height: 1.1;
}
.hero h1 span { color: var(--brand-blue); }
.hero p {
  font-size: 17px; color: var(--text-muted); max-width: 560px; margin: 0 auto 34px;
}

.search-panel {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.search-shell {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.search-panel__field {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  transition: background var(--transition);
  cursor: pointer;
  text-align: left;
  border: none;
  border-left: 1px solid var(--border);
  background: none;
  flex: 0 0 auto;
}
.search-panel__field:first-child { border-left: none; }
.search-panel__field--input { flex: 1; min-width: 0; }
.search-panel__field:hover { background: var(--bg); }
.search-panel__field svg { width: 18px; height: 18px; color: var(--text-faint); flex-shrink: 0; }
.search-panel__field-text { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.search-panel__field-label { font-size: 11px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.search-panel__field-value { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-panel__field input {
  border: none; outline: none; background: none; font-size: 14px; font-weight: 500; width: 100%;
}
.search-panel__submit {
  border: none;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: #fff;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 28px;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 14px rgba(15,188,249,0.24);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.search-panel__submit:hover { transform: translateY(-1px); }
.search-panel__submit svg { width: 18px; height: 18px; }

.hero__stats {
  display: flex; justify-content: center; gap: 56px;
  margin: 10px 0 0;
  padding: 28px 0 40px;
}
.hero__stat strong { display: block; font-size: 26px; font-weight: 900; color: var(--brand-ink); }
.hero__stat span { font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* ================================================================
   SPORT QUICK-SELECT GRID
   ================================================================ */
.sports-quick { padding: 8px 0 44px; }
.sports-quick__title { font-size: 20px; font-weight: 800; margin: 0 0 18px; }

.sport-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.sport-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.sport-card:hover { border-color: var(--brand-blue); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.sport-card.active { border-color: var(--brand-blue); background: var(--brand-blue-lighter); }
.sport-card--more { border-style: dashed; color: var(--text-muted); }
.sport-card__icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--bg); color: var(--brand-blue-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sport-card__icon svg { width: 20px; height: 20px; }
.sport-card__text { display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.sport-card__text strong { font-size: 13.5px; font-weight: 700; color: var(--text); }
.sport-card__text span { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================================================================
   EXPLORE SECTION (tabs + toolbar + sidebar + grid)
   ================================================================ */
.explore { padding: 48px 0 80px; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.section-heading h2 { font-size: 28px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.02em; }
.section-heading p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

.pill-tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.pill-tab {
  border: none; background: none;
  padding: 10px 24px;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.pill-tab.active { background: var(--brand-blue); color: #fff; box-shadow: 0 6px 16px rgba(15,188,249,0.35); }
.pill-tab.active[data-tab="coach"] { background: var(--accent-orange); box-shadow: 0 6px 16px rgba(245,166,35,0.35); }
.pill-tab.active[data-tab="club"] { background: var(--accent-green); box-shadow: 0 6px 16px rgba(34,197,94,0.35); }

.toolbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.toolbar__search {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 12px 18px;
}
.toolbar__search svg { width: 18px; height: 18px; color: var(--text-faint); }
.toolbar__search input { border: none; outline: none; background: none; width: 100%; font-size: 14px; }

.select-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font-size: 13.5px; font-weight: 600; color: var(--text);
  transition: border-color var(--transition);
  position: relative;
}
.select-pill:hover { border-color: var(--brand-blue); }
.select-pill svg { width: 16px; height: 16px; color: var(--text-muted); }
.select-pill__chevron { width: 12px; height: 12px; margin-left: 2px; }
.select-pill--filter-toggle { display: none; }

.explore__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* --- Sidebar filters --- */
.filters-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  box-shadow: var(--shadow-sm);
}
.filters-sidebar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.filters-sidebar h3 { font-size: 18px; font-weight: 800; margin: 0; }
.filters-sidebar__clear {
  border: none; background: var(--brand-blue-light); color: var(--brand-blue-dark);
  font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: var(--radius-pill);
  transition: background var(--transition);
}
.filters-sidebar__clear:hover { background: var(--brand-blue); color: #fff; }

.filter-group { margin-bottom: 22px; }
.filter-group:last-of-type { margin-bottom: 0; }
.filter-group__label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; display: block; }

.sort-select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--brand-blue); }

.checkbox-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--text); font-weight: 500;
  padding: 6px 0; cursor: pointer;
}
.checkbox-row input { accent-color: var(--brand-blue); width: 16px; height: 16px; }

.range-row { display: flex; align-items: center; gap: 8px; }
.range-row input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 10px; font-size: 13px; outline: none;
}
.range-row input:focus { border-color: var(--brand-blue); }

/* --- Card grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--brand-blue-light);
}

.card-save-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}
.card-save-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; transition: fill var(--transition); }
.card-save-btn:hover { color: var(--accent-red); border-color: #F3C6C6; transform: scale(1.06); }
.card-save-btn.saved { color: var(--accent-red); border-color: #F3C6C6; }
.card-save-btn.saved svg { fill: currentColor; }

.card__top { display: flex; align-items: flex-start; justify-content: space-between; padding-right: 32px; }
.card__avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--brand-blue-light); color: var(--brand-blue-dark);
  display: flex; align-items: center; justify-content: center;
}
.card__avatar svg { width: 26px; height: 26px; }
.card__avatar--club { background: var(--accent-orange-light); color: var(--accent-orange-dark); }

.tag {
  display: inline-flex; align-self: flex-start;
  font-size: 11.5px; font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--brand-blue-light); color: var(--brand-blue-dark);
}
.tag--coach { background: var(--accent-orange-light); color: var(--accent-orange-dark); }
.tag--club { background: var(--accent-green-light); color: var(--accent-green-dark); }

.card__name { font-size: 16px; font-weight: 800; color: var(--brand-ink); margin: 0; }
.card__desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; min-height: 40px; margin: 0; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  background: var(--bg); border: 1px solid var(--border);
  padding: 6px 11px; border-radius: var(--radius-pill);
}
.chip svg { width: 13px; height: 13px; color: var(--text-faint); }
.chip strong { color: var(--text); font-weight: 700; }
.chip.chip--price { color: var(--brand-blue-dark); background: var(--brand-blue-light); border-color: transparent; }
.chip.chip--price strong { color: var(--brand-blue-dark); }

.card__footer {
  display: flex; gap: 8px; margin-top: 4px;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.card__footer .btn { flex: 1; padding: 10px 14px; }

/* ================================================================
   MODALS
   ================================================================ */
.overlay-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 22, 30, 0.55);
  backdrop-filter: blur(3px);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 60px 20px;
}
.overlay-backdrop.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-pop);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
  overflow: hidden;
  margin: auto;
}
.overlay-backdrop.open .modal { transform: translateY(0) scale(1); opacity: 1; }

.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
}
.modal__head h3 { margin: 0; font-size: 18px; font-weight: 800; }

.close-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); flex-shrink: 0; cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.close-btn:hover { background: var(--accent-red-light); border-color: #F3C6C6; color: var(--accent-red); }
.close-btn svg { width: 16px; height: 16px; }

.modal--offer .modal__head {
  background: linear-gradient(120deg, var(--brand-blue-light), #F2FCFF 65%, #fff);
}
.modal--offer.type-coach .modal__head {
  background: linear-gradient(120deg, var(--accent-orange-light), #FFF8EE 65%, #fff);
}
.modal--offer.type-club .modal__head {
  background: linear-gradient(120deg, var(--accent-green-light), #F2FCF6 65%, #fff);
}

.modal__head--offer { align-items: center; padding: 24px 26px; }
.offer-modal-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.offer-modal-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  border: 3px solid #fff; box-shadow: 0 4px 14px rgba(15,188,249,0.28);
}
.modal--offer.type-coach .offer-modal-avatar { background: linear-gradient(135deg, var(--accent-orange), #C9740A); box-shadow: 0 4px 14px rgba(245,166,35,0.3); }
.modal--offer.type-club .offer-modal-avatar { background: linear-gradient(135deg, var(--accent-green), #147A3D); box-shadow: 0 4px 14px rgba(34,197,94,0.3); }
.offer-modal-avatar svg { width: 27px; height: 27px; }

.offer-modal-info { min-width: 0; }
.offer-modal-info h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: var(--text); line-height: 1.2; }
.offer-modal-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.offer-modal-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700;
  color: var(--text-muted); background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 4px 10px; box-shadow: var(--shadow-sm);
}
.offer-modal-badge svg { width: 11px; height: 11px; }
.offer-modal-badge--verified { color: var(--accent-green-dark); border-color: #BFEFD2; background: var(--accent-green-light); }
.offer-modal-badge--rating { color: #A9760F; border-color: #F0CE7A; background: linear-gradient(120deg, #FFF4D6, #FFF9EA); }
.offer-modal-badge--rating strong { color: #8A5D08; }

.modal__body { padding: 24px 26px; max-height: 62vh; overflow-y: auto; }
.modal__footer { padding: 18px 26px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.modal__footer .btn { flex: 1; }

.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.detail-row:last-child { border-bottom: none; }
.detail-row__label { color: var(--text-muted); display: flex; align-items: center; gap: 8px; font-weight: 600; }
.detail-row__label svg { width: 15px; height: 15px; color: var(--text-faint); }
.detail-row__value { font-weight: 700; color: var(--text); text-align: right; }

/* --- Create Offer wizard modal --- */
.modal--wizard { max-width: 620px; }
.wizard-steps {
  display: flex; align-items: center; gap: 6px;
  padding: 18px 26px 0;
}
.wizard-step-dot {
  flex: 1; height: 5px; border-radius: var(--radius-pill);
  background: var(--border);
  transition: background var(--transition);
}
.wizard-step-dot.active { background: var(--brand-blue); }
.wizard-step-dot.done { background: var(--brand-blue-light); }

.type-choice-grid { display: flex; flex-direction: column; gap: 12px; }
.type-choice {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition);
}
.type-choice:hover { border-color: var(--brand-blue); background: var(--brand-blue-lighter); }
.type-choice.selected { border-color: var(--brand-blue); background: var(--brand-blue-light); }
.type-choice__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  color: var(--brand-blue-dark); flex-shrink: 0;
}
.type-choice__icon svg { width: 22px; height: 22px; }
.type-choice__text strong { display: block; font-size: 14.5px; font-weight: 700; }
.type-choice__text span { font-size: 12.5px; color: var(--text-muted); }
.type-choice__check {
  margin-left: auto; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.type-choice.selected .type-choice__check { border-color: var(--brand-blue); background: var(--brand-blue); color: #fff; }
.type-choice__check svg { width: 12px; height: 12px; opacity: 0; transition: opacity var(--transition); }
.type-choice.selected .type-choice__check svg { opacity: 1; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid--full { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 13.5px; outline: none;
  transition: border-color var(--transition);
  background: var(--surface);
  color: var(--text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--brand-blue); }
.form-field--span2 { grid-column: 1 / -1; }

.segmented { display: flex; gap: 8px; flex-wrap: wrap; }
.segmented button {
  border: 1.5px solid var(--border); background: var(--surface);
  padding: 9px 16px; border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 600; color: var(--text-muted);
  transition: all var(--transition);
}
.segmented button.selected { border-color: var(--brand-blue); background: var(--brand-blue-light); color: var(--brand-blue-dark); }

.visibility-choice { display: flex; flex-direction: column; gap: 10px; }
.visibility-option {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 16px; cursor: pointer; transition: all var(--transition);
}
.visibility-option.selected { border-color: var(--brand-blue); background: var(--brand-blue-lighter); }
.visibility-option__icon { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--text-muted); flex-shrink: 0; }
.visibility-option__icon svg { width: 17px; height: 17px; }
.visibility-option strong { font-size: 13.5px; }
.visibility-option span { font-size: 12px; color: var(--text-muted); display: block; }
.visibility-option input { margin-left: auto; accent-color: var(--brand-blue); width: 18px; height: 18px; }

/* Players-needed stepper */
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper__btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface);
  font-size: 18px; font-weight: 700; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.stepper__btn:hover { border-color: var(--brand-blue); color: var(--brand-blue-dark); }
.stepper__value { font-size: 16px; font-weight: 800; color: var(--text); min-width: 20px; text-align: center; }
.form-hint { font-size: 12.5px; color: var(--text-muted); margin: 8px 0 0; }
.form-hint strong { color: var(--text); }

/* Visibility filter/invite panels (wizard step 3) */
.visibility-panel { margin-top: 16px; padding: 16px; border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--bg); }
.visibility-panel__title { font-size: 13px; font-weight: 700; color: var(--text); margin: 0 0 12px; }
.invite-list { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; }
.invite-row { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: var(--radius-sm); cursor: pointer; }
.invite-row:hover { background: var(--surface); }
.invite-row input { accent-color: var(--brand-blue); width: 16px; height: 16px; flex-shrink: 0; }
.invite-row__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-blue-light); color: var(--brand-blue-dark); display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 800; flex-shrink: 0; }
.invite-row__info { display: flex; flex-direction: column; }
.invite-row__info strong { font-size: 13px; color: var(--text); }
.invite-row__info span { font-size: 11.5px; color: var(--text-muted); }

/* Card group-slot progress (Explore feed) */
.card__slots { margin: 10px 0 4px; }
.card__slots-bar { height: 6px; border-radius: var(--radius-pill); background: var(--bg); overflow: hidden; }
.card__slots-fill { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--brand-blue), var(--accent-green)); }
.card__slots-label { display: block; font-size: 11.5px; color: var(--text-muted); font-weight: 600; margin-top: 5px; }

.card__weather { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--brand-blue-dark); background: var(--brand-blue-lighter); border-radius: var(--radius-pill); padding: 5px 10px; margin-top: 8px; width: fit-content; }
.card__weather span { font-size: 14px; }

.offer-weather-banner { display: flex; align-items: center; gap: 10px; background: var(--brand-blue-lighter); border: 1px solid var(--brand-blue-light); border-radius: var(--radius-lg); padding: 12px 16px; margin-bottom: 16px; }
.offer-weather-banner__icon { font-size: 26px; }
.offer-weather-banner__text { font-size: 13.5px; font-weight: 700; color: var(--brand-blue-dark); }
.offer-weather-banner__sub { font-size: 11.5px; font-weight: 500; color: var(--text-muted); margin-top: 2px; }

.visibility-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700;
  border-radius: var(--radius-pill); padding: 3px 9px; margin-left: auto;
}
.visibility-badge svg { width: 11px; height: 11px; }
.visibility-badge--targeted { background: var(--brand-blue-light); color: var(--brand-blue-dark); }
.visibility-badge--private { background: var(--accent-orange-light); color: var(--accent-orange-dark); }

/* Offer detail modal — players section */
.offer-sport-details { margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--border); }
.offer-players-section { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.offer-players-section__head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.offer-players-bar { height: 7px; border-radius: var(--radius-pill); background: var(--bg); overflow: hidden; margin-bottom: 10px; }
.offer-players-bar__fill { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--brand-blue), var(--accent-green)); }
.offer-players-avatars { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.offer-players-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-blue-light); color: var(--brand-blue-dark); display: flex; align-items: center; justify-content: center; }
.offer-players-avatar svg { width: 15px; height: 15px; }
.offer-visibility-note { display: flex; align-items: flex-start; gap: 10px; background: var(--bg); border-radius: var(--radius-md); padding: 10px 12px; }
.offer-visibility-note strong { font-size: 12.5px; color: var(--text); display: block; }
.offer-visibility-note span { font-size: 11.5px; color: var(--text-muted); }

.success-box { text-align: center; padding: 20px 10px 6px; }
.success-box__icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--accent-green-light); color: var(--accent-green-dark);
  display: flex; align-items: center; justify-content: center;
}
.success-box__icon svg { width: 34px; height: 34px; }
.success-box h4 { font-size: 18px; margin: 0 0 8px; }
.success-box p { color: var(--text-muted); font-size: 13.5px; margin: 0; }

/* ================================================================
   DRAWERS (slide-over) — Discover / Bookings / Notifications / Chat / Profile
   ================================================================ */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
  z-index: 500; opacity: 0; pointer-events: none; transition: opacity 250ms ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; height: 100%;
  width: 420px; max-width: 100vw;
  background: var(--surface);
  border-left: 1.5px solid var(--border);
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 501;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.drawer-backdrop.open .drawer { transform: translateX(0); }

.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1.5px solid var(--border); flex-shrink: 0; }
.drawer__head h3 { margin: 0; font-size: 16px; font-weight: 700; }

.drawer__tabs { padding: 8px 16px; background: var(--bg); border-bottom: 1.5px solid var(--border); flex-shrink: 0; }
.drawer__tabs-inner {
  display: flex; width: 100%; gap: 2px;
  background: var(--border); border-radius: 10px; padding: 3px;
}
.drawer__tabs button {
  flex: 1; border: none; background: transparent; padding: 8px 6px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--text-muted); transition: all 180ms ease;
  white-space: nowrap;
}
.drawer__tabs button:hover { color: var(--text); }
.drawer__tabs button.active {
  background: var(--surface); color: var(--brand-blue-dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12), 0 0 0 0.5px rgba(0,0,0,0.04);
}

.drawer__body {
  padding: 16px; overflow-y: auto; overflow-x: hidden; flex: 1; min-height: 0;
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin;
}
.drawer__body::-webkit-scrollbar { width: 4px; }
.drawer__body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
/* Prevent flex column from squeezing children instead of overflowing/scrolling */
.drawer__body > * { flex-shrink: 0; }

.request-card { border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 14px; }
.request-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.request-card__icon { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-orange-light); color: var(--accent-orange-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.request-card__icon svg { width: 18px; height: 18px; }
.request-card__title { font-weight: 700; font-size: 14px; color: var(--text); }
.request-card__sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.request-card__meta { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.request-card__meta svg { width: 13px; height: 13px; margin-right: 6px; vertical-align: -2px; color: var(--text-faint); }
.request-card__actions { display: flex; gap: 8px; }
.request-card__actions .btn { flex: 1; padding: 9px; font-size: 12.5px; }
.status-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--accent-orange-light); color: var(--accent-orange-dark); margin-bottom: 10px; }
.status-pill--confirmed { background: var(--accent-green-light); color: var(--accent-green-dark); }
.status-pill--completed { background: var(--border); color: var(--text-muted); }

.drawer-link-btn {
  border: none; background: none; color: var(--brand-blue-dark);
  font-size: 12px; font-weight: 600; padding: 0; cursor: pointer;
  transition: opacity 150ms ease;
}
.drawer-link-btn:hover { opacity: 0.75; }

.booking-list { display: flex; flex-direction: column; gap: 10px; }

/* --- Compact booking row (Confirmed / History — no actions) --- */
.booking-row { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-md); }
.booking-row__avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.booking-row__avatar--play { background: var(--brand-blue); }
.booking-row__avatar--coach { background: var(--accent-orange); }
.booking-row__avatar--club { background: var(--accent-green); }
.booking-row__info { flex: 1; min-width: 0; }
.booking-row__title { font-size: 14px; font-weight: 600; color: var(--text); }
.booking-row__sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.booking-row__date { font-size: 12px; color: var(--text-faint); margin-top: 3px; }
.booking-row .status-pill { margin-bottom: 0; flex-shrink: 0; white-space: nowrap; }

/* --- Bookings mini calendar (integrated, Rex-style compact) --- */
.mini-cal { padding: 12px 4px 14px; border-bottom: 1.5px solid var(--border); margin-bottom: 2px; }
.mini-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mini-cal-title { font-size: 13px; font-weight: 600; color: var(--text); }
.mini-cal-nav {
  width: 24px; height: 24px; border: 1.5px solid var(--border); border-radius: 6px;
  background: var(--bg); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 150ms ease, color 150ms ease;
}
.mini-cal-nav:hover { border-color: var(--brand-blue); color: var(--brand-blue-dark); }
.mini-cal-nav svg { width: 13px; height: 13px; }
.mini-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; text-align: center; }
.mini-cal-dow { font-size: 9px; font-weight: 700; color: var(--text-faint); padding: 2px 0 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.mini-cal-day {
  position: relative;
  height: 26px;
  border: none; background: none; border-radius: 6px;
  font-size: 12px; font-weight: 400; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 120ms ease, color 120ms ease;
}
.mini-cal-day:hover:not(.mini-cal-day--selected) { background: var(--border); }
.mini-cal-day--empty { cursor: default; }
.mini-cal-day--empty:hover { background: none; }
.mini-cal-day--today { color: var(--brand-blue-dark); font-weight: 700; }
.mini-cal-day--has-booking::after {
  content: ""; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 3px; border-radius: 50%; background: var(--brand-blue-dark);
}
.mini-cal-day--selected { background: var(--brand-blue) !important; color: #fff !important; font-weight: 600; }
.mini-cal-day--selected.mini-cal-day--has-booking::after { background: rgba(255,255,255,0.7); }

/* --- Notifications drawer (Rex alert-row style) --- */
.notif-group-label { font-size: 11px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 2px 4px; }
.notif-item { border-radius: var(--radius-sm); padding: 12px; }
.notif-item--unread { background: var(--brand-blue-lighter); border-left: 3px solid var(--brand-blue); padding-left: 9px; }
.notif-item--unread:hover { background: var(--brand-blue-light); }

/* --- Chat drawer with thread view --- */
.drawer__body--chat { position: relative; overflow: hidden; padding: 0; flex-direction: row; }
.chat-list-view { width: 100%; overflow-y: auto; padding: 10px; flex-shrink: 0; }
.chat-list { display: flex; flex-direction: column; gap: 2px; }

.chat-thread {
  position: absolute; inset: 0;
  background: var(--surface);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.chat-thread.thread-open { transform: translateX(0); }
.chat-thread__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1.5px solid var(--border); flex-shrink: 0; }
.chat-back-btn { width: 30px; height: 30px; border: 1.5px solid var(--border); border-radius: 50%; background: transparent; color: var(--text-muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 150ms ease; }
.chat-back-btn:hover { background: var(--bg); }
.chat-back-btn svg { width: 15px; height: 15px; }
.chat-thread__name { font-size: 14px; font-weight: 700; color: var(--text); }

.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble-wrap { display: flex; }
.chat-bubble-wrap--me { justify-content: flex-end; }
.chat-bubble {
  max-width: 75%; padding: 9px 14px; border-radius: 18px;
  font-size: 13px; line-height: 1.45;
  background: var(--bg); color: var(--text); border: 1.5px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-bubble-wrap--me .chat-bubble { background: var(--brand-blue); color: #fff; border: none; border-bottom-right-radius: 4px; border-bottom-left-radius: 18px; }

.chat-input-row { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1.5px solid var(--border); flex-shrink: 0; }
.chat-input { flex: 1; border: 1.5px solid var(--border); border-radius: var(--radius-pill); padding: 9px 14px; font-size: 13px; outline: none; background: var(--bg); color: var(--text); }
.chat-input:focus { border-color: var(--brand-blue); background: var(--surface); }
.chat-send-btn { width: 36px; height: 36px; border: none; border-radius: 50%; background: var(--brand-blue); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: not-allowed; opacity: 0.6; }
.chat-send-btn svg { width: 15px; height: 15px; }

/* --- Profile drawer hero (Rex gradient banner) --- */
.profile-hero {
  text-align: center; padding: 24px 16px 20px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.profile-hero__avatar {
  width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: 3px solid rgba(255,255,255,0.5);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.profile-hero__avatar svg { width: 32px; height: 32px; }
.profile-hero__name { font-size: 18px; font-weight: 700; color: #fff; }
.profile-hero__email { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 12px; }
.profile-hero__badges { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.acc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.35);
}
.acc-badge svg { width: 12px; height: 12px; }
.acc-badge--verified { background: var(--accent-green-light); color: var(--accent-green-dark); border-color: transparent; }

.acc-section-label { font-size: 13px; font-weight: 700; color: var(--text); margin: 0 0 10px; padding-top: 4px; }

.acc-profiles {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.acc-profile-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 150ms ease;
}
.acc-profile-row:last-child { border-bottom: none; }
.acc-profile-row:hover { background: var(--bg); }
.acc-profile-active { background: var(--accent-green-light); }
.acc-profile-active:hover { background: var(--accent-green-light); }

.acc-profile-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.acc-profile-icon svg { width: 18px; height: 18px; }
.acc-profile-icon--play { background: var(--brand-blue-light); color: var(--brand-blue-dark); }
.acc-profile-icon--coach { background: var(--accent-orange-light); color: var(--accent-orange-dark); }
.acc-profile-icon--club { background: var(--accent-green-light); color: var(--accent-green-dark); }

.acc-profile-info { flex: 1; min-width: 0; }
.acc-profile-name { font-size: 14px; font-weight: 600; color: var(--text); }
.acc-profile-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

.acc-profile-action { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 22px; height: 22px; color: var(--accent-green-dark); }
.acc-profile-action svg { width: 18px; height: 18px; }
.acc-profile-add {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--border); color: var(--text-faint);
  transition: border-color 150ms ease, color 150ms ease;
}
.acc-profile-add svg { width: 12px; height: 12px; }
.acc-profile-row:hover .acc-profile-add { border-color: var(--brand-blue); color: var(--brand-blue-dark); }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: var(--brand-ink); color: #DADADA; padding: 56px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 26px; }
.footer-col h5 { color: #fff; font-size: 13px; font-weight: 700; margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-col a { display: block; font-size: 13.5px; color: #B4B4B4; margin-bottom: 10px; transition: color var(--transition); }
.footer-col a:hover { color: var(--brand-blue); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 12.5px; color: #8C8C8C; flex-wrap: wrap; gap: 10px; }

/* ================================================================
   SPORT & LOCATION PICKER MODALS
   ================================================================ */
.select-pill.active { border-color: var(--brand-blue); background: var(--brand-blue-lighter); color: var(--brand-blue-dark); }

.picker-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
  z-index: 650;
  align-items: center; justify-content: center;
  padding: 20px;
}
.picker-overlay.open { display: flex; }

.picker-modal {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  width: 100%; max-width: 560px; max-height: 85vh;
  box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(0.96) translateY(8px); opacity: 0;
  transition: transform 220ms cubic-bezier(0.16,1,0.3,1), opacity 180ms ease;
}
.picker-overlay.open .picker-modal { transform: scale(1) translateY(0); opacity: 1; }

.picker-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 14px; gap: 10px; flex-shrink: 0; }
.picker-title { font-size: 17px; font-weight: 700; color: var(--text); flex: 1; text-align: center; }
.picker-back, .picker-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--text-muted); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 150ms ease;
}
.picker-back svg, .picker-close svg { width: 16px; height: 16px; }
.picker-back { display: none; }
.picker-back.visible { display: flex; }
.picker-back:hover { background: var(--bg); border-color: var(--text-faint); color: var(--text); }
.picker-close:hover { background: var(--accent-red-light); border-color: #F3C6C6; color: var(--accent-red); }

.picker-search-wrap { padding: 0 16px 14px; flex-shrink: 0; }
.picker-search-inner {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-pill);
  padding: 10px 16px; transition: border-color 150ms ease;
}
.picker-search-inner:focus-within { border-color: var(--brand-blue); background: var(--surface); }
.picker-search-inner svg { width: 15px; height: 15px; color: var(--text-faint); flex-shrink: 0; }
.picker-search-input { flex: 1; border: none; background: transparent; font-size: 14px; color: var(--text); outline: none; font-family: inherit; }
.picker-search-input::placeholder { color: var(--text-faint); }

.picker-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 14px 8px; }
.picker-body::-webkit-scrollbar { width: 4px; }
.picker-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Sport grid (flat chips with emoji icons) */
.picker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-bottom: 4px; }
.picker-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 6px 12px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 11px; font-weight: 500; text-align: center; line-height: 1.3;
  cursor: pointer; transition: all 150ms ease;
}
.picker-chip:hover { border-color: var(--brand-blue); background: var(--brand-blue-lighter); color: var(--brand-blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.picker-chip.active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; box-shadow: 0 2px 8px rgba(15,188,249,0.3); }
.picker-chip-icon { font-size: 22px; line-height: 1; }

/* Location: continent/country card grid */
.picker-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding-bottom: 4px; }
.picker-card {
  display: flex; align-items: center; gap: 10px;
  padding: 14px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 13px; font-weight: 600; text-align: left; position: relative;
  cursor: pointer; transition: all 150ms ease;
}
.picker-card:hover { border-color: var(--brand-blue); background: var(--brand-blue-lighter); color: var(--brand-blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.picker-card.has-selected { border-color: var(--brand-blue); background: var(--brand-blue-light); color: var(--brand-blue-dark); }
.picker-card-icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.picker-card-name { flex: 1; }
.picker-card-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-blue); flex-shrink: 0; }

/* Row list (cities / drill-down / search results) */
.picker-list { display: flex; flex-direction: column; }
.picker-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px; border-radius: 10px;
  cursor: pointer; font-size: 14px; color: var(--text);
  transition: background 120ms ease;
}
.picker-row:hover { background: var(--bg); }
.picker-row.selected { background: var(--brand-blue-light); color: var(--brand-blue-dark); font-weight: 600; }
.picker-row-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.picker-row-name { flex: 1; }
.picker-row-sub { font-size: 12px; color: var(--text-faint); margin-top: 1px; }
.picker-row-tag { font-size: 15px; flex-shrink: 0; }
.picker-check { display: none; color: var(--brand-blue-dark); flex-shrink: 0; width: 16px; height: 16px; }
.picker-row.selected .picker-check { display: block; }
.picker-divider { height: 1px; background: var(--border); margin: 4px 0; }

.picker-empty { padding: 32px 16px; text-align: center; color: var(--text-faint); font-size: 14px; }

.picker-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-top: 1.5px solid var(--border); flex-shrink: 0; }
.picker-btn-clear {
  padding: 10px 20px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border); background: transparent; color: var(--text-muted);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 150ms ease;
}
.picker-btn-clear:hover { border-color: var(--text-faint); color: var(--text); }
.picker-btn-apply {
  flex: 1; padding: 11px 20px; border-radius: var(--radius-pill); border: none;
  background: var(--brand-blue); color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  cursor: pointer; transition: opacity 150ms ease;
}
.picker-btn-apply svg { width: 14px; height: 14px; }
.picker-btn-apply:hover { opacity: 0.88; }

@media (max-width: 768px) {
  .picker-overlay { align-items: flex-end; padding: 0; }
  .picker-modal { max-width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh; transform: translateY(20px); opacity: 0; }
  .picker-overlay.open .picker-modal { transform: translateY(0); opacity: 1; }
  .picker-grid { grid-template-columns: repeat(3, 1fr); }
  .picker-card-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   PROFILE PAGES (Player / Coach / Club) — "pp-" namespace
   ================================================================ */
.pp-page { background: var(--bg); padding-bottom: 40px; }

.pp-header { max-width: 800px; margin: 0 auto; padding: 24px 20px 0; }

.pp-cover { height: 130px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; position: relative; }
.pp-cover--play { background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark) 70%, #7FE0FF); }
.pp-cover--coach { background: linear-gradient(135deg, #C9740A, var(--accent-orange) 60%, #FFC46B); }
.pp-cover--club { background: linear-gradient(135deg, #147A3D, var(--accent-green) 60%, #7BE6A0); }

.pp-back {
  position: absolute; top: 14px; left: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 600;
  background: rgba(0,0,0,0.18); padding: 6px 14px; border-radius: var(--radius-pill);
  backdrop-filter: blur(4px); transition: background 150ms ease;
}
.pp-back svg { width: 13px; height: 13px; }
.pp-back:hover { background: rgba(0,0,0,0.32); color: #fff; }

.pp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  padding: 0 24px 20px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.pp-avatar-wrap { position: relative; top: -26px; flex-shrink: 0; }
.pp-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  border: 4px solid var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 24px; letter-spacing: -0.5px;
  box-shadow: var(--shadow-card);
}
.pp-avatar--play { background: var(--brand-blue-light); color: var(--brand-blue-dark); }
.pp-avatar--coach { background: var(--accent-orange-light); color: var(--accent-orange-dark); }
.pp-avatar--club { background: var(--accent-green-light); color: var(--accent-green-dark); }
.pp-avatar svg { width: 34px; height: 34px; }

.pp-info { padding-top: 10px; min-width: 0; flex: 1; }
.pp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pp-name { font-size: 20px; font-weight: 800; color: var(--brand-ink); }
.pp-sep { color: var(--text-faint); }
.pp-role { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.pp-city { font-size: 12.5px; color: var(--text-faint); display: flex; align-items: center; gap: 4px; }
.pp-city svg { width: 12px; height: 12px; }
.pp-badges { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pp-tag { font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: var(--radius-pill); background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.pp-tag--verified { background: var(--accent-green-light); color: var(--accent-green-dark); border-color: transparent; display: inline-flex; align-items: center; gap: 4px; }
.pp-tag--verified svg { width: 11px; height: 11px; }
.pp-tag--pro { background: linear-gradient(120deg, #FFF4D6, #FFE8B8); color: #A9760F; border-color: transparent; font-weight: 700; }

.pp-sports-row { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pp-sport-chip { font-size: 12px; font-weight: 600; color: var(--brand-blue-dark); background: var(--brand-blue-light); border-radius: var(--radius-pill); padding: 4px 11px; }

.pp-actions {
  max-width: 800px; margin: 0 auto; padding: 14px 24px;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.pp-actions .btn { flex-shrink: 0; }

/* "More" (report/block) menu */
.pp-more-wrap { position: relative; margin-left: auto; flex-shrink: 0; }
.pp-more-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
.pp-more-btn:hover { background: var(--bg); color: var(--text); }
.pp-more-btn svg { width: 18px; height: 18px; }
.pp-more-menu { position: absolute; top: calc(100% + 6px); right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); min-width: 190px; padding: 6px; z-index: 20; display: none; flex-direction: column; }
.pp-more-menu.open { display: flex; }
.pp-more-menu__item { display: block; width: 100%; text-align: left; background: none; border: none; padding: 9px 10px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.pp-more-menu__item:hover { background: var(--bg); }
.pp-more-menu__item--danger { color: var(--accent-red); }

/* Stat bar (Matches / Followers / Following etc.) */
.pp-stats {
  max-width: 940px; margin: 16px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.pp-stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px; text-align: center;
}
.pp-stat strong { display: block; font-size: 20px; font-weight: 800; color: var(--brand-ink); }
.pp-stat span { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.pp-stat--streak { background: linear-gradient(120deg, #FFF3E0, #FFFBF5); border-color: #F5C27A; }
.pp-stat--streak strong { color: #D9720B; }

/* Tabs */
.pp-tabs-nav { max-width: 800px; margin: 20px auto 0; padding: 0 20px 16px; overflow-x: auto; scrollbar-width: none; }
.pp-tabs-nav::-webkit-scrollbar { display: none; }
.pp-tabs-seg { display: flex; background: var(--border); border-radius: 12px; padding: 4px; gap: 2px; min-width: 100%; width: max-content; box-sizing: border-box; }
.pp-tab {
  flex: 1; padding: 9px 18px; font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-muted); background: rgba(255,255,255,0.5); border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 9px; cursor: pointer; white-space: nowrap; transition: all 150ms ease;
}
.pp-tab:hover { color: var(--text); background: rgba(255,255,255,0.8); }
.pp-tab.active { background: var(--surface); color: var(--brand-blue-dark); box-shadow: 0 1px 5px rgba(0,0,0,0.13); }

/* Tab content */
.pp-content { max-width: 800px; margin: 0 auto 60px; padding: 24px 20px 0; }
.pp-panel { display: none; }
.pp-panel.active { display: block; }

.pp-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.pp-section h4 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin: 0 0 14px; }
.pp-bio-intro { font-size: 14.5px; line-height: 1.7; color: var(--text); margin: 0; }

.pp-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pp-skill { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 4px 12px; font-size: 13px; color: var(--text); }

.pp-info-row { display: flex; gap: 6px; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--bg); align-items: baseline; }
.pp-info-row:last-child { border-bottom: none; }
.pp-info-label { color: var(--text-muted); min-width: 150px; flex-shrink: 0; }
.pp-info-value { color: var(--text); font-weight: 600; }
.pp-info-value a { color: var(--brand-blue-dark); }

.pp-list-item { padding: 13px 0; border-bottom: 1px solid var(--bg); }
.pp-list-item:last-child { border-bottom: none; }
.pp-list-item__title { font-weight: 700; font-size: 14.5px; color: var(--text); }
.pp-list-item__sub { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.pp-list-item__meta { font-size: 12px; color: var(--text-faint); margin-top: 5px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Active Groups (player profile, Overview) */
.pp-group-list { display: flex; flex-direction: column; gap: 10px; }
.pp-group-card { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; text-decoration: none; transition: var(--transition); }
.pp-group-card:hover { border-color: var(--brand-blue); box-shadow: var(--shadow-sm); }
.pp-group-card__icon { font-size: 22px; flex-shrink: 0; }
.pp-group-card__title { font-size: 13.5px; font-weight: 700; color: var(--text); }
.pp-group-card__meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.pp-group-card .menu-arrow { margin-left: auto; flex-shrink: 0; }

/* Achievements (player profile) */
.pp-achv-list { display: flex; flex-direction: column; gap: 10px; }
.pp-achv-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg, #FFF8E6, #FFFDF6); border: 1.5px solid #F0CE7A; border-radius: var(--radius-lg); padding: 14px 16px; }
.pp-achv-card__icon { font-size: 26px; flex-shrink: 0; }
.pp-achv-card__title { font-size: 14px; font-weight: 700; color: var(--text); }
.pp-achv-card__sub { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

/* Credentials (coach profile) */
.pp-cred-list { display: flex; flex-direction: column; gap: 10px; }
.pp-cred-item { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; }
.pp-cred-item__icon { font-size: 24px; flex-shrink: 0; }
.pp-cred-item__title { font-size: 14px; font-weight: 700; color: var(--text); }
.pp-cred-item__sub { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

.pp-story-list { display: flex; flex-direction: column; gap: 10px; }
.pp-story-card { background: var(--brand-blue-lighter); border: 1.5px solid var(--brand-blue-light); border-radius: var(--radius-lg); padding: 16px; }
.pp-story-card__text { font-size: 13.5px; font-style: italic; color: var(--text); line-height: 1.6; margin: 0 0 8px; }
.pp-story-card__author { font-size: 12px; font-weight: 600; color: var(--brand-blue-dark); }

/* Points, levels, badges, leaderboard */
.pp-level-card { background: linear-gradient(120deg, var(--brand-blue-lighter), #fff); border: 1.5px solid var(--brand-blue-light); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 14px; }
.pp-level-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pp-level-card__badge { background: var(--brand-blue); color: #fff; font-size: 12.5px; font-weight: 700; border-radius: var(--radius-pill); padding: 4px 12px; }
.pp-level-card__points { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.pp-level-bar { height: 8px; border-radius: var(--radius-pill); background: rgba(0,0,0,0.06); overflow: hidden; }
.pp-level-bar__fill { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--brand-blue), var(--accent-green)); }
.pp-level-card__hint { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

.pp-badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-badge-chip { background: #FFF8E6; border: 1px solid #F0CE7A; color: var(--text); font-size: 12.5px; font-weight: 600; border-radius: var(--radius-pill); padding: 6px 12px; }
.pp-badge-chip--locked { background: var(--bg); border-color: var(--border); color: var(--text-faint); }

.pp-lb-list { display: flex; flex-direction: column; gap: 6px; }
.pp-lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--bg); }
.pp-lb-row--me { background: var(--brand-blue-lighter); border: 1.5px solid var(--brand-blue-light); }
.pp-lb-rank { font-weight: 800; font-size: 13px; color: var(--text-muted); width: 18px; flex-shrink: 0; }
.pp-lb-name { font-size: 13.5px; font-weight: 600; color: var(--text); flex: 1; }
.pp-lb-points { font-size: 12.5px; font-weight: 700; color: var(--brand-blue-dark); }

/* Rates */
.pp-rates-note { font-size: 12px; color: var(--text-faint); margin-bottom: 16px; line-height: 1.5; }
.pp-rates-grid { display: flex; flex-direction: column; gap: 10px; }
.pp-rate-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg); border-radius: var(--radius-md); border: 1px solid var(--border); transition: border-color 150ms ease; }
.pp-rate-item:hover { border-color: var(--brand-blue); }
.pp-rate-icon { width: 40px; height: 40px; background: var(--surface); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.pp-rate-label { flex: 1; font-size: 14px; font-weight: 600; color: var(--text); }
.pp-rate-price { font-size: 17px; font-weight: 800; color: var(--brand-blue-dark); }
.pp-rate-unit { font-size: 11px; font-weight: 400; color: var(--text-faint); }

/* Reviews */
.pp-rv-summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg); border-radius: var(--radius-md); margin-bottom: 18px; }
.pp-rv-avg { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; }
.pp-rv-avg-stars { display: flex; gap: 2px; }
.pp-rv-avg-stars svg { width: 14px; height: 14px; }
.pp-rv-count { font-size: 12px; color: var(--text-faint); margin-left: 2px; }
.pp-rv-list { display: flex; flex-direction: column; gap: 14px; }
.pp-rv-item { display: flex; gap: 12px; padding: 14px 16px; background: var(--bg); border-radius: var(--radius-md); border: 1px solid var(--border); }
.pp-rv-avatar { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--brand-blue); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pp-rv-body { flex: 1; min-width: 0; }
.pp-rv-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; gap: 8px; }
.pp-rv-name { font-size: 13px; font-weight: 700; color: var(--text); }
.pp-rv-date { font-size: 11px; color: var(--text-faint); }
.pp-rv-stars { display: flex; gap: 2px; margin-bottom: 6px; }
.pp-rv-stars svg { width: 13px; height: 13px; }
.pp-rv-text { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* Court schedule (Club) */
.pp-cal-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; }
.pp-cal-day {
  flex: 0 0 56px; border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 10px 4px; text-align: center; background: var(--bg); cursor: pointer;
  transition: all 150ms ease;
}
.pp-cal-day span { display: block; font-size: 10.5px; color: var(--text-faint); font-weight: 700; text-transform: uppercase; }
.pp-cal-day strong { display: block; font-size: 16px; font-weight: 800; color: var(--text); margin-top: 2px; }
.pp-cal-day.active { background: var(--brand-blue); border-color: var(--brand-blue); }
.pp-cal-day.active span, .pp-cal-day.active strong { color: #fff; }

.pp-schedule-legend { display: flex; gap: 16px; margin-bottom: 14px; font-size: 12.5px; color: var(--text-muted); }
.pp-schedule-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pp-legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pp-legend-dot--free { background: var(--accent-green-light); border: 1.5px solid var(--accent-green); }
.pp-legend-dot--booked { background: var(--accent-red-light); border: 1.5px solid var(--accent-red); }

.pp-schedule-table { overflow-x: auto; }
.pp-schedule-grid { display: grid; grid-template-columns: 64px repeat(3, 1fr); gap: 6px; min-width: 480px; }
.pp-schedule-grid .pp-sg-head { font-size: 12px; font-weight: 700; color: var(--text-muted); text-align: center; padding: 6px 0; }
.pp-schedule-grid .pp-sg-time { font-size: 12px; color: var(--text-faint); display: flex; align-items: center; padding-right: 6px; }
.pp-slot { border-radius: var(--radius-sm); padding: 8px 4px; text-align: center; font-size: 12px; font-weight: 600; border: 1.5px solid transparent; }
.pp-slot--free { background: var(--accent-green-light); color: var(--accent-green-dark); border-color: var(--accent-green); }
.pp-slot--booked { background: var(--accent-red-light); color: var(--accent-red); border-color: #F3C6C6; }

/* Shop (Club) */
.pp-shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pp-shop-item { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--bg); }
.pp-shop-item__img { height: 100px; display: flex; align-items: center; justify-content: center; font-size: 32px; background: var(--brand-blue-light); }
.pp-shop-item__body { padding: 10px 12px; }
.pp-shop-item__title { font-size: 13px; font-weight: 700; color: var(--text); }
.pp-shop-item__price { font-size: 13px; font-weight: 800; color: var(--brand-blue-dark); margin-top: 4px; }

@media (max-width: 640px) {
  .pp-cover { height: 96px; }
  .pp-card { padding: 0 16px 16px; gap: 12px; }
  .pp-avatar-wrap { top: -20px; }
  .pp-avatar { width: 56px; height: 56px; font-size: 17px; }
  .pp-avatar svg { width: 26px; height: 26px; }
  .pp-name { font-size: 16px; }
  .pp-stats { grid-template-columns: repeat(2, 1fr); }
  .pp-shop-grid { grid-template-columns: repeat(2, 1fr); }
  .pp-schedule-grid { grid-template-columns: 56px repeat(3, 1fr); }
}

/* ================================================================
   DISCOVER SUB-PAGES (Tournaments / Rankings / Clubs / News / Calendar / Live) — "disc-" namespace
   ================================================================ */
.disc-page { background: var(--bg); padding-bottom: 60px; min-height: 60vh; }
.disc-header { max-width: var(--container); margin: 0 auto; padding: 28px 32px 0; }
.disc-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.disc-title-row svg { width: 24px; height: 24px; color: var(--accent-green-dark); flex-shrink: 0; }
.disc-title-row h1 { font-size: 22px; font-weight: 800; margin: 0; color: var(--brand-ink); }
.disc-back { color: var(--text-muted); display: flex; align-items: center; }
.disc-back svg { width: 20px; height: 20px; }

.disc-context {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent-green-light); color: var(--text);
  padding: 10px 16px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.disc-context .disc-sep { color: var(--text-faint); font-weight: 400; }
.disc-context svg { width: 14px; height: 14px; }

.disc-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 12px 18px; margin-bottom: 16px; max-width: 480px;
}
.disc-search svg { width: 17px; height: 17px; color: var(--text-faint); flex-shrink: 0; }
.disc-search input { border: none; outline: none; background: none; font-size: 14px; width: 100%; color: var(--text); }

.disc-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.disc-tabs .disc-tab { flex: none; padding: 10px 20px 12px; }
.disc-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px 12px; border: none; background: none;
  color: var(--text-faint); font-size: 12.5px; font-weight: 700;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  cursor: pointer; transition: color 150ms ease, border-color 150ms ease;
}
.disc-tab svg { width: 17px; height: 17px; }
.disc-tab.active { color: var(--accent-green-dark); border-bottom-color: var(--accent-green); }
.disc-tab-panels { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.disc-panel { display: none; flex-direction: column; gap: 14px; }
.disc-panel.active { display: flex; }
.disc-panel--cards.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; align-items: start; }

/* Tournament cards */
.tourn-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; position: relative; cursor: pointer; transition: border-color 150ms ease; }
.tourn-card:hover { border-color: var(--text-faint); }
.tourn-card--live { border-left: 3px solid var(--accent-red); }
.tourn-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tourn-card__head { display: flex; align-items: center; gap: 12px; }
.tourn-card__icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; background: var(--bg); position: relative; }
.tourn-card__icon--live { background: var(--accent-red-light); color: var(--accent-red); }
.tourn-card__icon--live::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-red); border: 2px solid var(--surface); }
.tourn-card__title { font-size: 16px; font-weight: 800; color: var(--text); margin: 0; }
.tourn-card__date { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.tourn-card__date svg { width: 13px; height: 13px; color: var(--text-faint); }

.tourn-badge-live {
  background: var(--accent-red); color: #fff; font-size: 11px; font-weight: 800;
  padding: 5px 12px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.tourn-badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

.tourn-countdown { background: var(--brand-blue-light); color: var(--brand-blue-dark); font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: var(--radius-pill); flex-shrink: 0; white-space: nowrap; }

.tourn-status { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 10px; background: var(--accent-green-light); color: var(--accent-green-dark); }

.tourn-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tourn-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: var(--radius-pill); background: var(--bg); color: var(--text-muted); }
.tourn-tag svg { width: 12px; height: 12px; }
.tourn-tag--loc { color: var(--text-muted); }
.tourn-tag--category { color: var(--text-muted); }
.tourn-tag--entries { color: var(--text-muted); }
.tourn-tag--live { background: var(--accent-red-light); color: var(--accent-red); font-weight: 700; }

.tourn-prize { font-size: 13.5px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.tourn-prize svg { width: 14px; height: 14px; color: #D9A400; }

.tourn-result-box { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 4px; }
.tourn-result-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); padding: 3px 0; }
.tourn-result-row svg { width: 14px; height: 14px; color: #D9A400; flex-shrink: 0; }
.tourn-result-row strong { color: var(--text); font-weight: 700; }
.tourn-result-row .tourn-score { color: var(--brand-blue-dark); font-weight: 700; }
.tourn-card__meta { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }

/* --- Tournament detail modal --- */
.modal--tourn .modal__head { background: var(--surface); }
.tourn-modal-tabs { display: flex; gap: 4px; padding: 14px 26px 0; border-bottom: 1px solid var(--border); }
.tourn-modal-tab {
  padding: 10px 18px; border: none; background: none; font-size: 13.5px; font-weight: 700;
  color: var(--text-muted); border-bottom: 3px solid transparent; margin-bottom: -1px;
  cursor: pointer; transition: color 150ms ease, border-color 150ms ease;
}
.tourn-modal-tab.active { color: var(--accent-green-dark); border-bottom-color: var(--accent-green); }
.tourn-modal-panel { display: none; }
.tourn-modal-panel.active { display: block; }

.tourn-modal-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.tourn-modal-hero__icon { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.tourn-modal-hero__name { font-size: 18px; font-weight: 800; color: var(--text); }
.tourn-modal-hero__date { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.tourn-modal-hero__date svg { width: 14px; height: 14px; color: var(--text-faint); }

.tourn-modal-section-title { font-size: 15px; font-weight: 800; color: var(--text); margin: 0 0 10px; }

.tourn-reg-status-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); color: var(--accent-green-dark);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 18px; font-size: 14.5px; font-weight: 700; margin-bottom: 20px;
}
.tourn-reg-status-box svg { width: 20px; height: 20px; flex-shrink: 0; }

.modal--tourn-live { max-width: 620px; }
.tourn-modal-tabs--scroll { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.tourn-modal-tabs--scroll::-webkit-scrollbar { display: none; }
.tourn-modal-tabs--scroll .tourn-modal-tab { white-space: nowrap; flex-shrink: 0; }

.tourn-live-pill {
  background: var(--accent-red); color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 11px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 6px;
}
.tourn-live-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

/* Draw tab */
.tourn-draw-toggle { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.tourn-draw-toggle button {
  flex: 1; padding: 10px; border: none; background: none; font-size: 13.5px; font-weight: 700;
  color: var(--text-faint); border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}
.tourn-draw-toggle button.active { color: var(--accent-green-dark); border-bottom-color: var(--accent-green); }

.tourn-bracket-label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--accent-green-dark); margin-bottom: 14px; }
.tourn-bracket-label svg { width: 16px; height: 16px; }

.tourn-bracket-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tourn-bracket-header__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-green-light); color: var(--accent-green-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tourn-bracket-header__icon svg { width: 20px; height: 20px; }
.tourn-bracket-header__title { font-size: 15px; font-weight: 800; color: var(--text); }
.tourn-bracket-header__sub { font-size: 12.5px; color: var(--accent-orange-dark); font-weight: 700; margin-top: 2px; }

.tourn-round-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); color: var(--accent-green-dark);
  padding: 12px 16px; border-radius: var(--radius-md); font-size: 13.5px; font-weight: 700; margin-bottom: 16px;
}
.tourn-round-banner span:last-child { color: var(--text-muted); font-weight: 600; }

.tourn-match-card { border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 14px; margin-bottom: 12px; }
.tourn-match-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tourn-match-card__label { font-size: 12.5px; color: var(--text-faint); font-weight: 700; }
.tourn-match-status { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--accent-green-light); color: var(--accent-green-dark); }
.tourn-match-status--live { background: var(--accent-red-light); color: var(--accent-red); }

.tourn-player-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg); margin-bottom: 6px; }
.tourn-player-row:last-of-type { margin-bottom: 0; }
.tourn-player-row--winner { background: var(--accent-green-light); border: 1.5px solid var(--accent-green); }
.tourn-player-row__name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text); }
.tourn-player-row__name svg { width: 14px; height: 14px; color: #D9A400; }
.tourn-player-row__score { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--surface); color: var(--text-muted); }
.tourn-player-row--winner .tourn-player-row__score { background: var(--accent-green); color: #fff; }
.tourn-match-vs { text-align: center; font-size: 11px; color: var(--text-faint); font-weight: 700; padding: 4px 0; }
.tourn-match-advance { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--accent-green-dark); margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.tourn-match-advance svg { width: 13px; height: 13px; }

/* Schedule tab */
.tourn-sched-item { display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 10px; }
.tourn-sched-item--live { border-left: 3px solid var(--accent-red); }
.tourn-sched-time { background: var(--accent-green-light); color: var(--accent-green-dark); font-size: 13px; font-weight: 800; padding: 10px 14px; border-radius: var(--radius-sm); text-align: center; flex-shrink: 0; min-width: 74px; }
.tourn-sched-item--live .tourn-sched-time { background: var(--surface); }
.tourn-sched-info { flex: 1; min-width: 0; }
.tourn-sched-court { font-size: 12px; color: var(--text-faint); font-weight: 600; }
.tourn-sched-players { font-size: 14px; font-weight: 700; color: var(--text); margin-top: 2px; }
.tourn-sched-round { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Results tab */
.tourn-result-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 10px; }
.tourn-result-card--top { border-left: 3px solid #E8A93B; }
.tourn-result-card__round { font-size: 12px; color: var(--text-faint); font-weight: 700; margin-bottom: 8px; }
.tourn-result-card__winner { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--text); }
.tourn-result-card__winner svg { width: 15px; height: 15px; color: #D9A400; }
.tourn-result-card__loser { font-size: 13px; color: var(--text-muted); margin: 4px 0 8px 23px; }
.tourn-result-card__score { font-size: 13px; font-weight: 700; color: var(--accent-green-dark); margin-left: 23px; }

/* Live Stream tab */
.tourn-stream-empty { text-align: center; padding: 40px 20px; }
.tourn-stream-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--accent-red-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.tourn-stream-icon svg { width: 34px; height: 34px; color: var(--accent-red); }
.tourn-stream-empty h4 { font-size: 17px; font-weight: 800; color: var(--text); margin: 0 0 8px; }
.tourn-stream-empty p { font-size: 13.5px; color: var(--text-muted); margin: 0 0 20px; }
.tourn-stream-watch-btn { background: var(--accent-red); color: #fff; border: none; border-radius: var(--radius-pill); padding: 12px 26px; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.tourn-stream-watch-btn svg { width: 15px; height: 15px; }

/* Finished tournament — Champion hero + Final match */
.tourn-champion-hero { display: flex; align-items: center; gap: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 18px; }
.tourn-champion-hero__icon { width: 54px; height: 54px; border-radius: 50%; background: #E8A93B; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tourn-champion-hero__icon svg { width: 28px; height: 28px; color: #fff; }
.tourn-champion-hero__label { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #A9760F; }
.tourn-champion-hero__name { font-size: 19px; font-weight: 800; color: var(--text); margin-top: 2px; }

.tourn-final-match { border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 16px; text-align: center; margin-bottom: 6px; }
.tourn-final-match__row { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.tourn-final-match__row svg { width: 16px; height: 16px; color: #D9A400; }
.tourn-final-match__row--loser { color: var(--text-muted); font-weight: 600; }
.tourn-final-match__row--loser svg { visibility: hidden; }
.tourn-final-match__vs { font-size: 11px; color: var(--text-faint); font-weight: 700; margin: 6px 0; }
.tourn-final-match__score { font-size: 13.5px; font-weight: 700; color: var(--accent-green-dark); margin-top: 8px; }

.tourn-bracket-header__sub--done { color: var(--accent-green-dark); }
.tourn-result-card--champion { border-left: 3px solid #E8A93B; }
.tourn-result-card__winner--check svg { color: var(--accent-green-dark); }

/* ================================================================
   RANKINGS
   ================================================================ */
.rank-context-wrap { max-width: var(--container); margin: 0 auto 24px; padding: 0 32px; }
.rank-context-bar {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px 20px; cursor: pointer; text-align: left; font: inherit; transition: var(--transition);
}
.rank-context-bar:hover { border-color: var(--accent-green); }
.rank-context-bar__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rank-context-bar__icon {
  width: 42px; height: 42px; border-radius: 50%; background: var(--accent-green-light); color: var(--accent-green-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rank-context-bar__icon svg { width: 20px; height: 20px; }
.rank-context-bar__title { font-size: 15.5px; font-weight: 800; color: var(--accent-green-dark); }
.rank-context-bar__sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.rank-context-bar__change { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--accent-green-dark); flex-shrink: 0; }
.rank-context-bar__change svg { width: 14px; height: 14px; }

/* Podium (top 3) */
.rank-podium { max-width: var(--container); margin: 0 auto; padding: 0 32px 28px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 14px; }
.rank-podium-card {
  position: relative; text-align: center; border-radius: var(--radius-lg); padding: 34px 14px 20px;
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color 150ms ease;
}
.rank-podium-card:hover { border-color: var(--text-faint); }
.rank-podium-card--1 { padding-top: 44px; padding-bottom: 26px; border-color: #E8C878; order: 2; }
.rank-podium-card--2 { order: 1; }
.rank-podium-card--3 { border-color: #D3B08C; order: 3; }
.rank-podium-card__crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 22px; }
.rank-podium-card__avatar {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff; background: var(--brand-blue-dark);
}
.rank-podium-card--1 .rank-podium-card__avatar { width: 66px; height: 66px; font-size: 18px; background: #D9A400; }
.rank-podium-card--2 .rank-podium-card__avatar { background: #8B939B; }
.rank-podium-card--3 .rank-podium-card__avatar { background: #A6714A; }
.rank-podium-card__medal { font-size: 22px; margin-bottom: 4px; }
.rank-podium-card__name { font-size: 14px; font-weight: 800; color: var(--text); line-height: 1.3; }
.rank-podium-card__sport { font-size: 12px; color: var(--text-muted); margin: 3px 0 10px; }
.rank-podium-card__points { font-size: 15px; font-weight: 800; color: var(--accent-green-dark); }
.rank-podium-card__points span { font-size: 11px; font-weight: 600; color: var(--text-faint); margin-left: 2px; }

.rank-list { max-width: 900px; margin: 0 auto; padding: 0 32px 40px; display: flex; flex-direction: column; gap: 8px; }
.rank-row {
  display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 13px 18px; transition: border-color 150ms ease;
}
.rank-row:hover { border-color: var(--brand-blue-light); }
.rank-row--you { background: var(--brand-blue-lighter); border-color: var(--brand-blue-light); }
.rank-num { width: 22px; flex-shrink: 0; text-align: center; font-size: 14px; font-weight: 800; color: var(--text-faint); }
.rank-avatar {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13.5px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.rank-avatar--blue { background: var(--brand-blue); }
.rank-avatar--green { background: var(--accent-green-dark); }
.rank-avatar--orange { background: var(--accent-orange-dark); }
.rank-avatar--you { background: var(--brand-blue-darker); }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-size: 15px; font-weight: 700; color: var(--text); }
.rank-you-tag { font-size: 11px; font-weight: 700; color: var(--brand-blue-dark); background: var(--brand-blue-light); border-radius: var(--radius-pill); padding: 1px 8px; margin-left: 6px; }
.rank-sport { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.rank-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.rank-star { background: none; border: none; padding: 0; cursor: pointer; color: var(--border); line-height: 0; transition: var(--transition); }
.rank-star svg { width: 18px; height: 18px; }
.rank-star.active { color: #F5B400; }
.rank-star:hover { transform: scale(1.15); }
.rank-points { font-size: 14px; font-weight: 800; color: var(--accent-green-dark); }
.rank-points span { font-size: 11px; font-weight: 600; color: var(--text-faint); margin-left: 3px; }

.modal--rank-picker { max-width: 420px; }
.rank-picker-back {
  background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 4px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rank-picker-back svg { width: 18px; height: 18px; }
.rank-picker-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ================================================================
   CLUBS DIRECTORY
   ================================================================ */
.clubdir-context-wrap { max-width: var(--container); margin: 0 auto 22px; padding: 0 32px; }
.clubdir-context {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 20px; font-size: 13.5px;
}
.clubdir-context__flag { font-size: 16px; }
.clubdir-context__country { font-weight: 700; color: var(--accent-green-dark); }
.clubdir-context__dot { color: var(--text-faint); }
.clubdir-context svg { width: 16px; height: 16px; color: var(--accent-green-dark); }
.clubdir-context__sport { font-weight: 600; color: var(--accent-green-dark); }
.clubdir-context__count { margin-left: auto; color: var(--text-muted); font-weight: 600; }

.clubdir-list { max-width: var(--container); margin: 0 auto; padding: 0 32px 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; align-items: start; }
.clubdir-card {
  display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px; cursor: pointer; transition: border-color 150ms ease;
}
.clubdir-card:hover { border-color: var(--accent-green); }
.clubdir-card__avatar-wrap { position: relative; flex-shrink: 0; }
.clubdir-card__icon {
  width: 54px; height: 54px; border-radius: var(--radius-md); display: flex; align-items: center;
  justify-content: center;
}
.clubdir-card__icon svg { width: 26px; height: 26px; }
.clubdir-card__icon--blue { background: var(--brand-blue-light); color: var(--brand-blue-dark); }
.clubdir-card__icon--green { background: var(--accent-green-light); color: var(--accent-green-dark); }
.clubdir-card__icon--orange { background: var(--accent-orange-light); color: var(--accent-orange-dark); }
.clubdir-card__verified-badge {
  position: absolute; bottom: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-green-dark); color: #fff; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
}
.clubdir-card__verified-badge svg { width: 10px; height: 10px; }
.clubdir-card__body { flex: 1; min-width: 0; }
.clubdir-card__top { display: flex; align-items: center; gap: 8px; }
.clubdir-card__name { font-size: 16.5px; font-weight: 800; color: var(--text); margin: 0; }
.clubdir-card__chevron { width: 15px; height: 15px; color: var(--text-faint); margin-left: auto; flex-shrink: 0; }
.clubdir-card__meta { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.clubdir-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  color: var(--text-muted); background: var(--bg-alt, #F3F5F7); border-radius: var(--radius-pill); padding: 4px 10px;
}
.clubdir-chip svg { width: 12px; height: 12px; }
.clubdir-card__contact { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.clubdir-card__contact span {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--accent-green-dark);
  background: var(--accent-green-light); border-radius: var(--radius-pill); padding: 7px 13px;
}
.clubdir-card__contact svg { width: 13px; height: 13px; }

.modal--club { max-width: 640px; padding: 0; overflow: hidden; }
.club-modal-cover {
  height: 120px; background: linear-gradient(120deg, #147A3D, var(--accent-green) 55%, var(--brand-blue));
  display: flex; align-items: center; padding: 0 28px; position: relative;
}
.club-modal-cover h2 { color: #fff; font-size: 22px; font-weight: 800; margin: 0; text-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.club-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(255,255,255,0.85);
}
.modal--club .tourn-modal-tabs { padding: 0 28px; }
.modal--club .modal__body { padding: 20px 28px 28px; }

.club-id-card { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 18px; }
.club-id-card__icon { width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--accent-green-light); color: var(--accent-green-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.club-id-card__icon svg { width: 26px; height: 26px; }
.club-id-card__name { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 4px; }

.club-fac-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.club-fac-chip { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--accent-green-light); color: var(--accent-green-dark); }

.club-contact-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid var(--bg); cursor: pointer; }
.club-contact-row:last-child { border-bottom: none; }
.club-contact-row__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-green-light); color: var(--accent-green-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.club-contact-row__icon svg { width: 16px; height: 16px; }
.club-contact-row__label { font-size: 11.5px; color: var(--text-faint); }
.club-contact-row__value { font-size: 13.5px; font-weight: 700; color: var(--text); }
.club-contact-row .menu-arrow { margin-left: auto; }

.club-social-row { display: flex; gap: 10px; }
.club-social-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--radius-md); padding: 12px; font-size: 13.5px; font-weight: 700;
  color: #fff; cursor: pointer;
}
.club-social-btn svg { width: 17px; height: 17px; }
.club-social-btn--ig { background: linear-gradient(135deg, #F58529, #DD2A7B 50%, #8134AF); }
.club-social-btn--fb { background: #1877F2; }

.club-personnel-tabs { display: flex; gap: 4px; background: var(--bg); border-radius: var(--radius-md); padding: 4px; margin-bottom: 16px; }
.club-personnel-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border: none; background: none;
  border-radius: var(--radius-sm); padding: 9px; font-size: 13px; font-weight: 700; color: var(--text-muted); cursor: pointer;
}
.club-personnel-tab svg { width: 15px; height: 15px; }
.club-personnel-tab.active { background: #fff; color: var(--accent-green-dark); box-shadow: var(--shadow-sm); }
.club-personnel-list { display: flex; flex-direction: column; gap: 12px; }
.club-personnel-card { display: flex; gap: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; }
.club-personnel-card__avatar { position: relative; width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.club-personnel-card__avatar svg { width: 26px; height: 26px; }
.club-personnel-card__avatar--green { background: var(--accent-green-light); color: var(--accent-green-dark); }
.club-personnel-card__avatar--orange { background: var(--accent-orange-light); color: var(--accent-orange-dark); }
.club-personnel-card__num { position: absolute; bottom: -4px; left: -4px; background: var(--accent-green-dark); color: #fff; font-size: 10px; font-weight: 800; border-radius: var(--radius-pill); padding: 1px 6px; }
.club-personnel-card__info { flex: 1; min-width: 0; }
.club-personnel-card__name { font-size: 14.5px; font-weight: 700; color: var(--text); }
.club-personnel-card__sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.club-personnel-card__stats { display: flex; gap: 24px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,0.06); }
.club-personnel-card__stats div { display: flex; flex-direction: column; align-items: center; }
.club-personnel-card__stats strong { font-size: 15px; color: var(--accent-green-dark); }
.club-personnel-card__stats span { font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.club-role-tag { font-size: 10.5px; font-weight: 700; color: var(--accent-orange-dark); background: var(--accent-orange-light); border-radius: var(--radius-pill); padding: 2px 9px; margin-left: 6px; }

.club-media-empty { text-align: center; padding: 36px 20px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 14px; }
.club-media-empty svg { width: 44px; height: 44px; color: var(--accent-green-dark); opacity: 0.6; margin-bottom: 12px; }
.club-media-empty h5 { font-size: 15.5px; font-weight: 800; color: var(--text); margin: 0 0 6px; }
.club-media-empty p { font-size: 13px; color: var(--text-muted); margin: 0; }
.club-media-placeholder { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.club-media-placeholder svg { width: 30px; height: 30px; color: var(--accent-green-dark); flex-shrink: 0; }
.club-media-placeholder__title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.club-media-placeholder__sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

.club-shop-card { display: flex; align-items: center; gap: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 10px; }
.club-shop-card__icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.club-shop-card__icon svg { width: 21px; height: 21px; }
.club-shop-card__icon--blue { background: var(--brand-blue-light); color: var(--brand-blue-dark); }
.club-shop-card__icon--green { background: var(--accent-green-light); color: var(--accent-green-dark); }
.club-shop-card__icon--orange { background: var(--accent-orange-light); color: var(--accent-orange-dark); }
.club-shop-card__title { font-size: 14px; font-weight: 700; color: var(--text); }
.club-shop-card__sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ================================================================
   FEDERATION NEWS
   ================================================================ */
.news-list { max-width: var(--container); margin: 0 auto; padding: 0 32px 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; align-items: start; }
.news-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 20px; cursor: pointer; transition: border-color 150ms ease;
}
.news-card:hover { border-color: var(--brand-blue); }
.news-tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: var(--radius-pill); margin-bottom: 10px; }
.news-tag--blue { background: var(--brand-blue-light); color: var(--brand-blue-dark); }
.news-tag--orange { background: var(--accent-orange-light); color: var(--accent-orange-dark); }
.news-tag--green { background: var(--accent-green-light); color: var(--accent-green-dark); }
.news-tag--purple { background: #F1E8FE; color: #7C3AED; }
.news-tag--gray { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.news-card__title { font-size: 16.5px; font-weight: 800; color: var(--text); margin: 0 0 8px; line-height: 1.35; }
.news-card__excerpt { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 0 0 12px; }
.news-card__meta { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--text-faint); }
.news-card__read { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--brand-blue-dark); }
.news-card__read svg { width: 13px; height: 13px; }

.modal--news { max-width: 560px; }
.news-modal__title { font-size: 21px; font-weight: 800; color: var(--text); margin: 0 0 8px; line-height: 1.35; }
.news-modal__date { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.news-modal__body { font-size: 14.5px; line-height: 1.75; color: var(--text); margin: 0; }

/* ================================================================
   CALENDAR
   ================================================================ */
.cal-wrap { max-width: 900px; margin: 0 auto 24px; padding: 0 32px; }
.cal-month-head { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 14px; }
.cal-month-head h2 { font-size: 18px; font-weight: 800; color: var(--text); margin: 0; min-width: 140px; text-align: center; }
.cal-month-nav { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--bg); color: var(--text-muted); display: flex; align-items: center; justify-content: center; cursor: not-allowed; opacity: 0.5; }
.cal-month-nav svg { width: 15px; height: 15px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid__weekday { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; padding-bottom: 4px; }
.cal-day { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 13.5px; color: var(--text); border-radius: var(--radius-sm); }
.cal-day--muted { color: var(--text-faint); }
.cal-day--today { background: var(--brand-blue); color: #fff; font-weight: 800; }
.cal-day--event { font-weight: 700; color: var(--accent-green-dark); background: var(--accent-green-light); }
.cal-day__dot { position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-green-dark); }

.cal-events { max-width: 900px; margin: 0 auto; padding: 0 32px 40px; }
.cal-section { margin-bottom: 24px; }
.cal-section__title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); margin: 0 0 10px; }
.cal-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-red); animation: pulse-dot 1.6s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.cal-event-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 16px; margin-bottom: 10px; text-decoration: none; transition: border-color 150ms ease; }
.cal-event-card:hover { border-color: var(--brand-blue); }
.cal-event-card__date { width: 46px; flex-shrink: 0; text-align: center; display: flex; flex-direction: column; }
.cal-event-card__date strong { font-size: 17px; font-weight: 800; color: var(--text); line-height: 1.1; }
.cal-event-card__date span { font-size: 10.5px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; }
.cal-event-card__date--live { color: var(--accent-red); font-size: 11px; font-weight: 800; background: var(--accent-red-light); border-radius: var(--radius-sm); padding: 6px 0; }
.cal-event-card__date--done strong, .cal-event-card__date--done span { color: var(--text-muted); }
.cal-event-card__title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.cal-event-card__meta { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.cal-event-card--done { opacity: 0.85; }

/* ================================================================
   LIVE STREAM
   ================================================================ */
.stream-grid { max-width: var(--container); margin: 0 auto; padding: 0 32px 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.stream-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: border-color 150ms ease; }
.stream-card:hover { border-color: var(--brand-blue); }
.stream-card__thumb { position: relative; height: 140px; display: flex; align-items: center; justify-content: center; }
.stream-card__thumb--1 { background: linear-gradient(135deg, #147A3D, var(--accent-green)); }
.stream-card__thumb--2 { background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue)); }
.stream-card__thumb--3 { background: linear-gradient(135deg, #C9740A, var(--accent-orange)); }
.stream-card__thumb--4 { background: linear-gradient(135deg, #147A3D, var(--accent-green)); opacity: 0.75; }
.stream-card__thumb--5 { background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue)); opacity: 0.75; }
.stream-card__live { position: absolute; top: 10px; left: 10px; background: var(--accent-red); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: var(--radius-pill); }
.stream-card__viewers { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.55); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); }
.stream-card__duration { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.65); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-sm); }
.stream-card__play { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; color: var(--text); }
.stream-card__play svg { width: 20px; height: 20px; margin-left: 2px; }
.stream-card__body { padding: 14px 16px; }
.stream-card__title { font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 4px; }
.stream-card__meta { font-size: 12.5px; color: var(--text-muted); }

.stream-list { max-width: var(--container); margin: 0 auto; padding: 0 32px 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; align-items: start; }
.stream-sched-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 0; }
.stream-sched-card__date { width: 46px; flex-shrink: 0; text-align: center; }
.stream-sched-card__date strong { display: block; font-size: 17px; font-weight: 800; color: var(--text); }
.stream-sched-card__date span { font-size: 10.5px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; }
.stream-sched-card__body { flex: 1; min-width: 0; }
.stream-sched-card__title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.stream-sched-card__meta { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.stream-notify-btn { flex-shrink: 0; font-size: 12.5px; padding: 8px 14px; }

.modal--stream { max-width: 520px; }
.stream-player { position: relative; height: 220px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #147A3D, var(--accent-green)); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.stream-player__live { position: absolute; top: 12px; left: 12px; background: var(--accent-red); color: #fff; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-pill); }
.stream-player__viewers { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.55); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); }
.stream-player__play { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; color: var(--text); }
.stream-player__play svg { width: 26px; height: 26px; margin-left: 3px; }
.stream-player__desc { font-size: 13.5px; line-height: 1.65; color: var(--text-muted); margin: 0 0 18px; }
.stream-player__actions { display: flex; gap: 10px; }
.stream-player__actions .btn--primary { flex: 1; }

/* ================================================================
   PLAYER DASHBOARD (Sportymus Pro / CRM)
   ================================================================ */
.dash-page { background: var(--bg); min-height: calc(100vh - 64px); }
.dash-shell { width: 100%; margin: 0; padding: 24px 32px 60px; display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }

/* App-shell mode: whole page fits the viewport, only .dash-content scrolls internally */
body.dash-body { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
body.dash-body .pro-topbar { flex-shrink: 0; position: static; }
body.dash-body .dash-page { flex: 1; min-height: 0; overflow: hidden; display: flex; }
body.dash-body .dash-shell { flex: 1; min-height: 0; height: 100%; padding-bottom: 24px; }
body.dash-body .dash-sidebar { position: static; height: 100%; overflow-y: auto; }
body.dash-body .dash-content { height: 100%; overflow-y: auto; padding-right: 4px; }
body.dash-body .pro-footer { flex-shrink: 0; }

/* Sidebar */
.dash-sidebar { position: sticky; top: 84px; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px 14px; box-shadow: var(--shadow-sm); }
.dash-sidebar__profile { text-align: center; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--bg); }
.dash-sidebar__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-blue-light); color: var(--brand-blue-dark); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.dash-sidebar__avatar svg { width: 28px; height: 28px; }
.dash-sidebar__name { font-size: 14.5px; font-weight: 800; color: var(--text); }
.dash-pro-badge { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 800; color: #A9760F; background: linear-gradient(120deg, #FFF4D6, #FFE8B8); border-radius: var(--radius-pill); padding: 3px 10px; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav__item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: none; background: none;
  padding: 10px 12px; border-radius: var(--radius-md); font-size: 13.5px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: var(--transition);
}
.dash-nav__item svg { width: 17px; height: 17px; flex-shrink: 0; }
.dash-nav__item:hover { background: var(--bg); color: var(--text); }
.dash-nav__item.active { background: var(--brand-blue-light); color: var(--brand-blue-dark); }
.dash-nav__back { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--bg); font-size: 12.5px; font-weight: 600; color: var(--text-faint); text-decoration: none; }
.dash-nav__back svg { width: 14px; height: 14px; }
.dash-nav__back:hover { color: var(--text-muted); }

/* Content */
.dash-content { min-width: 0; }
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.dash-content__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.dash-content__head h1 { font-size: 24px; font-weight: 800; color: var(--text); margin: 0 0 4px; }
.dash-content__head p { font-size: 13.5px; color: var(--text-muted); margin: 0; }
.dash-add-btn { flex-shrink: 0; font-size: 13px; padding: 10px 18px; }

.dash-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.dash-stat-grid--3 { grid-template-columns: repeat(3, 1fr); }
.dash-stat-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.dash-stat-card__icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.dash-stat-card__icon svg { width: 18px; height: 18px; }
.dash-stat-card__icon--green { background: var(--accent-green-light); color: var(--accent-green-dark); }
.dash-stat-card__icon--blue { background: var(--brand-blue-light); color: var(--brand-blue-dark); }
.dash-stat-card__icon--orange { background: var(--accent-orange-light); color: var(--accent-orange-dark); }
.dash-stat-card__icon--red { background: var(--accent-red-light); color: var(--accent-red); }
.dash-stat-card__value { font-size: 21px; font-weight: 800; color: var(--text); }
.dash-stat-card__value--green { color: var(--accent-green-dark); }
.dash-stat-card__value--red { color: var(--accent-red); }
.dash-stat-card__label { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

.dash-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dash-two-col--top { align-items: start; }
.dash-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.dash-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-card__head h3 { font-size: 15px; font-weight: 800; color: var(--text); margin: 0; }
.dash-card__head a { font-size: 12.5px; font-weight: 700; color: var(--brand-blue-dark); text-decoration: none; }

.dash-mini-list { display: flex; flex-direction: column; gap: 12px; }
.dash-mini-row { display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--bg); font-size: 13px; }
.dash-mini-row:last-child { border-bottom: none; padding-bottom: 0; }
.dash-mini-row__date { flex-shrink: 0; width: 64px; font-size: 12px; font-weight: 700; color: var(--text-faint); overflow-wrap: break-word; }
.dash-mini-row__body { color: var(--text-muted); }
.dash-mini-row__body strong { color: var(--text); }

/* Finance */
.dash-fin-list { display: flex; flex-direction: column; gap: 10px; }
.dash-fin-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bg); }
.dash-fin-row:last-child { border-bottom: none; }
.dash-fin-row__icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-fin-row__icon svg { width: 16px; height: 16px; }
.dash-fin-row__icon--green { background: var(--accent-green-light); color: var(--accent-green-dark); }
.dash-fin-row__icon--red { background: var(--accent-red-light); color: var(--accent-red); }
.dash-fin-row__body { flex: 1; min-width: 0; }
.dash-fin-row__title { font-size: 13.5px; font-weight: 700; color: var(--text); }
.dash-fin-row__sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.dash-fin-row__amount { font-size: 14px; font-weight: 800; flex-shrink: 0; }
.dash-fin-row__amount--green { color: var(--accent-green-dark); }
.dash-fin-row__amount--red { color: var(--accent-red); }

/* Journal */
.dash-journal-list { display: flex; flex-direction: column; gap: 20px; }
.dash-journal-day__label { font-size: 12.5px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.dash-journal-entry { display: flex; align-items: flex-start; gap: 14px; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.dash-journal-entry__time { flex-shrink: 0; font-size: 13px; font-weight: 800; color: var(--brand-blue-dark); width: 52px; }
.dash-journal-entry__time span { display: block; font-size: 11px; font-weight: 600; color: var(--text-faint); }
.dash-journal-entry__body { flex: 1; min-width: 0; }
.dash-journal-entry__title { font-size: 14px; font-weight: 700; color: var(--text); }
.dash-journal-entry__meta { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.dash-goal-tag { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--accent-orange-dark); background: var(--accent-orange-light); border-radius: var(--radius-pill); padding: 4px 10px; }

/* Goals */
.dash-goal-yearly__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dash-goal-yearly__label { font-size: 11.5px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.dash-goal-yearly__head h3 { font-size: 18px; font-weight: 800; color: var(--text); margin: 4px 0 0; }
.dash-goal-yearly__meta { font-size: 12.5px; color: var(--text-muted); margin-top: 8px; }
.dash-progress { height: 8px; border-radius: var(--radius-pill); background: var(--bg); overflow: hidden; }
.dash-progress__bar { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--brand-blue), var(--accent-green)); }
.dash-milestones { display: flex; flex-direction: column; gap: 12px; }
.dash-milestone { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.dash-milestone__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dash-milestone__title { font-size: 14px; font-weight: 700; color: var(--text); }
.dash-milestone__meta { font-size: 12px; color: var(--text-faint); margin-top: 8px; }
.dash-status-pill { flex-shrink: 0; font-size: 11px; font-weight: 700; border-radius: var(--radius-pill); padding: 4px 11px; }
.dash-status-pill--ontrack { background: var(--brand-blue-light); color: var(--brand-blue-dark); }
.dash-status-pill--achieved { background: var(--accent-green-light); color: var(--accent-green-dark); }
.dash-status-pill--behind { background: var(--accent-red-light); color: var(--accent-red); }

/* Calendar sub-tabs */
.dash-subtabs { display: flex; gap: 4px; background: var(--bg); border-radius: var(--radius-md); padding: 4px; margin-bottom: 18px; max-width: 320px; }
.dash-subtab { flex: 1; border: none; background: none; padding: 9px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; color: var(--text-muted); cursor: pointer; }
.dash-subtab.active { background: #fff; color: var(--brand-blue-dark); box-shadow: var(--shadow-sm); }
.dash-subpanel { display: none; }
.dash-subpanel.active { display: block; }
.dash-tourn-plan-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.dash-tourn-plan-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dash-tourn-plan-card__title { font-size: 15px; font-weight: 800; color: var(--text); }
.dash-tourn-plan-card__meta { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.dash-tourn-plan-card__budget { display: flex; gap: 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bg); flex-wrap: wrap; }
.dash-tourn-plan-card__budget span { font-size: 12px; color: var(--text-faint); }
.dash-tourn-plan-card__budget strong { color: var(--text); }

/* Matches */
.dash-match-list { display: flex; flex-direction: column; gap: 12px; }
.dash-match-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.dash-match-card__top { display: flex; align-items: center; gap: 12px; }
.dash-match-card__result { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0; }
.dash-match-card__result--win { background: var(--accent-green); }
.dash-match-card__result--loss { background: var(--accent-red); }
.dash-match-card__opponent { font-size: 14.5px; font-weight: 700; color: var(--text); }
.dash-match-card__meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.dash-match-card__score { margin-left: auto; font-size: 13.5px; font-weight: 800; color: var(--text); flex-shrink: 0; }
.dash-match-card__notes { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--bg); }

/* Equipment */
.dash-equip-list { display: flex; flex-direction: column; gap: 12px; }
.dash-equip-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.dash-equip-card__icon { width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--brand-blue-light); color: var(--brand-blue-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-equip-card__icon svg { width: 20px; height: 20px; }
.dash-equip-card__body { flex: 1; min-width: 0; }
.dash-equip-card__title { font-size: 14px; font-weight: 700; color: var(--text); }
.dash-equip-card__sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Reports */
.dash-report-hero { display: flex; align-items: center; gap: 18px; background: linear-gradient(120deg, var(--brand-blue-lighter), #fff); border: 1.5px solid var(--brand-blue-light); border-radius: var(--radius-lg); padding: 22px; }
.dash-report-hero__icon { width: 52px; height: 52px; border-radius: var(--radius-md); background: #fff; color: var(--brand-blue-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.dash-report-hero__icon svg { width: 26px; height: 26px; }
.dash-report-hero h3 { font-size: 16px; font-weight: 800; color: var(--text); margin: 0 0 4px; }
.dash-report-hero p { font-size: 13px; color: var(--text-muted); margin: 0; }
.dash-report-hero .btn { flex-shrink: 0; margin-left: auto; }
.dash-report-list { display: flex; flex-direction: column; gap: 10px; }
.dash-report-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.dash-report-row svg { width: 22px; height: 22px; color: var(--text-faint); flex-shrink: 0; }
.dash-report-row__title { font-size: 13.5px; font-weight: 700; color: var(--text); }
.dash-report-row__sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.dash-report-row .btn { flex-shrink: 0; margin-left: auto; font-size: 12.5px; padding: 8px 14px; }

/* Profile drawer dashboard CTA */
.acc-dashboard-btn {
  display: flex; align-items: center; gap: 10px; margin: 14px 0; padding: 12px 14px;
  background: linear-gradient(120deg, var(--brand-blue-lighter), #fff); border: 1.5px solid var(--brand-blue-light);
  border-radius: var(--radius-lg); text-decoration: none; color: var(--brand-blue-dark); font-size: 13.5px; font-weight: 700;
  transition: var(--transition);
}
.acc-dashboard-btn:hover { border-color: var(--brand-blue); box-shadow: var(--shadow-sm); }
.acc-dashboard-btn svg:first-child { width: 18px; height: 18px; flex-shrink: 0; }
.acc-dashboard-btn span:first-of-type { flex: 1; display: flex; align-items: center; gap: 8px; }
.acc-dashboard-btn__tag { font-size: 10px; font-weight: 800; background: var(--brand-blue-dark); color: #fff; border-radius: var(--radius-pill); padding: 2px 7px; }
.acc-dashboard-btn .menu-arrow { width: 14px !important; height: 14px !important; }

@media (max-width: 900px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .dash-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-two-col { grid-template-columns: 1fr; }

  /* Disable the desktop no-scroll app-shell below 900px — revert to normal page scroll */
  body.dash-body { height: auto; overflow: visible; display: block; }
  body.dash-body .pro-topbar { position: sticky; top: 0; z-index: 200; }
  body.dash-body .dash-page { display: block; overflow: visible; }
  body.dash-body .dash-shell { height: auto; }
  body.dash-body .dash-sidebar { height: auto; overflow-y: visible; }
  body.dash-body .dash-content { height: auto; overflow-y: visible; }
}

/* ================================================================
   SPORTYMUS PRO — standalone product shell (topbar/footer/login)
   ================================================================ */
.pro-topbar {
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
}
.pro-topbar__brand { display: flex; align-items: center; gap: 12px; }
.pro-topbar__logo { height: 26px; }
.pro-topbar__divider { width: 1px; height: 20px; background: var(--border); }
.pro-topbar__label { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; color: var(--brand-blue-dark); text-transform: uppercase; }
.pro-topbar__actions { display: flex; align-items: center; gap: 16px; }
.pro-icon-btn { position: relative; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--bg); color: var(--text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pro-icon-btn svg { width: 17px; height: 17px; }
.pro-icon-btn .badge-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--bg); }
.pro-topbar__user { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.pro-topbar__user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-blue-light); color: var(--brand-blue-dark); display: flex; align-items: center; justify-content: center; }
.pro-topbar__user-avatar svg { width: 16px; height: 16px; }
.pro-topbar__user-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.pro-topbar__user > svg { width: 14px; height: 14px; color: var(--text-faint); }

.pro-footer {
  display: flex; align-items: center; gap: 16px; padding: 20px 28px; background: #fff; border-top: 1px solid var(--border);
}
.pro-footer__brand { display: flex; align-items: center; gap: 10px; }
.pro-footer__brand img { height: 18px; }
.pro-footer__label { font-size: 11px; font-weight: 800; color: var(--brand-blue-dark); text-transform: uppercase; }
.pro-footer__copy { font-size: 12px; color: var(--text-faint); }
.pro-footer__back { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.pro-footer__back:hover { color: var(--text); }

/* Login / signup */
body.auth-body { height: 100vh; overflow: hidden; }
.pro-auth { height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.pro-auth__brand-panel {
  background: linear-gradient(160deg, var(--brand-blue-darker), var(--brand-blue-dark) 55%, var(--brand-blue));
  color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  height: 100%; overflow-y: auto;
}
.pro-auth__brand-top { display: flex; align-items: center; gap: 12px; }
.pro-auth__logo { height: 26px; filter: brightness(0) invert(1); }
.pro-auth__logo-label { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; color: #fff; text-transform: uppercase; padding: 2px 9px; border: 1px solid rgba(255,255,255,0.6); border-radius: var(--radius-pill); }
.pro-auth__pitch h1 { font-size: 32px; font-weight: 800; line-height: 1.25; margin: 0 0 14px; max-width: 460px; }
.pro-auth__pitch p { font-size: 14.5px; color: rgba(255,255,255,0.88); line-height: 1.6; max-width: 420px; margin: 0 0 24px; }
.pro-auth__feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pro-auth__feature-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #fff; font-weight: 500; }
.pro-auth__feature-list svg { width: 17px; height: 17px; color: #4ADE80; flex-shrink: 0; }
.pro-auth__quote { border-top: 1px solid rgba(255,255,255,0.25); padding-top: 20px; }
.pro-auth__quote p { font-size: 13.5px; font-style: italic; color: rgba(255,255,255,0.92); margin: 0 0 8px; max-width: 420px; }
.pro-auth__quote span { font-size: 12.5px; color: rgba(255,255,255,0.65); }

.pro-auth__form-panel { display: flex; align-items: center; justify-content: center; padding: 40px; background: #F7F9FA; height: 100%; overflow-y: auto; }
.pro-auth__form-wrap { width: 100%; max-width: 380px; }
.pro-auth__tabs { display: flex; gap: 4px; background: var(--border); border-radius: var(--radius-md); padding: 4px; margin-bottom: 28px; }
.pro-auth__tab { flex: 1; border: none; background: none; padding: 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; color: var(--text-muted); cursor: pointer; }
.pro-auth__tab.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.pro-auth__panel { display: none; }
.pro-auth__panel.active { display: block; }
.pro-auth__panel h2 { font-size: 22px; font-weight: 800; color: var(--text); margin: 0 0 6px; }
.pro-auth__sub { font-size: 13.5px; color: var(--text-muted); margin: 0 0 24px; }
.pro-auth-form { display: flex; flex-direction: column; gap: 16px; }
.pro-auth-form__field { display: flex; flex-direction: column; gap: 6px; }
.pro-auth-form__field span { font-size: 12.5px; font-weight: 700; color: var(--text); }
.pro-auth-form__field input { border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 11px 14px; font-size: 14px; font-family: inherit; color: var(--text); }
.pro-auth-form__field input:focus { outline: none; border-color: var(--brand-blue); }
.pro-auth-form__forgot { align-self: flex-end; font-size: 12.5px; font-weight: 600; color: var(--brand-blue-dark); text-decoration: none; margin-top: -6px; }
.pro-auth-form .btn--block { text-align: center; text-decoration: none; }
.pro-auth__divider { display: flex; align-items: center; gap: 10px; margin: 22px 0; color: var(--text-faint); font-size: 12px; }
.pro-auth__divider::before, .pro-auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.pro-auth__role-row { display: flex; gap: 8px; }
.pro-auth__role-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md); font-size: 12px; font-weight: 700;
  color: var(--text-muted); text-decoration: none; transition: var(--transition);
}
.pro-auth__role-btn svg { width: 17px; height: 17px; }
.pro-auth__role-btn:hover, .pro-auth__role-btn--active { border-color: var(--brand-blue); color: var(--brand-blue-dark); background: var(--brand-blue-lighter); }
.pro-auth__terms { font-size: 11.5px; color: var(--text-faint); line-height: 1.6; margin-top: 18px; }
.pro-auth__back { display: flex; align-items: center; gap: 6px; margin-top: 32px; font-size: 12.5px; font-weight: 600; color: var(--text-faint); text-decoration: none; }
.pro-auth__back svg { width: 13px; height: 13px; }
.pro-auth__back:hover { color: var(--text-muted); }

@media (max-width: 900px) {
  .pro-auth { grid-template-columns: 1fr; }
  .pro-auth__brand-panel { display: none; }
}

/* ================================================================
   DASHBOARD v2 — Notion/Linear-style cards, toolbars, charts, AI Coach
   ================================================================ */
.dash-ai-tip { display: flex; align-items: center; gap: 16px; background: linear-gradient(120deg, #F1E8FE, #FBF8FF); border: 1.5px solid #E3D4FB; border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 24px; }
.dash-ai-tip__icon { width: 42px; height: 42px; border-radius: var(--radius-md); background: #fff; color: #7C3AED; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.dash-ai-tip__icon svg { width: 21px; height: 21px; }
.dash-ai-tip__title { font-size: 13.5px; font-weight: 800; color: #7C3AED; margin-bottom: 4px; }
.dash-ai-tip__body p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.55; }
.dash-ai-tip .btn { flex-shrink: 0; margin-left: auto; font-size: 12.5px; padding: 9px 16px; }

/* Toolbar: filter pills + view toggle / select row, shared across tabs */
.dash-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-filter-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.dash-toolbar .dash-filter-pills { margin-bottom: 0; }
.dash-filter-pill { border: 1.5px solid var(--border); background: #fff; border-radius: var(--radius-pill); padding: 7px 15px; font-size: 12.5px; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: var(--transition); }
.dash-filter-pill:hover { border-color: var(--brand-blue-light); }
.dash-filter-pill.active { background: var(--brand-blue-dark); border-color: var(--brand-blue-dark); color: #fff; }
.dash-view-toggle { display: flex; gap: 4px; background: var(--bg); border-radius: var(--radius-md); padding: 4px; }
.dash-view-toggle__btn { border: none; background: none; padding: 8px 14px; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 700; color: var(--text-muted); cursor: pointer; }
.dash-view-toggle__btn.active { background: #fff; color: var(--brand-blue-dark); box-shadow: var(--shadow-sm); }
.dash-select-row { display: flex; gap: 8px; }
.dash-select { border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 8px 12px; font-size: 12.5px; font-weight: 600; color: var(--text); background: #fff; cursor: pointer; }

/* Notion-style card grid (generic) */
.dash-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 24px; }
.dash-notion-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.dash-notion-card--clickable { cursor: pointer; transition: var(--transition); }
.dash-notion-card--clickable:hover { border-color: var(--brand-blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dash-notion-card__icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.dash-notion-card__icon svg { width: 18px; height: 18px; }
.dash-notion-card__icon--green { background: var(--accent-green-light); color: var(--accent-green-dark); }
.dash-notion-card__icon--blue { background: var(--brand-blue-light); color: var(--brand-blue-dark); }
.dash-notion-card__icon--orange { background: var(--accent-orange-light); color: var(--accent-orange-dark); }
.dash-notion-card__icon--red { background: var(--accent-red-light); color: var(--accent-red); }
.dash-notion-card__emoji { font-size: 26px; margin-bottom: 10px; }
.dash-notion-card__label { font-size: 11.5px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.dash-notion-card__value { font-size: 17px; font-weight: 800; color: var(--text); line-height: 1.3; }
.dash-notion-card__sub { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.dash-notion-card__link { font-size: 12.5px; font-weight: 700; color: var(--brand-blue-dark); margin-top: 12px; }

/* Calendar (list/calendar view toggle) */
.dash-cal-view { display: none; }
.dash-cal-view.active { display: block; }
.dash-event-list { display: flex; flex-direction: column; gap: 10px; }
.dash-event-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; cursor: pointer; transition: var(--transition); }
.dash-event-card:hover { border-color: var(--brand-blue); box-shadow: var(--shadow-sm); }
.dash-event-card__tag { display: inline-block; font-size: 10.5px; font-weight: 700; border-radius: var(--radius-pill); padding: 3px 9px; margin-bottom: 8px; }
.dash-event-card__tag--training { background: var(--brand-blue-light); color: var(--brand-blue-dark); }
.dash-event-card__tag--competition { background: var(--accent-red-light); color: var(--accent-red); }
.dash-event-card__tag--lesson { background: var(--accent-orange-light); color: var(--accent-orange-dark); }
.dash-event-card__title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.dash-event-card__meta { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

/* Goals */
.dash-goal-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.dash-goal-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dash-goal-card__title { font-size: 14px; font-weight: 700; color: var(--text); }
.dash-goal-card__meta { font-size: 12px; color: var(--text-faint); margin-top: 8px; }

/* Journal */
.dash-journal-cards { display: flex; flex-direction: column; gap: 12px; }
.dash-journal-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.dash-journal-card__head { display: flex; align-items: center; justify-content: space-between; }
.dash-journal-card__date { font-size: 12px; color: var(--text-faint); font-weight: 600; }
.dash-journal-card__title { font-size: 14.5px; font-weight: 700; color: var(--text); margin: 8px 0 6px; }
.dash-journal-card__text { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0 0 12px; }
.dash-journal-card__photos { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-photo-chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--text-muted); background: var(--bg); border-radius: var(--radius-pill); padding: 6px 12px; }

/* Analytics charts */
.dash-chart-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dash-chart-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.dash-chart-card--wide { grid-column: span 2; }
.dash-chart-card__head { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 16px; }
.dash-chart-card__foot { font-size: 12px; color: var(--text-faint); text-align: center; margin-top: 12px; }
.dash-ring {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto;
  background: conic-gradient(var(--brand-blue) calc(var(--ring-pct) * 1%), var(--bg) 0);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.dash-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.dash-ring__value { position: relative; font-size: 20px; font-weight: 800; color: var(--text); }
.dash-bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 140px; }
.dash-bar { flex: 1; height: calc(var(--bar-pct) * 1%); background: linear-gradient(180deg, var(--brand-blue), var(--brand-blue-dark)); border-radius: 6px 6px 0 0; position: relative; min-height: 4px; display: flex; align-items: flex-end; justify-content: center; }
.dash-bar span { position: absolute; bottom: -22px; font-size: 11px; color: var(--text-faint); font-weight: 600; }
.dash-bar-chart--blue .dash-bar { background: linear-gradient(180deg, var(--brand-blue), var(--brand-blue-dark)); }
.dash-bar-chart--red .dash-bar { background: linear-gradient(180deg, #F0908A, var(--accent-red)); }

/* AI Coach */
.dash-ai-shell { display: grid; grid-template-columns: 1fr 220px; gap: 18px; }
.dash-ai-main { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.dash-ai-messages { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.dash-ai-msg { max-width: 80%; padding: 12px 15px; border-radius: var(--radius-lg); font-size: 13.5px; line-height: 1.55; }
.dash-ai-msg--bot { background: var(--bg); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.dash-ai-msg--user { background: var(--brand-blue-dark); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.dash-ai-suggested { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.dash-ai-suggested span { font-size: 12px; color: var(--text-faint); font-weight: 600; }
.dash-ai-chip { border: 1.5px solid var(--border); background: #fff; border-radius: var(--radius-pill); padding: 7px 13px; font-size: 12px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.dash-ai-chip:hover { border-color: #7C3AED; color: #7C3AED; }
.dash-ai-input-row { display: flex; gap: 10px; }
.dash-ai-input-row input { flex: 1; border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 11px 14px; font-size: 13.5px; font-family: inherit; }
.dash-ai-history { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.dash-ai-history h4 { font-size: 12px; font-weight: 800; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 12px; }
.dash-ai-history__item { font-size: 12.5px; color: var(--text-muted); padding: 9px 0; border-bottom: 1px solid var(--bg); cursor: pointer; }
.dash-ai-history__item:last-child { border-bottom: none; }
.dash-ai-history__item.active, .dash-ai-history__item:hover { color: var(--brand-blue-dark); font-weight: 700; }

/* Settings */
.dash-toggle-list { display: flex; flex-direction: column; gap: 4px; }
.dash-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--bg); font-size: 13.5px; color: var(--text); }
.dash-toggle-row:last-child { border-bottom: none; }
.dash-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.dash-switch input { opacity: 0; width: 0; height: 0; }
.dash-switch__track { position: absolute; inset: 0; background: var(--border); border-radius: var(--radius-pill); transition: var(--transition); cursor: pointer; }
.dash-switch__track::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: var(--transition); box-shadow: var(--shadow-sm); }
.dash-switch input:checked + .dash-switch__track { background: var(--accent-green); }
.dash-switch input:checked + .dash-switch__track::before { transform: translateX(18px); }
.dash-sub-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: linear-gradient(120deg, #FFF8E6, #FFFDF6); border: 1.5px solid #F0CE7A; border-radius: var(--radius-lg); padding: 18px 20px; }
.dash-sub-card__plan { font-size: 15px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; }
.dash-sub-card__meta { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 900px) {
  .dash-chart-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-chart-card--wide { grid-column: span 2; }
  .dash-ai-shell { grid-template-columns: 1fr; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .explore__layout { grid-template-columns: 1fr; }
  .filters-sidebar {
    position: fixed; top: 0; right: 0; height: 100%; width: 320px; max-width: 88vw;
    border-radius: 0; z-index: 501; overflow-y: auto;
    transform: translateX(100%); transition: transform var(--transition-slow);
    display: none;
  }
  .filters-sidebar.open { display: block; transform: translateX(0); }
  .select-pill--filter-toggle { display: flex; }
  .hero h1 { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .container { padding: 0 18px; }
  .navbar { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 10px; }
  .navtabs { order: 3; flex-basis: 100%; justify-content: center; flex-wrap: wrap; }
  .navtab { padding: 9px 16px; font-size: 14px; }
  .navtab-create { padding: 9px 18px; font-size: 14px; }
  .lang-switch { display: none; }
  .navbar__actions { flex-wrap: wrap; justify-content: center; }
  .hero { padding: 40px 0 0; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .search-panel { flex-direction: column; }
  .search-shell { flex-direction: column; }
  .search-panel__field { border-left: none; border-top: 1px solid var(--border); }
  .search-panel__field:first-child { border-top: none; }
  .search-panel__submit { padding: 14px; }
  .hero__stats { gap: 30px; flex-wrap: wrap; }
  .sport-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .dropdown-panel { width: 92vw; right: -10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
