@font-face {
  font-family: "ProtestStrike";
  src: url("../souborykaktus/PROTESTSTRIKEFONT.ttf");
  font-display: swap;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "ProtestStrike";
  line-height: 1.6;
  color: #1a3a1a;
  background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 25%, #e8eaed 50%, #2d7a2d 75%, #e3e3e3 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* Kaktusové pozadí pro portál */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 15% 85%, rgba(76, 175, 80, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(102, 187, 106, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(139, 195, 74, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: kaktusFloat 25s ease-in-out infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes kaktusFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(0.5deg);
  }
  50% {
    transform: translateY(-4px) rotate(-0.5deg);
  }
  75% {
    transform: translateY(-12px) rotate(0.3deg);
  }
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Modern Header */
.modern-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(25px);
  border-bottom: 3px solid rgba(76, 175, 80, 0.3);
  position: relative;
  top: auto;
  z-index: 50;
  box-shadow: 0 8px 32px rgba(76, 175, 80, 0.2);
  transition: all 0.3s ease;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  display: flex;
  align-items: center;
}

.logo-icon img {
  width: 4.5rem;
  height: 3rem;
  border-radius: 0.375rem;
  object-fit: contain;
}

.site-title {
  font-family: "ProtestStrike";
  font-size: 1.5rem;
  color: #2d3748;
  font-weight: 700;
}

.header-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.nav-button.primary {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
  border-color: #2e7d32;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.nav-button.primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(76, 175, 80, 0.5);
  background: linear-gradient(135deg, #2e7d32, #4caf50);
}

.nav-button.secondary {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.nav-button.secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.nav-button.danger {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.nav-button.danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

.nav-icon {
  font-size: 1.1rem;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem 0;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-family: "ProtestStrike";
  font-size: 3rem;
  color: white;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  flex-wrap: wrap;
}

.title-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Animace mávání ruky */
.waving-hand {
  display: inline-block;
  animation: wave 1.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  40%, 60% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(-5deg);
  }
}

.page-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Dashboard Header */
.dashboard-header {
  text-align: center;
  margin-bottom: 3rem;
}

.dashboard-title {
  font-family: "ProtestStrike";
  font-size: 2.5rem;
  color: #1a3a1a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
}

.dashboard-subtitle {
  font-size: 1.1rem;
  color: #2d5a2d;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Messages */
.success-message,
.error-message {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  font-weight: 600;
  font-size: 1.1rem;
}

.flash-message {
  position: fixed !important;
  top: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 9999 !important;
  min-width: 350px !important;
  max-width: 90vw !important;
  text-align: center !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  border: 2px solid !important;
  animation: slideDown 0.4s ease-out !important;
}

.flash-message.success-message {
  background: linear-gradient(135deg, #e8f5e8, #f1f8e9) !important;
  border-color: #4caf50 !important;
  color: #2e7d32 !important;
}

.flash-message.error-message {
  background: linear-gradient(135deg, #ffebee, #fce4ec) !important;
  border-color: #f44336 !important;
  color: #c62828 !important;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.success-message {
  border-left: 4px solid #4caf50;
  color: #2e7d32;
}

.error-message {
  border-left: 4px solid #f44336;
  color: #c62828;
}

/* Login Wrapper */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 500px;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h2 {
  font-size: 2rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: #718096;
  font-size: 1.1rem;
}

/* Profile Section */
.profile-wrapper,
.stats-wrapper,
.password-wrapper,
.quick-links-wrapper,
.documents-wrapper,
.admin-wrapper,
.equipment-wrapper,
.calendar-wrapper,
.eshop-wrapper {
  /* Přidána třída pro kalendář a eshop */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
  overflow: visible;
}

/* Sekce se zápasy má vyšší z-index, aby tooltipy byly viditelné nad dalšími sekcemi */
.matches-wrapper {
  padding: 2rem;
  margin-bottom: 2rem;
  overflow: visible;
  position: relative;
  z-index: 10;
}

.matches-grid {
  display: grid;
  gap: 1.5rem;
  background: transparent;
}

.password-wrapper {
  z-index: 2;
}

.section-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Rámeček pro nápovědu barev účasti */
.attendance-legend-wrap {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(76, 175, 80, 0.25);
  border-radius: 14px;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Legenda barev účasti u Nadcházejících zápasů */
.attendance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: #475569;
  font-weight: 500;
}
.attendance-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.attendance-legend .legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.attendance-legend .legend-dot.jdu {
  background: linear-gradient(135deg, #4caf50, #45a049);
}
.attendance-legend .legend-dot.nevim {
  background: linear-gradient(135deg, #ffc107, #ffb300);
}
.attendance-legend .legend-dot.nejdu {
  background: linear-gradient(135deg, #f44336, #d32f2f);
}
.attendance-legend .legend-dot.neodpovedeli {
  background: linear-gradient(135deg, #9e9e9e, #757575);
}
.attendance-legend .legend-dot.posily {
  background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

/* Legenda barev pozic (ohraničení jmen v seznamu docházky) */
.dochazka-pozice-legend {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  align-items: center;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

.dochazka-pozice-legend-title {
  font-weight: 600;
  color: #475569;
  margin-right: 0.15rem;
}

.dochazka-pozice-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dochazka-pozice-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  background: var(--sw);
}

.dochazka-pozice-legend-hint {
  flex-basis: 100%;
  font-size: 0.72rem;
  font-style: italic;
  color: #94a3b8;
  margin-top: 0.1rem;
}

/* Zvětšený nadpis Nadcházející zápasy */
.matches-wrapper .section-title.section-title-matches {
  font-size: 2rem !important;
  font-weight: 700 !important;
}

@media (max-width: 768px) {
  .matches-wrapper .section-title.section-title-matches {
    font-size: 1.6rem !important;
  }
}

@media (max-width: 640px) {
  .matches-wrapper .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .attendance-legend-wrap {
    margin-top: 0.5rem;
  }
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  color: #2d3748;
  font-weight: normal;
  font-family: "ProtestStrike";
}

.section-icon {
  font-size: 1.5rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.profile-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 2px solid rgba(76, 175, 80, 0.2);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(76, 175, 80, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.profile-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(76, 175, 80, 0.25), 0 8px 25px rgba(0, 0, 0, 0.15), inset 0 1px 0
    rgba(255, 255, 255, 0.9);
  border-color: rgba(76, 175, 80, 0.4);
}

.profile-header {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  padding: 1.5rem;
}

.profile-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.profile-content {
  padding: 1.5rem;
}

.profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.profile-item:last-child {
  border-bottom: none;
}

.profile-label {
  font-weight: 500;
  color: #718096;
}

.profile-value {
  font-weight: 600;
  color: #2d3748;
}

.profile-item--def-row {
  align-items: flex-start;
}

.profile-value--with-def-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  text-align: right;
}

.profile-value-text {
  font-weight: 600;
  color: #2d3748;
}

.pk-portal-def-icons.role-icons {
  position: static;
  inset: auto;
  margin: 0;
}

.pk-portal-def-icons .role-icon {
  width: 38px;
  height: 38px;
  padding: 0.4rem;
}

.pk-portal-def-icons .role-icon.role-icon-img,
.pk-portal-def-icons img.role-icon {
  object-fit: contain;
  box-sizing: border-box;
}

.pk-portal-def-icons .role-icon-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}

/* Ikony pozic a rolí pod textem v kartě „Základní informace“ (portál hráče) */
.pk-portal-basic-icons-wrap {
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
}

.pk-portal-basic-icons-strip.role-icons {
  position: static;
  inset: auto;
  margin: 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
}

body.pk-portal-hrac .pk-portal-basic-icons-wrap {
  border-top-color: rgba(15, 23, 42, 0.1);
}

/* === STYLY PRO FOTKU HRÁČE === */

.player-photo-card {
  position: relative;
  overflow: hidden;
  background: none;
  border-radius: 16px;
}

.player-photo-card .profile-header {
  display: none; /* Skryj header úplně */
}

.player-photo-card .profile-content {
  padding: 0; /* Odstraň padding */
  height: 100%;
  min-height: 280px; /* Stejná výška jako ostatní karty */
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-photo-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-photo-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #4caf50, #45a049);
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.player-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}

.photo-placeholder-icon {
  font-size: 6rem;
  color: white;
  opacity: 0.8;
}

/* Jersey Number - zvětšeno */
.jersey-number {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
  z-index: 3;
  min-width: 60px;
  text-align: center;
}

/* Position Badge – fotka hráče (portál) */
.position-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  top: auto;
  left: auto;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
}

/* Role Icons – výchozí (kolečko); na portálu přepíše blok „Ikony pozic a rolí“ níže */
.role-icons {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 0.75rem;
  z-index: 3;
}

.role-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.75rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.role-icon:hover {
  transform: scale(1.1);
}

/* Portál: ikony pod základními údaji – bez bílého kolečka */
.pk-portal-basic-icons-strip .role-icon {
  width: auto;
  height: auto;
  min-width: 2.25rem;
  min-height: 2.25rem;
  border-radius: 0;
  background: transparent !important;
  backdrop-filter: none;
  box-shadow: none;
  padding: 0.1rem;
  border: none;
}

.pk-portal-basic-icons-strip .role-icon:hover {
  transform: scale(1.08);
}

.pk-portal-basic-icons-strip .role-icon-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
}

.pk-portal-basic-icons-strip img.role-icon,
.pk-portal-basic-icons-strip .role-icon.role-icon-img {
  width: 44px;
  height: 44px;
  padding: 0;
  object-fit: contain;
  box-sizing: border-box;
}

/* === STYLY PRO SPOJENOU KARTU === */

.combined-card .profile-content {
  padding: 1rem;
}

.combined-section {
  margin-bottom: 1.5rem;
}

.combined-section:last-child {
  margin-bottom: 0;
}

.combined-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.combined-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  margin: 1.5rem 0;
}

.small-button {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 12px;
}

/* Upravitelná data – kompaktní lišta ikon + modály */
.profile-content--editable-compact {
  padding: 0.85rem 1rem 1.1rem !important;
}

.pk-editable-hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
  line-height: 1.35;
}

.pk-editable-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
}

.pk-editable-icon-btn {
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 14px;
  border: 2px solid rgba(76, 175, 80, 0.38);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.pk-editable-icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 175, 80, 0.65);
  box-shadow: 0 8px 22px rgba(76, 175, 80, 0.2);
}

.pk-editable-icon-btn:active {
  transform: translateY(0);
}

.pk-editable-icon-btn__emoji {
  font-size: 1.45rem;
  line-height: 1;
}

.pk-editable-icon-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.pk-editable-icon-btn__icon--instagram .pk-ig-logo {
  width: 26px;
  height: 26px;
}

.pk-ig-logo {
  display: block;
}

.pk-edit-modal__title--with-ig {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.pk-edit-modal__ig-mark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.pk-ig-logo--sm {
  width: 22px;
  height: 22px;
}

.pk-edit-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10060;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.pk-edit-modal.is-visible {
  display: flex;
}

body.pk-modal-open {
  overflow: hidden;
}

.pk-edit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
}

.pk-edit-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(90vh, 640px);
  overflow: auto;
  margin: auto;
  background: #fff;
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.25rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.pk-edit-modal__panel--wide {
  max-width: 480px;
}

.pk-edit-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pk-edit-modal__close:hover {
  background: rgba(15, 23, 42, 0.12);
}

.pk-edit-modal__title {
  margin: 0 2rem 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
}

.pk-edit-modal__intro {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.45;
}

.pk-edit-modal__label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #334155;
  font-size: 0.9rem;
}

.pk-edit-modal__help {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: #64748b;
}

.pk-edit-modal__form .form-group {
  margin-bottom: 1rem;
}

.pk-edit-modal__form .form-group:last-of-type {
  margin-bottom: 0.75rem;
}

.pk-edit-modal__submit {
  width: 100%;
  margin-top: 0.35rem;
  justify-content: center;
}

.pk-edit-modal__bio-counter {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.35rem;
  text-align: right;
}

body.pk-portal-hrac .pk-editable-icon-btn {
  border-color: rgba(47, 107, 31, 0.35);
}

body.pk-portal-hrac .pk-editable-icon-btn:hover {
  border-color: rgba(76, 175, 80, 0.55);
}

/* Payment Information Notice */
.payment-info-notice {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  border-left: 4px solid #4caf50;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.2);
}

/* Profile Actions */
.profile-actions {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(76, 175, 80, 0.2);
}

.payment-info-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: #2d3748;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: "ProtestStrike";
}

.payment-icon {
  font-size: 1.3rem;
}

.payment-main-text {
  color: #2d3748;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
  font-family: "ProtestStrike";
}

.payment-sub-text {
  color: #718096;
  font-size: 0.85rem;
  margin-bottom: 12px;
  font-style: italic;
  margin-left: 0;
  font-family: "ProtestStrike";
}

.payment-footer-text {
  color: #4a5568;
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.5;
  font-family: "ProtestStrike";
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.stats-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stats-header {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  padding: 1.5rem;
}

.stats-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.stats-content {
  padding: 1.5rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.stat-item:last-child {
  border-bottom: none;
}

/* Sezónní statistiky — barevné řádky („Moje statistiky“) */
.stats-content--sezonni-barevne {
  padding: 1rem 1.1rem 1.25rem;
}

.stats-content--sezonni-barevne .stat-item.stat-tile {
  border-bottom: none;
  margin-bottom: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  align-items: flex-start;
  gap: 0.75rem;
}

.stats-content--sezonni-barevne .stat-item.stat-tile:last-child {
  margin-bottom: 0;
}

.stats-content--sezonni-barevne .stat-tile--neutral {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.75));
}

.stats-content--sezonni-barevne .stat-tile--goly {
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.95), rgba(187, 247, 208, 0.65));
}

.stats-content--sezonni-barevne .stat-tile--asistence {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), rgba(186, 230, 253, 0.65));
}

.stats-content--sezonni-barevne .stat-tile--karty-zlute {
  background: linear-gradient(135deg, rgba(254, 252, 232, 0.98), rgba(254, 240, 138, 0.45));
}

.stats-content--sezonni-barevne .stat-tile--karty-cervene {
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.95), rgba(252, 165, 165, 0.5));
}

.stats-content--sezonni-barevne .stat-tile--brankar {
  background: linear-gradient(135deg, rgba(224, 231, 255, 0.95), rgba(199, 210, 254, 0.55));
}

.stats-content--sezonni-barevne .stat-tile--ciste {
  background: linear-gradient(135deg, rgba(209, 250, 229, 0.9), rgba(167, 243, 208, 0.55));
}

.stats-content--sezonni-barevne .stat-tile--obdrzene {
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.95), rgba(254, 215, 170, 0.55));
}

.stats-content--sezonni-barevne .stat-tile--hz {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.98), rgba(253, 224, 71, 0.35));
}

.stats-content--sezonni-barevne .stat-tile--piskani {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(254, 215, 170, 0.45));
}

.stats-content--sezonni-barevne .stat-tile--body {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.98), rgba(147, 197, 253, 0.45));
}

.stats-content--sezonni-barevne .stat-tile--poradi {
  background: linear-gradient(135deg, rgba(237, 233, 254, 0.98), rgba(196, 181, 253, 0.4));
}

.stats-content--sezonni-barevne .stat-label {
  color: rgba(30, 41, 59, 0.88);
  font-weight: 600;
}

.stats-content--sezonni-barevne .stat-label--with-oceneni {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 68%;
}

.stats-content--sezonni-barevne .stat-label__title {
  line-height: 1.25;
  font-size: 1.02rem;
}

/* Výrazné označení „nejlepší střelec“ / „nejvíce bodů“ … u sezónních statistik */
.stats-content--sezonni-barevne .stat-oceneni-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff !important;
  background: linear-gradient(165deg, #2d7a32 0%, #1d5420 55%, #163c18 100%);
  border: 2px solid rgba(12, 40, 8, 0.55);
  padding: 0.4rem 0.65rem;
  border-radius: 9px;
  line-height: 1.25;
  box-shadow:
    0 3px 10px rgba(22, 60, 24, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

body.pk-portal-hrac .stats-content--sezonni-barevne .stat-tile .stat-label {
  color: rgba(30, 41, 59, 0.92) !important;
}

body.pk-portal-hrac .stats-content--sezonni-barevne .stat-tile .stat-value {
  color: #1a3a1a !important;
}

.stats-content--sezonni-barevne .stat-item.stat-tile > .stat-value {
  align-self: center;
  flex-shrink: 0;
  text-align: right;
}

.stat-label {
  font-weight: 500;
  color: #718096;
}

.stat-value {
  font-weight: 600;
  color: #2d3748;
  font-size: 1.1rem;
}

.stat-value.highlight {
  color: #4caf50;
}

.stat-value.warning {
  color: #ff9800;
}

.stat-value.danger {
  color: #f44336;
}

.stat-value.success {
  color: #4caf50;
}

.stat-value.star {
  color: #ffc107;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.label-icon {
  font-size: 1.1rem;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Password input wrapper s tlačítkem pro zobrazení/skrytí */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper .form-input {
  padding-right: 3.5rem; /* Místo pro tlačítko */
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 6px;
  z-index: 10;
}

.password-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.password-toggle:active {
  background: rgba(0, 0, 0, 0.1);
}

.password-toggle-icon {
  font-size: 1.2rem;
  line-height: 1;
  user-select: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.password-toggle:hover .password-toggle-icon {
  opacity: 1;
}

.password-toggle.active .password-toggle-icon {
  opacity: 1;
}

.login-button,
.password-button,
.instagram-button {
  width: 100%;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #4caf50, #66bb6a, #8bc34a);
  color: white;
  border: 2px solid transparent;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.login-button:hover,
.password-button:hover,
.instagram-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

.login-button:hover::before,
.password-button:hover::before,
.instagram-button:hover::before {
  left: 0%;
}

.button-icon {
  font-size: 1.2rem;
}

.login-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.info-section {
  margin-bottom: 1.5rem;
}

.info-section h3 {
  color: #2d3748;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.info-section p {
  color: #718096;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* Match Cards */
.match-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-height: auto;
  overflow: visible;
}

.match-card.future {
  border-color: #4caf50; /* Zelená pro klasické zápasy */
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(129, 199, 132, 0.05)); /* Nazelenalé pozadí */
}

/* Styly pro pískání - žlutá */
.match-card.piskani-card {
  border-color: #ffc107; /* Žlutá */
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.05), rgba(255, 235, 59, 0.05));
}

/* Styly pro akce s fotbal:true - fialová */
.match-card.akce-fotbal-card {
  border-color: #9c27b0; /* Fialová */
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.05), rgba(186, 104, 200, 0.05));
}

/* Styly pro turnaje - modrá */
.match-card.turnaj-card {
  border-color: #2196f3; /* Modrá */
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.05), rgba(100, 181, 246, 0.05));
}

.match-card.piskani-card .match-opponent {
  color: #f57f17; /* Tmavší žlutá pro text */
}

.match-card.akce-fotbal-card .match-opponent {
  color: #6a1b9a; /* Tmavší fialová pro text */
}

.match-card.turnaj-card .match-opponent {
  color: #1565c0; /* Tmavší modrá pro text */
}

.match-card.piskani-card .match-status.upcoming {
  background: linear-gradient(135deg, #ffc107, #ffeb3b);
  color: #333;
}

.match-card.akce-fotbal-card .match-status.upcoming {
  background: linear-gradient(135deg, #9c27b0, #ba68c8);
  color: white;
}

.match-card.piskani-card .response-radio-btn.jdu.active {
  background: linear-gradient(135deg, #ffc107, #ffeb3b);
  color: #333;
}

.match-card.akce-fotbal-card .response-radio-btn.jdu.active {
  background: linear-gradient(135deg, #9c27b0, #ba68c8);
  color: white;
}

.match-card.turnaj-card .response-radio-btn.jdu.active {
  background: linear-gradient(135deg, #2196f3, #64b5f6);
  color: white;
}

.match-card.piskani-card .response-radio-btn.nejdu.active {
  background: linear-gradient(135deg, #f44336, #ef5350);
  color: white;
}

.match-card.piskani-card .response-radio-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.match-card.piskani-card .btn-note {
  font-size: 0.8rem;
  color: #f44336;
  font-weight: 600;
}

.match-card.akce-fotbal-card .match-status.upcoming {
  background: linear-gradient(135deg, #9c27b0, #ba68c8);
  color: white;
}

.match-card.akce-fotbal-card .response-radio-btn.nejdu.active {
  background: linear-gradient(135deg, #f44336, #ef5350);
  color: white;
}

.match-card.akce-fotbal-card .response-radio-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.match-card.akce-fotbal-card .btn-note {
  font-size: 0.8rem;
  color: #f44336;
  font-weight: 600;
}

.match-card.turnaj-card .response-radio-btn.nejdu.active {
  background: linear-gradient(135deg, #f44336, #ef5350);
  color: white;
}

.match-card.turnaj-card .response-radio-btn:disabled,
.match-card.turnaj-card .response-radio-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.match-card.turnaj-card .btn-note {
  font-size: 0.8rem;
  color: #f44336;
  font-weight: 600;
}

.match-card.turnaj-card .response-radio-btn.nejdu.active {
  background: linear-gradient(135deg, #f44336, #ef5350);
  color: white;
}

.match-card.turnaj-card .response-radio-btn:disabled,
.match-card.turnaj-card .response-radio-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.match-card.turnaj-card .btn-note {
  font-size: 0.8rem;
  color: #f44336;
  font-weight: 600;
}

.match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 11;
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.match-opponent {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
}

.match-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.match-status {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.match-status.upcoming {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
}

.match-details {
  margin-bottom: 1.5rem;
}

.match-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #718096;
}

.match-info.warning {
  color: #f57c00;
  font-weight: 500;
}

/* Upozornění na obuv (extrakt z PSMF) u detailu zápasu */
.match-info.match-info--obuv-alert {
  align-items: flex-start;
  margin: 0.65rem 0 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 2px solid rgba(234, 88, 12, 0.55);
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.98), rgba(254, 215, 170, 0.5));
  color: #7c2d12;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(234, 88, 12, 0.12);
}

.match-info--obuv-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.match-info--obuv-title {
  font-size: 0.95rem;
  color: #9a3412;
  letter-spacing: 0.02em;
}

.match-info--obuv-text {
  font-size: 0.92rem;
  line-height: 1.45;
}

body.pk-portal-hrac .match-info--obuv-alert .info-icon {
  font-size: 1.35rem;
  line-height: 1.25;
  flex-shrink: 0;
}

body.pk-portal-hrac .match-info--obuv-alert .match-info--obuv-icons {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.2rem;
  line-height: 1.1;
}

body.pk-portal-hrac .match-info--obuv-alert .match-info--obuv-icon-shoe {
  font-size: 1.15rem;
}

.info-icon {
  font-size: 1rem;
}

.current-response {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.response-label {
  font-weight: 500;
  color: #2d3748;
}

.response-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
}

.response-badge.jdu {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
}

.response-badge.nevim {
  background: rgba(255, 193, 7, 0.1);
  color: #f57c00;
}

.response-badge.nejdu {
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
}

/* Response Buttons */
.response-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.response-btn {
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
}

.response-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.response-btn.jdu {
  border-color: #4caf50;
  color: #2e7d32;
}

.response-btn.jdu:hover,
.response-btn.jdu.active {
  background: #4caf50;
  color: white;
}

.response-btn.nevim {
  border-color: #ffc107;
  color: #f57c00;
}

.response-btn.nevim:hover,
.response-btn.nevim.active {
  background: #ffc107;
  color: white;
}

.response-btn.nejdu {
  border-color: #f44336;
  color: #c62828;
}

.response-btn.nejdu:hover,
.response-btn.nejdu.active {
  background: #f44336;
  color: white;
}

.btn-icon {
  font-size: 1.1rem;
}

/* Cache-bust: 20250205-1255 */

/* Response Bubbles */
.response-bubbles {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
  overflow: visible;
}

/* When tooltip is open, keep bubbles visible but below modal */
body.tooltip-active .response-bubbles {
  z-index: 999992;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 2rem);
}

/* Highlight active bubble when modal is open */
body.tooltip-active .response-bubble {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

body.tooltip-active .response-bubble.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

/* Transparent overlay blocks clicks on response buttons under modal */
.tooltip-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 999990;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.tooltip-active .tooltip-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.response-bubble {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.response-bubble:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999998;
  position: relative;
}

.response-bubble.jdu {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
}

.response-bubble.nevim {
  background: linear-gradient(135deg, #ffc107, #ffb300);
  color: white;
}

.response-bubble.nejdu {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
}

.response-bubble.neodpovedeli {
  background: linear-gradient(135deg, #9e9e9e, #757575);
  color: white;
}

.response-bubble.posily {
  background: linear-gradient(135deg, #9c27b0, #7b1fa2);
  color: white;
}

/* Styl pro "+X" v bublinách jdu/nevim */
.posily-count-in-bubble {
  font-size: 0.9em;
  font-weight: 700;
  margin-left: 0.2rem;
  padding: 0.1rem 0.25rem;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  display: inline-block;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bubble-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(calc(-50% + var(--tooltip-shift-x, 0px)));
  margin-top: 0.5rem;
  background: rgba(0, 0, 0, 0.95);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  min-width: 200px;
  max-width: 520px;
  width: max-content;
  max-height: none;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* Tooltip zobrazený nahoru (když je zápas dole na stránce) */
.bubble-tooltip.tooltip-top {
  position: absolute;
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 0.5rem;
  transform: translateX(calc(-50% + var(--tooltip-shift-x, 0px)));
}

.bubble-tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(0, 0, 0, 0.95);
  z-index: 1;
}

/* Šipka pro tooltip zobrazený nahoru */
.bubble-tooltip.tooltip-top::before {
  bottom: auto;
  top: 100%;
  border-bottom-color: transparent;
  border-top-color: rgba(0, 0, 0, 0.95);
}

.response-bubble:hover .bubble-tooltip {
  opacity: 1;
  visibility: visible;
  z-index: 999999;
  pointer-events: auto;
}

 .response-bubble .bubble-tooltip:hover {
  opacity: 1;
  visibility: visible;
  z-index: 999999;
  pointer-events: auto;
 }

 .response-bubble .bubble-tooltip.tooltip-open {
  opacity: 1;
  visibility: visible;
  z-index: 999999;
  pointer-events: auto;
 }

 .bubble-tooltip.tooltip-open {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(94vw, 420px);
  max-width: 94vw;
  min-width: auto;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  z-index: 999993;
  touch-action: pan-y;
  overscroll-behavior: contain;
  pointer-events: auto;
  backdrop-filter: none;
  /* Prevent page scroll when modal is open */
  position: fixed;
  will-change: transform;
 }

 .bubble-tooltip.tooltip-open::before {
  display: none;
 }

 @media (hover: none), (pointer: coarse) {
  .response-bubble:hover .bubble-tooltip {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
 }

@media (max-width: 768px) {
  .bubble-tooltip {
    max-width: min(92vw, 340px);
    min-width: min(88vw, 260px);
    max-height: min(65vh, 520px);
  }
}

.tooltip-header {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.tooltip-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

 @media (max-width: 480px) {
  .tooltip-players {
    grid-template-columns: 1fr;
  }
 }

 @media (hover: none) {
  .tooltip-players {
    grid-template-columns: 1fr;
  }
 }

.tooltip-player {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: white;
  display: block;
  text-align: center;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  overflow: visible;
  text-overflow: clip;
}

/* Ohraničení podle pozice (1 barva nebo dvě poloviny u dvou pozic) */
.bubble-tooltip .tooltip-player.tooltip-player--pos,
.participation-modal-panel-inner .tooltip-player.tooltip-player--pos {
  --pk-inner-bg: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(var(--pk-inner-bg), var(--pk-inner-bg)) padding-box,
    linear-gradient(90deg, var(--pk-bc1), var(--pk-bc1) 50%, var(--pk-bc2) 50%, var(--pk-bc2)) border-box;
  background-clip: padding-box, border-box;
  border: 2px solid transparent;
  box-sizing: border-box;
}

 @media (hover: none), (pointer: coarse) {
  .tooltip-player {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
 }

/* ===== Participation modal (mobil): bubliny účasti – klik = přepínání stavů ===== */
.participation-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999994;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.participation-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.participation-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  background: rgba(30, 30, 30, 0.98);
  color: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.participation-modal-overlay.open .participation-modal {
  transform: translateY(0);
}

.participation-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease;
}

.participation-modal-close:hover,
.participation-modal-close:focus {
  background: rgba(255, 255, 255, 0.25);
  outline: 2px solid rgba(255, 255, 255, 0.4);
}

.participation-modal-title {
  margin: 1rem 3rem 0.75rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  min-height: 1.5em;
}

.participation-modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  max-height: 120px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.participation-modal-tab {
  flex: 0 0 auto;
  padding: 0.5rem 0.85rem;
  border: none;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.participation-modal-tab:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.participation-modal-tab.active {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 2px 12px rgba(0, 0, 0, 0.4);
  outline: none;
}

.participation-modal-tab.status-jdu { background: linear-gradient(135deg, #4caf50, #45a049); }
.participation-modal-tab.status-nevim { background: linear-gradient(135deg, #ffc107, #ffb300); color: #1a1a1a; }
.participation-modal-tab.status-nejdu { background: linear-gradient(135deg, #f44336, #d32f2f); }
.participation-modal-tab.status-neodpovedeli { background: linear-gradient(135deg, #9e9e9e, #757575); }
.participation-modal-tab.status-posily { background: linear-gradient(135deg, #9c27b0, #7b1fa2); }

.participation-modal-panels {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.participation-modal-panel {
  display: none;
  position: absolute;
  inset: 0;
  padding: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.participation-modal-panel.active {
  display: block;
  position: relative;
}

.participation-modal-panel-inner.tooltip-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 380px) {
  .participation-modal-panel-inner.tooltip-players {
    grid-template-columns: 1fr;
  }
}

.participation-modal-panel-inner .tooltip-player {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: white;
  text-align: center;
  min-width: 0;
}

/* Barevné označení posil podle kategorie v tooltipu */
.tooltip-player.posila-jdu {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
  border: 1px solid #388e3c;
}

.tooltip-player.posila-nevim {
  background: linear-gradient(135deg, #ffc107, #ffca28);
  color: #1a1a1a;
  border: 1px solid #f57c00;
  font-weight: 500;
}

.note-indicator {
  font-size: 0.7rem;
  opacity: 0.8;
  cursor: help;
  transition: opacity 0.2s ease;
  position: relative;
}

.note-indicator:hover {
  opacity: 1;
}

/* Mobilní podpora pro poznámky */
@media (max-width: 768px) {
  .note-indicator {
    cursor: pointer;
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
  }

  .note-indicator:hover {
    background: rgba(255, 255, 255, 0.3);
  }
}

/* Modal pro poznámky */
.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 2rem;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
}

.note-content {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #007bff;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: #333;
}

/* Mobilní optimalizace pro modální okno */
@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    padding: 1.5rem;
    width: 95%;
  }

  .modal-content h3 {
    font-size: 1.1rem;
  }

  .note-content {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
}

/* Password Card */
.password-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Quick Links */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.quick-link-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 2px solid transparent;
}

.quick-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #4caf50;
}

.quick-link-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.quick-link-content {
  flex: 1;
}

.quick-link-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.quick-link-content p {
  color: #718096;
  font-size: 0.95rem;
}

.quick-link-arrow {
  font-size: 1.5rem;
  color: #4caf50;
  transition: transform 0.3s ease;
}

.quick-link-card:hover .quick-link-arrow {
  transform: translateX(4px);
}

/* E-shop Section (for players) */
.eshop-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.eshop-product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.eshop-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.eshop-product-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eshop-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eshop-product-image {
  position: relative;
  transition: transform 0.3s ease;
}

.eshop-product-image:hover {
  transform: scale(1.02);
}

.eshop-product-image::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 2rem;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.6);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eshop-product-image:hover::after {
  opacity: 1;
}

.eshop-product-image.placeholder {
  font-size: 4rem;
}

.eshop-product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.eshop-product-name {
  font-size: 1.5rem;
  color: #1a3a1a;
  margin: 0;
}

.eshop-product-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.eshop-product-artikl {
  color: #888;
  font-size: 0.9rem;
  font-style: italic;
}

.eshop-product-price-wrapper {
  margin: 0.5rem 0;
}

.eshop-product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 0.25rem;
}

.eshop-product-price-note {
  font-size: 0.75rem;
  color: #666;
  font-style: italic;
  line-height: 1.4;
  margin: 0;
}

.eshop-product-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: #e65100;
  width: fit-content;
}

.eshop-product-badge.category {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* Modal produkt info pro eshop v portálu */
.product-info-modal {
  background: linear-gradient(135deg, #f1f8f4, #e8f5e9);
  border-left: 4px solid #4caf50;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-product-image-wrapper {
  flex-shrink: 0;
}

.modal-product-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #4caf50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-product-title {
  font-size: 1.25rem;
  color: #1a3a1a;
  font-weight: 700;
  margin: 0;
  flex: 1;
}

/* Filtr kategorií v portálu */
.filter-section {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.filter-title {
  font-size: 1.1rem;
  color: #1a3a1a;
  margin-bottom: 1rem;
  font-weight: 600;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid #e0e0e0;
  background: white;
  color: #1a3a1a;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #4caf50;
  background: #f1f8f4;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
  border-color: #4caf50;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.eshop-product-button {
  margin-top: auto;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.eshop-product-button:hover {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.external-link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.external-link-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
  background: linear-gradient(135deg, #2e7d32, #4caf50);
}

/* Documents Section (for players) */
.documents-content {
  margin-top: 1rem;
}

.documents-grid-player {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.document-card-player {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(76, 175, 80, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.document-card-player:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: rgba(76, 175, 80, 0.3);
}

.document-header-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.document-icon-player {
  font-size: 2.5rem;
}

.document-type-player {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.document-info-player {
  flex: 1;
  margin-bottom: 1rem;
}

.document-name-player {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  word-break: break-word;
  line-height: 1.4;
}

.document-note-player {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: #f7fafc;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #4a5568;
  border-left: 3px solid #4caf50;
}

.document-meta-player {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.document-size-player {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}

.document-actions-player {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.action-button-player {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  flex: 1;
  border: 2px solid transparent;
  cursor: pointer;
  border: none;
  font-family: "ProtestStrike";
}

.view-button-player {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.view-button-player:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.download-button-player {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.download-button-player:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-icon-player {
  font-size: 1.1rem;
}

.btn-text-player {
  font-size: 0.9rem;
}

.empty-state-player {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.empty-icon-player {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-title-player {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.empty-text-player {
  color: #718096;
  font-size: 1rem;
}

/* Modal pro zobrazení dokumentů (hráči) */
.modal-overlay-player {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-content-view-player {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

.modal-header-view-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
  flex-shrink: 0;
}

.modal-title-view-player {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.modal-icon-view-player {
  font-size: 1.75rem;
}

.modal-close-view-player {
  background: none;
  border: none;
  font-size: 2rem;
  color: #718096;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close-view-player:hover {
  background: #f7fafc;
  color: #2d3748;
}

.modal-body-view-player {
  padding: 1.5rem;
  overflow: auto;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7fafc;
}

.document-viewer-iframe-player {
  width: 100%;
  height: 70vh;
  min-height: 500px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.document-viewer-image-player {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

/* Equipment Styles */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.equipment-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.equipment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.equipment-header {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.equipment-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.equipment-status {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.equipment-status.available {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.equipment-status.pending {
  background: rgba(255, 193, 7, 0.2);
  color: #f57c00;
}

.equipment-details {
  padding: 1.5rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  color: #718096;
}

.detail-value {
  font-weight: 600;
  color: #2d3748;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #718096;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.empty-state p {
  font-size: 1.1rem;
}

/* Modal Styles - eshop modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.75rem;
  color: #1a3a1a;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #f5f5f5;
  color: #1a3a1a;
}

.modal form {
  padding: 1.5rem;
}

.modal-body {
  margin-bottom: 1rem;
}

/* Form styly pro eshop modal - vyšší specificita */
.modal form .form-group {
  margin-bottom: 1.5rem;
}

.modal form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1a3a1a;
}

.modal form .form-group input[type="text"],
.modal form .form-group input[type="email"],
.modal form .form-group input[type="tel"],
.modal form .form-group input[type="number"] {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.modal form .form-group input:focus {
  outline: none;
  border-color: #4caf50;
}

.modal form .form-group input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e0e0e0;
}

.button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button.primary {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
}

.button.primary:hover {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.button.secondary {
  background: #e0e0e0;
  color: #1a3a1a;
}

.button.secondary:hover {
  background: #d0d0d0;
}

/* Styles for registračka image and close button */
.modal-image {
  display: block;
  margin: auto;
  max-width: 95%;
  max-height: 95vh;
  border-radius: 15px;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.confirmation-question h3 {
  color: #f44336;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.payment-details-text {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: #2d3748;
}

.form-instructions {
  margin-bottom: 1.5rem;
}

.form-instructions p {
  color: #718096;
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Obecné button styly - mohou být přepsány specifičtějšími */
.button {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.button.secondary {
  background: #e2e8f0;
  color: #4a5568;
}

.button.secondary:hover {
  background: #cbd5e0;
  transform: translateY(-1px);
}

/* Eshop modal specifické styly - vyšší specificita */
.modal form .form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e0e0e0;
}

.modal form .button {
  flex: 0 1 auto;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.modal form .button.primary {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
}

.modal form .button.primary:hover {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.modal form .button.secondary {
  background: #e0e0e0;
  color: #1a3a1a;
}

.modal form .button.secondary:hover {
  background: #d0d0d0;
}

.button.success {
  background: linear-gradient(135deg, #4caf50, #66bb6a, #8bc34a);
  color: white;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.button.success:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

/* Responsive Design */

/* === HORIZONTÁLNÍ NAVIGAČNÍ MENU === */

.section-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.section-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  scroll-padding: 1rem;
}

.section-nav-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.section-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.875rem 1.25rem;
  text-decoration: none;
  color: #4a5568;
  transition: all 0.3s ease;
  border-radius: 12px;
  min-width: 110px;
  max-width: 140px;
  text-align: center;
  position: relative;
  white-space: nowrap;
  flex-shrink: 1;
  flex-basis: auto;
}

.section-nav-item:hover {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
  transform: translateY(-2px);
}

.section-nav-item:active {
  transform: translateY(0);
}

.nav-item-icon {
  font-size: 1.35rem;
  transition: transform 0.3s ease;
}

.section-nav-item:hover .nav-item-icon {
  transform: scale(1.1);
}

.nav-item-text {
  font-size: 0.8rem;
  font-weight: normal;
  font-family: "ProtestStrike";
  line-height: 1.2;
}

/* === TLAČÍTKO ZPĚT NAHORU === */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

.back-to-top:active {
  transform: translateY(-2px) scale(1.05);
}

.back-to-top-icon {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .logo-section {
    justify-content: center;
  }

  .header-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-button {
    flex: 1;
    min-width: 140px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }

  .section-nav-container {
    padding: 0.75rem 0.5rem;
    gap: 0.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .section-nav-item {
    padding: 0.75rem 0.5rem;
    min-width: 80px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .nav-item-icon {
    font-size: 1.25rem;
  }

  .nav-item-text {
    font-size: 0.7rem;
    line-height: 1.1;
  }

  .content-container {
    padding: 0 0.75rem;
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
  }

  /* Nadcházející zápasy – oprava uříznutého obsahu na mobilu */
  .matches-wrapper {
    width: 100%;
    min-width: 0;
    overflow-x: visible;
    padding: 1rem;
  }
  .matches-grid {
    min-width: 0;
  }
  .match-card {
    min-width: 0;
    overflow: visible;
  }
  .response-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    grid-template-columns: unset;
  }
  .response-radio-group .response-radio-btn,
  .response-radio-group input[type="radio"] + .response-radio-btn,
  .response-radio-group button.response-radio-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }
  .response-radio-btn,
  .response-radio-btn .btn-text {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
  }
  .attendance-deadline-note {
    flex-wrap: wrap;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .attendance-deadline-note .deadline-text {
    min-width: 0;
    flex: 1;
  }
  /* Detaily zápasů (dvojpískání) – aby se 0/2 a text vešly */
  .piskani-match-item {
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
  }
  .piskani-match-info {
    min-width: 0;
    flex: 1 1 auto;
  }
  .piskani-match-opponent {
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .piskani-match-participants {
    flex-shrink: 0;
  }
  .match-info,
  .match-info span {
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .profile-wrapper,
  .stats-wrapper,
  .password-wrapper,
  .quick-links-wrapper,
  .documents-wrapper,
  .admin-wrapper,
  .equipment-wrapper,
  .eshop-wrapper {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .matches-wrapper {
    padding: 1rem;
  }

  .profile-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .match-card {
    padding: 0.75rem; /* Reduced from 1rem */
    margin: 0.5rem 0; /* Add margin for spacing */
    font-size: 0.9rem; /* Reduce base font size */
  }

  .match-opponent {
    font-size: 1rem; /* Reduced from 1.1rem */
    line-height: 1.3;
    word-break: break-word; /* Allow long words to break */
  }

  .match-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem; /* Reduced gap */
  }

  .match-header-right {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .match-status {
    padding: 0.4rem 0.8rem; /* Reduced padding */
    font-size: 0.8rem; /* Smaller font */
  }

  .match-info {
    font-size: 0.85rem; /* Smaller info text */
    gap: 0.4rem;
  }

  .match-details {
    margin-bottom: 1rem; /* Reduced margin */
  }

  /* Ensure text wraps properly and doesn't overflow */
  .match-card * {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

@media (max-width: 480px) {
  .dashboard-title,
  .page-title {
    font-size: 1.75rem;
    text-align: center;
  }

  .title-icon {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .section-icon {
    font-size: 1.25rem;
  }

  .section-nav-item {
    padding: 0.5rem 0.25rem;
    min-width: 70px;
  }

  .nav-item-text {
    font-size: 0.65rem;
  }

  .form-input {
    padding: 0.875rem;
    font-size: 0.95rem;
  }

  .header-nav {
    flex-direction: column;
  }

  .nav-button {
    min-width: auto;
    width: 100%;
  }

  .quick-links-grid {
    gap: 0.75rem;
  }

  .documents-grid-player {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .document-actions-player {
    flex-direction: column;
  }

  .action-button-player {
    width: 100%;
  }

  .modal-content-view-player {
    width: 95%;
    max-height: 95vh;
  }

  .document-viewer-iframe-player {
    height: 60vh;
    min-height: 400px;
  }

  .document-viewer-image-player {
    max-height: 60vh;
  }

  .quick-link-card {
    padding: 1rem;
  }

  .quick-link-icon {
    font-size: 2rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .response-radio-btn {
    padding: 1.25rem;
    font-size: 1.1rem;
  }

  .nav-button {
    padding: 1rem 1.25rem;
  }

  .section-nav-item {
    padding: 1rem 0.75rem;
  }

  .response-bubble {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .back-to-top {
    width: 4rem;
    height: 4rem;
  }

  .back-to-top-icon {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .dashboard-header {
    margin-bottom: 1.5rem;
  }

  .dashboard-title,
  .page-title {
    font-size: 1.5rem;
  }

  .profile-wrapper,
  .stats-wrapper,
  .matches-wrapper,
  .password-wrapper,
  .quick-links-wrapper,
  .documents-wrapper {
    padding: 1rem;
  }

  .section-nav-container {
    padding: 0.5rem;
  }

  .section-nav-item {
    padding: 0.5rem;
    min-width: 90px;
  }
}

@media (max-width: 768px) {
  .form-input:focus,
  .response-btn:focus,
  .login-button:focus,
  .password-button:focus,
  .instagram-button:focus {
    outline: 3px solid #4caf50;
    outline-offset: 2px;
  }

  .response-radio-group input[type="radio"]:focus + .response-radio-btn {
    outline: 3px solid #4caf50;
    outline-offset: 2px;
  }
}

/* Loading animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.match-card,
.profile-card,
.stats-card,
.equipment-card,
.quick-link-card,
.login-card,
.password-card {
  animation: fadeIn 0.6s ease forwards;
}

/* Focus styles for accessibility */
.form-input:focus,
.response-btn:focus,
.login-button:focus,
.password-button:focus,
.instagram-button:focus {
  outline: 2px solid #4caf50;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .modern-header,
  .nav-button {
    display: none;
  }

  .page-wrapper {
    background: white;
  }

  .match-card,
  .profile-card,
  .stats-card,
  .equipment-card {
    box-shadow: none;
    border: 1px solid #e2e8f0;
    break-inside: avoid;
  }
}

/* --- STYLY PRO NOVOU SJEDNOCENOU DOCHÁZKU --- */

/* Skupina tlačítek pro jednu odpověď */
.response-radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Skryje výchozí radio button */
.response-radio-group input[type="radio"] {
  display: none;
}

/* Vlastní vzhled pro label, který teď funguje jako tlačítko */
.response-radio-btn {
  padding: 0.875rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Zvýraznění při najetí myší */
.response-radio-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Jak vypadá tlačítko, když je vybraná odpovídající možnost */
.response-radio-group input[type="radio"]:checked + .response-radio-btn {
  color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Barevné varianty */
.response-radio-group input[type="radio"]:checked + .response-radio-btn.jdu {
  background: linear-gradient(135deg, #4caf50, #66bb6a, #8bc34a);
  border-color: #43a047;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}
.response-radio-group input[type="radio"]:checked + .response-radio-btn.nevim {
  background: linear-gradient(135deg, #ffc107, #ffca28, #ffd54f);
  border-color: #ffb300;
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}
.response-radio-group input[type="radio"]:checked + .response-radio-btn.nejdu {
  background: linear-gradient(135deg, #f44336, #ef5350, #e57373);
  border-color: #e53935;
  box-shadow: 0 8px 25px rgba(244, 67, 54, 0.3);
}

/* Tlačítko pro uložení celé docházky */
.save-attendance-wrapper {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  bottom: 1rem;
  z-index: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.save-attendance-button {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.save-attendance-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Styly pro poznámku o deadline uzavření účasti */
.attendance-deadline-note {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 193, 7, 0.1);
  border-left: 3px solid #ffc107;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #856404;
}

.deadline-icon {
  font-size: 1rem;
  opacity: 0.8;
}

.deadline-text {
  font-weight: 500;
}

/* Styly pro poznámku o tom, kdo odpověď nastavil */
.attendance-source-note {
  margin-top: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

.source-text {
  font-weight: 400;
  opacity: 0.85;
}

/* === STYLY PRO BILANCI V PORTÁLU === */

/* Speciální styly pro bilanci kartu */
.profile-card.balance-card {
  /* Odstraněn border-left pro sjednocení vzhledu s ostatními kartami */
  transition: all 0.3s ease;
  margin-left: 0;
  margin-right: 0;
}

/* Odstraněny třídy pro barevný levý okraj (positive, negative, zero) */
/* Barevné rozlišení zůstává v hlavičce */

.balance-header {
  background: linear-gradient(135deg, #2196f3, #1976d2) !important;
}

.profile-card.balance-card.positive .balance-header {
  background: linear-gradient(135deg, #4caf50, #45a049) !important;
}

.profile-card.balance-card.negative .balance-header {
  background: linear-gradient(135deg, #f44336, #d32f2f) !important;
}

.balance-content {
  text-align: center;
  padding: 1.5rem;
}

.balance-main-display {
  margin-bottom: 1.5rem;
  padding: 1rem 0;
}

.balance-main-value {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: "ProtestStrike";
  margin-bottom: 0.5rem;
  line-height: 1;
}

.profile-card.balance-card.positive .balance-main-value {
  color: #4caf50;
}

.profile-card.balance-card.negative .balance-main-value {
  color: #f44336;
}

.profile-card.balance-card.zero .balance-main-value {
  color: #64748b;
}

.balance-status-icon {
  font-size: 2rem;
}

.status-positive {
  color: #4caf50;
}

.status-negative {
  color: #f44336;
}

.status-zero {
  color: #64748b;
}

.balance-details-small {
  background: rgba(248, 250, 252, 0.8);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.balance-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.balance-detail-row:last-child {
  margin-bottom: 0;
}

.balance-detail-row .detail-label {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.balance-detail-row .detail-value {
  font-size: 0.9rem;
  color: #2d3748;
  font-weight: 600;
}

.balance-explanation-small {
  background: rgba(248, 250, 252, 0.6);
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.balance-explanation-small p {
  margin: 0;
  color: #4a5568;
  font-size: 0.85rem;
  line-height: 1.3;
}

.balance-link {
  margin-top: 1rem;
}

.balance-button {
  background: linear-gradient(135deg, #2196f3, #42a5f5, #64b5f6) !important;
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3) !important;
}

.balance-button:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 10px 30px rgba(33, 150, 243, 0.4) !important;
}

/* Responzivní úpravy pro bilanci */
@media (max-width: 480px) {
  .balance-main-value {
    font-size: 2rem;
  }

  .balance-status-icon {
    font-size: 1.5rem;
  }

  .balance-details-small {
    padding: 0.75rem;
  }

  .balance-detail-row .detail-label,
  .balance-detail-row .detail-value {
    font-size: 0.8rem;
  }
}

/* NOVÉ STYLY PRO KALENDÁŘ V PORTÁLU */
.calendar-wrapper .calendar-widget {
  font-family: "ProtestStrike";
  font-size: 0.9rem;
}

.calendar-widget {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1.5rem; /* Změna z margin-bottom na margin-top */
  background: white;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
}

.calendar-nav-btn {
  background: linear-gradient(135deg, #4caf50, #66bb6a, #8bc34a);
  border: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.calendar-nav-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.calendar-title {
  font-weight: 600;
  color: #2d3748;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: #f1f5f9;
}

.calendar-weekday {
  padding: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid #e2e8f0;
}

.calendar-day,
.calendar-day-empty {
  padding: 0.75rem 0.5rem;
  text-align: center;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.calendar-day-empty {
  background-color: #f8fafc;
  cursor: default;
}

.calendar-day:hover {
  background-color: #f1f5f9;
}

.calendar-day.has-match:hover {
  background-color: rgba(76, 175, 80, 0.2);
}

.calendar-day.has-birthday:hover {
  background-color: #fef08a;
}

.calendar-day.has-piskani:hover {
  background-color: #ffe69c;
}

.calendar-day.has-turnaj:hover {
  background-color: #bbdefb;
}

.calendar-day.has-akce-fotbal:hover {
  background-color: #e1bee7;
}

.calendar-day.has-akce:hover {
  background-color: #e9d5ff;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 2px #2196f3;
  color: #1976d2;
  font-weight: 700;
}

.calendar-day.has-match {
  background-color: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
  font-weight: 600;
}
.calendar-day.has-match.past-match {
  background-color: #f1f5f9;
  color: #64748b;
}
.calendar-day.has-birthday {
  background-color: rgba(255, 193, 7, 0.1);
  color: #f57c00;
  font-weight: 600;
}
.calendar-day.has-piskani {
  background-color: #fff3cd;
  color: #856404;
  font-weight: 600;
  border: 2px solid #ffc107;
}

.calendar-day.has-turnaj {
  background-color: #e3f2fd;
  color: #1565c0;
  font-weight: 600;
  border: 2px solid #2196f3;
}

.calendar-day.has-akce-fotbal {
  background-color: #f3e5f5;
  color: #6a1b9a;
  font-weight: 600;
  border: 2px solid #9c27b0;
}

.calendar-day.has-akce {
  background-color: #f3e8ff;
  color: #7b1fa2;
  font-weight: 600;
}

.calendar-day.has-match.has-birthday {
  background: linear-gradient(to bottom right, rgba(76, 175, 80, 0.1) 49%, rgba(255, 193, 7, 0.1) 51%);
}
.calendar-day.has-match.has-piskani {
  background: linear-gradient(to bottom right, rgba(76, 175, 80, 0.1) 49%, rgba(255, 243, 205, 1) 51%);
}
.calendar-day.has-birthday.has-piskani {
  background: linear-gradient(to bottom right, rgba(255, 193, 7, 0.1) 49%, rgba(255, 243, 205, 1) 51%);
}
.calendar-day.has-match.has-akce {
  background: linear-gradient(to bottom right, rgba(76, 175, 80, 0.1) 49%, #f3e8ff 51%);
}
.calendar-day.has-birthday.has-akce {
  background: linear-gradient(to bottom right, rgba(255, 193, 7, 0.1) 49%, #f3e8ff 51%);
}
.calendar-day.has-piskani.has-akce {
  background: linear-gradient(to bottom right, rgba(33, 150, 243, 0.1) 49%, #f3e8ff 51%);
}

.calendar-day.has-match.has-birthday.has-piskani {
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.1) 33%,
    rgba(255, 243, 205, 1) 66%,
    rgba(255, 193, 7, 0.1) 100%
  );
}
.calendar-day.has-match.has-birthday.has-akce {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 33%, #f3e8ff 66%, rgba(255, 193, 7, 0.1) 100%);
}
.calendar-day.has-match.has-piskani.has-akce {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 33%, #f3e8ff 66%, rgba(33, 150, 243, 0.1) 100%);
}
.calendar-day.has-birthday.has-piskani.has-akce {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 33%, #f3e8ff 66%, rgba(33, 150, 243, 0.1) 100%);
}

/* 4-way combo */
.calendar-day.has-match.has-birthday.has-piskani.has-akce {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 193, 7, 0.1) 25%, transparent 25%),
    linear-gradient(315deg, rgba(33, 150, 243, 0.1) 25%, transparent 25%),
    linear-gradient(45deg, #f3e8ff 25%, transparent 25%);
}

.event-icons {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 3px;
}

.event-icon {
  width: 14px;
  height: 14px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-icon-piskani svg {
  width: 14px;
  height: 14px;
  fill: #1976d2;
}

.match-info-container {
  position: relative;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #2d3748;
  line-height: 1.5;
  display: none;
}
.match-info-container.active {
  display: block;
}
.match-info-container h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #4caf50;
  padding-right: 2rem;
}
.match-info-container .match-detail {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}
.match-info-container .match-detail:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.match-info-container .match-opponent {
  font-weight: 600;
}
.match-info-container .match-venue {
  color: #64748b;
}
.match-info-container .match-time {
  color: #64748b;
  font-size: 0.85rem;
}
.match-info-container .info-separator {
  margin: 1rem 0;
  border: none;
  border-top: 1px solid #e2e8f0;
}

/* Rozkliknuté akce dne – stejná struktura jako na nastym.php */
.match-info-container .day-info-section {
  position: relative;
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.match-info-container .day-info-section + .day-info-section {
  margin-top: 0.5rem;
}
.match-info-container .day-info-section::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 3px;
  border-radius: 999px;
  background: rgba(76, 175, 80, 0.5);
}
.match-info-container .day-info-section h4 {
  margin: 0 0 0.35rem;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #166534;
}
.match-info-container .day-info-section .match-detail {
  margin-bottom: 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.10);
}
.match-info-container .day-info-section .match-detail:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.match-info-container .day-info-section .match-opponent {
  font-weight: 750;
  color: rgba(15, 23, 42, 0.82);
}
.match-info-container .day-info-section .match-venue,
.match-info-container .day-info-section .match-time {
  color: rgba(15, 23, 42, 0.60);
  font-size: 0.82rem;
}
.match-info-container .day-info-section .match-result {
  margin-top: 0.1rem;
  color: rgba(45, 103, 55, 0.88);
  font-weight: 700;
}
.match-info-container .day-info-section--matches {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.10), rgba(255, 255, 255, 0.92));
  border-color: rgba(76, 175, 80, 0.18);
}
.match-info-container .day-info-section--matches::before {
  background: rgba(76, 175, 80, 0.75);
}
.match-info-container .day-info-section--ref {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(255, 255, 255, 0.92));
  border-color: rgba(59, 130, 246, 0.18);
}
.match-info-container .day-info-section--ref::before {
  background: rgba(59, 130, 246, 0.70);
}
.match-info-container .day-info-section--tournament {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.92));
  border-color: rgba(245, 158, 11, 0.20);
}
.match-info-container .day-info-section--tournament::before {
  background: rgba(245, 158, 11, 0.80);
}
.match-info-container .day-info-section--friendly {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.10), rgba(255, 255, 255, 0.92));
  border-color: rgba(20, 184, 166, 0.18);
}
.match-info-container .day-info-section--friendly::before {
  background: rgba(20, 184, 166, 0.75);
}
.match-info-container .day-info-section--akce {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.10), rgba(255, 255, 255, 0.92));
  border-color: rgba(139, 92, 246, 0.18);
}
.match-info-container .day-info-section--akce::before {
  background: rgba(139, 92, 246, 0.75);
}
.match-info-container .day-info-section--birthday {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.10), rgba(255, 255, 255, 0.92));
  border-color: rgba(236, 72, 153, 0.18);
}
.match-info-container .day-info-section--birthday::before {
  background: rgba(236, 72, 153, 0.75);
}

.venue-link {
  color: #1976d2;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}
.venue-link:hover {
  color: #1565c0;
}
.close-match-info {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #f44336, #ef5350, #e57373);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-match-info:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

/* === NEW STYLES FOR iCAL DROPDOWN === */
.ical-subscribe-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ical-dropdown-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 350px;
}

.ical-main-button {
  width: 100%;
  background: linear-gradient(135deg, #4caf50, #66bb6a, #8bc34a) !important;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3) !important;
}

.ical-main-button:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4) !important;
}

.ical-options-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 100;
  margin-top: 0.5rem;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ical-dropdown-container.active .ical-options-list {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.ical-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: #2d3748;
  transition: background-color 0.2s ease;
}

.ical-option:not(:last-child) {
  border-bottom: 1px solid #f1f5f9;
}

.ical-option:hover {
  background-color: #f8f9fa;
}

.ical-option img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ical-option span {
  font-weight: 500;
}

/* === STYLY PRO TROFEJE === */

.trophies-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.trophies-content {
  margin-top: 1rem;
}

.empty-trophies {
  text-align: center;
  padding: 4rem 2rem;
  color: #718096;
}

.empty-trophies-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-trophies h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.empty-trophies p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.trophies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.trophy-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 2px solid rgba(255, 193, 7, 0.2);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255, 193, 7, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.trophy-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(255, 193, 7, 0.25), 0 8px 25px rgba(0, 0, 0, 0.15), inset 0 1px 0
    rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 193, 7, 0.4);
}

.trophy-image-container {
  width: 100%;
  height: 200px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: none;
}

.trophy-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.trophy-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.trophy-placeholder-icon {
  font-size: 4rem;
  color: white;
  opacity: 0.8;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.trophy-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trophy-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
  line-height: 1.3;
  text-align: center;
}

.trophy-season {
  font-size: 0.9rem;
  color: #ffc107;
  font-weight: 600;
  text-align: center;
  background: rgba(255, 193, 7, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trophy-description {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  text-align: center;
  flex: 1;
}

.trophy-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #718096;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.trophy-date-icon {
  font-size: 1rem;
}

/* Responzivní úpravy pro trofeje */
@media (max-width: 768px) {
  .trophies-wrapper {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .trophies-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .trophy-card {
    border-radius: 16px;
  }

  .trophy-image-container {
    height: 150px;
  }

  .trophy-placeholder-icon {
    font-size: 3rem;
  }

  .trophy-info {
    padding: 1rem;
    gap: 0.5rem;
  }

  .trophy-name {
    font-size: 1.1rem;
  }

  .trophy-season {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .trophy-description {
    font-size: 0.9rem;
  }

  .empty-trophies {
    padding: 2rem 1rem;
  }

  .empty-trophies-icon {
    font-size: 3rem;
  }

  .empty-trophies h3 {
    font-size: 1.25rem;
  }

  .empty-trophies p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .trophies-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .trophy-image-container {
    height: 120px;
  }

  .trophy-placeholder-icon {
    font-size: 2.5rem;
  }

  .trophy-info {
    padding: 0.75rem;
  }

  .trophy-name {
    font-size: 1rem;
  }

  .trophy-season {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .trophy-description {
    font-size: 0.85rem;
  }
}

/* Rozbalovací sekce trofejí */
.trophies-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.trophies-count {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

/* Zaškrtávací políčka pro zabalení sekcí */
.section-collapse-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
  font-family: "ProtestStrike";
  font-size: 0.9rem;
  font-weight: normal;
  color: #4b5563;
  transition: all 0.2s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.section-collapse-toggle:hover {
  color: #1f2937;
  background: rgba(76, 175, 80, 0.12);
  border-color: rgba(76, 175, 80, 0.3);
  transform: translateY(-1px);
}

.section-collapse-toggle input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #4CAF50;
  margin: 0;
  flex-shrink: 0;
}

.section-collapse-label {
  font-size: 0.9rem;
  font-weight: normal;
  font-family: "ProtestStrike";
  white-space: nowrap;
}

/* Skrytí prvků při zabalení */
.collapse-hideable {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.section-header.section-collapsed .collapse-hideable {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none;
}

/* Obsah sekce s animací */
.section-content {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s ease, 
              padding-top 0.3s ease, 
              padding-bottom 0.3s ease,
              margin-top 0.3s ease, 
              margin-bottom 0.3s ease;
  max-height: 10000px;
  opacity: 1;
}

.section-content.collapsed {
  max-height: 0 !important;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Úprava pro section-header s více prvky */
.section-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Modal pro zvětšení obrázků trofejí */
.trophy-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.trophy-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.trophy-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: transparent;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: scaleIn 0.3s ease;
}

.trophy-modal-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.trophy-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.trophy-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive design pro modal */
@media (max-width: 768px) {
  .trophy-modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }

  .trophy-modal-image {
    max-height: 70vh;
  }

  .trophy-modal-close {
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
  }
}

/* === STYLY PROADMIN STRÁNKU TROFEJÍ === */

.admin-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.admin-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.admin-button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-button.success {
  background: linear-gradient(135deg, #4caf50, #66bb6a, #8bc34a);
  color: white;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.admin-button.success:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

.admin-button.secondary {
  background: linear-gradient(135deg, #2196f3, #42a5f5, #64b5f6);
  color: white;
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.admin-button.secondary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.admin-button.danger {
  background: linear-gradient(135deg, #f44336, #ef5350, #e57373);
  color: white;
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.3);
}

.admin-button.danger:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
}

.admin-button.small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.trophies-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.trophy-admin-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 2px solid rgba(255, 193, 7, 0.2);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255, 193, 7, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.trophy-admin-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 15px 45px rgba(255, 193, 7, 0.2), 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 193, 7, 0.3);
}

.trophy-admin-image {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #ffc107, #ffb300);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.trophy-admin-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.trophy-admin-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.trophy-admin-placeholder-icon {
  font-size: 3rem;
  color: white;
  opacity: 0.8;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.trophy-admin-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trophy-admin-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
  line-height: 1.3;
}

.trophy-admin-player {
  font-size: 0.9rem;
  color: #4caf50;
  font-weight: 600;
  margin: 0;
}

.trophy-admin-category {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.trophy-admin-season {
  font-size: 0.8rem;
  color: #ffc107;
  font-weight: 600;
  background: rgba(255, 193, 7, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  width: fit-content;
}

.trophy-admin-description {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
  font-style: italic;
}

.trophy-admin-date {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #718096;
  margin: 0;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.trophy-admin-date-icon {
  font-size: 0.9rem;
}

.trophy-admin-actions {
  padding: 1rem 1.5rem;
  background: rgba(248, 250, 252, 0.8);
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trophy-action-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trophy-action-form .form-group {
  margin-bottom: 0;
}

.trophy-action-form .form-input {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
}

/* Responzivní úpravy pro admin trofeje */
@media (max-width: 768px) {
  .admin-wrapper {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .admin-card {
    padding: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .trophies-admin-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .trophy-admin-card {
    border-radius: 16px;
  }

  .trophy-admin-image {
    height: 120px;
  }

  .trophy-admin-placeholder-icon {
    font-size: 2.5rem;
  }

  .trophy-admin-info {
    padding: 1rem;
    gap: 0.4rem;
  }

  .trophy-admin-name {
    font-size: 1rem;
  }

  .trophy-admin-player {
    font-size: 0.85rem;
  }

  .trophy-admin-category {
    font-size: 0.8rem;
  }

  .trophy-admin-season {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }

  .trophy-admin-description {
    font-size: 0.8rem;
  }

  .trophy-admin-actions {
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .trophy-admin-image {
    height: 100px;
  }

  .trophy-admin-placeholder-icon {
    font-size: 2rem;
  }

  .trophy-admin-info {
    padding: 0.75rem;
  }

  .trophy-admin-name {
    font-size: 0.95rem;
  }

  .trophy-admin-player {
    font-size: 0.8rem;
  }

  .trophy-admin-category {
    font-size: 0.75rem;
  }

  .trophy-admin-season {
    font-size: 0.7rem;
    padding: 0.15rem 0.3rem;
  }

  .trophy-admin-description {
    font-size: 0.75rem;
  }

  .trophy-admin-actions {
    padding: 0.5rem 0.75rem;
  }

  .admin-button.small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Vylepšené styly pro trofeje - badge design */
.trophy-badge {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.trophy-badge-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Vylepšené zobrazení obrázků trofejí */
.trophy-admin-image {
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  overflow: hidden;
  margin: 0 auto 1rem !important;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #e5e7eb;
}

.trophy-admin-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trophy-admin-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 2px dashed #d1d5db;
  border-radius: 50%;
}

.trophy-admin-card {
  text-align: center;
}

.trophy-admin-player {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  margin-bottom: 0.25rem !important;
}

.trophy-admin-season {
  font-size: 0.9rem !important;
  color: #f59e0b !important;
  font-weight: 500 !important;
  margin-bottom: 0.5rem !important;
  background: #fef3c7 !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 12px !important;
  display: inline-block !important;
}

.trophy-admin-description {
  font-style: italic !important;
}

/* Styly pro správu kategorií */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.category-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.category-info {
  margin-bottom: 1rem;
}

.category-key {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-family: "ProtestStrike";
}

.category-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.category-description {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
}

.category-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.category-action-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-action-form .form-group {
  margin-bottom: 0;
}

.category-action-form .form-input {
  font-size: 0.85rem;
  padding: 0.5rem;
}

/* Zmenšené karty trofejí v portal-hrac.php */
.trophy-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 2px solid rgba(255, 193, 7, 0.2);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 200px; /* Zmenšeno o 50% */
  margin: 0 auto;
}

.trophy-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 193, 7, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0
    rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 193, 7, 0.4);
}

.trophy-image-container {
  width: 100%;
  height: 100px; /* Zmenšeno z 200px */
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.trophy-image-container:hover {
  transform: scale(1.05);
}

.trophy-placeholder-icon {
  font-size: 2rem; /* Zmenšeno z 4rem */
  color: white;
  opacity: 0.8;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.trophy-info {
  padding: 1rem; /* Zmenšeno z 1.5rem */
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Zmenšeno z 0.75rem */
}

.trophy-name {
  font-size: 1rem; /* Zmenšeno z 1.25rem */
  font-weight: 700;
  color: #2d3748;
  margin: 0;
  line-height: 1.3;
  text-align: center;
}

.trophy-season {
  font-size: 0.8rem; /* Zmenšeno z 0.9rem */
  color: #ffc107;
  font-weight: 600;
  text-align: center;
  background: rgba(255, 193, 7, 0.1);
  padding: 0.4rem 0.8rem; /* Zmenšeno */
  border-radius: 16px; /* Zmenšeno z 20px */
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trophy-description {
  font-size: 0.8rem; /* Zmenšeno z 0.95rem */
  color: #64748b;
  line-height: 1.4;
  margin: 0;
  text-align: center;
  flex: 1;
}

.trophy-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem; /* Zmenšeno z 0.5rem */
  font-size: 0.75rem; /* Zmenšeno z 0.85rem */
  color: #718096;
  margin-top: auto;
  padding-top: 0.5rem; /* Zmenšeno z 0.75rem */
  border-top: 1px solid #f1f5f9;
}

.trophy-date-icon {
  font-size: 0.9rem; /* Zmenšeno z 1rem */
}

.trophies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Zmenšeno z 280px */
  gap: 1rem; /* Zmenšeno z 1.5rem */
  margin-top: 1rem;
}

/* Modal pro zobrazení obrázku produktu v plné velikosti */
.image-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

.image-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: zoomIn 0.3s ease;
}

.image-modal-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 3001;
  line-height: 1;
}

.image-modal-close:hover {
  color: #4caf50;
}

.image-modal-title {
  color: #fff;
  font-size: 1.25rem;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}

/* Odkaz a modal tabulky velikostí (e-shop v portálu) */
.size-chart-link-wrap {
  margin: 1rem 0 1.5rem;
}
.size-chart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(47, 107, 31, 0.12);
  border: 2px solid rgba(47, 107, 31, 0.35);
  border-radius: 12px;
  color: #2f6b1f;
  font-family: "ProtestStrike";
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.size-chart-link:hover {
  background: rgba(47, 107, 31, 0.2);
  border-color: rgba(47, 107, 31, 0.5);
}
.size-chart-icon {
  font-size: 1.2rem;
}
.size-chart-modal .size-chart-content {
  max-width: 95%;
  max-height: 95vh;
  overflow: auto;
}
.size-chart-title {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}
.size-chart-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- Scoped modern look: Player portal + podstránky (pokladna, přehled vybavení) --- */
body.pk-portal-hrac,
body.pk-portal-page {
  background:
    radial-gradient(700px 420px at 85% 8%, rgba(244, 241, 214, 0.85), transparent 62%),
    radial-gradient(900px 520px at 20% 18%, rgba(143, 190, 99, 0.10), transparent 65%),
    radial-gradient(900px 520px at 80% 85%, rgba(47, 107, 31, 0.08), transparent 68%),
    linear-gradient(180deg, #ffffff, #e6e6e4 55%, #ffffff) !important;
  background-size: auto !important;
  animation: none !important;
}

body.pk-portal-hrac::before,
body.pk-portal-page::before {
  content: none !important;
}

/* Narozeninové pozadí portálu hráče – dorty, balónky, svíčky (třída .portal-birthday-bg) */
body.pk-portal-hrac.portal-birthday-bg {
  background:
    radial-gradient(600px 400px at 90% 5%, rgba(255, 243, 224, 0.9), transparent 55%),
    radial-gradient(500px 350px at 10% 15%, rgba(255, 235, 205, 0.75), transparent 50%),
    radial-gradient(700px 450px at 75% 88%, rgba(255, 213, 79, 0.12), transparent 60%),
    radial-gradient(650px 400px at 15% 75%, rgba(143, 190, 99, 0.18), transparent 58%),
    linear-gradient(175deg, #fffbf5 0%, #fff8ed 25%, #f5f9f0 55%, #fffaf0 85%, #fffbf5 100%) !important;
  background-size: auto !important;
}

/* Dekorace: dorty, balónky, konfety – SVG v pozadí, rozeseté po ploše */
body.pk-portal-hrac.portal-birthday-bg::before {
  content: "" !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
  background-image:
    /* Balónky (červený, zelený, žlutý) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'%3E%3Cellipse cx='20' cy='22' rx='16' ry='20' fill='%23ff8a80' fill-opacity='0.5'/%3E%3Cpath d='M18 42 L16 48 L20 45 L24 48 Z' fill='%23ff8a80' fill-opacity='0.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'%3E%3Cellipse cx='20' cy='22' rx='16' ry='20' fill='%238FBE63' fill-opacity='0.45'/%3E%3Cpath d='M18 42 L16 48 L20 45 L24 48 Z' fill='%238FBE63' fill-opacity='0.45'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'%3E%3Cellipse cx='20' cy='22' rx='16' ry='20' fill='%23FFD54F' fill-opacity='0.45'/%3E%3Cpath d='M18 42 L16 48 L20 45 L24 48 Z' fill='%23FFD54F' fill-opacity='0.45'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'%3E%3Cellipse cx='20' cy='22' rx='16' ry='20' fill='%23ff8a80' fill-opacity='0.4'/%3E%3Cpath d='M18 42 L16 48 L20 45 L24 48 Z' fill='%23ff8a80' fill-opacity='0.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'%3E%3Cellipse cx='20' cy='22' rx='16' ry='20' fill='%23FFD54F' fill-opacity='0.4'/%3E%3Cpath d='M18 42 L16 48 L20 45 L24 48 Z' fill='%23FFD54F' fill-opacity='0.4'/%3E%3C/svg%3E"),
    /* Dorty se svíčkou */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='8' y='24' width='32' height='16' rx='3' fill='%23e8c4a0' fill-opacity='0.55'/%3E%3Crect x='10' y='16' width='28' height='10' rx='2' fill='%23f5e6d3' fill-opacity='0.6'/%3E%3Ccircle cx='24' cy='10' r='5' fill='%23d4a574' fill-opacity='0.6'/%3E%3Ccircle cx='24' cy='9' r='1.5' fill='%23fff' fill-opacity='0.95'/%3E%3Crect x='23' y='4' width='2' height='6' fill='%23c49a6c' fill-opacity='0.55'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='8' y='24' width='32' height='16' rx='3' fill='%23e8c4a0' fill-opacity='0.55'/%3E%3Crect x='10' y='16' width='28' height='10' rx='2' fill='%23f5e6d3' fill-opacity='0.6'/%3E%3Ccircle cx='24' cy='10' r='5' fill='%23d4a574' fill-opacity='0.6'/%3E%3Ccircle cx='24' cy='9' r='1.5' fill='%23fff' fill-opacity='0.95'/%3E%3Crect x='23' y='4' width='2' height='6' fill='%23c49a6c' fill-opacity='0.55'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='8' y='24' width='32' height='16' rx='3' fill='%23e8c4a0' fill-opacity='0.5'/%3E%3Crect x='10' y='16' width='28' height='10' rx='2' fill='%23f5e6d3' fill-opacity='0.55'/%3E%3Ccircle cx='24' cy='10' r='5' fill='%23d4a574' fill-opacity='0.55'/%3E%3Ccircle cx='24' cy='9' r='1.5' fill='%23fff' fill-opacity='0.9'/%3E%3Crect x='23' y='4' width='2' height='6' fill='%23c49a6c' fill-opacity='0.5'/%3E%3C/svg%3E"),
    /* Konfety / hvězdičky */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 L13 9 L20 10 L14 14 L16 21 L12 17 L8 21 L10 14 L4 10 L11 9 Z' fill='%23FFD54F' fill-opacity='0.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='%23ff8a80' fill-opacity='0.35'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='10' y='6' width='4' height='12' rx='1' fill='%238FBE63' fill-opacity='0.35' transform='rotate(45 12 12)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 L13 9 L20 10 L14 14 L16 21 L12 17 L8 21 L10 14 L4 10 L11 9 Z' fill='%238FBE63' fill-opacity='0.3'/%3E%3C/svg%3E");
  background-size:
    58px 70px,
    52px 62px,
    62px 74px,
    48px 58px,
    55px 66px,
    85px 85px,
    72px 72px,
    78px 78px,
    26px 26px,
    20px 20px,
    18px 18px,
    24px 24px;
  background-repeat: no-repeat;
  background-position:
    6% 10%,
    90% 8%,
    15% 78%,
    82% 72%,
    50% 5%,
    4% 50%,
    88% 42%,
    45% 85%,
    22% 28%,
    75% 35%,
    12% 62%,
    68% 88%;
}

/* Zápas dnes – výraznější zelené fotbalové pozadí */
body.pk-portal-hrac.portal-match-bg {
  background:
    radial-gradient(550px 380px at 88% 8%, rgba(200, 230, 201, 0.9), transparent 52%),
    radial-gradient(500px 350px at 12% 18%, rgba(129, 199, 132, 0.35), transparent 50%),
    radial-gradient(600px 400px at 70% 85%, rgba(165, 214, 167, 0.5), transparent 55%),
    radial-gradient(500px 350px at 20% 78%, rgba(102, 187, 106, 0.25), transparent 50%),
    linear-gradient(165deg, #c8e6c9 0%, #e8f5e9 25%, #fff 50%, #e8f5e9 75%, #a5d6a7 100%) !important;
  background-size: auto !important;
}

/* Všechny tematické dny: místo SVG zobrazit emoji – pod hlavním menu, za obsahem */
.portal-bg-emojis {
  position: fixed;
  top: 220px;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
/* Hlavní obsah a menu musí být nad emoji */
body.pk-portal-hrac .page-wrapper {
  position: relative;
  z-index: 1;
}
.portal-bg-emojis .bg-emoji {
  position: absolute;
  font-size: 3rem;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.portal-bg-emojis .bg-emoji:nth-child(1)  { top: 5%;   left: 4%; }
.portal-bg-emojis .bg-emoji:nth-child(2)  { top: 10%;  left: 28%; }
.portal-bg-emojis .bg-emoji:nth-child(3)  { top: 6%;   left: 55%; }
.portal-bg-emojis .bg-emoji:nth-child(4)  { top: 8%;   left: 85%; }
.portal-bg-emojis .bg-emoji:nth-child(5)  { top: 28%;  left: 2%; }
.portal-bg-emojis .bg-emoji:nth-child(6)  { top: 32%;  left: 92%; }
.portal-bg-emojis .bg-emoji:nth-child(7)  { top: 48%;  left: 15%; }
.portal-bg-emojis .bg-emoji:nth-child(8)  { top: 52%;  left: 78%; }
.portal-bg-emojis .bg-emoji:nth-child(9)  { top: 58%;  left: 48%; }
.portal-bg-emojis .bg-emoji:nth-child(10) { top: 72%;  left: 6%; }
.portal-bg-emojis .bg-emoji:nth-child(11) { top: 75%;  left: 35%; }
.portal-bg-emojis .bg-emoji:nth-child(12) { top: 78%;  left: 88%; }
.portal-bg-emojis .bg-emoji:nth-child(13) { top: 90%;  left: 18%; }
.portal-bg-emojis .bg-emoji:nth-child(14) { top: 92%;  left: 58%; }
.portal-bg-emojis .bg-emoji:nth-child(15) { top: 88%;  left: 40%; }

@media (max-width: 768px) {
  .portal-bg-emojis {
    top: 280px;
  }
}

body.pk-portal-hrac.portal-emoji-bg.portal-match-bg::before,
body.pk-portal-hrac.portal-emoji-bg.portal-tournament-bg::before,
body.pk-portal-hrac.portal-emoji-bg.portal-akce-bg::before,
body.pk-portal-hrac.portal-emoji-bg.portal-birthday-bg::before,
body.pk-portal-hrac.portal-emoji-bg.portal-xmas-bg::before,
body.pk-portal-hrac.portal-emoji-bg.portal-ny-bg::before,
body.pk-portal-hrac.portal-emoji-bg.portal-easter-bg::before {
  background-image: none !important;
}

body.pk-portal-hrac.portal-match-bg::before {
  content: "" !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
  background-image:
    /* Fotbalové míče (černobílý motiv) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='22' fill='%23fff' fill-opacity='0.7' stroke='%23233' stroke-width='1.5'/%3E%3Cpath d='M24 4 L28 14 L24 24 L20 14 Z M24 24 L32 18 L38 24 L32 30 Z M24 24 L18 30 L12 24 L18 18 Z M24 24 L20 34 L24 44 L28 34 Z M24 24 L14 28 L4 24 L14 20 Z' fill='%231a1a1a' fill-opacity='0.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='22' fill='%23fff' fill-opacity='0.65' stroke='%23233' stroke-width='1.5'/%3E%3Cpath d='M24 4 L28 14 L24 24 L20 14 Z M24 24 L32 18 L38 24 L32 30 Z M24 24 L18 30 L12 24 L18 18 Z M24 24 L20 34 L24 44 L28 34 Z M24 24 L14 28 L4 24 L14 20 Z' fill='%231a1a1a' fill-opacity='0.45'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='22' fill='%23fff' fill-opacity='0.6' stroke='%23233' stroke-width='1.5'/%3E%3Cpath d='M24 4 L28 14 L24 24 L20 14 Z M24 24 L32 18 L38 24 L32 30 Z M24 24 L18 30 L12 24 L18 18 Z M24 24 L20 34 L24 44 L28 34 Z M24 24 L14 28 L4 24 L14 20 Z' fill='%231a1a1a' fill-opacity='0.4'/%3E%3C/svg%3E");
  background-size: 72px 72px, 58px 58px, 64px 64px;
  background-repeat: no-repeat;
  background-position: 8% 12%, 85% 75%, 45% 8%;
}

/* Turnaj dnes – pozadí s pohárem / trofejí */
body.pk-portal-hrac.portal-tournament-bg {
  background:
    radial-gradient(550px 380px at 10% 10%, rgba(255, 248, 225, 0.9), transparent 52%),
    radial-gradient(500px 350px at 92% 20%, rgba(255, 243, 224, 0.8), transparent 50%),
    radial-gradient(600px 400px at 25% 88%, rgba(255, 236, 179, 0.3), transparent 55%),
    radial-gradient(500px 350px at 80% 75%, rgba(255, 213, 79, 0.2), transparent 50%),
    linear-gradient(170deg, #fffde7 0%, #fff8e1 28%, #fff 52%, #fff9c4 80%, #ffecb3 100%) !important;
  background-size: auto !important;
}

body.pk-portal-hrac.portal-tournament-bg::before {
  content: "" !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  background-image:
    /* Poháry / trofeje */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 52'%3E%3Cellipse cx='20' cy='38' rx='12' ry='4' fill='%23b8860b' fill-opacity='0.5'/%3E%3Cpath d='M8 38 L8 22 Q8 8 20 8 Q32 8 32 22 L32 38' fill='%23daa520' fill-opacity='0.55' stroke='%239b7509' stroke-opacity='0.5'/%3E%3Cpath d='M6 14 L4 8 L20 6 L36 8 L34 14' fill='none' stroke='%23b8860b' stroke-width='2' stroke-opacity='0.6'/%3E%3Cpath d='M12 8 L14 4 L20 2 L26 4 L28 8' fill='%23ffd700' fill-opacity='0.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 52'%3E%3Cellipse cx='20' cy='38' rx='12' ry='4' fill='%23b8860b' fill-opacity='0.5'/%3E%3Cpath d='M8 38 L8 22 Q8 8 20 8 Q32 8 32 22 L32 38' fill='%23daa520' fill-opacity='0.55' stroke='%239b7509' stroke-opacity='0.5'/%3E%3Cpath d='M6 14 L4 8 L20 6 L36 8 L34 14' fill='none' stroke='%23b8860b' stroke-width='2' stroke-opacity='0.6'/%3E%3Cpath d='M12 8 L14 4 L20 2 L26 4 L28 8' fill='%23ffd700' fill-opacity='0.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 52'%3E%3Cellipse cx='20' cy='38' rx='12' ry='4' fill='%23b8860b' fill-opacity='0.45'/%3E%3Cpath d='M8 38 L8 22 Q8 8 20 8 Q32 8 32 22 L32 38' fill='%23daa520' fill-opacity='0.5' stroke='%239b7509' stroke-opacity='0.5'/%3E%3Cpath d='M6 14 L4 8 L20 6 L36 8 L34 14' fill='none' stroke='%23b8860b' stroke-width='2' stroke-opacity='0.55'/%3E%3Cpath d='M12 8 L14 4 L20 2 L26 4 L28 8' fill='%23ffd700' fill-opacity='0.35'/%3E%3C/svg%3E");
  background-size: 56px 73px, 48px 62px, 52px 68px;
  background-repeat: no-repeat;
  background-position: 6% 15%, 88% 72%, 50% 6%;
}

/* Ostatní akce (fotbal) dnes – pozadí připomínající akci (míč + hvězda/akcent) */
body.pk-portal-hrac.portal-akce-bg {
  background:
    radial-gradient(550px 380px at 85% 12%, rgba(227, 242, 253, 0.85), transparent 52%),
    radial-gradient(500px 350px at 15% 25%, rgba(232, 245, 233, 0.75), transparent 50%),
    radial-gradient(600px 400px at 75% 82%, rgba(255, 249, 196, 0.25), transparent 55%),
    radial-gradient(500px 350px at 25% 70%, rgba(187, 222, 251, 0.2), transparent 50%),
    linear-gradient(168deg, #e3f2fd 0%, #e8f5e9 35%, #fff 60%, #fffde7 90%, #e8f5e9 100%) !important;
  background-size: auto !important;
}

body.pk-portal-hrac.portal-akce-bg::before {
  content: "" !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  background-image:
    /* Malý míč + hvězda (akce/fotbal) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='16' fill='%23fff' fill-opacity='0.65' stroke='%23333' stroke-width='1.2'/%3E%3Cpath d='M18 4 L20 12 L18 18 L16 12 Z M18 18 L26 16 L32 18 L26 20 Z M18 18 L16 26 L18 32 L20 26 Z M18 18 L10 20 L4 18 L10 16 Z' fill='%23222' fill-opacity='0.45'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 L13 8 L20 9 L14 13 L16 20 L12 16 L8 20 L10 13 L4 9 L11 8 Z' fill='%231976d2' fill-opacity='0.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='16' fill='%23fff' fill-opacity='0.55' stroke='%23333' stroke-width='1.2'/%3E%3Cpath d='M18 4 L20 12 L18 18 L16 12 Z M18 18 L26 16 L32 18 L26 20 Z M18 18 L16 26 L18 32 L20 26 Z M18 18 L10 20 L4 18 L10 16 Z' fill='%23222' fill-opacity='0.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 L13 8 L20 9 L14 13 L16 20 L12 16 L8 20 L10 13 L4 9 L11 8 Z' fill='%2343a047' fill-opacity='0.35'/%3E%3C/svg%3E");
  background-size: 52px 52px, 32px 32px, 44px 44px, 28px 28px;
  background-repeat: no-repeat;
  background-position: 10% 18%, 82% 15%, 8% 75%, 85% 78%;
}

/* Vánoce 14.12–26.12 – barvy + SVG stromeček */
body.pk-portal-hrac.portal-xmas-bg {
  background:
    radial-gradient(550px 380px at 10% 15%, rgba(27, 94, 32, 0.25), transparent 55%),
    radial-gradient(500px 350px at 90% 20%, rgba(46, 125, 50, 0.2), transparent 50%),
    radial-gradient(600px 400px at 50% 85%, rgba(56, 142, 60, 0.2), transparent 55%),
    linear-gradient(165deg, #e8f5e9 0%, #c8e6c9 25%, #fff 50%, #a5d6a7 80%, #e8f5e9 100%) !important;
  background-size: auto !important;
}

body.pk-portal-hrac.portal-xmas-bg::before {
  content: "" !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.88;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 64'%3E%3Cpath d='M24 4 L28 20 L24 36 L20 20 Z M24 36 L32 24 L24 44 L16 24 Z M24 44 L36 32 L24 60 L12 32 Z' fill='%232e7d32' fill-opacity='0.5'/%3E%3Crect x='20' y='58' width='8' height='6' rx='1' fill='%235d4037' fill-opacity='0.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 64'%3E%3Cpath d='M24 4 L28 20 L24 36 L20 20 Z M24 36 L32 24 L24 44 L16 24 Z M24 44 L36 32 L24 60 L12 32 Z' fill='%23388e3c' fill-opacity='0.45'/%3E%3Crect x='20' y='58' width='8' height='6' rx='1' fill='%235d4037' fill-opacity='0.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='%23f44336' fill-opacity='0.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='%23ffeb3b' fill-opacity='0.35'/%3E%3C/svg%3E");
  background-size: 52px 70px, 44px 58px, 28px 28px, 24px 24px;
  background-repeat: no-repeat;
  background-position: 8% 12%, 88% 70%, 15% 35%, 82% 25%;
}

/* Nový rok 31.12 + 1.1 – barvy + SVG ohňostroj */
body.pk-portal-hrac.portal-ny-bg {
  background:
    radial-gradient(550px 380px at 50% 10%, rgba(25, 32, 72, 0.4), transparent 55%),
    radial-gradient(500px 350px at 20% 80%, rgba(78, 52, 146, 0.25), transparent 50%),
    radial-gradient(600px 400px at 80% 75%, rgba(33, 150, 243, 0.2), transparent 55%),
    linear-gradient(170deg, #0d47a1 0%, #1565c0 30%, #1a237e 60%, #0d47a1 100%) !important;
  background-size: auto !important;
}

body.pk-portal-hrac.portal-ny-bg::before {
  content: "" !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 8 L26 16 L24 24 L22 16 Z M24 24 L34 20 L40 24 L34 28 Z M24 24 L16 28 L10 24 L16 20 Z M24 24 L20 34 L24 42 L28 34 Z' fill='%23ffd54f' fill-opacity='0.5' stroke='%23ffab00' stroke-opacity='0.4'/%3E%3Ccircle cx='24' cy='24' r='2' fill='%23fff' fill-opacity='0.8'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 8 L26 16 L24 24 L22 16 Z M24 24 L34 20 L40 24 L34 28 Z M24 24 L16 28 L10 24 L16 20 Z M24 24 L20 34 L24 42 L28 34 Z' fill='%23e1bee7' fill-opacity='0.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 8 L26 16 L24 24 L22 16 Z M24 24 L34 20 L40 24 L34 28 Z' fill='%2381d4fa' fill-opacity='0.4'/%3E%3C/svg%3E");
  background-size: 56px 56px, 48px 48px, 40px 40px;
  background-repeat: no-repeat;
  background-position: 50% 15%, 15% 70%, 85% 65%;
}

/* Velikonoce (dle dat) – barvy + SVG vajíčko / pomlázka */
body.pk-portal-hrac.portal-easter-bg {
  background:
    radial-gradient(550px 380px at 15% 20%, rgba(255, 235, 59, 0.2), transparent 52%),
    radial-gradient(500px 350px at 85% 25%, rgba(129, 199, 132, 0.35), transparent 50%),
    radial-gradient(600px 400px at 50% 80%, rgba(255, 241, 118, 0.25), transparent 55%),
    linear-gradient(165deg, #fff9c4 0%, #f0f4c3 30%, #fff 55%, #dce775 85%, #fff59d 100%) !important;
  background-size: auto !important;
}

body.pk-portal-hrac.portal-easter-bg::before {
  content: "" !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 40'%3E%3Cellipse cx='16' cy='22' rx='10' ry='14' fill='%23fff59d' fill-opacity='0.6' stroke='%238bc34a' stroke-width='1.5' stroke-opacity='0.5'/%3E%3Cpath d='M8 14 Q16 8 24 14' fill='none' stroke='%237cb342' stroke-opacity='0.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cellipse cx='12' cy='16' rx='7' ry='10' fill='%23c5e1a5' fill-opacity='0.55'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 48'%3E%3Cpath d='M10 4 L10 44 Q10 46 8 46 L12 46 Q10 46 10 44 Z' stroke='%238bc34a' stroke-width='3' fill='none' stroke-opacity='0.5'/%3E%3Ccircle cx='10' cy='8' r='5' fill='%23fff59d' fill-opacity='0.5'/%3E%3C/svg%3E");
  background-size: 44px 55px, 36px 48px, 28px 68px;
  background-repeat: no-repeat;
  background-position: 10% 25%, 88% 60%, 50% 12%;
}

/* Kombinace pozadí: zápas + narozeniny (SVG i barvy z obou) */
body.pk-portal-hrac.portal-match-bg.portal-birthday-bg {
  background:
    radial-gradient(550px 380px at 88% 8%, rgba(232, 245, 233, 0.8), transparent 52%),
    radial-gradient(500px 350px at 12% 18%, rgba(255, 243, 224, 0.85), transparent 50%),
    radial-gradient(600px 400px at 70% 85%, rgba(255, 213, 79, 0.12), transparent 55%),
    radial-gradient(500px 350px at 20% 78%, rgba(143, 190, 99, 0.2), transparent 50%),
    linear-gradient(165deg, #e8f5e9 0%, #fff8ed 35%, #f5f9f0 65%, #c8e6c9 100%) !important;
  background-size: auto !important;
}

body.pk-portal-hrac.portal-match-bg.portal-birthday-bg::before {
  content: "" !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='22' fill='%23fff' fill-opacity='0.6' stroke='%23233' stroke-width='1.5'/%3E%3Cpath d='M24 4 L28 14 L24 24 L20 14 Z M24 24 L32 18 L38 24 L32 30 Z M24 24 L18 30 L12 24 L18 18 Z M24 24 L20 34 L24 44 L28 34 Z M24 24 L14 28 L4 24 L14 20 Z' fill='%231a1a1a' fill-opacity='0.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='8' y='24' width='32' height='16' rx='3' fill='%23e8c4a0' fill-opacity='0.45'/%3E%3Crect x='10' y='16' width='28' height='10' rx='2' fill='%23f5e6d3' fill-opacity='0.5'/%3E%3Ccircle cx='24' cy='10' r='5' fill='%23d4a574' fill-opacity='0.5'/%3E%3C/svg%3E");
  background-size: 64px 64px, 70px 70px;
  background-repeat: no-repeat;
  background-position: 85% 75%, 8% 15%;
}

/* Kombinace: turnaj + narozeniny */
body.pk-portal-hrac.portal-tournament-bg.portal-birthday-bg::before {
  content: "" !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.88;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 52'%3E%3Cellipse cx='20' cy='38' rx='12' ry='4' fill='%23b8860b' fill-opacity='0.45'/%3E%3Cpath d='M8 38 L8 22 Q8 8 20 8 Q32 8 32 22 L32 38' fill='%23daa520' fill-opacity='0.5'/%3E%3Cpath d='M12 8 L14 4 L20 2 L26 4 L28 8' fill='%23ffd700' fill-opacity='0.35'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='8' y='24' width='32' height='16' rx='3' fill='%23e8c4a0' fill-opacity='0.45'/%3E%3Crect x='10' y='16' width='28' height='10' rx='2' fill='%23f5e6d3' fill-opacity='0.5'/%3E%3Ccircle cx='24' cy='10' r='5' fill='%23d4a574' fill-opacity='0.5'/%3E%3C/svg%3E");
  background-size: 48px 62px, 68px 68px;
  background-repeat: no-repeat;
  background-position: 88% 72%, 6% 18%;
}

/* Kombinace: akce + narozeniny */
body.pk-portal-hrac.portal-akce-bg.portal-birthday-bg::before {
  content: "" !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.88;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='16' fill='%23fff' fill-opacity='0.55' stroke='%23333' stroke-width='1.2'/%3E%3Cpath d='M18 4 L20 12 L18 18 L16 12 Z M18 18 L26 16 L32 18 L26 20 Z M18 18 L16 26 L18 32 L20 26 Z M18 18 L10 20 L4 18 L10 16 Z' fill='%23222' fill-opacity='0.4'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='8' y='24' width='32' height='16' rx='3' fill='%23e8c4a0' fill-opacity='0.45'/%3E%3Crect x='10' y='16' width='28' height='10' rx='2' fill='%23f5e6d3' fill-opacity='0.5'/%3E%3Ccircle cx='24' cy='10' r='5' fill='%23d4a574' fill-opacity='0.5'/%3E%3C/svg%3E");
  background-size: 48px 48px, 65px 65px;
  background-repeat: no-repeat;
  background-position: 82% 15%, 10% 70%;
}

/* Kombinace: vánoce + narozeniny (strom + dort) */
body.pk-portal-hrac.portal-xmas-bg.portal-birthday-bg::before {
  content: "" !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.88;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 64'%3E%3Cpath d='M24 4 L28 20 L24 36 L20 20 Z M24 36 L32 24 L24 44 L16 24 Z M24 44 L36 32 L24 60 L12 32 Z' fill='%232e7d32' fill-opacity='0.5'/%3E%3Crect x='20' y='58' width='8' height='6' rx='1' fill='%235d4037' fill-opacity='0.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Crect x='8' y='24' width='32' height='16' rx='3' fill='%23e8c4a0' fill-opacity='0.45'/%3E%3Crect x='10' y='16' width='28' height='10' rx='2' fill='%23f5e6d3' fill-opacity='0.5'/%3E%3Ccircle cx='24' cy='10' r='5' fill='%23d4a574' fill-opacity='0.5'/%3E%3C/svg%3E");
  background-size: 48px 64px, 62px 62px;
  background-repeat: no-repeat;
  background-position: 8% 12%, 85% 25%;
}

/* Kombinace: vánoce + zápas (strom + míč) */
body.pk-portal-hrac.portal-xmas-bg.portal-match-bg::before {
  content: "" !important;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.88;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 64'%3E%3Cpath d='M24 4 L28 20 L24 36 L20 20 Z M24 36 L32 24 L24 44 L16 24 Z M24 44 L36 32 L24 60 L12 32 Z' fill='%232e7d32' fill-opacity='0.5'/%3E%3Crect x='20' y='58' width='8' height='6' rx='1' fill='%235d4037' fill-opacity='0.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='22' fill='%23fff' fill-opacity='0.6' stroke='%23233' stroke-width='1.5'/%3E%3Cpath d='M24 4 L28 14 L24 24 L20 14 Z M24 24 L32 18 L38 24 L32 30 Z M24 24 L18 30 L12 24 L18 18 Z M24 24 L20 34 L24 44 L28 34 Z M24 24 L14 28 L4 24 L14 20 Z' fill='%231a1a1a' fill-opacity='0.4'/%3E%3C/svg%3E");
  background-size: 48px 64px, 58px 58px;
  background-repeat: no-repeat;
  background-position: 8% 12%, 85% 65%;
}

body.pk-portal-page .modern-header {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: none !important;
}

body.pk-portal-page .logo-icon img {
  width: 3.4rem;
  height: 2.3rem;
  border-radius: 0;
}

body.pk-portal-page .header-nav .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.pk-portal-page .header-nav .nav-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
}

body.pk-portal-page .nav-button.primary:hover,
body.pk-portal-page .nav-button.danger:hover {
  transform: none !important;
}

body.pk-portal-page .nav-button.primary,
body.pk-portal-page .nav-button.danger {
  border-width: 1px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

body.pk-portal-page .balance-overview-card,
body.pk-portal-page .payment-card,
body.pk-portal-page .stat-card,
body.pk-portal-page .equipment-card,
body.pk-portal-page .overview-section,
body.pk-portal-page .login-card,
body.pk-portal-page .chart-card,
body.pk-portal-page .admin-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

/* Admin metric-card: stejný vzhled, ale zachovat barevný levý okraj */
body.pk-portal-page .metric-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-left-width: 4px !important;
  border-left-style: solid !important;
}

body.pk-portal-page .section-header,
body.pk-portal-page .dashboard-wrapper {
  margin-bottom: 1.5rem;
}

/* Admin podstránky: sjednocený vzhled hlavního obsahu */
body.pk-portal-page .admin-wrapper {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
  padding: 1.5rem 2rem !important;
}

/* Přehled vybavení: obsah karet vycentrovaný */
body.pk-portal-page .stat-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 1.5rem !important;
}
body.pk-portal-page .stat-card .stat-icon {
  margin-bottom: 0.5rem;
}
body.pk-portal-page .stat-card .stat-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}
body.pk-portal-page .stat-card .stat-detail {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.5rem 1rem !important;
}

body.pk-portal-page .equipment-card {
  text-align: center !important;
}
body.pk-portal-page .equipment-card .equipment-header {
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.75rem !important;
  text-align: center !important;
}
body.pk-portal-page .equipment-card .equipment-details {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}
body.pk-portal-page .equipment-card .detail-item {
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 0.35rem !important;
}

body.pk-portal-page .page-header .page-title,
body.pk-portal-page .section-title {
  color: #1a3a1a !important;
  letter-spacing: 0.2px;
}

body.pk-portal-page .page-subtitle,
body.pk-portal-page .content-container {
  color: rgba(26, 58, 26, 0.85);
}

body.pk-portal-page .dashboard-header,
body.pk-portal-page .page-header {
  margin-bottom: 1.5rem;
}

body.pk-portal-hrac .modern-header {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: none !important;
}

body.pk-portal-hrac .logo-icon img {
  width: 3.4rem;
  height: 2.3rem;
  border-radius: 0;
}

body.pk-portal-hrac .header-nav .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.pk-portal-hrac .header-nav .nav-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
}

body.pk-portal-hrac .nav-button.primary:hover,
body.pk-portal-hrac .nav-button.danger:hover {
  transform: none !important;
}

body.pk-portal-hrac .nav-button.primary,
body.pk-portal-hrac .nav-button.danger {
  border-width: 1px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

body.pk-portal-hrac .match-card:hover,
body.pk-portal-hrac .profile-card:hover,
body.pk-portal-hrac .stats-card:hover,
body.pk-portal-hrac .equipment-card:hover,
body.pk-portal-hrac .quick-link-card:hover {
  transform: none !important;
}

body.pk-portal-hrac .response-radio-btn:hover {
  transform: none !important;
}

body.pk-portal-hrac .response-radio-group input[type="radio"]:checked + .response-radio-btn {
  transform: none !important;
}

body.pk-portal-hrac .save-attendance-button:hover {
  transform: none !important;
}

body.pk-portal-hrac .section-nav {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
  border-radius: 20px !important;
}

body.pk-portal-hrac .section-nav-container {
  padding: 0.75rem 1rem !important;
  gap: 0.5rem !important;
}

body.pk-portal-hrac .section-nav-item {
  flex-direction: row !important;
  gap: 0.6rem !important;
  padding: 0.65rem 0.9rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: rgba(255, 255, 255, 0.75) !important;
  box-shadow: none !important;
  transform: none !important;
}

body.pk-portal-hrac .section-nav-item:hover {
  color: #1a3a1a !important;
  background: rgba(143, 190, 99, 0.14) !important;
  border-color: rgba(47, 107, 31, 0.18) !important;
}

body.pk-portal-hrac .section-nav-item:focus-visible {
  outline: 2px solid rgba(47, 107, 31, 0.45) !important;
  outline-offset: 2px !important;
}

body.pk-portal-hrac .section-nav-item .nav-item-icon {
  font-size: 1rem !important;
  transform: none !important;
}

body.pk-portal-hrac .section-nav-item:hover .nav-item-icon {
  transform: none !important;
}

body.pk-portal-hrac .section-nav-item .nav-item-text {
  font-weight: 600 !important;
}

body.pk-portal-hrac .match-card,
body.pk-portal-hrac .profile-card,
body.pk-portal-hrac .stats-card,
body.pk-portal-hrac .equipment-card,
body.pk-portal-hrac .quick-link-card,
body.pk-portal-hrac .password-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08) !important;
}

body.pk-portal-hrac .match-card.future,
body.pk-portal-hrac .match-card.turnaj-card,
body.pk-portal-hrac .match-card.piskani-card,
body.pk-portal-hrac .match-card.akce-fotbal-card {
  background: rgba(255, 255, 255, 0.92) !important;
}

body.pk-portal-hrac .profile-header,
body.pk-portal-hrac .stats-header,
body.pk-portal-hrac .equipment-header {
  background: rgba(26, 58, 26, 0.03) !important;
  color: #1a3a1a !important;
  padding: 1.1rem 1.25rem !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.pk-portal-hrac .profile-header h3,
body.pk-portal-hrac .stats-header h3,
body.pk-portal-hrac .equipment-header h3 {
  font-size: 1.05rem !important;
  letter-spacing: 0.2px !important;
}

body.pk-portal-hrac .quick-link-arrow {
  transition: none !important;
}

body.pk-portal-hrac .quick-link-card:hover .quick-link-arrow {
  transform: none !important;
}

body.pk-portal-hrac .response-radio-btn {
  box-shadow: none !important;
  border-radius: 14px !important;
}

body.pk-portal-hrac .response-radio-btn:hover {
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08) !important;
}

body.pk-portal-hrac .save-attendance-wrapper {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.10) !important;
}

body.pk-portal-hrac .save-attendance-button {
  box-shadow: none !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
}

body.pk-portal-hrac .save-attendance-button:hover {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10) !important;
}

body.pk-portal-hrac .dashboard-title {
  letter-spacing: 0.2px;
}

body.pk-portal-hrac .dashboard-subtitle {
  color: rgba(26, 58, 26, 0.75) !important;
}

body.pk-portal-hrac .section-title {
  font-size: 1.35rem !important;
  letter-spacing: 0.2px !important;
}

body.pk-portal-hrac .section-title .title-icon {
  filter: none !important;
  opacity: 0.9;
}

body.pk-portal-hrac .profile-content,
body.pk-portal-hrac .stats-content {
  padding: 1.25rem !important;
}

body.pk-portal-hrac .profile-item,
body.pk-portal-hrac .stat-item:not(.stat-tile) {
  background: rgba(2, 6, 23, 0.03) !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  border-radius: 12px !important;
  padding: 0.85rem 0.95rem !important;
}

body.pk-portal-hrac .profile-label,
body.pk-portal-hrac .stat-label {
  color: rgba(26, 58, 26, 0.72) !important;
  font-weight: 600 !important;
}

body.pk-portal-hrac .profile-value,
body.pk-portal-hrac .stat-value {
  color: #1a3a1a !important;
}

body.pk-portal-hrac .profile-value-text {
  color: #1a3a1a !important;
}

body.pk-portal-hrac .match-status {
  border-radius: 999px !important;
  padding: 0.35rem 0.7rem !important;
  box-shadow: none !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
}

body.pk-portal-hrac .match-date {
  color: rgba(26, 58, 26, 0.72) !important;
}

body.pk-portal-hrac .match-opponent {
  letter-spacing: 0.2px;
}

body.pk-portal-hrac .quick-link-card {
  display: flex;
  gap: 1.25rem;
}

body.pk-portal-hrac .quick-link-icon {
  font-size: 2.4rem !important;
  opacity: 0.95;
}

body.pk-portal-hrac .quick-link-content p {
  color: rgba(26, 58, 26, 0.70) !important;
}

body.pk-portal-hrac .quick-link-arrow {
  color: rgba(47, 107, 31, 0.75) !important;
}

body.pk-portal-hrac .response-radio-btn {
  background: rgba(255, 255, 255, 0.9) !important;
}

body.pk-portal-hrac .response-radio-group input[type="radio"]:checked + .response-radio-btn {
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08) !important;
}

body.pk-portal-hrac .response-radio-group input[type="radio"]:checked + .response-radio-btn.jdu {
  box-shadow: 0 12px 22px rgba(76, 175, 80, 0.22) !important;
}

body.pk-portal-hrac .response-radio-group input[type="radio"]:checked + .response-radio-btn.nevim {
  box-shadow: 0 12px 22px rgba(255, 193, 7, 0.22) !important;
}

body.pk-portal-hrac .response-radio-group input[type="radio"]:checked + .response-radio-btn.nejdu {
  box-shadow: 0 12px 22px rgba(244, 67, 54, 0.22) !important;
}

body.pk-portal-hrac .response-radio-btn:focus-visible,
body.pk-portal-hrac .save-attendance-button:focus-visible,
body.pk-portal-hrac .nav-button:focus-visible,
body.pk-portal-hrac .quick-link-card:focus-visible {
  outline: 2px solid rgba(47, 107, 31, 0.45) !important;
  outline-offset: 2px !important;
}

/* --- Fix: pill menu long labels --- */
body.pk-portal-hrac .section-nav-item {
  max-width: 100% !important;
  min-width: 0 !important;
}

body.pk-portal-hrac .section-nav-item .nav-item-text {
  white-space: normal !important;
  line-height: 1.15 !important;
  text-align: left !important;
}

body.pk-portal-hrac .section-nav-item {
  align-items: center !important;
}

/* --- Dashboard: mřížka dlaždic (mobil kompaktní, PC širší mřížka) --- */
.dashboard-hero-emoji {
  font-size: 2.25rem;
  line-height: 1;
  margin: 0 auto 0.4rem;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}
/* Mobil: méně místa nad mřížkou = více dlaždic „nad ohybem“ */
@media (max-width: 639px) {
  body.pk-portal-hrac .dashboard-header {
    margin-bottom: 0.75rem !important;
  }
  body.pk-portal-hrac .dashboard-hero-emoji {
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
  }
  body.pk-portal-hrac .dashboard-title {
    font-size: 1.35rem !important;
    margin-bottom: 0.35rem !important;
    gap: 0.4rem !important;
  }
  body.pk-portal-hrac .dashboard-subtitle {
    font-size: 0.88rem !important;
    line-height: 1.25 !important;
  }
}
body.pk-portal-hrac .section-nav.section-nav--tiles {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.07) !important;
  border-radius: 20px !important;
  overflow: visible !important;
}
body.pk-portal-hrac .section-nav.section-nav--tiles .section-nav-container {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.45rem !important;
  padding: 0.5rem 0.45rem !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: visible !important;
}
@media (min-width: 640px) {
  body.pk-portal-hrac .section-nav.section-nav--tiles .section-nav-container {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
    padding: 1rem 1.15rem !important;
  }
}
@media (min-width: 1100px) {
  body.pk-portal-hrac .section-nav.section-nav--tiles .section-nav-container {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    padding: 1.15rem 1.35rem !important;
  }
}
body.pk-portal-hrac .section-nav.section-nav--tiles .section-nav-item {
  white-space: normal !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 0.2rem !important;
  padding: 0.4rem 0.22rem !important;
  min-width: 0 !important;
  max-width: none !important;
  width: 100% !important;
  border-radius: 12px !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
  /* Bez čtverce — nižší dlaždice = více řádků na výšku obrazovky */
  aspect-ratio: auto !important;
  min-height: 4.65rem !important;
}
@media (min-width: 640px) {
  body.pk-portal-hrac .section-nav.section-nav--tiles .section-nav-item {
    gap: 0.35rem !important;
    padding: 0.85rem 0.5rem !important;
    border-radius: 14px !important;
    min-height: 7.25rem !important;
  }
}
body.pk-portal-hrac .section-nav.section-nav--tiles .nav-item-icon {
  font-size: 1.22rem !important;
  line-height: 1 !important;
}
@media (min-width: 640px) {
  body.pk-portal-hrac .section-nav.section-nav--tiles .nav-item-icon {
    font-size: 1.55rem !important;
  }
}
body.pk-portal-hrac .section-nav.section-nav--tiles .nav-item-text {
  text-align: center !important;
  font-size: 0.64rem !important;
  font-weight: 600 !important;
  color: #1a202c !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  font-family: inherit !important;
}
@media (min-width: 640px) {
  body.pk-portal-hrac .section-nav.section-nav--tiles .nav-item-text {
    font-size: 0.74rem !important;
    line-height: 1.2 !important;
  }
}
body.pk-portal-hrac .section-nav.section-nav--tiles .nav-item-chevron {
  font-size: 0.62rem !important;
  color: rgba(47, 107, 31, 0.45) !important;
  margin-top: 0 !important;
  line-height: 1 !important;
  font-weight: 600 !important;
}
@media (max-width: 639px) {
  /* Šipka na úzkém mobilu schovat — ušetří jeden řádek výšky na dlaždici */
  body.pk-portal-hrac .section-nav.section-nav--tiles .nav-item-chevron {
    display: none !important;
  }
}
@media (min-width: 640px) {
  body.pk-portal-hrac .section-nav.section-nav--tiles .nav-item-chevron {
    font-size: 0.68rem !important;
    margin-top: 0.12rem !important;
  }
}
body.pk-portal-hrac .section-nav.section-nav--tiles .section-nav-item:hover {
  border-color: rgba(76, 175, 80, 0.42) !important;
  background: rgba(143, 190, 99, 0.11) !important;
  box-shadow: 0 8px 22px rgba(47, 107, 31, 0.12) !important;
  color: #1a3a1a !important;
}
body.pk-portal-hrac .section-nav.section-nav--tiles .section-nav-item:hover .nav-item-text {
  color: #1a3a1a !important;
}

/* Sloty menu + řazení sekcí (data/portal-hrac-section-order.json) */
body.pk-portal-hrac .pk-portal-nav-bar {
  max-width: 1200px;
  margin: 0 auto 0.55rem;
  padding: 0 0.45rem;
}
@media (min-width: 640px) {
  body.pk-portal-hrac .pk-portal-nav-bar {
    padding: 0 1.15rem;
    margin-bottom: 0.65rem;
  }
}
body.pk-portal-hrac .pk-portal-nav-bar-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  width: 100%;
  min-width: 0;
}
body.pk-portal-hrac .pk-portal-nav-bar-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26, 58, 26, 0.55);
  flex: 0 0 auto;
  max-width: 38%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.pk-portal-hrac .pk-portal-nav-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
/* .nav-button má display:inline-flex – bez tohoto zůstávají [hidden] tlačítka vidět */
body.pk-portal-hrac .pk-portal-nav-toolbar > .nav-button[hidden],
body.pk-portal-hrac .pk-portal-nav-toolbar > .pk-portal-nav-toolbar-link[hidden] {
  display: none !important;
}
body.pk-portal-hrac .pk-portal-nav-toolbar .nav-button.primary.pk-portal-nav-toolbar-btn {
  flex: 0 1 auto;
  min-width: 118px;
  max-width: 46vw;
  padding: 8px 12px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  gap: 0.35rem !important;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(76, 175, 80, 0.24) !important;
  justify-content: center;
}
body.pk-portal-hrac .pk-portal-nav-toolbar .pk-portal-nav-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.pk-portal-hrac .pk-portal-nav-toolbar .pk-portal-nav-btn-icon svg {
  display: block;
  stroke: currentColor;
  width: 15px;
  height: 15px;
}
body.pk-portal-hrac .pk-portal-nav-toolbar-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 4px 2px;
  border: none;
  background: transparent;
  color: rgba(100, 116, 139, 0.95);
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(76, 175, 80, 0.28);
  cursor: pointer;
  white-space: nowrap;
  min-width: 0;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.pk-portal-hrac .pk-portal-nav-toolbar-link .pk-portal-nav-btn-icon svg {
  width: 12px;
  height: 12px;
  opacity: 0.85;
}
body.pk-portal-hrac .pk-portal-nav-toolbar-link:hover {
  color: #2e7d32;
  border-bottom-color: rgba(46, 125, 50, 0.45);
}
body.pk-portal-hrac .pk-portal-nav-toolbar-link:focus-visible {
  outline: 2px solid rgba(76, 175, 80, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (max-width: 480px) {
  body.pk-portal-hrac .pk-portal-nav-toolbar-link .pk-portal-nav-toolbar-link-text {
    display: none;
  }
  body.pk-portal-hrac .pk-portal-nav-toolbar-link {
    max-width: none;
    padding: 6px 4px;
    border-bottom: none;
  }
}
@media (max-width: 420px) {
  body.pk-portal-hrac .pk-portal-nav-toolbar .nav-button.primary.pk-portal-nav-toolbar-btn {
    padding: 7px 10px !important;
    font-size: 0.8rem !important;
  }
  body.pk-portal-hrac .pk-portal-nav-toolbar-link {
    font-size: 0.66rem;
    max-width: 36vw;
  }
  body.pk-portal-hrac .pk-portal-nav-bar-title {
    max-width: 30%;
  }
}
body.pk-portal-hrac .section-nav.section-nav--tiles.pk-portal-nav--editing {
  outline: 2px dashed rgba(47, 107, 31, 0.45);
  outline-offset: 4px;
  border-radius: 6px;
}
body.pk-portal-hrac .section-nav.section-nav--tiles.pk-portal-nav--editing .section-nav-item {
  pointer-events: none;
  user-select: none;
}
body.pk-portal-hrac .section-nav.section-nav--tiles.pk-portal-nav--editing .pk-portal-nav-slot[data-pk-reorder] {
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}
body.pk-portal-hrac .section-nav.section-nav--tiles .section-nav-container > .pk-portal-nav-slot {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}
body.pk-portal-hrac .section-nav.section-nav--tiles .pk-portal-nav-slot .section-nav-item {
  flex: 1 1 auto;
  width: 100%;
}
body.pk-portal-hrac .pk-portal-nav-slot-actions {
  display: none;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.12rem;
  flex-shrink: 0;
}
body.pk-portal-hrac .section-nav.section-nav--tiles.pk-portal-nav--editing .pk-portal-nav-slot-actions {
  display: flex;
}
body.pk-portal-hrac .pk-portal-nav-move-up,
body.pk-portal-hrac .pk-portal-nav-move-down {
  font-size: 0.68rem;
  padding: 0.12rem 0.4rem;
  line-height: 1;
  border-radius: 6px;
  border: 1px solid rgba(47, 107, 31, 0.35);
  background: rgba(255, 255, 255, 0.95);
  color: #1a3a1a;
  cursor: pointer;
  font-weight: 600;
  pointer-events: auto;
}
body.pk-portal-hrac .pk-portal-nav-move-up:active,
body.pk-portal-hrac .pk-portal-nav-move-down:active {
  background: rgba(143, 190, 99, 0.28);
}
body.pk-portal-hrac .pk-portal-nav-slot--dragging {
  opacity: 0.75;
}
body.pk-portal-hrac .section-nav.section-nav--tiles.pk-portal-nav--editing .pk-portal-nav-slot[data-pk-reorder]:active {
  cursor: grabbing;
}
body.pk-portal-hrac .section-nav.pk-portal-nav--editing.pk-portal-nav--touch-drag .section-nav-container {
  touch-action: none;
}

/* --- Unified button family (player portal only) --- */
body.pk-portal-hrac .nav-button,
body.pk-portal-hrac .response-btn,
body.pk-portal-hrac .password-button,
body.pk-portal-hrac .save-attendance-button,
body.pk-portal-hrac .calendar-nav-btn,
body.pk-portal-hrac .ical-option {
  border-radius: 999px !important;
  box-shadow: none !important;
  transform: none !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.pk-portal-hrac .nav-button:hover,
body.pk-portal-hrac .response-btn:hover,
body.pk-portal-hrac .password-button:hover,
body.pk-portal-hrac .save-attendance-button:hover,
body.pk-portal-hrac .calendar-nav-btn:hover,
body.pk-portal-hrac .ical-option:hover {
  transform: none !important;
}

body.pk-portal-hrac .nav-button:active,
body.pk-portal-hrac .response-btn:active,
body.pk-portal-hrac .password-button:active,
body.pk-portal-hrac .save-attendance-button:active,
body.pk-portal-hrac .calendar-nav-btn:active,
body.pk-portal-hrac .ical-option:active {
  transform: none !important;
}

body.pk-portal-hrac .response-btn {
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
}

body.pk-portal-hrac .response-btn:hover {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10) !important;
}

body.pk-portal-hrac .password-button {
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
}

body.pk-portal-hrac .ical-option {
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
}

body.pk-portal-hrac .ical-option img {
  border-radius: 8px;
}

/* --- Calendar: minimal + clean (no function changes) --- */
body.pk-portal-hrac .calendar-widget {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08) !important;
}

body.pk-portal-hrac .calendar-header {
  background: rgba(255, 255, 255, 0.72) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.pk-portal-hrac .calendar-title {
  color: #1a3a1a !important;
  letter-spacing: 0.2px;
}

body.pk-portal-hrac .calendar-nav-btn {
  background: rgba(143, 190, 99, 0.18) !important;
  color: #1a3a1a !important;
  border: 1px solid rgba(47, 107, 31, 0.20) !important;
  width: 2.2rem !important;
  height: 2.2rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

body.pk-portal-hrac .calendar-weekdays {
  background: rgba(2, 6, 23, 0.03) !important;
}

body.pk-portal-hrac .calendar-weekday {
  color: rgba(26, 58, 26, 0.70) !important;
  font-weight: 700 !important;
}

body.pk-portal-hrac .calendar-days {
  border-left: none !important;
}

body.pk-portal-hrac .calendar-day,
body.pk-portal-hrac .calendar-day-empty {
  border-right: none !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

body.pk-portal-hrac .calendar-day {
  border-radius: 12px;
  margin: 3px;
}

body.pk-portal-hrac .calendar-day:hover,
body.pk-portal-hrac .calendar-day.has-match:hover,
body.pk-portal-hrac .calendar-day.has-birthday:hover,
body.pk-portal-hrac .calendar-day.has-piskani:hover,
body.pk-portal-hrac .calendar-day.has-turnaj:hover,
body.pk-portal-hrac .calendar-day.has-akce-fotbal:hover,
body.pk-portal-hrac .calendar-day.has-akce:hover {
  background-color: rgba(2, 6, 23, 0.04) !important;
}

body.pk-portal-hrac .calendar-day.today {
  box-shadow: inset 0 0 0 2px rgba(47, 107, 31, 0.55) !important;
  color: #1a3a1a !important;
}

body.pk-portal-hrac .calendar-day.has-piskani,
body.pk-portal-hrac .calendar-day.has-turnaj,
body.pk-portal-hrac .calendar-day.has-akce-fotbal {
  border-width: 1px !important;
}

/* --- Back to top: match new icon + button family --- */
body.pk-portal-hrac .back-to-top {
  background: rgba(143, 190, 99, 0.20) !important;
  border: 1px solid rgba(47, 107, 31, 0.22) !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10) !important;
  backdrop-filter: none !important;
}

body.pk-portal-hrac .back-to-top:hover,
body.pk-portal-hrac .back-to-top:active {
  transform: none !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14) !important;
}

body.pk-portal-hrac .back-to-top-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.pk-portal-hrac .back-to-top-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
}

/* --- Player photo: slightly smaller jersey number badge --- */
body.pk-portal-hrac .jersey-number {
  font-size: 2rem !important;
  padding: 0.55rem 0.8rem !important;
  min-width: 52px !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12) !important;
}

/* --- E-shop / documents: unify remaining button styles --- */
body.pk-portal-hrac .filter-btn,
body.pk-portal-hrac .eshop-product-button,
body.pk-portal-hrac .view-button-player,
body.pk-portal-hrac .download-button-player,
body.pk-portal-hrac .instagram-button,
body.pk-portal-hrac .instagram-button.small-button,
body.pk-portal-hrac .phonebook-btn-call,
body.pk-portal-hrac .phonebook-btn-email {
  border-radius: 999px !important;
  transform: none !important;
  box-shadow: none !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
}

body.pk-portal-hrac .filter-btn:hover,
body.pk-portal-hrac .eshop-product-button:hover,
body.pk-portal-hrac .view-button-player:hover,
body.pk-portal-hrac .download-button-player:hover,
body.pk-portal-hrac .instagram-button:hover,
body.pk-portal-hrac .phonebook-btn-call:hover,
body.pk-portal-hrac .phonebook-btn-email:hover {
  transform: none !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10) !important;
}

body.pk-portal-hrac .filter-btn {
  background: rgba(255, 255, 255, 0.86) !important;
}

body.pk-portal-hrac .filter-btn.active {
  border-color: rgba(47, 107, 31, 0.35) !important;
  box-shadow: 0 12px 26px rgba(76, 175, 80, 0.18) !important;
}

body.pk-portal-hrac .filter-btn.active {
  background: rgba(45, 103, 55, 0.92) !important;
  color: #ffffff !important;
  border-color: rgba(47, 107, 31, 0.55) !important;
}

body.pk-portal-hrac .view-button-player {
  background: rgba(33, 150, 243, 0.12) !important;
  color: #0f172a !important;
}

body.pk-portal-hrac .download-button-player {
  background: rgba(143, 190, 99, 0.18) !important;
  color: #0f172a !important;
}

body.pk-portal-hrac .eshop-product-button,
body.pk-portal-hrac .instagram-button {
  border-color: rgba(47, 107, 31, 0.22) !important;
}

/* --- Phonebook: modern minimalist list/table --- */
body.pk-portal-hrac .phonebook-container {
  padding: 0 !important;
}

body.pk-portal-hrac .phonebook-table-desktop {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 0.6rem !important;
}

body.pk-portal-hrac .phonebook-table-desktop thead th {
  font-size: 0.85rem !important;
  text-transform: none !important;
  letter-spacing: 0.2px !important;
  color: rgba(26, 58, 26, 0.72) !important;
  padding: 0.25rem 0.75rem 0.75rem !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

body.pk-portal-hrac .phonebook-table-desktop tbody tr {
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06) !important;
}

body.pk-portal-hrac .phonebook-table-desktop tbody td {
  padding: 0.85rem 0.9rem !important;
  border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

body.pk-portal-hrac .phonebook-table-desktop tbody td:first-child {
  border-left: 1px solid rgba(15, 23, 42, 0.06) !important;
  border-top-left-radius: 14px !important;
  border-bottom-left-radius: 14px !important;
}

body.pk-portal-hrac .phonebook-table-desktop tbody td:last-child {
  border-right: 1px solid rgba(15, 23, 42, 0.06) !important;
  border-top-right-radius: 14px !important;
  border-bottom-right-radius: 14px !important;
}

body.pk-portal-hrac .phonebook-btn-call,
body.pk-portal-hrac .phonebook-btn-email {
  padding: 0.55rem 0.9rem !important;
  font-weight: 700 !important;
}

body.pk-portal-hrac .phonebook-btn-call {
  background: rgba(143, 190, 99, 0.20) !important;
  color: #0f172a !important;
}

body.pk-portal-hrac .phonebook-btn-email {
  background: rgba(33, 150, 243, 0.12) !important;
  color: #0f172a !important;
}

/* --- Collapse toggle: modern checkbox button (Zabalit) --- */
body.pk-portal-hrac .section-collapse-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  gap: 0 !important;
  transform: none !important;
}

body.pk-portal-hrac .section-collapse-toggle .collapse-checkbox {
  display: none !important;
}

body.pk-portal-hrac .section-collapse-toggle .collapse-label {
  width: fit-content;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  padding: 2px 10px;
  background-color: rgba(2, 6, 23, 0.08);
  border-radius: 10px;
  color: rgba(15, 23, 42, 0.72);
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 300ms;
  transition-property: color, background-color, box-shadow, border-color;
  display: inline-flex;
  height: 34px;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  border: 0;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 2px 1px 0px inset, rgba(255, 255, 255, 0.30) 0px 1px 1px 0px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

body.pk-portal-hrac .section-collapse-toggle:hover .collapse-label {
  background-color: rgba(2, 6, 23, 0.12);
  color: rgba(15, 23, 42, 0.92);
  box-shadow: rgba(0, 0, 0, 0.18) 0px -4px 1px 0px inset, rgba(255, 255, 255, 0.22) 0px -1px 1px 0px,
    rgba(0, 0, 0, 0.10) 0px 2px 4px 1px;
}

body.pk-portal-hrac .section-collapse-toggle .collapse-checkbox:focus-visible + .collapse-label {
  outline: 2px solid rgba(47, 107, 31, 0.45);
  outline-offset: 2px;
}

body.pk-portal-hrac .section-collapse-toggle .collapse-checkbox:checked + .collapse-label {
  background-color: rgba(45, 103, 55, 0.95);
  color: #ffffff;
  border-color: transparent;
  box-shadow: rgba(0, 0, 0, 0.22) 0px -4px 1px 0px inset, rgba(255, 255, 255, 0.17) 0px -1px 1px 0px,
    rgba(0, 0, 0, 0.10) 0px 2px 4px 1px;
}

body.pk-portal-hrac .section-collapse-toggle .collapse-checkbox:checked + .collapse-label::after {
  content: "✓";
  margin-left: 8px;
  font-weight: 900;
}

body.pk-portal-hrac .section-collapse-toggle .collapse-checkbox:checked + .collapse-label:hover {
  background-color: rgba(52, 114, 63, 0.97);
}

/* PWA: malý banner na portálu (Přidat na plochu / Nová verze) */
.pwa-portal-install-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(47, 107, 31, 0.12);
  border-bottom: 1px solid rgba(47, 107, 31, 0.2);
  flex-wrap: wrap;
}
.pwa-portal-update-banner {
  background: rgba(47, 107, 31, 0.2);
  border-bottom-color: rgba(47, 107, 31, 0.35);
}
.pwa-portal-install-text {
  font-size: 0.9rem;
  color: #1a3a1a;
  font-weight: 500;
}
.pwa-portal-install-btn {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 107, 31, 0.4);
  background: rgba(47, 107, 31, 0.15);
  color: #1a3a1a;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.pwa-portal-install-btn:hover {
  background: rgba(47, 107, 31, 0.25);
}
.pwa-portal-install-close {
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}
.pwa-portal-install-close:hover {
  color: #1a3a1a;
  background: rgba(0,0,0,0.06);
}

/* Dobrovolné příspěvky - obsah uvnitř documents-wrapper (stejný styl jako ostatní sekce) */
.dobrovolne-info-box {
  background: rgba(248, 250, 252, 0.9);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid rgba(76, 175, 80, 0.4);
}
.dobrovolne-info-box h4 { margin-bottom: 0.5rem; color: #2d3748; font-size: 1rem; }
.dobrovolne-info-box p { margin: 0; font-size: 0.9rem; color: #4a5568; line-height: 1.5; }
.dobrovolne-form-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
}
.dobrovolne-form-card h3 { margin-bottom: 1rem; font-size: 1rem; color: #2d3748; }
.dobrovolne-form-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin-bottom: 1rem; }
.dobrovolne-form-card .form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.dobrovolne-form-card .form-field label { font-size: 0.9rem; font-weight: 600; color: #374151; }
.dobrovolne-form-card .form-field input { width: 120px; padding: 0.6rem; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
.dobrovolne-form-card .ucet-value { padding: 0.6rem; background: #f5f5f5; border-radius: 8px; font-family: monospace; font-size: 0.95rem; color: #555; }
.dobrovolne-checkbox-field { min-width: 220px; }
.dobrovolne-checkbox-label { display: flex !important; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: 500 !important; }
.dobrovolne-checkbox-label input { width: auto !important; min-width: auto !important; }
.dobrovolne-checkbox-hint { display: block; font-size: 0.8rem; color: #718096; margin-top: 0.2rem; font-weight: normal; }
.manual-payment-hint {
  background: rgba(248, 250, 252, 0.9);
  border-left: 4px solid rgba(76, 175, 80, 0.4);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: #4a5568;
}
.dobrovolne-bilance-card {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.08);
}
.dobrovolne-bilance-card.positive { background: rgba(248, 250, 252, 0.9); }
.dobrovolne-bilance-card.negative { background: rgba(254, 242, 242, 0.9); }
.dobrovolne-bilance-card .bilance-label { font-size: 0.85rem; color: #555; margin-bottom: 0.25rem; }
.dobrovolne-bilance-card .bilance-value { font-size: 1.5rem; font-weight: 700; }
.dobrovolne-bilance-card.positive .bilance-value { color: #2e7d32; }
.dobrovolne-bilance-card.negative .bilance-value { color: #c62828; }
.dobrovolne-bilance-card .bilance-detail { font-size: 0.8rem; color: #666; margin-top: 0.25rem; }
.dobrovolne-prehled-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .dobrovolne-prehled-grid { grid-template-columns: 1fr; } }
.dobrovolne-prehled-block {
  background: #fff; border-radius: 12px; padding: 1rem; box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.dobrovolne-prehled-block h4 { margin-bottom: 0.75rem; font-size: 0.95rem; color: #2d3748; }
.dobrovolne-prehled-block .empty-msg, .dobrovolne-prehled-block .celkem-msg { font-size: 0.9rem; color: #666; }
.prispevky-scroll-box {
  max-height: 220px; overflow-y: auto; padding-right: 0.5rem;
}
.prispevky-scroll-box::-webkit-scrollbar { width: 6px; }
.prispevky-scroll-box::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
.prispevky-scroll-box::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 3px; }
.prispevky-list { list-style: none; margin: 0; padding: 0; }
.prispevky-list li {
  display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid #eee; font-size: 0.9rem; gap: 0.5rem;
}
.prispevky-list li:last-child { border-bottom: none; }
.prispevek-datum { color: #666; min-width: 70px; }
.prispevek-hrac { flex: 1; font-weight: 500; color: #2d3748; }
.prispevek-castka { font-weight: 600; color: #2e7d32; }
.prispevky-list-moje li { justify-content: space-between; }

/* Ankety v portálu hráče */
.ankety-filter label { cursor: pointer; font-size: 0.95rem; }
.ankety-filter input { margin-right: 0.35rem; }
.ankety-list { display: flex; flex-direction: column; gap: 1.25rem; }
.ankety-item {
  background: #fff; border-radius: 12px; padding: 1.25rem; box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
}
.ankety-item-header { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.ankety-item-header h4 { margin: 0; font-size: 1.1rem; color: #2d3748; }
.ankety-badge { padding: 0.2rem 0.5rem; border-radius: 8px; font-size: 0.75rem; font-weight: 600; }
.ankety-badge.aktivni { background: #e8f5e9; color: #2e7d32; }
.ankety-badge.skoncena { background: #f5f5f5; color: #616161; }
.ankety-popis { font-size: 0.9rem; color: #4a5568; line-height: 1.5; margin-bottom: 0.5rem; }
.ankety-stats { font-size: 0.85rem; color: #718096; }
.ankety-vysledky { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.ankety-vysledek-badge {
  background: #f1f5f9; padding: 0.25rem 0.5rem; border-radius: 8px; font-size: 0.85rem; color: #475569;
}
.ankety-moznosti { display: flex; flex-direction: column; gap: 0.35rem; }
.ankety-option-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.95rem; }

/* Scout – analýza soupeře (PSMF), panel u ligového zápasu */
.match-opponent-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}
.match-opponent-block .match-opponent {
  flex: 1 1 auto;
  min-width: 0;
}
.portal-scout-wrap {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  overflow: visible;
}
.portal-scout-wrap:not([open]) > .portal-scout-layer {
  display: none !important;
}
.portal-scout-wrap[open] {
  z-index: 2147483000;
  isolation: isolate;
}
.portal-scout-layer {
  position: relative;
}
.portal-scout-trigger {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(47, 107, 31, 0.35);
  background: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.portal-scout-trigger::-webkit-details-marker {
  display: none;
}
.portal-scout-trigger:hover,
.portal-scout-wrap[open] .portal-scout-trigger {
  background: rgba(76, 175, 80, 0.22);
  border-color: rgba(47, 107, 31, 0.5);
  color: #1b5e20;
}
.portal-scout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}
.portal-scout-heading {
  margin: 0;
  padding: 0 1.75rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #2e7d32;
}
.portal-scout-panel-head {
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.portal-scout-sections {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
@media (min-width: 768px) {
  .portal-scout-sections--two-cols-desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.85rem;
    align-items: start;
  }
  .portal-scout-section--wide {
    grid-column: 1 / -1;
  }
}
.portal-scout-strelci-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.55;
}
.portal-scout-strelci-list li {
  padding: 0.15rem 0;
}
.portal-scout-strelci-goals {
  font-weight: 600;
  color: #4a5568;
}
.portal-scout-section {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #f7fafc;
  border: 1px solid #e8edf3;
}
.portal-scout-section-title {
  margin: 0 0 0.5rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}
.portal-scout-section-body {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.4;
}
.portal-scout-forma-block {
  margin: 0;
}
.portal-scout-forma-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.35rem;
}
.portal-scout-value--solo {
  color: #718096;
}
.portal-scout-forma-balance {
  margin: 0.5rem 0 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #4a5568;
  font-weight: 500;
}
.portal-scout-forma-balance strong {
  color: #2d3748;
  font-weight: 700;
}
.portal-scout-vrp-pill--z {
  border-color: rgba(100, 116, 139, 0.4);
  background: rgba(241, 245, 249, 0.95);
}
.portal-scout-vrp-pill--z .portal-scout-vrp-pill-n {
  color: #334155;
}
.portal-scout-vrp-pill--tbl {
  border-color: #cbd5e0;
  background: #f1f5f9;
}
.portal-scout-vrp-pill--tbl .portal-scout-vrp-pill-n {
  color: #2d3748;
}
.phonebook-search-row {
  padding: 0.75rem 1rem 1rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}
.phonebook-search-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.4rem;
}
.phonebook-search-input {
  width: 100%;
  max-width: 28rem;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  background: #fff;
  color: #2d3748;
}
.phonebook-search-input:focus {
  outline: 2px solid rgba(72, 187, 120, 0.45);
  outline-offset: 1px;
  border-color: #48bb78;
}
.portal-scout-panel-toolbar {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.portal-scout-panel-body {
  min-height: 0;
}
.portal-scout-panel {
  position: relative;
  z-index: 2;
  min-width: min(100%, 300px);
  max-width: min(360px, calc(100vw - 1.5rem));
  padding: 0.85rem 2.35rem 0.85rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 2px solid rgba(76, 175, 80, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: #2d3748;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.45;
}
@media (min-width: 641px) {
  .portal-scout-layer {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    left: auto;
    top: auto;
    z-index: 2147483001;
    width: max-content;
    max-width: min(640px, calc(100vw - 1rem));
  }
  .portal-scout-backdrop {
    display: none;
  }
  .portal-scout-panel-toolbar {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    z-index: 5;
    width: auto;
  }
  .portal-scout-panel {
    min-width: min(520px, calc(100vw - 2rem));
    max-width: min(640px, calc(100vw - 1.5rem));
  }
  .portal-scout-panel-body {
    padding: 0;
    overflow: visible;
    max-height: none;
  }
}
.portal-scout-close {
  position: static;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.portal-scout-close:hover {
  background: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
}
.portal-scout-close:focus-visible {
  outline: 2px solid rgba(143, 190, 99, 0.75);
  outline-offset: 2px;
}
.portal-scout-close svg {
  display: block;
}
.portal-scout-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.5rem;
  align-items: baseline;
}
.portal-scout-row:last-of-type {
  margin-bottom: 0;
}
.portal-scout-label {
  flex: 0 0 7.5rem;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.portal-scout-value {
  color: #2d3748;
  flex: 1 1 140px;
  min-width: 0;
}
.portal-scout-forma {
  display: inline-flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: flex-end;
}
button.portal-scout-forma-cell {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button.portal-scout-forma-cell:focus-visible {
  outline: 2px solid rgba(143, 190, 99, 0.8);
  outline-offset: 3px;
  border-radius: 10px;
}
.portal-scout-forma-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
}
.portal-scout-forma-opponent:empty {
  display: none;
}
.portal-scout-forma-opponent:not(:empty) {
  margin: 0.5rem 0 0 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: #edf2f7;
  border: 1px solid #cbd5e0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.35;
}
.portal-scout-forma-skore {
  font-size: 0.72rem;
  font-weight: 600;
  color: #4a5568;
  letter-spacing: 0.02em;
}
.portal-scout-forma-bit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.35rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  background: #e2e8f0;
  color: #4a5568;
  border: 1px solid #cbd5e0;
}
.portal-scout-forma-bit--v {
  background: rgba(76, 175, 80, 0.18);
  color: #1b5e20;
  border-color: rgba(76, 175, 80, 0.55);
}
.portal-scout-forma-bit--r {
  background: rgba(255, 152, 0, 0.2);
  color: #e65100;
  border-color: rgba(255, 152, 0, 0.55);
}
.portal-scout-forma-bit--p {
  background: rgba(244, 67, 54, 0.15);
  color: #c62828;
  border-color: rgba(244, 67, 54, 0.45);
}
.portal-scout-sezona-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}
.portal-scout-sezona-line {
  display: block;
  line-height: 1.45;
}
.portal-scout-forma-hint {
  margin: 0.45rem 0 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #718096;
  font-weight: 500;
}
.portal-scout-row--dresy {
  align-items: flex-start;
}
.portal-scout-dresy-ico {
  margin-right: 0.2rem;
}
.portal-scout-dresy-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  justify-content: flex-start;
  text-align: left;
  line-height: 1.35;
}
.portal-scout-dresy-pill {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #cbd5e0;
  background: #fff;
  color: #2d3748;
}
.portal-scout-dresy-pill--ours {
  border-color: rgba(76, 175, 80, 0.45);
  background: rgba(76, 175, 80, 0.1);
  color: #1b5e20;
}
.portal-scout-dresy-pill--opp {
  border-color: rgba(255, 152, 0, 0.45);
  background: rgba(255, 152, 0, 0.12);
  color: #e65100;
}
.portal-scout-row--sezona .portal-scout-label {
  align-self: flex-start;
}
.portal-scout-vrp {
  width: 100%;
  max-width: 100%;
}
.portal-scout-vrp-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: stretch;
  justify-content: flex-start;
}
.portal-scout-vrp-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-weight: 700;
  line-height: 1.15;
}
.portal-scout-vrp-pill-l {
  font-size: 0.72rem;
  opacity: 0.9;
  letter-spacing: 0.03em;
  color: #64748b;
}
.portal-scout-vrp-pill-n {
  font-size: 1.05rem;
  margin-top: 0.1rem;
  color: #2d3748;
}
.portal-scout-vrp-pill--v {
  border-color: rgba(76, 175, 80, 0.45);
  background: rgba(76, 175, 80, 0.1);
}
.portal-scout-vrp-pill--v .portal-scout-vrp-pill-n {
  color: #1b5e20;
}
.portal-scout-vrp-pill--r {
  border-color: rgba(255, 152, 0, 0.45);
  background: rgba(255, 152, 0, 0.12);
}
.portal-scout-vrp-pill--r .portal-scout-vrp-pill-n {
  color: #e65100;
}
.portal-scout-vrp-pill--p {
  border-color: rgba(244, 67, 54, 0.4);
  background: rgba(244, 67, 54, 0.08);
}
.portal-scout-vrp-pill--p .portal-scout-vrp-pill-n {
  color: #c62828;
}
.portal-scout-vrp-pill--b {
  border-color: rgba(255, 193, 7, 0.55);
  background: rgba(255, 193, 7, 0.12);
}
.portal-scout-vrp-pill--b .portal-scout-vrp-pill-n {
  color: #f57f17;
}
.portal-scout-vrp-note {
  margin: 0 0 0.45rem 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #718096;
  font-weight: 500;
}
.portal-scout-meta {
  font-size: 0.78rem;
  color: #718096;
  margin: 0 0 0.5rem 0;
  line-height: 1.45;
}
.portal-scout-meta time {
  font-weight: 600;
  color: #4a5568;
}
.portal-scout-url-line {
  margin: 0.5rem 0 0 0;
  font-size: 0.85rem;
}
.portal-scout-url {
  color: #2e7d32;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.portal-scout-url:hover {
  color: #1b5e20;
}
.portal-scout-source {
  margin: 0.65rem 0 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.72rem;
  color: #718096;
  line-height: 1.45;
}
.portal-scout-footer-meta {
  margin: 0.6rem 0 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.7rem;
  line-height: 1.4;
  color: #a0aec0;
  font-weight: 500;
}
.portal-scout-footer-meta time {
  font-weight: 600;
  color: #718096;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 640px) {
  .portal-scout-layer {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    box-sizing: border-box;
  }
  .portal-scout-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.48);
    -webkit-tap-highlight-color: transparent;
  }
  .portal-scout-panel {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    max-height: min(85vh, 620px);
    margin: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  }
  .portal-scout-panel-toolbar {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.45rem 0.55rem 0.35rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 14px 14px 0 0;
    z-index: 4;
  }
  .portal-scout-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 0.4rem 0.85rem 0.85rem 1rem;
  }
  .portal-scout-forma {
    gap: 0.35rem;
  }
  .portal-scout-vrp-items {
    justify-content: center;
  }
}
body.portal-scout-body-lock {
  overflow: hidden !important;
}
body.pk-portal-hrac .match-card .match-header,
body.pk-portal-hrac .match-opponent-block {
  overflow: visible;
}
body.pk-portal-hrac .portal-scout-trigger {
  border-color: rgba(47, 107, 31, 0.28) !important;
  background: rgba(76, 175, 80, 0.1) !important;
  color: rgba(26, 58, 26, 0.9) !important;
}
body.pk-portal-hrac .portal-scout-trigger:hover,
body.pk-portal-hrac .portal-scout-wrap[open] .portal-scout-trigger {
  background: rgba(143, 190, 99, 0.22) !important;
  border-color: rgba(47, 107, 31, 0.42) !important;
}

/* Statistika soutěže (skupina PSMF) – vlastní karta jako „Moje statistiky“, pod blokem nadcházejících zápasů */
.stats-wrapper.portal-skupina-soutez-wrapper {
  margin-bottom: 1.5rem;
}
.portal-skupina-soutez-season {
  font-weight: 600;
  font-size: 0.88em;
  color: #64748b;
}
.portal-skupina-inner {
  margin-top: 0.75rem;
  padding: 1rem 1rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.22);
}
body.pk-portal-hrac .portal-skupina-inner {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(76, 175, 80, 0.14);
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.07);
}
.portal-skupina-tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.portal-skupina-tab-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid rgba(43, 43, 43, 0.12);
  padding-bottom: 0.35rem;
}
.portal-skupina-tab-label {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  color: #2b2b2b;
  background: transparent;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.portal-skupina-tab-label:hover {
  background: rgba(251, 186, 0, 0.18);
  color: #2b2b2b;
}
body.pk-portal-hrac .portal-skupina-tab-label {
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 650;
  border-color: rgba(76, 175, 80, 0.22);
  background: rgba(255, 255, 255, 0.7);
}
body.pk-portal-hrac .portal-skupina-tab-label:hover {
  background: rgba(76, 175, 80, 0.12);
  color: #1b5e20;
}
#portal_sk_tab_strelci:checked ~ .portal-skupina-tab-labels label[for="portal_sk_tab_strelci"],
#portal_sk_tab_brankari:checked ~ .portal-skupina-tab-labels label[for="portal_sk_tab_brankari"],
#portal_sk_tab_utok:checked ~ .portal-skupina-tab-labels label[for="portal_sk_tab_utok"],
#portal_sk_tab_obrana:checked ~ .portal-skupina-tab-labels label[for="portal_sk_tab_obrana"] {
  border-color: #2b2b2b;
  background: #fbba00;
  color: #2b2b2b;
}
body.pk-portal-hrac #portal_sk_tab_strelci:checked ~ .portal-skupina-tab-labels label[for="portal_sk_tab_strelci"],
body.pk-portal-hrac #portal_sk_tab_brankari:checked ~ .portal-skupina-tab-labels label[for="portal_sk_tab_brankari"],
body.pk-portal-hrac #portal_sk_tab_utok:checked ~ .portal-skupina-tab-labels label[for="portal_sk_tab_utok"],
body.pk-portal-hrac #portal_sk_tab_obrana:checked ~ .portal-skupina-tab-labels label[for="portal_sk_tab_obrana"] {
  border-color: #2e7d32;
  background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.28);
}
.portal-skupina-inner .portal-skupina-panel {
  display: none;
}
#portal_sk_tab_strelci:checked ~ .portal-skupina-panel--strelci,
#portal_sk_tab_brankari:checked ~ .portal-skupina-panel--brankari,
#portal_sk_tab_utok:checked ~ .portal-skupina-panel--utok,
#portal_sk_tab_obrana:checked ~ .portal-skupina-panel--obrana {
  display: block;
}
.portal-skupina-inner--single .portal-skupina-panel {
  display: block !important;
}
.portal-skupina-list-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body.pk-portal-hrac .portal-skupina-list-wrap {
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(76, 175, 80, 0.14);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
  overflow-x: auto;
  overflow-y: visible;
}
body.pk-portal-hrac .portal-skupina-list-wrap::-webkit-scrollbar {
  height: 8px;
}
body.pk-portal-hrac .portal-skupina-list-wrap::-webkit-scrollbar-thumb {
  background: rgba(76, 175, 80, 0.35);
  border-radius: 8px;
}
.portal-skupina-psmf-list {
  --sk-cols: 4;
  min-width: min(100%, 18rem);
  font-size: 0.9rem;
  line-height: 1.35;
  color: #2b2b2b;
}
body.pk-portal-hrac .portal-skupina-psmf-list {
  min-width: max(100%, 280px);
  font-size: 0.93rem;
  line-height: 1.45;
}
.portal-skupina-list-header,
.portal-skupina-list-row {
  display: grid;
  grid-template-columns: repeat(var(--sk-cols, 4), minmax(0, 1fr));
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  padding: 0.45rem 0.2rem;
  border-bottom: 1px solid rgba(43, 43, 43, 0.12);
}
body.pk-portal-hrac .portal-skupina-list-header,
body.pk-portal-hrac .portal-skupina-list-row {
  gap: 0.5rem 0.85rem;
  align-items: center;
  padding: 0.65rem 1rem;
}
body.pk-portal-hrac .portal-skupina-list-table > .portal-skupina-list-header,
body.pk-portal-hrac .portal-skupina-list-table > .portal-skupina-list-row {
  grid-template-columns: var(--sk-grid-tpl, repeat(var(--sk-cols, 4), minmax(0, 1fr)));
  column-gap: 2px;
  row-gap: 0.35rem;
}
.portal-skupina-list-header {
  font-weight: 700;
  color: #2b2b2b;
  border-bottom-color: rgba(43, 43, 43, 0.2);
  white-space: nowrap;
}
body.pk-portal-hrac .portal-skupina-list-header {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  border-bottom: none;
  padding: 0.78rem 1rem;
}
body.pk-portal-hrac .portal-skupina-list-hcell {
  font-weight: 700;
}
body.pk-portal-hrac .portal-skupina-list-hcell--num,
body.pk-portal-hrac .portal-skupina-list-cell--num {
  width: 32px;
  max-width: 32px;
  min-width: 32px;
  box-sizing: border-box;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding: 8px 2px;
}
body.pk-portal-hrac .portal-skupina-list-hcell--num-wide,
body.pk-portal-hrac .portal-skupina-list-cell--num-wide {
  width: 40px;
  max-width: 40px;
  min-width: 40px;
  box-sizing: border-box;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding: 8px 2px;
}
body.pk-portal-hrac .portal-skupina-list-hcell--num,
body.pk-portal-hrac .portal-skupina-list-hcell--num-wide {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.58rem;
  line-height: 1.15;
}
body.pk-portal-hrac .portal-skupina-list-hcell--num-wide {
  font-size: 0.64rem;
}
body.pk-portal-hrac .portal-skupina-list-hcell--text,
body.pk-portal-hrac .portal-skupina-list-cell--text {
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.pk-portal-hrac .portal-skupina-list-cell--text {
  display: block;
}
.portal-skupina-list-hcell:first-child,
.portal-skupina-list-cell:first-child {
  text-align: center;
}
.portal-skupina-list-hcell:last-child,
.portal-skupina-list-cell:last-child {
  text-align: center;
}
body.pk-portal-hrac .portal-skupina-list-table .portal-skupina-list-hcell--text:first-child,
body.pk-portal-hrac .portal-skupina-list-table .portal-skupina-list-cell--text:first-child {
  text-align: left;
}
body.pk-portal-hrac .portal-skupina-list-table .portal-skupina-list-hcell--num:first-child,
body.pk-portal-hrac .portal-skupina-list-table .portal-skupina-list-cell--num:first-child,
body.pk-portal-hrac .portal-skupina-list-table .portal-skupina-list-hcell--num:last-child,
body.pk-portal-hrac .portal-skupina-list-table .portal-skupina-list-cell--num:last-child,
body.pk-portal-hrac .portal-skupina-list-table .portal-skupina-list-hcell--num-wide:first-child,
body.pk-portal-hrac .portal-skupina-list-table .portal-skupina-list-cell--num-wide:first-child,
body.pk-portal-hrac .portal-skupina-list-table .portal-skupina-list-hcell--num-wide:last-child,
body.pk-portal-hrac .portal-skupina-list-table .portal-skupina-list-cell--num-wide:last-child {
  text-align: center;
}
.portal-skupina-list-cell {
  color: #2b2b2b;
  word-break: break-word;
}
body.pk-portal-hrac .portal-skupina-list-table .portal-skupina-list-cell--text {
  word-break: normal;
  overflow-wrap: normal;
}
body.pk-portal-hrac .portal-skupina-list-row:nth-child(even):not(.portal-skupina-list-row--my-team) {
  background: rgba(0, 0, 0, 0.02);
}
.portal-skupina-list-row--my-team {
  background: rgba(220, 252, 231, 0.55);
  font-weight: 600;
  color: #14532d;
  margin: 0 -0.35rem;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  border-radius: 4px;
  border-bottom-color: transparent;
}
body.pk-portal-hrac .portal-skupina-list-row--my-team {
  background: linear-gradient(90deg, rgba(76, 175, 80, 0.22) 0%, rgba(129, 199, 132, 0.14) 48%, rgba(255, 255, 255, 0) 100%);
  color: #1b5e20;
  font-weight: 700;
  margin: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 0;
  box-shadow: inset 3px 0 0 #4caf50;
}
.portal-skupina-list-row--my-team .portal-skupina-list-cell {
  color: #14532d;
}
body.pk-portal-hrac .portal-skupina-list-row--my-team .portal-skupina-list-cell {
  color: #1b5e20;
}
.portal-skupina-meta {
  margin: 0.75rem 0 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

/* Statistika soutěže – kompaktní tabulka (mobil, třídy z portal-hrac.php) */
@media (max-width: 768px) {
  body.pk-portal-hrac .portal-skupina-list-table.portal-skupina-psmf-list {
    font-size: 0.8rem;
    line-height: 1.35;
  }
  body.pk-portal-hrac .portal-skupina-list-table > .portal-skupina-list-header,
  body.pk-portal-hrac .portal-skupina-list-table > .portal-skupina-list-row {
    padding: 8px 4px;
    column-gap: 2px !important;
    row-gap: 4px;
    font-size: 0.8rem;
  }
  body.pk-portal-hrac .portal-skupina-list-table > .portal-skupina-list-header {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 8px 4px;
  }
  body.pk-portal-hrac .portal-skupina-list-table .portal-skupina-list-hcell--num,
  body.pk-portal-hrac .portal-skupina-list-table .portal-skupina-list-cell--num {
    width: 32px !important;
    max-width: 32px !important;
    min-width: 32px !important;
    padding: 8px 2px !important;
    box-sizing: border-box !important;
  }
  body.pk-portal-hrac .portal-skupina-list-table .portal-skupina-list-hcell--num-wide,
  body.pk-portal-hrac .portal-skupina-list-table .portal-skupina-list-cell--num-wide {
    width: 40px !important;
    max-width: 40px !important;
    min-width: 40px !important;
    padding: 8px 2px !important;
    box-sizing: border-box !important;
  }
  body.pk-portal-hrac .portal-skupina-list-table .portal-skupina-list-cell--text {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body.pk-portal-hrac .portal-skupina-list-table .portal-skupina-list-hcell--text {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body.pk-portal-hrac .portal-skupina-list-table .portal-skupina-list-row--my-team {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 640px) {
  .portal-skupina-tab-labels {
    gap: 0.25rem;
  }
  .portal-skupina-tab-label {
    padding: 0.35rem 0.55rem;
    font-size: 0.82rem;
  }
}
