/* === Import fontu Poppins === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* === Globalne style === */
body {
  font-family: 'Poppins', 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0b1d3a, #3a1c71, #d76d77, #ffaf7b);
  background-size: 400% 400%;
  margin: 0;
  padding: 20px 15px 0 15px;
  color: #ffffff;
  min-height: 100vh;
  flex-direction: column;
  box-sizing: border-box;
  transition: all 0.5s ease;
  font-size: 16px;
  animation: fadeInBody 1s ease-in-out, gradientBG 15s ease infinite;
}

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

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

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

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

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes ripple {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

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

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { transform: translateY(20px); opacity: 0; }
}

@keyframes badgePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 75, 92, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(255, 75, 92, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 75, 92, 0); }
}

@keyframes dropdownFadeIn {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}

h2 {
  text-align: center;
  color: #ffffff;
  margin-bottom: 25px;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  animation: fadeInUp 0.8s ease-out, pulse 3s ease infinite;
}

p {
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: #e6e6e6;
  animation: fadeIn 1s ease forwards;
}

a {
  color: #66b2ff;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(102, 178, 255, 0.6);
}

/* === NOWY STYL HEADERA I NAVIGACJI (spójny z kartami polityki) === */

/* Główny nagłówek – pełne wyśrodkowanie */
header {
    background: rgba(14, 37, 74, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    margin: 0 auto;
    max-width: 1500px;
    padding: 20px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(102, 178, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: fadeInUp 0.6s ease-out;
    box-sizing: border-box;
}


header:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(102, 178, 255, 0.5);
    background: rgba(14, 37, 74, 0.85);
}

/* Logo */
header img {
    max-width: 360px;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.02);
}

/* Nawigacja – domyślnie flex w poziomie */
nav {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    border-radius: 0;
    animation: fadeIn 0.8s ease forwards;
}

/* Linki w nawigacji – styl przycisków */
nav a {
    background: rgba(30, 144, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 12px 22px;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(102, 178, 255, 0.3);
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: inline-block;
    white-space: nowrap;
}

/* Efekt shine */
nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

nav a:hover::before {
    left: 100%;
}

nav a:hover {
    background: rgba(30, 144, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.3);
    border-color: rgba(102, 178, 255, 0.7);
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

nav a:active {
    transform: translateY(0);
}

nav a::after {
    display: none;
}

/* Aktywny link (opcjonalnie) */
nav a.active {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.5), rgba(0, 102, 204, 0.5));
    border-color: #1e90ff;
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4);
}

main {
  padding: 1rem 15px 3rem 15px;
  max-width: 1500px;
  margin: 0 auto;
  animation: fadeIn 1s ease forwards;
  font-family: 'Poppins', sans-serif;
}

footer {
  background: rgba(0, 26, 51, 0.85);
  backdrop-filter: blur(12px);
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: 4rem;
  font-weight: 500;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
  user-select: none;
  letter-spacing: 0.03em;
  animation: fadeInUp 0.8s ease-out;
  font-size: 1rem;
  border-top: 1px solid rgba(102, 178, 255, 0.2);
  border-radius: 30px 30px 0 0;
  transition: all 0.3s ease;
}

footer:hover {
  background: rgba(0, 26, 51, 0.92);
  border-top-color: rgba(102, 178, 255, 0.5);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

footer img {
  max-width: 260px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

footer img:hover {
  transform: scale(1.02);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 0.5rem 0;
}

.footer-links a {
  color: #99c2ff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 5px 0;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #66b2ff, #99c2ff);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(102, 178, 255, 0.5);
  transform: translateY(-2px);
}

.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 400;
}

/* === Dropdown (Formularze) === */
.dropdown {
  position: relative;
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  animation: fadeIn 1.1s ease forwards;
}

.dropbtn {
  background-color: rgba(0, 26, 51, 0.8);
  color: #4d94ff;
  border: none;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,26,51,0.3);
  font-family: 'Poppins', sans-serif;
  transform: translateY(0);
  white-space: nowrap;
  backdrop-filter: blur(5px);
}

.dropbtn:hover,
.dropbtn:focus {
  background-color: rgba(0, 51, 102, 0.9);
  color: #e6f0ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,51,102,0.4);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(230, 240, 255, 0.95);
  min-width: 200px;
  box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  z-index: 1500;
  animation: dropdownFadeIn 0.4s ease forwards;
  backdrop-filter: blur(10px);
}

.dropdown-content a {
  color: #001a33;
  padding: 12px 18px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown-content a:hover,
.dropdown-content a:focus {
  background-color: rgba(0, 26, 51, 0.9);
  color: #99c2ff;
  padding-left: 22px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: rgba(0, 51, 102, 0.9);
  color: #e6f0ff;
}

/* === Baner cookies === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, rgba(0, 51, 102, 0.95), rgba(0, 26, 51, 0.95));
  color: #e6f0ff;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  font-size: 14px;
  box-shadow: 0 -5px 25px rgba(0, 26, 51, 0.8);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  user-select: none;
  gap: 10px;
  animation: slideUp 0.5s ease-in-out;
  backdrop-filter: blur(10px);
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
  display: flex;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  display: none;
}

.cookie-banner p {
  color: white;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
  flex: 1 1 60%;
  min-width: 220px;
}

.cookie-banner a {
  color: #99c2ff;
  text-decoration: underline;
  margin-left: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cookie-banner a:hover {
  color: #cce0ff;
  text-shadow: 0 0 5px rgba(204, 224, 255, 0.5);
}

.cookie-banner button {
  background-color: #99c2ff;
  color: #001a33;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(153,194,255,0.6);
  transition: all 0.3s ease;
  flex: 1 1 30%;
  min-width: 100px;
  max-width: 140px;
}

.cookie-banner button:hover {
  background-color: #cce0ff;
  transform: scale(1.1);
  box-shadow: 0 7px 20px rgba(153,194,255,0.8);
}

/* === Sekcja: Zawodnicy / Profil === */
input {
  display: block;
  margin: 0 auto 20px auto;
  padding: 14px 18px;
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  border: 1.8px solid #003366;
  box-shadow: 0 3px 15px rgba(0,51,102,0.2);
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  animation: fadeIn 1.2s ease forwards;
  box-sizing: border-box;
  background-color: rgba(255,255,255,0.9);
  color: #0b1d3a;
}

input:focus {
  outline: none;
  border-color: #001a33;
  box-shadow: 0 0 12px rgba(0, 26, 51, 0.6);
  transform: scale(1.02);
}

.profil {
  max-width: 500px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 25px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
  backdrop-filter: blur(12px);
}

.profil:hover {
  box-shadow: 0 12px 40px rgba(0, 51, 102, 0.3);
  transform: translateY(-5px) scale(1.01);
}

.profil h3 {
  margin-top: 0;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.6rem;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0,0,0,0.2);
  animation: pulse 3s ease infinite;
}

.info {
  margin: 15px 0;
  font-size: 1rem;
  color: #e6e6e6;
  text-align: center;
  line-height: 1.6;
}

.brak {
  text-align: center;
  color: #999;
  margin-top: 40px;
  font-style: italic;
  font-size: 1rem;
}

/* === Sekcja: Ranking / Tabela === */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  animation: fadeIn 1.1s ease forwards;
  word-break: break-word;
  backdrop-filter: blur(12px);
}

table:hover {
  box-shadow: 0 15px 45px rgba(0, 51, 102, 0.25);
  transform: translateY(-3px);
}

thead {
  background: linear-gradient(90deg, rgba(0, 51, 102, 0.9), rgba(0, 26, 51, 0.9));
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

th, td {
  padding: 12px 15px;
  text-align: center;
  border-right: 1px solid rgba(230, 240, 255, 0.1);
  color: #ffffff;
  transition: all 0.3s ease;
}

th:last-child,
td:last-child {
  border-right: none;
}

tbody tr {
  transition: all 0.25s ease;
  cursor: default;
}

tbody tr:hover {
  background-color: rgba(230, 240, 255, 0.15);
  transform: scale(1.01);
  box-shadow: 0 0 15px rgba(230, 240, 255, 0.1);
}

.gold {
  background-color: rgba(255, 215, 0, 0.15);
  font-weight: 700;
}

.silver {
  background-color: rgba(192, 192, 192, 0.15);
  font-weight: 700;
}

.bronze {
  background-color: rgba(205, 127, 50, 0.15);
  font-weight: 700;
}

#aktualizacja {
  margin-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
  font-style: italic;
}

/* === Styl strony z formularzem === */
.form-container {
  display: flex;
  justify-content: center;
  padding: 30px 20px;
  min-height: 900px;
  background: rgba(230, 240, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 6px 30px rgba(0, 51, 102, 0.2);
  animation: fadeIn 1.1s ease forwards;
  backdrop-filter: blur(12px);
  max-width: 400px;
  margin: 80px auto;
  transition: all 0.3s ease;
}

.form-container:hover {
  box-shadow: 0 8px 35px rgba(0, 51, 102, 0.3);
}

.form-container iframe {
  border-radius: 20px;
  border: none;
  width: 100%;
  max-width: 820px;
  height: 2000px;
  box-shadow: 0 5px 25px rgba(0, 51, 102, 0.2);
  transition: all 0.3s ease;
}

.form-container iframe:hover {
  box-shadow: 0 8px 35px rgba(0, 51, 102, 0.3);
}

/* === Formularze: logowanie i rejestracja === */
.auth-form {
  background: rgba(14, 37, 74, 0.85);
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  max-width: 500px;
  margin: 40px auto;
  animation: fadeInUp 0.9s ease-out;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.auth-form:hover {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

.auth-form h2 {
  margin-top: 0;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
}

.auth-form input {
  margin-bottom: 20px;
}

.auth-form button {
  background: linear-gradient(135deg, #1e90ff, #0066cc);
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 5px 25px rgba(0, 51, 102, 0.3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.auth-form button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(30deg);
  transition: all 0.3s ease;
}

.auth-form button:hover {
  background: linear-gradient(135deg, #1475cc, #0055aa);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 51, 102, 0.4);
}

.auth-form button:hover::after {
  left: 100%;
}

.auth-form p.error {
  color: #ff6b6b;
  font-weight: 500;
  text-align: center;
  margin-bottom: 15px;
  animation: shake 0.5s ease;
}

.auth-form p.success {
  color: #4caf50;
  font-weight: 500;
  text-align: center;
  margin-bottom: 15px;
  animation: pulse 2s ease infinite;
}

.auth-form a {
  color: #66b2ff;
  text-decoration: underline;
  font-weight: 500;
  display: block;
  text-align: center;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.auth-form a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(102, 178, 255, 0.6);
}

/* === Przyciski === */
.logout-button {
  background: linear-gradient(135deg, #ff4b5c, #cc3a4a);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(255, 75, 92, 0.3);
}

.logout-button:hover {
  background: linear-gradient(135deg, #cc3a4a, #aa2a38);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 75, 92, 0.4);
}

/* === Modal === */
.modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(11, 29, 58, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s ease-in-out;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(16, 41, 74, 0.95);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  animation: fadeIn 0.5s ease-in-out, pulse 3s ease infinite;
  width: 90%;
  max-width: 450px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.modal-content:hover {
  box-shadow: 0 10px 35px rgba(0,0,0,0.4);
}

/* === Stylizacja formularza logowania === */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  min-height: 100vh;
  animation: fadeIn 1.1s ease forwards;
}

.glass-box {
  background: rgba(14, 37, 74, 0.85);
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 500px;
  animation: fadeInUp 0.9s ease-out;
  backdrop-filter: blur(12px);
  font-family: 'Poppins', sans-serif;
  text-align: center;
  transition: all 0.3s ease;
}

.glass-box:hover {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

.glass-box h2 {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  animation: pulse 3s ease infinite;
}

.glass-box input {
  display: block;
  margin: 0 auto 20px auto;
  padding: 14px 18px;
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  border: 1.8px solid #003366;
  box-shadow: 0 3px 15px rgba(0,51,102,0.2);
  transition: all 0.3s ease;
  background-color: rgba(255,255,255,0.9);
  color: #0b1d3a;
}

.glass-box input:focus {
  outline: none;
  border-color: #001a33;
  box-shadow: 0 0 15px rgba(0, 26, 51, 0.6);
  transform: scale(1.02);
}

.glass-box button {
  background: linear-gradient(135deg, #1e90ff, #0066cc);
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
  max-width: 400px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 25px rgba(0, 51, 102, 0.3);
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.glass-box button:hover {
  background: linear-gradient(135deg, #1475cc, #0055aa);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 51, 102, 0.4);
}

.glass-box a {
  font-weight: 500;
  display: block;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.glass-box a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(102, 178, 255, 0.6);
}

.user-panel {
    background: rgba(0, 51, 102, 0.85);
    backdrop-filter: blur(12px);
    padding: 6px 28px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 20px;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
    border-radius: 20px;
    border: 1px solid rgba(102, 178, 255, 0.25);
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease;
}


.user-panel:hover {
    background: rgba(0, 51, 102, 0.92);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(102, 178, 255, 0.5);
}

.welcome-message {
    font-weight: 600;
    font-size: 1.2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    background: rgba(0, 26, 51, 0.4);
    padding: 8px 18px;
    border-radius: 40px;
    backdrop-filter: blur(4px);
    text-align: left;
}

@media (max-width: 1130px) {
    .user-panel { 
        grid-template-columns: 1fr;
        align-items: center;
    }

    .welcome-message {
        grid-template-columns: 1fr;
        text-align: center !important;
    }
}

@media (min-width: 1131px) {
    .welcome-message {
        justify-self: start;
    }
}

/* Przycisk zaproszeń */
.invitation-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.9), rgba(0, 119, 182, 0.9));
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.invitation-link:hover {
    background: linear-gradient(135deg, rgba(25, 130, 230, 0.95), rgba(0, 100, 165, 0.95));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Przycisk wylogowania */
.logout-button {
    background: linear-gradient(135deg, #ff4b5c, #cc3a4a);
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 75, 92, 0.3);
    display: inline-block;
    white-space: nowrap;
    text-align: left;
}

.logout-button:hover {
    background: linear-gradient(135deg, #cc3a4a, #aa2a38);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 75, 92, 0.4);
}

/* === Panel gościa – przyciski obok siebie === */
.guest-panel {
    background: rgba(0, 51, 102, 0.85);
    backdrop-filter: blur(12px);
    padding: 18px 28px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
    border-radius: 20px;
    border: 1px solid rgba(102, 178, 255, 0.25);
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease;
    flex-wrap: wrap;
}

@media (max-width: 800px) {
    .guest-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .login-button {
        justify-content: center;
        width: 100%;
    }
    
    .register-button {
        justify-content: center;
        width: 100%;
    }
}

.guest-panel:hover {
    background: rgba(0, 51, 102, 0.92);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(102, 178, 255, 0.5);
}

.guest-panel span {
    color: #99c2ff;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 5px;
}

/* === WSPÓLNY KSZTAŁT DLA WSZYSTKICH PRZYCISKÓW === */
.invitation-link,
.logout-button,
.login-button,
.register-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Indywidualne kolory */
.invitation-link,
.login-button {
    background: linear-gradient(135deg, #1e90ff, #0066cc);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.3);
}

.invitation-link:hover,
.login-button:hover {
    background: linear-gradient(135deg, #1475cc, #0055aa);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.logout-button {
    background: linear-gradient(135deg, #ff4b5c, #cc3a4a);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 75, 92, 0.3);
    border: none; /* aby nie było podwójnej ramki */
}

.logout-button:hover {
    background: linear-gradient(135deg, #cc3a4a, #aa2a38);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 75, 92, 0.4);
}

.register-button {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.register-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Specjalne pozycjonowanie dla odznaki przycisku zaproszeń */
.invitation-link {
    position: relative;
}

.notification-badge {
  /* Unified badge style */
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: #ff4b5c;
  color: white;
  border-radius: 50%;
  border: 2px solid rgba(14, 37, 74, 0.9);
  box-shadow: 0 2px 8px rgba(255, 75, 92, 0.6);
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center; /* centers the digit both horizontally and vertically */
  text-align: center;
  line-height: 22px; /* align digit vertically */
  transition: all 0.3s ease;
}

.user-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

@media (max-width: 1130px) {
    .user-actions {
        justify-content: center;
    }
}

.profile-link {
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.profile-link {
    background: rgba(255,255,255,0.15);
    color: white;
}

.profile-link:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.forgot-password {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    margin-top: -15px;
    margin-bottom: 15px;
    color: #66b2ff;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(102, 178, 255, 0.5);
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #1e90ff;
  animation: spin 1s ease-in-out infinite;
  margin: 20px auto;
}

/* Floating animation for elements */
.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Button click effect */
.btn-click-effect:active {
  transform: scale(0.95) !important;
}

/* Ripple effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

.search-container {
  max-width: 800px;
  margin: 0 auto 30px;
  position: relative;
}

#search-input {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1rem;
  border-radius: 12px;
  border: 2px solid #003366;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 5px 20px rgba(0,51,102,0.2);
  transition: all 0.3s ease;
}

#search-input:focus {
  outline: none;
  border-color: #1e90ff;
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.4);
}

#search-results {
  position: absolute;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(14, 37, 74, 0.95);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 100;
  display: none;
  backdrop-filter: blur(10px);
}

.search-suggestion {
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.search-suggestion:hover {
  background: rgba(30, 144, 255, 0.2);
}

.profile-container {
  max-width: 600px;
  margin: 30px auto;
  background: rgba(14, 37, 74, 0.85);
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  animation: fadeIn 0.5s ease-out;
  backdrop-filter: blur(10px);
}

.profile-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.profile-header h3 {
  margin: 0 0 5px 0;
  font-size: 1.8rem;
  color: #ffffff;
}

.player-id {
  font-size: 1rem;
  color: #66b2ff;
}

.profile-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  background: rgba(0, 51, 102, 0.4);
  border-radius: 8px;
}

.detail-label {
  font-weight: 600;
  color: #99c2ff;
}

.detail-value {
  font-weight: 500;
  color: #ffffff;
}

.no-results {
  text-align: center;
  padding: 30px;
  color: #ff6b6b;
  font-size: 1.1rem;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
}

/* === Style dla systemu wyzwań === */
.match-container {
  max-width: 800px;
  margin: 30px auto;
  background: rgba(14, 37, 74, 0.85);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  animation: fadeIn 0.5s ease-out;
  backdrop-filter: blur(10px);
}

.match-info {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.match-info p {
  font-size: 1.1rem;
  margin: 10px 0;
}

.scrambles-container {
  text-align: center;
  margin-bottom: 30px;
}

.scramble-display {
  font-family: monospace;
  font-size: 1.2rem;
  background: rgba(0,0,0,0.3);
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  word-break: break-word;
}

.timer-container {
  text-align: center;
  margin-bottom: 30px;
}

.timer-display {
  font-family: monospace;
  font-size: 3rem;
  margin: 20px 0;
  color: #66b2ff;
}

.timer-btn {
  background: linear-gradient(135deg, #1e90ff, #0066cc);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,51,102,0.3);
}

.timer-btn:hover {
  background: linear-gradient(135deg, #1475cc, #0055aa);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,51,102,0.4);
}

.times-container {
  margin-top: 30px;
}

.times-container table {
  width: 100%;
  margin-top: 15px;
}

.times-container th {
  text-align: center;
}

.times-container td {
  padding: 10px;
  text-align: center;
}

.no-match {
  text-align: center;
  padding: 50px;
  font-size: 1.2rem;
}

.no-match a {
  color: #66b2ff;
  text-decoration: underline;
}

.no-match a:hover {
  color: #ffffff;
}

/* Dodatkowe style dla nowych elementów */
.waiting-container {
  max-width: 600px;
  margin: 30px auto;
  text-align: center;
  padding: 30px;
  background: rgba(14, 37, 74, 0.85);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
}

.waiting-container h2 {
  margin-bottom: 20px;
}

.match-info {
  margin-bottom: 30px;
  text-align: left;
  padding: 20px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

.match-info p {
  margin: 10px 0;
}

.cancel-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #ff4b5c;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cancel-btn:hover {
  background: #cc3a4a;
  transform: translateY(-2px);
}

.invitation-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 30px;
  background: rgba(14, 37, 74, 0.85);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.accept-btn, .reject-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accept-btn {
  background: #4caf50;
  color: white;
}

.reject-btn {
  background: #ff4b5c;
  color: white;
}

.accept-btn:hover {
  background: #3e8e41;
  transform: translateY(-2px);
}

.reject-btn:hover {
  background: #cc3a4a;
  transform: translateY(-2px);
}

.scramble-group {
  display: none;
}

.scramble-group.active {
  display: block;
}

.scramble-number {
  font-weight: bold;
  margin-bottom: 10px;
}

.time-input {
  margin: 20px 0;
}

.time-input input {
  padding: 10px;
  font-size: 1rem;
  width: 150px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #003366;
}

.scramble-navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.scramble-navigation button {
  padding: 10px 20px;
  background: #1e90ff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.scramble-navigation button:disabled {
  background: #666;
  cursor: not-allowed;
}

.submit-container {
  text-align: center;
  margin-top: 30px;
}

.submit-btn {
  padding: 12px 30px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #3e8e41;
  transform: translateY(-2px);
}


.floating-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1e90ff;
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

/* Wrapper do centrowania */
.invitation-btn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Nowoczesny przycisk zaproszeń */
.invitation-btn {
    background: linear-gradient(135deg, #1e90ff, #0077b6);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 160px;

    position: relative;
    overflow: hidden;
    isolation: isolate;

    box-shadow:
        0 8px 30px rgba(30, 144, 255, 0.35),
        inset 0 0 0 1px rgba(255,255,255,0.15);

    transition: 
        transform 0.35s cubic-bezier(.25,.8,.25,1),
        box-shadow 0.35s ease;

}

/* Shine */
.invitation-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(255,255,255,0.35),
        transparent 80%
    );
    transform: translateX(-120%);
    transition: transform 0.8s ease;
    z-index: -1;
}

/* Ripple */
.invitation-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

/* Hover */
.invitation-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 14px 40px rgba(30, 144, 255, 0.5),
        inset 0 0 0 1px rgba(255,255,255,0.2);
}

.invitation-btn:hover::before {
    transform: translateX(120%);
}

/* Active */
.invitation-btn:active {
    transform: scale(0.97);
}

.invitation-btn:active::after {
    animation: ripple 0.6s ease-out;
}

/* Animacje */
@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(18);
        opacity: 0;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow:
            0 8px 30px rgba(30, 144, 255, 0.35),
            inset 0 0 0 1px rgba(255,255,255,0.15);
    }
    50% {
        box-shadow:
            0 10px 38px rgba(30, 144, 255, 0.55),
            inset 0 0 0 1px rgba(255,255,255,0.25);
    }
}


.invitation-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.invitation-btn:hover .invitation-icon {
    transform: translateX(2px) rotate(-10deg);
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff4b5c;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 75, 92, 0.5);
    border: 2px solid rgba(14, 37, 74, 0.9);
    transition: all 0.3s ease;
    z-index: 2;
}

.invitation-btn:hover .notification-badge {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 3px 12px rgba(255, 75, 92, 0.6);
}

.notification-badge.pulse {
    animation: pulse 2s infinite;
}

/* Enhanced notification styles */
.floating-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff4b5c, #cc3a4a);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(255, 75, 92, 0.4);
    cursor: pointer;
    z-index: 9999;
    animation: slideIn 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    transform-origin: bottom right;
    max-width: 350px;
    border-left: 5px solid #fff;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-icon {
    font-size: 1.8rem;
}

.notification-text {
    font-weight: 500;
    line-height: 1.4;
}

.floating-notification.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

.pulse-alert {
    animation: pulse 1.5s infinite;
}

/* Style dla systemu wyzwań */
.match-form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(14, 37, 74, 0.85);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    animation: fadeIn 0.5s ease-out;
    backdrop-filter: blur(10px);
}

.matches-container {
    max-width: 1000px;
    margin: 30px auto;
    background: rgba(14, 37, 74, 0.85);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    animation: fadeIn 0.5s ease-out;
    backdrop-filter: blur(10px);
}

.matches-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tab-button {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: #66b2ff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-button:hover {
    color: #ffffff;
}

.tab-button.active {
    color: #ffffff;
    border-bottom: 2px solid #66b2ff;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.challenge-card, .match-card {
    background: rgba(0, 51, 102, 0.4);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.challenge-card:hover, .match-card:hover {
    background: rgba(0, 51, 102, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,51,102,0.3);
}

.challenge-info, .match-info {
    flex: 1;
}

.challenge-actions, .match-actions {
    display: flex;
    gap: 10px;
}

.play-btn {
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.play-btn {
    background: #1e90ff;
    color: white;
}

.play-btn:hover {
    background: #1475cc;
    transform: translateY(-2px);
}

/* === Poprawki dla wyboru konkurencji kostki === */
.cube-type-selector {
    margin: 25px 0;
    text-align: center;
}

.cube-type-selector h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.2rem;
}

.cube-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); /* Zwiększone */
    gap: 15px;
    margin-top: 15px;
    max-width: 650px; /* Zwiększone */
    margin-left: auto;
    margin-right: auto;
}

.cube-type-option {
    position: relative;
    cursor: pointer;
}

/* UKRYCIE DOMYŚLNEGO INPUT RADIO */
.cube-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    pointer-events: none;
}

.cube-type-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background: rgba(0, 51, 102, 0.4);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    position: relative;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
    gap: 12px;
    cursor: pointer;
}

.cube-type-label:hover {
    background: rgba(0, 51, 102, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,51,102,0.3);
}

.cube-type-option input[type="radio"]:checked + .cube-type-label {
    background: rgba(30, 144, 255, 0.3);
    border-color: #1e90ff;
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.4);
    transform: translateY(-2px);
}

.cube-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.cube-type-icon img {
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.cube-type-option input[type="radio"]:checked + .cube-type-label .cube-type-icon img {
    filter: grayscale(0%);
    transform: scale(1.15); /* Większe powiększenie */
}

.cube-type-label:hover .cube-type-icon img {
    filter: grayscale(50%);
    transform: scale(1.08); /* Większe powiększenie */
}

.cube-type-name {
    font-size: 0.9rem; /* Nieco większa czcionka */
    font-weight: 600; /* Pogrubienie */
    color: #ffffff;
    line-height: 1.2;
    padding: 0 5px;
    margin-top: 8px; /* Większy margines */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Usunięcie białej kropki z przycisku wyzwania */
.invitation-btn::before {
    display: none !important;
}

.invitation-btn::after {
    display: none !important;
}



/* Poprawiony styl dla formularza */
.form-group {
    margin-bottom: 25px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #66b2ff;
    font-size: 1.1rem;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.form-input {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 14px 18px;
    font-size: 1rem;
    border-radius: 12px;
    border: 2px solid #003366;
    background: rgba(255,255,255,0.95);
    color: #0b1d3a;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0,51,102,0.2);
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.4);
    transform: scale(1.02);
}

.form-input::placeholder {
    color: #888;
    opacity: 0.8;
}

/* Styl dla kontenera formularza */
.challenge-form {
    background: rgba(14, 37, 74, 0.6);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.4);
    margin-bottom: 30px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(102, 178, 255, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

/* Lepsze dopasowanie siatki kostek */
.cube-type-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
}

/* Styl dla oczekujących wyzwań */
.pending-challenges {
    background: rgba(14, 37, 74, 0.6);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.4);
    margin-top: 30px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(102, 178, 255, 0.3);
    max-width: 800px;
    margin: 30px auto 0;
}

.challenge-card {
    background: rgba(0, 51, 102, 0.4);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 178, 255, 0.2);
}

.challenge-card:hover {
    background: rgba(0, 51, 102, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,51,102,0.4);
}

.challenge-info {
    flex: 1;
}

.challenge-info p {
    margin: 8px 0;
    color: #e6e6e6;
}

.challenge-info strong {
    color: #66b2ff;
}

.ranking-container {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(14, 37, 74, 0.85);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
}

.user-stats {
    background: rgba(0, 51, 102, 0.4);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.user-position {
    font-size: 2rem;
    font-weight: bold;
    color: #66b2ff;
    margin: 10px 0;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.ranking-table th, .ranking-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ranking-table th {
    background: rgba(0, 51, 102, 0.5);
    font-weight: 600;
}

.ranking-table tr:hover {
    background: rgba(0, 51, 102, 0.3);
}

.gold-row {
    background: rgba(255, 215, 0, 0.1);
}

.silver-row {
    background: rgba(192, 192, 192, 0.1);
}

.bronze-row {
    background: rgba(205, 127, 50, 0.1);
}

.user-row {
    background: rgba(30, 144, 255, 0.2);
    font-weight: bold;
}

.medal {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* === Dodane style dla ekranów oczekiwania i wyników === */
.waiting-container {
    max-width: 600px;
    margin: 30px auto;
    text-align: center;
    padding: 30px;
    background: rgba(14, 37, 74, 0.85);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top: 5px solid #1e90ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.match-info {
    background: rgba(0, 51, 102, 0.4);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.match-info p {
    margin: 8px 0;
}

.cancel-btn {
    background: #d82638ff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cancel-btn:hover {
    background: #b91d2eff;
}

.error-message {
    background: rgba(216, 38, 56, 0.2);
    border: 1px solid #d82638ff;
    color: #ff6b6b;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.expiry-info {
    color: #ffa726;
    font-style: italic;
    margin: 10px 0;
}

.result-container {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(14, 37, 74, 0.85);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    text-align: center;
    backdrop-filter: blur(10px);
}

.trophy-icon {
    font-size: 4rem;
    color: gold;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.winner-banner {
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(218,165,32,0.2));
    border: 2px solid gold;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.points-container {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
}

.points-card {
    background: rgba(0, 51, 102, 0.4);
    padding: 20px;
    border-radius: 10px;
    width: 45%;
}

.points-value {
    font-size: 2rem;
    font-weight: bold;
    color: #66b2ff;
    margin: 10px 0;
}

.action-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.action-btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-btn {
    background: linear-gradient(135deg, #1e90ff, #0066cc);
    color: white;
}

.secondary-btn {
    background: rgba(255,255,255,0.15);
    color: white;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.success-message {
    background: rgba(0, 128, 0, 0.2);
    border: 1px solid #4CAF50;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #4CAF50;
}

.info-message {
    background: rgba(0, 123, 255, 0.2);
    border: 1px solid #2196F3;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #2196F3;
}

/* === Style dla historii i statystyk === */
.history-container { 
    max-width: 1200px; 
    margin: 30px auto; 
    padding: 20px; 
}

.filters { 
    background: rgba(14, 37, 74, 0.85); 
    padding: 20px; 
    border-radius: 16px; 
    margin-bottom: 30px; 
    backdrop-filter: blur(10px); 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
    align-items: flex-end;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.filter-group { 
    flex: 1; 
    min-width: 200px; 
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.filter-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color: #66b2ff; 
    font-size: 1rem;
    text-align: left;
}

.filter-input, .filter-select { 
    width: 100%; 
    padding: 12px 15px; 
    border-radius: 12px; 
    border: 2px solid #003366; 
    background: rgba(255,255,255,0.95); 
    color: #0b1d3a; 
    font-family: 'Poppins', sans-serif; 
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0,51,102,0.2);
    box-sizing: border-box;
    height: 46px;
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 15px rgba(30, 144, 255, 0.4);
    transform: scale(1.02);
}

.apply-filters-btn { 
    padding: 12px 25px; 
    background: linear-gradient(135deg, #1e90ff, #0066cc); 
    color: white; 
    border: none; 
    border-radius: 12px; 
    font-weight: 600; 
    font-size: 1rem;
    cursor: pointer; 
    transition: all 0.3s ease; 
    white-space: nowrap;
    box-shadow: 0 5px 25px rgba(0,51,102,0.3);
    height: 46px;
    margin-top: 0;
}

.apply-filters-btn:hover { 
    background: linear-gradient(135deg, #1475cc, #0055aa); 
    transform: translateY(-3px); 
    box-shadow: 0 8px 30px rgba(0,51,102,0.4);
}

.matches-list { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    margin-bottom: 40px;
}

.match-history-card { 
    background: rgba(14, 37, 74, 0.85); 
    padding: 25px; 
    border-radius: 16px; 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr; 
    gap: 20px; 
    align-items: center; 
    transition: all 0.3s ease; 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 178, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.match-history-card:hover { 
    background: rgba(20, 45, 80, 0.9); 
    transform: translateY(-5px); 
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    border-color: rgba(102, 178, 255, 0.5);
}

.match-opponent { 
    font-weight: 700; 
    font-size: 1.2rem;
    color: #ffffff;
}

.match-cube-type { 
    text-align: center; 
    background: rgba(0,51,102,0.5); 
    padding: 10px 15px; 
    border-radius: 10px; 
    font-weight: 600;
    color: #66b2ff;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
}

.match-score { 
    font-size: 1.4rem; 
    font-weight: 800; 
    text-align: center; 
    padding: 15px;
    border-radius: 12px;
    background: rgba(0,0,0,0.2);
}

.match-points { 
    text-align: center; 
    font-weight: 700; 
    font-size: 1.3rem;
    padding: 15px;
    border-radius: 12px;
    background: rgba(0,0,0,0.2);
}

.match-date { 
    text-align: right; 
    color: #99c2ff; 
    font-size: 1rem; 
    font-weight: 500;
}

@media (max-width: 800px) {
  .matches-list { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    margin-bottom: 40px;
}

.match-history-card { 
    background: rgba(14, 37, 74, 0.85); 
    padding: 25px; 
    border-radius: 16px; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: auto auto auto; 
    gap: 20px; 
    align-items: center; 
    transition: all 0.3s ease; 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 178, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.match-history-card:hover { 
    background: rgba(20, 45, 80, 0.9); 
    transform: translateY(-5px); 
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    border-color: rgba(102, 178, 255, 0.5);
}

.match-opponent { 
    grid-column: 1 / span 2;
    grid-row: 1;
    justify-self: center;
    text-align: center;
    font-weight: 700; 
    font-size: 1.2rem;
    color: #ffffff;
}

.match-cube-type { 
    grid-column: 1;
    grid-row: 2;
    text-align: center; 
    background: rgba(0,51,102,0.5); 
    padding: 10px 15px; 
    border-radius: 10px; 
    font-weight: 600;
    color: #66b2ff;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
}

.match-score { 
    grid-column: 1;
    grid-row: 3;
    font-size: 1.4rem; 
    font-weight: 800; 
    text-align: center; 
    padding: 15px;
    border-radius: 12px;
    background: rgba(0,0,0,0.2);
}

.match-points { 
    grid-column: 2;
    grid-row: 3;
    text-align: center; 
    font-weight: 700; 
    font-size: 1.3rem;
    padding: 15px;
    border-radius: 12px;
    background: rgba(0,0,0,0.2);
}

.match-date { 
    grid-column: 2;
    grid-row: 2;
    text-align: left; 
    color: #99c2ff; 
    font-size: 1rem; 
    font-weight: 500;
}
}

.text-win { 
    color: #4CAF50; 
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.text-loss { 
    color: #f44336; 
    text-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

.pagination { 
    display: flex; 
    justify-content: center; 
    gap: 12px; 
    margin-top: 40px; 
    flex-wrap: wrap; 
}

.pagination a, .pagination span { 
    padding: 12px 18px; 
    border-radius: 10px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.pagination a { 
    background: rgba(0, 51, 102, 0.6); 
    color: #99c2ff; 
    border: 1px solid rgba(102, 178, 255, 0.3);
}

.pagination a:hover { 
    background: rgba(0, 51, 102, 0.9); 
    color: #ffffff; 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,51,102,0.3);
}

.pagination .current { 
    background: linear-gradient(135deg, #1e90ff, #0066cc); 
    color: white; 
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.3);
}

.stats-container { 
    max-width: 1200px; 
    margin: 30px auto; 
    padding: 20px; 
}

.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 25px; 
    margin-bottom: 40px; 
}

.stat-card { 
    background: rgba(14, 37, 74, 0.6); 
    padding: 25px; 
    border-radius: 16px; 
    text-align: center; 
    backdrop-filter: blur(10px); 
    transition: transform 0.3s ease; 
}

.stat-card:hover { 
    transform: translateY(-5px); 
}

.stat-icon { 
    font-size: 3rem; 
    margin-bottom: 15px; 
}

.stat-value { 
    font-size: 2.5rem; 
    font-weight: bold; 
    margin: 10px 0; 
    color: #66b2ff; 
    animation: countUp 1.5s ease-out forwards; 
    opacity: 0;
}

.stat-label { 
    font-size: 1.1rem; 
    color: #ccc; 
}

.charts-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); 
    gap: 30px; 
}

.chart-container { 
    background: rgba(14, 37, 74, 0.6); 
    padding: 25px; 
    border-radius: 16px; 
    backdrop-filter: blur(10px); 
}

.chart-title { 
    text-align: center; 
    margin-bottom: 20px; 
    color: #66b2ff; 
    font-size: 1.3rem; 
    font-weight: 600; 
}


/* === Style dla strony głównej === */
.hero-section {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 40px;
  background: rgba(14, 37, 74, 0.6);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 2rem;
  color: #ffc400;
  margin-bottom: 25px;
  font-weight: 500;
}

.features-section {
  margin: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.feature-card {
  background: rgba(14, 37, 74, 0.6);
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.feature-card h3 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.feature-card p {
  color: #cccccc;
  line-height: 1.6;
}

.how-it-works {
  margin: 60px 0;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.step {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(14, 37, 74, 0.6);
  padding: 25px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.step-number {
  background: linear-gradient(135deg, #ffd966, #ffb347);
  color: rgba(0, 51, 102, 0.85);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content h3 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.step-content p {
  color: #cccccc;
  margin: 0;
}

/* === Style dla strony eventu === */
.event-hero {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.2), rgba(0, 102, 204, 0.2));
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.event-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff4b5c, #cc3a4a);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.event-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.highlight {
  color: #66b2ff;
  font-weight: bold;
}

.event-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-card {
  background: rgba(14, 37, 74, 0.6);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.info-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.info-card h3 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.info-card p {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 15px;
}

.prize-card {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(218, 165, 32, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.cta-section {
  text-align: center;
  padding: 40px;
  background: rgba(14, 37, 74, 0.6);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.cta-section h3 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #1e90ff, #0066cc);
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4);
}

/* === Style dla strony meczów/zaproszeń === */
.matches-container {
  max-width: 1000px;
  margin: 30px auto;
  background: rgba(14, 37, 74, 0.85);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
}

.matches-container h2 {
  text-align: center;
  margin-bottom: 30px;
}

.section-title {
  color: #66b2ff;
  margin: 30px 0 20px 0;
  font-size: 1.5rem;
  border-bottom: 2px solid rgba(102, 178, 255, 0.3);
  padding-bottom: 10px;
}

.invitations-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.challenge-card {
  background: rgba(0, 51, 102, 0.4);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 178, 255, 0.2);
}

.challenge-card:hover {
  background: rgba(0, 51, 102, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0,51,102,0.4);
}

.challenge-info p {
  margin: 8px 0;
  color: #e6e6e6;
  padding: 0;
}

.challenge-info strong {
  color: #66b2ff;
}

.status-badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-left: 10px;
}

.status-badge.status-inprogress {
    background-color: #ff9800; /* Pomarańczowy */
    color: white;
}

.status-badge.status-pending {
    background-color: #2196f3; /* Niebieski */
    color: white;
}

.status-badge.status-accepted {
    background-color: #4caf50; /* Zielony */
    color: white;
}

.expiry-info {
  color: #ffa726;
  font-style: italic;
  font-size: 0.9rem;
}

.challenge-actions {
  display: flex;
  gap: 15px;
}

.accept-btn, .reject-btn, .join-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.accept-btn {
  background: #28a745;
  color: white;
}

.accept-btn:hover {
  background: #218838;
  transform: translateY(-2px);
}

.reject-btn {
  background: #dc3545;
  color: white;
}

.reject-btn:hover {
  background: #c82333;
  transform: translateY(-2px);
}

.join-btn {
  background: #1e90ff;
  color: white;
}

.join-btn:hover {
  background: #1475cc;
  transform: translateY(-2px);
}

.no-results {
  text-align: center;
  padding: 50px;
  color: #cccccc;
}

.no-results h3 {
  color: #ffffff;
  margin-bottom: 15px;
}

.alert {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-success {
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #28a745;
}

.alert-error {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #dc3545;
}


/* Poprawki dla punktów w remisie */
.points-container .points-card {
    border: 2px solid #ffc107;
}

/* === Style dla strony meczu (mecz.php) === */

.match-container {
  max-width: 1000px;
  margin: 30px auto;
  background: rgba(14, 37, 74, 0.85);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  animation: fadeIn 0.5s ease-out;
  backdrop-filter: blur(10px);
}

.match-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.match-header h1 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.match-header h2 {
  font-size: 1.8rem;
  color: #66b2ff;
  margin-bottom: 15px;
}

.match-header p {
  color: #cccccc;
  font-size: 1rem;
  margin: 0;
}

.progress-container {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
  position: relative;
}

.progress-container::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.2);
  z-index: 1;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.progress-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 10px;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.progress-circle.active {
  background: rgba(30, 144, 255, 0.3);
  border-color: #1e90ff;
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.4);
}

.progress-circle.completed {
  background: rgba(76, 175, 80, 0.3);
  border-color: #4CAF50;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}

.match-status {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 30px;
  padding: 15px;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}

.match-winner {
  color: #4CAF50;
  font-weight: bold;
}

.match-draw {
  color: #FFC107;
  font-weight: bold;
}

.round-container {
  background: rgba(0, 51, 102, 0.4);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  border: 1px solid rgba(102, 178, 255, 0.2);
}

.round-container h3 {
  color: #66b2ff;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.4rem;
}

.round-group {
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.round-group.active {
  background: rgba(30, 144, 255, 0.2);
  border: 1px solid rgba(30, 144, 255, 0.3);
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.2);
}

.round-group h4 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.time-result {
  text-align: center;
}

.time-result p {
  margin: 8px 0;
  color: #e6e6e6;
}

.time-result strong {
  color: #66b2ff;
}

.opponent-time-info {
  color: #FFC107;
  font-style: italic;
}

.time-input {
  text-align: center;
}

.time-input label {
  display: block;
  margin-bottom: 10px;
  color: #66b2ff;
  font-weight: 600;
}

.time-input-field {
  width: 200px;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #003366;
  background: rgba(255,255,255,0.95);
  color: #0b1d3a;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.time-input-field:focus {
  outline: none;
  border-color: #1e90ff;
  box-shadow: 0 0 10px rgba(30, 144, 255, 0.4);
}

.format-examples {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 15px;
  font-style: italic;
}

.time-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.timer-btn {
  background: linear-gradient(135deg, #1e90ff, #0066cc);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timer-btn:hover {
  background: linear-gradient(135deg, #1475cc, #0055aa);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,51,102,0.3);
}

.dnf-btn {
  background: linear-gradient(135deg, #ff4b5c, #cc3a4a);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dnf-btn:hover {
  background: linear-gradient(135deg, #cc3a4a, #aa2a38);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,75,92,0.3);
}

.sets-results {
  margin-top: 40px;
}

.sets-results h3 {
  color: #66b2ff;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.4rem;
}

.set-card {
  background: rgba(0, 51, 102, 0.4);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid rgba(102, 178, 255, 0.2);
  transition: all 0.3s ease;
}

.set-card.current-set {
  background: rgba(30, 144, 255, 0.2);
  border-color: rgba(30, 144, 255, 0.4);
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.2);
}

.set-card h4 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.2rem;
  text-align: center;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.results-table th {
  background: rgba(0, 51, 102, 0.6);
  padding: 12px;
  text-align: center;
  color: #66b2ff;
  font-weight: 600;
}

.results-table td {
  padding: 10px;
  text-align: center;
  color: #e6e6e6;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.set-status {
  text-align: center;
  font-style: italic;
  color: #99c2ff;
  margin-top: 10px;
}

.player-points {
  background: rgba(0, 51, 102, 0.6);
  padding: 5px 10px;
  border-radius: 20px;
  margin-left: 10px;
  font-weight: 600;
  color: #66b2ff;
}



  .set-result {
      margin: 10px 0;
      padding: 10px;
      border-radius: 5px;
  }
    
    .set-winner {
        border: 1px solid #c3e6cb;
    }
      
    .set-draw {
        background-color: #fff3cd;
        border: 1px solid #ffeaa7;
    }
      
    .points-breakdown {
        margin: 15px 0;
        padding: 15px;
        border-radius: 5px;
     }

.cube-type-icon img {
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.cube-type-option input[type="radio"]:checked + .cube-type-label .cube-type-icon img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.cube-type-label:hover .cube-type-icon img {
    filter: grayscale(50%);
    transform: scale(1.05);
}

.verification-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
}

.verification-info ol,
.verification-info ul {
    margin: 10px 0 10px 20px;
}

.verification-info li {
    margin-bottom: 8px;
}

.tips {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-top: 15px;
    border-radius: 0 5px 5px 0;
}

.actions {
    margin: 20px 0;
}

.actions a {
    display: inline-block;
    margin: 5px 10px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.text-center {
    text-align: center;
}

.verification-success {
    padding: 30px;
}

.icon-success {
    margin: 20px 0;
}

.resend-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
/* === Style dla strony sukcesu rejestracji === */

/* Kontener główny */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Glass box z wyśrodkowaniem tekstu */
.glass-box.text-center {
    text-align: center;
    max-width: 800px;
    margin: 20px 0;
}

.glass-box.text-center:hover {
    transform: translateY(-5px);
}

/* Sukces message */
.success-message {
    background: rgba(0, 51, 102, 0.4);
    padding: 30px;
    border-radius: 16px;
    margin-top: 20px;
    border: 1px solid rgba(102, 178, 255, 0.2);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #4CAF50;
    animation: pulse 2s infinite;
}

.lead {
    font-size: 1.2rem;
    color: #e6e6e6;
    margin-bottom: 25px;
    line-height: 1.6;
}

.email-highlight {
    background: rgba(30, 144, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid rgba(30, 144, 255, 0.3);
    overflow-wrap: break-word;
    word-break: break-all;
}

.email-highlight p:last-child {
    font-size: 1.3rem;
    color: #99c2ff;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(102, 178, 255, 0.5);
    overflow-wrap: break-word;
    word-break: break-all;
}

/* Kroki weryfikacji */
.verification-steps {
    background: rgba(0, 26, 51, 0.5);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    text-align: left;
    border: 1px solid rgba(102, 178, 255, 0.2);
}

.verification-steps h3 {
    color: #66b2ff;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.4rem;
}

.verification-steps ol {
    color: #e6e6e6;
    padding-left: 20px;
    margin: 0;
}

.verification-steps li {
    margin-bottom: 15px;
    line-height: 1.5;
    padding-left: 10px;
}

/* Timer info */
.timer-info {
    background: rgba(255, 193, 7, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.timer-info h4 {
    color: #FFC107;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.timer {
    display: inline-block;
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0;
    animation: pulse 2s infinite;
}

/* Spam check */
.check-spam {
    background: rgba(244, 67, 54, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.check-spam h4 {
    color: #F44336;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.check-spam ul {
    color: #e6e6e6;
    padding-left: 20px;
    text-align: left;
    display: inline-block;
    margin: 0 auto;
}

.check-spam li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Przyciski akcji */
.btn-success {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 200px;
}

.btn-outline {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 200px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

@media (max-width: 680px) {
  .btn-success, .btn-outline {
    display: block; 
    width: 100%; 
    min-width: 0; 
    margin: 10px 0; 
    box-sizing: border-box; 
  }
}

/* Sekcja ponownego wysyłania */
.resend-section {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.resend-btn {
    background: linear-gradient(135deg, #2196F3, #0D47A1);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
    margin-bottom: 15px;
}

.resend-btn:hover {
    background: linear-gradient(135deg, #1976D2, #0A2F5A);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
}

.resend-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Countdown timer */
#countdown-timer {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#countdown {
    display: inline-block;
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 5px;
    animation: pulse 1s infinite;
}

/* Stopka - content */
.footer-content {
    text-align: center;
    padding: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* Animacje specyficzne */
@keyframes fadeInEmail {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-highlight p:last-child {
    animation: fadeInEmail 1s ease-out 0.5s both;
}


/* === Style dla strony weryfikacji konta === */

/* Kontener ostrzeżenia weryfikacyjnego */
.verification-warning {
    background: rgba(255, 193, 7, 0.15);
    border: 2px solid #ffc107;
    padding: 30px;
    border-radius: 16px;
    margin: 25px 0;
    text-align: left;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
    animation: fadeIn 0.8s ease-out;
}

.verification-warning h2 {
    color: #ffc107;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.8rem;
    text-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    animation: pulse 3s infinite;
}

.verification-warning h3 {
    color: #ffc107;
    margin: 20px 0 15px 0;
    font-size: 1.4rem;
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
    padding-bottom: 8px;
}

.verification-warning p {
    color: #e6e6e6;
    margin-bottom: 15px;
    line-height: 1.6;
}

.verification-warning ol, .verification-warning ul {
    color: #e6e6e6;
    padding-left: 25px;
    margin: 15px 0;
}

.verification-warning li {
    margin-bottom: 12px;
    line-height: 1.5;
    padding-left: 8px;
}

.verification-warning li strong {
    color: #ffc107;
}

/* Sekcja z poradami */
.tips {
    background: rgba(30, 144, 255, 0.15);
    border: 1px solid rgba(30, 144, 255, 0.3);
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    border-left: 5px solid #1e90ff;
}

.tips p {
    color: #66b2ff;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tips ul {
    margin-top: 10px;
    padding-left: 20px;
}

.tips li {
    color: #e6e6e6;
    margin-bottom: 8px;
}

/* Przyciski akcji */
.actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #1e90ff, #0066cc);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.3);
    border: none;
    cursor: pointer;
    min-width: 180px;
    font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1475cc, #0055aa);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 180px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Formularz w sekcji actions */
.actions form {
    display: inline-block;
    margin: 0;
}


.consent-text {
    text-align: center;
    font-size: 0.9em;
    margin: 15px 0;
}
.consent-line a {
    color: #4CAF50;
    text-decoration: none;
}
.consent-line a:hover {
    text-decoration: underline;
}
.page-header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out;
}

.page-header h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Główny kontener polityki */
.policy-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 0 20px;
}

/* Pojedyncza karta */
.policy-card {
  background: rgba(14, 37, 74, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 25px 30px;
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 178, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.policy-card:hover {
  transform: translateX(8px) translateY(-3px);
  background: rgba(14, 37, 74, 0.85);
  border-color: rgba(102, 178, 255, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.policy-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  background: rgba(30, 144, 255, 0.2);
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
}

.policy-card:hover .policy-icon {
  background: rgba(30, 144, 255, 0.4);
  transform: scale(1.05);
}

.policy-content {
  flex: 1;
}

.policy-content h3 {
  color: #66b2ff;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

.policy-content p {
  margin: 12px 0;
  line-height: 1.6;
  color: #e6e6e6;
  padding: 0;
}

.policy-content ul {
  margin: 10px 0 10px 20px;
  padding-left: 0;
  list-style-type: disc;
}

.policy-content li {
  margin: 8px 0;
  color: #e0e0e0;
  line-height: 1.5;
}

@media (max-width: 800px) {

.policy-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 0 20px;
}

.policy-card {
  background: rgba(14, 37, 74, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 178, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.policy-card:hover {
  transform: translateY(-3px);
  background: rgba(14, 37, 74, 0.85);
  border-color: rgba(102, 178, 255, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.policy-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  background: rgba(30, 144, 255, 0.2);
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
  margin-bottom: 5px;
}

.policy-card:hover .policy-icon {
  background: rgba(30, 144, 255, 0.4);
  transform: scale(1.05);
}

.policy-content {
  flex: 1;
}

.policy-content h3 {
  color: #66b2ff;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

.policy-content p {
  margin: 12px 0;
  line-height: 1.6;
  color: #e6e6e6;
  padding: 0;
}

.policy-content ul {
  margin: 10px 0 10px 20px;
  padding-left: 0;
  list-style-type: disc;
}

.policy-content li {
  margin: 8px 0;
  color: #e0e0e0;
  line-height: 1.5;
}
}
/* Linki do przeglądarek */
.browser-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.browser-links a {
  background: rgba(30, 144, 255, 0.2);
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #99c2ff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 178, 255, 0.3);
}

.browser-links a:hover {
  background: rgba(30, 144, 255, 0.4);
  color: white;
  transform: translateY(-2px);
}

/* Sekcja kontaktowa (dolna) */
.contact-questions {
  max-width: 800px;
  margin: 50px auto 30px;
  padding: 0 20px;
}

.contact-questions .contact-card {
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.15), rgba(0, 102, 204, 0.15));
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(30, 144, 255, 0.4);
  transition: all 0.3s ease;
}

.contact-questions .contact-card:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(30, 144, 255, 0.2);
}

.contact-questions .contact-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.contact-questions h3 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 20px;
}

.contact-questions p {
  color: #e6e6e6;
  margin: 15px 0;
  font-size: 1rem;
}

.contact-questions .cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #1e90ff, #0066cc);
  color: white;
  padding: 12px 30px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(30, 144, 255, 0.3);
}

.contact-questions .cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(30, 144, 255, 0.5);
  background: linear-gradient(135deg, #1475cc, #0055aa);
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(90vw, 1100px);
  max-width: 1100px;
  min-width: 280px;
  align-items: center;
  pointer-events: none;
}
.toast-notification {
    width: 100%;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(102, 178, 255, 0.25);
    overflow: hidden;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    pointer-events: auto;
    opacity: 0;
}

@media (max-width: 680px) {
  .toast-container {
    width: calc(100vw - 24px);
    min-width: auto;
    bottom: 16px;
    gap: 12px;
  }
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Nagłówek toasta */
.toast-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(0, 51, 102, 0.4);
    border-bottom: 1px solid rgba(102, 178, 255, 0.2);
}

.toast-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.toast-title {
    flex: 1;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #fff, #66b2ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: none;
}

.toast-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #99c2ff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: rgba(255, 75, 92, 0.3);
    color: #ff6b6b;
    transform: scale(1.05);
}

/* Treść toasta */
.toast-body {
    padding: 18px;
    color: #eef2ff;
    font-size: 0.95rem;
    line-height: 1.45;
}

.toast-body p {
    margin: 0 0 10px 0;
    padding: 0;
}

.toast-body strong {
    color: #66b2ff;
    font-weight: 700;
}

/* Przyciski akcji */
.toast-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.toast-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(255,255,255,0.08);
    color: white;
    backdrop-filter: blur(4px);
    letter-spacing: 0.3px;
}

.toast-btn.accept-btn {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.toast-btn.accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(40, 167, 69, 0.4);
    filter: brightness(1.05);
}

.toast-btn.reject-btn {
    background: linear-gradient(135deg, #dc3545, #b02a37);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.toast-btn.reject-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(220, 53, 69, 0.4);
    filter: brightness(1.05);
}

.toast-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

/* Rodzaje toastów (sukces/błąd) */
.toast-notification.toast-success {
    border-left-color: #28a745;
    background: rgba(10, 30, 20, 0.9);
}

.toast-notification.toast-error {
    border-left-color: #dc3545;
    background: rgba(40, 15, 20, 0.9);
}

/* Animacja pulse dla odznaki */
.notification-badge.pulse {
    animation: badgePulse 1s ease-in-out 3;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* Responsywność */
@media (max-width: 580px) {
    .toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }
    .toast-notification {
        width: 100%;
        border-radius: 20px;
    }
    .toast-header {
        padding: 12px 14px;
    }
    .toast-body {
        padding: 14px;
    }
    .toast-actions {
        flex-direction: column;
        gap: 8px;
    }
    .toast-btn {
        padding: 10px 12px;
    }
}

/* ==================== SYSTEM RANG (GRYWALIZACJA) ==================== */

/* ---------- Widget rangi w panelu użytkownika ---------- */
.rank-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 26, 51, 0.6);
    backdrop-filter: blur(8px);
    padding: 6px 16px 6px 10px;
    border-radius: 60px;
    border: 1px solid rgba(102, 178, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.rank-widget-icon {
    width: 100px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border-radius: 60px;
    padding: 5px;
}

.rank-widget-icon img {
    max-width: 100%;
    max-height: 100%;
}

.rank-widget-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.rank-widget-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.rank-progress-bar {
    width: 100%; 
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    margin: 4px 0;
    overflow: hidden;
}

.rank-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #66b2ff, #1e90ff);
    width: 0%;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.rank-progress-percent {
    font-size: 1rem;
    color: #99c2ff;
}

.rank-points-display {
    font-size: 1rem;
    color: #cccccc;
}

/* ---------- Widok szczegółowy rangi (profil / osobna strona) ---------- */
.rank-detail-card {
    background: rgba(14, 37, 74, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid rgba(102, 178, 255, 0.3);
    transition: transform 0.3s ease;
}

.rank-detail-card:hover {
    transform: translateY(-5px);
}

.rank-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.rank-badge {
    width: 160px;
    height: 100px;
    background: rgba(0,0,0,0.3);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(102, 178, 255, 0.3);
}

.rank-badge img {
    max-width: 90%;
}

.rank-title {
    flex: 1;
}

.rank-title h2 {
    margin: 0;
    font-size: 2rem;
    text-align: left;
}

.rank-title p {
    margin: 5px 0 0;
    color: #99c2ff;
}

.progress-section {
    margin: 20px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #e6e6e6;
}

.progress-track {
    height: 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #66b2ff, #1e90ff);
    border-radius: 20px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.next-rank-info {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #ffc107;
}

/* ---------- Overlay animacji awansu (Fortnite style) ---------- */
.rankup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
    from { opacity: 0; backdrop-filter: blur(0); }
    to { opacity: 1; backdrop-filter: blur(8px); }
}

.rankup-container {
    position: relative;
    text-align: center;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.4s ease;
    max-width: 500px;
    width: 90%;
}

.rankup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,215,0,0.6) 0%, rgba(255,215,0,0) 70%);
    border-radius: 50%;
    animation: pulseGlow 1.2s ease-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.rankup-icon-old,
.rankup-icon-new {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.rankup-icon-old {
    animation: oldIconShrink 0.8s forwards;
    margin-bottom: -60px;
}

.rankup-icon-new {
    transform: scale(0);
    animation: newIconPop 0.8s 0.5s forwards;
}

@keyframes oldIconShrink {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.2); opacity: 0; }
}

@keyframes newIconPop {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.rankup-icon-old img,
.rankup-icon-new img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 8px gold);
}

.rankup-text {
    margin-top: 20px;
    animation: textFadeUp 0.8s 0.6s both;
}

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

.rankup-label {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.rankup-old-name {
    font-size: 1.2rem;
    color: #aaa;
    text-decoration: line-through;
    margin: 10px 0;
}

.rankup-arrow {
    font-size: 2rem;
    color: #ffc107;
    margin: 5px 0;
}

.rankup-new-name {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(255,215,0,0.6);
}

/* Cząsteczki */
.rankup-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffd700, #ff8c00);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: particleFly 1s ease-out forwards;
}

@keyframes particleFly {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0);
        opacity: 0;
    }
}

.rankup-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 80%);
    opacity: 0;
    pointer-events: none;
    border-radius: 50%;
    transition: opacity 0.1s;
}

.rankup-flash.active {
    opacity: 1;
    animation: flashFade 0.4s ease-out;
}

@keyframes flashFade {
    0% { opacity: 1; transform: scale(0.8); }
    100% { opacity: 0; transform: scale(1.5); }
}

.rankup-overlay.fade-out {
    animation: fadeOutOverlay 0.5s forwards;
}

@keyframes fadeOutOverlay {
    to { opacity: 0; backdrop-filter: blur(0); visibility: hidden; }
}

/* Ikonki rang w tabeli rankingu */
.rank-icon-small {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-right: 8px;
}

/* === Przycisk czyszczenia filtrów (historia-meczy) === */
.clear-filters-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.clear-filters-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Poprawka dla grupy filtrów – aby przyciski były obok siebie */
.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Opcjonalnie – dopasowanie przycisku "Zastosuj filtry" do nowego sąsiedztwa */
.apply-filters-btn {
    white-space: nowrap;
}

/* Responsywność: na małych ekranach przyciski pod sobą */
@media (max-width: 680px) {
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    .clear-filters-btn {
        margin-left: 0;
        text-align: center;
    }
}

/* === Responsywność panelu użytkownika dla bardzo małych ekranów (do 440px) === */
@media (max-width: 440px) {
  .user-panel {
    padding: 12px 16px;
    gap: 12px;
  }

  .rank-widget {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
  }

  .rank-widget-icon {
    width: 70px;
    height: 50px;
  }

  .rank-widget-info {
    text-align: center;
    flex: 0 1 auto;
  }

  .rank-widget-name {
    font-size: 1rem;
    white-space: normal;
  }

  .rank-progress-bar {
    width: 140px;
    margin: 4px auto;
  }

  .rank-progress-percent {
    font-size: 0.85rem;
  }

  .user-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .invitation-link,
  .logout-button,
  .login-button,
  .register-button {
    width: 100%;
    justify-content: center;
    padding: 8px 16px;
    font-size: 1rem;
    white-space: normal;
    text-align: center;
    box-sizing: border-box;
  }

  .welcome-message {
    font-size: 0.95rem;
    text-align: center;
    word-break: break-word;
  }

  .guest-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
    gap: 12px;
  }

  .guest-panel a {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }
}