:root {
  --bg: #dfeaf8;
  --panel: #f7fbff;
  --panel-soft: #edf4fc;
  --border: #b8c7d9;
  --text: #172334;
  --muted: #667891;
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --danger: #ef4444;
  --warning: #f59e0b;
  --secondary: #3b82f6;
  --content-max-width: 1620px;
  --auth-max-width: 980px;
  --auth-register-max-width: 1380px;
  --auth-poster-width: 420px;
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.78) 0%, rgba(243, 248, 238, 0.68) 100%),
    url("./assets/soccer-sky-background-v2.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-color: #eef6fb;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: transparent;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(255,255,255,0.20) 7% 7.25%, transparent 7.25% 92.75%, rgba(255,255,255,0.20) 92.75% 93%, transparent 93% 100%),
    linear-gradient(transparent 0 11%, rgba(255,255,255,0.16) 11% 11.25%, transparent 11.25% 88.75%, rgba(255,255,255,0.16) 88.75% 89%, transparent 89% 100%),
    radial-gradient(circle at 50% 50%, transparent 0 82px, rgba(255,255,255,0.14) 82px 84px, transparent 84px),
    linear-gradient(180deg, rgba(34, 197, 94, 0.06), rgba(21, 128, 61, 0.04));
  opacity: 0.7;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  width: 170px;
  height: 170px;
  right: 4%;
  bottom: 5%;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.92) 0 34%, rgba(17,24,39,0.14) 35% 36%, transparent 37%),
    conic-gradient(
      from 0deg,
      rgba(17,24,39,0.10) 0deg 18deg,
      transparent 18deg 54deg,
      rgba(17,24,39,0.10) 54deg 72deg,
      transparent 72deg 126deg,
      rgba(17,24,39,0.10) 126deg 144deg,
      transparent 144deg 198deg,
      rgba(17,24,39,0.10) 198deg 216deg,
      transparent 216deg 270deg,
      rgba(17,24,39,0.10) 270deg 288deg,
      transparent 288deg 360deg
    ),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.62) 0 68%, transparent 69%);
  box-shadow: 0 18px 45px rgba(20, 35, 52, 0.10);
  opacity: 0.5;
  z-index: 0;
}

.success-text {
  color: #166534;
}

.warning-text {
  color: #b45309;
}

.app-shell {
  position: relative;
  z-index: 1;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns .24s ease;
}

.app-shell.guest-mode {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar {
  position: relative;
  z-index: 20;
  padding: 24px;
  border-right: 1px solid var(--border);
  background: rgba(238, 245, 253, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: opacity .18s ease, transform .24s ease;
}

.app-shell.guest-mode .sidebar {
  display: none;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 64px minmax(0, 1fr);
}

.app-shell.sidebar-collapsed .sidebar {
  padding: 24px 8px;
  align-items: center;
}

.app-shell.sidebar-collapsed .sidebar > :not(.sidebar-toggle):not(.collapsed-profile-link) {
  display: none !important;
}

#profileDrawer,
#profileDrawer[hidden] {
  display: none !important;
}

.main {
  padding: clamp(18px, 2.4vw, 30px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

.card {
  background: rgba(247, 251, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(27, 43, 66, 0.10);
}

.card.compact {
  padding: 14px;
}

.note-card {
  margin-top: auto;
}

.version-chip {
  margin-top: 4px;
  padding: 10px 12px 0;
  text-align: left;
  line-height: 1.45;
  opacity: 0.95;
}

.auth-shell {
  width: 100%;
  max-width: var(--auth-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, 500px) minmax(360px, var(--auth-poster-width));
  gap: clamp(20px, 2vw, 32px);
  align-items: center;
  justify-content: center;
  padding-top: 8px;
}

.auth-shell.auth-shell-register-mode {
  grid-template-columns: 1fr;
  width: 100%;
  max-width: var(--auth-register-max-width);
  justify-items: center;
}

.auth-shell.auth-shell-register-mode .auth-poster {
  display: none;
}

.auth-shell-register-mode #registerPanel {
  background: transparent;
  border: none;
  box-shadow: none;
  width: 100%;
  max-width: var(--auth-register-max-width);
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

.auth-card {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.97), rgba(237, 244, 252, 0.92));
  box-shadow: 0 20px 60px rgba(27, 43, 66, 0.14);
}

.auth-view-shell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 48px);
  padding-top: 0;
  width: 100%;
}

#authView {
  position: relative;
  width: 100%;
}

.auth-version-note {
  position: static;
  align-self: center;
  width: min(100%, var(--auth-register-max-width));
  max-width: var(--auth-register-max-width);
  margin: 18px auto 0;
  padding-inline: 4px;
  text-align: right;
  line-height: 1.55;
  z-index: 2;
}

.auth-version-note span {
  display: inline-block;
  white-space: nowrap;
}

.auth-form-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.auth-shell-register-mode .auth-form-stage {
  width: 100%;
}

.auth-form-stage > .auth-card {
  width: 100%;
}

.auth-shell:not(.auth-shell-register-mode) .auth-form-stage > .auth-card {
  max-width: 500px;
}

.auth-shell-ready > .card + .card {
  margin-top: 14px;
}

.auth-shell-ready > .card {
  width: 100%;
}

.auth-shell-ready > .card.hidden {
  display: none !important;
}

.auth-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.auth-card-head > div:first-child {
  max-width: 360px;
}

.auth-card-head h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.auth-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(184, 199, 217, 0.9);
  border-radius: 999px;
  background: rgba(237, 244, 252, 0.95);
}

.auth-toggle-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.auth-toggle-btn.active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(59, 130, 246, 0.12));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.18);
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-switch-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-inline-link {
  border: none;
  background: transparent;
  color: var(--secondary);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.auth-module-switch {
  margin-top: 4px;
  padding: 14px 16px;
}

.auth-module-switch .module-switch-label {
  font-size: 0.96rem;
}

.auth-module-switch .module-switch-description {
  font-size: 0.82rem;
}

.auth-field-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-choice-label {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-shell-register-mode #registerPanel .auth-card-head,
.auth-shell-register-mode #registerPanel .auth-choice-label {
  display: none;
}

.auth-path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 18px;
  width: 100%;
  min-width: 0;
  align-items: stretch;
  justify-content: center;
}

.auth-path-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  container-type: inline-size;
  min-height: clamp(420px, 46vw, 680px);
  border: 1px solid rgba(220, 232, 249, 0.68);
  border-radius: 28px;
  padding: clamp(16px, 1.6vw, 20px) clamp(16px, 1.6vw, 20px) clamp(14px, 1.3vw, 18px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    linear-gradient(180deg, rgba(17, 26, 40, 0.12), rgba(9, 16, 26, 0.18));
  overflow: hidden;
  color: #f8fbff;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}

.auth-path-panel-tournament_organizer {
  background:
    radial-gradient(circle at 60% 18%, rgba(255,255,255,0.22), transparent 24%),
    linear-gradient(180deg, rgba(188, 146, 255, 0.34), rgba(123, 80, 251, 0.18) 34%, rgba(41, 21, 86, 0.7) 100%),
    linear-gradient(145deg, #7d4cff, #192334);
}

.auth-path-panel-team_sport_organizer {
  background:
    radial-gradient(circle at 82% 86%, rgba(74, 222, 128, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.03) 22%, rgba(18, 34, 53, 0.72) 100%),
    linear-gradient(160deg, #627994, #30515d 72%, #2fa86e 100%);
}

.auth-path-panel-activity_organizer {
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.18), transparent 20%),
    linear-gradient(180deg, rgba(84, 219, 255, 0.16), rgba(0,0,0,0) 24%, rgba(10, 22, 30, 0.34) 100%),
    linear-gradient(160deg, #2c718f, #20acc0 62%, #47b66b 100%);
}

.auth-path-panel-invited_participant {
  background:
    radial-gradient(circle at 70% 96%, rgba(255, 171, 120, 0.22), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05) 24%, rgba(21, 33, 62, 0.3) 100%),
    linear-gradient(165deg, #5675c8, #6f93f4 62%, #d99b7c 100%);
}

.auth-path-panel:hover {
  transform: translateY(-12px) scale(1.012);
  box-shadow: 0 30px 54px rgba(17, 24, 39, 0.24);
  filter: saturate(1.05);
}

.auth-path-panel.is-active {
  transform: translateY(-2px);
  border-color: rgba(204, 246, 221, 0.95);
  box-shadow: 0 22px 42px rgba(109, 205, 153, 0.24);
}

.auth-path-panel.is-invite-landing-highlight {
  border-color: rgba(239, 68, 68, 0.92);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18), 0 24px 44px rgba(239, 68, 68, 0.22);
  animation: authInviteLandingPulse 1s ease-in-out 5;
}

.auth-path-panel.is-invite-landing-highlight .auth-path-trigger {
  border-color: rgba(239, 68, 68, 0.92);
  box-shadow: 0 18px 34px rgba(239, 68, 68, 0.18);
}

.auth-path-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 33%, rgba(255,255,255,0.08) 33% 33.4%, transparent 33.4% 66.6%, rgba(255,255,255,0.08) 66.6% 67%, transparent 67% 100%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01) 18%, rgba(8, 13, 20, 0.14) 62%, rgba(7, 11, 18, 0.34) 100%);
  pointer-events: none;
}

.auth-path-visual,
.auth-path-copy {
  position: relative;
  z-index: 1;
}

.auth-path-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-path-visual::before,
.auth-path-visual::after,
.auth-path-visual {
  content: "";
  position: absolute;
}

.auth-path-visual-tournament::before {
  inset: auto auto 0 0;
  width: 100%;
  height: 44%;
  background: radial-gradient(circle at 18% 100%, rgba(74, 222, 128, 0.32), transparent 38%);
  opacity: 0.95;
}

.auth-path-visual-tournament::after {
  inset: auto 12px 14px auto;
  width: clamp(92px, 9vw, 124px);
  height: clamp(92px, 9vw, 124px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.76) 0 28%, rgba(255,255,255,0.12) 29% 33%, transparent 34%),
    conic-gradient(from 0deg, rgba(255,255,255,0.16) 0 32deg, transparent 32deg 84deg, rgba(255,255,255,0.16) 84deg 110deg, transparent 110deg 360deg);
  opacity: 0.8;
}

.auth-path-visual-team_sport_organizer::before {
  inset: auto 22px 18px auto;
  width: clamp(94px, 9.2vw, 126px);
  height: clamp(94px, 9.2vw, 126px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.85) 0 20%, rgba(59, 130, 246, 0.22) 21% 36%, transparent 37%);
}

.auth-path-visual-team_sport_organizer::after {
  inset: auto auto 0 0;
  width: 100%;
  height: 42%;
  border-radius: 0;
  background: radial-gradient(circle at 44% 100%, rgba(74, 222, 128, 0.26), transparent 42%);
}

.auth-path-visual-activity_organizer::before {
  inset: auto auto 0 0;
  width: 100%;
  height: 40%;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 100%, rgba(44, 206, 159, 0.2), transparent 44%);
}

.auth-path-visual-activity_organizer::after {
  inset: auto 12px 14px auto;
  width: clamp(92px, 8.8vw, 120px);
  height: clamp(92px, 8.8vw, 120px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.75) 0 28%, rgba(255,255,255,0.1) 29% 33%, transparent 34%),
    conic-gradient(from 0deg, rgba(255,255,255,0.14) 0 24deg, transparent 24deg 78deg, rgba(255,255,255,0.14) 78deg 100deg, transparent 100deg 360deg);
  opacity: 0.76;
}

.auth-path-visual-invited_participant::before {
  inset: auto auto 0 0;
  width: 100%;
  height: 38%;
  border-radius: 0;
  background: radial-gradient(circle at 70% 100%, rgba(255, 174, 120, 0.22), transparent 38%);
}

.auth-path-visual-invited_participant::after {
  inset: auto 10px 14px auto;
  width: clamp(94px, 9vw, 124px);
  height: clamp(94px, 9vw, 124px);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.45) 0 22%, transparent 23%);
}

.auth-path-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 14px);
  margin-top: 0;
  margin-bottom: clamp(12px, 1.2vw, 16px);
  color: #f8fbff;
}

.auth-path-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-path-kicker,
.auth-path-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: clamp(24px, 2.1vw, 28px);
  border-radius: 999px;
  padding: clamp(4px, 0.5vw, 5px) clamp(8px, 0.8vw, 10px);
  font-size: clamp(0.66rem, 0.72vw, 0.72rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}

.auth-path-kicker {
  background: rgba(36, 125, 88, 0.82);
  color: #f4fffa;
}

.auth-path-eyebrow {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(248, 251, 255, 0.94);
}

.auth-path-copy strong {
  max-width: 12ch;
  font-size: clamp(1.7rem, 2.2vw, 2.35rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.auth-path-lead {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(0.88rem, 0.9vw, 0.96rem);
  color: rgba(240, 248, 255, 0.82);
  line-height: 1.45;
}

.auth-path-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  max-width: 31ch;
}

.auth-path-chip {
  display: inline-flex;
  align-items: center;
  min-height: clamp(30px, 2.5vw, 34px);
  border-radius: 999px;
  padding: clamp(6px, 0.7vw, 7px) clamp(10px, 0.9vw, 12px);
  font-size: clamp(0.78rem, 0.84vw, 0.86rem);
  font-weight: 700;
  color: rgba(245, 250, 255, 0.96);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.auth-path-footer {
  margin: 0;
  font-size: clamp(0.84rem, 0.9vw, 0.92rem);
  font-weight: 600;
  color: rgba(245, 250, 255, 0.92);
}

.auth-path-trigger {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  margin-top: auto;
  border-radius: 18px;
  padding: clamp(12px, 1vw, 14px) clamp(14px, 1.2vw, 18px);
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(231, 242, 252, 0.94));
  border: 1.5px solid rgba(111, 213, 151, 0.96);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(10, 15, 23, 0.14);
}

.auth-path-trigger-title {
  font-weight: 800;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  letter-spacing: -0.02em;
}

.auth-path-trigger-description {
  font-size: clamp(0.82rem, 0.9vw, 0.9rem);
  line-height: 1.5;
  color: var(--muted);
}

.auth-path-panel.is-active .auth-path-trigger {
  border-color: rgba(34, 197, 94, 0.96);
  box-shadow: 0 18px 34px rgba(34, 197, 94, 0.18);
}

.auth-register-details {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(184, 199, 217, 0.76);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(242, 248, 255, 0.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.auth-register-details.hidden {
  display: none !important;
}

.auth-register-details-head {
  margin-bottom: 18px;
  font-size: 0.98rem;
  color: var(--text);
}

.auth-path-form-slot {
  position: relative;
  z-index: 1;
  margin-top: 4px;
}

.auth-shell-register-mode #registerPanel .auth-card-head {
  margin-bottom: 24px;
}

.auth-shell-register-mode #registerPanel .auth-card-head h2 {
  max-width: 11ch;
  font-size: clamp(2.4rem, 3.8vw, 3.5rem);
}

.auth-shell-register-mode #registerPanel .auth-card-head > div:first-child {
  max-width: 700px;
}

.auth-poster {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  width: 100%;
  max-width: var(--auth-poster-width);
  justify-self: start;
  border: 1px solid rgba(184, 199, 217, 0.56);
  border-radius: 34px;
  padding: 36px 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.76), transparent 34%),
    linear-gradient(155deg, rgba(8, 20, 36, 0.88), rgba(26, 53, 92, 0.85) 52%, rgba(20, 136, 92, 0.72));
  color: #f7fbff;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.26);
}

.auth-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(255,255,255,0.18), transparent 20%),
    radial-gradient(circle at 84% 74%, rgba(34,197,94,0.22), transparent 18%),
    linear-gradient(90deg, transparent 0 18%, rgba(255,255,255,0.06) 18% 18.4%, transparent 18.4% 81.6%, rgba(255,255,255,0.06) 81.6% 82%, transparent 82% 100%),
    linear-gradient(transparent 0 14%, rgba(255,255,255,0.05) 14% 14.3%, transparent 14.3% 85.7%, rgba(255,255,255,0.05) 85.7% 86%, transparent 86% 100%);
  pointer-events: none;
}

.auth-poster::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.82) 0 30%, rgba(255,255,255,0.10) 31% 35%, transparent 36%),
    conic-gradient(from 0deg, rgba(255,255,255,0.16) 0 18deg, transparent 18deg 58deg, rgba(255,255,255,0.16) 58deg 76deg, transparent 76deg 122deg, rgba(255,255,255,0.16) 122deg 142deg, transparent 142deg 360deg);
  opacity: 0.55;
  pointer-events: none;
}

.auth-poster-topline,
.auth-poster-title,
.auth-poster-lead,
.auth-poster-bullets,
.auth-poster-footer {
  position: relative;
  z-index: 1;
}

.auth-poster-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.auth-poster-kicker,
.auth-poster-eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-poster-kicker {
  background: rgba(34, 197, 94, 0.2);
  color: #d8ffe6;
}

.auth-poster-eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(247, 251, 255, 0.88);
}

.auth-poster-title {
  max-width: 11ch;
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
}

.auth-poster-lead {
  max-width: 46ch;
  font-size: 1.02rem;
  line-height: 1.62;
  color: rgba(240, 248, 255, 0.84);
  margin-bottom: 28px;
}

.auth-poster-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-poster-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(247, 251, 255, 0.96);
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.auth-poster-footer {
  font-size: 0.95rem;
  color: rgba(240, 248, 255, 0.78);
}

.auth-poster-login {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.76), transparent 34%),
    linear-gradient(155deg, rgba(15, 23, 42, 0.9), rgba(29, 78, 216, 0.78) 54%, rgba(20, 184, 166, 0.7));
}

.auth-poster-team {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.76), transparent 34%),
    linear-gradient(155deg, rgba(8, 20, 36, 0.9), rgba(26, 53, 92, 0.84) 42%, rgba(21, 128, 61, 0.72));
}

.auth-poster-tournament {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.78), transparent 34%),
    linear-gradient(155deg, rgba(28, 15, 51, 0.92), rgba(124, 58, 237, 0.8) 44%, rgba(34, 197, 94, 0.6));
}

.auth-poster-activity {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.76), transparent 34%),
    linear-gradient(155deg, rgba(31, 41, 55, 0.9), rgba(14, 116, 144, 0.82) 46%, rgba(16, 185, 129, 0.62));
}

.auth-poster-invite {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.76), transparent 34%),
    linear-gradient(155deg, rgba(20, 20, 43, 0.9), rgba(59, 130, 246, 0.8) 42%, rgba(249, 115, 22, 0.58));
}

.statistics-overview-grid {
  margin-bottom: 8px;
}

.statistics-rank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}

.statistics-rank-box {
  text-align: center;
}

.statistics-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(184, 199, 217, 0.7);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.46);
}

.statistics-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.statistics-table-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.6fr) repeat(6, minmax(88px, 1fr));
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(184, 199, 217, 0.68);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.46);
}

.statistics-table-row.no-rank {
  grid-template-columns: minmax(160px, 1.6fr) repeat(5, minmax(88px, 1fr));
}

.statistics-table-head {
  background: rgba(237, 244, 252, 0.94);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.statistics-rank-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.statistics-movement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(103, 117, 137, 0.12);
  color: var(--text);
  font-weight: 700;
}

.statistics-movement.is-neutral {
  background: rgba(103, 117, 137, 0.12);
  color: var(--text);
}

@media (max-width: 1100px) {
  .statistics-table-row {
    grid-template-columns: 1fr;
  }

  .statistics-table-head {
    display: none;
  }
}

.profile-drawer {
  display: none !important;
}

.profile-drawer-panel {
  width: 360px;
  padding: 24px 0 24px 20px;
  overflow-y: auto;
  transition: width .24s ease, padding .24s ease;
}

.profile-drawer-tab {
  width: 44px;
  border: none;
  border-left: 1px solid rgba(184, 199, 217, 0.8);
  border-right: 1px solid rgba(184, 199, 217, 0.8);
  background: rgba(238, 245, 253, 0.9);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
}

.profile-drawer-tab-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-drawer.profile-drawer-open .profile-drawer-tab-label {
  writing-mode: horizontal-tb;
  transform: none;
  letter-spacing: 0.02em;
}

.profile-drawer.profile-drawer-collapsed .profile-drawer-panel {
  width: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

.sidebar-toggle {
  position: absolute;
  top: 18px;
  right: 10px;
  transform: none;
  width: 44px;
  min-height: 170px;
  border: 1px solid rgba(184, 199, 217, 0.9);
  border-radius: 16px;
  background: rgba(238, 245, 253, 0.96);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  pointer-events: auto;
}

.sidebar-toggle-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar-profile-panel {
  margin-top: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.one-col { grid-template-columns: 1fr; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.five-col { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.inner-grid { gap: 14px; }

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row {
  display: flex;
}
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.align-center { align-items: center; }
.gap { gap: 10px; }
.full { width: 100%; }
.top-space { margin-top: 16px; }

.label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  color: var(--text);
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
}

textarea {
  resize: vertical;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--primary);
  color: #04130a;
}

.btn:hover { background: var(--primary-dark); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.15);
}
.btn-secondary {
  background: var(--secondary);
  color: white;
}
.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}
.nav-btn.active {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.4);
}

.admin-subnav-card {
  padding: 10px 12px;
}

.admin-finance-layout {
  grid-template-columns: 1fr;
  align-items: start;
}

[data-admin-workspace-panel="team"] {
  grid-column: 1 / -1;
}

.admin-team-context-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.admin-team-context-main,
.admin-team-context-aside {
  min-width: 0;
}

.admin-team-context-aside {
  align-self: start;
}

#adminFinanceSettlementCard {
  min-width: 0;
  width: 100%;
}

.event-form-subnav-card {
  padding: 8px 10px;
  background: rgba(247, 251, 255, 0.86);
  border-color: rgba(59, 130, 246, 0.16);
}

.event-form-panel {
  display: grid;
  gap: 12px;
}

.event-form-guide {
  margin-bottom: 0;
}

.event-form-panel-body {
  display: grid;
  gap: 12px;
}

.event-form-panel .pricing-block,
.event-form-panel .notification-collapse,
.event-form-panel .recurring-box {
  margin-top: 0;
}

.finance-task-block.is-current .event-card,
.finance-task-block.is-current {
  border-color: rgba(59, 130, 246, 0.36);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08);
  border-radius: 16px;
}

.finance-finish-row.is-current {
  padding: 12px 14px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 14px;
  background: rgba(240, 253, 244, 0.84);
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subnav-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.subnav-btn.active {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
}

.subnav-btn.is-done {
  background: rgba(240, 253, 244, 0.92);
  border-color: rgba(34, 197, 94, 0.34);
}

.subnav-btn.is-current-focus:not(.active) {
  border-color: rgba(59, 130, 246, 0.34);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.06);
}

.event-form-progress-summary {
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.admin-guide-card {
  border-color: rgba(59, 130, 246, 0.22);
}

.admin-workspace-guide {
  border-color: rgba(59, 130, 246, 0.22);
  background: linear-gradient(180deg, rgba(241, 248, 255, 0.94) 0%, rgba(234, 244, 254, 0.82) 100%);
}

.event-card.is-current-focus {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08);
  background: linear-gradient(180deg, rgba(244, 250, 255, 0.98) 0%, rgba(235, 246, 255, 0.9) 100%);
}

.admin-workspace-flow {
  border-color: rgba(16, 185, 129, 0.18);
  background: linear-gradient(180deg, rgba(247, 255, 251, 0.95) 0%, rgba(237, 253, 245, 0.84) 100%);
}

.admin-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-flow-step {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  display: grid;
  gap: 6px;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.admin-flow-step:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.admin-flow-step.is-done {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(240, 253, 244, 0.92);
}

.admin-flow-step.is-current {
  border-color: rgba(59, 130, 246, 0.38);
  background: rgba(239, 246, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08);
}

.admin-flow-step.is-upcoming {
  border-style: dashed;
}

.admin-flow-step-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text);
}

.admin-flow-step-hint {
  font-size: 0.84rem;
  color: var(--muted);
  min-height: 2.4em;
}

.admin-flow-step-state {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.admin-guide-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.admin-checklist-item {
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-checklist-item.is-done {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(240, 253, 244, 0.82);
}

.admin-checklist-dot {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  font-weight: 800;
}

.admin-home-primary-card {
  border-color: rgba(34, 197, 94, 0.24);
  background: linear-gradient(180deg, rgba(247, 255, 251, 0.97) 0%, rgba(237, 253, 245, 0.9) 100%);
}

.admin-home-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.58fr);
  align-items: start;
}

.admin-home-primary-title {
  margin-top: 6px;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text);
}

.admin-home-progress-card {
  border-color: rgba(148, 163, 184, 0.18);
}

.admin-home-progress-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-home-progress-row.is-done {
  border-color: rgba(34, 197, 94, 0.26);
  background: rgba(240, 253, 244, 0.82);
}

.admin-home-progress-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  font-weight: 800;
  color: var(--text);
}

.admin-home-progress-row.is-done .admin-home-progress-mark {
  background: rgba(34, 197, 94, 0.16);
}

.admin-home-progress-label {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text);
}

.admin-home-shelf {
  padding-top: 4px;
}

.admin-home-shelf summary {
  cursor: pointer;
  list-style: none;
}

.admin-home-shelf summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 1240px) {
  .admin-home-layout {
    grid-template-columns: 1fr;
  }

  .admin-team-context-layout {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
}
.badge-muted { background: #e8f0f8; color: var(--muted); }
.badge-success { background: rgba(34, 197, 94, 0.16); color: #86efac; }
.badge-warning { background: rgba(245, 158, 11, 0.16); color: #fcd34d; }
.badge-danger { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
.badge-draft { background: rgba(59,130,246,.16); color: #93c5fd; }
.badge-rank { background: rgba(14, 165, 233, 0.16); color: #7dd3fc; }

.view {
  display: none;
  width: min(100%, var(--content-max-width));
  margin: 0;
}

.view.active { display: block; }

.message {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.message.hidden { display: none; }
.message.success { background: rgba(34, 197, 94, 0.14); color: #166534; border-color: rgba(34,197,94,.4); }
.message.error { background: rgba(239, 68, 68, 0.14); color: #b91c1c; border-color: rgba(239,68,68,.4); }
.message.info { background: rgba(245, 158, 11, 0.16); color: #92400e; border-color: rgba(245,158,11,.42); }

.message-dock {
  min-height: 86px;
  margin-top: 14px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  line-height: 1.45;
}

.message-dock.hidden {
  display: flex;
  visibility: hidden;
}

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.session-info { line-height: 1.5; }

.profile-panel {
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.95) 0%, rgba(236, 244, 252, 0.94) 58%, rgba(228, 243, 231, 0.92) 100%);
  border-color: rgba(59, 130, 246, 0.18);
}

/* Personal settings use responsive document flow. */
.profile-settings-view, .profile-settings-view * { min-width: 0; }
.profile-settings-view { overflow-wrap: anywhere; }
.profile-settings-view[hidden] { display: none !important; }
.profile-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
  align-items: start;
  gap: 20px;
}
.profile-settings-grid > [type="hidden"] { display: none; }
.profile-settings-grid h3 { font-size: 1.08rem; }
.profile-save-row { grid-column: 1 / -1; }
.profile-settings-view input:not([type="hidden"]):not([type="checkbox"]),
.profile-settings-view select, .profile-settings-view textarea { max-width: 100%; width: 100%; box-sizing: border-box; }
.profile-settings-view .btn { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.profile-settings-view .payment-qr-preview-card { flex-wrap: wrap; }
.profile-settings-view .profile-panel-head > div { flex: 1; }
.profile-settings-view .profile-avatar-preview { flex-shrink: 0; }
.session-info { overflow-wrap: anywhere; }
.sidebar { min-width: 0; }
.sidebar .message { overflow-wrap: anywhere; }
.collapsed-profile-link { width: 48px; padding: 10px; text-align: center; }
.sidebar-collapsed .sidebar-toggle {
  position: static;
  align-self: center;
  flex-shrink: 0;
  margin-bottom: 12px;
}

@media (max-width: 1100px) {
  .app-shell.sidebar-collapsed { grid-template-columns: 64px minmax(0, 1fr); }
  .profile-settings-grid { grid-template-columns: minmax(0, 1fr); }
}

.profile-panel-empty {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-panel-title {
  margin: 4px 0 0;
  font-size: 1.15rem;
}

.profile-avatar-preview {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 24px rgba(27, 43, 66, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.profile-avatar-section {
  border: 1px solid rgba(184, 199, 217, 0.8);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.56);
}

.profile-avatar-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.avatar-preset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(184, 199, 217, 0.9);
  background: rgba(247, 251, 255, 0.82);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.avatar-preset-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 10px 20px rgba(27, 43, 66, 0.08);
}

.avatar-preset-btn.active {
  border-color: rgba(34, 197, 94, 0.7);
  background: rgba(34, 197, 94, 0.14);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.avatar-preset-btn img {
  width: 100%;
  max-width: 84px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  display: block;
}

#profileAvatarUpload {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.68);
}

.hidden:not(.message-dock) {
  display: none !important;
}

.pricing-box {
  border: 1px solid rgba(184, 199, 217, 0.8);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.56);
}

.payment-summary-box {
  margin-top: 12px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(237, 250, 240, 0.95) 0%, rgba(228, 247, 232, 0.92) 100%);
}

.payment-summary-amount {
  margin-top: 4px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #166534;
}

.payment-summary-grid .detail-box {
  min-height: 86px;
}

.holiday-warning {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
}

.holiday-warning.compact {
  padding: 8px 10px;
  margin-top: 12px;
}

.holiday-warning strong {
  display: block;
  margin-bottom: 4px;
}

.notification-box {
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.94) 0%, rgba(230, 242, 232, 0.84) 100%);
}

.notification-collapse {
  margin-top: 4px;
}

.notification-prefs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.notification-switch-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.notification-switch-card > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.notification-switch-card:hover {
  transform: translateY(-1px);
}

.notification-switch-card.is-enabled {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.18) 0%, rgba(22, 163, 74, 0.12) 100%);
  border-color: rgba(34, 197, 94, 0.34);
}

.notification-switch-card.is-disabled {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.14) 0%, rgba(127, 29, 29, 0.12) 100%);
  border-color: rgba(239, 68, 68, 0.28);
}

.notification-switch-label {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.notification-switch-card .module-switch-control {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-left: auto;
  margin-top: 2px;
}

@media (max-width: 1240px) {
  .notification-prefs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .notification-prefs-grid {
    grid-template-columns: 1fr;
  }
}

.event-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.94) 0%, rgba(236, 244, 252, 0.9) 60%, rgba(230, 242, 232, 0.84) 100%);
}
.event-card h4 { margin-bottom: 8px; }

.user-break-banner {
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(254, 243, 199, 0.92));
  border-color: rgba(245, 158, 11, 0.58);
  box-shadow: 0 14px 34px rgba(146, 64, 14, 0.12);
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.user-break-banner.is-passive {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.98), rgba(226, 232, 240, 0.92));
  border-color: rgba(100, 116, 139, 0.58);
}

.user-break-title {
  color: #92400e;
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.admin-activity-card {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(239, 246, 255, 0.86));
}

.member-activity-filter-card {
  background: rgba(248, 250, 252, 0.9);
}

.member-activity-actions {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 10px;
}

@media (max-width: 720px) {
  .user-break-banner {
    align-items: stretch;
    flex-direction: column;
  }
}

.event-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 10px;
  font-size: 0.92rem;
}
.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rank-registration-notice {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.96) 0%, rgba(255, 244, 214, 0.92) 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-registration-notice.compact {
  padding: 12px 14px;
}

.rank-registration-notice-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #92400e;
}

.rank-registration-countdown {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-registration-countdown strong {
  font-size: 1rem;
  color: #7c2d12;
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.member-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
  display: inline-flex;
  width: fit-content;
  gap: 8px;
}

.readiness-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}

.readiness-panel.compact {
  margin-top: 10px;
  padding: 10px 12px;
}

.readiness-panel.is-good {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
}

.readiness-panel.is-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}

.readiness-panel.is-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
}

.readiness-panel.is-neutral {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.24);
}

.participant-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.participant-preview.compact {
  margin-top: 12px;
}

.participant-preview-section {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.participant-preview-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.participant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.participant-list.compact {
  gap: 6px;
}

.participant-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}

.participant-chip.compact {
  font-size: 0.84rem;
  padding: 6px 10px;
}

.participant-chip.is-guest {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(255, 251, 235, 0.92);
}

.participant-position {
  color: var(--muted);
  font-weight: 700;
}

.participant-name {
  font-weight: 600;
}

.participant-guest-invite {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.participant-guest-invite:hover {
  color: var(--accent-strong);
}

.participant-guest-badge {
  font-size: 0.72rem;
  padding: 3px 7px;
}

.participant-host-note {
  white-space: nowrap;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}


.module-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.96) 0%, rgba(236, 244, 252, 0.92) 100%);
  cursor: pointer;
}

.module-switch.is-saving {
  opacity: 0.7;
  cursor: progress;
}

.module-switch-label {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.module-switch-description {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.module-switch-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.module-switch-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.module-switch-track {
  position: relative;
  display: inline-flex;
  width: 86px;
  height: 46px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.28);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.18);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.module-switch-track::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.32);
  transition: transform 0.18s ease;
}

.module-switch-control input:checked + .module-switch-track {
  background: rgba(34, 197, 94, 0.28);
  border-color: rgba(34, 197, 94, 0.42);
}

.module-switch-control input:checked + .module-switch-track::before {
  transform: translateX(40px);
}

.module-switch-control input:focus-visible + .module-switch-track {
  outline: 2px solid rgba(59, 130, 246, 0.72);
  outline-offset: 3px;
}

.notification-switch-card .module-switch-track {
  width: 43px;
  height: 23px;
}

.notification-switch-card .module-switch-track::before {
  top: 2px;
  left: 2px;
  width: 17px;
  height: 17px;
}

.notification-switch-card .module-switch-control input:checked + .module-switch-track::before {
  transform: translateX(20px);
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-form-mode-note {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.74);
}

.is-readonly-field {
  opacity: 0.52;
}


.is-readonly-field summary,
.is-readonly-field .module-switch-label,
.is-readonly-field .module-switch-description {
  opacity: 0.9;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .profile-drawer {
    position: fixed;
    left: 0;
    bottom: 0;
    top: auto;
    height: auto;
    z-index: 20;
  }
  .profile-drawer-panel {
    width: min(92vw, 360px);
    max-height: min(80vh, 760px);
    padding: 16px 16px 24px 12px;
  }
  .two-col, .three-col, .four-col, .five-col { grid-template-columns: 1fr; }
  .admin-finance-layout { grid-template-columns: 1fr; }
  #adminFinanceBalancesCard { max-width: none; }
}


.card .small + .small {
  margin-top: 4px;
}

#teamInvitesAdminList .event-card,
#myInvitesList .event-card {
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.94) 0%, rgba(237, 245, 252, 0.86) 100%);
}


.section-note {
  margin-top: -6px;
  margin-bottom: 8px;
  line-height: 1.45;
}

.invite-card.is-pending {
  border-color: rgba(59,130,246,.35);
}

.invite-card-highlight {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12), 0 14px 24px rgba(239, 68, 68, 0.12);
  animation: inviteTargetFlash 0.8s ease-in-out 4;
}

.invite-card.is-closed {
  opacity: 0.96;
}

.invite-jump-highlight {
  border-color: rgba(239, 68, 68, 0.42);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.08), 0 18px 32px rgba(239, 68, 68, 0.12);
}

.invite-note {
  padding-top: 4px;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
}

.invite-landing-shell {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

.invite-landing-copy {
  padding: 8px 4px 8px 0;
}

.invite-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0f766e;
  font-weight: 700;
}

.invite-landing-title {
  margin: 10px 0 8px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.05;
  color: #0f172a;
}

.invite-landing-subtitle {
  max-width: 42ch;
  color: #334155;
  font-size: 1rem;
  line-height: 1.6;
}

.invite-landing-card {
  border-radius: 22px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.22), transparent 34%),
    linear-gradient(160deg, rgba(248, 252, 255, 0.96) 0%, rgba(229, 246, 236, 0.92) 100%);
  border: 1px solid rgba(34, 197, 94, 0.18);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.invite-team-name {
  font-size: 1.18rem;
  color: #0f172a;
}

.invite-meta-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.invite-meta-box {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.invite-meta-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.invite-meta-value {
  margin-top: 6px;
  font-weight: 700;
  color: #0f172a;
}

.invite-message-strip {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
  color: #334155;
}

.invite-landing-footnote {
  color: #475569;
  max-width: 64ch;
}

.finance-prep-card {
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(245, 250, 255, 0.97) 0%, rgba(240, 247, 255, 0.92) 100%);
}

.finance-settlement-hero {
  border-color: rgba(16, 185, 129, 0.2);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(247, 255, 251, 0.98) 0%, rgba(238, 252, 245, 0.94) 100%);
}

.finance-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
}

.finance-filter-field {
  display: grid;
  gap: 6px;
}

.finance-filter-field input,
.finance-filter-field select {
  width: 100%;
}

.finance-member-collapse summary span.row {
  justify-content: flex-end;
}

.finance-carry-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.finance-carry-box.is-debt {
  border-color: rgba(239, 68, 68, 0.24);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.86) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.finance-carry-box.is-credit {
  border-color: rgba(34, 197, 94, 0.24);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.86) 0%, rgba(255, 255, 255, 0.92) 100%);
}

@media (max-width: 820px) {
  .invite-landing-shell {
    grid-template-columns: 1fr;
  }

  .invite-meta-grid {
    grid-template-columns: 1fr;
  }
}

.message {
  transition: opacity .18s ease, transform .18s ease;
}

.message.hidden {
  opacity: 0;
  transform: translateY(-4px);
}


.view-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

#userView .view-header {
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(340px, 0.85fr);
  gap: 24px;
}

#userView .view-header > div:first-child {
  min-width: 0;
}

#userView .user-header-context {
  max-width: 760px;
}

#userView .user-header-context .role-context-card {
  width: 100%;
}

#userOverviewCards.compact-overview {
  max-width: none;
}

#userOverviewCards.overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  width: 100%;
}

.compact-overview {
  max-width: 720px;
}

#adminOverviewCards.compact-overview,
#tournamentOverviewCards.compact-overview,
#platformOverviewCards.compact-overview {
  max-width: none;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.stat-card-button {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: default;
}

.stat-card-button:disabled {
  opacity: 1;
  filter: none;
}

.team-draw-control-row {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.team-draw-strategy-selector {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min(100%, 360px);
}

.team-draw-strategy-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-draw-strategy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.team-draw-strategy-pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  padding: 8px 10px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.team-draw-strategy-pill:hover {
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-1px);
}

.team-draw-strategy-pill.is-active {
  border-color: rgba(22, 163, 74, 0.56);
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.96), rgba(187, 247, 208, 0.88));
  color: #14532d;
}

.team-draw-strategy-help {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  display: grid;
  gap: 3px;
  line-height: 1.35;
  max-width: 520px;
  padding: 8px 10px;
  text-align: right;
}

.team-draw-strategy-help strong {
  color: var(--text);
  font-size: 0.82rem;
}

.team-draw-strategy-help span {
  font-size: 0.78rem;
}

.user-invite-alert-card {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.user-invite-alert-card:hover {
  transform: translateY(-1px);
}

.user-invite-alert-card.is-pulsing {
  border-color: rgba(239, 68, 68, 0.52);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.96) 0%, rgba(255, 228, 230, 0.92) 100%);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.10), 0 16px 28px rgba(239, 68, 68, 0.14);
  animation: pendingInvitePulse 1s ease-in-out 5;
}

@keyframes pendingInvitePulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

@keyframes authInviteLandingPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-6px) scale(1.015);
  }
}

@keyframes inviteTargetFlash {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.01);
  }
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1rem;
  font-weight: 700;
  word-break: break-word;
}

.stat-helper {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #b91c1c;
}

.section-note {
  margin-bottom: 10px;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.is-current-card {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2) inset;
}

.context-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.role-context-card {
  grid-column: 1 / -1;
  border-color: rgba(96, 165, 250, 0.42);
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 56%, rgba(236, 253, 245, 0.82) 100%);
}

.role-context-card.is-player-context {
  border-color: rgba(245, 158, 11, 0.44);
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.98) 0%, rgba(255, 255, 255, 0.9) 58%, rgba(239, 246, 255, 0.78) 100%);
}

.role-context-card.is-admin-context {
  border-color: rgba(34, 197, 94, 0.38);
}

.role-context-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.role-context-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 170px;
}

.help-shell {
  max-width: 1180px;
}

.help-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-color: rgba(59, 130, 246, 0.34);
  background:
    radial-gradient(circle at top right, rgba(187, 247, 208, 0.38), transparent 34%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.9));
}

.help-hero h2,
.contact-card h2,
.legal-notice-card h2 {
  margin-bottom: 8px;
}

.help-hero-badge,
.help-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.help-card-head h3 {
  margin-top: 8px;
}

.help-step-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.help-step-list li {
  margin-bottom: 10px;
  line-height: 1.45;
}

.help-step-list.unordered {
  list-style: disc;
}

.help-mini-panel {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.help-mini-panel h4 {
  margin-bottom: 8px;
}

.help-pill-list span {
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(239, 246, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-email-link {
  display: inline-flex;
  margin-top: 8px;
  text-decoration: none;
}

.legal-notice-card {
  border-color: rgba(15, 23, 42, 0.2);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.84));
}

.legal-signature {
  margin-top: 16px;
  color: #0f172a;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.rules-text-box {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  white-space: normal;
}

.rules-attention-card {
  border-color: rgba(245, 158, 11, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.86));
}

.rules-admin-card.is-enabled {
  border-color: rgba(34, 197, 94, 0.38);
  background:
    linear-gradient(135deg, rgba(240, 253, 244, 0.94), rgba(255, 255, 255, 0.88));
}

.rules-acceptance-check {
  display: inline-flex;
  width: min(100%, 680px);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.94), rgba(255, 255, 255, 0.88));
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.rules-acceptance-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  min-width: 30px;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(34, 197, 94, 0.62);
  border-radius: 9px;
  background: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.rules-acceptance-check input::after {
  content: "";
  width: 8px;
  height: 14px;
  border: solid #ffffff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 120ms ease;
}

.rules-acceptance-check input:checked {
  background: var(--primary);
  border-color: var(--primary-dark);
}

.rules-acceptance-check input:checked::after {
  transform: rotate(45deg) scale(1);
}

.rules-acceptance-check span {
  max-width: 46ch;
}

.invite-note {
  padding-top: 4px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

@media (max-width: 1100px) {
  .view-header {
    flex-direction: column;
  }

  #userView .view-header {
    grid-template-columns: 1fr;
  }

  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  #userOverviewCards.overview-grid {
    grid-template-columns: 1fr;
  }

  .team-draw-control-row,
  .team-draw-strategy-selector {
    align-items: stretch;
    flex-direction: column;
  }

  .team-draw-strategy-pills {
    justify-content: flex-start;
  }

  .team-draw-strategy-help {
    max-width: none;
    text-align: left;
  }

  .context-strip {
    flex-direction: column;
  }

  .role-context-actions {
    align-items: flex-start;
    min-width: 0;
  }

  .help-hero {
    flex-direction: column;
  }

  .admin-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-flow-grid {
    grid-template-columns: 1fr;
  }
}

.hero-card {
  padding: 20px;
}

.hero-headline-row {
  align-items: flex-start;
}

.section-header-wrap {
  align-items: flex-start;
}

.focus-event-card {
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.97) 0%, rgba(235, 244, 251, 0.92) 56%, rgba(230, 242, 232, 0.9) 100%);
}

.focus-event-title {
  margin: 4px 0 6px;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.15;
}

.focus-event-date-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.focus-event-weekday {
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: capitalize;
}

.focus-event-subtitle {
  color: #27445f;
  font-size: 1.02rem;
  font-weight: 700;
}

.hero-status-stack {
  align-items: flex-end;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.compact-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-stat {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.compact-mini-stat {
  padding: 10px;
}

.mini-stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.mini-stat-value {
  font-size: 1rem;
  font-weight: 700;
}

.event-accordion {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.event-accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-weight: 600;
}

.event-accordion summary::-webkit-details-marker {
  display: none;
}

.event-accordion summary::after {
  content: '▾';
  float: right;
  color: var(--muted);
}

.event-accordion[open] summary::after {
  content: '▴';
}

.accordion-body {
  padding: 0 14px 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-box {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.attendance-summary-card.compact {
  margin-top: 0;
}

.attendance-summary-grid {
  align-items: stretch;
}

.attendance-row {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(240px, 1.15fr) minmax(150px, 0.7fr) minmax(220px, 0.95fr) minmax(150px, 0.7fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.attendance-row-identity {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.attendance-row-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.attendance-row-finance,
.attendance-row-target,
.attendance-row-statuscell {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.attendance-row-finance-meta {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--muted);
}

.attendance-row-payment {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  align-self: center;
}

.attendance-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.attendance-row-actions .btn {
  flex: 0 0 auto;
  min-width: 108px;
  justify-content: center;
}

.attendance-payment-input {
  min-width: 0;
  width: 100%;
}

.attendance-row-target .detail-value,
.attendance-row-statuscell .detail-value {
  font-size: 1rem;
  font-weight: 700;
}

.attendance-row-payment .small.muted {
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .attendance-row {
    grid-template-columns: 1fr;
  }

  .attendance-row-payment {
    width: 100%;
  }

  .attendance-row-actions {
    justify-content: flex-start;
  }
}

.payment-qr-preview-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.payment-qr-image {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.88);
}

.payment-qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(6px);
}

.payment-qr-dialog {
  position: relative;
  width: min(92vw, 420px);
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.24);
  text-align: center;
}

.payment-qr-finance-summary {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.9) 0%, rgba(248, 250, 252, 0.96) 100%);
  border: 1px solid rgba(34, 197, 94, 0.16);
}

.payment-qr-finance-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: #166534;
}

.payment-qr-finance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  text-align: left;
}

.payment-qr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.92);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.payment-qr-image-large {
  width: min(100%, 280px);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 18px auto 14px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: white;
  padding: 12px;
}

.payment-qr-username {
  font-weight: 700;
  margin-bottom: 10px;
}

.attendance-ledger-row {
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, 1fr));
  align-items: stretch;
}

.finance-history-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(100px, 0.8fr) minmax(110px, 0.9fr) auto;
  align-items: center;
  gap: 12px;
}

.finance-history-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.finance-history-main strong,
.finance-history-main .small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-history-amount,
.finance-history-balance {
  font-weight: 700;
  white-space: nowrap;
}

.finance-history-action {
  display: flex;
  justify-content: flex-end;
}

.finance-history-action .btn,
.finance-history-action .btn-inline-link {
  min-height: 40px;
  white-space: nowrap;
}

.detail-label {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.detail-value {
  font-weight: 600;
}

.finance-delta-positive {
  color: #15803d;
}

.finance-delta-negative {
  color: #b91c1c;
}

.finance-delta-neutral {
  color: inherit;
}

.detail-multiline {
  white-space: pre-wrap;
  line-height: 1.5;
}

.btn-inline-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.user-event-card {
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.95) 0%, rgba(236, 244, 252, 0.9) 100%);
}

.team-accent-card {
  border-left: 6px solid var(--team-accent, #60a5fa);
  background:
    linear-gradient(180deg, var(--team-accent-soft, rgba(191, 219, 254, 0.18)) 0%, rgba(247, 251, 255, 0.96) 36%, rgba(236, 244, 252, 0.92) 100%);
}

.team-accent-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--team-accent-badge, rgba(191, 219, 254, 0.22));
  font-weight: 700;
  color: var(--text);
}

.compact-team-card {
  padding: 12px 14px;
}

.secondary-user-card {
  opacity: 0.96;
}

.user-seven-day-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.user-seven-day-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(184, 199, 217, 0.85);
  border-radius: 18px;
  background: rgba(247, 251, 255, 0.82);
  overflow: hidden;
}

.user-seven-day-column.is-weekend {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.92) 0%, rgba(232, 240, 248, 0.9) 100%);
}

.user-seven-day-column.is-holiday {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.95) 0%, rgba(255, 239, 213, 0.9) 100%);
  border-color: rgba(245, 158, 11, 0.38);
}

.user-seven-day-header {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(184, 199, 217, 0.72);
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(236,244,252,0.9) 100%);
}

.user-seven-day-column.is-weekend .user-seven-day-header {
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.92) 0%, rgba(241, 245, 249, 0.9) 100%);
}

.user-seven-day-column.is-holiday .user-seven-day-header {
  background: linear-gradient(180deg, rgba(254, 215, 170, 0.86) 0%, rgba(255, 237, 213, 0.92) 100%);
}

.user-seven-day-date {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text);
}

.user-seven-day-weekday {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 3px;
}

.user-seven-day-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  min-height: 240px;
}

.user-seven-day-empty {
  margin-top: auto;
  margin-bottom: auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 12px 8px;
  border: 1px dashed rgba(184, 199, 217, 0.9);
  border-radius: 14px;
  background: rgba(255,255,255,0.52);
}

.user-seven-day-event {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.55);
  border-left: 6px solid var(--team-accent, #60a5fa);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  background: linear-gradient(180deg, var(--team-accent-soft, rgba(191, 219, 254, 0.16)) 0%, rgba(255,255,255,0.94) 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.user-seven-day-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.user-seven-day-event.is-active {
  border-color: var(--team-accent, #60a5fa);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--team-accent, #60a5fa) 28%, white), 0 16px 32px rgba(15, 23, 42, 0.12);
}

.user-seven-day-event-team {
  margin-bottom: 10px;
}

.user-seven-day-event-title {
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.user-seven-day-event-time {
  margin-top: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.user-seven-day-event-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.collapsed-group {
  margin-top: 12px;
}

.event-actions-inline .btn,
.event-actions-inline .btn-inline-link {
  min-height: 42px;
}

@media (max-width: 1100px) {
  .hero-metrics,
  .compact-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .participant-preview {
    grid-template-columns: 1fr;
  }

  .user-seven-day-board {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 720px) {
  .hero-metrics,
  .compact-metrics {
    grid-template-columns: 1fr;
  }

  .hero-status-stack {
    align-items: flex-start;
  }

  .finance-history-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .finance-history-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .finance-history-main strong,
  .finance-history-main .small {
    white-space: normal;
  }

  .finance-history-action {
    justify-content: stretch;
  }

  .finance-history-action .btn,
  .finance-history-action .btn-inline-link {
    width: 100%;
    justify-content: center;
  }

  .user-seven-day-board {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .user-seven-day-column {
    min-width: min(82vw, 280px);
    flex: 0 0 min(82vw, 280px);
    scroll-snap-align: start;
  }

  .user-seven-day-body {
    min-height: 180px;
  }
}


.admin-collapse {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(247, 251, 255, 0.82);
  overflow: hidden;
}

.admin-collapse + .admin-collapse {
  margin-top: 12px;
}

.admin-collapse summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.admin-collapse summary::-webkit-details-marker {
  display: none;
}

.admin-collapse summary::after {
  content: '▾';
  color: var(--muted);
  font-size: 0.95rem;
  margin-left: auto;
}

.admin-collapse:not([open]) summary::after {
  content: '▸';
}

.admin-collapse-body {
  padding: 0 14px 14px;
  display: grid;
  gap: 10px;
}

.hidden-block {
  display: none;
}

.recurring-box {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.recurring-toggle-line {
  font-weight: 600;
}

.recurring-note {
  margin-top: 6px;
  margin-bottom: 0;
}

.recurring-options {
  margin-top: 12px;
}

.rank-hero-card {
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.97) 0%, rgba(235, 244, 251, 0.9) 100%);
}

.rank-hero-headline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rank-hero-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 2rem;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.rank-hero-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.rank-list-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.rank-list-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  min-height: 150px;
}

.rank-list-emoji {
  font-size: 1.85rem;
  line-height: 1;
  margin-bottom: 10px;
}

.rank-list-title {
  font-weight: 800;
  margin-bottom: 8px;
}

.rank-admin-box {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.weather-placeholder-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 249, 232, 0.96) 0%, rgba(244, 250, 255, 0.92) 100%);
}

.weather-placeholder-card.compact {
  padding: 14px 16px;
  gap: 14px;
}

.weather-placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  font-size: 2rem;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.28);
  flex: 0 0 auto;
}

.weather-placeholder-card.compact .weather-placeholder-icon {
  width: 56px;
  height: 56px;
  font-size: 1.65rem;
}

.weather-widget-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.weather-widget-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.weather-widget-metrics.compact {
  gap: 8px;
}

.weather-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.18);
  font-size: 0.9rem;
}

.admin-home-sidecard {
  background: rgba(247, 251, 255, 0.86);
}

.bottom-space {
  margin-bottom: 10px;
}

@media (max-width: 720px) {
  .rank-hero-headline,
  .weather-placeholder-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-hero-emoji,
  .weather-placeholder-icon {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }

  .rank-list-grid {
    grid-template-columns: 1fr;
  }

  .event-actions,
  .event-actions-inline {
    width: 100%;
  }

  .event-actions .btn,
  .event-actions .btn-inline-link,
  .event-actions-inline .btn,
  .event-actions-inline .btn-inline-link {
    width: 100%;
    justify-content: center;
  }

  .profile-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-avatar-preview {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 720px) {
  .auth-shell,
  .auth-shell.auth-shell-register-mode {
    grid-template-columns: 1fr;
  }

  .auth-shell.auth-shell-register-mode {
    max-width: 100%;
  }

  .auth-version-note {
    width: min(100%, calc(var(--auth-register-max-width) - 24px));
    margin: 12px auto 0;
    text-align: left;
  }

  .auth-shell-register-mode #registerPanel {
    padding: 0 12px;
    overflow-x: visible;
  }

  .auth-path-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    min-width: 0;
    overflow: visible;
    padding: 0;
  }

  .auth-path-panel {
    width: 100%;
    min-height: clamp(360px, 68svh, 560px);
    aspect-ratio: auto;
    padding: clamp(14px, 4.2vw, 20px);
    border-radius: 24px;
  }

  .auth-path-copy strong {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
    max-width: 11ch;
  }

  .auth-path-lead,
  .auth-path-bullets,
  .auth-path-footer {
    max-width: 100%;
  }

  .auth-path-lead {
    font-size: clamp(0.86rem, 3.6vw, 0.98rem);
  }

  .auth-path-bullets {
    gap: 8px;
  }

  .auth-path-chip {
    min-height: clamp(28px, 8vw, 34px);
    padding: clamp(6px, 2vw, 8px) clamp(10px, 3vw, 12px);
    font-size: clamp(0.76rem, 3vw, 0.88rem);
  }

  .auth-path-trigger {
    margin-top: 18px;
    padding: clamp(12px, 3.4vw, 16px);
  }

  .auth-path-trigger-title {
    font-size: clamp(0.96rem, 4vw, 1.1rem);
  }

  .auth-path-trigger-description {
    font-size: clamp(0.8rem, 3.3vw, 0.92rem);
  }

  .auth-path-kicker,
  .auth-path-eyebrow {
    font-size: clamp(0.62rem, 2.6vw, 0.72rem);
  }

  .auth-path-visual-tournament::after,
  .auth-path-visual-team_sport_organizer::before,
  .auth-path-visual-activity_organizer::after,
  .auth-path-visual-invited_participant::after {
    width: clamp(76px, 22vw, 104px);
    height: clamp(76px, 22vw, 104px);
  }

  .auth-register-details {
    padding: clamp(12px, 3.5vw, 16px);
  }

  .auth-card-head,
  .auth-switch-note {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-toggle {
    width: 100%;
  }

  .auth-toggle-btn {
    flex: 1 1 0;
  }

  .attendance-row-actions .btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  .attendance-ledger-row {
    grid-template-columns: 1fr;
  }

  .payment-qr-preview-card {
    grid-template-columns: 1fr;
  }

  .payment-qr-finance-grid {
    grid-template-columns: 1fr;
  }

  .finance-filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) and (max-width: 960px) {
  .auth-shell.auth-shell-register-mode {
    max-width: min(100%, 920px);
  }

  .auth-shell-register-mode #registerPanel {
    padding: 0 16px;
    overflow: visible;
  }

  .auth-path-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    min-width: 0;
    overflow: visible;
    padding: 0;
  }

  .auth-path-panel {
    min-width: 0;
    min-height: clamp(360px, 44vw, 500px);
    border-radius: 24px;
    padding: 16px 16px 14px;
  }

  .auth-path-copy {
    gap: 10px;
    margin-bottom: 12px;
  }

  .auth-path-copy strong {
    max-width: 10ch;
    font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  }

  .auth-path-lead {
    max-width: 30ch;
    font-size: clamp(0.8rem, 1.15vw, 0.9rem);
  }

  .auth-path-bullets {
    max-width: 100%;
    gap: 8px;
  }

  .auth-path-chip {
    min-height: 26px;
    font-size: 0.72rem;
    padding: 5px 9px;
  }

  .auth-path-footer {
    font-size: 0.78rem;
  }

  .auth-path-trigger {
    padding: 11px 13px;
    border-radius: 16px;
  }

  .auth-path-trigger-title {
    font-size: 0.92rem;
  }

  .auth-path-trigger-description {
    font-size: 0.78rem;
  }

  .auth-version-note {
    width: min(100%, calc(100% - 32px));
    margin-top: 14px;
    padding-inline: 16px;
    text-align: left;
    font-size: 0.86rem;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .auth-shell {
    grid-template-columns: 1fr;
    max-width: 920px;
  }

  .auth-poster {
    max-width: none;
    justify-self: stretch;
    min-height: 420px;
  }

  .auth-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 721px) and (max-width: 960px) {
  .auth-shell.auth-shell-register-mode {
    max-width: 100%;
    justify-items: stretch;
  }

  .auth-shell-register-mode #registerPanel {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    overflow: visible;
  }

  .auth-path-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px;
    width: 100%;
    min-width: 0;
    overflow: visible !important;
    padding: 0;
    align-items: stretch;
  }

  .auth-path-panel {
    width: 100%;
    min-width: 0;
    min-height: clamp(360px, 44vw, 500px);
  }

  .auth-version-note {
    width: calc(100% - 32px);
    max-width: none;
    padding-inline: 16px;
    text-align: left;
  }
}

/* Registration chooser redesign */
.auth-shell-register-mode #registerPanel {
  max-width: 1120px;
}

.auth-choice-label {
  display: none;
}

.auth-registration-intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(184, 199, 217, 0.76);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.9));
}

.auth-registration-intro h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.auth-registration-intro p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.55;
}

.auth-registration-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  min-width: 0;
  align-items: start;
}

.auth-path-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(191, 203, 219, 0.82);
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.98), rgba(240, 247, 253, 0.94));
  color: var(--text);
  box-shadow: 0 18px 42px rgba(27, 43, 66, 0.08);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.auth-path-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(27, 43, 66, 0.12);
  filter: none;
}

.auth-path-panel::after,
.auth-path-visual,
.auth-path-visual::before,
.auth-path-visual::after {
  display: none !important;
  content: none !important;
}

.auth-path-panel-tournament_organizer {
  border-top: 5px solid #7c3aed;
}

.auth-path-panel-team_sport_organizer {
  border-top: 5px solid #2563eb;
}

.auth-path-panel-activity_organizer {
  border-top: 5px solid #0f766e;
}

.auth-path-panel-invited_participant {
  border-top: 5px solid #d97706;
}

.auth-path-panel.is-active {
  grid-column: 1 / -1;
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 26px 56px rgba(34, 197, 94, 0.14);
  transform: none;
}

.auth-path-trigger {
  order: -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  color: inherit;
}

.auth-path-panel.is-active .auth-path-trigger {
  border: none;
  box-shadow: none;
}

.auth-path-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-path-kicker,
.auth-path-eyebrow {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: none;
}

.auth-path-kicker {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.auth-path-eyebrow {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

.auth-path-trigger-title {
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-path-trigger-description {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.auth-path-copy {
  gap: 12px;
  margin: 0;
  color: inherit;
}

.auth-path-copy strong {
  display: none;
}

.auth-path-lead {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.auth-path-bullets {
  max-width: none;
  gap: 8px;
}

.auth-path-chip {
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(184, 199, 217, 0.72);
  background: rgba(248, 252, 255, 0.92);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.auth-path-footer {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.auth-path-form-slot {
  margin-top: 16px;
}

.auth-register-details {
  margin-top: 0;
  padding: 20px;
  border: 1px solid rgba(184, 199, 217, 0.76);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.auth-register-details-head {
  margin-bottom: 16px;
}

@media (max-width: 960px) {
  .auth-shell-register-mode #registerPanel {
    max-width: 100%;
    padding: 0 12px;
  }

  .auth-path-grid {
    grid-template-columns: 1fr;
  }

  .auth-path-panel.is-active {
    grid-column: auto;
  }

  .auth-registration-intro {
    padding: 18px;
    border-radius: 20px;
  }

  .auth-path-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .auth-path-trigger-title {
    font-size: 1.08rem;
  }

  .auth-path-trigger-description,
  .auth-path-lead {
    font-size: 0.9rem;
  }
}

@media (max-width: 720px) {
  #authView.auth-view-shell {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    min-height: auto;
    padding-top: 0 !important;
  }

  #authView.auth-view-shell:not(.active) {
    display: none !important;
  }

  .app-shell.guest-mode .main {
    padding: 10px;
  }

  .auth-shell,
  .auth-shell.auth-shell-register-mode {
    width: 100%;
    max-width: min(100%, 390px);
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px;
    align-self: flex-start;
    justify-self: start;
    margin: 0;
    padding-top: 0;
  }

  .auth-form-stage {
    width: 100%;
  }

  .auth-form-stage > .auth-card,
  .auth-shell:not(.auth-shell-register-mode) .auth-form-stage > .auth-card {
    width: 100%;
    max-width: none;
  }

  .auth-card {
    padding: clamp(18px, 5vw, 22px);
    border-radius: 22px;
  }

  .auth-card-head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .auth-card-head > div:first-child {
    max-width: none;
  }

  .auth-card-head h2 {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
    line-height: 1;
  }

  .auth-poster {
    display: none;
  }

  .auth-version-note {
    order: 2;
    align-self: flex-start;
    width: 100%;
    max-width: min(100%, 390px);
    margin: 10px 0 0;
    padding: 0 8px;
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.35;
    opacity: 0.72;
  }

  .auth-version-note span {
    white-space: normal;
  }
}
div:has(> #eventLocation),
label[for="eventLocation"] {
  display: none;
}

.email-verification-panel {
  width: min(100%, 640px);
  margin: 0 0 20px;
  align-self: center;
}

.email-verification-panel[hidden],
.email-verification-panel form[hidden],
#authView.email-verification-open .auth-shell {
  display: none !important;
}

.email-verification-panel h2 {
  overflow-wrap: anywhere;
}

.email-verification-panel [role="status"] {
  line-height: 1.5;
}

.place-suggest-host { position: relative; }
.place-suggest-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: 100%;
  margin: 2px 0 0;
  padding: 4px 0;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  background: var(--surface, #fff);
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.place-suggest-list[hidden] { display: none; }
.place-suggest-list li {
  padding: 9px 12px;
  cursor: pointer;
  font-size: 0.95rem;
}
.place-suggest-list li:hover,
.place-suggest-list li.is-active { background: rgba(37, 99, 235, 0.12); }

.location-map-panel { margin: 8px 0 12px; display: grid; gap: 6px; }
.location-map-panel[hidden] { display: none; }
.location-map {
  height: 340px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  z-index: 0;
}

.weather-alert-banner {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #f59e0b;
  background: rgba(245, 158, 11, 0.14);
}
.weather-alert-banner.severe { border-color: #dc2626; background: rgba(220, 38, 38, 0.14); }
.weather-alert-banner ul, .weather-advice ul { margin: 4px 0 0; padding-left: 18px; }
.weather-advice { margin-top: 8px; }

.quick-rsvp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
}
.quick-rsvp-card {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 14px;
  background: var(--surface, #fff);
  color: inherit;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.quick-rsvp-card h3 { margin: 0; }
.quick-rsvp-buttons .btn { flex: 1; min-height: 48px; font-size: 1.05rem; }

/* --- Admin navigáció: csoportosított sáv + almenü --------------------------------- */
.subnav-btn.is-nav-secondary {
  display: none;
}

.admin-subnav-secondary {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.admin-subnav-secondary[hidden] {
  display: none;
}

.subnav-sub-btn {
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.subnav-sub-btn.active {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.4);
}

/* --- Beállítások: két oszlop (lista + kiválasztott rész), teljes szélesség --------- */
[data-admin-workspace-panel="customization"] {
  grid-column: 1 / -1;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-nav-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.settings-nav-item.active {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.5);
}

.settings-nav-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.settings-nav-summary {
  font-size: 0.85rem;
  color: #4b5d75;
}

.settings-new-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .settings-nav-item {
    flex: 1 1 160px;
  }
}

/* Játékos nézet: a teendő előre, oldalsáv a másodlagos adatoknak */
#userView .user-focus-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}
#userView .user-focus-row > .hero-card {
  flex: 999 1 560px;
  min-width: 0;
}
#userView .user-side-column {
  flex: 1 1 280px;
  max-width: 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#userView .user-side-column > .card {
  margin: 0;
}
@media (max-width: 900px) {
  #userView .user-side-column { max-width: none; flex-basis: 100%; }
}

#userView .hero-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#userView .hero-primary-actions:empty { display: none; }
#userView .hero-primary-actions .btn {
  min-height: 48px;
  padding: 0 22px;
  font-size: 1rem;
  font-weight: 700;
}
#userView .hero-card > .row .section-note { display: none; }
#userView .user-seven-day-board {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  #userView .user-seven-day-board {
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    overflow-x: auto;
  }
}

/* ===== Élénk, sportos arculat – 1. lépés: alap stílus + menü ===== */
:root {
  --pitch-900: #052e1b;
  --pitch-700: #0f5132;
  --lime: #a3e635;
  --primary: #22c55e;
  --primary-dark: #15803d;
  --radius-card: 22px;
}
.sidebar {
  background: linear-gradient(180deg, var(--pitch-900) 0%, var(--pitch-700) 100%);
  border-right: none;
  color: #ecfdf3;
  backdrop-filter: none;
  box-shadow: 6px 0 28px rgba(5, 46, 27, 0.25);
}
.sidebar h1 {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.sidebar h1::before { content: none; }
.sidebar > div:first-of-type > p.muted { display: none; }
.sidebar .muted, .sidebar .small.muted { color: rgba(236, 253, 243, 0.72); }
.sidebar .card.compact {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  color: #fff;
}
.sidebar .card.compact strong { color: #fff; }
.sidebar .session-info, .sidebar .session-info * { color: #ecfdf3; }
.sidebar .nav { gap: 6px; }
.sidebar .nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: rgba(236, 253, 243, 0.9);
  font-size: 0.98rem;
  font-weight: 600;
  transition: background .15s ease, transform .15s ease;
}
.sidebar .nav-btn::before {
  content: "";
  flex: 0 0 22px;
  height: 22px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 22px;
}
.sidebar .nav-btn[data-view="authView"]::before { content: "🔑"; }
.sidebar .nav-btn[data-view="adminView"]::before { content: "🛡️"; }
.sidebar .nav-btn[data-view="userView"]::before { content: "⚽"; }
.sidebar .nav-btn[data-view="rankView"]::before { content: "🏆"; }
.sidebar .nav-btn[data-view="rulesView"]::before { content: "📋"; }
.sidebar .nav-btn[data-view="profileView"]::before { content: "👤"; }
.sidebar .nav-btn[data-view="helpView"]::before { content: "💡"; }
.sidebar .nav-btn[data-view="contactView"]::before { content: "✉️"; }
.sidebar .nav-btn:hover { background: rgba(255, 255, 255, 0.10); transform: translateX(2px); }
.sidebar .nav-btn.active {
  background: var(--lime);
  color: #14290a;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(163, 230, 53, 0.35);
}
.card {
  border-radius: var(--radius-card);
  box-shadow: 0 14px 36px rgba(15, 60, 40, 0.10);
}
.card h2 { font-weight: 800; letter-spacing: -0.01em; }
.btn {
  border-radius: 999px;
  padding: 11px 18px;
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(21, 128, 61, 0.28);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { background: linear-gradient(135deg, #16a34a 0%, #166534 100%); transform: translateY(-1px); }
.btn-secondary { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); box-shadow: 0 6px 16px rgba(29, 78, 216, 0.25); }
.btn-secondary:hover { background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); }
.btn-danger { background: linear-gradient(135deg, #f87171 0%, #dc2626 100%); box-shadow: 0 6px 16px rgba(220, 38, 38, 0.25); }
.btn-ghost { background: transparent; box-shadow: none; color: var(--text); }
.btn-ghost:hover { background: rgba(34, 197, 94, 0.10); }
.sidebar .card.compact > .small.muted.top-space { display: none; }
.sidebar .message, .sidebar .message * { color: #14290a; }
.sidebar .message { background: rgba(236, 253, 243, 0.95); border-color: rgba(163, 230, 53, 0.6); }
.sidebar .message.error, .sidebar .message.message-error { background: #fee2e2; }
.sidebar .message.error *, .sidebar .message.message-error * { color: #7f1d1d; }

/* ===== Játékos csempés kezdőlap ===== */
.is-tile-hidden { display: none !important; }
#userView[data-user-tile-section="finance"] .user-side-column,
#userView[data-user-tile-section="skill"] .user-side-column { max-width: none; flex-basis: 100%; }
.user-tile-home { display: flex; flex-direction: column; gap: 18px; }
.user-tile-greeting h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0b2e1d;
}
.user-tile-greeting p { margin: 4px 0 0; color: #3f5248; font-size: 1rem; }
.user-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(168px, auto);
  gap: 16px;
}
.user-tile {
  min-height: 168px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid #cfdcd2;
  background: #ffffff;
  color: #172334;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(11, 61, 38, 0.08);
  transition: transform .14s ease, box-shadow .14s ease;
}
button.user-tile:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(11, 61, 38, 0.14); }
button.user-tile:focus-visible, .user-tile-extra:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }
.user-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.user-tile-icon {
  width: 48px; height: 48px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef4ee; color: #0f5132;
}
.user-tile-label { margin-top: auto; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.user-tile-value { font-size: 0.92rem; line-height: 1.4; color: #3f5248; }
.user-tile-badge { padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; color: #ffffff; white-space: nowrap; }
.user-tile-badge.badge-alert { background: #c2410c; }
.user-tile-badge.badge-dark { background: #0b3d26; }
.user-tile.tone-lime { background: #a3e635; border-color: #a3e635; color: #14290a; }
.user-tile.tone-lime .user-tile-value { color: #1f3d0c; }
.user-tile.tone-lime .user-tile-icon { background: #14290a; color: #a3e635; }
.user-tile.tone-strong { background: #15803d; border-color: #15803d; color: #ffffff; }
.user-tile.tone-strong .user-tile-value { color: #ecfdf3; }
.user-tile.tone-strong .user-tile-icon { background: rgba(255, 255, 255, 0.16); color: #ffffff; }
.user-tile.tone-mid { background: #dcfce7; border-color: #bbf0cd; color: #052e1b; }
.user-tile.tone-mid .user-tile-value { color: #166534; }
.user-tile.tone-mid .user-tile-icon { background: #ffffff; color: #15803d; }

.user-tile-big {
  grid-column: span 2;
  grid-row: span 2;
  padding: 26px;
  border: none;
  border-radius: 26px;
  background: #0f5132;
  color: #ffffff;
  gap: 16px;
  cursor: default;
  box-shadow: 0 18px 40px rgba(11, 61, 38, 0.28);
}
.user-tile-kicker { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; color: #a3e635; }
.user-tile-countdown { padding: 4px 12px; border-radius: 999px; background: #a3e635; color: #14290a; font-size: 0.82rem; font-weight: 800; }
.user-tile-status { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #ffffff; font-size: 0.82rem; font-weight: 700; }
.user-tile-big-title { margin: 0; font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 900; line-height: 1.1; color: #ffffff; }
.user-tile-big-meta { margin: 6px 0 0; color: rgba(255, 255, 255, 0.88); font-size: 1rem; }
.user-tile-progress-block { display: flex; flex-direction: column; gap: 6px; }
.user-tile-progress-label { display: flex; justify-content: space-between; gap: 8px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.88); }
.user-tile-progress { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.user-tile-progress > span { display: block; height: 100%; border-radius: 999px; background: #a3e635; }
.user-tile-big-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; }
.user-tile-big-actions .btn { min-height: 52px; padding: 0 22px; font-size: 1rem; font-weight: 800; }
.user-tile-big-actions .btn:not(.btn-danger):not(.btn-secondary):not(.user-tile-detail-btn) { background: #a3e635; color: #14290a; box-shadow: 0 8px 20px rgba(163, 230, 53, 0.35); }
.user-tile-big-actions .btn-secondary { background: rgba(255, 255, 255, 0.16); box-shadow: none; }
.user-tile-detail-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent !important; color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.7) !important; box-shadow: none !important;
}

.user-tile-extras-title { margin: 6px 0 0; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.06em; color: #3f5248; }
.user-tile-extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.user-tile-extra {
  min-height: 60px; padding: 0 16px;
  display: flex; align-items: center; gap: 12px;
  border-radius: 18px; border: 1px solid #cfdcd2; background: #ffffff; color: #172334;
  font: inherit; font-size: 0.98rem; font-weight: 700; text-align: left; cursor: pointer;
}
.user-tile-extra svg:first-child { color: #0f5132; }
.user-tile-extra span { flex-grow: 1; }

.user-tile-backbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.user-tile-backbar h2 { margin: 0; font-size: 1.5rem; font-weight: 900; color: #0b2e1d; }
.user-tile-back { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; background: #0f5132 !important; color: #ffffff; }

@media (max-width: 1100px) {
  .user-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .user-tile-grid { gap: 10px; grid-auto-rows: minmax(118px, auto); }
  .user-tile { min-height: 118px; padding: 14px; border-radius: 20px; }
  .user-tile-icon { width: 38px; height: 38px; border-radius: 12px; }
  .user-tile-label { font-size: 1.05rem; }
  .user-tile-value { font-size: 0.8rem; }
  .user-tile-big { grid-column: 1 / -1; grid-row: auto; padding: 18px; }
  .user-tile-big-actions .btn { flex: 1 1 130px; min-height: 48px; }
  .user-tile-extras { grid-template-columns: 1fr; }
}

/* ===== Csapat admin csempés kezdőlap ===== */
#adminView.is-tile-mode > .view-header { display: none; }
#adminView.is-tile-mode > .admin-subnav-card > .admin-subnav:not(.admin-subnav-secondary) { display: none; }
#adminView.is-tile-mode > .admin-subnav-card > .admin-subnav-secondary { border-top: none; margin-top: 0; padding-top: 0; }
#adminView.admin-tiles-home > :not(#adminTileHome) { display: none !important; }
.admin-tile-home { display: flex; flex-direction: column; gap: 18px; }
.admin-tile-header { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.admin-tile-heading { flex: 1 1 320px; }
.admin-tile-heading h1 { margin: 0; font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 900; letter-spacing: -0.02em; color: #0b2e1d; }
.admin-tile-heading p { margin: 4px 0 0; color: #3f5248; font-size: 1rem; }
.admin-tile-role { padding: 4px 12px; border-radius: 999px; background: #0f5132; color: #ffffff; font-size: 0.82rem; font-weight: 700; }
.admin-tile-nextstep { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; }
.admin-tile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-tile-stat { display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; border-radius: 18px; background: #ffffff; border: 1px solid #cfdcd2; }
.admin-tile-stat strong { font-size: 1.75rem; font-weight: 900; color: #0f5132; }
.admin-tile-stat span { font-size: 0.9rem; color: #3f5248; }
.admin-tile-note { padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); font-size: 0.95rem; color: #ffffff; }
.admin-tile-note.is-warning { background: #fff7ed; color: #9a3412; font-weight: 700; }
.admin-tile-offs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-tile-off {
  min-height: 68px; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
  border-radius: 18px; border: 2px dashed #9aa8a0; background: #f6f8f6; color: #2f3b35;
  font: inherit; text-align: left; cursor: pointer;
}
.admin-tile-off span { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }
.admin-tile-off strong { font-size: 0.98rem; }
.admin-tile-off small { font-size: 0.82rem; color: #3f4b45; }
.admin-tile-off:hover { border-color: #15803d; background: #f0fdf4; }
@media (max-width: 900px) {
  .admin-tile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-tile-offs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .admin-tile-offs { grid-template-columns: 1fr; }
  .admin-tile-stat strong { font-size: 1.4rem; }
}

/* ===== Felső sáv (az oldalsáv helyett) ===== */
.app-shell.topbar-mode,
.app-shell.topbar-mode.sidebar-collapsed { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; }
.app-shell.topbar-mode .sidebar,
.app-shell.topbar-mode.sidebar-collapsed .sidebar {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 10px clamp(16px, 3vw, 32px);
  box-shadow: 0 6px 20px rgba(5, 46, 27, 0.25);
}
.app-shell.topbar-mode .sidebar-toggle,
.app-shell.topbar-mode .collapsed-profile-link { display: none !important; }
.app-shell.topbar-mode .sidebar > div:first-of-type { display: block !important; }
.app-shell.topbar-mode .sidebar h1 { margin: 0; font-size: 1.35rem; white-space: nowrap; }
.app-shell.topbar-mode .sidebar > .nav {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.app-shell.topbar-mode .sidebar > .nav > .nav-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.95rem;
}
.app-shell.topbar-mode .sidebar .nav-btn:hover { transform: none; }
.app-shell.topbar-mode .sidebar > .nav > .nav-btn::before { flex-basis: 20px; }

.topbar-more { position: relative; }
.topbar-more-summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.topbar-more-summary::-webkit-details-marker { display: none; }
.topbar-more[open] > .topbar-more-summary,
.topbar-more-summary:hover { background: rgba(255, 255, 255, 0.12); }
.topbar-more-summary:focus-visible { outline: 3px solid #a3e635; outline-offset: 2px; }
.topbar-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(300px, calc(100vw - 32px));
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding: 10px;
  border-radius: 20px;
  background: #0b3d26;
  box-shadow: 0 20px 40px rgba(5, 46, 27, 0.4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 80;
}
.topbar-more-panel .nav-btn { width: 100%; }
.topbar-more-panel > .card { margin-top: 8px; }

.app-shell.topbar-mode .sidebar > .topbar-toast {
  display: block !important;
  position: fixed;
  top: 72px;
  right: 16px;
  width: min(380px, calc(100vw - 32px));
  z-index: 70;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
}
.app-shell.topbar-mode .sidebar > .topbar-toast:has(.message-dock.hidden) { display: none !important; }
.app-shell.topbar-mode .sidebar > .topbar-toast > strong { display: none; }
.app-shell.topbar-mode .sidebar > .topbar-toast .message { margin: 0; box-shadow: 0 14px 34px rgba(5, 46, 27, 0.28); }

@media (max-width: 760px) {
  .app-shell.topbar-mode .sidebar > .nav { width: 100%; margin-left: 0; }
  .app-shell.topbar-mode .sidebar > .nav { flex-wrap: nowrap; }
  .app-shell.topbar-mode .sidebar > .nav > .nav-btn { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 10px; font-size: 0.9rem; white-space: nowrap; }
  .app-shell.topbar-mode .sidebar > .nav > .nav-btn::before { display: none; }
  .topbar-more { flex: 0 0 auto; }
  .topbar-more-summary { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .topbar-more-summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .app-shell.topbar-mode .sidebar > .topbar-toast { top: auto; bottom: 16px; }
}

/* Meccs csempe: csapatbeosztás + időjárás */
.user-tile-info-row { display: flex; flex-wrap: wrap; gap: 12px; }
.user-tile-info {
  flex: 1 1 220px;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #ffffff;
  color: #172334;
}
.user-tile-info span { display: flex; flex-direction: column; gap: 2px; }
.user-tile-info small { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; color: #3f5248; }
.user-tile-info strong { font-size: 0.95rem; }
.user-tile-info-icon { width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; background: #eef4ee; color: #0f5132; flex-direction: row !important; }
.user-tile-info-temp { font-size: 1.8rem; font-weight: 900; color: #0f5132; }

/* Munkaterületen belüli fülsorok mini-csempeként */
.admin-subnav-card:has(> .admin-subnav.section-tiles) { background: transparent; border: none; box-shadow: none; padding: 0; }
.admin-subnav.section-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.admin-subnav.section-tiles > .subnav-btn {
  min-height: 72px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  border: 1px solid #cfdcd2;
  background: #ffffff;
  color: #172334;
  text-align: left;
  box-shadow: 0 6px 16px rgba(11, 61, 38, 0.06);
}
.admin-subnav.section-tiles > .subnav-btn:hover { border-color: #15803d; }
.admin-subnav.section-tiles > .subnav-btn.active { background: #0f5132; border-color: #0f5132; color: #ffffff; }
.admin-subnav.section-tiles > .subnav-btn.is-current-focus:not(.active) { border-color: #a3e635; box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.35); }
.section-tile-icon {
  flex: 0 0 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef4ee; color: #0f5132;
}
.subnav-btn.active .section-tile-icon { background: rgba(255, 255, 255, 0.16); color: #a3e635; }
.section-tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.section-tile-label { font-size: 0.98rem; font-weight: 800; }
.section-tile-value { font-size: 0.82rem; font-weight: 500; color: #3f5248; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subnav-btn.active .section-tile-value { color: #dcfce7; }
.admin-subnav.section-tiles > [data-admin-team-section="advanced"]:not(.active) { display: none; }
@media (max-width: 640px) {
  .admin-subnav.section-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-subnav.section-tiles > .subnav-btn { min-height: 64px; padding: 10px; gap: 8px; }
  .section-tile-icon { flex-basis: 32px; height: 32px; }
}
#adminView.is-tile-mode > [data-admin-workspace-panel="events"] { grid-template-columns: minmax(0, 1fr); }

/* ===== Profil / beállítások csempékkel ===== */
#profileView[data-profile-tile]:not([data-profile-tile="off"]) > header.card { display: none; }
#profileView[data-profile-tile]:not([data-profile-tile="off"]) #profilePanel > .profile-panel-head { display: none; }
#profileView[data-profile-tile="home"] #profilePanel,
#profileView[data-profile-tile="home"] > .note-card { display: none !important; }
#profileView[data-profile-tile="notifications"] .profile-settings-grid,
#profileView[data-profile-tile="info"] #profilePanel { display: none !important; }
#profileView[data-profile-tile]:not([data-profile-tile="off"]):not([data-profile-tile="info"]) > .note-card { display: none; }
#profileView[data-profile-tile]:not([data-profile-tile="off"]):not([data-profile-tile="notifications"]) #pushSettings { display: none; }
#profileView[data-profile-tile="notifications"] #pushSettings { margin-top: 0; }
#profileView[data-profile-tile="data"] .profile-settings-grid > *:not([aria-labelledby="profileDataTitle"]):not(.profile-save-row) { display: none; }
#profileView[data-profile-tile="data"] .profile-settings-grid { grid-template-columns: minmax(0, 1fr); }
#profileView[data-profile-tile="payment"] .profile-settings-grid > *:not([aria-labelledby="profilePaymentTitle"]):not(.profile-save-row) { display: none; }
#profileView[data-profile-tile="payment"] .profile-settings-grid { grid-template-columns: minmax(0, 1fr); }
#profileView[data-profile-tile="stats"] .profile-settings-grid > *:not([aria-labelledby="profileStatsTitle"]) { display: none; }
#profileView[data-profile-tile="stats"] .profile-settings-grid { grid-template-columns: minmax(0, 1fr); }
#profileView[data-profile-tile="avatar"] .profile-settings-grid > *:not([aria-labelledby="profileAvatarTitle"]):not(.profile-save-row) { display: none; }
#profileView[data-profile-tile="avatar"] .profile-settings-grid { grid-template-columns: minmax(0, 1fr); }
#profileView[data-profile-tile="stats"] .profile-save-row { display: none; }
.profile-tile-head { display: flex; align-items: center; gap: 16px; }
.profile-tile-avatar { width: 72px; height: 72px; border-radius: 22px; object-fit: cover; border: 3px solid #a3e635; background: #ffffff; }
.profile-tile-head h1 { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 900; letter-spacing: -0.02em; color: #0b2e1d; }
.profile-tile-head p { margin: 2px 0 0; color: #3f5248; }
.profile-tile-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

#pushSettings label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
#pushSettings label input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: #15803d; }
@media (max-width: 640px) {
  .profile-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-tile-avatar { width: 56px; height: 56px; border-radius: 18px; }
}

/* ===== Help / Kisokos csempékkel ===== */
#helpView[data-help-topic="home"] .help-shell > :not(#helpTileHome) { display: none !important; }
#helpView[data-help-topic]:not([data-help-topic="home"]) .help-hero { display: none; }
#helpView[data-help-topic="install"] .help-shell > .grid,
#helpView[data-help-topic="player"] [data-help-topic-card]:not([data-help-topic-card="player"]),
#helpView[data-help-topic="captain"] [data-help-topic-card]:not([data-help-topic-card="captain"]) { display: none; }
#helpView[data-help-topic="player"] [data-help-topic-card="install"],
#helpView[data-help-topic="captain"] [data-help-topic-card="install"] { display: none; }
#helpView[data-help-topic]:not([data-help-topic="home"]) .help-shell > .grid { grid-template-columns: minmax(0, 1fr); }
#helpTileHome { margin-bottom: 16px; }
.help-tile-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 640px) { .help-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Csapatválasztó a kezdőlapon; a Csapat kontextus kártya csak csapat nélkül / új csapatnál */
.admin-team-switcher { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-team-switcher-label { font-size: 0.85rem; font-weight: 700; color: #3f5248; }
.admin-team-switcher select { min-height: 46px; min-width: 200px; padding: 0 14px; border-radius: 14px; border: 1px solid #cfdcd2; background: #ffffff; font: inherit; font-weight: 700; }
.admin-team-new { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; }
#adminView.is-tile-mode.has-team:not(.show-team-context) [data-admin-workspace-panel="team"] > h2,
#adminView.is-tile-mode.has-team:not(.show-team-context) [data-admin-workspace-panel="team"] > .section-note,
#adminView.is-tile-mode.has-team:not(.show-team-context) [data-admin-workspace-panel="team"] > .admin-team-context-layout { display: none; }
#adminView.is-tile-mode.has-team:not(.show-team-context) [data-admin-workspace-panel="team"] > .admin-subnav-card { margin-top: 0; }

/* ===== Tagkezelés csempékkel ===== */
.member-filter-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.member-filter-tile {
  min-height: 72px; padding: 10px 14px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  border-radius: 18px; border: 1px solid #cfdcd2; background: #ffffff; color: #172334;
  font: inherit; text-align: left; cursor: pointer;
}
.member-filter-tile:hover { border-color: #15803d; }
.member-filter-tile.is-active { background: #0f5132; border-color: #0f5132; color: #ffffff; }
.member-filter-count { font-size: 1.6rem; font-weight: 900; line-height: 1; }
.member-filter-label { font-size: 0.88rem; font-weight: 700; }
.member-filter-tile:not(.is-active) .member-filter-count { color: #0f5132; }
.member-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.member-tile {
  border-radius: 20px; border: 1px solid #cfdcd2; background: #ffffff;
  box-shadow: 0 8px 20px rgba(11, 61, 38, 0.06); overflow: hidden;
}
.member-tile[open] { grid-column: 1 / -1; border-color: #15803d; }
.member-tile.is-passive { background: #f6f8f6; }
.member-tile.is-break { border-left: 6px solid #f59e0b; }
.member-tile-summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px; padding: 14px;
}
.member-tile-summary::-webkit-details-marker { display: none; }
.member-tile-summary:focus-visible { outline: 3px solid #1d4ed8; outline-offset: -3px; border-radius: 20px; }
.member-tile-avatar {
  flex: 0 0 52px; height: 52px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #dcfce7; color: #0f5132; font-weight: 900; font-size: 1.1rem;
}
.member-tile-avatar.is-captain { background: #a3e635; color: #14290a; }
.member-tile-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.member-tile-name { font-weight: 800; font-size: 1.02rem; }
.member-tile-me { padding: 1px 8px; border-radius: 999px; background: #0f5132; color: #ffffff; font-size: 0.72rem; font-weight: 700; vertical-align: middle; }
.member-tile-email { font-size: 0.82rem; color: #3f5248; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-tile-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.member-tile-stats { flex: 0 0 auto; display: flex; gap: 10px; }
.member-tile-stats > span { display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 6px 8px; border-radius: 12px; background: #eef4ee; }
.member-tile-stats strong { font-size: 1.15rem; font-weight: 900; color: #0f5132; }
.member-tile-stats small { font-size: 0.7rem; color: #3f5248; }
.member-tile-stats > span.is-alert { background: #fff7ed; }
.member-tile-stats > span.is-alert strong { color: #c2410c; }
.member-tile-body { padding: 0 16px 16px; border-top: 1px solid #e3ece5; }
@media (max-width: 640px) {
  .member-tile-grid { grid-template-columns: minmax(0, 1fr); }
  .member-tile-stats { display: none; }
  .member-filter-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===== Statisztikák csempékkel ===== */
.stat-kpi-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stat-kpi-tile { min-height: 112px; padding: 16px; border-radius: 20px; border: 1px solid #cfdcd2; background: #ffffff; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.stat-kpi-value { font-size: 2rem; font-weight: 900; line-height: 1.05; color: #0f5132; }
.stat-kpi-label { font-size: 0.92rem; font-weight: 700; }
.stat-kpi-hint { font-size: 0.78rem; color: #3f5248; }
.stat-kpi-tile.tone-lime { background: #a3e635; border-color: #a3e635; }
.stat-kpi-tile.tone-lime .stat-kpi-value { color: #14290a; }
.stat-kpi-tile.tone-strong { background: #15803d; border-color: #15803d; color: #ffffff; }
.stat-kpi-tile.tone-strong .stat-kpi-value, .stat-kpi-tile.tone-strong .stat-kpi-hint { color: #ffffff; }
.stat-kpi-tile.tone-mid { background: #dcfce7; border-color: #bbf0cd; }
.stat-kpi-tile.tone-alert { background: #fff7ed; border-color: #fdba74; }
.stat-kpi-tile.tone-alert .stat-kpi-value { color: #c2410c; }
.stat-member-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.stat-member-head h3 { margin: 0; font-size: 1.15rem; font-weight: 900; }
.stat-member-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.stat-member-tile { padding: 14px; border-radius: 20px; border: 1px solid #cfdcd2; background: #ffffff; display: flex; flex-direction: column; gap: 10px; }
.stat-member-tile.is-attention { border-color: #fdba74; box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.18); }
.stat-member-top { display: flex; align-items: center; gap: 10px; }
.stat-member-top .member-tile-avatar { flex-basis: 44px; height: 44px; border-radius: 14px; }
.stat-member-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.stat-member-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-member-name small { font-size: 0.78rem; color: #3f5248; }
.stat-member-ratio { font-size: 1.6rem; font-weight: 900; color: #0f5132; }
.stat-member-bar { height: 8px; border-radius: 999px; background: #e3ece5; overflow: hidden; }
.stat-member-bar > span { display: block; height: 100%; border-radius: 999px; background: #22c55e; }
.stat-member-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stat-member-numbers > span { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 12px; background: #eef4ee; font-size: 0.7rem; color: #3f5248; text-align: center; }
.stat-member-numbers strong { font-size: 1.05rem; font-weight: 900; color: #0f5132; }
.stat-member-numbers > span.is-alert { background: #fff7ed; }
.stat-member-numbers > span.is-alert strong { color: #c2410c; }
.stat-member-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.stat-member-flags > span { padding: 3px 10px; border-radius: 999px; background: #fff7ed; color: #9a3412; font-size: 0.78rem; font-weight: 700; }

/* ===== Beállítások csempékkel ===== */
#teamCustomizationContent.settings-layout { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
#teamCustomizationContent .settings-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; position: static; }
#teamCustomizationContent .settings-nav-item {
  min-height: 84px; padding: 14px 16px;
  display: flex; flex-direction: row; align-items: center; gap: 12px;
  border-radius: 20px; border: 1px solid #cfdcd2; background: #ffffff; text-align: left;
}
#teamCustomizationContent .settings-nav-item.active { background: #0f5132; border-color: #0f5132; color: #ffffff; }
#teamCustomizationContent .settings-nav-item.active .settings-nav-summary { color: #dcfce7; }
.settings-nav-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.settings-nav-icon { flex: 0 0 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: #eef4ee; color: #0f5132; }
.settings-nav-item.active .settings-nav-icon { background: rgba(255, 255, 255, 0.16); color: #a3e635; }
.settings-nav-shirts { flex: 0 0 auto; display: inline-flex; gap: 2px; padding: 6px; border-radius: 14px; background: #eef4ee; }
.settings-nav-item.active .settings-nav-shirts { background: rgba(255, 255, 255, 0.9); }

.module-tiles-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.module-tiles-head strong { font-size: 1.15rem; font-weight: 900; }
.module-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.module-tile {
  min-height: 170px; padding: 16px; border-radius: 22px;
  border: 1px solid #cfdcd2; background: #ffffff;
  display: flex; flex-direction: column; gap: 6px;
  transition: background .15s ease, border-color .15s ease;
}
.module-tile.is-on { background: #f0fdf4; border-color: #22c55e; }
.module-tile.is-off { background: #f6f8f6; border-style: dashed; border-color: #9aa8a0; }
.module-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.module-tile-icon { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: #ffffff; color: #0f5132; border: 1px solid #cfdcd2; }
.module-tile.is-on .module-tile-icon { background: #0f5132; color: #a3e635; border-color: #0f5132; }
.module-tile-title { font-size: 1.1rem; font-weight: 800; }
.module-tile-desc { font-size: 0.88rem; line-height: 1.4; color: #3f5248; }
.module-tile-state { margin-top: auto; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; color: #3f4b45; }
.module-tile.is-on .module-tile-state { color: #15803d; }
.module-tile-switch { position: relative; display: inline-flex; width: 56px; height: 32px; cursor: pointer; }
.module-tile-switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.module-tile-track { position: absolute; inset: 0; border-radius: 999px; background: #c4cec7; transition: background .15s ease; }
.module-tile-track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 999px; background: #ffffff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .15s ease; }
.module-tile-switch input:checked + .module-tile-track { background: #16a34a; }
.module-tile-switch input:checked + .module-tile-track::after { transform: translateX(24px); }
.module-tile-switch input:focus-visible + .module-tile-track { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.module-tile-switch input:disabled + .module-tile-track { opacity: .55; }
.module-tile-goto { min-height: 40px; }
.module-details { margin-top: 16px; padding: 12px 16px; border-radius: 18px; border: 1px solid #cfdcd2; background: #ffffff; }
.module-details > summary { cursor: pointer; font-weight: 800; }

.jersey-pickers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.jersey-picker { margin: 0; padding: 14px; border-radius: 20px; border: 1px solid #cfdcd2; background: #ffffff; min-width: 0; }
.jersey-picker legend { display: flex; align-items: center; gap: 10px; padding: 0 6px; font-weight: 900; font-size: 1.05rem; }
.jersey-picker legend small { font-weight: 600; font-size: 0.88rem; color: #3f5248; }
.jersey-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.jersey-swatch {
  position: relative; min-height: 84px; padding: 8px 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 16px; border: 2px solid transparent; background: #f6f8f6; cursor: pointer; text-align: center;
}
.jersey-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.jersey-swatch span { font-size: 0.74rem; font-weight: 700; line-height: 1.2; }
.jersey-swatch:hover { border-color: #9aa8a0; }
.jersey-swatch.is-selected { border-color: #15803d; background: #f0fdf4; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.jersey-swatch:has(input:focus-visible) { outline: 3px solid #1d4ed8; outline-offset: 2px; }
@media (max-width: 640px) {
  .module-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-tile { min-height: 150px; padding: 12px; }
  .jersey-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
#adminStatisticsContent .admin-home-shelf > summary { cursor: pointer; padding: 12px 16px; border-radius: 16px; border: 1px solid #cfdcd2; background: #ffffff; font-weight: 800; color: #172334; }

/* Ragadós felső sáv: a görgetési célpontok ne csússzanak alá */
html { scroll-padding-top: 96px; }
.app-shell.topbar-mode .sidebar > .topbar-toast .message { position: relative; padding-right: 36px; }
.app-shell.topbar-mode .sidebar > .topbar-toast .message::after { content: "×"; position: absolute; top: 50%; right: 12px; transform: translateY(-50%); font-size: 1.3rem; font-weight: 700; opacity: .55; }
/* Mezszín: a másik csapat színe nem választható */
.jersey-swatch.is-taken { opacity: .38; cursor: not-allowed; border-style: dashed; border-color: #9aa8a0; }
.jersey-swatch.is-taken span::after { content: " (foglalt)"; font-weight: 500; }
/* Csapatválasztó csempe */
.admin-team-tile { cursor: default; gap: 8px; }
.admin-team-tile .user-tile-label { margin-top: auto; }
.admin-team-select { width: 100%; min-height: 46px; padding: 0 12px; border-radius: 14px; border: 1px solid #cfdcd2; background: #ffffff; font: inherit; font-weight: 700; color: #172334; }
.admin-team-tile .admin-team-new { min-height: 36px; padding: 0 12px; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 4px; }

/* ===== Következő 7 nap – csempe stílus ===== */
.user-week { display: flex; flex-direction: column; gap: 12px; }
.user-week-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.user-week-head h2 { margin: 0; font-size: 1.35rem; font-weight: 900; color: #0b2e1d; }
.user-week-summary { font-size: 0.92rem; font-weight: 700; color: #3f5248; }
.user-week-legend { margin-left: auto; display: flex; gap: 12px; font-size: 0.8rem; font-weight: 700; color: #3f5248; }
.user-week-legend .is-going { color: #15803d; }
.user-week-legend .is-wait { color: #4338ca; }
.user-week-legend .is-open { color: #c2410c; }
.user-week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.user-week-day {
  min-height: 160px; padding: 12px; border-radius: 22px;
  border: 1px solid #cfdcd2; background: #ffffff;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 8px 20px rgba(11, 61, 38, 0.06);
}
.user-week-day.is-weekend { background: #f6f8f6; }
.user-week-day.is-holiday { background: #fff7ed; border-color: #fdba74; }
.user-week-day.is-today { background: #a3e635; border-color: #a3e635; }
.user-week-day-head { display: flex; flex-direction: column; gap: 0; }
.user-week-weekday { font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; color: #3f5248; }
.user-week-day.is-today .user-week-weekday { color: #14290a; }
.user-week-date { font-size: 0.85rem; color: #3f5248; }
.user-week-date strong { font-size: 1.6rem; font-weight: 900; color: #0b2e1d; line-height: 1.1; }
.user-week-free { margin-top: auto; font-size: 0.8rem; font-weight: 600; color: #6b7a72; }
.user-week-day.is-today .user-week-free { color: #1f3d0c; }
.user-week-event {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0; border-radius: 16px; overflow: hidden;
  background: #ffffff; border: 1px solid #e3ece5; border-left: 5px solid var(--team-accent, #15803d);
}
.user-week-event.is-active { box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.35); }
.user-week-event-open {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 10px; border: none; background: transparent; color: #172334;
  font: inherit; text-align: left; cursor: pointer; width: 100%;
}
.user-week-event-open:hover { background: var(--team-accent-soft, #f0fdf4); }
.user-week-event-open:focus-visible { outline: 3px solid #1d4ed8; outline-offset: -3px; }
.user-week-event-time { font-size: 1.15rem; font-weight: 900; color: #0f5132; }
.user-week-event-title { font-size: 0.86rem; font-weight: 800; line-height: 1.25; }
.user-week-event-team { font-size: 0.74rem; color: #3f5248; }
.user-week-event-status { margin-top: 2px; font-size: 0.74rem; font-weight: 800; }
.user-week-event.status-going .user-week-event-status { color: #15803d; }
.user-week-event.status-wait .user-week-event-status { color: #4338ca; }
.user-week-event.status-open .user-week-event-status { color: #c2410c; }
.user-week-event.status-cancelled .user-week-event-status,
.user-week-event.status-none .user-week-event-status { color: #6b7a72; }
.user-week-event-join { margin: 0 8px 8px; min-height: 36px; padding: 0 12px; font-size: 0.82rem; }
@media (max-width: 1100px) {
  .user-week-days { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .user-week-day { scroll-snap-align: start; }
  .user-week-legend { margin-left: 0; }
}
@media (max-width: 640px) {
  .user-week-days { grid-auto-columns: 46%; }
}
.wk-dot { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 999px; vertical-align: -1px; border: 2px solid currentColor; box-sizing: border-box; }
.wk-dot.status-going { background: currentColor; }
.wk-dot.status-wait { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.wk-dot.status-open { background: transparent; }
.wk-dot.status-cancelled, .wk-dot.status-none { border-radius: 2px; height: 3px; border-width: 0; background: currentColor; vertical-align: 2px; }
.user-week-legend > span { display: inline-flex; align-items: center; }

/* ===== Szabi: nyaralós főkártya ===== */
#userView.is-on-holiday[data-user-tile-section="home"] #userBreakBanner { display: none; }
.user-tile-holiday { position: relative; overflow: hidden; padding: 0; background: #7dd3fc; color: #0c4a6e; min-height: 340px; }
.holiday-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.holiday-content { position: relative; z-index: 1; margin: 18px; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; max-width: min(58%, 420px); border-radius: 22px; background: rgba(255, 255, 255, 0.74); backdrop-filter: blur(6px); box-shadow: 0 10px 26px rgba(12, 74, 110, .18); }
.holiday-kicker { font-size: 0.75rem; font-weight: 900; letter-spacing: 0.12em; color: #0c4a6e; opacity: .8; }
.holiday-title { margin: 0; font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1; color: #0ea5e9; text-shadow: 0 3px 0 #fb923c; transform: rotate(-3deg); transform-origin: left center; }
.holiday-sub { margin: 6px 0 0; font-size: 1.02rem; font-weight: 700; color: #0c4a6e; }
.holiday-days { margin: 0; font-size: 0.82rem; font-weight: 600; color: #0c4a6e; opacity: .7; }
.holiday-actions { margin-top: 8px; }
.holiday-back-btn { background: rgba(255, 255, 255, 0.85) !important; color: #0c4a6e !important; box-shadow: 0 6px 16px rgba(12, 74, 110, .2) !important; min-height: 44px; }
.holiday-back-btn:hover { background: #ffffff !important; }
@media (prefers-reduced-motion: no-preference) {
  .holiday-wave { animation: holidayWave 6s ease-in-out infinite alternate; }
  .holiday-sun { animation: holidaySun 18s linear infinite; transform-origin: 540px 78px; }
}
@keyframes holidayWave { from { transform: translateX(0); } to { transform: translateX(-24px); } }
@keyframes holidaySun { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .user-tile-holiday { min-height: 440px; }
  .holiday-content { max-width: none; margin: 12px; padding: 14px; }
}

/* ---- Pénzügy: meccs utáni elszámolás csempékkel ---- */
.settle-wrap { display: flex; flex-direction: column; gap: 14px; }
.settle-hero-row { display: flex; flex-wrap: wrap; gap: 12px; }
.settle-hero { flex: 2 1 420px; padding: 18px 20px; border-radius: 22px; background: #0f5132; color: #fff; display: flex; flex-direction: column; gap: 10px; }
.settle-hero-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.settle-kicker { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: #a3e635; }
.settle-big { font-size: 30px; font-weight: 900; }
.settle-sub { font-size: 15px; color: rgba(255,255,255,.86); }
.settle-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
.settle-bar > span { display: block; height: 10px; border-radius: 999px; background: #a3e635; }
.settle-hero-line { font-size: 14px; color: rgba(255,255,255,.9); }
.settle-box { flex: 1 1 200px; padding: 16px; border-radius: 22px; background: #fff; border: 1px solid #cfdcd2; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: #172334; }
.settle-box-title { font-size: 13px; font-weight: 800; color: #3f5248; letter-spacing: .04em; }
.settle-box-big { font-size: 24px; font-weight: 900; }
.settle-box .is-blue { color: #1d4ed8; }
.settle-box .is-orange { color: #c2410c; }
.settle-hint { padding: 12px 16px; border-radius: 16px; background: #f0fdf4; border: 1px dashed #22c55e; font-size: 14px; font-weight: 600; color: #14532d; }
.settle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.settle-tile { padding: 14px; border-radius: 20px; background: #fff; border: 1px solid #cfdcd2; display: flex; flex-direction: column; gap: 10px; color: #172334; }
.settle-tile.is-pending, .settle-tile.is-sent { border-color: #93c5fd; }
.settle-tile.is-unpaid { background: #fff7ed; border: 2px solid #fb923c; }
.settle-tile.is-absent { background: #f6f8f6; border: 2px dashed #9aa8a0; }
.settle-tile.is-open { border-style: dashed; }
.settle-head { display: flex; align-items: center; gap: 10px; }
.settle-avatar { flex: 0 0 44px; height: 44px; border-radius: 14px; background: #dcfce7; color: #0f5132; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.settle-tile.is-pending .settle-avatar, .settle-tile.is-sent .settle-avatar { background: #dbeafe; }
.settle-tile.is-unpaid .settle-avatar { background: #ffedd5; }
.settle-tile.is-absent .settle-avatar { background: #e3ece5; }
.settle-name { flex: 1 1 auto; min-width: 0; }
.settle-name .attendance-row-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settle-note { font-size: 12px; font-weight: 700; color: #15803d; }
.settle-tile.is-pending .settle-note, .settle-tile.is-sent .settle-note { color: #1d4ed8; }
.settle-tile.is-unpaid .settle-note { color: #c2410c; }
.settle-tile.is-absent .settle-note, .settle-tile.is-open .settle-note { color: #3f4b45; }
.settle-absent { min-height: 32px; padding: 0 10px; border: 1px solid #cfdcd2; border-radius: 10px; background: #fff; color: #3f5248; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.settle-absent.is-on { background: #3f4b45; color: #fff; border-color: #3f4b45; }
.settle-methods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; padding: 3px; border-radius: 12px; background: #eef4ee; }
.settle-methods.is-single { grid-template-columns: 1fr; }
.settle-method { min-height: 36px; padding: 0 2px; border: none; border-radius: 9px; background: transparent; color: #3f5248; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.settle-method:hover { background: rgba(15,81,50,.08); }
.settle-method.is-on { background: #0f5132; color: #fff; }
.settle-method.is-danger.is-on { background: #c2410c; }
.settle-confirm { min-height: 38px; background: #1d4ed8; color: #fff; border: none; }
.settle-other summary { cursor: pointer; font-size: 12px; font-weight: 700; color: #3f5248; }
.settle-other .attendance-payment-input { max-width: 120px; }
.settle-finish { padding: 14px 18px; border-radius: 22px; background: #fff; border: 1px solid #cfdcd2; box-shadow: 0 -6px 24px rgba(11,61,38,.10); display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: #172334; }
.settle-finish-text { flex: 1 1 260px; }
.settle-finish-btn { min-height: 50px; padding: 0 26px; border-radius: 999px; background: #a3e635; color: #14290a; font-weight: 900; border: none; }
.settle-finish-btn:disabled { opacity: .5; }
@media (max-width: 520px) {
  .settle-grid { grid-template-columns: 1fr; }
  .settle-big { font-size: 26px; }
}
.settle-wrap.finance-task-block.is-current { box-shadow: none; border-radius: 0; }
.settle-event-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.settle-event-title { font-size: 22px; font-weight: 900; color: #0b2e1d; }
.settle-flow-shelf { font-size: 13px; }
.settle-tile.attendance-row { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; border-radius: 20px; }
.settle-tile .settle-confirm { width: 100%; }
.profile-payout-box { padding: 14px; border-radius: 16px; background: #f0fdf4; border: 1px solid #bbf7d0; display: flex; flex-direction: column; gap: 6px; }

/* ---- Pénzügyeim (játékos) ---- */
.my-finance-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: 22px; background: #0f5132; color: #fff; }
.my-finance-hero.is-debt { background: #7c2d12; }
.my-finance-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #a3e635; }
.my-finance-hero.is-debt .my-finance-kicker { color: #fdba74; }
.my-finance-balance { font-size: 32px; font-weight: 900; }
.my-finance-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: rgba(255,255,255,.9); }
.my-pay-section, .my-history { display: flex; flex-direction: column; gap: 10px; }
.my-pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.my-pay-tile { padding: 16px; border-radius: 20px; background: #fff7ed; border: 2px solid #fb923c; display: flex; flex-direction: column; gap: 10px; color: #172334; }
.my-pay-tile.is-sent { background: #eff6ff; border-color: #93c5fd; }
.my-pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.my-pay-title { font-weight: 800; }
.my-pay-amount { font-size: 24px; font-weight: 900; white-space: nowrap; }
.my-pay-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.my-pay-btn { min-height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 14px; font-weight: 800; text-decoration: none; border: 1px solid #93c5fd; background: #eff6ff; color: #1d4ed8; }
.my-pay-btn.is-primary { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.my-pay-bank summary { cursor: pointer; font-weight: 800; font-size: 14px; color: #0f5132; }
.my-pay-bank-rows { margin-top: 8px; border-radius: 14px; background: #fff; border: 1px solid #cfdcd2; }
.my-pay-bank-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-bottom: 1px solid #e3ece5; }
.my-pay-bank-row:last-child { border-bottom: none; }
.my-pay-bank-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #3f5248; }
.my-pay-bank-value { font-size: 15px; font-weight: 800; word-break: break-all; }
.my-pay-copy { min-height: 36px; padding: 0 12px; border: 1px solid #cfdcd2; border-radius: 10px; background: #eef4ee; color: #0f5132; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.my-pay-sent-btn { min-height: 48px; border-radius: 14px; background: #a3e635; color: #14290a; font-weight: 900; border: none; }
.my-pay-sent { font-size: 14px; font-weight: 600; color: #1d4ed8; }
.my-history-status { font-size: 13px; font-weight: 700; }
.my-history-row.is-paid .my-history-status { color: #15803d; }
.my-history-row.is-pending .my-history-status { color: #1d4ed8; }
.my-history-row.is-debt .my-history-status { color: #c2410c; }
.my-history-row.is-neutral .my-history-status { color: #3f4b45; }
.pricing-preview { padding: 10px 14px; border-radius: 14px; background: #f0fdf4; border: 1px dashed #22c55e; font-size: 14px; font-weight: 600; color: #14532d; }
.pricing-preview:empty { display: none; }
.pricing-link-details summary { cursor: pointer; font-size: 13px; font-weight: 700; color: #3f5248; }

/* ---- Csapatkassza ---- */
.fund-hero { padding: 18px 20px; border-radius: 22px; background: #0f5132; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.fund-hero.is-negative { background: #7c2d12; }
.fund-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #a3e635; }
.fund-hero.is-negative .fund-kicker { color: #fdba74; }
.fund-balance { font-size: 34px; font-weight: 900; }
.fund-form { padding: 14px; border-radius: 18px; background: #fff; border: 1px solid #cfdcd2; display: flex; flex-direction: column; gap: 10px; }
.fund-kind { display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: #eef4ee; align-self: flex-start; }
.fund-kind label { position: relative; cursor: pointer; }
.fund-kind input { position: absolute; opacity: 0; pointer-events: none; }
.fund-kind span { display: inline-flex; min-height: 36px; align-items: center; padding: 0 16px; border-radius: 9px; font-weight: 800; font-size: 13px; color: #3f5248; }
.fund-kind input:checked + span { background: #0f5132; color: #fff; }
.fund-kind input:focus-visible + span { outline: 2px solid #1d4ed8; outline-offset: 2px; }
.fund-list { display: flex; flex-direction: column; gap: 8px; }
.fund-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid #cfdcd2; }
.fund-row-main { display: flex; flex-direction: column; min-width: 0; }
.fund-row-amount { font-weight: 900; white-space: nowrap; }
.my-history-label { display: block; font-size: 11px; font-weight: 700; color: #3f5248; letter-spacing: .02em; }
.my-finance-hero .badge { background: rgba(255,255,255,.92); color: #7c2d12; }
.my-finance-hero.is-ok .badge { color: #0f5132; }
.settle-flow-shelf > summary { cursor: pointer; color: #3f5248; font-weight: 700; }
.settle-flow-shelf > summary::before { content: '▸ '; }
.settle-flow-shelf[open] > summary::before { content: '▾ '; }
.settle-closed-note { padding: 10px 14px; border-radius: 14px; background: #fef9c3; border: 1px solid #fde047; color: #713f12; font-size: 14px; font-weight: 600; }
.settle-pricing { border-radius: 20px; background: #fff; border: 1px solid #cfdcd2; }
.settle-pricing.is-free { border: 2px dashed #f59e0b; background: #fffbeb; }
.settle-pricing > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 16px; }
.settle-pricing > summary::-webkit-details-marker { display: none; }
.settle-pricing-title { font-weight: 900; font-size: 17px; color: #0b2e1d; }
.settle-pricing-sub { flex: 1 1 260px; font-size: 13px; color: #3f5248; }
.settle-pricing-edit { min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: #0f5132; color: #fff; font-size: 13px; font-weight: 800; }
.settle-pricing[open] .settle-pricing-edit { background: #eef4ee; color: #0f5132; }
.settle-pricing-form { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.settle-pricing-form [hidden] { display: none !important; }
.admin-settle-focus-money { font-size: 22px; font-weight: 900; }
.admin-settle-focus-hint { opacity: .8; align-self: center; }

/* ---- Pénzügyeim több csapatra ---- */
.my-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.my-total { padding: 14px 16px; border-radius: 20px; color: #fff; }
.my-total.is-debt { background: #7c2d12; }
.my-total.is-credit { background: #0f5132; }
.my-total-kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.my-total.is-debt .my-total-kicker { color: #fdba74; }
.my-total.is-credit .my-total-kicker { color: #a3e635; }
.my-total-amount { font-size: 28px; font-weight: 900; line-height: 1.15; }
.my-total-sub { font-size: 13px; color: rgba(255,255,255,.85); }
.my-totals-note { font-size: 12px; color: #3f5248; padding: 0 4px; }
.my-section-title { margin: 6px 0 0; font-size: 15px; font-weight: 900; color: #172334; }
.my-section-title span { color: #c2410c; }
.my-team-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; margin-bottom: 6px; }
.my-team-chip > span { width: 8px; height: 8px; border-radius: 50%; }
.my-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; align-items: start; }
.my-team-tile { border-radius: 20px; background: #fff; border: 1px solid #cfdcd2; border-top: 6px solid var(--team-color, #0f5132); color: #172334; }
.my-team-tile.is-debt { background: #fff7ed; border: 2px solid #fb923c; border-top: 6px solid var(--team-color, #0f5132); }
.my-team-tile.is-credit { background: #f0fdf4; border-color: #86efac; }
.my-team-tile[open] { grid-column: 1 / -1; }
.my-team-tile > summary { list-style: none; cursor: pointer; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.my-team-tile > summary::-webkit-details-marker { display: none; }
.my-team-name { font-weight: 900; font-size: 15px; }
.my-team-balance { font-size: 24px; font-weight: 900; }
.my-team-tile.is-debt .my-team-balance { color: #c2410c; }
.my-team-tile.is-credit .my-team-balance { color: #15803d; }
.my-team-tile.is-ok .my-team-balance { color: #3f5248; }
.my-team-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: #3f5248; }
.my-team-status { min-height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; background: #fff; border: 1px solid currentColor; font-weight: 800; font-size: 11px; }
.my-team-tile.is-debt .my-team-status { color: #c2410c; }
.my-team-tile.is-credit .my-team-status { color: #15803d; }
.my-team-open { font-size: 12px; font-weight: 800; color: #0f5132; }
.my-team-tile[open] .my-team-open { display: none; }
.my-team-log { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #e3ece5; margin: 0 14px; padding-left: 0; padding-right: 0; padding-top: 10px; }
.my-team-log-row { display: flex; justify-content: space-between; gap: 10px; }
.my-team-log-title { font-weight: 700; font-size: 14px; }
.my-team-log-sub { font-size: 12px; color: #3f5248; }
.my-team-log-row.is-paid .my-history-status { color: #15803d; }
.my-team-log-row.is-pending .my-history-status { color: #1d4ed8; }
.my-team-log-row.is-debt .my-history-status { color: #c2410c; }
.my-team-log-amount { font-weight: 800; white-space: nowrap; }
.my-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .my-team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.my-team-tile.is-credit, .my-team-tile.is-debt, .my-team-tile.is-ok { border-top-color: var(--team-color, #0f5132); }
.my-team-balance { font-size: 22px; }

/* ---- Események: csempék ---- */
.admin-event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.admin-event-tile.event-card { padding: 16px; border-radius: 22px; background: #fff; border: 1px solid #cfdcd2; display: flex; flex-direction: column; gap: 12px; box-shadow: none; }
.admin-event-tile.is-current-focus { border: 2px solid #84cc16; box-shadow: 0 8px 24px rgba(15, 81, 50, .12); }
.admin-event-tile.is-draft { border-style: dashed; background: #f8fbf8; }
.admin-event-tile.is-closed { background: #fffbeb; border-color: #fcd34d; }
.admin-event-tile-head { display: flex; gap: 12px; align-items: center; }
.admin-event-date { flex: 0 0 58px; height: 64px; border-radius: 16px; background: #0f5132; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.admin-event-tile.is-draft .admin-event-date { background: #e3ece5; color: #0f5132; }
.admin-event-tile.is-closed .admin-event-date { background: #b45309; }
.admin-event-date-wd { font-size: 11px; font-weight: 800; text-transform: uppercase; opacity: .85; }
.admin-event-date-day { font-size: 24px; font-weight: 900; }
.admin-event-date-mo { font-size: 11px; font-weight: 700; opacity: .85; }
.admin-event-tile-title { min-width: 0; }
.admin-event-tile-title h4 { margin: 0; font-size: 18px; font-weight: 900; color: #0b2e1d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-event-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-event-progress { display: flex; flex-direction: column; gap: 6px; }
.admin-event-progress-label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #3f5248; }
.admin-event-bar { position: relative; height: 10px; border-radius: 999px; background: #e3ece5; overflow: visible; }
.admin-event-bar > span { display: block; height: 10px; border-radius: 999px; background: #22c55e; }
.admin-event-bar.is-short > span { background: #f59e0b; }
.admin-event-bar > i { position: absolute; top: -3px; width: 2px; height: 16px; background: #0b2e1d; border-radius: 2px; }
.admin-event-note { font-size: 13px; font-weight: 700; color: #15803d; }
.admin-event-note.is-warning { color: #b45309; }
.admin-event-more > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: #3f5248; }
.admin-event-more[open] > summary { margin-bottom: 8px; }
.admin-event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.admin-event-actions .btn[disabled] { display: none; }
.admin-event-cancel { margin-left: auto; color: #b91c1c; }
.admin-events-focus .admin-home-primary-title { font-size: 18px; }
.admin-events-progress-shelf { margin-bottom: 8px; }
/* Világos háttéren olvasható címkék (a régi sötét témás színek túl halványak voltak). */
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-draft { background: #dbeafe; color: #1e40af; }
.badge-rank { background: #e0f2fe; color: #075985; }
.badge-muted { color: #3f5248; }
.admin-events-focus-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* ---- Időpontválasztó ---- */
.when-picker { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid #cfdcd2; }
.when-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.when-head .label { margin: 0; font-weight: 900; font-size: 16px; color: #0b2e1d; }
.when-summary { font-weight: 800; color: #0f5132; }
.when-summary.is-empty { color: #b45309; font-weight: 700; }
.when-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.when-day { position: relative; flex: 0 0 62px; min-height: 76px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid #cfdcd2; border-radius: 14px; background: #f6faf6; color: #172334; font: inherit; cursor: pointer; padding: 6px 2px; }
.when-day:hover { border-color: #0f5132; }
.when-day.is-weekend { background: #eef6ee; }
.when-day.is-holiday { border-color: #f59e0b; background: #fffbeb; }
.when-day.is-on { background: #0f5132; border-color: #0f5132; color: #fff; }
.when-day.is-on.is-holiday { background: #b45309; border-color: #b45309; }
.when-day-wd { font-size: 11px; font-weight: 800; text-transform: uppercase; opacity: .8; }
.when-day-num { font-size: 22px; font-weight: 900; line-height: 1; }
.when-day-mo { font-size: 11px; opacity: .8; }
.when-day-flag { position: absolute; top: -7px; right: -3px; padding: 0 5px; border-radius: 999px; background: #f59e0b; color: #fff; font-size: 9px; font-weight: 800; }
.when-day-other { position: relative; overflow: hidden; }
.when-day-other input[type="date"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.when-times { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.when-time { min-height: 40px; padding: 0 12px; border: 1px solid #cfdcd2; border-radius: 12px; background: #fff; color: #172334; font: inherit; font-weight: 800; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.when-time small { font-size: 9px; font-weight: 700; color: #15803d; }
.when-time.is-usual { border-color: #84cc16; }
.when-time.is-on { background: #0f5132; color: #fff; border-color: #0f5132; }
.when-time.is-on small { color: #a3e635; }
.when-custom { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 12px; background: #eef4ee; }
.when-custom select { min-height: 34px; width: auto; padding: 0 6px; border-radius: 8px; font-weight: 800; }
.when-holiday-warn { padding: 10px 12px; border-radius: 12px; background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; font-size: 14px; font-weight: 600; }
.series-preview { padding: 10px 12px; border-radius: 14px; background: #f6faf6; border: 1px dashed #9aa8a0; display: flex; flex-direction: column; gap: 8px; }
.series-preview-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.series-preview-warn { color: #b45309; font-weight: 800; }
.series-preview-ok { color: #15803d; font-weight: 700; font-size: 13px; }
.series-preview-list { display: flex; flex-wrap: wrap; gap: 6px; }
.series-chip { padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid #cfdcd2; font-size: 12px; font-weight: 700; }
.series-chip.is-holiday { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.series-preview-note { color: #92400e; }

/* ---- Eseményűrlap egyszerűsítve ---- */
.event-form-guide { padding: 2px 2px 0; font-size: 15px; color: #0b2e1d; }
.event-form-guide strong { font-size: 18px; font-weight: 900; }
.event-form-subnav { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.event-form-subnav .subnav-btn { min-height: 48px; border-radius: 14px; font-weight: 800; }
.event-form-subnav .subnav-btn.active { background: #0f5132; color: #fff; border-color: #0f5132; }
.event-form-subnav .subnav-btn.is-done:not(.active)::after { content: ' ✓'; color: #15803d; }
.event-form-progress-summary:empty { display: none; }
#adminEventEditorCard .section-note { display: none; }
#adminEventEditorCard { grid-column: 1 / -1; max-width: 1100px; width: 100%; box-sizing: border-box; min-width: 0; }
#adminEventEditorCard .when-picker { min-width: 0; }
.when-day-pad { display: none; }
@media (max-width: 560px) {
  /* Mobilon két hét naptárszerűen (H–V oszlopok), görgetés nélkül. */
  .when-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; overflow: visible; }
  .when-day-pad { display: block; }
  .when-day { flex: none; min-height: 52px; border-radius: 10px; padding: 4px 0; }
  .when-day-wd { font-size: 9px; }
  .when-day-num { font-size: 17px; }
  .when-day-mo { display: none; }
  .when-day-flag { top: -6px; right: -2px; font-size: 8px; padding: 0 3px; }
  .when-day-other { grid-column: span 2; }
  .when-times { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .when-time { min-height: 38px; padding: 0 2px; font-size: 13px; border-radius: 10px; }
  .when-custom { grid-column: 1 / -1; justify-content: center; }
  .when-head .when-summary { font-size: 14px; }
}

/* ---- Helyszínek ---- */
.venue-settings { display: flex; flex-direction: column; gap: 14px; }
.venue-title { margin: 0; font-size: 20px; font-weight: 900; color: #0b2e1d; }
.venue-list { display: flex; flex-direction: column; gap: 10px; }
.venue-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid #cfdcd2; }
.venue-card.is-default { border: 2px solid #84cc16; }
.venue-card-icon { flex: 0 0 44px; height: 44px; border-radius: 14px; background: #dcfce7; color: #0f5132; display: flex; align-items: center; justify-content: center; }
.venue-card-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.venue-card-name { font-weight: 900; font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.venue-card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.venue-delete { color: #b91c1c; }
.venue-form { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: #f6faf6; border: 1px dashed #9aa8a0; }
.venue-chips { display: flex; flex-direction: column; gap: 6px; }
.venue-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.venue-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border-radius: 16px; border: 1px solid #cfdcd2; background: #fff; color: #172334; font: inherit; text-align: left; cursor: pointer; max-width: 100%; }
.venue-chip span { display: flex; flex-direction: column; min-width: 0; }
.venue-chip small { font-size: 12px; color: #3f5248; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.venue-chip.is-on { background: #0f5132; border-color: #0f5132; color: #fff; }
.venue-chip.is-on small { color: rgba(255,255,255,.85); }
.venue-chip-save { border-style: dashed; color: #0f5132; font-weight: 800; }

/* ---- Választó csempék (kapcsolók helyett) ---- */
.choice-block { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid #cfdcd2; }
.recurring-box.is-choice-mode { padding: 0; border: none; background: transparent; box-shadow: none; display: flex; flex-direction: column; gap: 10px; }
.recurring-box.is-choice-mode > .choice-block { margin: 0; }
.choice-title { font-weight: 900; font-size: 16px; color: #0b2e1d; }
.choice-subtitle { font-weight: 800; font-size: 14px; }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.choice-row.is-compact { grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); }
.choice-inline { display: flex; flex-direction: column; gap: 6px; }
.choice-tile { min-height: 50px; padding: 6px 8px; border-radius: 14px; border: 1px solid #cfdcd2; background: #fff; color: #172334; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.choice-tile small { font-size: 11px; font-weight: 600; opacity: .8; }
.choice-tile:hover:not([disabled]) { border-color: #0f5132; }
.choice-tile.is-on { background: #0f5132; border: 2px solid #0f5132; color: #fff; }
.choice-tile[disabled] { opacity: .55; cursor: default; }
.notify-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.notify-preset { padding: 14px; border-radius: 18px; border: 1px solid #cfdcd2; background: #fff; color: #172334; font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.notify-preset.is-on { background: #0f5132; border: 2px solid #0f5132; color: #fff; }
.notify-preset[disabled] { cursor: default; opacity: .7; }
.notify-preset-icon { font-size: 22px; }
.notify-preset-label { font-size: 16px; font-weight: 900; }
.notify-preset-desc { font-size: 13px; opacity: .85; }
.notify-custom > summary { cursor: pointer; font-weight: 800; color: #0f5132; }
.notify-custom[open] > summary { margin-bottom: 10px; }
.notify-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.notify-group-title { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #3f5248; }
.notify-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.notify-chip { min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px dashed #9aa8a0; background: #fff; color: #3f5248; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.notify-chip.is-on { border: 2px solid #0f5132; background: #dcfce7; color: #0f5132; }
.notify-chip[disabled] { cursor: default; opacity: .7; }
@media (max-width: 560px) {
  .notify-presets { grid-template-columns: 1fr; }
  .choice-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-row.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
#createEventForm [hidden] { display: none !important; }

/* ---- Vendég csempék az elszámolásban ---- */
.settle-tile.is-guest-tile { border-left: 6px solid #a3e635; background: #fbfef6; }
.settle-tile.is-guest-tile.is-unpaid { background: #fff7ed; }
.settle-tile.is-guest-tile.is-absent { background: #f6f8f6; }
.settle-tile.is-guest-tile .settle-avatar { background: #ecfccb; font-size: 15px; }
.settle-guest-of { font-size: 12px; font-weight: 700; color: #3f6212; }
.settle-methods.is-guest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settle-tile.has-guest { border-right: 6px solid #a3e635; }
.settle-guest-link { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px dashed #cfdcd2; }
.settle-guest-link-item { font-size: 12px; font-weight: 700; color: #15803d; }
.settle-guest-link-item.is-unpaid { color: #c2410c; }
.settle-guest-link-item.is-sent, .settle-guest-link-item.is-pending { color: #1d4ed8; }
.settle-guest-link-item.is-absent, .settle-guest-link-item.is-open { color: #3f4b45; }
.my-pay-guest { font-size: 12px; font-weight: 800; color: #3f6212; background: #ecfccb; border-radius: 999px; padding: 2px 10px; align-self: flex-start; display: inline-block; margin-bottom: 4px; }

/* ===== Játékos esemény-részletek – csempék ===== */
.hero-card:has(#nextEventHero .ued) > .hero-headline-row { display: none; }
#nextEventHero:has(.ued) { margin-top: 0; }
.hero-card:has(#nextEventHero .ued) { background: transparent; border: none; box-shadow: none; padding: 0; }
.ued { display: flex; flex-direction: column; gap: 14px; }
.ued-hero {
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px; border-radius: 26px; background: #0f5132; color: #ffffff;
  box-shadow: 0 18px 40px rgba(11, 61, 38, 0.28);
}
.ued-hero .user-tile-countdown .live-countdown { color: inherit; font: inherit; }
.ued-status-pill .badge { background: rgba(255, 255, 255, 0.16); color: #ffffff; border: none; }
.ued-hero-main { display: flex; gap: 16px; align-items: center; }
.ued-date {
  flex: 0 0 auto; min-width: 84px; padding: 10px 12px; border-radius: 18px;
  background: #a3e635; color: #14290a; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.ued-date-weekday { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.ued-date-time { font-size: 1.5rem; font-weight: 900; line-height: 1.1; }
.ued-title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; line-height: 1.1; color: #ffffff; }
.ued-meta { margin: 6px 0 0; color: rgba(255, 255, 255, 0.88); }
.ued-progress { position: relative; overflow: visible; }
.ued-progress > span { position: relative; z-index: 1; }
.ued-progress-min {
  position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; z-index: 2;
  border-radius: 2px; background: #fde68a;
}
.ued-readiness {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); font-size: 0.92rem;
}
.ued-readiness.readiness-danger, .ued-readiness.is-danger { background: rgba(254, 202, 202, 0.18); }
.ued-hero .rank-registration-notice { color: #172334; }
.ued-hero .user-tile-big-actions { margin-top: 0; }
.ued-hero .user-tile-big-actions .badge { align-self: center; background: rgba(255, 255, 255, 0.16); color: #ffffff; }

.ued-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ued-tile {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: 18px; border-radius: 22px; border: 1px solid #cfdcd2; background: #ffffff; color: #172334;
}
.ued-tile-wide { grid-column: 1 / -1; }
.ued-tile-kicker {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; color: #15803d;
}
.ued-tile-title { font-size: 1.15rem; font-weight: 800; color: #0b2e1d; }
.ued-tile .weather-placeholder-card { border: none; background: transparent; padding: 0; box-shadow: none; }
.ued-tile .payment-summary-box { border: none; padding: 0; background: transparent; }
.ued-link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.ued-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: #dcfce7; color: #14532d; font-weight: 800; font-size: 0.9rem; text-decoration: none;
}
.ued-link:hover { background: #bbf7d0; }
.ued-tile .participant-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; border: none; padding: 0; background: transparent; }
.ued-tile .participant-preview-label { font-size: 0.8rem; font-weight: 800; color: #3f5248; text-transform: uppercase; letter-spacing: 0.05em; }
.ued-tile .participant-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ued-tile .participant-chip { padding: 6px 12px; border-radius: 999px; background: #f0fdf4; border: 1px solid #bbf0cd; }

.ued-draw { margin-top: 14px; }
.ued-team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ued-team { padding: 14px; border-radius: 18px; border: 1px solid #e2e8e4; background: #f8faf9; display: flex; flex-direction: column; gap: 10px; }
.ued-team.is-mine { border: 2px solid #15803d; background: #f0fdf4; }
.ued-team-head { display: flex; align-items: center; gap: 10px; }
.ued-team-mine { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: #15803d; color: #ffffff; font-size: 0.75rem; font-weight: 800; }
.ued-team-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ued-team-player { padding: 5px 11px; border-radius: 999px; background: #ffffff; border: 1px solid #dfe7e2; font-size: 0.9rem; }
.ued-team-player.is-me { background: #a3e635; border-color: #a3e635; font-weight: 800; }
.ued-team-player b { color: #15803d; font-size: 0.75rem; }
.ued-team-player em { color: #6b7d72; font-size: 0.75rem; font-style: normal; }

@media (max-width: 640px) {
  .ued-hero { padding: 18px; border-radius: 22px; }
  .ued-grid, .ued-team-grid { grid-template-columns: 1fr; }
  .ued-hero .user-tile-big-actions .btn { flex: 1 1 130px; min-height: 48px; }
}
.ued-tile .participant-preview-section { border: none; padding: 0; background: transparent; box-shadow: none; }

/* ===== Email központ és Email küldés – csempék ===== */
[data-admin-workspace-panel="emailCenter"] > .card,
[data-admin-workspace-panel="email"] > .card { background: transparent; border: none; box-shadow: none; padding: 0; }
#adminEmailCenterContent, #adminEmailContent { display: flex; flex-direction: column; gap: 14px; }
.ec-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ec-stat {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 20px;
  background: #ffffff; border: 1px solid #cfdcd2; color: #172334;
}
.ec-stat-value { font-size: 1.9rem; font-weight: 900; line-height: 1; }
.ec-stat-label { font-size: 0.85rem; font-weight: 700; color: #3f5248; }
.ec-stat.tone-strong { background: #15803d; border-color: #15803d; color: #ffffff; }
.ec-stat.tone-strong .ec-stat-label { color: #dcfce7; }
.ec-stat.tone-mid { background: #dcfce7; border-color: #bbf0cd; }
.ec-stat.tone-warn { background: #fef3c7; border-color: #fde68a; }
.ec-stat.tone-bad { background: #fee2e2; border-color: #fecaca; color: #7f1d1d; }
.ec-block, .em-tile {
  display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 22px;
  background: #ffffff; border: 1px solid #cfdcd2;
}
.ec-block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.ec-block-head h3 { margin: 0; font-size: 1.15rem; font-weight: 900; color: #0b2e1d; }
.ec-list { display: flex; flex-direction: column; gap: 8px; }
.ec-empty { padding: 14px 16px; border-radius: 16px; background: #f4f8f5; color: #3f5248; font-size: 0.92rem; }
.ec-row {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border-radius: 18px;
  background: #f8faf9; border: 1px solid #e2e8e4; color: #172334; font: inherit; text-align: left;
}
.ec-row-button { cursor: pointer; }
.ec-row-button:hover { border-color: #86efac; background: #f0fdf4; }
.ec-row.is-selected { border: 2px solid #15803d; background: #f0fdf4; }
.ec-row.has-error { border-left: 5px solid #dc2626; }
.ec-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.ec-row-kicker { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; color: #15803d; text-transform: uppercase; }
.ec-date {
  flex: 0 0 auto; width: 64px; padding: 8px 4px; border-radius: 14px; background: #0f5132; color: #ffffff;
  display: flex; flex-direction: column; align-items: center;
}
.ec-date-day { font-size: 0.78rem; font-weight: 700; color: #a3e635; }
.ec-date-time { font-size: 1.05rem; font-weight: 900; }
.ec-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex: 0 1 auto; }
.ec-pill { padding: 4px 10px; border-radius: 999px; background: #eef2ef; color: #172334; font-size: 0.8rem; font-weight: 800; white-space: nowrap; }
.ec-pill.is-good { background: #dcfce7; color: #14532d; }
.ec-pill.is-warn { background: #fef3c7; color: #78350f; }
.ec-pill.is-bad { background: #fee2e2; color: #991b1b; }
.ec-log.is-open .ec-recipients { display: flex; flex-direction: column; gap: 6px; padding: 10px 0 4px 18px; border-left: 3px solid #bbf0cd; margin: 6px 0 4px 30px; }
.ec-recipient {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; padding: 10px 12px;
  border-radius: 14px; background: #ffffff; border: 1px solid #e2e8e4; border-left-width: 4px;
}
.ec-recipient.is-good { border-left-color: #16a34a; }
.ec-recipient.is-warn { border-left-color: #f59e0b; }
.ec-recipient.is-bad { border-left-color: #dc2626; }
.ec-recipient-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ec-recipient-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }

.em-tile details.event-card { border: none; padding: 0; background: transparent; box-shadow: none; }
.em-tile details.event-card > summary { display: none; }
.em-tile textarea, .em-tile input, .em-tile select { border-radius: 14px; }
.em-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.em-step { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #f4f8f5; }
.em-preview { display: flex; flex-direction: column; gap: 12px; }
.em-verdict { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; }
.em-verdict.is-good { background: #dcfce7; color: #14532d; }
.em-verdict.is-warn { background: #fef3c7; color: #78350f; }
.em-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; }
.em-facts > div { display: flex; flex-direction: column; gap: 2px; }
.em-facts dt { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; color: #3f5248; text-transform: uppercase; }
.em-facts dd { margin: 0; font-size: 0.95rem; }

@media (max-width: 640px) {
  .ec-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-row { flex-wrap: wrap; }
  .ec-row-main { flex-basis: calc(100% - 80px); }
  .ec-pills { justify-content: flex-start; flex-basis: 100%; }
  .ec-log.is-open .ec-recipients { margin-left: 8px; padding-left: 10px; }
  .ec-recipient-side { align-items: flex-start; text-align: left; }
  .em-selects, .em-facts { grid-template-columns: 1fr; }
}
[data-admin-email-center-refresh] { min-height: 42px; padding: 0 18px; border-radius: 999px; background: #ffffff !important; color: #0f5132 !important; border: 2px solid #0f5132 !important; box-shadow: none !important; font-weight: 800; }

/* ===== Tornák – csempék ===== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-admin-workspace-panel="availableTournaments"] > .card { background: transparent; border: none; box-shadow: none; padding: 0; }
#adminAvailableTournamentsContent { display: flex; flex-direction: column; gap: 14px; margin-top: 0; }
.to-hero { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 26px; background: #0f5132; color: #ffffff; box-shadow: 0 18px 40px rgba(11, 61, 38, 0.22); }
.to-hero .ued-meta { max-width: 720px; }
.to-filters { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 22px; background: #ffffff; border: 1px solid #cfdcd2; }
.to-filter-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.to-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.to-filters .label { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.to-more > summary { cursor: pointer; font-weight: 800; color: #15803d; padding: 6px 0; }
.to-saved { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding: 14px; border-radius: 16px; background: #f4f8f5; }
.to-saved-head { display: flex; flex-direction: column; gap: 2px; }
.to-saved-form { display: flex; flex-wrap: wrap; gap: 10px; }
.to-saved-form input { flex: 1 1 220px; }
.to-saved-list { display: flex; flex-direction: column; gap: 8px; }
.to-saved-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #ffffff; border: 1px solid #e2e8e4; }
.to-list { display: flex; flex-direction: column; gap: 10px; }
.to-card { border-radius: 20px; border: 1px solid #e2e8e4; background: #f8faf9; }
.to-card[open] { border: 2px solid #15803d; background: #ffffff; }
.to-card-head { display: flex; align-items: flex-start; gap: 14px; padding: 14px; cursor: pointer; list-style: none; }
.to-card-head::-webkit-details-marker { display: none; }
.to-date { width: 70px; }
.to-card-main { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.to-card-title { font-size: 1.15rem; font-weight: 900; color: #0b2e1d; }
.to-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.to-card-toggle { color: #15803d; transition: transform 0.15s ease; align-self: center; }
.to-card[open] .to-card-toggle { transform: rotate(90deg); }
.to-card-body { display: flex; flex-direction: column; gap: 14px; padding: 0 16px 16px; }
.to-progress-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 0.9rem; color: #3f5248; }
.to-progress { height: 10px; border-radius: 999px; background: #e2e8e4; overflow: hidden; }
.to-progress > span { display: block; height: 100%; border-radius: 999px; background: #15803d; }
.to-card-body .event-card { border-radius: 18px; }

@media (max-width: 900px) {
  .to-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .to-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .to-hero { padding: 18px; border-radius: 22px; }
  .to-filter-row, .to-filter-grid { grid-template-columns: 1fr; }
  .to-card-head { gap: 10px; padding: 12px; }
}

/* ===== Ki tartozik? – egyenlegek csempékben ===== */
#adminFinanceBalancesCard { background: transparent; border: none; box-shadow: none; padding: 0; }
.fb { display: flex; flex-direction: column; gap: 14px; }
.fb-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fb-stats .ec-stat-value { font-size: 1.6rem; }
.fb-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fb-filters input[type="search"] { flex: 1 1 220px; min-height: 42px; border-radius: 999px; padding: 0 16px; }
.fb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #cfdcd2; background: #ffffff; color: #172334; font: inherit; font-size: 0.9rem; font-weight: 800; cursor: pointer; }
.fb-chip.is-active { background: #0f5132; border-color: #0f5132; color: #ffffff; }
.fb-list { display: flex; flex-direction: column; gap: 8px; }
.fb-row { border-radius: 18px; border: 1px solid #e2e8e4; background: #f8faf9; border-left: 5px solid #cbd5d0; }
.fb-row.is-debt { border-left-color: #dc2626; }
.fb-row.is-credit { border-left-color: #16a34a; }
.fb-row[open] { background: #ffffff; border-color: #15803d; border-left-width: 5px; }
.fb-row-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.fb-row-head::-webkit-details-marker { display: none; }
.fb-avatar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: #dcfce7; color: #14532d; font-weight: 900; }
.fb-row.is-debt .fb-avatar { background: #fee2e2; color: #991b1b; }
.fb-row-main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.fb-amount { font-size: 1.2rem; font-weight: 900; white-space: nowrap; color: #172334; }
.fb-row.is-debt .fb-amount { color: #b91c1c; }
.fb-row.is-credit .fb-amount { color: #15803d; }
.fb-row[open] .to-card-toggle { transform: rotate(90deg); }
.fb-status { font-weight: 700; }
.fb-status.is-debt { color: #b91c1c; }
.fb-status.is-credit { color: #15803d; }
.fb-detail { display: flex; flex-direction: column; gap: 12px; padding: 0 14px 14px; }
.fb-detail-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fb-adjust, .fb-history { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: #f4f8f5; }
.fb-adjust-title { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #15803d; }
.fb-adjust-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 10px; align-items: end; }
.fb-adjust-row .label { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.fb-history-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 8px 10px; border-radius: 12px; background: #ffffff; }
.fb-history-main { display: flex; flex-direction: column; gap: 2px; }
.fb-history-nums { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fb-ledger > summary { cursor: pointer; }
@media (max-width: 640px) {
  .fb-stats { grid-template-columns: 1fr; }
  .fb-adjust-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fb-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fb-stats .ec-stat { padding: 12px 10px; border-radius: 16px; }
  .fb-stats .ec-stat-value { font-size: 1.05rem; }
  .fb-stats .ec-stat-label { font-size: 0.72rem; }
}
.admin-events-settle-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 18px; background: #fef3c7; border: 1px solid #fde68a; color: #78350f; }

/* ===== Rövid regisztráció ===== */
.auth-register-intro-tile { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 22px; background: #0f5132; color: #ffffff; margin-bottom: 12px; }
.auth-register-intro-tile h3 { margin: 0; font-size: 1.6rem; font-weight: 900; color: #ffffff; }
.auth-register-intro-tile p { margin: 0; color: rgba(255, 255, 255, 0.88); }
.auth-register-kicker { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; color: #a3e635; }
.auth-invite-block [data-register-invite-toggle] { align-self: flex-start; }

/* ===== Első lépések: Mire használod? → sportág → első csapat ===== */
#onboardingView { padding-bottom: 32px; }
.ob-shell { width: 100%; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.ob-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 20px; background: #0b3d26; color: #ffffff; }
.ob-title { margin: 0; font-size: 1.2rem; font-weight: 900; color: #ffffff; flex-grow: 1; }
.ob-step { font-size: 0.8rem; opacity: 0.85; white-space: nowrap; }
.ob-back { width: 40px; height: 40px; border: none; border-radius: 12px; background: rgba(255, 255, 255, 0.16); color: #ffffff; display: grid; place-items: center; cursor: pointer; }
.ob-lead h3 { margin: 0; font-size: 1.7rem; font-weight: 900; color: #0b2e1d; }
.ob-lead p { margin: 4px 0 0; color: #3f5248; }
.ob-purpose-list { display: grid; gap: 10px; }
.ob-purpose { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 22px; border: 1px solid #cfdcd2; background: #ffffff; color: #172334; font: inherit; text-align: left; cursor: pointer; }
.ob-purpose-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; background: #dcfce7; color: #15803d; display: grid; place-items: center; }
.ob-purpose-copy { display: flex; flex-direction: column; gap: 4px; }
.ob-purpose-copy strong { font-size: 1.1rem; font-weight: 900; }
.ob-purpose-copy span { font-size: 0.92rem; color: #3f5248; }
.ob-purpose.is-on { border: 2px solid #0f5132; background: #0f5132; color: #ffffff; }
.ob-purpose.is-on .ob-purpose-icon { background: #a3e635; color: #14290a; }
.ob-purpose.is-on .ob-purpose-copy span { color: rgba(255, 255, 255, 0.88); }
.ob-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 22px; background: #ffffff; border: 1px solid #cfdcd2; }
.ob-card .label { margin: 0; }
.ob-card input { min-height: 48px; border-radius: 14px; }
.ob-card-title { font-size: 1.1rem; font-weight: 900; color: #0b2e1d; }
.ob-card p { margin: 0; }
.ob-next { min-height: 56px; border: none; border-radius: 16px; background: #a3e635; color: #14290a; font: inherit; font-size: 1.05rem; font-weight: 900; cursor: pointer; }
.ob-next:disabled { opacity: 0.55; cursor: not-allowed; }
.ob-mode { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: #ffffff; border: 1px solid #cfdcd2; }
.ob-mode button { flex: 1 1 0; min-height: 44px; border: none; border-radius: 12px; background: transparent; color: #172334; font: inherit; font-size: 0.92rem; font-weight: 800; cursor: pointer; }
.ob-mode button.is-on { background: #0f5132; color: #ffffff; }
.ob-group-title { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; color: #15803d; }
.ob-sport-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ob-sport { min-height: 96px; padding: 12px 14px; border-radius: 18px; border: 1px solid #cfdcd2; background: #ffffff; color: #172334; font: inherit; text-align: left; display: flex; flex-direction: column; gap: 2px; cursor: pointer; overflow: hidden; }
.ob-sport strong { font-size: 1rem; font-weight: 900; }
.ob-sport span { font-size: 0.78rem; color: #3f5248; }
.ob-sport .ob-ball { margin-bottom: 6px; }
.ob-sport.is-on { border: 2px solid #0f5132; background: #0f5132; color: #ffffff; }
.ob-sport.is-on span { color: rgba(255, 255, 255, 0.88); }
.ob-sport-other { min-height: 64px; border: 2px dashed #9fb7a6; background: transparent; }
.ob-sport-other.is-on { border-style: solid; }
.ob-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ob-chip { padding: 6px 12px; border-radius: 999px; background: #ffffff; border: 1px solid #cfdcd2; font-size: 0.85rem; font-weight: 800; }
.ob-chip.is-dark { background: #0f5132; border-color: #0f5132; color: #ffffff; }
.ob-link { border: none; background: none; padding: 0; color: #0f5132; font: inherit; font-size: 0.85rem; font-weight: 800; text-decoration: underline; cursor: pointer; }
.ob-choice { display: flex; flex-direction: column; gap: 6px; }
.ob-choice-label { font-size: 0.9rem; font-weight: 700; }
.ob-choice-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-choice-row button { flex: 1 1 0; min-width: 64px; min-height: 48px; border-radius: 14px; border: 1px solid #cfdcd2; background: #ffffff; color: #172334; font: inherit; font-weight: 800; cursor: pointer; }
.ob-choice-row button.is-on { border: 2px solid #0f5132; background: #0f5132; color: #ffffff; }
.ob-note { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 22px; background: #dcfce7; border: 1px solid #bbf0cd; color: #14532d; }

/* Sportáganként saját mozgás; az indulásokat a sorrend csúsztatja el. */
.ob-ball { transform-origin: 50% 50%; will-change: transform; }
.ob-sport:nth-child(3n+2) .ob-ball { animation-delay: .25s; }
.ob-sport:nth-child(3n) .ob-ball { animation-delay: .5s; }
.ob-anim-bounce { transform-origin: 50% 100%; animation: ob-bounce 1.4s cubic-bezier(.3,0,.4,1) infinite; }
@keyframes ob-bounce { 0%,100% { transform: translateY(0) scale(1,1); } 10% { transform: translateY(0) scale(1.14,.86); } 45% { transform: translateY(-12px) scale(.95,1.05) rotate(25deg); } 80% { transform: translateY(0) rotate(45deg); } }
.ob-anim-dribble { transform-origin: 50% 100%; animation: ob-dribble .7s cubic-bezier(.5,0,.5,1) infinite alternate; }
@keyframes ob-dribble { 0% { transform: translateY(-8px); } 85% { transform: translateY(4px) scale(1,1); } 100% { transform: translateY(4px) scale(1.12,.86); } }
.ob-anim-roll { animation: ob-roll 3s ease-in-out infinite; }
@keyframes ob-roll { 0%,100% { transform: translateX(0) rotate(0); } 50% { transform: translateX(40px) rotate(260deg); } }
.ob-anim-roll-back { animation: ob-roll-back 3.4s ease-in-out infinite; }
@keyframes ob-roll-back { 0%,100% { transform: translateX(0) rotate(0); } 50% { transform: translateX(34px) rotate(-220deg); } }
.ob-anim-spin { animation: ob-spin 2.2s linear infinite; }
@keyframes ob-spin { to { transform: rotate(360deg); } }
.ob-anim-slide { animation: ob-slide 2.4s cubic-bezier(.2,.8,.3,1) infinite; }
@keyframes ob-slide { 0% { transform: translateX(0); } 40% { transform: translateX(44px); } 55% { transform: translateX(40px) rotate(-6deg); } 100% { transform: translateX(0); } }
.ob-anim-flutter { animation: ob-flutter 2.6s ease-in-out infinite; }
@keyframes ob-flutter { 0%,100% { transform: translateY(-6px) rotate(-14deg); } 25% { transform: translateY(0) rotate(10deg); } 50% { transform: translateY(5px) rotate(-8deg); } 75% { transform: translateY(0) rotate(12deg); } }
.ob-anim-hop { transform-origin: 50% 100%; animation: ob-hop 1s cubic-bezier(.3,0,.4,1) infinite; }
@keyframes ob-hop { 0%,100% { transform: translate(0,0); } 50% { transform: translate(10px,-10px) rotate(120deg); } }
.ob-anim-swing { transform-origin: 50% 90%; animation: ob-swing 1.6s ease-in-out infinite; }
@keyframes ob-swing { 0%,100% { transform: rotate(-18deg); } 50% { transform: rotate(22deg); } }
.ob-anim-pulse { animation: ob-pulse 2s ease-in-out infinite; }
@keyframes ob-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .ob-ball { animation: none !important; } }

@media (max-width: 640px) {
  .ob-sport-grid { grid-template-columns: 1fr 1fr; }
  .ob-lead h3 { font-size: 1.45rem; }
}
#registerFormDetails { display: flex; flex-direction: column; gap: 12px; }
#registerFormDetails > button[type="submit"] { width: 100%; min-height: 54px; border: none; border-radius: 16px; background: #a3e635; color: #14290a; font-size: 1.05rem; font-weight: 900; box-shadow: none; }
#registerFormDetails input { min-height: 48px; }

/* ===== Belépés / regisztráció / megerősítés – csempés terv (2026-11-22) =====
   A régi kék plakátos oldal helyett: zöld márkasáv, sötétzöld fejléc-csempe animált labdákkal,
   Google gomb felül, „vagy emaillel” elválasztó, fehér űrlapcsempe, lime gomb. */
body:has(.app-shell.guest-mode)::before { opacity: 0 !important; }
body:has(.app-shell.guest-mode) { background: #eef4ee !important; }
.app-shell.guest-mode .main { background: transparent; }

#authView.auth-v2.active {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px;
  padding: 0 0 32px !important;
  font-family: Inter, system-ui, sans-serif;
  color: #172334;
}
#authView.auth-v2 > * { width: min(100%, 480px); }
#authView.auth-v2 .auth-brandbar {
  order: -1;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 0 0 22px 22px;
  background: #0b3d26;
  color: #fff;
}
#authView.auth-v2 .auth-brand { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.01em; }
#authView.auth-v2 .auth-brand-step { margin-left: auto; font-size: 0.8rem; opacity: 0.85; }
#authView.auth-v2 .auth-brand-step:empty { display: none; }

#authView.auth-v2 .auth-shell,
#authView.auth-v2 .auth-shell.auth-shell-register-mode {
  display: block !important;
  width: min(100%, 480px) !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#authView.auth-v2 .auth-form-stage { width: 100%; }
#authView.auth-v2 .auth-card.auth-form-panel,
#authView.auth-v2 .auth-shell-register-mode #registerPanel {
  flex-direction: column;
  gap: 14px;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Fejléc-csempe */
#authView.auth-v2 .auth-card-head,
#authView.auth-v2 .auth-shell-register-mode #registerPanel .auth-card-head,
#authView.auth-v2 .auth-verify-head {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 22px !important;
  border-radius: 24px;
  background: #0f5132;
  color: #fff;
  overflow: hidden;
}
#authView.auth-v2 .auth-head-copy { display: flex; flex-direction: column; gap: 6px; max-width: none !important; }
#authView.auth-v2 .auth-head-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #a3e635;
}
#authView.auth-v2 .auth-card-head h2,
#authView.auth-v2 .auth-verify-head h2 {
  margin: 0 !important;
  font-size: clamp(1.6rem, 7vw, 1.9rem) !important;
  font-weight: 900;
  line-height: 1.1 !important;
  color: #fff !important;
  letter-spacing: -0.01em;
}
#authView.auth-v2 .auth-card-head p,
#authView.auth-v2 .auth-verify-head p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88) !important;
}
#authView.auth-v2 .auth-head-balls { display: flex; gap: 12px; min-height: 34px; }
#authView.auth-v2 .auth-head-balls:empty { display: none; }
#authView.auth-v2 .auth-head-balls svg { width: 28px; height: 28px; }
#authView.auth-v2 .auth-toggle {
  display: inline-flex !important;
  align-self: flex-start;
  gap: 4px;
  padding: 4px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  width: auto !important;
}
#authView.auth-v2 .auth-toggle-btn {
  min-height: 36px;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font: inherit;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  cursor: pointer;
}
#authView.auth-v2 .auth-toggle-btn.active { background: #a3e635 !important; color: #14290a !important; }

/* Google + elválasztó */
#authView.auth-v2 .auth-google-mount {
  display: flex;
  justify-content: center;
  min-height: 44px;
  margin: 0 !important;
}
#authView.auth-v2 .auth-google-mount:empty { display: none; }
#authView.auth-v2 .auth-google-mount:empty + .auth-or { display: none; }
#authView.auth-v2 .auth-google-loading { align-self: center; font-size: 0.9rem; color: #3f5248; }
#authView.auth-v2 .auth-or {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #3f5248;
}
#authView.auth-v2 .auth-or::before,
#authView.auth-v2 .auth-or::after { content: ''; flex: 1; height: 1px; background: #cfdcd2; }

/* Űrlapcsempe */
#authView.auth-v2 #loginForm,
#authView.auth-v2 #registerFormDetails,
#authView.auth-v2 .email-verification-panel form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 !important;
  padding: 18px !important;
  border-radius: 22px;
  background: #fff !important;
  border: 1px solid #cfdcd2 !important;
  box-shadow: none !important;
}
#authView.auth-v2 #registerForm { display: block; margin: 0; padding: 0; background: transparent; border: 0; }
#authView.auth-v2 .label,
#authView.auth-v2 .auth-verify-form-title {
  display: block;
  margin: 0 0 6px;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #172334 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
#authView.auth-v2 .auth-verify-form-title { margin: 0; font-size: 1rem !important; font-weight: 900 !important; }
#authView.auth-v2 input[type="text"],
#authView.auth-v2 input[type="email"],
#authView.auth-v2 input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px !important;
  border: 1px solid #cfdcd2 !important;
  background: #f8faf9 !important;
  color: #172334 !important;
  font: inherit;
  font-size: 1rem;
  box-shadow: none !important;
}
#authView.auth-v2 input:focus {
  outline: 3px solid rgba(163, 230, 53, 0.55) !important;
  outline-offset: 1px;
  border-color: #15803d !important;
}
#authView.auth-v2 form .btn,
#authView.auth-v2 #registerFormDetails button[type="submit"] {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  border: 0 !important;
  border-radius: 16px !important;
  background: #a3e635 !important;
  color: #14290a !important;
  font: inherit;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  box-shadow: none !important;
  cursor: pointer;
}
#authView.auth-v2 form .btn:hover { background: #95d62a !important; }
#authView.auth-v2 form .btn.btn-secondary {
  background: #fff !important;
  border: 1px solid #0f5132 !important;
  color: #0f5132 !important;
}
#authView.auth-v2 .auth-inline-link {
  padding: 0;
  border: 0;
  background: none;
  color: #0f5132 !important;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#authView.auth-v2 .auth-switch-note {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  font-size: 0.92rem;
  color: #3f5248;
}
#authView.auth-v2 .auth-switch-note .muted { color: #3f5248 !important; font-size: 0.92rem; }
#authView.auth-v2 #showVerificationResend { align-self: center; margin: 0 !important; font-weight: 600; color: #3f5248 !important; }

/* Emailcím megerősítése */
#authView.auth-v2 .email-verification-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
#authView.auth-v2 .email-verification-panel[hidden] { display: none !important; }
#authView.auth-v2 .auth-verify-delivery {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ecfccb;
  border: 1px solid #c7e98f;
  color: #26400d;
  font-size: 0.92rem;
  line-height: 1.45;
}
#authView.auth-v2 .auth-verify-delivery:empty { display: none; }
#authView.auth-v2 .email-verification-panel .small.muted { color: #3f5248 !important; font-size: 0.85rem; margin: 0; }
#authView.auth-v2 #verificationResendNotice:empty { display: none; }
#authView.auth-v2 #verificationBackToLogin { align-self: center; margin: 0 !important; }
/* Megerősítés közben a belépő űrlap ne legyen alatta. */
#authView.auth-v2:has(#emailVerificationPanel:not([hidden])) .auth-shell { display: none !important; }

#authView.auth-v2 .auth-version-note { text-align: center; font-size: 0.75rem; color: #6b7d72 !important; align-self: center; }
#authView.auth-v2 #inviteLandingCard:not(.hidden) {
  border-radius: 22px;
  border: 1px solid #cfdcd2;
  background: #fff;
  box-shadow: none;
}

@media (min-width: 900px) {
  #authView.auth-v2 > * { width: min(100%, 520px); }
  #authView.auth-v2 .auth-shell { width: min(100%, 520px) !important; }
  #authView.auth-v2 .auth-brandbar { width: 100%; padding: 16px 32px; }
  #authView.auth-v2 .auth-brand { font-size: 1.3rem; }
  #authView.auth-v2.active { padding-top: 0 !important; }
}
body:has(.app-shell.guest-mode)::after { display: none !important; }
#authView.auth-v2 .auth-card-head h2,
#authView.auth-v2 .auth-shell-register-mode #registerPanel .auth-card-head h2 { max-width: none !important; }
#authView.auth-v2 .auth-switch-note { flex-direction: row !important; flex-wrap: wrap; }
/* A pattogó/guruló labdák ne lógjanak egymásra. */
#authView.auth-v2 .auth-head-balls { gap: 22px; padding-right: 24px; }
#authView.auth-v2 .auth-legal-links { display: flex; justify-content: center; gap: 8px; margin: 0; font-size: 0.85rem; color: #3f5248; }
#authView.auth-v2 .auth-legal-links a { color: #0f5132; font-weight: 700; }

/* Pénzügyeim: tartozás-csempe fizetési gombokkal (koppintásra a szervező fizetési linkje nyílik). */
.my-team-pay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.my-team-pay-btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid #c2410c; background: #fff; color: #c2410c; font-weight: 900; font-size: 14px; text-decoration: none;
}
.my-team-pay-btn.is-primary { background: #c2410c; color: #fff; }
.my-team-pay-none { font-size: 13px; color: #7c2d12; }
.my-team-open .when-open { display: none; }
.my-team-tile[open] .my-team-open { display: inline; }
.my-team-tile[open] .my-team-open .when-open { display: inline; }
.my-team-tile[open] .my-team-open .when-closed { display: none; }
.my-team-open { align-self: flex-start; padding: 4px 0; }
.my-team-bank { padding: 0 14px 10px; }
.my-team-tile.is-debt { grid-column: 1 / -1; }
a.user-tile { text-decoration: none; color: inherit; }

/* Fizetési profil – csempés (2026-11-22). */
.event-card.pay-profile { display: flex; flex-direction: column; gap: 14px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.pay-profile-head { padding: 22px; border-radius: 24px; background: #0f5132; color: #fff; display: flex; flex-direction: column; gap: 6px; }
.pay-profile-kicker { font-size: .75rem; font-weight: 800; letter-spacing: .08em; color: #a3e635; }
.pay-profile-head h3 { margin: 0; font-size: clamp(1.4rem, 5vw, 1.8rem); font-weight: 900; line-height: 1.15; color: #fff; }
.pay-profile-head p { margin: 0; font-size: .95rem; line-height: 1.45; color: rgba(255,255,255,.88); }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.pay-method { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid #cfdcd2; }
.pay-method-bank { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pay-method-bank .pay-method-head { grid-column: 1 / -1; }
.pay-method-head { display: flex; align-items: center; gap: 12px; }
.pay-method-head strong { display: block; font-size: 1.05rem; font-weight: 900; color: #172334; }
.pay-method-head span:not(.pay-method-badge) { display: block; font-size: .85rem; color: #3f5248; }
.pay-method-badge { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1rem; color: #fff; background: #0f5132; }
.pay-method-badge.is-revolut { background: #191c1f; }
.pay-method-badge.is-wise { background: #9fe870; color: #163300; }
.pay-method-badge.is-bank { background: #0f5132; }
.pay-method-badge.is-qr { background: #ecfccb; color: #0f5132; border: 1px solid #c7e98f; }
.pay-field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 700; color: #172334; }
.pay-field input, .pay-method-qr input[type="file"] {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 14px; border-radius: 14px;
  border: 1px solid #cfdcd2; background: #f8faf9; color: #172334; font: inherit; font-size: 1rem; font-weight: 500;
}
.pay-method-qr input[type="file"] { padding: 10px 14px; }
.pay-field input:focus { outline: 3px solid rgba(163,230,53,.55); outline-offset: 1px; border-color: #15803d; }
.pay-method-hint { font-size: .85rem; color: #3f5248; }
.pay-method-qr .payment-qr-preview-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; }
#profileView[data-profile-tile="payment"] .profile-save-row .btn,
#profileView[data-profile-tile="payment"] .profile-save-row button[type="submit"] {
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 16px; background: #a3e635; color: #14290a; font-weight: 900; font-size: 1.05rem; box-shadow: none;
}
.pay-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .pay-methods { grid-template-columns: minmax(0, 1fr); } }

/* ===== Óra mód (jóga, pilates, TRX…): nyugodtabb színvilág, focis elemek nélkül ===== */
body.mode-class #eventSubstitutesChoice,
body.mode-class div:has(> #editSubstitutesCount),
body.mode-class [data-admin-team-section="draw"],
body.mode-class #eventVenueTypeChoice[hidden] { display: none !important; }
body:not(.mode-class) #eventVenueTypeChoice { display: none !important; }

.user-tile-big.is-class-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #2f5d55 0%, #4f8a7b 55%, #8fb8a8 100%);
  box-shadow: 0 18px 40px rgba(47, 93, 85, 0.28);
}
.user-tile-big.is-class-hero .user-tile-kicker { color: #f3e8ff; }
.user-tile-big.is-class-hero .user-tile-countdown { background: #f3e8ff; color: #3b2f5c; }
.user-tile-big.is-class-hero .user-tile-progress > span { background: #f3e8ff; }
.user-tile-big.is-class-hero .user-tile-big-actions .btn:not(.btn-danger):not(.btn-secondary):not(.user-tile-detail-btn) {
  background: #fdf8ee; color: #2f5d55; box-shadow: 0 8px 20px rgba(20, 50, 45, 0.25);
}
.user-tile-big.is-class-hero > *:not(.class-hero-art) { position: relative; z-index: 1; }
.class-hero-art {
  position: absolute; right: 14px; top: 14px; z-index: 0;
  display: flex; gap: 6px; align-items: flex-end;
  color: rgba(253, 248, 238, 0.32); pointer-events: none;
}
.class-hero-pose { width: 74px; height: 70px; animation: class-breathe 5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes class-breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.06); opacity: 1; } }
@media (max-width: 640px) { .class-hero-pose { width: 52px; height: 50px; } .class-hero-art { right: 10px; top: 10px; } }
@media (prefers-reduced-motion: reduce) { .class-hero-pose { animation: none; } }
/* A pózok a csempe tetején, saját sávban (nem takarják a feliratokat). */
.class-hero-art { position: static; align-self: flex-start; gap: 14px; margin-bottom: -4px; color: rgba(253, 248, 238, 0.7); }
.class-hero-pose { width: 64px; height: 60px; }
@media (max-width: 640px) { .class-hero-pose { width: 56px; height: 52px; } }

/* Profil → Belépés és biztonság: csak ebben a csempében látszik, a profil űrlap ilyenkor rejtve. */
#profileView:not([data-profile-tile="security"]) #profileSecuritySection { display: none !important; }
#profileView[data-profile-tile="security"] #profileForm,
#profileView[data-profile-tile="security"] .profile-avatar-preview,
#profileView[data-profile-tile="security"] .profile-panel-head,
#profileView[data-profile-tile="security"] #pushSettings { display: none !important; }
#profileSecuritySection .pay-method .btn { align-self: flex-start; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 900; }
#profileSecuritySection .pay-method .btn:not(.btn-secondary) { background: #a3e635; color: #14290a; border: 0; box-shadow: none; }
#profileSecurityContent { display: flex; flex-direction: column; gap: 14px; }
#profileSecuritySection .pay-method .btn.btn-secondary { background: #fff; color: #0f5132; border: 1px solid #0f5132; box-shadow: none; }
#profileSecuritySection .pay-method .btn:disabled { opacity: .5; cursor: not-allowed; }
#authView.auth-v2 .auth-google-switch { align-self: center; margin-top: -6px; font-size: .85rem; font-weight: 700; color: #3f5248 !important; }
#authView.auth-v2 .auth-google-mount:empty ~ .auth-or { display: none; }

/* Minimum alatt, hamarosan kezdés: döntés a főcsempén. */
.admin-below-min { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: #fff7ed; color: #7c2d12; border: 2px solid #fb923c; }
.admin-below-min strong { font-size: 1rem; }
.admin-below-min span { font-size: .9rem; }
.admin-below-min .btn { align-self: flex-start; min-height: 46px; border-radius: 14px; font-weight: 900; }

/* Elfelejtett jelszó: a panel alatt a belépő űrlap ne látszódjon; a link az űrlap alatt. */
#authView.auth-v2:has(#passwordResetPanel:not([hidden])) .auth-shell { display: none !important; }
#authView.auth-v2 #passwordResetPanel[hidden] { display: none !important; }
#authView.auth-v2 .auth-forgot-link { align-self: flex-end; margin: -6px 4px 0 0 !important; font-size: .88rem; font-weight: 700; color: #0f5132 !important; }
#authView.auth-v2 #passwordResetBackToLogin { align-self: center; margin: 0 !important; }

/* Megerősítő oldal: egyértelmű, hogy az itt megadott jelszó lesz az érvényes. */
.auth-password-replace { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: #fff7ed; border: 1px solid #fdba74; color: #7c2d12; font-size: .9rem; line-height: 1.45; }
.auth-password-replace strong { font-size: .95rem; }

/* ===== „Összejött!” pillanat: a minimum létszám megvan ===== */
.osszejott {
  --osz-accent: #a3e635;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 12px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  text-align: center;
}
.osszejott.is-class { --osz-accent: #fde68a; }
.osszejott-balls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; max-width: 260px; padding: 4px 0; }
.osszejott-ball { width: 34px; height: 34px; fill: #ffffff; stroke: #0f5132; stroke-width: 1.3; transform-origin: 50% 100%; }
.osszejott.is-class .osszejott-ball { fill: rgba(253, 248, 238, 0.92); stroke: none; width: 26px; height: 26px; }
.osszejott-ball.is-last, .osszejott.is-class .osszejott-ball.is-last { fill: var(--osz-accent); }
.osszejott-title { margin: 0; font-size: 2.4rem; font-weight: 900; line-height: 1; color: #ffffff; letter-spacing: -0.01em; }
.osszejott-sub { margin: 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); }
.osszejott-confetti {
  position: absolute; top: 0; width: 8px; height: 12px; border-radius: 2px;
  background: var(--osz-accent); opacity: 0; pointer-events: none;
}
.osszejott-confetti:nth-child(3n+2) { background: #fde68a; width: 8px; height: 8px; border-radius: 50%; }
.osszejott-confetti:nth-child(3n) { background: #ffffff; width: 6px; height: 10px; }

.osszejott.is-playing .osszejott-ball { animation: osz-drop 0.5s cubic-bezier(.3, 0, .3, 1) both; animation-delay: var(--d); }
.osszejott.is-playing .osszejott-title { animation: osz-pop 0.6s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: var(--t); }
.osszejott.is-playing .osszejott-sub { animation: osz-sub 0.5s ease-out both; animation-delay: calc(var(--t) + 0.35s); }
.osszejott.is-playing { animation: osz-glow 1.1s ease-out both; animation-delay: var(--t); }
.osszejott.is-playing .osszejott-confetti { animation: osz-fall 1.7s linear both; animation-delay: var(--d); }

@keyframes osz-drop {
  0% { opacity: 0; transform: translateY(-46px) rotate(-90deg); }
  50% { opacity: 1; transform: translateY(0) scale(1.18, .82) rotate(0); }
  75% { transform: translateY(-6px) scale(.96, 1.04); }
  100% { opacity: 1; transform: none; }
}
@keyframes osz-pop {
  0% { opacity: 0; transform: scale(.5); }
  65% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes osz-sub { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes osz-glow {
  0% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); }
  35% { box-shadow: 0 0 0 10px rgba(163, 230, 53, 0.35); }
  100% { box-shadow: 0 0 0 22px rgba(163, 230, 53, 0); }
}
@keyframes osz-fall {
  0% { opacity: 0; transform: translateY(-10px) rotate(0); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translateY(190px) rotate(320deg); }
}
@media (prefers-reduced-motion: reduce) {
  .osszejott.is-playing, .osszejott.is-playing * { animation: none !important; }
  .osszejott-confetti { display: none; }
}

/* ===== Profil: Fiókom és adataim (kilépés, adatexport, fióktörlés) ===== */
#profileView:not([data-profile-tile="account"]) #profileAccountSection { display: none !important; }
#profileView[data-profile-tile="account"] #profileForm,
#profileView[data-profile-tile="account"] .profile-avatar-preview,
#profileView[data-profile-tile="account"] .profile-panel-head,
#profileView[data-profile-tile="account"] #profileSecuritySection,
#profileView[data-profile-tile="account"] #pushSettings { display: none !important; }
#profileAccountContent { display: flex; flex-direction: column; gap: 14px; }
#profileAccountSection .pay-method .btn { align-self: flex-start; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 900; }
#profileAccountSection .pay-method .btn.btn-secondary { background: #fff; color: #0f5132; border: 1px solid #0f5132; box-shadow: none; }
#profileAccountSection .pay-method .btn:disabled { opacity: .5; cursor: not-allowed; }
.account-team-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 10px 0; border-top: 1px solid #e3ece5; }
.account-team-row > div { display: flex; flex-direction: column; min-width: 0; }
.account-team-row > div strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-team-row > div span { font-size: .85rem; color: #3f5248; }
.account-team-row .pay-method-hint { grid-column: 1 / -1; }
#profileAccountSection .account-team-row .btn { min-height: 42px; padding: 0 16px; }
.pay-method-badge.is-danger { background: #b91c1c; color: #fff; font-weight: 900; }
.account-delete { border-color: #fecaca !important; background: #fff7f7 !important; }
#profileAccountSection .pay-profile-head a { color: #a3e635; font-weight: 800; }

/* ===== Vendégből tag ===== */
.guest-offers { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.guest-offer { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; background: #ecfccb; border: 1px solid #c7e98f; }
.guest-offer-text { display: flex; flex-direction: column; gap: 2px; }
.guest-offer-text strong { color: #0b2e1d; font-size: 1rem; }
.guest-offer-text span { color: #3f5248; font-size: .88rem; }
.guest-offer .btn { align-self: flex-start; min-height: 46px; border-radius: 14px; font-weight: 900; background: #0f5132; color: #fff; border: 0; }
.guest-offer-link { display: flex; gap: 8px; }
.guest-offer-link input { flex: 1 1 auto; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid #c7e98f; background: #fff; font: inherit; font-size: .85rem; }
.membership-request-note { margin: 10px 0 14px; padding: 14px 16px; border-radius: 18px; background: #fef9c3; border: 1px solid #fde68a; color: #422006; }
.membership-request-note p { margin: 0; }
.admin-approvals { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; padding: 16px; border-radius: 22px; background: #fff7ed; border: 1px solid #fed7aa; }
.admin-approvals h2 { margin: 0; font-size: 1rem; color: #7c2d12; }
.admin-approval { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; padding-top: 10px; border-top: 1px solid #fed7aa; }
.admin-approval > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.admin-approval > div:first-child span { font-size: .86rem; color: #7c2d12; }
.admin-approval-actions { display: flex; gap: 8px; }
.admin-approval-actions .btn { min-height: 44px; border-radius: 12px; font-weight: 900; }
.admin-approval-actions .btn-secondary { background: #fff; color: #7c2d12; border: 1px solid #fdba74; box-shadow: none; }
.admin-approval-actions .btn-danger { background: #b91c1c; color: #fff; border: 0; }
.admin-approval-actions .btn:not(.btn-secondary):not(.btn-danger) { background: #0f5132; color: #fff; border: 0; }

/* Chat app beépített böngészője (Messenger, Viber…): Google helyett „Megnyitás böngészőben”. */
#authView .auth-google-mount:has(.inapp-notice) { display: block; }
.inapp-notice { width: 100%; padding: 14px 16px; border-radius: 16px; background: #fef9c3; border: 1px solid #fde68a; color: #3f3a12; text-align: left; }
.inapp-notice strong { display: block; font-size: .98rem; }
.inapp-notice p { margin: 6px 0 0; font-size: .9rem; line-height: 1.45; }
.inapp-notice .inapp-open { display: block; margin: 12px 0 4px; padding: 13px 16px; border-radius: 14px; background: #0f5132; color: #fff; text-align: center; font-weight: 900; text-decoration: none; }
.inapp-notice .auth-inline-link { margin-top: 6px; }

/* Fizetési fegyelem: sárga / piros lap */
.payment-card-chip.is-yellow { background: #fef9c3; color: #713f12; border: 1px solid #fde68a; }
.payment-card-chip.is-red { background: #fee2e2; color: #7f1d1d; border: 1px solid #fecaca; }
.payment-card-banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; border: 1px solid; }
.payment-card-banner.is-yellow { background: #fefce8; border-color: #fde68a; }
.payment-card-banner.is-red { background: #fef2f2; border-color: #fecaca; }
.payment-card-icon { font-size: 2rem; line-height: 1; }
.payment-card-text strong { display: block; font-size: 1.02rem; }
.payment-card-text p { margin: 6px 0; font-size: .92rem; }
.payment-card-text ul { margin: 4px 0 10px; padding-left: 18px; font-size: .9rem; }

/* Vendégből tag: ajánlat két gombbal, elküldött meghívók a Meghívásaim alatt */
.guest-offer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sent-guest-invites-title { margin: 8px 0 0; font-size: 1rem; }
.sent-guest-invite.is-accepted { border-color: #bef264; }
.sent-guest-invite.is-rejected { opacity: .75; }
.guest-offer-actions .btn-ghost { background: #ffffff; color: #0f5132; border: 1px solid #cfdcd2; box-shadow: none; }

/* moccanj.hu logó a fejlécekben */
.brand-title { display: flex; align-items: center; gap: 10px; }
.brand-title img, .auth-brand img { border-radius: 8px; flex: none; }
.auth-brand { display: inline-flex; align-items: center; gap: 8px; }
