/* ============================================================
   CTM Player Profile — Kinetic Arena (Mobile-first)
   Design system: dark navy + lime (#bded4d) accent
   ============================================================ */

/* Google Fonts — Lexend + Inter (enqueued by WordPress, no @import needed) */

/* ─────────────────── DESIGN TOKENS ─────────────────── */
:root {
  --ctm-bg:          #081425;
  --ctm-dim:         #040e1f;
  --ctm-surface:     #1f2a3c;
  --ctm-surface-lo:  #111c2d;
  --ctm-primary:     #bded4d;
  --ctm-primary-dk:  #a2d031;
  --ctm-secondary:   #98d59e;
  --ctm-text:        #d8e3fb;
  --ctm-muted:       rgba(216,227,251,.45);
  --ctm-red:         #e30613;
  --ctm-font-head:   'Lexend', 'Oswald', Arial, sans-serif;
  --ctm-font-body:   'Inter', Arial, sans-serif;
  --ctm-topnav-h:    64px;
  --ctm-sidebar-w:   260px;
  --ctm-bottomnav-h: 72px;
  --ctm-radius:      0.75rem;
  --ctm-radius-lg:   1.25rem;
  --ctm-radius-xl:   2rem;
}

/* ─────────────────── ERROR STATE ─────────────────── */
.ctm-profile-error {
  background: #1e0a0a;
  border: 1px solid var(--ctm-red);
  border-radius: var(--ctm-radius);
  color: var(--ctm-text);
  font-family: var(--ctm-font-head);
  margin: 40px auto;
  max-width: 560px;
  padding: 24px;
  text-align: center;
}

/* ─────────────────── FULL-SCREEN PAGE ─────────────────── */
.ctm-pf-page {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--ctm-bg);
  overflow-y: auto;
  color: var(--ctm-text);
  font-family: var(--ctm-font-body);
}

/* ─────────────────── TOP NAV ─────────────────── */
.ctm-pf-topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: var(--ctm-topnav-h);
  background: rgba(8,20,37,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(216,227,251,.06);
}

.ctm-pf-brand {
  font-family: var(--ctm-font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ctm-text);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .02em;
}

.ctm-pf-topnav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctm-pf-notif-btn {
  background: rgba(216,227,251,.08);
  border: 1px solid rgba(216,227,251,.1);
  border-radius: 50%;
  color: var(--ctm-text);
  cursor: pointer;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.ctm-pf-notif-btn:hover {
  background: rgba(189,237,77,.12);
  border-color: rgba(189,237,77,.3);
  color: var(--ctm-primary);
}

.ctm-pf-avatar-sm {
  width: 36px; height: 36px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--ctm-surface);
  border: 2px solid rgba(189,237,77,.3);
  flex-shrink: 0;
}

/* ─────────────────── BODY LAYOUT ─────────────────── */
.ctm-pf-body {
  display: flex;
  padding-top: var(--ctm-topnav-h);
  min-height: 100vh;
}

/* ─────────────────── SIDEBAR ─────────────────── */
.ctm-pf-sidebar {
  display: none;
  width: var(--ctm-sidebar-w);
  background: var(--ctm-dim);
  box-shadow: 4px 0 24px rgba(0,0,0,.4);
  flex-direction: column;
  padding: 20px 0 16px;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .ctm-pf-sidebar {
    display: flex;
    position: fixed;
    top: var(--ctm-topnav-h);
    left: 0;
    bottom: 0;
    z-index: 100;
  }
  .ctm-pf-main {
    margin-left: var(--ctm-sidebar-w);
  }
}

.ctm-pf-sidebar-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 20px;
  border-bottom: 1px solid rgba(216,227,251,.06);
  margin-bottom: 16px;
}

.ctm-pf-sidebar-avatar {
  width: 72px; height: 72px;
  border-radius: 1rem;
  background-size: cover;
  background-position: center;
  background-color: var(--ctm-surface);
  border: 2px solid rgba(189,237,77,.2);
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}

.ctm-pf-sidebar-name {
  font-family: var(--ctm-font-head);
  font-size: .92rem;
  font-weight: 700;
  color: var(--ctm-text);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 4px;
}

.ctm-pf-sidebar-cat {
  font-size: .7rem;
  color: var(--ctm-primary);
  text-align: center;
  font-family: var(--ctm-font-head);
  font-weight: 600;
  letter-spacing: .04em;
}

/* JOIN TOURNAMENT BUTTON */
.ctm-pf-join-btn {
  background: linear-gradient(135deg, var(--ctm-primary), var(--ctm-primary-dk));
  color: #081425;
  font-family: var(--ctm-font-head);
  font-weight: 700;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  border: none;
  border-radius: var(--ctm-radius);
  padding: 12px 16px;
  width: 100%;
  cursor: pointer;
  transform: translateY(0);
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 8px 20px rgba(189,237,77,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ctm-pf-join-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(189,237,77,.3); }
.ctm-pf-join-btn:active { transform: scale(.98); }

/* NAV ITEMS */
.ctm-pf-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.ctm-pf-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  color: var(--ctm-muted);
  font-family: var(--ctm-font-head);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all .2s;
}
.ctm-pf-nav-item:hover {
  background: rgba(31,42,60,.6);
  color: var(--ctm-text);
  transform: translateX(2px);
}
.ctm-pf-nav-item.active {
  background: var(--ctm-surface);
  color: var(--ctm-primary);
  border-left-color: var(--ctm-primary);
  border-radius: 0 var(--ctm-radius) var(--ctm-radius) 0;
}
.ctm-pf-nav-item .material-symbols-outlined {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* SIDEBAR LOGOUT */
.ctm-pf-sidebar-logout {
  padding: 16px 16px 4px;
  border-top: 1px solid rgba(216,227,251,.06);
  margin-top: auto;
}

.ctm-pf-logout-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--ctm-muted);
  font-family: var(--ctm-font-head);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  border-radius: var(--ctm-radius);
  transition: all .2s;
}
.ctm-pf-logout-link:hover { color: var(--ctm-red); background: rgba(227,6,19,.08); }
.ctm-pf-logout-link .material-symbols-outlined { font-size: 1rem; }

/* ─────────────────── MAIN CONTENT ─────────────────── */
.ctm-pf-main {
  flex: 1;
  min-height: calc(100vh - var(--ctm-topnav-h));
}

/* ─────────────────── SECTIONS ─────────────────── */
.ctm-pf-section {
  display: none;
  padding: 24px 20px calc(var(--ctm-bottomnav-h) + 24px);
  animation: ctmFadeIn .2s ease;
}

.ctm-pf-section.active { display: block; }

@keyframes ctmFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  .ctm-pf-section {
    padding: 32px 32px 40px;
  }
}

.ctm-pf-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(216,227,251,.06);
}

.ctm-pf-section-header h2 {
  font-family: var(--ctm-font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ctm-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ctm-pf-section-header h2 .material-symbols-outlined {
  color: var(--ctm-primary);
  font-size: 1.3rem;
}

.ctm-pf-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(216,227,251,.06);
  border: 1px solid rgba(216,227,251,.1);
  color: var(--ctm-muted);
  border-radius: var(--ctm-radius);
  padding: 8px 14px;
  font-family: var(--ctm-font-head);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.ctm-pf-back-btn:hover { color: var(--ctm-text); border-color: rgba(216,227,251,.2); }

/* ─────────────────── HERO (Dashboard) ─────────────────── */
.ctm-pf-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--ctm-radius-xl);
  margin-bottom: 24px;
  min-height: 180px;
}

.ctm-pf-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1e3d 0%, #0d2a4a 40%, #081425 100%);
}
.ctm-pf-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(189,237,77,.08) 0%, transparent 60%);
  animation: heroPulse 4s ease-in-out infinite alternate;
}
.ctm-pf-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(8,20,37,.6) 0%, transparent 70%);
}

@keyframes heroPulse {
  from { opacity: .6; }
  to   { opacity: 1; }
}

.ctm-pf-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  flex-wrap: wrap;
}

.ctm-pf-hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 90px; height: 90px;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 2px solid rgba(189,237,77,.25);
  box-shadow: 0 16px 32px rgba(0,0,0,.4);
}

@media (min-width: 480px) {
  .ctm-pf-hero-photo-wrap { width: 110px; height: 110px; }
}

.ctm-pf-hero-photo {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--ctm-surface);
}

.ctm-pf-hero-cam {
  position: absolute;
  inset: 0;
  background: rgba(8,20,37,.65);
  border: none;
  color: var(--ctm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
}
.ctm-pf-hero-photo-wrap:hover .ctm-pf-hero-cam { opacity: 1; }
.ctm-pf-hero-cam .material-symbols-outlined { font-size: 1.5rem; }

.ctm-pf-hero-info { flex: 1; min-width: 160px; }

.ctm-pf-hero-name {
  font-family: var(--ctm-font-head);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.1;
  letter-spacing: -.01em;
}

@media (min-width: 480px) {
  .ctm-pf-hero-name { font-size: 2rem; }
}

.ctm-pf-hero-cat {
  font-family: var(--ctm-font-head);
  font-size: .72rem;
  font-weight: 600;
  color: var(--ctm-primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 16px;
}

.ctm-pf-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.ctm-pf-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 16px 0 0;
}
.ctm-pf-stat:first-child { padding-left: 0; }

.ctm-pf-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(216,227,251,.15);
  margin: 0 16px 0 0;
}

.ctm-pf-stat-n {
  font-family: var(--ctm-font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.ctm-pf-stat-l {
  font-family: var(--ctm-font-head);
  font-size: .5rem;
  font-weight: 700;
  color: var(--ctm-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 3px;
}

/* ─────────────────── BENTO GRID ─────────────────── */
.ctm-pf-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 900px) {
  .ctm-pf-bento {
    grid-template-columns: 1fr 2fr;
  }
}

.ctm-pf-bento-left,
.ctm-pf-bento-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─────────────────── CARDS ─────────────────── */
.ctm-pf-card {
  background: var(--ctm-surface-lo);
  border-radius: var(--ctm-radius-xl);
  padding: 20px;
  border: 1px solid rgba(216,227,251,.04);
  position: relative;
  overflow: hidden;
}

@media (min-width: 480px) {
  .ctm-pf-card { padding: 24px; }
}

.ctm-pf-card-action {
  background: var(--ctm-surface);
}

.ctm-pf-card-glow {
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(189,237,77,.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ctm-pf-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px;
}

.ctm-pf-card-title {
  font-family: var(--ctm-font-head);
  font-size: .9rem;
  font-weight: 700;
  color: var(--ctm-text);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctm-pf-card-title .material-symbols-outlined {
  color: var(--ctm-primary);
  font-size: 1.1rem;
}

.ctm-pf-card-desc {
  font-size: .82rem;
  color: var(--ctm-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.ctm-pf-card-cta {
  width: 100%;
  background: var(--ctm-dim);
  color: var(--ctm-text);
  border: 1px solid rgba(216,227,251,.12);
  border-radius: var(--ctm-radius);
  padding: 14px;
  font-family: var(--ctm-font-head);
  font-weight: 700;
  font-size: .82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all .2s;
}
.ctm-pf-card-cta:hover {
  border-color: rgba(189,237,77,.3);
  color: var(--ctm-primary);
}

.ctm-pf-see-all {
  font-family: var(--ctm-font-head);
  font-size: .62rem;
  font-weight: 700;
  color: var(--ctm-primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  white-space: nowrap;
  opacity: .8;
  transition: opacity .2s;
}
.ctm-pf-see-all:hover { opacity: 1; }

.ctm-pf-sub {
  font-size: .72rem;
  color: var(--ctm-muted);
  margin: 2px 0 0;
}

/* ─────────────────── TOURNAMENTS LIST (dashboard) ─────────────────── */
.ctm-pf-tourn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ctm-pf-tourn-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(216,227,251,.03);
  border-radius: var(--ctm-radius);
  border: 1px solid rgba(216,227,251,.04);
  transition: background .2s;
}
.ctm-pf-tourn-row:hover { background: rgba(216,227,251,.06); }

.ctm-pf-tourn-icon { font-size: 1.2rem; flex-shrink: 0; }

.ctm-pf-tourn-info { flex: 1; min-width: 0; }
.ctm-pf-tourn-name {
  font-family: var(--ctm-font-head);
  font-size: .82rem;
  font-weight: 700;
  color: var(--ctm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctm-pf-tourn-club { font-size: .7rem; color: var(--ctm-muted); margin-top: 2px; }

.ctm-pf-tourn-status {
  font-family: var(--ctm-font-head);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─────────────────── MATCH CARDS ─────────────────── */
.ctm-pf-match-card {
  background: var(--ctm-surface);
  border-radius: 1.25rem;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  transition: background .2s;
  margin-bottom: 10px;
  border: 1px solid rgba(216,227,251,.04);
}
.ctm-pf-match-card:hover { background: #253347; }
.ctm-pf-match-card:last-child { margin-bottom: 0; }

.ctm-pf-mc-team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.ctm-pf-mc-team-right {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.ctm-pf-mc-avatar {
  width: 36px; height: 36px;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--ctm-surface-lo), var(--ctm-surface));
  border: 1px solid rgba(216,227,251,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ctm-font-head);
  font-size: .8rem;
  font-weight: 700;
  color: var(--ctm-muted);
  flex-shrink: 0;
}

.ctm-pf-mc-name {
  font-family: var(--ctm-font-head);
  font-size: .78rem;
  font-weight: 700;
  color: var(--ctm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ctm-pf-mc-sub {
  font-size: .65rem;
  color: var(--ctm-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ctm-pf-mc-score {
  font-family: var(--ctm-font-head);
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ctm-pf-mc-pts-win  { color: var(--ctm-primary); }
.ctm-pf-mc-pts-loss { color: rgba(216,227,251,.3); }
.ctm-pf-mc-sep      { color: rgba(216,227,251,.2); font-size: .9rem; }

.ctm-pf-mc-badge {
  font-family: var(--ctm-font-head);
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ctm-pf-mc-badge-win  { background: rgba(152,213,158,.15); color: #98d59e; border: 1px solid rgba(152,213,158,.25); }
.ctm-pf-mc-badge-loss { background: rgba(227,6,19,.1); color: #ff6b6b; border: 1px solid rgba(227,6,19,.2); }

/* ─────────────────── CLUBS MINI GRID (dashboard) ─────────────────── */
.ctm-pf-clubs-mini-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ctm-pf-club-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(216,227,251,.03);
  border-radius: var(--ctm-radius);
  border: 1px solid rgba(216,227,251,.04);
  transition: background .2s;
}
.ctm-pf-club-mini:hover { background: rgba(216,227,251,.06); }

.ctm-pf-club-mini-logo {
  width: 40px; height: 40px;
  border-radius: 0.6rem;
  background: var(--ctm-surface);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.ctm-pf-club-mini-logo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.ctm-pf-club-mini-logo .material-symbols-outlined {
  font-size: 1.2rem;
  color: var(--ctm-muted);
}

.ctm-pf-club-mini-info { flex: 1; min-width: 0; }
.ctm-pf-club-mini-name {
  font-family: var(--ctm-font-head);
  font-size: .82rem;
  font-weight: 700;
  color: var(--ctm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctm-pf-club-mini-city {
  font-size: .68rem;
  color: var(--ctm-muted);
  margin-top: 2px;
}

.ctm-pf-club-mini-pts {
  font-family: var(--ctm-font-head);
  font-size: .68rem;
  font-weight: 700;
  color: var(--ctm-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─────────────────── EMPTY STATES (mini) ─────────────────── */
.ctm-pf-empty-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  color: var(--ctm-muted);
  text-align: center;
}
.ctm-pf-empty-mini .material-symbols-outlined {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: .5;
}
.ctm-pf-empty-mini p {
  font-size: .82rem;
  margin: 0;
}

/* ─────────────────── BOTTOM NAV (mobile) ─────────────────── */
.ctm-pf-bottomnav {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  height: var(--ctm-bottomnav-h);
  background: rgba(8,20,37,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(216,227,251,.06);
  border-radius: 20px 20px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 768px) {
  .ctm-pf-bottomnav { display: none; }
}

.ctm-pf-bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 12px;
  color: rgba(216,227,251,.4);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--ctm-font-head);
  font-size: .55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: all .15s;
  border-radius: var(--ctm-radius);
  min-width: 56px;
}
.ctm-pf-bn-item .material-symbols-outlined { font-size: 1.3rem; }

.ctm-pf-bn-item.active,
.ctm-pf-bn-item:hover {
  color: var(--ctm-primary);
}

.ctm-pf-bn-item.ctm-pf-bn-active-pill {
  background: linear-gradient(135deg, var(--ctm-primary), var(--ctm-primary-dk));
  color: #081425;
  border-radius: var(--ctm-radius);
  padding: 10px 12px;
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(189,237,77,.25);
}

/* Logout en bottom nav (mobile only) */
a.ctm-pf-bn-logout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  padding: 8px 6px;
  color: rgba(255,255,255,.35);
  font-size: .6rem;
  font-family: var(--ctm-font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  text-decoration: none;
  flex: 1;
  transition: color .2s;
}
a.ctm-pf-bn-logout:hover { color: var(--ctm-red); }

/* ─────────────────── MODAL (Notificaciones) ─────────────────── */
.ctm-modal {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ctm-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4,14,31,.8);
  backdrop-filter: blur(4px);
}

.ctm-modal-content {
  position: relative;
  z-index: 1;
  background: var(--ctm-surface);
  border: 1px solid rgba(216,227,251,.08);
  border-radius: var(--ctm-radius-xl);
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
}

.ctm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(216,227,251,.06);
}

.ctm-modal-header h3 {
  font-family: var(--ctm-font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ctm-text);
  margin: 0;
}

.ctm-modal-close {
  background: rgba(216,227,251,.06);
  border: none;
  color: var(--ctm-muted);
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.ctm-modal-close:hover { background: rgba(227,6,19,.1); color: var(--ctm-red); }

/* ─────────────────── PAGINATION (matches) ─────────────────── */
.ctm-pf-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.ctm-pf-page-btn {
  background: var(--ctm-surface-lo);
  border: 1px solid rgba(216,227,251,.08);
  color: var(--ctm-muted);
  border-radius: var(--ctm-radius);
  padding: 8px 14px;
  font-family: var(--ctm-font-head);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.ctm-pf-page-btn:hover,
.ctm-pf-page-btn.active {
  background: var(--ctm-primary);
  border-color: var(--ctm-primary);
  color: #081425;
}
.ctm-pf-page-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.ctm-pf-page-info {
  font-family: var(--ctm-font-head);
  font-size: .72rem;
  color: var(--ctm-muted);
  padding: 0 8px;
}

/* ─────────────────── MATCHES TABLE (history section) ─────────────────── */
.ctm-pf-matches-table-wrap {
  overflow-x: auto;
  border-radius: var(--ctm-radius-lg);
  border: 1px solid rgba(216,227,251,.06);
}

.ctm-pf-matches-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ctm-font-body);
  font-size: .85rem;
}

.ctm-pf-matches-table thead {
  background: var(--ctm-surface-lo);
}

.ctm-pf-matches-table th {
  color: var(--ctm-muted);
  border-bottom: 1px solid rgba(189,237,77,.15);
  font-size: .65rem;
  font-family: var(--ctm-font-head);
  letter-spacing: .1em;
  padding: 12px 16px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.ctm-pf-matches-table td {
  border-bottom: 1px solid rgba(216,227,251,.04);
  color: var(--ctm-text);
  padding: 12px 16px;
  vertical-align: middle;
}

.ctm-pf-matches-table tbody tr:hover td {
  background: rgba(216,227,251,.02);
}

/* ─────────────────── LOADING ─────────────────── */
.ctm-loading {
  color: var(--ctm-muted);
  font-family: var(--ctm-font-head);
  font-size: .85rem;
  text-align: center;
  letter-spacing: .04em;
}

/* ─────────────────── LEGACY FORM STYLES (preserved) ─────────────────── */
.ctm-form-section-title {
  border-bottom: 1px solid rgba(216,227,251,.08);
  color: var(--ctm-text);
  font-family: var(--ctm-font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 28px 0 18px;
  padding-bottom: 8px;
}
.ctm-form-section-title:first-child { margin-top: 0; }

.ctm-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

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

@media (max-width: 600px) {
  .ctm-form-row { grid-template-columns: 1fr; }
}

.ctm-form-group label {
  color: var(--ctm-text) !important;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: var(--ctm-font-head);
}

.ctm-req { color: var(--ctm-primary); }

/* inputs */
.ctm-pf-section input[type="text"],
.ctm-pf-section input[type="email"],
.ctm-pf-section input[type="tel"],
.ctm-pf-section input[type="date"],
.ctm-pf-section input[type="url"],
.ctm-pf-section input[type="password"],
.ctm-pf-section input[type="number"],
.ctm-pf-section select,
.ctm-pf-section textarea,
.ctm-input,
.ctm-select,
.ctm-profile-input {
  background-color: var(--ctm-dim) !important;
  border: 1px solid rgba(216,227,251,.12) !important;
  border-radius: var(--ctm-radius) !important;
  color: var(--ctm-text) !important;
  -webkit-text-fill-color: var(--ctm-text) !important;
  font-family: var(--ctm-font-body) !important;
  font-size: .92rem !important;
  padding: 10px 14px !important;
  width: 100% !important;
  transition: border-color .2s, box-shadow .2s !important;
}

.ctm-pf-section input:focus,
.ctm-pf-section select:focus,
.ctm-pf-section textarea:focus {
  border-color: rgba(189,237,77,.4) !important;
  box-shadow: 0 0 0 3px rgba(189,237,77,.1) !important;
  outline: none !important;
}

.ctm-pf-section input::placeholder { color: var(--ctm-muted) !important; }

.ctm-pf-section input:-webkit-autofill,
.ctm-pf-section input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ctm-text) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--ctm-dim) inset !important;
}

.ctm-pf-section select option {
  background: var(--ctm-surface) !important;
  color: var(--ctm-text) !important;
}

/* readonly field */
.ctm-readonly-field {
  background: rgba(216,227,251,.04);
  border: 1px solid rgba(216,227,251,.06);
  border-radius: var(--ctm-radius);
  color: var(--ctm-text);
  font-size: .92rem;
  padding: 10px 14px;
}

/* password wrap */
.ctm-password-wrap { position: relative; }
.ctm-password-wrap .ctm-input { padding-right: 44px !important; }
.ctm-toggle-pw {
  background: none;
  border: none;
  color: var(--ctm-muted);
  cursor: pointer;
  font-size: 1rem;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.ctm-toggle-pw:hover { color: var(--ctm-text); }

/* error */
.ctm-field-error { color: #f87171; font-size: .78rem; margin-top: 2px; }

/* save message */
.ctm-save-msg {
  border-radius: var(--ctm-radius);
  font-size: .88rem;
  margin-bottom: 16px;
  padding: 12px 16px;
}
.ctm-save-msg.success { background: rgba(152,213,158,.12); border: 1px solid rgba(152,213,158,.3); color: #98d59e; }
.ctm-save-msg.error   { background: rgba(227,6,19,.1);    border: 1px solid rgba(227,6,19,.3);    color: #ff6b6b; }

/* form actions */
.ctm-form-actions { margin-top: 28px; }

.ctm-btn-submit {
  background: linear-gradient(135deg, var(--ctm-primary), var(--ctm-primary-dk));
  border: none;
  border-radius: var(--ctm-radius);
  color: #081425;
  cursor: pointer;
  font-family: var(--ctm-font-head);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  min-width: 200px;
  padding: 13px 32px;
  transition: box-shadow .2s, transform .2s;
}
.ctm-btn-submit:hover {
  box-shadow: 0 8px 24px rgba(189,237,77,.3);
  transform: translateY(-1px);
}
.ctm-btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ─────────────────── CLUBS SECTION (legacy styles) ─────────────────── */
.ctm-clubs-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.ctm-club-card-profile {
  background: var(--ctm-surface-lo);
  border: 1px solid rgba(216,227,251,.06);
  border-radius: var(--ctm-radius-lg);
  display: flex;
  gap: 14px;
  overflow: hidden;
  padding: 18px;
  transition: border-color .2s, box-shadow .2s;
}
.ctm-club-card-profile:hover {
  border-color: rgba(189,237,77,.2);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.ctm-club-card-logo img {
  border-radius: 50%;
  border: 2px solid rgba(216,227,251,.1);
  height: 50px;
  object-fit: cover;
  width: 50px;
}

.ctm-club-card-body h4 {
  font-family: var(--ctm-font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ctm-text);
}

.ctm-club-location { color: var(--ctm-muted); font-size: .78rem; display: block; margin-bottom: 10px; }

.ctm-club-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.ctm-club-stats span { color: var(--ctm-muted); font-size: .75rem; }

.ctm-status-badge { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; font-family: var(--ctm-font-head); }
.ctm-status-active { color: #4ade80; }
.ctm-status-pending { color: #fbbf24; }
.ctm-status-rejected { color: #f87171; }

/* available club rows */
.ctm-available-club-row {
  padding: 8px;
  border-radius: var(--ctm-radius);
  transition: background .15s;
}
.ctm-available-club-row:hover { background: rgba(216,227,251,.04); }

/* profile buttons (legacy) */
.ctm-profile-btn {
  border-radius: var(--ctm-radius);
  cursor: pointer;
  font-family: var(--ctm-font-head);
  font-size: .82rem;
  font-weight: 700;
  padding: 9px 18px;
  border: none;
  transition: all .2s;
}
.ctm-profile-btn-primary { background: var(--ctm-primary); color: #081425; }
.ctm-profile-btn-primary:hover { background: var(--ctm-primary-dk); }
.ctm-profile-btn-secondary { background: var(--ctm-surface); color: var(--ctm-text); border: 1px solid rgba(216,227,251,.12); }
.ctm-profile-btn-secondary:hover { border-color: rgba(216,227,251,.25); }
.ctm-profile-btn-danger { background: rgba(227,6,19,.1); color: #ff6b6b; border: 1px solid rgba(227,6,19,.2); }
.ctm-profile-btn-danger:hover { background: rgba(227,6,19,.2); }

/* ─────────────────── EMPTY STATE ─────────────────── */
.ctm-empty-state {
  color: var(--ctm-muted);
  padding: 48px 24px;
  text-align: center;
}
.ctm-empty-state span { display: block; font-size: 3rem; margin-bottom: 12px; }
.ctm-empty-state p { font-size: .92rem; }

/* ─────────────────── GENERAL BUTTONS ─────────────────── */
.ctm-btn { border-radius: var(--ctm-radius); cursor: pointer; font-family: var(--ctm-font-head); font-weight: 700; padding: 10px 20px; border: none; font-size: .85rem; transition: all .2s; }
.ctm-btn-primary { background: var(--ctm-primary); color: #081425; }
.ctm-btn-primary:hover { background: var(--ctm-primary-dk); transform: translateY(-1px); }
.ctm-btn-sm { font-size: .78rem; padding: 7px 14px; }
