:root {
  --green-900: #003f2b;
  --green-800: #005238;
  --green-700: #006943;
  --green-600: #07814f;
  --green-500: #0c9b5f;
  --mint: #e8f6ef;
  --gold: #d7a72c;
  --orange: #f28a24;
  --blue: #2f82dc;
  --violet: #7656cb;
  --ink: #10251e;
  --muted: #5d7169;
  --line: #dce7e3;
  --surface: #ffffff;
  --page: #f3f7f6;
  --danger: #c53b2c;
  --warning: #f39a22;
  --shadow: 0 18px 42px rgba(4, 42, 28, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(215, 167, 44, 0.12), transparent 32rem),
    linear-gradient(135deg, #eef6f2, #e4efed);
  color: var(--ink);
  min-height: 100dvh;
  overscroll-behavior-y: contain;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.sprite {
  display: none;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: 0 0 auto;
}

.app-shell {
  width: min(100%, 1440px);
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 80px rgba(0, 64, 42, 0.1);
}

.sidebar {
  min-height: 100dvh;
  background:
    linear-gradient(rgba(0, 57, 38, 0.9), rgba(0, 81, 49, 0.9)),
    radial-gradient(circle at 35% 12%, rgba(255, 255, 255, 0.2), transparent 10rem);
  color: #fff;
  padding: 28px;
  position: sticky;
  top: 0;
  align-self: start;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.brand-mark,
.crest {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #fff;
  color: var(--green-800);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.brand-mark.large {
  width: 92px;
  height: 92px;
  border-radius: 26px;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-mark .logo-image {
  padding: 7px;
}

.brand-title {
  line-height: 1.05;
}

.brand-title strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-title span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 4px;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  min-height: 52px;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
  font-size: 0.98rem;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.sidebar-card {
  margin-top: 28px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.sidebar-card span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.sidebar-card strong {
  display: block;
  font-size: 1.7rem;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: calc(82px + env(safe-area-inset-top));
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top) clamp(22px, 3vw, 40px) 0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 10px 26px rgba(0, 64, 42, 0.2);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-title h1 {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.62rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-title p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-actions .btn-secondary {
  min-height: 42px;
  color: var(--green-900);
  background: #fff;
}

.sync-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.13);
  font-size: 0.78rem;
  font-weight: 950;
}

.sync-pill.online {
  background: rgba(215, 167, 44, 0.24);
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.content {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 40px);
  flex: 1;
}

.screen {
  animation: show 0.18s ease-out;
}

@keyframes show {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.login-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  background:
    linear-gradient(90deg, rgba(0, 50, 34, 0.96), rgba(0, 89, 54, 0.72), rgba(0, 0, 0, 0.15)),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.32), transparent 4rem),
    linear-gradient(155deg, #0d3b31 0 36%, #445d4c 36% 38%, #1f693e 38% 68%, #16472e 68%);
  color: #fff;
  overflow: hidden;
}

.login-panel {
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
}

.login-panel h1 {
  margin: 28px 0 6px;
  font-size: clamp(2.4rem, 8vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-panel .tagline {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 36px;
}

.login-panel h2 {
  margin: 0;
  font-size: 1.75rem;
  text-transform: uppercase;
}

.login-panel p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.login-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.login-field {
  display: grid;
  gap: 6px;
}

.login-field span,
.login-sync-note {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 800;
}

.login-field input {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.login-field input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.login-sync-note {
  margin-top: 14px;
}

.sync-state {
  font-size: 1.15rem !important;
}

.pwa-install {
  display: inline-flex;
}

body.standalone .pwa-install {
  display: none;
}

.pitch-visual {
  position: relative;
  min-height: 100dvh;
}

.pitch-visual::before,
.pitch-visual::after {
  content: "";
  position: absolute;
  inset: auto 4% 10% auto;
  width: 78%;
  height: 28%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50% 50% 0 0;
  transform: perspective(600px) rotateX(62deg);
}

.pitch-visual::after {
  inset: 18% auto auto 12%;
  width: 50%;
  height: 22%;
  border-color: rgba(215, 167, 44, 0.32);
}

.hero-license {
  position: absolute;
  right: clamp(18px, 8vw, 120px);
  top: 50%;
  transform: translateY(-50%) rotate(-3deg);
  width: min(70vw, 520px);
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.34));
}

.btn {
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  box-shadow: 0 12px 22px rgba(0, 105, 67, 0.22);
}

.btn-secondary {
  color: var(--green-800);
  background: #fff;
  border: 1px solid var(--line);
}

.btn-warning {
  color: #fff;
  background: var(--orange);
}

.btn-blue {
  color: #fff;
  background: var(--blue);
}

.btn-violet {
  color: #fff;
  background: var(--violet);
}

.btn-full {
  width: 100%;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.welcome-card,
.panel,
.list-card,
.stat-card,
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.welcome-card {
  padding: 24px;
}

.academy-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.academy-head h2,
.section-title h2 {
  margin: 0;
  font-size: 1.25rem;
}

.academy-head p,
.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.logo-manager {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.logo-manager-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.logos-screen {
  display: grid;
  gap: 18px;
}

.logo-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.logo-editor {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.logo-editor-wide {
  grid-column: 1 / -1;
}

.logo-editor.dragging {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(12, 155, 95, 0.16), var(--shadow);
}

.logo-editor-preview {
  min-height: 150px;
  border: 1px dashed #b8cac3;
  border-radius: 8px;
  background: #f8fbfa;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 14px;
  cursor: pointer;
  text-align: center;
}

.logo-editor-preview:hover,
.logo-editor-preview:focus-visible {
  border-color: var(--green-600);
  outline: 0;
  background: var(--mint);
}

.logo-editor-preview .brand-mark.large {
  width: 104px;
  height: 104px;
}

.logo-editor-preview .crest {
  width: 104px;
  height: 104px;
  font-size: 1.2rem;
}

.logo-editor-preview span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.logo-editor-content {
  display: grid;
  gap: 14px;
  align-content: start;
}

.logo-editor-content h3 {
  margin: 0;
  color: var(--green-900);
  font-size: 1.05rem;
}

.logo-editor-content p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.logo-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.quick-card {
  min-height: 132px;
  border-radius: 8px;
  color: #fff;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  display: grid;
  align-content: end;
  gap: 10px;
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.12);
}

.quick-card svg {
  width: 34px;
  height: 34px;
}

.quick-card strong {
  font-size: 1rem;
}

.quick-card span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
  font-size: 0.78rem;
}

.actions-panel {
  padding: 20px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.page-heading {
  align-items: flex-start;
  margin-bottom: 22px;
}

.page-heading h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.academy-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.academy-overview article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(4, 42, 28, 0.08);
}

.academy-overview span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.academy-overview strong {
  display: block;
  margin-top: 6px;
  color: var(--green-900);
  font-size: 2rem;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.timeline-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
}

.timeline-row strong,
.list-content strong {
  display: block;
}

.timeline-row span,
.list-content span,
.license-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.time {
  color: var(--muted);
  font-size: 0.78rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.stat-card {
  padding: 18px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  margin-top: 6px;
}

.list-grid {
  display: grid;
  gap: 12px;
}

.academy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 18px;
}

.academy-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(4, 42, 28, 0.09);
  cursor: pointer;
  transition:
    transform 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease;
}

.academy-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 105, 67, 0.35);
  box-shadow: 0 24px 56px rgba(4, 42, 28, 0.14);
}

.academy-card-logo {
  min-height: 112px;
  display: grid;
  place-items: center;
  border: 1px dashed #b8cac3;
  border-radius: 8px;
  background: #f8fbfa;
}

.academy-card-logo .crest {
  width: 82px;
  height: 82px;
}

.academy-card-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.academy-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.academy-card h3 {
  margin: 0;
  color: var(--green-900);
  font-size: 1.1rem;
}

.academy-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.academy-status {
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--green-800);
  background: var(--mint);
  font-size: 0.75rem;
  font-weight: 950;
  white-space: nowrap;
}

.academy-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.academy-metrics span {
  padding: 10px;
  border-radius: 8px;
  background: #f5faf8;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.academy-metrics strong {
  display: block;
  color: var(--green-900);
  font-size: 1.1rem;
}

.academy-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3eee9;
}

.academy-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-700), var(--gold));
}

.academy-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.list-card {
  padding: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.list-card:hover {
  border-color: rgba(0, 105, 67, 0.35);
  transform: translateY(-1px);
}

.crest {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--crest, #0b7050);
  color: #fff;
  border: 3px solid #fff;
  outline: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.crest::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: inherit;
}

.crest.has-image {
  background: #fff;
  padding: 5px;
}

.crest.has-image::before {
  display: none;
}

.crest span {
  position: relative;
  font-size: 0.78rem;
}

.academy-logo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button.light {
  background: #fff;
  color: var(--green-800);
  border: 1px solid var(--line);
}

.list-chevron {
  color: var(--muted);
  font-size: 1.6rem;
}

.category-grid {
  display: grid;
  gap: 14px;
}

.category-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.category-header,
.level-row,
.print-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.category-icon {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
}

.level-row,
.print-row {
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.level-row:hover,
.print-row:hover {
  background: var(--mint);
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.search-box {
  flex: 1;
  min-width: 220px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--ink);
}

.roster {
  display: grid;
  gap: 10px;
}

.player-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  cursor: pointer;
}

.player-row:hover {
  border-color: rgba(0, 105, 67, 0.36);
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  background: #e3efe8;
  object-fit: cover;
  display: block;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 26px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 0.74rem;
  font-weight: 900;
  color: #fff;
}

.status.valid {
  background: var(--green-500);
}

.status.pending {
  background: var(--warning);
}

.status.blocked {
  background: var(--danger);
}

.license-number {
  color: var(--green-800);
  font-weight: 900;
  font-size: 0.86rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.profile-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-cover {
  min-height: 126px;
  background:
    linear-gradient(135deg, rgba(0, 81, 49, 0.9), rgba(0, 105, 67, 0.74)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, 0.08) 34px 35px);
  display: grid;
  place-items: center;
}

.profile-card .avatar {
  width: 132px;
  height: 132px;
  border: 5px solid #fff;
  margin: -54px auto 12px;
  border-radius: 10px;
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.16);
}

.profile-body {
  padding: 0 22px 22px;
  text-align: center;
}

.profile-body h2 {
  margin: 0;
  font-size: 1.35rem;
}

.info-grid,
.documents {
  display: grid;
  gap: 10px;
  text-align: left;
  margin-top: 20px;
}

.info-line,
.document-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.info-line span,
.document-line span {
  color: var(--muted);
  font-weight: 700;
}

.document-line button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.document-line .ok {
  background: var(--mint);
  color: var(--green-700);
}

.document-line .missing {
  background: #fff5e8;
  color: var(--warning);
}

.preview-stack {
  display: grid;
  gap: 16px;
}

.license-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.78 / 1;
  min-height: 320px;
  background: #fff;
  border: 1px solid rgba(0, 82, 56, 0.28);
  border-radius: 14px;
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px);
  box-shadow: 0 28px 70px rgba(4, 42, 28, 0.16);
}

.license-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: 38px;
  width: 42%;
  height: 76px;
  transform: skewX(-28deg);
  background: linear-gradient(90deg, rgba(215, 167, 44, 0.72), rgba(242, 207, 99, 0.7));
  z-index: 0;
}

.license-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 50px;
  background: linear-gradient(90deg, var(--green-800), var(--green-700));
  z-index: 0;
}

.license-watermark {
  position: absolute;
  right: 7%;
  top: 4%;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.08;
  background:
    linear-gradient(30deg, transparent 44%, #003f2b 45% 48%, transparent 49%),
    linear-gradient(90deg, transparent 44%, #003f2b 45% 48%, transparent 49%),
    linear-gradient(150deg, transparent 44%, #003f2b 45% 48%, transparent 49%);
  border: 14px solid #003f2b;
}

.modern-license-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.modern-license-brand,
.modern-license-club {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modern-license-mark {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--green-800);
  background: #fff;
}

.modern-license-mark .logo-image {
  padding: 4px;
}

.modern-license-brand strong {
  display: block;
  color: var(--green-900);
  font-size: clamp(1rem, 2vw, 1.32rem);
  font-weight: 950;
  text-transform: uppercase;
}

.modern-license-brand span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modern-license-number {
  color: var(--green-900);
  text-align: right;
  text-transform: uppercase;
}

.modern-license-number span {
  display: block;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.modern-license-number strong {
  display: block;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 0.9;
}

.modern-license-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 29% minmax(0, 1fr) 112px;
  gap: clamp(14px, 2.4vw, 26px);
  align-items: end;
  margin-top: clamp(18px, 4vw, 34px);
}

.modern-license-photo {
  aspect-ratio: 0.78;
  border-radius: 10px;
  overflow: hidden;
  border: 4px solid #fff;
  outline: 2px solid rgba(0, 105, 67, 0.35);
  background: var(--mint);
  box-shadow: 0 18px 36px rgba(0, 64, 42, 0.15);
}

.modern-license-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modern-license-main {
  min-width: 0;
  align-self: center;
}

.modern-license-main h2 {
  margin: 0 0 14px;
  color: var(--green-900);
  font-size: clamp(1.7rem, 4.5vw, 3.2rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.modern-license-main h2 span {
  display: block;
}

.modern-license-club {
  margin-bottom: 16px;
}

.modern-license-club .crest,
.modern-license-club .print-crest {
  width: 42px;
  height: 42px;
}

.modern-license-club strong {
  display: block;
  color: var(--green-900);
  font-size: 1rem;
  text-transform: uppercase;
}

.modern-license-club span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.modern-status {
  margin-left: auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  color: #fff !important;
  background: var(--green-600);
  font-size: 0.78rem !important;
  font-weight: 950 !important;
  white-space: nowrap;
}

.modern-status.pending {
  background: var(--warning);
}

.modern-status.blocked {
  background: var(--danger);
}

.modern-license-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.modern-license-fact {
  display: grid;
  gap: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.modern-license-fact span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.modern-license-fact strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.05;
}

.modern-license-qr {
  align-self: center;
  justify-self: end;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 82, 56, 0.22);
  box-shadow: 0 16px 32px rgba(4, 42, 28, 0.12);
}

.modern-license-qr .qr-svg {
  width: 82px;
  height: 82px;
}

.modern-license-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(18px, 3vw, 30px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.modern-license-footer small {
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  opacity: 0.8;
}

.qr-stamp {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 112px;
  height: 112px;
  z-index: 2;
}

.qr-stamp-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  grid-template-rows: 18px 1fr 16px;
  padding: 8px;
  background: #fff;
  border: 3px solid var(--green-800);
  outline: 2px dashed var(--gold);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.9);
}

.qr-stamp span,
.qr-stamp small {
  color: var(--green-800);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.qr-stamp span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.qr-stamp small {
  font-size: 0.52rem;
}

.qr-svg {
  width: 64px;
  height: 64px;
  display: block;
}

.card-note {
  position: absolute;
  left: 28px;
  bottom: 20px;
  z-index: 2;
  color: var(--green-700);
  font-weight: 900;
  font-style: italic;
  transform: rotate(-6deg);
}

.license-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.license-table th,
.license-table td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
  font-size: 0.86rem;
}

.license-table th {
  background: var(--green-800);
  color: #fff;
}

.license-table img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}

.print-actions {
  display: grid;
  gap: 12px;
}

.print-root {
  display: none;
}

.print-document {
  color: #10251e;
  font-family: Inter, Arial, sans-serif;
}

.print-header,
.print-roster-meta,
.print-signature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.print-header {
  justify-content: space-between;
  margin-bottom: 8mm;
  padding-bottom: 4mm;
  border-bottom: 0.4mm solid #00643b;
}

.print-logo {
  width: 16mm;
  height: 16mm;
  border-radius: 4mm;
  display: grid;
  place-items: center;
  color: #00643b;
  border: 0.4mm solid #00643b;
  overflow: hidden;
  background: #fff;
}

.print-logo .logo-image,
.print-mark .logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1mm;
}

.print-header strong,
.print-roster-meta strong {
  display: block;
  font-size: 12pt;
}

.print-header span,
.print-roster-meta span {
  color: #5d7169;
  display: block;
  font-size: 8.5pt;
  font-weight: 700;
}

.print-heading {
  margin-left: auto;
  text-align: right;
}

.print-heading h1 {
  color: #00643b;
  font-size: 18pt;
  margin: 0 0 1mm;
  text-transform: uppercase;
}

.print-heading p {
  margin: 0;
  color: #5d7169;
  font-size: 9pt;
  font-weight: 700;
}

.print-card-sheet {
  display: grid;
  grid-template-columns: repeat(2, 92mm);
  gap: 7mm 6mm;
  justify-content: center;
  align-items: start;
}

.print-single-card {
  min-height: 210mm;
  display: grid;
  place-items: center;
}

.print-license-card {
  position: relative;
  width: 90mm;
  height: 62mm;
  padding: 4.2mm;
  overflow: hidden;
  border: 0.45mm solid #00643b;
  border-radius: 2mm;
  background:
    linear-gradient(162deg, #fff 0 78%, rgba(215, 167, 44, 0.18) 78% 82%, #fff 82%),
    radial-gradient(circle at 76% 52%, rgba(0, 82, 56, 0.11), transparent 35mm);
  break-inside: avoid;
  page-break-inside: avoid;
}

.print-license-card::after {
  content: "";
  position: absolute;
  left: 19mm;
  right: -9mm;
  bottom: -10mm;
  height: 12mm;
  transform: rotate(-7deg);
  background: linear-gradient(90deg, #d7a72c, #f2cf63);
}

.print-license-top,
.print-license-brand,
.print-license-club,
.print-license-body {
  position: relative;
  z-index: 1;
  display: flex;
}

.print-license-top {
  align-items: flex-start;
  justify-content: space-between;
  gap: 3mm;
  min-height: 9.5mm;
}

.print-license-brand,
.print-license-club {
  align-items: center;
  gap: 2.2mm;
}

.print-license-brand strong,
.print-license-club strong,
.print-license-info strong {
  display: block;
  color: #003f2b;
}

.print-license-brand strong {
  font-size: 6.9pt;
  text-transform: uppercase;
}

.print-license-brand span,
.print-license-club span,
.print-license-info span {
  display: block;
  color: #5d7169;
  font-size: 5.2pt;
  font-weight: 700;
}

.print-mark {
  width: 8.5mm;
  height: 8.5mm;
  color: #00643b;
  overflow: hidden;
}

.print-license-number {
  color: #00643b;
  font-size: 10.2pt;
  font-weight: 900;
}

.print-license-club {
  margin-top: 1.6mm;
}

.print-crest {
  width: 9.5mm;
  height: 9.5mm;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--crest, #00643b);
  color: #fff;
  font-size: 5.5pt;
  font-weight: 900;
  border: 0.35mm solid #fff;
  outline: 0.25mm solid rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.print-crest.has-image {
  background: #fff;
  padding: 0.7mm;
}

.print-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.print-license-card h2 {
  position: relative;
  z-index: 1;
  margin: 2mm 0 3mm;
  color: #00643b;
  font-size: 12.2pt;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.print-license-body {
  display: grid;
  grid-template-columns: 24mm minmax(0, 1fr) 17mm;
  align-items: center;
  gap: 3.4mm;
  position: relative;
  z-index: 1;
}

.print-photo-block {
  width: 24mm;
  height: 29mm;
  border: 0.45mm solid #00643b;
  border-radius: 1.5mm;
  overflow: hidden;
  background: #e9f6ef;
}

.print-photo-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.print-license-info {
  display: grid;
  gap: 2mm;
  min-width: 0;
  align-self: center;
}

.print-license-info strong {
  font-size: 9.8pt;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.print-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4mm 2mm;
}

.print-info-grid div {
  display: grid;
  gap: 0.35mm;
  min-width: 0;
}

.print-info-grid div:last-child {
  grid-column: 1 / -1;
}

.print-info-grid b {
  color: #10251e;
  font-size: 7.3pt;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.print-license-info span {
  width: auto;
  font-size: 5.4pt;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.print-qr-stamp {
  position: relative;
  right: auto;
  bottom: auto;
  width: 17mm;
  height: 17mm;
  align-self: center;
  justify-self: end;
  transform: rotate(-3deg);
}

.print-qr-stamp .qr-stamp-ring {
  grid-template-rows: 3mm 1fr 2.5mm;
  padding: 1mm;
  border: 0.45mm solid #00643b;
  outline: 0.35mm dashed #d7a72c;
  box-shadow: none;
}

.print-qr-stamp .qr-svg {
  width: 10mm;
  height: 10mm;
}

.print-qr-stamp span {
  font-size: 3.8pt;
  letter-spacing: 0.06em;
}

.print-qr-stamp small {
  display: none;
}

.print-license-card p {
  position: absolute;
  left: 4.8mm;
  bottom: 2.5mm;
  z-index: 2;
  margin: 0;
  color: #00643b;
  font-size: 5.4pt;
  font-style: italic;
  font-weight: 900;
  transform: none;
}

.print-modern-license {
  width: 92mm;
  height: 52mm;
  min-height: 0;
  aspect-ratio: auto;
  padding: 3.8mm 4mm 7mm;
  border: 0.35mm solid rgba(0, 82, 56, 0.52);
  border-radius: 2mm;
  background: #fff;
  box-shadow: none;
}

.print-modern-license::before {
  height: 6mm;
}

.print-modern-license::after {
  right: -8mm;
  bottom: 5.5mm;
  width: 33mm;
  height: 10mm;
  transform: skewX(-28deg);
  background: linear-gradient(90deg, rgba(215, 167, 44, 0.72), rgba(242, 207, 99, 0.7));
}

.print-modern-license .license-watermark {
  right: 8mm;
  top: 2mm;
  width: 31mm;
  border-width: 2.5mm;
}

.print-modern-license .modern-license-head {
  gap: 4mm;
}

.print-modern-license .modern-license-mark {
  width: 8.5mm;
  height: 8.5mm;
  border-radius: 1.8mm;
}

.print-modern-license .modern-license-brand {
  gap: 2.2mm;
}

.print-modern-license .modern-license-brand strong {
  font-size: 7.8pt;
}

.print-modern-license .modern-license-brand span {
  font-size: 4.3pt;
  letter-spacing: 0.14em;
}

.print-modern-license .modern-license-number span {
  font-size: 5.4pt;
}

.print-modern-license .modern-license-number strong {
  font-size: 14pt;
}

.print-modern-license .modern-license-grid {
  grid-template-columns: 24mm minmax(0, 1fr) 17mm;
  gap: 3.5mm;
  margin-top: 4mm;
}

.print-modern-license .modern-license-photo {
  border-width: 0.8mm;
  border-radius: 1.6mm;
  outline: 0.35mm solid rgba(0, 105, 67, 0.45);
  box-shadow: none;
}

.print-modern-license .modern-license-main h2 {
  margin-bottom: 2.4mm;
  font-size: 14pt;
  line-height: 0.92;
}

.print-modern-license .modern-license-club {
  gap: 1.6mm;
  margin-bottom: 2.4mm;
}

.print-modern-license .modern-license-club .print-crest {
  width: 7.5mm;
  height: 7.5mm;
}

.print-modern-license .modern-license-club strong {
  font-size: 6.5pt;
}

.print-modern-license .modern-license-club span {
  font-size: 4.2pt;
}

.print-modern-license .modern-status {
  min-height: 5.5mm;
  padding: 0 2.5mm;
  font-size: 4.6pt !important;
}

.print-modern-license .modern-license-facts {
  gap: 1.2mm;
}

.print-modern-license .modern-license-fact {
  gap: 0.3mm;
  padding-left: 1.3mm;
}

.print-modern-license .modern-license-fact span {
  font-size: 4.2pt;
}

.print-modern-license .modern-license-fact strong {
  font-size: 5.5pt;
}

.print-modern-license .modern-license-qr {
  width: 16.5mm;
  height: 16.5mm;
  border-radius: 1.4mm;
  box-shadow: none;
}

.print-modern-license .modern-license-qr .qr-svg {
  width: 13mm;
  height: 13mm;
}

.print-modern-license .modern-license-footer {
  height: 6mm;
  padding: 0 4mm;
  font-size: 4.4pt;
  letter-spacing: 0.28em;
}

.print-modern-license .modern-license-footer small {
  font-size: 3.2pt;
  letter-spacing: 0.16em;
}

.print-roster {
  width: 100%;
}

.print-roster-meta {
  justify-content: space-between;
  margin-bottom: 5mm;
}

.print-roster-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.print-roster-table th,
.print-roster-table td {
  padding: 2mm;
  border: 0.25mm solid #dce7e3;
  text-align: left;
  font-size: 8pt;
}

.print-roster-table th {
  background: #00643b;
  color: #fff;
}

.print-roster-table img {
  width: 10mm;
  height: 10mm;
  border-radius: 1mm;
  object-fit: cover;
}

.print-signature {
  justify-content: space-between;
  margin-top: 7mm;
  color: #10251e;
  font-size: 9pt;
  font-weight: 800;
}

.print-page-break {
  break-before: page;
  page-break-before: always;
}

.print-empty {
  padding: 20mm;
  text-align: center;
  color: #5d7169;
  border: 0.4mm dashed #dce7e3;
}

.print-preview-screen {
  display: grid;
  gap: 16px;
}

.print-preview-actions {
  position: sticky;
  top: calc(80px + env(safe-area-inset-top));
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px;
  background: rgba(243, 247, 246, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.print-preview-help {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(215, 167, 44, 0.38);
  background: #fff8e4;
  color: #6d5420;
  font-size: 0.9rem;
  font-weight: 750;
}

.print-preview-paper {
  width: min(100%, 230mm);
  margin: 0 auto;
  padding: 10mm;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.print-preview-paper .print-document {
  min-width: 190mm;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mini-license {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.mini-license .avatar {
  width: 70px;
  height: 78px;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.tab {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.tab.active {
  background: var(--green-800);
  color: #fff;
}

.form-card {
  padding: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.field input,
.field select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(12, 155, 95, 0.12);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.empty-state {
  padding: 38px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.mobile-nav {
  display: none;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(120%);
  background: var(--green-900);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 30;
  transition: transform 0.2s ease;
  font-weight: 800;
}

#toast.visible {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    height: calc(64px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 16px 0;
  }

  .content {
    padding: 16px 16px calc(84px + env(safe-area-inset-bottom));
  }

  .dashboard-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .academy-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .academy-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -14px 28px rgba(5, 50, 35, 0.12);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-nav button {
    min-height: 66px;
    display: grid;
    place-items: center;
    gap: 3px;
    background: transparent;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
  }

  .mobile-nav button.active {
    color: var(--green-700);
  }

  .mobile-nav .icon {
    width: 1.18rem;
    height: 1.18rem;
  }

  .print-preview-actions {
    top: calc(72px + env(safe-area-inset-top));
    justify-content: stretch;
  }

  .print-preview-actions .btn {
    flex: 1 1 180px;
  }

  .print-preview-paper {
    width: 100%;
    padding: 12px;
  }

  .login-screen {
    grid-template-columns: 1fr;
  }

  .pitch-visual {
    display: none;
  }
}

@media (max-width: 680px) {
  .topbar-actions .sync-pill,
  .topbar-actions .btn-secondary {
    display: none;
  }

  .quick-grid,
  .form-grid,
  .license-grid {
    grid-template-columns: 1fr;
  }

  .logo-manager-row,
  .list-card,
  .logo-editor,
  .logo-editor-wide,
  .academy-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .logo-manager-row .btn,
  .academy-logo-actions,
  .logo-editor-preview,
  .logo-editor-content {
    grid-column: 1 / -1;
  }

  .logo-settings-grid,
  .form-grid.compact {
    grid-template-columns: 1fr;
  }

  .logo-editor-actions .btn {
    flex: 1 1 160px;
  }

  .academy-card-logo,
  .academy-card-main {
    grid-column: 1 / -1;
  }

  .academy-card-logo {
    min-height: 120px;
  }

  .academy-card-head,
  .page-heading {
    flex-direction: column;
  }

  .heading-actions,
  .academy-card-actions {
    width: 100%;
  }

  .heading-actions .btn,
  .academy-card-actions .btn {
    flex: 1 1 150px;
  }

  .academy-metrics,
  .academy-overview {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    min-width: 0;
  }

  .player-row {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .player-row .license-number {
    grid-column: 2 / 3;
  }

  .profile-card .avatar {
    width: 110px;
    height: 110px;
  }

  .license-card {
    min-height: 620px;
    aspect-ratio: auto;
  }

  .modern-license-head {
    align-items: flex-start;
  }

  .modern-license-grid {
    grid-template-columns: 1fr;
    align-items: start;
    margin-top: 20px;
  }

  .modern-license-photo {
    width: min(170px, 56%);
  }

  .modern-license-main h2 {
    font-size: 2.15rem;
  }

  .modern-license-club {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .modern-status {
    margin-left: 0;
  }

  .modern-license-facts {
    grid-template-columns: 1fr;
  }

  .modern-license-qr {
    justify-self: start;
    width: 96px;
    height: 96px;
  }

  .modern-license-qr .qr-svg {
    width: 76px;
    height: 76px;
  }

  .qr-svg {
    width: 50px;
    height: 50px;
  }

  .card-note {
    left: 18px;
    bottom: 26px;
    font-size: 0.84rem;
  }

  .mini-license {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }
}



/* v13 - UX professionnelle */
:root {
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --soft-shadow: 0 22px 60px rgba(3, 42, 28, 0.10);
  --hard-shadow: 0 28px 80px rgba(2, 38, 24, 0.18);
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(215, 167, 44, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(0, 105, 67, 0.12), transparent 30rem),
    linear-gradient(135deg, #f5f8f4, #eaf3f0 52%, #f8faf7);
}

.app-shell {
  width: min(100%, 1520px);
  grid-template-columns: 316px minmax(0, 1fr);
  background: rgba(250, 253, 251, 0.72);
}

.sidebar-v13 {
  padding: 26px;
  background:
    linear-gradient(165deg, rgba(0, 43, 29, 0.98), rgba(0, 83, 55, 0.94)),
    radial-gradient(circle at 26% 0, rgba(215, 167, 44, 0.24), transparent 14rem);
}

.sidebar-v13 .brand-block {
  margin-bottom: 20px;
}

.side-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.10);
}

.side-context .crest {
  width: 48px;
  height: 48px;
}

.side-context span,
.sync-card small {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
  font-weight: 800;
}

.side-context strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 0.95rem;
}

.side-nav {
  gap: 7px;
}

.nav-link {
  border-radius: var(--radius-sm);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 3px 0 0 var(--gold);
}

.sidebar-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.sidebar-card {
  border-radius: var(--radius-md);
}

.sidebar-card.compact-card {
  margin-top: 0;
}

.sidebar-card.compact-card strong {
  font-size: 1.55rem;
}

.sync-card {
  margin-top: 10px;
}

.topbar-v13 {
  height: calc(94px + env(safe-area-inset-top));
  background:
    linear-gradient(135deg, rgba(0, 69, 45, 0.98), rgba(0, 96, 62, 0.96)),
    radial-gradient(circle at 80% 0, rgba(215, 167, 44, 0.24), transparent 16rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-700);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.68);
}

.context-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
  font-weight: 900;
}

.context-pill .crest {
  width: 30px;
  height: 30px;
  border-width: 2px;
}

.content {
  width: min(100%, 1240px);
}

.welcome-card,
.panel,
.list-card,
.stat-card,
.form-card,
.category-card,
.player-row,
.mini-license,
.logo-editor,
.academy-card,
.search-box,
.tab,
.empty-state {
  border-radius: var(--radius-md);
}

.panel,
.welcome-card,
.stat-card,
.category-card,
.player-row,
.mini-license,
.logo-editor,
.academy-card {
  box-shadow: var(--soft-shadow);
}

.home-v13,
.team-workspace,
.licenses-workspace,
.print-studio {
  display: grid;
  gap: 22px;
}

.dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 248, 0.86)),
    radial-gradient(circle at 85% 30%, rgba(215, 167, 44, 0.16), transparent 20rem);
  border: 1px solid rgba(0, 82, 56, 0.10);
  box-shadow: var(--hard-shadow);
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 46px solid rgba(0, 105, 67, 0.06);
}

.dashboard-hero-copy,
.dashboard-hero-card {
  position: relative;
  z-index: 1;
}

.dashboard-hero-copy h2,
.print-studio-hero h2,
.licenses-hero h2,
.team-hero h2 {
  margin: 8px 0 10px;
  color: var(--green-900);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.dashboard-hero-copy p,
.print-studio-hero p,
.licenses-hero p,
.team-hero p {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 650;
}

.hero-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.hero-status-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--green-800);
  background: var(--mint);
  font-size: 0.8rem;
  font-weight: 900;
}

.hero-status-row.dark span {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-actions,
.team-hero-actions,
.player-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-hero-card {
  display: grid;
  gap: 16px;
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.hero-card-head strong {
  display: block;
  color: var(--green-900);
}

.hero-card-head span {
  color: var(--muted);
  font-weight: 750;
  font-size: 0.84rem;
}

.dashboard-hero-card .license-card {
  min-height: 280px;
  box-shadow: 0 26px 56px rgba(4, 42, 28, 0.18);
}

.metric-grid,
.team-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 18px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(0, 82, 56, 0.10);
  box-shadow: var(--soft-shadow);
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: rgba(0, 105, 67, 0.07);
}

.metric-icon,
.quick-action-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
}

.metric-card.tone-blue .metric-icon,
.metric-card.tone-blue::after {
  background: var(--blue);
}

.metric-card.tone-orange .metric-icon,
.metric-card.tone-orange::after {
  background: var(--orange);
}

.metric-card.tone-violet .metric-icon,
.metric-card.tone-violet::after {
  background: var(--violet);
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.metric-card strong {
  display: block;
  margin: 4px 0;
  color: var(--green-900);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 18px;
}

.command-panel,
.focus-panel,
.attention-panel,
.timeline-panel,
.dossier-panel,
.license-preview-panel {
  padding: 20px;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quick-action-card,
.attention-row,
.print-option-card {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.quick-action-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 14px;
  border-radius: var(--radius-md);
}

.quick-action-card:hover,
.attention-row:hover,
.print-option-card:hover,
.pro-mini-license:hover,
.pro-player-row:hover {
  border-color: rgba(0, 105, 67, 0.36);
  transform: translateY(-1px);
}

.quick-action-card strong,
.print-option-card strong,
.attention-row strong {
  display: block;
  color: var(--green-900);
}

.quick-action-card small,
.print-option-card small,
.attention-row small,
.pro-mini-license small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 750;
}

.team-focus {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.team-focus-score {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
}

.team-focus-score strong {
  font-size: 2.1rem;
  line-height: 1;
}

.team-focus-score span,
.team-focus-details span {
  color: var(--muted);
  font-weight: 750;
}

.team-focus-score span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
}

.team-focus-details strong {
  display: block;
  color: var(--green-900);
  font-size: 1.2rem;
}

.attention-list {
  display: grid;
  gap: 10px;
}

.attention-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-md);
}

.empty-state.compact {
  padding: 18px;
}

.team-hero,
.licenses-hero,
.print-studio-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.team-hero-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.team-hero-main .crest {
  width: 82px;
  height: 82px;
}

.roster-toolbar {
  position: sticky;
  top: calc(104px + env(safe-area-inset-top));
  z-index: 4;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(246, 251, 248, 0.86);
  backdrop-filter: blur(12px);
}

.pro-roster {
  gap: 8px;
}

.roster-head,
.pro-player-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) 170px 170px 104px 98px;
  gap: 14px;
  align-items: center;
}

.roster-head {
  padding: 0 16px 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pro-player-row {
  padding: 12px 16px;
}

.player-main-cell {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.player-info-cell strong {
  display: block;
  color: var(--green-900);
}

.player-info-cell span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.player-doc-cell {
  display: grid;
  gap: 8px;
}

.doc-dots {
  display: flex;
  gap: 6px;
}

.doc-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dce7e3;
}

.doc-dots span.ok {
  background: var(--green-500);
}

.doc-dots span.missing {
  background: var(--warning);
}

.doc-progress {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 150px;
}

.doc-progress.compact {
  min-width: 120px;
}

.doc-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5efeb;
}

.doc-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-600), var(--gold));
}

.doc-progress strong {
  color: var(--green-900);
  font-size: 0.8rem;
}

.player-pro-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  grid-template-areas:
    "identity license"
    "dossier license";
  gap: 20px;
  align-items: start;
}

.player-identity-card {
  grid-area: identity;
  overflow: hidden;
}

.player-identity-cover {
  min-height: 150px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(0, 71, 47, 0.96), rgba(0, 127, 78, 0.78)),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 255, 255, 0.08) 42px 43px);
}

.player-identity-cover .crest {
  width: 72px;
  height: 72px;
}

.player-identity-body {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  padding: 0 22px 18px;
  margin-top: -54px;
}

.player-identity-body .avatar {
  width: 118px;
  height: 132px;
  border-radius: 18px;
  border: 5px solid #fff;
  box-shadow: 0 18px 34px rgba(4, 42, 28, 0.18);
}

.player-identity-body h2 {
  margin: 6px 0;
  color: var(--green-900);
  font-size: 1.55rem;
  line-height: 1;
}

.player-identity-body p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.pro-info-grid {
  padding: 0 22px 18px;
  margin-top: 0;
}

.player-actions-row {
  padding: 0 22px 22px;
}

.dossier-panel {
  grid-area: dossier;
}

.player-license-showcase {
  grid-area: license;
}

.player-license-showcase .license-card {
  min-height: 420px;
}

.pro-documents .document-line {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f9fcfb;
}

.print-studio-hero {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0, 58, 38, 0.98), rgba(0, 111, 70, 0.92)),
    radial-gradient(circle at 88% 0, rgba(215, 167, 44, 0.24), transparent 18rem);
}

.print-studio-hero h2,
.print-studio-hero p,
.print-studio-hero .eyebrow {
  color: #fff;
}

.print-studio-grid,
.license-board-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.print-option-grid {
  display: grid;
  gap: 12px;
}

.print-option-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--soft-shadow);
}

.print-live-preview {
  min-width: 0;
}

.licenses-hero {
  background: #fff;
}

.license-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 10px;
}

.license-hero-stats span {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: #f5faf8;
  font-size: 0.8rem;
  font-weight: 850;
}

.license-hero-stats strong {
  display: block;
  color: var(--green-900);
  font-size: 1.55rem;
}

.license-list-panel {
  min-width: 0;
}

.license-toolbar {
  align-items: stretch;
}

.pro-license-grid {
  grid-template-columns: 1fr;
}

.pro-mini-license {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  border-radius: var(--radius-md);
}

.pro-mini-license .avatar {
  width: 64px;
  height: 72px;
  border-radius: 14px;
}

.mini-license-side {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.license-preview-panel {
  position: sticky;
  top: calc(112px + env(safe-area-inset-top));
}

.license-preview-panel .license-card {
  min-height: 300px;
}

@media (max-width: 1180px) {
  .dashboard-hero,
  .dashboard-columns,
  .print-studio-grid,
  .license-board-grid,
  .player-pro-layout {
    grid-template-columns: 1fr;
  }

  .player-pro-layout {
    grid-template-areas:
      "identity"
      "license"
      "dossier";
  }

  .metric-grid,
  .team-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .license-preview-panel {
    position: static;
  }
}

@media (max-width: 980px) {
  .topbar-v13 {
    height: calc(72px + env(safe-area-inset-top));
  }

  .context-pill {
    display: none;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .dashboard-hero-card .license-card,
  .player-license-showcase .license-card,
  .license-preview-panel .license-card {
    min-height: 360px;
  }

  .roster-toolbar {
    top: calc(80px + env(safe-area-inset-top));
  }

  .roster-head {
    display: none;
  }

  .pro-player-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
  }

  .player-main-cell,
  .player-info-cell,
  .player-doc-cell {
    grid-column: 1 / -1;
  }

  .pro-player-row .status,
  .pro-player-row .license-number {
    justify-self: start;
  }

  .mobile-nav {
    border-radius: 22px 22px 0 0;
  }
}

@media (max-width: 680px) {
  .dashboard-hero-copy h2,
  .print-studio-hero h2,
  .licenses-hero h2,
  .team-hero h2 {
    font-size: 2rem;
  }

  .metric-grid,
  .team-stats-row,
  .quick-actions-grid,
  .license-hero-stats {
    grid-template-columns: 1fr;
  }

  .team-hero,
  .licenses-hero,
  .print-studio-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .team-hero-main,
  .player-identity-body {
    grid-template-columns: 1fr;
  }

  .player-identity-body {
    margin-top: -46px;
  }

  .player-identity-body .avatar {
    width: 112px;
    height: 124px;
  }

  .pro-mini-license {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .mini-license-side {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .print-option-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .print-option-card .list-chevron {
    display: none;
  }
}



/* v14 - correction logos + édition joueur */
.logo-editor {
  grid-template-columns: minmax(150px, 172px) minmax(0, 1fr);
}

.logo-editor-content,
.field,
.field input,
.field select,
.logo-editor-content h3,
.logo-editor-content p {
  min-width: 0;
}

.field input,
.field select {
  width: 100%;
}

.form-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.logo-editor .form-grid.compact {
  grid-template-columns: minmax(160px, 1.3fr) minmax(110px, 0.75fr) minmax(132px, 0.65fr);
}

.logo-editor .field input[type="color"] {
  max-width: 88px;
  padding: 4px;
}

.logo-editor-actions {
  align-items: center;
}

.logo-editor-actions .btn {
  min-width: 152px;
}

.player-pro-layout {
  grid-template-areas:
    "identity license"
    "edit license"
    "dossier license";
}

.player-edit-panel {
  grid-area: edit;
  padding: 20px;
}

.player-edit-form {
  display: grid;
  gap: 14px;
}

.player-edit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.player-edit-panel .section-title {
  align-items: flex-start;
}

.player-edit-panel .form-actions {
  margin-top: 2px;
}

.player-edit-panel .btn-primary {
  width: 100%;
}

.player-license-showcase {
  position: sticky;
  top: calc(112px + env(safe-area-inset-top));
}

.player-license-showcase .license-card {
  max-width: 100%;
}

@media (max-width: 1180px) {
  .player-pro-layout {
    grid-template-areas:
      "identity"
      "edit"
      "license"
      "dossier";
  }

  .player-license-showcase {
    position: static;
  }
}

@media (max-width: 860px) {
  .logo-editor,
  .logo-editor-wide {
    grid-template-columns: 1fr;
  }

  .logo-editor .form-grid.compact,
  .player-edit-grid {
    grid-template-columns: 1fr;
  }

  .logo-editor .field input[type="color"] {
    max-width: none;
  }
}



/* v15 - photo joueur + suppression */
.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #d04b3c, var(--danger));
  box-shadow: 0 12px 22px rgba(197, 59, 44, 0.18);
}

.photo-edit-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f9fcfb, #eef7f2);
}

.photo-edit-card img {
  width: 92px;
  height: 104px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  border: 4px solid #fff;
  box-shadow: 0 14px 26px rgba(4, 42, 28, 0.12);
}

.photo-edit-card strong,
.photo-edit-card span {
  display: block;
}

.photo-edit-card strong {
  color: var(--green-900);
  font-size: 1rem;
}

.photo-edit-card span {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.45;
}

.player-edit-actions {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.player-edit-actions .btn {
  flex: 1 1 190px;
}

@media (max-width: 680px) {
  .photo-edit-card {
    grid-template-columns: 1fr;
  }

  .photo-edit-card img {
    width: 118px;
    height: 132px;
  }

  .player-edit-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}



/* v16 - licence écran corrigée */
.license-v16 {
  --license-pad-x: clamp(26px, 4vw, 54px);
  --license-pad-y: clamp(22px, 3vw, 42px);
  min-height: clamp(360px, 42vw, 540px);
  aspect-ratio: 1.68 / 1;
  padding: var(--license-pad-y) var(--license-pad-x) 64px;
  border: 2px solid rgba(0, 82, 56, 0.28);
  border-radius: 26px;
  background:
    radial-gradient(circle at 77% 25%, rgba(0, 82, 56, 0.04), transparent 22rem),
    linear-gradient(135deg, #ffffff 0%, #ffffff 62%, #f8fbf9 100%);
  box-shadow: 0 30px 78px rgba(4, 42, 28, 0.14);
}

.license-v16::before {
  height: 54px;
  background: linear-gradient(90deg, #005238, #007146);
  z-index: 2;
}

.license-v16::after {
  right: 22%;
  bottom: 54px;
  width: 34%;
  height: 88px;
  transform: skewX(-28deg);
  background: linear-gradient(90deg, rgba(215, 167, 44, 0.66), rgba(255, 222, 124, 0.72));
  z-index: 0;
}

.license-v16 .license-watermark {
  right: 8%;
  top: 5%;
  width: 32%;
  opacity: 0.055;
  border-width: clamp(10px, 1.6vw, 18px);
}

.license-v16 .modern-license-head {
  align-items: flex-start;
  position: relative;
  z-index: 3;
}

.license-v16 .modern-license-mark {
  width: clamp(46px, 5vw, 66px);
  height: clamp(46px, 5vw, 66px);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(4, 42, 28, 0.08);
}

.license-v16 .modern-license-brand {
  gap: 16px;
}

.license-v16 .modern-license-brand strong {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  letter-spacing: 0.02em;
}

.license-v16 .modern-license-brand span {
  margin-top: 4px;
  font-size: clamp(0.72rem, 1.1vw, 1rem);
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.license-v16 .modern-license-number span {
  font-size: clamp(0.78rem, 1.1vw, 1.05rem);
  letter-spacing: 0.18em;
}

.license-v16 .modern-license-number strong {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.license-v16 .modern-license-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: clamp(170px, 26%, 270px) minmax(250px, 1fr) clamp(108px, 14%, 150px);
  gap: clamp(24px, 3.5vw, 46px);
  align-items: center;
  height: calc(100% - 92px);
  margin-top: clamp(18px, 3vw, 36px);
}

.license-v16 .modern-license-photo {
  align-self: end;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 0.76 / 1;
  border-radius: 18px;
  border: 6px solid #fff;
  outline: 2px solid rgba(0, 105, 67, 0.34);
  box-shadow: 0 24px 44px rgba(4, 42, 28, 0.14);
}

.license-v16 .modern-license-photo img {
  object-fit: cover;
  object-position: center top;
}

.license-v16 .modern-license-main {
  align-self: center;
  min-width: 0;
  padding: 0 0 26px;
}

.license-v16 .modern-license-main h2 {
  max-width: 100%;
  margin: 0 0 clamp(20px, 2.2vw, 32px);
  font-size: clamp(2.25rem, 5.2vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.license-v16 .modern-license-club {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

.license-v16 .modern-license-club .crest {
  width: 48px;
  height: 48px;
}

.license-v16 .modern-license-club strong {
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  line-height: 1.08;
}

.license-v16 .modern-license-club span:not(.modern-status) {
  margin-top: 4px;
  font-size: clamp(0.72rem, 1vw, 0.95rem);
  letter-spacing: 0.02em;
}

.license-v16 .modern-status {
  min-height: 42px;
  margin-left: 0;
  padding: 0 22px;
  border-radius: 999px;
  font-size: clamp(0.78rem, 1.1vw, 1rem) !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 14px 24px rgba(0, 105, 67, 0.18);
}

.license-v16 .modern-status.pending {
  box-shadow: 0 14px 24px rgba(243, 154, 34, 0.2);
}

.license-v16 .modern-license-facts {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 620px;
  padding-top: 4px;
}

.license-v16 .modern-license-fact {
  min-height: 72px;
  gap: 8px;
  padding: 8px clamp(12px, 1.4vw, 20px);
  border-left: 2px solid rgba(0, 82, 56, 0.12);
  background: rgba(255, 255, 255, 0.46);
}

.license-v16 .modern-license-fact:first-child {
  border-left: 0;
}

.license-v16 .modern-license-fact span {
  font-size: clamp(0.72rem, 0.95vw, 0.92rem);
  color: #5f746c;
}

.license-v16 .modern-license-fact strong {
  font-size: clamp(0.98rem, 1.35vw, 1.35rem);
  line-height: 1.08;
}

.license-v16 .modern-license-qr {
  align-self: center;
  justify-self: end;
  width: clamp(108px, 12vw, 150px);
  height: clamp(108px, 12vw, 150px);
  border-radius: 18px;
  border: 2px solid rgba(0, 82, 56, 0.18);
  box-shadow: 0 18px 42px rgba(4, 42, 28, 0.10);
}

.license-v16 .modern-license-qr .qr-svg {
  width: 78%;
  height: 78%;
}

.license-v16 .modern-license-footer {
  height: 54px;
  z-index: 4;
  padding: 0 var(--license-pad-x);
  letter-spacing: 0.42em;
}

.license-v16 .modern-license-footer small {
  letter-spacing: 0.22em;
}

@media (max-width: 900px) {
  .license-v16 {
    aspect-ratio: auto;
    min-height: 620px;
  }

  .license-v16 .modern-license-grid {
    grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1fr);
    height: auto;
  }

  .license-v16 .modern-license-qr {
    grid-column: 2;
    justify-self: start;
  }

  .license-v16 .modern-license-main {
    padding-bottom: 0;
  }
}

@media (max-width: 680px) {
  .license-v16 {
    min-height: auto;
    padding: 20px 20px 66px;
    border-radius: 22px;
  }

  .license-v16 .modern-license-head {
    gap: 14px;
  }

  .license-v16 .modern-license-brand span {
    white-space: normal;
  }

  .license-v16 .modern-license-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }

  .license-v16 .modern-license-photo {
    width: min(210px, 70%);
    justify-self: start;
  }

  .license-v16 .modern-license-main h2 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }

  .license-v16 .modern-license-facts {
    grid-template-columns: 1fr;
  }

  .license-v16 .modern-license-fact {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid rgba(0, 82, 56, 0.12);
  }

  .license-v16 .modern-license-qr {
    grid-column: auto;
    justify-self: start;
  }
}



/* v17 - licence inspirée du modèle fourni */
.license-ref {
  --ref-green: #004a31;
  --ref-green-2: #00704a;
  --ref-border: #2d7b63;
  --ref-gold: #d7a72c;
  position: relative;
  width: 100%;
  aspect-ratio: 1.76 / 1;
  min-height: clamp(390px, 45vw, 620px);
  overflow: hidden;
  padding: clamp(28px, 4.2vw, 58px) clamp(28px, 4.4vw, 60px) clamp(24px, 3vw, 42px);
  border: 3px solid rgba(0, 82, 56, 0.58);
  border-radius: 28px;
  color: var(--ref-green);
  background:
    radial-gradient(circle at 76% 35%, rgba(0, 74, 49, 0.04), transparent 24rem),
    linear-gradient(135deg, #ffffff 0%, #ffffff 58%, #f6faf8 100%);
  box-shadow: 0 30px 78px rgba(4, 42, 28, 0.14);
}

.license-ref::before,
.license-ref::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.license-ref::before {
  top: 0;
  right: 0;
  width: 116px;
  height: 116px;
  background:
    linear-gradient(45deg, transparent 0 48%, var(--ref-gold) 49% 56%, transparent 57% 64%, var(--ref-green) 65% 100%);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.license-ref::after {
  left: 0;
  bottom: 0;
  width: 126px;
  height: 126px;
  background:
    linear-gradient(45deg, var(--ref-green) 0 45%, transparent 46% 54%, var(--ref-gold) 55% 62%, transparent 63% 100%);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.license-ref-watermark {
  position: absolute;
  right: 8%;
  top: 5%;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.055;
  border: clamp(12px, 2vw, 28px) solid var(--ref-green);
  background:
    linear-gradient(30deg, transparent 45%, var(--ref-green) 46% 49%, transparent 50%),
    linear-gradient(90deg, transparent 45%, var(--ref-green) 46% 49%, transparent 50%),
    linear-gradient(150deg, transparent 45%, var(--ref-green) 46% 49%, transparent 50%);
  z-index: 0;
}

.license-ref-header,
.license-ref-content,
.license-ref-motto {
  position: relative;
  z-index: 2;
}

.license-ref-header {
  display: grid;
  grid-template-columns: clamp(78px, 9vw, 126px) 2px minmax(0, 1fr) auto;
  gap: clamp(16px, 2.3vw, 34px);
  align-items: center;
  margin-bottom: clamp(22px, 3.5vw, 44px);
}

.license-ref-logo {
  width: clamp(78px, 9vw, 126px);
  height: clamp(78px, 9vw, 126px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  filter: drop-shadow(0 12px 18px rgba(4, 42, 28, 0.12));
}

.license-ref-logo .logo-image {
  padding: 4px;
}

.license-ref-separator {
  width: 2px;
  height: 72%;
  background: linear-gradient(var(--ref-green), rgba(0, 112, 74, 0.4));
}

.license-ref-brand strong {
  display: block;
  color: var(--ref-green);
  font-size: clamp(2rem, 5.3vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  text-shadow: 0 5px 10px rgba(0, 74, 49, 0.13);
}

.license-ref-brand span {
  display: block;
  margin-top: clamp(8px, 1vw, 16px);
  color: #567068;
  font-size: clamp(0.9rem, 1.6vw, 1.7rem);
  font-weight: 950;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.license-ref-number {
  align-self: start;
  padding-top: 6px;
  text-align: right;
  text-transform: uppercase;
}

.license-ref-number span {
  display: block;
  color: var(--ref-green);
  font-size: clamp(1rem, 1.8vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.24em;
}

.license-ref-number strong {
  display: block;
  color: var(--ref-green);
  font-size: clamp(2.8rem, 6.4vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-shadow: 0 5px 10px rgba(0, 74, 49, 0.13);
}

.license-ref-content {
  display: grid;
  grid-template-columns: minmax(220px, 30%) minmax(320px, 1fr) minmax(160px, 22%);
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
}

.license-ref-photo {
  position: relative;
  align-self: start;
  margin: 0;
  width: 100%;
  aspect-ratio: 0.76 / 1;
  overflow: hidden;
  border: 4px solid var(--ref-green-2);
  border-radius: 22px;
  padding: 8px 8px 52px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(4, 42, 28, 0.12);
}

.license-ref-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px 14px 4px 4px;
}

.license-ref-photo figcaption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 0 0 12px 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--ref-green), #006b45);
  font-size: clamp(0.95rem, 1.7vw, 1.65rem);
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.license-ref-main {
  min-width: 0;
  padding-top: clamp(0px, 1vw, 18px);
}

.license-ref-main h2 {
  margin: 0 0 clamp(20px, 2.6vw, 34px);
  color: var(--ref-green);
  font-size: clamp(2.55rem, 6vw, 6rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  text-shadow: 0 6px 12px rgba(0, 74, 49, 0.12);
}

.license-ref-main h2 span {
  display: block;
}

.license-ref-info-list {
  display: grid;
  gap: 0;
  max-width: min(100%, 620px);
}

.license-ref-info-row {
  display: grid;
  grid-template-columns: clamp(50px, 5vw, 74px) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: center;
  min-height: clamp(68px, 7.2vw, 104px);
  padding: clamp(8px, 1vw, 14px) 0;
  border-bottom: 2px solid rgba(0, 82, 56, 0.16);
}

.license-ref-info-row:last-child {
  border-bottom: 0;
}

.license-ref-info-icon {
  width: clamp(50px, 5vw, 74px);
  height: clamp(50px, 5vw, 74px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 35% 25%, #0e8d5b, var(--ref-green));
  box-shadow: inset 0 -10px 16px rgba(0, 0, 0, 0.12);
}

.license-ref-info-icon .crest,
.license-ref-info-icon .print-crest {
  width: 78%;
  height: 78%;
  border-width: 2px;
  outline: none;
}

.license-inline-icon {
  width: 58%;
  height: 58%;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.license-ref-info-text span {
  display: block;
  color: var(--ref-green-2);
  font-size: clamp(0.84rem, 1.25vw, 1.35rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.license-ref-info-text strong {
  display: block;
  color: var(--ref-green);
  font-size: clamp(1.25rem, 2.1vw, 2.15rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.license-ref-info-text small {
  display: block;
  margin-top: 4px;
  color: #78a99b;
  font-size: clamp(0.82rem, 1.18vw, 1.25rem);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.license-ref-side {
  display: grid;
  gap: clamp(16px, 2.2vw, 28px);
  justify-items: stretch;
  align-content: start;
  padding-top: clamp(58px, 8vw, 112px);
}

.license-ref-qr-card {
  overflow: hidden;
  border: 3px solid rgba(0, 112, 74, 0.62);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(4, 42, 28, 0.10);
}

.license-ref-qr-code {
  display: grid;
  place-items: center;
  padding: clamp(14px, 1.8vw, 24px);
}

.license-ref-qr-code .qr-svg {
  width: min(100%, 160px);
  height: auto;
  aspect-ratio: 1;
}

.license-ref-qr-caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: clamp(10px, 1.2vw, 15px) clamp(12px, 1.5vw, 18px);
  color: #fff;
  background: linear-gradient(135deg, var(--ref-green), #00744a);
  font-size: clamp(0.72rem, 1.05vw, 1.1rem);
  font-weight: 950;
  line-height: 1.12;
  text-transform: uppercase;
}

.license-ref-qr-caption .license-inline-icon {
  width: clamp(22px, 2.5vw, 36px);
  height: clamp(22px, 2.5vw, 36px);
}

.license-ref-status {
  min-height: clamp(58px, 6.2vw, 82px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #0d8b5a, var(--ref-green));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 16px 28px rgba(4, 42, 28, 0.13);
  font-size: clamp(1rem, 1.6vw, 1.65rem);
  font-weight: 950;
  text-transform: uppercase;
}

.license-ref-status.pending {
  background: linear-gradient(135deg, #f5a623, #df7b12);
}

.license-ref-status.blocked {
  background: linear-gradient(135deg, #d04b3c, #9f2c24);
}

.license-ref-status .license-inline-icon {
  width: clamp(28px, 3vw, 44px);
  height: clamp(28px, 3vw, 44px);
  padding: 6px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.license-ref-motto {
  position: absolute;
  left: 28%;
  right: 20%;
  bottom: clamp(18px, 2.3vw, 34px);
  display: grid;
  grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
  gap: clamp(14px, 2vw, 28px);
  align-items: center;
  color: var(--ref-green);
  text-align: center;
  pointer-events: none;
}

.license-ref-motto span {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ref-green), transparent);
}

.license-ref-motto strong {
  font-size: clamp(0.74rem, 1.2vw, 1.16rem);
  font-weight: 850;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.print-license-ref {
  width: 92mm;
  height: 52mm;
  min-height: 0;
  aspect-ratio: auto;
  padding: 3.2mm 3.6mm 2.8mm;
  border: 0.45mm solid rgba(0, 82, 56, 0.58);
  border-radius: 2.2mm;
  box-shadow: none;
}

.print-license-ref::before {
  width: 10mm;
  height: 10mm;
}

.print-license-ref::after {
  width: 11mm;
  height: 11mm;
}

.print-license-ref .license-ref-watermark {
  right: 7mm;
  top: 3mm;
  width: 30mm;
  border-width: 1.9mm;
}

.print-license-ref .license-ref-header {
  grid-template-columns: 12mm 0.35mm minmax(0, 1fr) 16mm;
  gap: 2.2mm;
  margin-bottom: 2.7mm;
}

.print-license-ref .license-ref-logo {
  width: 12mm;
  height: 12mm;
}

.print-license-ref .license-ref-separator {
  height: 9mm;
}

.print-license-ref .license-ref-brand strong {
  font-size: 13pt;
  line-height: 0.92;
}

.print-license-ref .license-ref-brand span {
  margin-top: 1.1mm;
  font-size: 5pt;
  letter-spacing: 0.19em;
}

.print-license-ref .license-ref-number span {
  font-size: 5pt;
}

.print-license-ref .license-ref-number strong {
  font-size: 15pt;
}

.print-license-ref .license-ref-content {
  grid-template-columns: 25mm minmax(0, 1fr) 17mm;
  gap: 3mm;
}

.print-license-ref .license-ref-photo {
  border-width: 0.45mm;
  border-radius: 1.8mm;
  padding: 0.8mm 0.8mm 5.2mm;
  box-shadow: none;
}

.print-license-ref .license-ref-photo img {
  border-radius: 1.1mm 1.1mm 0.3mm 0.3mm;
}

.print-license-ref .license-ref-photo figcaption {
  left: 0.8mm;
  right: 0.8mm;
  bottom: 0.8mm;
  min-height: 4.6mm;
  border-radius: 0 0 1mm 1mm;
  font-size: 5.4pt;
  letter-spacing: 0.2em;
}

.print-license-ref .license-ref-main {
  padding-top: 0.7mm;
}

.print-license-ref .license-ref-main h2 {
  margin-bottom: 2mm;
  font-size: 13pt;
  line-height: 0.86;
}

.print-license-ref .license-ref-info-row {
  grid-template-columns: 5.6mm minmax(0, 1fr);
  gap: 1.7mm;
  min-height: 7.2mm;
  padding: 0.55mm 0;
  border-bottom-width: 0.25mm;
}

.print-license-ref .license-ref-info-icon {
  width: 5.6mm;
  height: 5.6mm;
}

.print-license-ref .license-ref-info-icon .crest,
.print-license-ref .license-ref-info-icon .print-crest {
  width: 4.8mm;
  height: 4.8mm;
  font-size: 3pt;
}

.print-license-ref .license-ref-info-text span {
  font-size: 4.2pt;
  letter-spacing: 0.06em;
}

.print-license-ref .license-ref-info-text strong {
  font-size: 6.2pt;
}

.print-license-ref .license-ref-info-text small {
  margin-top: 0.3mm;
  font-size: 4pt;
}

.print-license-ref .license-ref-side {
  gap: 1.6mm;
  padding-top: 4mm;
}

.print-license-ref .license-ref-qr-card {
  border-width: 0.35mm;
  border-radius: 1.4mm;
}

.print-license-ref .license-ref-qr-code {
  padding: 1.4mm;
}

.print-license-ref .license-ref-qr-code .qr-svg {
  width: 12mm;
}

.print-license-ref .license-ref-qr-caption {
  gap: 0.9mm;
  padding: 1mm;
  font-size: 3.5pt;
}

.print-license-ref .license-ref-qr-caption .license-inline-icon {
  width: 3.2mm;
  height: 3.2mm;
}

.print-license-ref .license-ref-status {
  min-height: 6.3mm;
  gap: 1mm;
  border-radius: 1.5mm;
  font-size: 6pt;
}

.print-license-ref .license-ref-status .license-inline-icon {
  width: 4mm;
  height: 4mm;
  padding: 0.6mm;
  border-width: 0.35mm;
}

.print-license-ref .license-ref-motto {
  left: 27mm;
  right: 20mm;
  bottom: 2.2mm;
  gap: 1.8mm;
}

.print-license-ref .license-ref-motto strong {
  font-size: 4pt;
  letter-spacing: 0.28em;
}

.print-license-ref .license-ref-motto span {
  height: 0.25mm;
}

@media (max-width: 1100px) {
  .license-ref-content {
    grid-template-columns: minmax(190px, 32%) minmax(0, 1fr);
  }

  .license-ref-side {
    grid-column: 2;
    grid-template-columns: minmax(130px, 170px) minmax(150px, 1fr);
    align-items: stretch;
    padding-top: 8px;
  }
}

@media (max-width: 720px) {
  .license-ref {
    aspect-ratio: auto;
    padding: 22px 20px 32px;
  }

  .license-ref-header {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
  }

  .license-ref-separator {
    display: none;
  }

  .license-ref-number {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }

  .license-ref-brand strong {
    font-size: 2.15rem;
  }

  .license-ref-brand span {
    font-size: 0.72rem;
    letter-spacing: 0.13em;
  }

  .license-ref-content {
    grid-template-columns: 1fr;
  }

  .license-ref-photo {
    width: min(270px, 82%);
  }

  .license-ref-main h2 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .license-ref-side {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .license-ref-motto {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 22px;
  }
}



/* v18 - page de vérification QR */
.verify-screen {
  display: grid;
  gap: 18px;
  max-width: 780px;
  margin: 0 auto;
}

.verify-card,
.verify-details {
  padding: 24px;
}

.verify-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.verify-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-600), var(--green-900));
}

.verify-card.missing .verify-icon {
  background: linear-gradient(135deg, var(--warning), #c06f13);
}

.verify-card h2 {
  margin: 6px 0;
  color: var(--green-900);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1;
}

.verify-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.verify-player-head {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.verify-player-head .avatar {
  width: 78px;
  height: 88px;
  border-radius: 18px;
}

.verify-player-head h3 {
  margin: 0;
  color: var(--green-900);
  font-size: 1.5rem;
}

.verify-player-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.verify-info-grid {
  padding: 18px 0 0;
}

@media (max-width: 680px) {
  .verify-card,
  .verify-player-head {
    grid-template-columns: 1fr;
  }

  .verify-player-head .status {
    justify-self: start;
  }
}



/* v21 - licence sans QR code */
.license-pro {
  --pro-green: #004d3a;
  --pro-green-2: #0a8f63;
  --pro-gold: #e8b72d;
  --pro-muted: #536b63;
  position: relative;
  width: 100%;
  aspect-ratio: 1.72 / 1;
  min-height: 360px;
  overflow: hidden;
  padding: clamp(18px, 2.5vw, 30px);
  border: 2px solid rgba(0, 77, 58, 0.42);
  border-radius: 22px;
  color: var(--pro-green);
  background:
    radial-gradient(circle at 79% 42%, rgba(0, 77, 58, 0.045), transparent 15rem),
    linear-gradient(135deg, #ffffff 0%, #fbfdfc 68%, #edf6f2 100%);
  box-shadow: 0 24px 58px rgba(4, 42, 28, 0.13);
}

.license-pro::before,
.license-pro::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.license-pro::before {
  top: 0;
  right: 0;
  width: clamp(58px, 8vw, 94px);
  height: clamp(58px, 8vw, 94px);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  background: linear-gradient(45deg, transparent 0 46%, var(--pro-gold) 47% 58%, transparent 59% 67%, var(--pro-green) 68% 100%);
}

.license-pro::after {
  left: 0;
  bottom: 0;
  width: clamp(70px, 9vw, 108px);
  height: clamp(70px, 9vw, 108px);
  clip-path: polygon(0 20%, 0 100%, 80% 100%);
  background: linear-gradient(45deg, var(--pro-green) 0 52%, transparent 53% 62%, var(--pro-gold) 63% 72%, transparent 73% 100%);
}

.license-pro-watermark {
  position: absolute;
  right: 8%;
  top: 16%;
  width: min(35%, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: clamp(10px, 1.5vw, 18px) solid var(--pro-green);
  opacity: 0.045;
  background:
    linear-gradient(30deg, transparent 45%, var(--pro-green) 46% 49%, transparent 50%),
    linear-gradient(90deg, transparent 45%, var(--pro-green) 46% 49%, transparent 50%),
    linear-gradient(150deg, transparent 45%, var(--pro-green) 46% 49%, transparent 50%);
}

.license-pro-header,
.license-pro-body,
.license-pro-footer {
  position: relative;
  z-index: 2;
}

.license-pro-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: clamp(14px, 1.8vw, 24px);
}

.license-pro-brand {
  display: grid;
  grid-template-columns: clamp(50px, 5vw, 70px) minmax(0, 1fr);
  gap: clamp(12px, 1.5vw, 18px);
  align-items: center;
}

.license-pro-logo {
  width: clamp(50px, 5vw, 70px);
  height: clamp(50px, 5vw, 70px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 22px rgba(4, 42, 28, 0.10);
}

.license-pro-logo .logo-image {
  padding: 4px;
}

.license-pro-brand strong {
  display: block;
  color: var(--pro-green);
  font-size: clamp(1.25rem, 2.35vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.license-pro-brand span {
  display: block;
  margin-top: 6px;
  color: var(--pro-muted);
  font-size: clamp(0.58rem, 0.92vw, 0.9rem);
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.license-pro-number {
  min-width: 92px;
  text-align: right;
  text-transform: uppercase;
}

.license-pro-number span {
  display: block;
  color: var(--pro-green);
  font-size: clamp(0.66rem, 0.95vw, 0.9rem);
  font-weight: 900;
  letter-spacing: 0.22em;
}

.license-pro-number strong {
  display: block;
  color: var(--pro-green);
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.license-pro-body {
  display: grid;
  grid-template-columns: minmax(155px, 27%) minmax(0, 1fr) minmax(112px, 17%);
  gap: clamp(16px, 2.3vw, 32px);
  align-items: stretch;
}

.license-pro-photo {
  position: relative;
  align-self: stretch;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  border: 3px solid var(--pro-green-2);
  border-radius: 18px;
  padding: 7px 7px 40px;
  background: #fff;
  box-shadow: 0 18px 34px rgba(4, 42, 28, 0.11);
}

.license-pro-photo img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 11px 11px 4px 4px;
}

.license-pro-photo figcaption {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  min-height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(135deg, var(--pro-green), #00734c);
  font-size: clamp(0.66rem, 1vw, 0.98rem);
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.license-pro-main {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: clamp(12px, 1.5vw, 18px);
}

.license-pro-main h2 {
  margin: 0;
  color: var(--pro-green);
  font-size: clamp(1.75rem, 4vw, 4.1rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.license-pro-main h2 span {
  display: block;
}

.license-pro-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.license-pro-info-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(0, 77, 58, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.license-pro-info-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--pro-green-2), var(--pro-green));
}

.license-pro-info-icon .crest,
.license-pro-info-icon .print-crest {
  width: 30px;
  height: 30px;
  border-width: 1px;
  outline: none;
}

.license-inline-icon {
  width: 58%;
  height: 58%;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.license-pro-info-text {
  min-width: 0;
}

.license-pro-info-text span {
  display: block;
  color: var(--pro-green-2);
  font-size: clamp(0.52rem, 0.76vw, 0.72rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.license-pro-info-text strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--pro-green);
  font-size: clamp(0.72rem, 1.05vw, 1.08rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.license-pro-info-text small {
  display: block;
  margin-top: 2px;
  color: #6f9d90;
  font-size: clamp(0.54rem, 0.78vw, 0.74rem);
  font-weight: 900;
  text-transform: uppercase;
}

.license-pro-side {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 12px;
}

.license-pro-seal {
  position: relative;
  display: grid;
  min-height: 142px;
  place-items: center;
  align-content: center;
  gap: 8px;
  justify-items: center;
  overflow: hidden;
  padding: 16px 12px;
  border: 2px solid rgba(0, 77, 58, 0.20);
  border-radius: 22px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(10, 143, 99, 0.16), transparent 44%),
    linear-gradient(180deg, #fff, #eef8f4);
  box-shadow: 0 14px 28px rgba(4, 42, 28, 0.09);
}

.license-pro-seal::before {
  content: "";
  position: absolute;
  width: 92px;
  aspect-ratio: 1;
  border: 9px solid currentColor;
  border-radius: 50%;
  opacity: 0.08;
}

.license-pro-seal span,
.license-pro-seal small,
.license-pro-seal strong {
  position: relative;
  z-index: 1;
}

.license-pro-seal span {
  color: var(--pro-muted);
  font-size: clamp(0.54rem, 0.78vw, 0.72rem);
  font-weight: 950;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.license-pro-seal strong {
  color: var(--pro-green);
  font-size: clamp(1.05rem, 1.7vw, 1.65rem);
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

.license-pro-seal small {
  color: var(--pro-green-2);
  font-size: clamp(0.76rem, 1vw, 0.95rem);
  font-weight: 950;
}

.license-pro-seal.pending {
  color: #d98a12;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 184, 55, 0.20), transparent 44%),
    linear-gradient(180deg, #fff, #fff6df);
}

.license-pro-seal.blocked {
  color: #a73b30;
  background:
    radial-gradient(circle at 50% 42%, rgba(183, 58, 45, 0.14), transparent 44%),
    linear-gradient(180deg, #fff, #fff0ed);
}

.license-pro-status {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(0, 77, 58, 0.16);
  border-radius: 14px;
  color: var(--pro-green);
  background: #dcefe9;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 950;
  text-transform: uppercase;
}

.license-pro-status.pending {
  color: #97560d;
  background: #fff3d8;
}

.license-pro-status.blocked {
  color: #962f25;
  background: #ffe7e2;
}

.license-pro-status .license-inline-icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.license-pro-footer {
  position: absolute;
  left: clamp(18px, 2.5vw, 30px);
  right: clamp(18px, 2.5vw, 30px);
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--pro-muted);
  font-size: clamp(0.56rem, 0.78vw, 0.72rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.license-pro-footer strong {
  color: var(--pro-green);
  letter-spacing: 0.2em;
}

.print-license-pro {
  width: 95mm;
  height: 54mm;
  min-height: 0;
  aspect-ratio: auto;
  padding: 3mm 3.4mm 4mm;
  border: 0.4mm solid rgba(0, 77, 58, 0.45);
  border-radius: 2.2mm;
  box-shadow: none;
}

.print-license-pro::before {
  width: 8mm;
  height: 8mm;
}

.print-license-pro::after {
  width: 8mm;
  height: 8mm;
}

.print-license-pro .license-pro-watermark {
  width: 26mm;
  right: 9mm;
  top: 8mm;
  border-width: 1.5mm;
}

.print-license-pro .license-pro-header {
  gap: 2mm;
  margin-bottom: 2.2mm;
}

.print-license-pro .license-pro-brand {
  grid-template-columns: 8mm minmax(0, 1fr);
  gap: 1.8mm;
}

.print-license-pro .license-pro-logo {
  width: 8mm;
  height: 8mm;
}

.print-license-pro .license-pro-brand strong {
  font-size: 9pt;
}

.print-license-pro .license-pro-brand span {
  margin-top: 0.6mm;
  font-size: 3.6pt;
  letter-spacing: 0.15em;
}

.print-license-pro .license-pro-number {
  min-width: 11mm;
}

.print-license-pro .license-pro-number span {
  font-size: 3.8pt;
}

.print-license-pro .license-pro-number strong {
  font-size: 14pt;
}

.print-license-pro .license-pro-body {
  grid-template-columns: 22mm minmax(0, 1fr) 18mm;
  gap: 2.5mm;
}

.print-license-pro .license-pro-photo {
  border-width: 0.4mm;
  border-radius: 1.6mm;
  padding: 0.7mm 0.7mm 4.5mm;
  box-shadow: none;
}

.print-license-pro .license-pro-photo img {
  min-height: 0;
  border-radius: 1mm 1mm 0.3mm 0.3mm;
}

.print-license-pro .license-pro-photo figcaption {
  left: 0.7mm;
  right: 0.7mm;
  bottom: 0.7mm;
  min-height: 3.8mm;
  border-radius: 0 0 0.8mm 0.8mm;
  font-size: 4pt;
  letter-spacing: 0.16em;
}

.print-license-pro .license-pro-main {
  gap: 1.4mm;
}

.print-license-pro .license-pro-main h2 {
  font-size: 12pt;
}

.print-license-pro .license-pro-info-grid {
  gap: 1mm;
}

.print-license-pro .license-pro-info-row {
  grid-template-columns: 4.2mm minmax(0, 1fr);
  gap: 1mm;
  padding: 1mm;
  border-radius: 1mm;
}

.print-license-pro .license-pro-info-icon {
  width: 4.2mm;
  height: 4.2mm;
}

.print-license-pro .license-pro-info-icon .crest,
.print-license-pro .license-pro-info-icon .print-crest {
  width: 3.6mm;
  height: 3.6mm;
  font-size: 2.5pt;
}

.print-license-pro .license-pro-info-text span {
  font-size: 3pt;
}

.print-license-pro .license-pro-info-text strong {
  font-size: 4.5pt;
}

.print-license-pro .license-pro-info-text small {
  font-size: 3pt;
}

.print-license-pro .license-pro-side {
  gap: 1.2mm;
}

.print-license-pro .license-pro-seal {
  min-height: 14mm;
  gap: 0.7mm;
  padding: 1.2mm 1mm;
  border-width: 0.3mm;
  border-radius: 1.6mm;
}

.print-license-pro .license-pro-seal::before {
  width: 11mm;
  border-width: 1.2mm;
}

.print-license-pro .license-pro-seal span {
  font-size: 2.7pt;
  letter-spacing: 0.15em;
}

.print-license-pro .license-pro-seal strong {
  font-size: 5pt;
}

.print-license-pro .license-pro-seal small {
  font-size: 3.2pt;
}

.print-license-pro .license-pro-status {
  min-height: 5.2mm;
  gap: 0.8mm;
  padding: 0 1mm;
  border-radius: 1.2mm;
  font-size: 4pt;
}

.print-license-pro .license-pro-status .license-inline-icon {
  width: 3.4mm;
  height: 3.4mm;
  padding: 0.4mm;
  border-width: 0.25mm;
}

.print-license-pro .license-pro-footer {
  left: 3.4mm;
  right: 3.4mm;
  bottom: 1.1mm;
  font-size: 3pt;
  letter-spacing: 0.08em;
}

.print-license-pro .license-pro-footer strong {
  letter-spacing: 0.13em;
}

@media (max-width: 1180px) {
  .license-pro-body {
    grid-template-columns: minmax(145px, 30%) minmax(0, 1fr);
  }

  .license-pro-side {
    grid-column: 2;
    grid-template-columns: minmax(104px, 128px) minmax(124px, 1fr);
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .license-pro {
    aspect-ratio: auto;
    min-height: 0;
    padding: 18px 18px 38px;
  }

  .license-pro-header {
    grid-template-columns: 1fr;
  }

  .license-pro-number {
    text-align: left;
  }

  .license-pro-body {
    grid-template-columns: 1fr;
  }

  .license-pro-photo {
    width: min(230px, 74%);
  }

  .license-pro-info-grid {
    grid-template-columns: 1fr;
  }

  .license-pro-side {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .license-pro-footer {
    display: grid;
    gap: 4px;
  }
}

/* v22 - carte licence nettoyée : statut unique, photo fiable, mise en page équilibrée */
.license-pro {
  --pro-green: #004d3a;
  --pro-green-2: #07865d;
  --pro-gold: #d9ad32;
  --pro-muted: #536a63;
  width: 100%;
  min-height: 330px;
  aspect-ratio: 1.72 / 1;
  padding: clamp(18px, 2.4vw, 28px);
  border: 2px solid rgba(0, 77, 58, 0.38);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 38%, rgba(0, 77, 58, 0.055), transparent 15rem),
    linear-gradient(135deg, #ffffff 0%, #fbfdfc 62%, #eef7f3 100%);
  box-shadow: 0 24px 58px rgba(4, 42, 28, 0.13);
}

.license-pro::before {
  width: clamp(52px, 7vw, 86px);
  height: clamp(52px, 7vw, 86px);
  background: linear-gradient(45deg, transparent 0 45%, var(--pro-gold) 46% 56%, transparent 57% 66%, var(--pro-green) 67% 100%);
}

.license-pro::after {
  width: clamp(58px, 8vw, 96px);
  height: clamp(58px, 8vw, 96px);
  background: linear-gradient(45deg, var(--pro-green) 0 50%, transparent 51% 61%, var(--pro-gold) 62% 71%, transparent 72% 100%);
}

.license-pro-watermark {
  right: 7%;
  top: 17%;
  width: min(31%, 230px);
  opacity: 0.04;
}

.license-pro-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  margin-bottom: clamp(12px, 1.7vw, 20px);
}

.license-pro-brand {
  grid-template-columns: clamp(44px, 4.6vw, 62px) minmax(0, 1fr);
  gap: clamp(10px, 1.3vw, 16px);
}

.license-pro-logo {
  width: clamp(44px, 4.6vw, 62px);
  height: clamp(44px, 4.6vw, 62px);
  border-radius: 18px;
}

.license-pro-brand strong {
  font-size: clamp(1.1rem, 2.15vw, 2.05rem);
  letter-spacing: -0.025em;
}

.license-pro-brand span {
  margin-top: 5px;
  font-size: clamp(0.55rem, 0.78vw, 0.78rem);
  letter-spacing: 0.2em;
}

.license-pro-number span {
  font-size: clamp(0.58rem, 0.78vw, 0.78rem);
}

.license-pro-number strong {
  font-size: clamp(1.8rem, 3.5vw, 3.45rem);
}

.license-pro-body {
  display: grid;
  grid-template-columns: minmax(150px, 25%) minmax(0, 1fr) minmax(116px, 18%);
  gap: clamp(14px, 2vw, 26px);
  align-items: stretch;
}

.license-pro-photo {
  min-height: 0;
  padding: 6px 6px 38px;
  border: 2px solid var(--pro-green-2);
  border-radius: 18px;
  background: #fff;
}

.license-pro-photo img {
  min-height: 150px;
  object-fit: cover;
  object-position: center top;
  background: #e8f4ef;
}

.license-pro-photo figcaption {
  left: 6px;
  right: 6px;
  bottom: 6px;
  min-height: 32px;
  font-size: clamp(0.6rem, 0.88vw, 0.84rem);
  letter-spacing: 0.18em;
}

.license-pro-main {
  align-content: center;
  gap: clamp(10px, 1.25vw, 15px);
}

.license-pro-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.license-pro-main h2 {
  font-size: clamp(1.85rem, 3.9vw, 3.8rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.license-pro-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(0, 77, 58, 0.18);
  border-radius: 999px;
  color: #00734c;
  background: #e3f4ec;
  font-size: clamp(0.68rem, 0.88vw, 0.86rem);
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.license-pro-status.pending {
  color: #9a5a0e;
  background: #fff0cc;
  border-color: rgba(202, 132, 22, 0.22);
}

.license-pro-status.blocked {
  color: #9b3429;
  background: #ffe6e1;
  border-color: rgba(155, 52, 41, 0.22);
}

.license-pro-status .license-inline-icon {
  width: 18px;
  height: 18px;
  padding: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.license-pro-club-strip {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(0, 77, 58, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.license-pro-club-crest {
  display: grid;
  place-items: center;
}

.license-pro-club-crest .crest,
.license-pro-club-crest .print-crest {
  width: 38px;
  height: 38px;
  outline: 0;
}

.license-pro-club-strip span,
.license-pro-category-card span {
  display: block;
  color: var(--pro-green-2);
  font-size: clamp(0.52rem, 0.72vw, 0.68rem);
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.license-pro-club-strip strong {
  display: block;
  color: var(--pro-green);
  font-size: clamp(0.94rem, 1.35vw, 1.22rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.license-pro-club-strip small {
  display: block;
  margin-top: 2px;
  color: var(--pro-muted);
  font-size: clamp(0.62rem, 0.82vw, 0.78rem);
  font-weight: 900;
  text-transform: uppercase;
}

.license-pro-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.license-pro-info-row {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  padding: 9px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.76);
}

.license-pro-info-icon {
  width: 32px;
  height: 32px;
}

.license-pro-info-text span {
  font-size: clamp(0.48rem, 0.68vw, 0.64rem);
}

.license-pro-info-text strong {
  font-size: clamp(0.68rem, 0.93vw, 0.92rem);
}

.license-pro-side {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  gap: 10px;
}

.license-pro-category-card,
.license-pro-academy-mark {
  border: 1px solid rgba(0, 77, 58, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.license-pro-category-card {
  display: grid;
  align-content: center;
  min-height: 94px;
  padding: 13px;
}

.license-pro-category-card strong {
  color: var(--pro-green);
  font-size: clamp(1.08rem, 1.65vw, 1.55rem);
  line-height: 1;
}

.license-pro-category-card small {
  margin-top: 4px;
  color: var(--pro-muted);
  font-size: clamp(0.58rem, 0.78vw, 0.76rem);
  font-weight: 900;
  text-transform: uppercase;
}

.license-pro-academy-mark {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 14px;
}

.license-pro-academy-mark .crest,
.license-pro-academy-mark .print-crest {
  width: min(82px, 100%);
  height: min(82px, 100%);
  outline: 0;
}

.license-pro-footer {
  bottom: 9px;
  font-size: clamp(0.5rem, 0.68vw, 0.66rem);
  letter-spacing: 0.11em;
}

.license-pro-footer strong {
  letter-spacing: 0.16em;
}

.print-license-pro {
  width: 95mm;
  height: 54mm;
  padding: 3mm 3.3mm 4mm;
  border-radius: 2.4mm;
}

.print-license-pro .license-pro-watermark {
  width: 25mm;
  right: 9mm;
  top: 8mm;
}

.print-license-pro .license-pro-header {
  margin-bottom: 1.7mm;
}

.print-license-pro .license-pro-brand {
  grid-template-columns: 8mm minmax(0, 1fr);
  gap: 1.7mm;
}

.print-license-pro .license-pro-logo {
  width: 8mm;
  height: 8mm;
  border-radius: 2mm;
}

.print-license-pro .license-pro-brand strong {
  font-size: 8.2pt;
}

.print-license-pro .license-pro-brand span {
  margin-top: 0.5mm;
  font-size: 3pt;
  letter-spacing: 0.13em;
}

.print-license-pro .license-pro-number span {
  font-size: 3pt;
}

.print-license-pro .license-pro-number strong {
  font-size: 13pt;
}

.print-license-pro .license-pro-body {
  grid-template-columns: 22mm minmax(0, 1fr) 16mm;
  gap: 2mm;
}

.print-license-pro .license-pro-photo {
  padding: 0.6mm 0.6mm 4.2mm;
  border-width: 0.35mm;
}

.print-license-pro .license-pro-photo figcaption {
  left: 0.6mm;
  right: 0.6mm;
  bottom: 0.6mm;
  min-height: 3.5mm;
  font-size: 3.5pt;
}

.print-license-pro .license-pro-main {
  gap: 1mm;
}

.print-license-pro .license-pro-title-row {
  gap: 1.2mm;
}

.print-license-pro .license-pro-main h2 {
  font-size: 10.5pt;
}

.print-license-pro .license-pro-status {
  min-height: 4mm;
  gap: 0.6mm;
  padding: 0 1mm;
  font-size: 3.4pt;
}

.print-license-pro .license-pro-status .license-inline-icon {
  width: 3mm;
  height: 3mm;
  padding: 0.3mm;
}

.print-license-pro .license-pro-club-strip {
  grid-template-columns: 5.3mm minmax(0, 1fr);
  gap: 1mm;
  padding: 1mm;
  border-radius: 1.2mm;
}

.print-license-pro .license-pro-club-crest .crest,
.print-license-pro .license-pro-club-crest .print-crest {
  width: 4.8mm;
  height: 4.8mm;
}

.print-license-pro .license-pro-club-strip span,
.print-license-pro .license-pro-category-card span {
  font-size: 2.8pt;
}

.print-license-pro .license-pro-club-strip strong {
  font-size: 4.6pt;
}

.print-license-pro .license-pro-club-strip small,
.print-license-pro .license-pro-category-card small {
  font-size: 2.7pt;
}

.print-license-pro .license-pro-info-grid {
  gap: 0.8mm;
}

.print-license-pro .license-pro-info-row {
  grid-template-columns: 4mm minmax(0, 1fr);
  gap: 0.8mm;
  padding: 0.8mm;
  border-radius: 1mm;
}

.print-license-pro .license-pro-info-icon {
  width: 4mm;
  height: 4mm;
}

.print-license-pro .license-pro-info-text span {
  font-size: 2.7pt;
}

.print-license-pro .license-pro-info-text strong {
  font-size: 3.7pt;
}

.print-license-pro .license-pro-category-card {
  min-height: 10.5mm;
  padding: 1mm;
  border-radius: 1.2mm;
}

.print-license-pro .license-pro-category-card strong {
  font-size: 5.2pt;
}

.print-license-pro .license-pro-academy-mark {
  min-height: 8mm;
  padding: 1mm;
  border-radius: 1.2mm;
}

.print-license-pro .license-pro-academy-mark .crest,
.print-license-pro .license-pro-academy-mark .print-crest {
  width: 8mm;
  height: 8mm;
}

.print-license-pro .license-pro-footer {
  bottom: 1mm;
  font-size: 2.7pt;
  letter-spacing: 0.07em;
}

.print-license-pro .license-pro-footer strong {
  letter-spacing: 0.11em;
}

@media (max-width: 1180px) {
  .license-pro-body {
    grid-template-columns: minmax(145px, 28%) minmax(0, 1fr);
  }

  .license-pro-side {
    grid-column: 2;
    grid-template-columns: minmax(132px, 1fr) minmax(98px, 124px);
    grid-template-rows: auto;
  }
}

@media (max-width: 720px) {
  .license-pro {
    aspect-ratio: auto;
    min-height: 0;
    padding: 18px 18px 40px;
  }

  .license-pro-header,
  .license-pro-title-row,
  .license-pro-body {
    grid-template-columns: 1fr;
  }

  .license-pro-number {
    text-align: left;
  }

  .license-pro-photo {
    width: min(235px, 76%);
  }

  .license-pro-info-grid,
  .license-pro-side {
    grid-template-columns: 1fr;
  }

  .license-pro-status {
    justify-self: start;
  }

  .license-pro-footer {
    display: grid;
    gap: 4px;
  }
}


/* v23 - licence compacte sans vide en bas */
.license-pro:not(.print-license-pro) {
  aspect-ratio: auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  padding: clamp(14px, 2vw, 24px);
}

.license-pro:not(.print-license-pro) .license-pro-header {
  margin-bottom: clamp(8px, 1.2vw, 14px);
}

.license-pro:not(.print-license-pro) .license-pro-brand {
  grid-template-columns: clamp(38px, 4vw, 54px) minmax(0, 1fr);
  gap: clamp(8px, 1.1vw, 13px);
}

.license-pro:not(.print-license-pro) .license-pro-logo {
  width: clamp(38px, 4vw, 54px);
  height: clamp(38px, 4vw, 54px);
  border-radius: 14px;
}

.license-pro:not(.print-license-pro) .license-pro-brand strong {
  font-size: clamp(1rem, 1.8vw, 1.8rem);
}

.license-pro:not(.print-license-pro) .license-pro-brand span {
  margin-top: 3px;
  font-size: clamp(0.48rem, 0.68vw, 0.68rem);
}

.license-pro:not(.print-license-pro) .license-pro-number strong {
  font-size: clamp(1.55rem, 3vw, 3rem);
}

.license-pro:not(.print-license-pro) .license-pro-body {
  grid-template-columns: minmax(120px, 24%) minmax(0, 1fr) minmax(92px, 16%);
  gap: clamp(10px, 1.5vw, 18px);
  align-items: stretch;
}

.license-pro:not(.print-license-pro) .license-pro-photo {
  padding: 5px 5px 30px;
  border-radius: 15px;
}

.license-pro:not(.print-license-pro) .license-pro-photo img {
  min-height: 108px;
  border-radius: 9px 9px 3px 3px;
}

.license-pro:not(.print-license-pro) .license-pro-photo figcaption {
  left: 5px;
  right: 5px;
  bottom: 5px;
  min-height: 24px;
  font-size: clamp(0.5rem, 0.72vw, 0.72rem);
  letter-spacing: 0.16em;
}

.license-pro:not(.print-license-pro) .license-pro-main {
  gap: clamp(7px, 0.95vw, 11px);
}

.license-pro:not(.print-license-pro) .license-pro-title-row {
  gap: 10px;
}

.license-pro:not(.print-license-pro) .license-pro-main h2 {
  font-size: clamp(1.45rem, 3.1vw, 3.2rem);
}

.license-pro:not(.print-license-pro) .license-pro-status {
  min-height: 28px;
  padding: 0 9px;
  font-size: clamp(0.58rem, 0.72vw, 0.76rem);
}

.license-pro:not(.print-license-pro) .license-pro-status .license-inline-icon {
  width: 15px;
  height: 15px;
  padding: 2px;
}

.license-pro:not(.print-license-pro) .license-pro-club-strip {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 9px;
  border-radius: 13px;
}

.license-pro:not(.print-license-pro) .license-pro-club-crest .crest,
.license-pro:not(.print-license-pro) .license-pro-club-crest .print-crest {
  width: 30px;
  height: 30px;
}

.license-pro:not(.print-license-pro) .license-pro-info-grid {
  gap: 6px;
}

.license-pro:not(.print-license-pro) .license-pro-info-row {
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 7px;
  padding: 6px 7px;
  border-radius: 11px;
}

.license-pro:not(.print-license-pro) .license-pro-info-icon {
  width: 27px;
  height: 27px;
}

.license-pro:not(.print-license-pro) .license-pro-info-text span,
.license-pro:not(.print-license-pro) .license-pro-club-strip span,
.license-pro:not(.print-license-pro) .license-pro-category-card span {
  font-size: clamp(0.42rem, 0.6vw, 0.58rem);
}

.license-pro:not(.print-license-pro) .license-pro-info-text strong {
  font-size: clamp(0.58rem, 0.78vw, 0.82rem);
}

.license-pro:not(.print-license-pro) .license-pro-club-strip strong {
  font-size: clamp(0.78rem, 1.05vw, 1.05rem);
}

.license-pro:not(.print-license-pro) .license-pro-club-strip small,
.license-pro:not(.print-license-pro) .license-pro-category-card small {
  font-size: clamp(0.48rem, 0.65vw, 0.64rem);
}

.license-pro:not(.print-license-pro) .license-pro-side {
  gap: 7px;
}

.license-pro:not(.print-license-pro) .license-pro-category-card {
  min-height: 64px;
  padding: 9px;
  border-radius: 13px;
}

.license-pro:not(.print-license-pro) .license-pro-category-card strong {
  font-size: clamp(0.9rem, 1.25vw, 1.25rem);
}

.license-pro:not(.print-license-pro) .license-pro-academy-mark {
  min-height: 56px;
  padding: 9px;
  border-radius: 13px;
}

.license-pro:not(.print-license-pro) .license-pro-academy-mark .crest,
.license-pro:not(.print-license-pro) .license-pro-academy-mark .print-crest {
  width: min(56px, 100%);
  height: min(56px, 100%);
}

.license-pro:not(.print-license-pro) .license-pro-footer {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: clamp(7px, 1vw, 10px);
  font-size: clamp(0.42rem, 0.58vw, 0.58rem);
}

@media (max-width: 1180px) {
  .license-pro:not(.print-license-pro) .license-pro-body {
    grid-template-columns: minmax(118px, 28%) minmax(0, 1fr);
  }

  .license-pro:not(.print-license-pro) .license-pro-side {
    grid-column: 2;
    grid-template-columns: minmax(110px, 1fr) minmax(76px, 108px);
    grid-template-rows: auto;
  }
}

@media (max-width: 720px) {
  .license-pro:not(.print-license-pro) .license-pro-header,
  .license-pro:not(.print-license-pro) .license-pro-title-row,
  .license-pro:not(.print-license-pro) .license-pro-body {
    grid-template-columns: 1fr;
  }

  .license-pro:not(.print-license-pro) .license-pro-photo {
    width: min(215px, 76%);
  }

  .license-pro:not(.print-license-pro) .license-pro-side {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}


/* v24 - cartes équipe moins hautes, moins de vide blanc */
.print-card-sheet {
  grid-template-columns: repeat(2, 88mm);
  gap: 5mm 5mm;
}

.print-license-pro {
  width: 88mm;
  height: 42mm;
  padding: 2.3mm 2.6mm 3mm;
  border-radius: 2mm;
}

.print-license-pro::before,
.print-license-pro::after {
  width: 6.5mm;
  height: 6.5mm;
}

.print-license-pro .license-pro-watermark {
  width: 21mm;
  right: 8mm;
  top: 7mm;
  border-width: 1.1mm;
}

.print-license-pro .license-pro-header {
  margin-bottom: 1.1mm;
  gap: 1.4mm;
}

.print-license-pro .license-pro-brand {
  grid-template-columns: 6.6mm minmax(0, 1fr);
  gap: 1.2mm;
}

.print-license-pro .license-pro-logo {
  width: 6.6mm;
  height: 6.6mm;
  border-radius: 1.5mm;
}

.print-license-pro .license-pro-brand strong {
  font-size: 6.7pt;
}

.print-license-pro .license-pro-brand span {
  margin-top: 0.35mm;
  font-size: 2.3pt;
  letter-spacing: 0.12em;
}

.print-license-pro .license-pro-number {
  min-width: 8mm;
}

.print-license-pro .license-pro-number span {
  font-size: 2.5pt;
  letter-spacing: 0.16em;
}

.print-license-pro .license-pro-number strong {
  font-size: 10.5pt;
}

.print-license-pro .license-pro-body {
  grid-template-columns: 18.2mm minmax(0, 1fr) 14mm;
  gap: 1.5mm;
}

.print-license-pro .license-pro-photo {
  padding: 0.45mm 0.45mm 3.4mm;
  border-width: 0.32mm;
  border-radius: 1.3mm;
}

.print-license-pro .license-pro-photo figcaption {
  left: 0.45mm;
  right: 0.45mm;
  bottom: 0.45mm;
  min-height: 2.8mm;
  font-size: 2.7pt;
  letter-spacing: 0.13em;
}

.print-license-pro .license-pro-main {
  gap: 0.75mm;
}

.print-license-pro .license-pro-title-row {
  gap: 0.9mm;
}

.print-license-pro .license-pro-main h2 {
  font-size: 8.3pt;
  line-height: 0.88;
}

.print-license-pro .license-pro-status {
  min-height: 3.2mm;
  gap: 0.45mm;
  padding: 0 0.8mm;
  font-size: 2.7pt;
}

.print-license-pro .license-pro-status .license-inline-icon {
  width: 2.4mm;
  height: 2.4mm;
  padding: 0.25mm;
  border-width: 0.22mm;
}

.print-license-pro .license-pro-club-strip {
  grid-template-columns: 4.3mm minmax(0, 1fr);
  gap: 0.8mm;
  padding: 0.75mm 0.9mm;
  border-radius: 0.9mm;
}

.print-license-pro .license-pro-club-crest .crest,
.print-license-pro .license-pro-club-crest .print-crest {
  width: 3.9mm;
  height: 3.9mm;
}

.print-license-pro .license-pro-club-strip span,
.print-license-pro .license-pro-category-card span {
  font-size: 2.1pt;
}

.print-license-pro .license-pro-club-strip strong {
  font-size: 3.6pt;
}

.print-license-pro .license-pro-club-strip small,
.print-license-pro .license-pro-category-card small {
  font-size: 2.1pt;
}

.print-license-pro .license-pro-info-grid {
  gap: 0.55mm;
}

.print-license-pro .license-pro-info-row {
  grid-template-columns: 3.3mm minmax(0, 1fr);
  gap: 0.6mm;
  padding: 0.55mm;
  border-radius: 0.8mm;
}

.print-license-pro .license-pro-info-icon {
  width: 3.3mm;
  height: 3.3mm;
}

.print-license-pro .license-pro-info-text span {
  font-size: 2.1pt;
}

.print-license-pro .license-pro-info-text strong {
  font-size: 3pt;
}

.print-license-pro .license-pro-side {
  gap: 0.55mm;
}

.print-license-pro .license-pro-category-card {
  min-height: 7.5mm;
  padding: 0.75mm;
  border-radius: 0.9mm;
}

.print-license-pro .license-pro-category-card strong {
  font-size: 4.2pt;
}

.print-license-pro .license-pro-academy-mark {
  min-height: 6mm;
  padding: 0.7mm;
  border-radius: 0.9mm;
}

.print-license-pro .license-pro-academy-mark .crest,
.print-license-pro .license-pro-academy-mark .print-crest {
  width: 6mm;
  height: 6mm;
}

.print-license-pro .license-pro-footer {
  left: 2.6mm;
  right: 2.6mm;
  bottom: 0.75mm;
  font-size: 2pt;
  letter-spacing: 0.06em;
}

.print-license-pro .license-pro-footer strong {
  letter-spacing: 0.08em;
}



/* v27 - refonte premium des licences : ratio 1.76, contenu réparti, impression lisible */
.license-pro {
  --pro-green: #004d3a;
  --pro-green-2: #07865d;
  --pro-gold: #d9ad32;
  --pro-cream: #f8fbf8;
  --pro-muted: #526960;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 1.25vw, 16px);
  width: 100%;
  min-height: 0;
  aspect-ratio: 1.76 / 1;
  overflow: visible;
  padding: clamp(16px, 2.15vw, 26px);
  border: 2px solid rgba(0, 77, 58, 0.36);
  border-radius: 22px;
  color: var(--pro-green);
  background:
    radial-gradient(circle at 82% 42%, rgba(0, 77, 58, 0.055), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, var(--pro-cream) 64%, #eef7f3 100%);
  box-shadow: 0 22px 54px rgba(4, 42, 28, 0.13);
}

.license-pro::before,
.license-pro::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.license-pro::before {
  top: 0;
  right: 0;
  width: clamp(46px, 6.5vw, 78px);
  height: clamp(46px, 6.5vw, 78px);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  background: linear-gradient(45deg, transparent 0 44%, var(--pro-gold) 45% 55%, transparent 56% 65%, var(--pro-green) 66% 100%);
}

.license-pro::after {
  left: 0;
  bottom: 0;
  width: clamp(48px, 7vw, 86px);
  height: clamp(48px, 7vw, 86px);
  clip-path: polygon(0 22%, 0 100%, 78% 100%);
  background: linear-gradient(45deg, var(--pro-green) 0 50%, transparent 51% 62%, var(--pro-gold) 63% 72%, transparent 73% 100%);
}

.license-pro-watermark {
  right: 7%;
  top: 18%;
  width: min(30%, 210px);
  opacity: 0.035;
}

.license-pro-header,
.license-pro-body,
.license-pro-footer {
  position: relative;
  z-index: 2;
}

.license-pro-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(10px, 1.5vw, 18px);
  align-items: start;
  margin: 0;
}

.license-pro-brand {
  display: grid;
  grid-template-columns: clamp(42px, 4.6vw, 60px) minmax(0, 1fr);
  gap: clamp(9px, 1.15vw, 14px);
  align-items: center;
  min-width: 0;
}

.license-pro-logo {
  width: clamp(42px, 4.6vw, 60px);
  height: clamp(42px, 4.6vw, 60px);
  display: grid;
  place-items: center;
  overflow: visible;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(4, 42, 28, 0.10);
}

.license-pro-logo .logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.license-pro-brand strong {
  display: block;
  color: var(--pro-green);
  font-size: clamp(1.08rem, 1.9vw, 1.95rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.license-pro-brand span {
  display: block;
  margin-top: 4px;
  color: var(--pro-muted);
  font-size: clamp(0.5rem, 0.72vw, 0.74rem);
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.license-pro-number {
  min-width: max-content;
  text-align: right;
  text-transform: uppercase;
}

.license-pro-number span {
  display: block;
  color: var(--pro-green);
  font-size: clamp(0.58rem, 0.78vw, 0.78rem);
  font-weight: 900;
  letter-spacing: 0.2em;
}

.license-pro-number strong {
  display: block;
  color: var(--pro-green);
  font-size: clamp(1.35rem, 2.65vw, 2.65rem);
  line-height: 0.92;
  white-space: nowrap;
}

.license-pro-body {
  display: grid;
  grid-template-columns: minmax(128px, 27%) minmax(0, 1fr);
  gap: clamp(12px, 1.7vw, 22px);
  align-items: stretch;
  min-height: 0;
}

.license-pro-photo {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: visible;
  padding: 6px;
  border: 2px solid var(--pro-green-2);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 15px 28px rgba(4, 42, 28, 0.10);
}

.license-pro-photo img {
  width: 100%;
  height: 100%;
  min-height: 118px;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 11px 11px 5px 5px;
  background: #e8f4ef;
}

.license-pro-photo figcaption {
  position: static;
  min-height: auto;
  margin-top: 5px;
  display: grid;
  place-items: center;
  padding: 6px 5px;
  color: #fff;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(135deg, var(--pro-green), #00734c);
  font-size: clamp(0.56rem, 0.78vw, 0.76rem);
  font-weight: 950;
  letter-spacing: 0.16em;
  line-height: 1.05;
  text-transform: uppercase;
}

.license-pro-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
  gap: clamp(8px, 1vw, 12px);
  min-width: 0;
}

.license-pro-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(8px, 1vw, 12px);
  align-items: start;
  min-width: 0;
}

.license-pro-title-text {
  min-width: 0;
}

.license-pro-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--pro-green-2);
  font-size: clamp(0.54rem, 0.74vw, 0.72rem);
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.license-pro-main h2 {
  margin: 0;
  color: var(--pro-green);
  font-size: clamp(1.55rem, 3vw, 3.05rem);
  line-height: 0.93;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.license-pro-main h2 span {
  display: block;
}

.license-pro-status {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(0, 77, 58, 0.18);
  border-radius: 999px;
  color: #00734c;
  background: #e3f4ec;
  font-size: clamp(0.62rem, 0.82vw, 0.8rem);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.license-pro-status.pending {
  color: #9a5a0e;
  background: #fff0cc;
  border-color: rgba(202, 132, 22, 0.22);
}

.license-pro-status.blocked {
  color: #9b3429;
  background: #ffe6e1;
  border-color: rgba(155, 52, 41, 0.22);
}

.license-pro-status .license-inline-icon {
  width: 17px;
  height: 17px;
  padding: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.license-pro-club-strip {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid rgba(0, 77, 58, 0.11);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.80);
}

.license-pro-club-crest {
  display: grid;
  place-items: center;
}

.license-pro-club-crest .crest,
.license-pro-club-crest .print-crest,
.license-pro-footer-club .crest,
.license-pro-footer-club .print-crest {
  width: 36px;
  height: 36px;
  outline: 0;
}

.license-pro-club-strip span,
.license-pro-info-text span {
  display: block;
  color: var(--pro-green-2);
  font-size: clamp(0.48rem, 0.66vw, 0.64rem);
  font-weight: 950;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-transform: uppercase;
}

.license-pro-club-strip strong {
  display: block;
  color: var(--pro-green);
  font-size: clamp(0.82rem, 1.12vw, 1.08rem);
  line-height: 1.08;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: normal;
}

.license-pro-club-strip small,
.license-pro-info-text small {
  display: block;
  margin-top: 2px;
  color: var(--pro-muted);
  font-size: clamp(0.5rem, 0.68vw, 0.66rem);
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}

.license-pro-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  align-content: stretch;
}

.license-pro-info-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(0, 77, 58, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.license-pro-info-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  overflow: visible;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--pro-green-2), var(--pro-green));
}

.license-pro-info-text {
  min-width: 0;
}

.license-pro-info-text strong {
  display: block;
  color: var(--pro-green);
  font-size: clamp(0.68rem, 0.9vw, 0.88rem);
  line-height: 1.1;
  overflow-wrap: break-word;
  word-break: normal;
  text-transform: uppercase;
}

.license-pro-footer {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
  margin: 0;
  padding-top: clamp(7px, 0.9vw, 10px);
  border-top: 1px solid rgba(0, 77, 58, 0.10);
  color: var(--pro-muted);
  font-size: clamp(0.48rem, 0.66vw, 0.64rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.license-pro-footer-club {
  display: grid;
  grid-template-columns: 34px minmax(0, auto);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.license-pro-footer-club span {
  color: var(--pro-green);
  overflow-wrap: break-word;
}

.license-pro-footer strong {
  justify-self: end;
  color: var(--pro-green);
  letter-spacing: 0.14em;
  text-align: right;
  overflow-wrap: break-word;
}

.license-pro-side,
.license-pro-category-card,
.license-pro-academy-mark,
.license-pro-seal {
  display: none !important;
}

.print-card-sheet {
  grid-template-columns: repeat(2, 88mm);
  gap: 5mm 5mm;
}

.print-license-pro {
  width: 88mm;
  height: 50mm;
  min-height: 0;
  aspect-ratio: auto;
  gap: 1.2mm;
  padding: 2.4mm 2.7mm 2.6mm;
  border-width: 0.32mm;
  border-radius: 2mm;
  box-shadow: none;
}

.print-license-pro::before {
  width: 6.5mm;
  height: 6.5mm;
}

.print-license-pro::after {
  width: 6.5mm;
  height: 6.5mm;
}

.print-license-pro .license-pro-watermark {
  width: 20mm;
  right: 7mm;
  top: 8mm;
  border-width: 1mm;
}

.print-license-pro .license-pro-header {
  gap: 1.2mm;
}

.print-license-pro .license-pro-brand {
  grid-template-columns: 6.4mm minmax(0, 1fr);
  gap: 1.1mm;
}

.print-license-pro .license-pro-logo {
  width: 6.4mm;
  height: 6.4mm;
  border-radius: 1.4mm;
}

.print-license-pro .license-pro-logo .logo-image {
  padding: 0.45mm;
}

.print-license-pro .license-pro-brand strong {
  font-size: 6.6pt;
}

.print-license-pro .license-pro-brand span {
  margin-top: 0.3mm;
  font-size: 2.35pt;
  letter-spacing: 0.11em;
}

.print-license-pro .license-pro-number span {
  font-size: 2.45pt;
  letter-spacing: 0.14em;
}

.print-license-pro .license-pro-number strong {
  font-size: 8.6pt;
}

.print-license-pro .license-pro-body {
  grid-template-columns: 20mm minmax(0, 1fr);
  gap: 1.7mm;
}

.print-license-pro .license-pro-photo {
  padding: 0.45mm;
  border-width: 0.28mm;
  border-radius: 1.3mm;
  box-shadow: none;
}

.print-license-pro .license-pro-photo img {
  min-height: 0;
  border-radius: 0.9mm 0.9mm 0.35mm 0.35mm;
}

.print-license-pro .license-pro-photo figcaption {
  margin-top: 0.45mm;
  padding: 0.85mm 0.6mm;
  border-radius: 0 0 0.8mm 0.8mm;
  font-size: 2.9pt;
  letter-spacing: 0.1em;
}

.print-license-pro .license-pro-main {
  gap: 0.75mm;
}

.print-license-pro .license-pro-title-row {
  gap: 0.8mm;
}

.print-license-pro .license-pro-eyebrow {
  margin-bottom: 0.25mm;
  font-size: 2.35pt;
  letter-spacing: 0.1em;
}

.print-license-pro .license-pro-main h2 {
  font-size: 8.6pt;
  line-height: 0.93;
}

.print-license-pro .license-pro-status {
  min-height: 3.4mm;
  gap: 0.45mm;
  padding: 0 0.9mm;
  font-size: 2.6pt;
}

.print-license-pro .license-pro-status .license-inline-icon {
  width: 2.4mm;
  height: 2.4mm;
  padding: 0.25mm;
  border-width: 0.18mm;
}

.print-license-pro .license-pro-club-strip {
  grid-template-columns: 4.4mm minmax(0, 1fr);
  gap: 0.75mm;
  padding: 0.75mm 0.9mm;
  border-radius: 0.9mm;
}

.print-license-pro .license-pro-club-crest .crest,
.print-license-pro .license-pro-club-crest .print-crest {
  width: 3.9mm;
  height: 3.9mm;
}

.print-license-pro .license-pro-club-strip span,
.print-license-pro .license-pro-info-text span {
  font-size: 2.15pt;
  letter-spacing: 0.06em;
}

.print-license-pro .license-pro-club-strip strong {
  font-size: 3.6pt;
}

.print-license-pro .license-pro-club-strip small,
.print-license-pro .license-pro-info-text small {
  font-size: 2pt;
}

.print-license-pro .license-pro-info-grid {
  gap: 0.55mm;
}

.print-license-pro .license-pro-info-row {
  grid-template-columns: 3.2mm minmax(0, 1fr);
  gap: 0.55mm;
  padding: 0.55mm;
  border-radius: 0.75mm;
}

.print-license-pro .license-pro-info-icon {
  width: 3.2mm;
  height: 3.2mm;
}

.print-license-pro .license-inline-icon {
  stroke-width: 2.2;
}

.print-license-pro .license-pro-info-text strong {
  font-size: 2.9pt;
}

.print-license-pro .license-pro-footer {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1mm;
  padding-top: 0.75mm;
  font-size: 2pt;
  letter-spacing: 0.045em;
}

.print-license-pro .license-pro-footer-club {
  grid-template-columns: 4.2mm minmax(0, auto);
  gap: 0.65mm;
}

.print-license-pro .license-pro-footer-club .crest,
.print-license-pro .license-pro-footer-club .print-crest {
  width: 3.8mm;
  height: 3.8mm;
}

.print-license-pro .license-pro-footer strong {
  letter-spacing: 0.07em;
}

@media (max-width: 1180px) {
  .license-pro:not(.print-license-pro) .license-pro-body {
    grid-template-columns: minmax(118px, 30%) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .license-pro:not(.print-license-pro) {
    aspect-ratio: auto;
  }

  .license-pro-header,
  .license-pro-title-row,
  .license-pro-body,
  .license-pro-footer {
    grid-template-columns: 1fr;
  }

  .license-pro-number,
  .license-pro-footer strong {
    justify-self: start;
    text-align: left;
  }

  .license-pro-photo {
    width: min(230px, 78%);
  }

  .license-pro-info-grid {
    grid-template-columns: 1fr;
  }

  .license-pro-status {
    justify-self: start;
  }
}


/* v28 - correction ciblée Dashboard : aperçu licence proportionnel */
.dashboard-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(22px, 3.2vw, 36px);
}

.dashboard-hero-card {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
  width: 100%;
  max-width: 620px;
  justify-self: end;
}

.dashboard-academy-summary {
  width: min(100%, 520px);
  justify-self: end;
}

.dashboard-license-preview {
  --dash-green: #004d3a;
  --dash-green-2: #07865d;
  --dash-gold: #d9ad32;
  position: relative;
  box-sizing: border-box;
  width: min(100%, 560px);
  aspect-ratio: 1.76 / 1;
  justify-self: end;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(8px, 1vw, 12px);
  padding: clamp(13px, 1.7vw, 20px);
  border: 1.6px solid rgba(0, 77, 58, 0.34);
  border-radius: 18px;
  color: var(--dash-green);
  background:
    radial-gradient(circle at 82% 46%, rgba(0, 77, 58, 0.055), transparent 34%),
    linear-gradient(135deg, #fff, #f8fbf8 62%, #edf7f2);
  box-shadow: 0 22px 50px rgba(4, 42, 28, 0.14);
}

.dashboard-license-preview::before,
.dashboard-license-preview::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.dashboard-license-preview::before {
  top: 0;
  right: 0;
  width: clamp(42px, 6vw, 70px);
  height: clamp(42px, 6vw, 70px);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  background: linear-gradient(45deg, transparent 0 44%, var(--dash-gold) 45% 55%, transparent 56% 65%, var(--dash-green) 66% 100%);
}

.dashboard-license-preview::after {
  left: 0;
  bottom: 0;
  width: clamp(42px, 6.4vw, 76px);
  height: clamp(42px, 6.4vw, 76px);
  clip-path: polygon(0 24%, 0 100%, 78% 100%);
  background: linear-gradient(45deg, var(--dash-green) 0 50%, transparent 51% 62%, var(--dash-gold) 63% 72%, transparent 73% 100%);
}

.dashboard-license-header,
.dashboard-license-body {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.dashboard-license-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.dashboard-license-brand {
  display: grid;
  grid-template-columns: clamp(34px, 4vw, 48px) minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.dashboard-license-logo {
  width: clamp(34px, 4vw, 48px);
  height: clamp(34px, 4vw, 48px);
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 9px 20px rgba(4, 42, 28, 0.10);
}

.dashboard-license-logo .logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.dashboard-license-brand strong {
  display: block;
  color: var(--dash-green);
  font-size: clamp(0.95rem, 1.55vw, 1.45rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.dashboard-license-brand small {
  display: block;
  margin-top: 3px;
  color: #536a63;
  font-size: clamp(0.42rem, 0.62vw, 0.58rem);
  font-weight: 950;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
}

.dashboard-license-number {
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-license-number span {
  display: block;
  font-size: clamp(0.48rem, 0.66vw, 0.62rem);
  font-weight: 950;
  letter-spacing: 0.16em;
}

.dashboard-license-number strong {
  display: block;
  font-size: clamp(0.95rem, 1.8vw, 1.55rem);
  line-height: 1;
}

.dashboard-license-body {
  display: grid;
  grid-template-columns: minmax(112px, 28%) minmax(0, 1fr);
  gap: clamp(10px, 1.35vw, 16px);
  align-items: stretch;
}

.dashboard-license-photo {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 5px;
  border: 1.6px solid var(--dash-green-2);
  border-radius: 14px;
  background: #fff;
}

.dashboard-license-photo img {
  width: 100%;
  height: 100%;
  min-height: 90px;
  object-fit: cover;
  object-position: center top;
  border-radius: 9px 9px 4px 4px;
  background: #e8f4ef;
}

.dashboard-license-photo figcaption {
  margin-top: 4px;
  padding: 5px 4px;
  color: #fff;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(135deg, var(--dash-green), #00734c);
  font-size: clamp(0.44rem, 0.62vw, 0.58rem);
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.dashboard-license-content {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: clamp(7px, 0.9vw, 10px);
  min-width: 0;
}

.dashboard-license-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.dashboard-license-title-row h3 {
  margin: 0;
  color: var(--dash-green);
  font-size: clamp(1.15rem, 2.25vw, 2.05rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  overflow-wrap: break-word;
  word-break: normal;
}

.dashboard-license-title-row h3 span {
  display: block;
}

.dashboard-license-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(0, 77, 58, 0.18);
  border-radius: 999px;
  color: #00734c;
  background: #e3f4ec;
  font-size: clamp(0.5rem, 0.65vw, 0.62rem);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-license-status.pending {
  color: #9a5a0e;
  background: #fff0cc;
}

.dashboard-license-status.blocked {
  color: #9b3429;
  background: #ffe6e1;
}

.dashboard-license-status .license-inline-icon {
  width: 14px;
  height: 14px;
  padding: 2px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}

.dashboard-license-club {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(0, 77, 58, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.dashboard-license-club .crest {
  width: 30px;
  height: 30px;
  outline: 0;
}

.dashboard-license-club strong {
  display: block;
  color: var(--dash-green);
  font-size: clamp(0.68rem, 0.95vw, 0.9rem);
  line-height: 1.08;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.dashboard-license-club small {
  display: block;
  margin-top: 1px;
  color: #536a63;
  font-size: clamp(0.46rem, 0.62vw, 0.6rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.dashboard-license-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.dashboard-license-facts > span {
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid rgba(0, 77, 58, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
}

.dashboard-license-facts small,
.dashboard-license-facts strong {
  display: block;
  line-height: 1.1;
  overflow-wrap: break-word;
  word-break: normal;
}

.dashboard-license-facts small {
  color: var(--dash-green-2);
  font-size: clamp(0.42rem, 0.58vw, 0.55rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-license-facts strong {
  margin-top: 2px;
  color: var(--dash-green);
  font-size: clamp(0.55rem, 0.74vw, 0.72rem);
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-hero-card .license-card {
  min-height: 0;
}

@media (max-width: 1180px) {
  .dashboard-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  }
}

@media (max-width: 980px) {
  .dashboard-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dashboard-hero-card,
  .dashboard-academy-summary,
  .dashboard-license-preview {
    justify-self: stretch;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .dashboard-hero {
    padding: 18px;
  }

  .dashboard-license-preview {
    width: 100%;
    aspect-ratio: 1.76 / 1;
    gap: 6px;
    padding: clamp(9px, 3vw, 12px);
    border-radius: 14px;
  }

  .dashboard-license-brand {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px;
  }

  .dashboard-license-logo {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .dashboard-license-brand strong {
    font-size: clamp(0.72rem, 3.1vw, 0.95rem);
  }

  .dashboard-license-brand small,
  .dashboard-license-number span {
    font-size: 0.36rem;
    letter-spacing: 0.1em;
  }

  .dashboard-license-number strong {
    font-size: clamp(0.78rem, 3.2vw, 1rem);
  }

  .dashboard-license-body {
    grid-template-columns: minmax(78px, 30%) minmax(0, 1fr);
    gap: 7px;
  }

  .dashboard-license-photo {
    padding: 3px;
    border-radius: 10px;
  }

  .dashboard-license-photo img {
    min-height: 58px;
    border-radius: 7px 7px 3px 3px;
  }

  .dashboard-license-photo figcaption {
    margin-top: 3px;
    padding: 4px 3px;
    font-size: 0.34rem;
    letter-spacing: 0.08em;
  }

  .dashboard-license-content {
    gap: 4px;
  }

  .dashboard-license-title-row {
    gap: 5px;
  }

  .dashboard-license-title-row h3 {
    font-size: clamp(0.84rem, 4.2vw, 1.12rem);
  }

  .dashboard-license-status {
    min-height: 18px;
    padding: 0 5px;
    font-size: 0.36rem;
  }

  .dashboard-license-status .license-inline-icon {
    width: 10px;
    height: 10px;
    padding: 1px;
  }

  .dashboard-license-club {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 5px;
    padding: 4px 5px;
    border-radius: 9px;
  }

  .dashboard-license-club .crest {
    width: 22px;
    height: 22px;
  }

  .dashboard-license-club strong {
    font-size: 0.46rem;
  }

  .dashboard-license-club small {
    font-size: 0.34rem;
  }

  .dashboard-license-facts {
    gap: 4px;
  }

  .dashboard-license-facts > span {
    padding: 4px 5px;
    border-radius: 8px;
  }

  .dashboard-license-facts small {
    font-size: 0.32rem;
    letter-spacing: 0.05em;
  }

  .dashboard-license-facts strong {
    font-size: 0.42rem;
  }
}


/* v29 - gestion professionnelle équipes, catégories, joueurs et dossiers */
.categories-manager-screen,
.team-workspace,
.licenses-workspace,
.player-file-layout {
  min-width: 0;
}

.categories-manager-screen,
.team-workspace,
.licenses-workspace {
  display: grid;
  gap: 18px;
}

.team-form,
.team-settings-panel,
.player-file-panel,
.license-filter-panel {
  padding: 20px;
}

.compact-title {
  align-items: flex-start;
}

.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
  resize: vertical;
}

.field textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(12, 155, 95, 0.12);
}

.category-manager-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.category-management-card {
  border-radius: var(--radius-md, 18px);
  box-shadow: 0 18px 44px rgba(4, 42, 28, 0.10);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.category-management-card:hover {
  border-color: rgba(0, 105, 67, 0.34);
  transform: translateY(-2px);
  box-shadow: 0 24px 54px rgba(4, 42, 28, 0.13);
}

.category-management-card.archived {
  opacity: 0.76;
  background: #f8faf9;
}

.category-management-card .category-header {
  border-top: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 16px 16px 12px;
}

.category-management-card .list-content {
  min-width: 0;
}

.category-management-card .list-content strong,
.category-management-card .list-content span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.category-meta-grid span {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: #f5faf8;
  border: 1px solid rgba(0, 82, 56, 0.08);
}

.category-meta-grid small,
.category-meta-grid strong {
  display: block;
}

.category-meta-grid small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.category-meta-grid strong {
  margin-top: 3px;
  color: var(--green-900);
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px 16px;
}

.category-card-actions .btn {
  flex: 1 1 130px;
}

.team-category-switcher {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.category-chip {
  min-width: 178px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--green-900);
  background: #fff;
  box-shadow: 0 12px 28px rgba(4, 42, 28, 0.08);
  cursor: pointer;
  text-align: left;
}

.category-chip strong,
.category-chip span {
  display: block;
}

.category-chip strong {
  font-size: 0.96rem;
}

.category-chip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.category-chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  border-color: transparent;
}

.category-chip.active span {
  color: rgba(255, 255, 255, 0.82);
}

.category-chip.archived {
  opacity: 0.62;
}

.team-settings-panel {
  margin-top: 4px;
}

.team-settings-form {
  display: grid;
  gap: 14px;
}

.split-actions {
  align-items: center;
}

.split-actions .btn-danger {
  margin-right: auto;
}

.player-file-layout {
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.22fr);
  grid-template-areas:
    "identity file"
    "license file";
}

.player-file-panel {
  grid-area: file;
  min-width: 0;
}

.player-file-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.player-file-tabs .tab {
  flex: 0 0 auto;
}

.player-file-panel .player-edit-panel,
.player-file-panel .dossier-panel-tab,
.player-file-panel .verification-panel-tab,
.player-file-panel .history-panel-tab,
.player-file-panel .player-license-showcase.in-tab {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.player-file-panel .player-license-showcase.in-tab {
  position: static;
}

.document-rule-box {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(215, 167, 44, 0.36);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(215, 167, 44, 0.15), rgba(255, 255, 255, 0.86));
}

.document-rule-box strong {
  color: var(--green-900);
}

.document-rule-box span {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.document-review-list {
  gap: 12px;
  margin-top: 0;
}

.document-review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.8fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid #dce7e3;
  border-radius: 16px;
  background: #fff;
}

.document-review-row.valid {
  border-left-color: var(--green-600);
  background: linear-gradient(135deg, #fff, #f3fbf7);
}

.document-review-row.pending {
  border-left-color: var(--warning);
  background: linear-gradient(135deg, #fff, #fff9ee);
}

.document-review-row.blocked {
  border-left-color: var(--danger);
  background: linear-gradient(135deg, #fff, #fff4f2);
}

.document-review-row.missing {
  border-left-color: #b9c9c2;
}

.document-review-main {
  min-width: 0;
}

.document-review-main strong,
.document-review-main span,
.document-review-main small,
.document-review-main em {
  display: block;
}

.document-review-main strong {
  color: var(--green-900);
  font-size: 1rem;
}

.document-review-main span,
.document-review-main small {
  color: var(--muted);
  font-weight: 750;
}

.document-review-main small {
  margin-top: 6px;
  font-size: 0.82rem;
}

.document-review-main em {
  margin-top: 6px;
  color: var(--danger);
  font-style: normal;
  font-weight: 850;
}

.document-review-controls {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.document-review-controls select,
.document-review-controls input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.document-review-controls select:focus,
.document-review-controls input:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(12, 155, 95, 0.12);
}

.doc-refusal-input {
  grid-column: 1 / -1;
}

.verification-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.verification-card {
  display: grid;
  gap: 5px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.verification-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.verification-card strong {
  color: var(--green-900);
  font-size: 1.15rem;
  line-height: 1.1;
}

.verification-card small {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.verification-card.valid {
  border-color: rgba(12, 155, 95, 0.32);
  background: #f3fbf7;
}

.verification-card.pending {
  border-color: rgba(243, 154, 34, 0.32);
  background: #fff9ef;
}

.verification-card.blocked {
  border-color: rgba(197, 59, 44, 0.26);
  background: #fff4f2;
}

.validation-blockers {
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f8fbfa;
}

.validation-blockers.ok {
  border-color: rgba(12, 155, 95, 0.25);
  background: #f1fbf6;
}

.validation-blockers.has-blockers {
  border-color: rgba(243, 154, 34, 0.28);
  background: #fff8ed;
}

.validation-blockers strong {
  color: var(--green-900);
}

.validation-blockers p,
.validation-blockers ul {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.validation-blockers ul {
  padding-left: 20px;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-row {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.history-row strong {
  color: var(--green-900);
}

.history-row span,
.history-row time {
  color: var(--muted);
  font-weight: 750;
}

.history-row time {
  font-size: 0.78rem;
}

.license-filter-panel {
  box-shadow: 0 14px 34px rgba(4, 42, 28, 0.08);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.doc-dots span.valid,
.doc-dots span.ok {
  background: var(--green-500);
}

.doc-dots span.pending {
  background: var(--warning);
}

.doc-dots span.blocked {
  background: var(--danger);
}

.doc-dots span.missing {
  background: #cbd8d3;
}

.document-line .valid {
  background: var(--mint);
  color: var(--green-700);
}

.document-line .pending {
  background: #fff5e8;
  color: var(--warning);
}

.document-line .blocked {
  background: #fff1ee;
  color: var(--danger);
}

@media (max-width: 1180px) {
  .player-file-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "identity"
      "file"
      "license";
  }

  .player-license-showcase.desktop-showcase {
    position: static;
  }
}

@media (max-width: 920px) {
  .filter-grid,
  .verification-grid {
    grid-template-columns: 1fr;
  }

  .category-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-review-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .team-form,
  .team-settings-panel,
  .player-file-panel,
  .license-filter-panel {
    padding: 16px;
  }

  .category-meta-grid,
  .document-review-controls {
    grid-template-columns: 1fr;
  }

  .split-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .split-actions .btn-danger {
    margin-right: 0;
  }

  .player-file-tabs {
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 4px;
    padding-right: 4px;
  }
}


/* v30 - profil joueur : consultation, édition contrôlée et aperçu licence proportionnel */
.player-profile-layout {
  display: grid;
  grid-template-columns: minmax(286px, 350px) minmax(0, 1fr);
  grid-template-areas:
    "identity file"
    "license license";
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.player-profile-layout .player-identity-card {
  grid-area: identity;
}

.player-profile-layout .player-file-panel {
  grid-area: file;
  align-self: stretch;
}

.profile-license-preview-panel {
  grid-area: license;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
}

.profile-license-preview-heading {
  margin-bottom: 12px;
}

.profile-license-scale-shell {
  --profile-license-scale: 1;
  width: 100%;
  max-width: 920px;
  height: 535px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.profile-license-artboard {
  width: 920px;
  transform: scale(var(--profile-license-scale));
  transform-origin: top left;
}

.profile-license-artboard > .license-card {
  width: 920px;
  max-width: none;
  min-height: 535px;
}

.player-read-panel,
.player-edit-tab,
.player-license-tab-note {
  min-width: 0;
}

.player-read-heading {
  align-items: flex-start;
}

.player-read-actions,
.profile-quick-actions,
.player-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.player-read-actions {
  justify-content: flex-end;
}

.btn-compact {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1;
  white-space: nowrap;
}

.btn-compact .icon {
  width: 1rem;
  height: 1rem;
}

.player-read-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.player-read-card {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #f8fbfa);
}

.player-read-card > strong {
  color: var(--green-900);
  font-size: 0.98rem;
}

.player-read-card span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.player-read-card small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.player-read-card b {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.player-secondary-menu {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(197, 59, 44, 0.20);
  border-radius: 16px;
  background: #fff7f5;
}

.player-secondary-menu strong,
.player-secondary-menu span {
  display: block;
}

.player-secondary-menu strong {
  color: var(--danger);
}

.player-secondary-menu span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.player-profile-layout .player-edit-actions {
  justify-content: flex-end;
  margin-top: 4px;
}

.player-profile-layout .player-edit-actions .btn {
  flex: 0 1 auto;
  width: auto;
}

.player-license-tab-note {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbfa;
}

.player-license-tab-note h2 {
  margin: 0 0 4px;
  color: var(--green-900);
  font-size: 1.05rem;
}

.player-license-tab-note p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.player-profile-layout .player-identity-body h2 {
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .player-profile-layout {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  }

  .profile-license-scale-shell {
    max-width: 100%;
  }
}

@media (max-width: 920px) {
  .player-profile-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "identity"
      "file"
      "license";
  }

  .player-read-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .profile-license-preview-panel {
    padding: 14px;
  }

  .player-read-heading,
  .profile-license-preview-heading,
  .player-license-tab-note,
  .player-secondary-menu {
    align-items: stretch;
    flex-direction: column;
  }

  .player-read-actions,
  .profile-quick-actions,
  .player-edit-actions {
    width: 100%;
  }

  .player-read-actions .btn,
  .profile-quick-actions .btn,
  .player-edit-actions .btn,
  .player-secondary-menu .btn,
  .player-license-tab-note .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}



/* v32 - profil joueur simplifié : informations, documents et vérification */
.btn:disabled,
button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn:disabled:hover,
button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.simple-player-info {
  display: grid;
  gap: 14px;
}

.player-info-summary-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f3fbf7);
}

.player-info-summary-card .avatar {
  width: 62px;
  height: 62px;
  border-radius: 16px;
}

.player-info-summary-card strong,
.player-info-summary-card small {
  display: block;
  min-width: 0;
}

.player-info-summary-card strong {
  color: var(--green-900);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.player-info-summary-card small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.simplified-read-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.simple-player-edit .compact-photo-edit {
  align-items: center;
  padding: 12px;
  border-radius: 18px;
}

.simple-player-edit .compact-photo-edit .avatar,
.simple-player-edit .compact-photo-edit img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}

.simplified-edit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.simplified-edit-grid input[readonly] {
  background: #f7fbf9;
  color: var(--muted);
  cursor: default;
}

.simple-documents-panel {
  display: grid;
  gap: 14px;
}

.simple-doc-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-700);
  font-weight: 950;
}

.simple-documents-list {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.simple-doc-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.simple-doc-row.valid {
  border-color: rgba(12, 155, 95, 0.26);
  background: linear-gradient(135deg, #fff, #f3fbf7);
}

.simple-doc-main {
  min-width: 0;
}

.simple-doc-main strong,
.simple-doc-main span,
.simple-doc-main small {
  display: block;
  min-width: 0;
}

.simple-doc-main strong {
  color: var(--green-900);
  font-size: 0.98rem;
}

.simple-doc-main span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.35;
}

.simple-doc-main small {
  margin-top: 5px;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.simple-doc-state-block,
.simple-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.simple-doc-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green-900);
  font-weight: 900;
  white-space: nowrap;
}

.simple-doc-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green-600);
}

.simple-doc-state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.simple-doc-state.valid {
  background: var(--mint);
  color: var(--green-700);
}

.simple-doc-state.pending {
  background: #fff4df;
  color: #a45b05;
}

.simple-verification-panel {
  display: grid;
  gap: 14px;
}

.simple-verification-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.simple-verification-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 1100px) {
  .simplified-read-grid,
  .simple-verification-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simple-doc-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .simple-doc-state-block,
  .simple-doc-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .player-info-summary-card,
  .simplified-read-grid,
  .simplified-edit-grid,
  .simple-verification-grid {
    grid-template-columns: 1fr;
  }

  .player-info-summary-card {
    align-items: start;
  }

  .player-info-summary-card .status {
    justify-self: start;
  }

  .simple-doc-state-block,
  .simple-doc-actions,
  .simple-verification-actions {
    width: 100%;
  }

  .simple-doc-actions .btn,
  .simple-verification-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media print {
  @page {
    size: A4;
    margin: 8mm;
  }

  body {
    background: #fff;
  }

  body.printing {
    margin: 0;
    background: #fff;
  }

  body.printing #app {
    display: none !important;
  }

  body.printing .print-root {
    display: block !important;
  }

  .sidebar,
  .topbar,
  .mobile-nav,
  .print-actions,
  .toolbar,
  .tabs,
  #toast,
  body.printing .sprite {
    display: none !important;
  }

  .app-shell {
    display: block;
    width: 100%;
  }

  .content {
    padding: 0;
  }

  .panel,
  .welcome-card,
  .profile-card,
  .license-card,
  .license-table {
    box-shadow: none;
  }

  .print-license-card {
    box-shadow: none;
  }
}

