/* RMF Türkiye Academy Manager — angular editorial sport style */
:root {
  --navy: #0b1f3a;
  --navy-deep: #071429;
  --navy-mid: #12294a;
  --gold: #c9a44c;
  --gold-bright: #e3bd5e;
  --white: #f7f8fa;
  --paper: #eef0f3;
  --ink: #101725;
  --line: #d3d7de;
  --line-dark: #24395c;
  --red: #b32424;
  --green: #1f7a3d;
  --amber: #b07d10;
  --muted: #5c6675;
  --mono: "Consolas", "Roboto Mono", monospace;
  --cond: "Arial Narrow", "Oswald", "Impact", sans-serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
}

/* ------------------------------------------------ typography */
h1, h2, h3, .display {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 700;
}
.kicker {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.kicker.dark { color: var(--muted); }

a { color: inherit; }
button { font-family: inherit; }

/* ------------------------------------------------ login */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-left {
  background: var(--navy-deep);
  color: var(--white);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-right: 4px solid var(--gold);
}
.login-left::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 340px; height: 340px;
  border: 1px solid var(--line-dark);
  transform: rotate(45deg);
}
.login-left h1 { font-size: 52px; line-height: 0.95; margin-top: 16px; }
.login-left .sub { color: #8fa1bd; margin-top: 14px; max-width: 380px; line-height: 1.6; }
.login-cities { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; }
.login-right { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-card { width: 100%; max-width: 360px; }
.login-card h2 { font-size: 26px; margin: 6px 0 24px; }

/* ------------------------------------------------ layout */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--navy-deep);
  color: var(--white);
  display: flex;
  flex-direction: column;
  border-right: 4px solid var(--gold);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side-brand { padding: 20px 18px 16px; border-bottom: 1px solid var(--line-dark); }
.side-brand .t { font-family: var(--cond); font-size: 19px; text-transform: uppercase; line-height: 1.05; margin-top: 6px; }
.side-nav { flex: 1; padding: 14px 0; }
.side-nav .nav-label { padding: 14px 18px 6px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: #5f7396; }
.side-nav a {
  display: block;
  padding: 8px 18px;
  color: #c3cede;
  text-decoration: none;
  font-size: 13px;
  border-left: 3px solid transparent;
}
.side-nav a:hover { background: var(--navy-mid); color: var(--white); }
.side-nav a.active { border-left-color: var(--gold); color: var(--white); background: var(--navy-mid); font-weight: 600; }
.side-user { padding: 14px 18px; border-top: 1px solid var(--line-dark); font-size: 12px; }
.side-user .name { font-weight: 700; }
.side-user .role { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.side-user button { margin-top: 8px; }

.main { padding: 28px 34px 60px; max-width: 1280px; min-width: 0; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 3px solid var(--ink); padding-bottom: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 34px; line-height: 1; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------ buttons & forms */
.btn {
  appearance: none;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  padding: 8px 16px;
  cursor: pointer;
}
.btn:hover { background: var(--navy-mid); border-color: var(--navy-mid); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn.gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }
.btn.danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn.danger:hover { background: var(--red); color: var(--white); }
.btn.sm { padding: 4px 10px; font-size: 11px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

label.f { display: block; margin-bottom: 12px; }
label.f > span {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--ink);
  background: #fff;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13.5px;
  border-radius: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: -1px; }
input[type="checkbox"] { width: auto; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 10px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }

/* ------------------------------------------------ cards / panels */
.panel { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 18px; margin-bottom: 18px; }
.panel.gold-top { border-top-color: var(--gold); }
.panel h3 { font-size: 17px; margin-bottom: 12px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat {
  background: var(--navy-deep);
  color: var(--white);
  padding: 14px 16px;
  border-bottom: 3px solid var(--gold);
}
.stat .n { font-family: var(--cond); font-size: 34px; line-height: 1; }
.stat .l { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: #8fa1bd; margin-top: 4px; }
.stat.light { background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom: 3px solid var(--navy); }
.stat.light .l { color: var(--muted); }
.stat-link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.stat-link:hover { border-bottom-color: var(--gold); transform: translateY(-1px); }

/* ------------------------------------------------ professional app dashboard
   A role-aware home screen inspired by a native mobile app: brand hero,
   large touch targets, a single hierarchy and no decorative dead ends. */
.dashboard-home { max-width: 1180px; margin: 0 auto; }
.dashboard-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 220px;
  padding: 30px 34px;
  margin-bottom: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(201,164,76,.28), transparent 25%),
    linear-gradient(135deg, #071429 0%, #0b1f3a 62%, #12294a 100%);
  border-radius: 26px;
  box-shadow: 0 18px 42px rgba(7,20,41,.18);
}
.dashboard-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 300px;
  right: -110px;
  bottom: -190px;
  border: 1px solid rgba(201,164,76,.32);
  border-radius: 50%;
}
.dashboard-hero-brand {
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
}
.dashboard-hero-brand img { display: block; width: 100%; height: auto; }
.dashboard-hero-copy { min-width: 0; }
.dashboard-eyebrow {
  margin-bottom: 8px;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.dashboard-hero h1 { font-size: clamp(34px, 4vw, 58px); line-height: .96; }
.dashboard-hero p { max-width: 540px; margin-top: 10px; color: #b8c4d6; line-height: 1.55; }
.dashboard-hero-stats { display: grid; gap: 8px; min-width: 158px; }
.dashboard-hero-stats a {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
}
.dashboard-hero-stats a:hover { background: rgba(255,255,255,.14); border-color: rgba(201,164,76,.55); }
.dashboard-hero-stats b { font-family: var(--cond); font-size: 26px; color: var(--gold-bright); line-height: 1; }
.dashboard-hero-stats span { font-size: 11px; color: #cbd5e3; line-height: 1.2; }

.dashboard-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 2px 13px;
}
.dashboard-section-head h2 { margin-top: 3px; font-size: 21px; }
.app-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 13px;
  margin-bottom: 24px;
}
.app-module-card {
  appearance: none;
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 138px;
  box-sizing: border-box;
  padding: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  font: inherit;
  background: #fff;
  border: 1px solid #dde2e9;
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(11,31,58,.06);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(201,164,76,.22);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.app-module-card > * { pointer-events: none; }
.app-module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201,164,76,.8);
  box-shadow: 0 12px 28px rgba(11,31,58,.12);
}
.app-module-card:focus-visible { outline: 3px solid rgba(201,164,76,.55); outline-offset: 2px; }
.app-module-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  flex: none;
  color: var(--gold);
  background: var(--navy-deep);
  border-radius: 13px;
}
.app-icon { width: 23px; height: 23px; flex: none; }
.app-module-copy { display: block; min-width: 0; padding-right: 22px; }
.app-module-copy strong { display: block; font-size: 15px; line-height: 1.25; }
.app-module-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.app-module-value {
  position: absolute;
  top: 18px;
  right: 18px;
  max-width: 90px;
  overflow: hidden;
  color: var(--navy);
  font-family: var(--cond);
  font-size: 22px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-module-arrow { position: absolute; right: 17px; bottom: 15px; color: #9aa5b4; font-size: 21px; line-height: 1; }
.app-module-card.accent-gold .app-module-icon { color: var(--navy-deep); background: var(--gold); }
.app-module-card.is-locked { background: #fbfaf6; }
.app-module-card.is-locked .app-module-icon { color: #fff; background: #8a7440; }
.app-module-card.is-active { color: #fff; background: var(--navy-deep); border-color: var(--navy-deep); box-shadow: 0 10px 26px rgba(7,20,41,.18); }
.app-module-card.is-active .app-module-icon { color: var(--navy-deep); background: var(--gold); }
.app-module-card.is-active .app-module-copy small,
.app-module-card.is-active .app-module-arrow { color: #aebbd0; }
.app-module-card.is-active .app-module-value { color: var(--gold-bright); }

.dashboard-focus-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 16px; align-items: start; margin-top: 30px; }
.dashboard-panel { margin: 0; border: 1px solid #dde2e9; border-top: 0; border-radius: 18px; box-shadow: 0 5px 18px rgba(11,31,58,.05); }
.dashboard-panel .line-row { color: inherit; text-decoration: none; }
.dashboard-panel .line-row small { display: block; margin-top: 3px; color: var(--muted); }
.dashboard-disclosure {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dde2e9;
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(11,31,58,.05);
}
.dashboard-disclosure > summary {
  list-style: none;
  display: grid;
  grid-template-columns: 38px 1fr 20px;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  cursor: pointer;
}
.dashboard-disclosure > summary::-webkit-details-marker { display: none; }
.dashboard-disclosure > summary .app-icon { width: 24px; height: 24px; color: var(--gold); }
.dashboard-disclosure > summary b { display: block; font-size: 14px; }
.dashboard-disclosure > summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.dashboard-disclosure > summary i { color: var(--navy); font-size: 22px; font-style: normal; transition: transform .16s ease; }
.dashboard-disclosure[open] > summary i { transform: rotate(45deg); }
.dashboard-disclosure-body { padding: 0 14px 14px; }
.dashboard-disclosure-body > .panel { margin: 8px 0 0; box-shadow: none; }
.sede-alerts { margin: 2px 0 24px; }
.sede-module-grid { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }

.mobile-quick-nav { display: none; }

/* avisos dentro de la aplicacion: campana, panel y emergentes */
#notif-dock { position: fixed; top: 16px; right: 18px; z-index: 900; }
.notif-bell {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  border: 1px solid #24395c;
  border-bottom: 3px solid var(--gold);
  width: 42px; height: 42px;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}
.notif-bell:hover { background: #12294a; }
.notif-bell .cnt {
  display: none;
  position: absolute; top: -7px; right: -7px;
  background: var(--red, #b3261e); color: #fff;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0;
  padding: 2px 5px; min-width: 18px;
}
.notif-panel {
  position: absolute; top: 50px; right: 0;
  width: 340px; max-height: 60vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold);
  box-shadow: 0 10px 30px rgba(11, 31, 58, 0.18);
}
.notif-panel .hd {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); padding: 12px 14px 8px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.notif-panel .hd-acts { display: flex; gap: 10px; align-items: center; }
.notif-panel .lnk {
  background: none; border: 0; cursor: pointer; padding: 0;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy); border-bottom: 1px solid var(--gold);
}
.notif-panel .lnk:hover { color: var(--ink); }
.notif-panel .pref-hint { padding: 10px 14px; font-size: 12px; color: var(--muted); }
.notif-panel .pref-row {
  display: grid; grid-template-columns: 22px 1fr 20px; align-items: center; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px;
}
.notif-panel .pref-row:hover { background: var(--paper); }
.notif-panel .pref-row .ic { font-size: 14px; }
.notif-panel .row { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notif-panel .row:hover { background: var(--paper); }
/* lo que aun no has leido queda marcado, para poder decidir tu */
.notif-panel .row.unread { background: #fdfaf2; border-left: 3px solid var(--gold); padding-left: 11px; }
.notif-panel .notif-dismiss { margin-left: auto; align-self: center; flex: none; white-space: nowrap; }
.notif-panel .row.unread .tx { font-weight: 600; }
.notif-panel .ic, .notif-toast .ic { font-size: 15px; line-height: 1.3; }
.notif-panel .tx { font-size: 13px; line-height: 1.4; color: var(--ink); }
.notif-panel .mt, .notif-toast .mt { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: var(--muted); margin-top: 3px; text-transform: uppercase; }
.notif-panel .empty { padding: 20px 14px; font-size: 13px; color: var(--muted); }

.notif-toasts { position: absolute; top: 52px; right: 0; display: flex; flex-direction: column; gap: 8px; }
.notif-toast {
  display: flex; gap: 10px; width: 320px; padding: 12px 14px;
  background: var(--navy-deep); color: #fff;
  border-bottom: 3px solid var(--gold);
  cursor: pointer;
  opacity: 0; transform: translateX(18px);
  transition: opacity .25s ease, transform .25s ease;
}
.notif-toast.in { opacity: 1; transform: none; }
.notif-toast .tx { font-size: 13px; line-height: 1.4; }
.notif-toast .mt { color: #8fa1bd; }

@media (max-width: 720px) {
  #notif-dock { top: 10px; right: 10px; }
  .notif-panel, .notif-toast { width: calc(100vw - 28px); }
}

/* the three ways a family can pay the fee */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plan-card.on { border-top-color: var(--gold); background: var(--paper); }
.plan-card .k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.plan-card .big { font-family: var(--cond); font-size: 28px; line-height: 1; color: var(--ink); }
.plan-card .chosen { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); margin-top: 6px; }
.plan-card .btn { margin-top: 8px; align-self: flex-start; }

/* sede cards on dashboard */
.sede-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.sede-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--navy);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.1s;
  text-decoration: none;
  display: block;
}
.sede-card:hover { border-left-color: var(--gold); background: #fdfcf8; }
.sede-card h3 { font-size: 22px; }
.sede-card .meta { display: flex; gap: 18px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.sede-card .meta b { font-family: var(--cond); font-size: 20px; color: var(--ink); display: block; }

/* age group blocks */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.group-card {
  background: var(--navy);
  color: var(--white);
  padding: 16px;
  cursor: pointer;
  border: none;
  text-align: left;
  border-bottom: 4px solid var(--gold);
}
.group-card:hover { background: var(--navy-mid); }
.group-card .g { font-family: var(--cond); font-size: 24px; text-transform: uppercase; }
.group-card .ages { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; }
.group-card .count { margin-top: 10px; font-size: 12px; color: #b6c3d8; }
.group-card .count b { color: #fff; font-size: 16px; }

/* sede action centre */
.task-center-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.task-center-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 14px; }
.task-center-card.is-done { border-left-color: var(--green); opacity: .78; }
.task-center-top, .task-center-meta, .task-center-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.task-center-card h3 { margin: 10px 0 6px; font-size: 17px; }
.task-center-meta { margin-top: 12px; color: var(--muted); font-size: 11px; }
.task-center-actions { margin-top: 12px; justify-content:flex-start; }

.panel-head-line { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.line-row { display:flex; justify-content:space-between; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); font-size:13px; }
.line-row:last-child { border-bottom:0; }
.calendar-month { margin-bottom:22px; }
.calendar-month h2 { font-size:18px; margin:0 0 8px; border-bottom:2px solid var(--navy); padding-bottom:7px; }
.calendar-list { display:grid; gap:8px; }
.calendar-item { display:grid; grid-template-columns:130px 1fr; gap:14px; align-items:center; background:#fff; border:1px solid var(--line); border-left:4px solid var(--gold); padding:12px 14px; color:inherit; text-decoration:none; }
.calendar-item:hover { background:#fdfcf8; border-left-color:var(--navy); }
.calendar-date { display:flex; flex-direction:column; gap:3px; font-family:var(--mono); font-size:11px; }
.calendar-date span { color:var(--muted); }
.calendar-main { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.calendar-main h3 { margin:4px 0 0; font-size:16px; }
.calendar-type { display:inline-block; font-family:var(--mono); font-size:9px; letter-spacing:.08em; text-transform:uppercase; color:var(--navy); background:#edf2fa; padding:3px 6px; }
.type-trip { background:#fbf5e6; color:#7b5a10; }
.type-match, .type-tournament { background:#eaf5ed; color:#24643b; }
.session-detail-block { margin:10px 0; padding:10px 12px; background:#f8fafc; border-left:3px solid var(--gold); }
.session-detail-block b { display:block; font-family:var(--mono); font-size:10px; letter-spacing:.08em; text-transform:uppercase; margin-bottom:4px; }
.session-media-links { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.validation-warning { background:#fffafa; }
.search-bar { display:flex; gap:8px; max-width:760px; margin-bottom:16px; }
.search-bar input { flex:1; min-width:0; }
.search-results { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:10px; }
.search-result { display:flex; gap:10px; align-items:flex-start; padding:13px; background:#fff; border:1px solid var(--line); border-top:3px solid var(--navy); color:var(--ink); text-decoration:none; }
.search-result:hover { border-top-color:var(--gold); }
.search-result small { display:block; margin-top:4px; color:var(--muted); }
.calendar-conflicts { margin-bottom:14px; border-top-color:var(--red); }
.conflict-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:8px 0; border-top:1px solid var(--line); }
.calendar-item.has-conflict { border-left-color:var(--red); }
.backup-list { margin-top:10px; border-top:1px solid var(--line); }
.backup-row { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--line); font-family:var(--mono); font-size:11px; }
.ledger-table .money-positive { color:var(--green); }
.ledger-table .money-negative { color:var(--red); }
.reminder-card { color:var(--ink); text-decoration:none; }
.reminder-card:hover { border-color:var(--gold); }
.player-progress-panel { margin-top:18px; }
.progress-trend { margin-top:12px; display:grid; gap:7px; }
.trend-row { display:grid; grid-template-columns:72px 1fr 42px; align-items:center; gap:8px; font-family:var(--mono); font-size:10px; }
.trend-bar { height:9px; background:#e8edf4; overflow:hidden; }
.trend-bar i { display:block; height:100%; background:var(--gold); }

/* ------------------------------------------------ tabs */
.tabs { display: flex; gap: 0; border-bottom: 3px solid var(--ink); margin-bottom: 20px; flex-wrap: wrap; }
.tabs button {
  border: none;
  background: transparent;
  font-family: var(--cond);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 10px 16px;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--ink); border-bottom-color: var(--gold); background: #fff; }

/* ------------------------------------------------ tables */
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  text-align: left;
  background: var(--ink);
  color: var(--white);
  padding: 8px 10px;
  white-space: nowrap;
}
table.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:hover td { background: #f7f5ef; }
table.tbl tr.clickable { cursor: pointer; }
.table-link { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.table-link:hover { color: var(--gold-dark, #a67c00); }

/* badges */
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid;
  white-space: nowrap;
}
.badge.green { color: var(--green); border-color: var(--green); background: #eef7f0; }
.badge.red { color: var(--red); border-color: var(--red); background: #fbeeee; }
.badge.amber { color: var(--amber); border-color: var(--amber); background: #fbf5e6; }
.badge.navy { color: var(--navy); border-color: var(--navy); background: #eef1f6; }
.badge.gold { color: #8a6c1f; border-color: var(--gold); background: #faf5e8; }
.badge.gray { color: var(--muted); border-color: var(--line); background: var(--paper); }

/* ------------------------------------------------ modal */
.modal-back {
  position: fixed; inset: 0;
  background: rgba(7, 20, 41, 0.72);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px;
  z-index: 100;
  overflow-y: auto;
}
.modal {
  background: var(--white);
  width: 100%; max-width: 680px;
  border-top: 5px solid var(--gold);
  padding: 24px 26px;
}
.modal.wide { max-width: 860px; }
.modal h2 { font-size: 24px; margin-bottom: 4px; }
.modal .modal-sub { color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }

/* ------------------------------------------------ player profile */
.profile-head {
  background: var(--navy-deep);
  color: var(--white);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 4px solid var(--gold);
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}
.profile-head h1 { font-size: 38px; line-height: 1; }
.profile-head .tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.profile-num {
  font-family: var(--cond);
  font-size: 64px;
  color: var(--gold);
  line-height: 1;
  opacity: 0.9;
}
.field-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.field-list .fv .k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.field-list .fv .v { font-size: 15px; font-weight: 600; margin-top: 2px; }

/* attendance grid */
.att-status { display: inline-flex; gap: 4px; }
.att-status button {
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--mono);
  font-size: 10px;
  width: 30px; height: 26px;
  cursor: pointer;
  color: var(--muted);
}
.att-status button.on-present { background: var(--green); border-color: var(--green); color: #fff; }
.att-status button.on-absent { background: var(--red); border-color: var(--red); color: #fff; }
.att-status button.on-late { background: var(--amber); border-color: var(--amber); color: #fff; }
.att-status button.on-excused { background: var(--navy); border-color: var(--navy); color: #fff; }
.att-rating { width: auto; min-width: 68px; padding: 6px 8px; }

.att-pct { font-family: var(--cond); font-size: 16px; }

/* misc */
.empty { padding: 30px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); font-size: 13px; }
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; align-items: center; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; min-width: 160px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mt { margin-top: 16px; }
.crumb { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--gold); }

.toast {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--ink); color: var(--white);
  padding: 12px 18px;
  font-size: 13px;
  border-left: 4px solid var(--gold);
  z-index: 200;
  animation: slideIn 0.15s ease-out;
}
.toast.err { border-left-color: var(--red); }
@keyframes slideIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

.kit-row { display: grid; grid-template-columns: 1.4fr 0.8fr 0.6fr 0.6fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.kit-row .check { margin-bottom: 0; }

/* las tarjetas de la sede SON el menu: cada una es una seccion */
.nav-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; margin-bottom: 24px; }
.nav-card {
  appearance: none; text-align: left; cursor: pointer; font: inherit;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-bottom: 3px solid var(--line);
  padding: 14px 16px;
  transition: border-color .12s ease, background .12s ease;
}
.nav-card:hover { border-bottom-color: var(--gold); background: var(--paper); }
.nav-card.on { background: var(--navy-deep); color: var(--white); border-color: var(--navy-deep); border-bottom-color: var(--gold); }
.nav-card .n { font-family: var(--cond); font-size: 30px; line-height: 1; }
.nav-card .l { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav-card.on .l { color: #8fa1bd; }

/* cifras que no son destino: acompanan a la lista de jugadores */
.mini-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.mini {
  border: 1px solid var(--line); border-left: 3px solid var(--navy);
  padding: 8px 12px; font-size: 13px; background: #fff;
  display: flex; align-items: center; gap: 6px;
}
.mini.warn { border-left-color: var(--red, #b3261e); }
.mini b { font-family: var(--cond); font-size: 19px; }
.lnk {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  font-size: 12px; color: var(--navy); border-bottom: 1px solid var(--gold);
}
.sec-h {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin: 24px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .nav-grid { grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); gap: 8px; }
  .nav-card { padding: 11px 12px; }
  .nav-card .n { font-size: 23px; }
}

.install-steps { margin: 12px 0 14px 18px; padding: 0; font-size: 14px; line-height: 1.9; }
.install-steps li { margin-bottom: 2px; }

/* lista de cosas por hacer: una linea por asunto pendiente, nunca ceros */
.todo-list { margin-top: 12px; border-top: 1px solid var(--line); }
.todo-row {
  display: grid; grid-template-columns: 26px 46px 1fr 20px;
  align-items: center; gap: 8px;
  padding: 11px 4px; border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.todo-row:hover { background: var(--paper); }
.todo-row .ic { font-size: 15px; }
.todo-row .cnt { font-family: var(--cond); font-size: 24px; line-height: 1; color: var(--ink); }
.todo-row .lb { font-size: 14px; }
.todo-row .chev { color: var(--muted); font-size: 12px; text-align: right; }
.todo-who { padding: 4px 4px 12px 76px; display: flex; flex-wrap: wrap; gap: 6px 14px; border-bottom: 1px solid var(--line); }
.todo-who a { font-size: 13px; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
.todo-who a:hover { border-bottom-color: var(--gold); }
.todo-who span { font-size: 13px; color: var(--ink); }
.todo-clear { padding: 16px 4px; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .todo-row { grid-template-columns: 22px 40px 1fr 18px; }
  .todo-who { padding-left: 16px; }
}

/* ------------------------------------------------ movil
   En el telefono el menu no se apila encima del contenido: se guarda fuera de
   la pantalla y se abre con el boton de la barra superior. Antes, una familia
   tenia que bajar mas de una pantalla entera de menu para ver a su hijo. */
.mobile-bar { display: none; }
.nav-backdrop { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  /* sin esto la columna toma el ancho de su contenido mas ancho (el logo) y
     empuja la pagina fuera de la pantalla */
  .shell > * { min-width: 0; }

  .mobile-bar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; top: 0; left: 0; right: 0; height: 52px;
    padding: 0 66px 0 10px;           /* hueco a la derecha para la campana */
    background: var(--navy-deep); color: #fff;
    border-bottom: 3px solid var(--gold);
    z-index: 800;
  }
  .mobile-bar .ttl {
    font-family: var(--cond); font-size: 15px; text-transform: uppercase;
    letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .nav-toggle {
    background: none; border: 1px solid #44597e; color: #fff;
    width: 38px; height: 34px; font-size: 16px; line-height: 1; cursor: pointer; flex: none;
  }

  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 268px; max-width: 82vw; height: 100vh;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform .22s ease;
  }
  body.nav-open .sidebar { transform: none; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(11, 31, 58, .55);
    z-index: 999; opacity: 0; pointer-events: none; transition: opacity .22s ease;
  }
  body.nav-open .nav-backdrop { display: block; opacity: 1; pointer-events: auto; }

  .login-wrap { grid-template-columns: 1fr; }
  .login-left { min-height: 220px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .main { padding: 66px 14px 94px; }
  .page-head h1 { font-size: 25px; }
  /* las tablas anchas se desplazan dentro de su caja, nunca la pagina entera */
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .stat-row { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; }
  .stat .n { font-size: 26px; }
  .calendar-item { grid-template-columns: 1fr; gap: 7px; padding: 11px; }
  .calendar-main { display: block; }
  .calendar-main .small { margin-top: 6px; }
   .task-center-grid { grid-template-columns: 1fr; }
   .search-bar { flex-direction:column; }
   .conflict-row { align-items:flex-start; }
   .backup-row { align-items:flex-start; flex-direction:column; }
  .nav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nav-card { min-width: 0; padding: 12px 10px; }
  .nav-card .l { font-size: 9px; }
  .table-link { display: inline-block; min-height: 32px; padding: 6px 2px; }
  .stat.clickable, .stat-link { cursor: pointer; -webkit-tap-highlight-color: rgba(201,164,60,.22); }

  .dashboard-home { width: 100%; }
  .dashboard-hero {
    grid-template-columns: 118px minmax(0,1fr);
    gap: 17px;
    min-height: 0;
    padding: 20px;
    margin-bottom: 22px;
    border-radius: 20px;
  }
  .dashboard-hero-brand { padding: 9px; border-radius: 13px; }
  .dashboard-hero h1 { font-size: 34px; }
  .dashboard-hero p { font-size: 12px; }
  .dashboard-hero-stats { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0,1fr)); min-width: 0; }
  .dashboard-hero-stats a { display: block; padding: 9px; text-align: center; }
  .dashboard-hero-stats b { display: block; font-size: 23px; }
  .dashboard-hero-stats span { display: block; margin-top: 3px; font-size: 9px; }
  .app-module-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .dashboard-focus-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .mobile-quick-nav {
    position: fixed;
    z-index: 850;
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    padding: 7px 6px;
    background: rgba(7,20,41,.97);
    border: 1px solid #263a5a;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(7,20,41,.3);
    backdrop-filter: blur(14px);
  }
  .mobile-quick-nav a,
  .mobile-quick-nav button {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 46px;
    padding: 3px;
    color: #c5d0e0;
    text-decoration: none;
    font: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .mobile-quick-nav .app-icon { width: 20px; height: 20px; }
  .mobile-quick-nav span { max-width: 100%; overflow: hidden; font-size: 8px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-quick-nav a:hover,
  .mobile-quick-nav button:hover { color: var(--gold-bright); }
}

@media (max-width: 620px) {
  .dashboard-hero { grid-template-columns: 92px minmax(0,1fr); padding: 16px; gap: 13px; }
  .dashboard-eyebrow { font-size: 7.5px; letter-spacing: .12em; }
  .dashboard-hero h1 { font-size: 29px; }
  .dashboard-hero p { margin-top: 6px; }
  .dashboard-section-head { margin-top: 22px; }
  .dashboard-section-head h2 { font-size: 18px; }
  .app-module-grid,
  .sede-module-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .app-module-card { min-height: 128px; padding: 14px; border-radius: 15px; gap: 11px; }
  .app-module-icon { width: 40px; height: 40px; border-radius: 11px; }
  .app-module-icon .app-icon { width: 21px; height: 21px; }
  .app-module-copy { padding-right: 6px; }
  .app-module-copy strong { font-size: 13px; }
  .app-module-copy small { font-size: 9.5px; }
  .app-module-value { top: 15px; right: 14px; max-width: 65px; font-size: 19px; }
  .app-module-arrow { right: 13px; bottom: 12px; }
}

/* ------------------------------------------------ dark native application theme
   Premium sports-management language with the official Foundation identity. */
:root {
  --app-bg: #071321;
  --app-bg-deep: #030b15;
  --app-surface: #101f32;
  --app-surface-2: #16283d;
  --app-surface-3: #1b3048;
  --app-border: #263b54;
  --app-text: #f4f7fb;
  --app-muted: #a8b5c8;
  --app-gold: #d5a83f;
  --app-gold-2: #f0c45e;
  --app-green: #35c68b;
  --app-red: #f05b62;
  --app-radius: 14px;
  --app-shadow: 0 14px 34px rgba(0,0,0,.22);
}

html { background: var(--app-bg-deep); }
body {
  color: var(--app-text);
  background:
    radial-gradient(circle at 78% 3%, rgba(36,72,111,.25), transparent 34rem),
    linear-gradient(145deg, var(--app-bg-deep), var(--app-bg) 48%, #0b1929);
}
h1, h2, h3, .display {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  text-transform: none;
  letter-spacing: -.02em;
}
.kicker { color: var(--app-gold-2); }
.kicker.dark, .muted, .small.muted { color: var(--app-muted) !important; }

.shell { background: transparent; }
.main { width: 100%; max-width: none; background: transparent; }
.sidebar {
  color: var(--app-text);
  background: rgba(3,11,21,.98);
  border-right: 1px solid var(--app-border);
  box-shadow: 16px 0 42px rgba(0,0,0,.16);
}
.side-brand { padding: 18px; border-bottom-color: var(--app-border); }
.side-brand > div:first-child {
  overflow: hidden;
  padding: 11px !important;
  background: #f8f8f6 !important;
  border: 0 !important;
  border-radius: 12px;
}
.side-brand .t { color: var(--app-text); font-size: 17px; letter-spacing: .01em; }
.side-nav .nav-label { color: #70839d; }
.side-nav a { margin: 2px 10px; padding: 9px 11px; color: #b7c4d5; border: 0; border-radius: 9px; }
.side-nav a:hover { color: #fff; background: var(--app-surface); }
.side-nav a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(213,168,63,.2), rgba(25,45,68,.92));
  box-shadow: inset 3px 0 var(--app-gold);
}
.side-user { color: var(--app-text); border-top-color: var(--app-border); }
.side-user .role { color: var(--app-gold-2); }

.page-head { align-items: center; padding: 4px 0 15px; border-bottom: 1px solid var(--app-border); }
.page-head h1 { color: #fff; font-size: clamp(28px,3vw,40px); }
.crumb, .crumb a { color: #8394aa; }

.btn {
  min-height: 40px;
  color: #fff;
  background: var(--app-surface-2);
  border: 1px solid #435872;
  border-radius: 10px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 5px 12px rgba(0,0,0,.12);
}
.btn:hover { color: #fff; background: var(--app-surface-3); border-color: #6f839b; }
.btn.gold { color: #071321; background: linear-gradient(135deg,var(--app-gold-2),var(--app-gold)); border-color: var(--app-gold); }
.btn.gold:hover { color: #071321; background: linear-gradient(135deg,#ffd677,#e7b442); }
.btn.ghost { color: #dbe4ef; background: transparent; border-color: #52657c; }
.btn.ghost:hover { color: #071321; background: #fff; border-color: #fff; }
.btn.danger { color: var(--app-red); background: rgba(240,91,98,.06); border-color: rgba(240,91,98,.65); }
.btn.danger:hover { color: #fff; background: var(--app-red); }
.btn.sm { min-height: 32px; padding: 5px 11px; }

label.f > span { color: var(--app-muted); }
input, select, textarea {
  color: var(--app-text);
  background: #0b1929;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  color-scheme: dark;
}
input::placeholder, textarea::placeholder { color: #718198; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(213,168,63,.7);
  border-color: var(--app-gold);
  box-shadow: 0 0 0 4px rgba(213,168,63,.08);
}

.panel, .task-center-card, .dashboard-disclosure, .modal, .empty, .tbl-wrap {
  color: var(--app-text);
  background: linear-gradient(145deg, rgba(23,41,62,.98), rgba(13,27,44,.98));
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
}
.panel { border-top: 1px solid var(--app-border); }
.panel.gold-top { border-top: 2px solid var(--app-gold); }
.panel h2, .panel h3, .modal h2 { color: #fff; }
.empty { color: var(--app-muted); border-style: dashed; box-shadow: none; }

.dashboard-home { max-width: 1320px; }
.dashboard-hero {
  min-height: 238px;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(3,11,21,.98), rgba(12,31,51,.93) 58%, rgba(24,52,79,.86)),
    radial-gradient(circle at 75% 40%, rgba(213,168,63,.15), transparent 30rem);
  border: 1px solid var(--app-border);
  border-radius: 20px;
  box-shadow: 0 22px 55px rgba(0,0,0,.28);
}
.dashboard-hero::after { opacity: .32; background: linear-gradient(105deg,transparent 40%,rgba(213,168,63,.18)); }
.dashboard-hero-brand { padding: 15px; background: #f8f8f6; border-radius: 17px; box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.dashboard-eyebrow { color: var(--app-gold-2); }
.dashboard-hero h1 { color: #fff; }
.dashboard-hero p { color: #aebdd0; }
.dashboard-hero-stats a { color: #fff; background: rgba(19,39,61,.78); border: 1px solid rgba(116,139,166,.24); border-radius: 12px; }
.dashboard-hero-stats b { color: var(--app-green); }
.dashboard-hero-stats span { color: #b6c4d5; }
.dashboard-section-head h2 { color: #fff; font-size: 23px; }

.app-module-grid { grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 12px; }
.app-module-card {
  isolation: isolate;
  min-height: 168px;
  justify-content: flex-end;
  color: var(--app-text);
  background: linear-gradient(145deg,var(--app-surface-2),var(--app-surface));
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: 0 10px 24px rgba(0,0,0,.17);
}
.app-module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,transparent 30%,rgba(3,11,21,.16) 58%,rgba(3,11,21,.78) 100%);
}
.app-module-card:hover { color: #fff; background: linear-gradient(145deg,#203753,#13253a); border-color: rgba(213,168,63,.7); box-shadow: 0 16px 32px rgba(0,0,0,.25); }
.app-module-icon {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  color: var(--app-gold-2);
  font-size: 64px;
  background:
    radial-gradient(circle at 50% 38%,rgba(213,168,63,.15),transparent 38%),
    linear-gradient(145deg,#172b42,#0d1d30);
  border: 0;
  border-radius: inherit;
}
.app-module-icon .app-icon {
  width: clamp(58px,34%,78px);
  height: clamp(58px,34%,78px);
  transform: translateY(-13px);
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.28));
}
.app-module-copy { position: relative; z-index: 2; width: 100%; margin-top: auto; }
.app-module-copy strong { color: #fff; font-size: 15px; }
.app-module-copy small { color: var(--app-muted); }
.app-module-value { z-index: 3; color: var(--app-green); text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.app-module-arrow { z-index: 3; color: #a8b8cb; }
.app-module-card.accent-gold .app-module-icon {
  color: #ffe087;
  background:
    radial-gradient(circle at 50% 38%,rgba(240,196,94,.32),transparent 42%),
    linear-gradient(145deg,#3b321c,#142033);
  border: 0;
}
.app-module-card.is-locked { background: linear-gradient(145deg,#1b2634,#111d2b); }
.app-module-card.is-locked .app-module-icon {
  color: #d9bd78;
  background:
    radial-gradient(circle at 50% 38%,rgba(213,168,63,.18),transparent 40%),
    linear-gradient(145deg,#2a2a25,#111b28);
}

.dashboard-panel, .dashboard-disclosure { border-radius: var(--app-radius); }
.dashboard-disclosure > summary { color: #fff; }
.dashboard-disclosure > summary small { color: var(--app-muted); }
.dashboard-disclosure > summary .app-icon { color: var(--app-gold-2); }
.dashboard-disclosure-body { border-top-color: var(--app-border); }
.line-row { color: #eaf0f7 !important; border-bottom-color: var(--app-border); }
.line-row:hover { background: rgba(255,255,255,.035); }
.dashboard-panel .line-row small { color: var(--app-muted); }

.stat { color: #fff; background: linear-gradient(145deg,var(--app-surface-2),var(--app-surface)); border: 1px solid var(--app-border); border-bottom: 2px solid var(--app-gold); border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.stat .n { color: var(--app-green); }
.stat .l { color: var(--app-muted); }
.stat.light { color: #fff; background: linear-gradient(145deg,var(--app-surface-2),var(--app-surface)); border-color: var(--app-border); }
.stat.light .l { color: var(--app-muted); }

.tabs { gap: 6px; border-bottom: 1px solid var(--app-border); }
.tabs button { color: #9cabc0; background: transparent; border-radius: 9px 9px 0 0; }
.tabs button:hover { color: #fff; background: rgba(255,255,255,.035); }
.tabs button.active { color: #fff; background: var(--app-surface); border-bottom-color: var(--app-gold); }

.tbl-wrap { overflow: auto; }
table { color: var(--app-text); }
th { color: #bfcadb; background: #081525; border-color: var(--app-border); }
td { color: #e9eff6; background: transparent; border-color: var(--app-border); }
tr:hover td { background: rgba(255,255,255,.035); }
/* The legacy light-theme selector `table.tbl tr:hover td` is more specific
   than the dark-theme rule above. Override it at the same specificity so a
   hovered row never becomes white while keeping pale text. */
table.tbl tbody tr:hover > td {
  color: #fff;
  background: var(--app-surface-3);
}
table.tbl tbody tr:hover > td .muted,
table.tbl tbody tr:hover > td .small { color: #c7d2df; }
table.tbl tbody tr:hover > td .table-link,
table.tbl tbody tr:hover > td a:not(.btn) { color: var(--app-gold-2); }
table.tbl tbody tr:hover > td .money-positive { color: #54dfa5; }
table.tbl tbody tr:hover > td .money-negative { color: #ff7f89; }
.table-link { color: #fff; }

.calendar-month h2 { color: #fff; border-color: var(--app-border); }
.calendar-item { color: var(--app-text); background: linear-gradient(145deg,var(--app-surface-2),var(--app-surface)); border-color: var(--app-border); border-left-color: var(--app-gold); border-radius: 12px; box-shadow: 0 7px 18px rgba(0,0,0,.12); }
.calendar-item:hover { color: #fff; background: var(--app-surface-3); border-left-color: var(--app-gold-2); }
.calendar-date span { color: var(--app-muted); }
.calendar-type { color: #071321; background: var(--app-gold-2); border-radius: 999px; }

/* Session content belongs to the same dark visual system as its summary
   cards. The old light block made selected and unselected text hard to read
   on phones and looked like a leftover page embedded inside the app. */
.session-detail-block {
  color: #eef4fb;
  background:
    radial-gradient(circle at 100% 0, rgba(42,157,143,.10), transparent 18rem),
    linear-gradient(145deg, #172b42, #0d1d30);
  border: 1px solid var(--app-border);
  border-left: 4px solid var(--app-gold);
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.session-detail-block b {
  color: var(--app-gold-2);
  letter-spacing: .11em;
}
.session-detail-block ::selection {
  color: #071321;
  background: #f2c45f;
}

.task-center-card { border-left: 4px solid var(--app-gold); }
.task-center-card.is-done { border-left-color: var(--app-green); }
.task-center-meta { color: var(--app-muted); }

.modal-back { background: rgba(1,6,12,.82); backdrop-filter: blur(8px); }
.modal { border-top: 2px solid var(--app-gold); }
.modal .modal-sub { color: var(--app-muted); }
.modal-foot { border-color: var(--app-border); }

.profile-head { color: #fff; background: linear-gradient(120deg,#071321,#142a43 70%,#1c3a57); border: 1px solid var(--app-border); border-bottom: 3px solid var(--app-gold); border-radius: 16px; box-shadow: var(--app-shadow); }
.profile-head h1 { color: #fff; }
.field-list .fv .k { color: var(--app-muted); }
.field-list .fv .v { color: #fff; }
.tag { border-radius: 999px; }

.mobile-bar { color: #fff; background: rgba(3,11,21,.97); border-bottom: 1px solid var(--app-border); box-shadow: 0 8px 24px rgba(0,0,0,.24); }
.mobile-quick-nav { background: rgba(4,13,24,.97) !important; border-color: var(--app-border) !important; }
.mobile-quick-nav a, .mobile-quick-nav button { color: #aebbd0 !important; }
.mobile-quick-nav a:first-child { color: var(--app-gold-2) !important; }
.mobile-quick-nav a:hover, .mobile-quick-nav button:hover { color: var(--app-gold-2) !important; }

.login-right { background: radial-gradient(circle at top right,rgba(37,74,111,.3),transparent 35rem); }
.login-card { padding: 28px; background: linear-gradient(145deg,var(--app-surface-2),var(--app-surface)); border: 1px solid var(--app-border); border-radius: 16px; box-shadow: var(--app-shadow); }
.login-card h2 { color: #fff; }

@media (max-width: 900px) {
  body { background: linear-gradient(155deg,#06111f,#0a1828 54%,#081522); }
  .main { padding-left: 14px; padding-right: 14px; }
  .dashboard-hero { min-height: 0; }
  .app-module-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .dashboard-hero { grid-template-columns: 76px minmax(0,1fr); padding: 14px; border-radius: 16px; }
  .dashboard-hero-brand { padding: 7px; border-radius: 11px; }
  .dashboard-hero h1 { font-size: 27px; }
  .dashboard-hero-stats { gap: 6px; }
  .dashboard-hero-stats a { border-radius: 9px; }
  .dashboard-section-head { margin-top: 20px; }
  .dashboard-section-head h2 { font-size: 19px; }
  .app-module-grid, .sede-module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .app-module-card { width: 100%; min-height: 154px; padding: 13px; border-radius: 13px; }
  .app-module-icon { width: 100%; height: 100%; font-size: 56px; }
  .app-module-icon .app-icon { width: 62px; height: 62px; transform: translateY(-12px); }
  .app-module-copy strong { font-size: 13px; }
  .app-module-value { color: var(--app-green); }
  .panel { padding: 14px; border-radius: 13px; }
  .profile-head { border-radius: 13px; }
  .btn { min-height: 42px; }
}

.print-only { display: none; }

@media print {
  .sidebar, .page-head .actions, .btn, .toolbar { display: none !important; }
  .shell { grid-template-columns: 1fr; }
  .no-print { display: none !important; }
  .print-only { display: block !important; }

  /* printing the signed contract: only the contract sheet goes on paper */
  body.printing-contract .sidebar,
  body.printing-contract .profile-head,
  body.printing-contract .tabs,
  body.printing-contract .crumb,
  body.printing-contract .page-head { display: none !important; }
  body.printing-contract #pl-body > .panel { display: none !important; }
  body.printing-contract #contract-print {
    display: block !important;
    border: none;
    padding: 0;
    margin: 0;
  }
  body.printing-contract .main { padding: 0; }
  /* each section of the registration form is its own sheet of paper */
  .c-page {
    page-break-after: always;
    break-after: page;
    page-break-inside: avoid;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .c-page:last-child { page-break-after: auto; break-after: auto; }
}

/* ---- ID photo, documents and attachments ---- */
.id-photo { width: 96px; flex: 0 0 96px; }
.id-photo img {
  width: 96px;
  height: 120px;
  object-fit: cover;
  display: block;
  background: var(--paper);
  border: 2px solid var(--gold);
  cursor: pointer;
}
.id-photo-empty {
  width: 96px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fa1bd;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  padding: 4px;
}
.panel .id-photo-empty { background: var(--paper); border-color: var(--line); }
.doc-slot { border: 1px solid var(--line); padding: 10px 12px; background: #fff; }
.doc-slot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.file-row:first-of-type { border-top: 0; }

/* a cell that opens its own detail window */
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.linkish:hover { text-decoration: underline; }

/* Printable player performance report */
.performance-report-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 3px solid var(--gold);
  padding: 4px 0 14px;
  margin-bottom: 14px;
}
.performance-report-brand img { width: 92px; height: 92px; object-fit: contain; }
.performance-report-player {
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 16px;
  margin: 16px 0;
  background: #fff;
}
.performance-report-player-head { display: flex; align-items: center; gap: 16px; }
.performance-report-photo, .performance-report-photo-empty {
  width: 78px; height: 96px; flex: 0 0 78px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; border: 1px solid var(--line);
  overflow: hidden; text-align: center; font-size: 10px; padding: 5px;
}
.performance-report-photo img { width: 100%; height: 100%; object-fit: cover; }
.performance-report-player h3 { margin: 3px 0 7px; }
.performance-report-comment {
  margin-top: 14px; padding: 12px 14px;
  border-left: 4px solid var(--gold); background: var(--paper);
  line-height: 1.55; white-space: pre-wrap;
}
.performance-report-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.performance-report-signature { min-height: 76px; display: flex; flex-direction: column; gap: 4px; }
.performance-report-signature .signature-line { height: 34px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.performance-report-signature span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
@media print {
  body { color: #101725; background: #fff; }
  .panel, .modal, .tbl-wrap, .performance-report-player { color: #101725; background: #fff; box-shadow: none; }
  table, td { color: #101725; background: #fff; }
  th { color: #fff; background: #071429; }
  .performance-report-brand { break-inside: avoid; }
  .performance-report-player { break-inside: avoid; page-break-inside: avoid; }
  .performance-report-photo img { print-color-adjust: exact; }
  .performance-report-signatures { break-inside: avoid; page-break-inside: avoid; }
}
