:root {
  --purple: #3498db;       /* primární modrá */
  --pink: #5dade2;         /* doplňková světle modrá */
  --bg-dark: #0A0A0C;
  --card: rgba(255,255,255,0.05);
  --text: #F5F5F5;
  --muted: #AAA;
  --radius: 14px;
  --gradient: linear-gradient(135deg, #3498db, #2874a6); /* modrý gradient */
}

/* Body & Container */
body {
  margin: 0;
  background: 
    radial-gradient(2px 2px at 20% 30%, #5dade2, rgba(93,173,226,0)),
    radial-gradient(2px 2px at 60% 70%, #3498db, rgba(52,152,219,0)),
    radial-gradient(1px 1px at 50% 50%, #85c1e2, rgba(133,193,226,0)),
    radial-gradient(1px 1px at 80% 10%, #5dade2, rgba(93,173,226,0)),
    radial-gradient(2px 2px at 90% 60%, #3498db, rgba(52,152,219,0)),
    radial-gradient(1px 1px at 30% 80%, #85c1e2, rgba(133,193,226,0)),
    radial-gradient(1px 1px at 15% 50%, #5dade2, rgba(93,173,226,0)),
    radial-gradient(2px 2px at 40% 20%, #3498db, rgba(52,152,219,0));
  background-size: 200% 200%, 300% 300%, 250% 250%, 350% 350%, 280% 280%, 320% 320%, 290% 290%, 310% 310%;
  background-position: 0 0, 40% 60%, 130% 270%, 70% 100%, 100% 50%, 50% 100%, 20% 80%, 80% 20%;
  background-color: #0a0f1a;
  background-attachment: fixed;
  animation: starfield 20s ease-in-out infinite;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  transition: background 0.5s ease;
}

@keyframes starfield {
  0%, 100% { background-position: 0 0, 40% 60%, 130% 270%, 70% 100%, 100% 50%, 50% 100%, 20% 80%, 80% 20%; }
  50% { background-position: 2% 2%, 42% 62%, 132% 272%, 72% 102%, 102% 52%, 52% 102%, 22% 82%, 82% 22%; }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
.header {
  backdrop-filter: blur(10px);
  background: rgba(15,15,18,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky; top: 0;
  z-index: 100;
  transition: background 0.3s ease;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }

/* Logo */
.logo {
  display: flex; align-items: center; text-decoration: none;
  font-family: 'Poppins', sans-serif; font-weight: 700;
  color: var(--text);
}
.logo img { width: 48px; margin-right: 10px; border-radius: 10px; }
.logo strong {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Links hover gradient */
.links {
  display: flex;
  gap: 50px;
  margin-left: 40px;
  flex: 1;
}

.links a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.links a:hover {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header right - counter and login */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

/* User profile section */
.user-profile {
  display: flex;
  align-items: center;
}

.header-notification-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-bell-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(52, 152, 219, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.header-bell-btn:hover {
  background: rgba(52, 152, 219, 0.15);
  border-color: var(--purple);
  color: var(--pink);
}

.header-bell-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f44336;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-notification-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 320px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(15, 15, 18, 0.96);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  z-index: 1100;
  display: none;
}

.header-notification-panel.active {
  display: block;
}

.header-notification-title {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.header-notification-list {
  display: flex;
  flex-direction: column;
}

.header-notification-item {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-notification-item:last-child {
  border-bottom: none;
}

.header-notification-item.pending {
  border-left: 3px solid #ff9800;
}

.header-notification-item.approved {
  border-left: 3px solid #4caf50;
}

.header-notification-item.rejected {
  border-left: 3px solid #f44336;
}

.header-notification-item.system {
  border-left: 3px solid #3498db;
}

.header-notification-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}

.header-notification-time {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.header-notification-empty {
  padding: 16px 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.avatar-container {
  position: relative;
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}

.user-avatar:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: rgba(15, 15, 18, 0.95);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 10px;
  min-width: 180px;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  backdrop-filter: blur(10px);
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: rgba(52, 152, 219, 0.15);
  color: var(--pink);
}

.dropdown-item i {
  width: 16px;
  text-align: center;
}

.logout-item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ff6b6b;
}

.logout-item:hover {
  background: rgba(255, 107, 107, 0.15);
  color: #ff8787;
}

/* Server counter */
.server-counter {
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 6px 12px;
  font-weight: 600;
  color: var(--purple);
  display: flex; align-items: center; gap: 6px;
  backdrop-filter: blur(6px);
}

/* Login button in header */
.btn-login {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white !important;
  padding: 8px 16px !important;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
  display: inline-block;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.3);
}

/* Burger */
.burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; }
.burger span { width: 22px; height: 2px; background: var(--text); }

/* Mobile menu */
.mobile-menu { display: none; flex-direction: column; background: #0d0d11; padding: 20px; text-align: center; }
.mobile-menu a { color: var(--text); margin: 10px 0; text-decoration: none; font-weight: 600; }

/* Hero */
.hero {
  display: flex; align-items: center; justify-content: space-between; padding: 80px 0; gap: 40px;
}
.hero-left h1 {
  font-family: 'Poppins', sans-serif; font-size: 48px; margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: 0.5s ease;
}
.accent { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-left p { color: var(--muted); max-width: 600px; line-height: 1.6; }
.hero-ctas { margin-top: 24px; display: flex; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 14px;
  cursor: pointer; text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn.primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(52,152,219,0.35);
}
.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(52,152,219,0.55);
}
.btn.ghost {
  border: 1px solid transparent;
  background: linear-gradient(135deg, #3498db, #5dade2) padding-box;
  color: #fff;
}
.btn.ghost:hover {
  background: linear-gradient(135deg, #5dade2, #2874a6);
  color: #fff;
  transform: translateY(-2px);
}
.btn.small { padding: 6px 12px; font-size: 13px; }

/* Hero image */
.hero-right img {
  width: 500px; border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(52,152,219,0.6), 0 0 60px rgba(40,116,166,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-right img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 50px rgba(52,152,219,0.8), 0 0 80px rgba(40,116,166,0.6);
}

/* Features */
.features h2, .activities h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  text-align: center;
  margin-bottom: 24px;
}
.grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 20px;
}
.card {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(52,152,219,0.4), 0 0 50px rgba(40,116,166,0.3); }
.card i { font-size: 32px; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; }
.card h3 { color: var(--pink); margin-bottom: 8px; }

/* Activities */
.activity-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
  gap: 20px; text-align: center;
}
.activity { background: rgba(255,255,255,0.07); border-radius: var(--radius); padding: 20px; transition: 0.3s; backdrop-filter: blur(6px); }
.activity:hover { transform: scale(1.05); background: rgba(255,255,255,0.1); }
.activity i { font-size: 28px; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; display: block; }

/* Activities / Zaměstnání */
.activities { margin-top: 80px; text-align: center; }
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  color: var(--text);
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.activity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.card-activity {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.card-activity:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(52,152,219,0.4), 0 0 50px rgba(40,116,166,0.3);
}
.card-activity .thumb {
  width: 100%;
  height: 180px; /* můžeš upravit podle potřeby */
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.card-activity .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* zajistí, že se obrázek přizpůsobí */
  transition: transform 0.3s ease;
}

.card-activity:hover .thumb img {
  transform: scale(1.05); /* jemný efekt při najetí */
}

.card-activity h3 { font-family: 'Poppins', sans-serif; font-size: 20px; margin-bottom: 10px; color: var(--pink); }
.card-activity p { color: var(--muted); font-size: 15px; line-height: 1.5; margin-bottom: 18px; }

/* Nová aktivita design */
.card-activity-new {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
}

.card-activity-new:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(52,152,219,0.4), 0 0 50px rgba(40,116,166,0.3);
}

.card-activity-new .thumb {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.card-activity-new .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-activity-new:hover .thumb img {
  transform: scale(1.05);
}

.card-activity-new h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  margin: 20px 20px 16px 20px;
  color: var(--text);
  text-align: left;
}

.activity-info {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 0 20px 20px 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  border: 1px solid;
  white-space: nowrap;
}

.info-badge i {
  font-size: 14px;
}

.info-badge.low {
  background: rgba(52,152,219,0.2);
  border-color: #3498db;
  color: #5dade2;
}

.info-badge.medium {
  background: rgba(52,152,219,0.2);
  border-color: #3498db;
  color: #5dade2;
}

.info-badge.high {
  background: rgba(40,116,166,0.2);
  border-color: #2874a6;
  color: #3498db;
}

.info-badge.time {
  background: rgba(52,152,219,0.2);
  border-color: #3498db;
  color: #5dade2;
}

.info-badge.money {
  background: rgba(52,152,219,0.2);
  border-color: #3498db;
  color: #5dade2;
}

/* Riziko Badge */
.badge { display: inline-block; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: #fff; }
.badge.low { background: #5dade2; }     /* nízké riziko - světle modrá */
.badge.medium { background: #3498db; }  /* střední riziko - modrá */
.badge.high { background: #2874a6; }    /* kritické - tmavší modrá */

/* Footer */
.site-footer {
  background: linear-gradient(120deg, #0A0A0C, #1B1B23);
  color: var(--muted);
  text-align: center;
  padding: 24px 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
  margin-top: 80px;
}

.site-footer span { color: var(--gradient); font-weight: 600; transition: color 0.3s ease; }
.site-footer span:hover { filter: brightness(1.2); }

/* Responsive */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-right img { width: 100%; }
  .links { display: none; }
  .burger { display: flex; }
  .activity-grid { grid-template-columns: 1fr; }
}

.nabor-section {
  margin: 80px 0;
}

.nabor-card {
  display: flex;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 30px;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
}
.nabor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(52,152,219,0.4), 0 0 50px rgba(40,116,166,0.3);
}

.nabor-content {
  flex: 1 1 300px;
}
.nabor-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  color: var(--pink);
  margin-bottom: 12px;
}
.nabor-content ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--muted);
}
.nabor-content li {
  margin-bottom: 6px;
  font-size: 15px;
}

.nabor-media {
  flex: 1 1 250px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.nabor-image img {
  width: 100%;           /* obrázek zabírá celou šířku bloku */
  max-width: 350px;      /* maximální velikost, aby nebyl přehnaně velký */
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(52,152,219,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nabor-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(52,152,219,0.6), 0 0 70px rgba(40,116,166,0.4);
}

.nabor-btn {
  width: 100%;
  max-width: 350px;      /* stejné jako obrázek */
  text-align: left;       /* text vlevo */
  padding: 12px 16px;     /* horní/dolní padding 12px, levý/pravý 16px */
  font-size: 16px;
  margin-top: 8px;
  border-radius: var(--radius);
}

/* === Social Cards === */
.social-section {
  text-align: center;
  margin: 80px 0;
}

.social-section .section-title {
  font-size: 32px;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Karta sociální sítě */
.social-card {
  background: linear-gradient(135deg, #162238, #203050);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.social-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(52,152,219,0.4);
}

/* Ikona nahoře */
.social-card .thumb {
  font-size: 50px;
  margin-bottom: 16px;
  color: #fff;
}

/* Název */
.social-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--pink);
}

/* Popis */
.social-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Tlačítko přes celou šířku */
.social-card .social-btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  font-weight: 700;
  font-size: 16px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

/* Individuální barvy podle sítě -> zelené verze */
.social-card.tiktok .social-btn {
  background: linear-gradient(135deg, #3498db, #5dade2) padding-box;
}
.social-card.instagram .social-btn {
  background: linear-gradient(135deg, #3498db, #5dade2) padding-box;
}
.social-card.youtube .social-btn {
  background: linear-gradient(135deg, #3498db, #5dade2) padding-box;
}

.social-card .social-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
  .social-grid {
    grid-template-columns: 1fr;
  }
}

/* === Team Section === */
.team-section {
  text-align: center;
  margin: 80px 0;
}

.team-section .section-title {
  font-size: 32px;
  color: var(--text);
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  justify-items: center;
}

.team-card {
  background: linear-gradient(135deg, #162238, #203050);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(52,152,219,0.4);
}

.team-card .avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--purple);
}

.team-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--pink);
}

.team-card .badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

/* Barvy podle role -> zelené varianty */
.badge.admin { background: #2874a6; }
.badge.owner { background: #3498db; }
.badge.developer { background: #5dade2; color: #000; }

/* Responsive */
@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* === Pravidla Section === */
.pravidla-section {
  margin: 80px auto;
  text-align: center;
}

.pravidlo-card {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 32px 24px;
  margin: 0 auto 24px auto;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 90%;
  max-width: 1000px;
  text-align: left;
}

.pravidlo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(52,152,219,0.4), 0 0 50px rgba(40,116,166,0.3);
}

.pravidlo-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  color: var(--pink);
  margin-bottom: 12px;
}

.pravidlo-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Modal Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(93, 173, 226, 0.15));
  border: 2px solid rgba(52, 152, 219, 0.6);
  border-radius: var(--radius);
  padding: 50px;
  max-width: 700px;
  width: 90%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(52, 152, 219, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: slideUp 0.4s ease;
  backdrop-filter: blur(15px);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  font-size: 3.5rem;
  margin: 0 0 15px 0;
  color: var(--text);
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-content p {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 35px 0;
  line-height: 1.6;
}

.server-info-modal {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 12px;
  padding: 30px;
  margin: 30px 0;
}

.server-info-modal h3 {
  font-size: 1.5rem;
  color: var(--purple);
  margin: 0 0 25px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.server-stats {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 20px;
}

.server-stats .stat {
  flex: 1;
  min-width: 150px;
}

.server-stats .stat i {
  font-size: 2.5rem;
  color: var(--purple);
  margin-bottom: 10px;
  display: block;
}

.server-stats .stat p {
  font-size: 1.8rem;
  margin: 10px 0;
  color: var(--text);
  font-weight: 600;
}

.server-stats .stat small {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

#statusIcon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin: 0;
  color: #22c55e;
}

.modal-content .btn {
  min-width: 200px;
  font-size: 1rem;
  padding: 12px 30px;
}

/* AUTH SECTION */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-box {
  width: 100%;
  max-width: 450px;
  background: rgba(15, 15, 18, 0.6);
  border: 1px solid rgba(52, 152, 219, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* AUTH TABS */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(52, 152, 219, 0.05);
  border-bottom: 1px solid rgba(52, 152, 219, 0.2);
}

.tab-btn {
  padding: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--purple);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

/* AUTH FORMS */
.auth-form {
  display: none;
  padding: 40px;
  animation: fadeIn 0.3s ease-out;
}

.auth-form.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.auth-form h2 {
  margin: 0 0 10px 0;
  font-size: 1.8rem;
  color: var(--text);
}

.form-subtitle {
  margin: 0 0 25px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* FORM GROUP */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.form-group label i {
  margin-right: 8px;
  color: var(--purple);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(52, 152, 219, 0.2);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(52, 152, 219, 0.5);
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.1);
}

.form-group input::placeholder {
  color: var(--muted);
}

.form-group small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* CHECKBOXES */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: var(--purple);
}

.checkbox span {
  color: var(--text);
  font-size: 0.9rem;
}

.checkbox a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
}

.checkbox a:hover {
  text-decoration: underline;
}

/* FORM OPTIONS */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.forgot-link {
  color: var(--pink);
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: var(--purple);
}

/* BUTTONS */
.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* DIVIDER */
.form-divider {
  text-align: center;
  margin: 25px 0;
  color: var(--muted);
  position: relative;
}

.form-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: rgba(52, 152, 219, 0.2);
  transform: translateY(-50%);
  z-index: 0;
}

.form-divider {
  position: relative;
  z-index: 1;
  background: rgba(15, 15, 18, 0.6);
  padding: 0 10px;
  display: inline-block;
  width: 100%;
  margin-left: -40px;
  margin-right: -40px;
  padding-left: 40px;
  padding-right: 40px;
}

/* SOCIAL LOGIN */
.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 25px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(52, 152, 219, 0.2);
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(52, 152, 219, 0.4);
}

.btn-social.discord:hover {
  color: #7289da;
  border-color: #7289da;
}

.btn-social.steam:hover {
  color: #1b2838;
  border-color: #1b2838;
}

/* AUTH SWITCH */
.auth-switch {
  text-align: center;
  color: var(--muted);
  margin: 0;
}

.switch-tab {
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  cursor: pointer;
}

.switch-tab:hover {
  color: var(--pink);
}

/* SUCCESS MESSAGE */
.success-message {
  text-align: center;
  padding: 60px 40px !important;
}

.success-message i {
  font-size: 4rem;
  color: #22c55e;
  margin-bottom: 20px;
  display: block;
}

.success-message h2 {
  color: #22c55e;
  margin-bottom: 10px;
}

.success-message p {
  color: var(--muted);
  margin-bottom: 30px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .auth-box {
    max-width: 100%;
  }

  .auth-form {
    padding: 30px 20px;
  }

  .form-divider {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .social-login {
    grid-template-columns: 1fr;
  }
}

/* TOAST NOTIFICATIONS */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(15, 15, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 500;
  backdrop-filter: blur(10px);
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  max-width: 350px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast.show {
  transform: translateX(0);
}

.toast i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(15, 15, 18, 0.95);
}

.toast-error i {
  color: #ef4444;
}

.toast-success {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(15, 15, 18, 0.95);
}

.toast-success i {
  color: #22c55e;
}

@media (max-width: 600px) {
  .toast {
    bottom: 20px;
    right: 20px;
    left: 20px;
    max-width: none;
  }
}




/* PRAVIDLA SECTION */
.pravidla-section {
  padding: 60px 16px;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 50px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-subtitle {
  font-size: 1.8rem;
  margin: 50px 0 30px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(52, 152, 219, 0.3);
  color: var(--pink);
  font-weight: 600;
}

.pravidla-toc {
  background: rgba(52, 152, 219, 0.08);
  border: 1px solid rgba(52, 152, 219, 0.2);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.pravidla-toc h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--purple);
  font-size: 1.2rem;
  text-align: center;
}

.pravidla-toc ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.pravidla-toc li {
  margin: 0;
}

.pravidla-toc a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: block;
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.2);
  font-weight: 600;
}

.pravidla-toc a:hover {
  background: rgba(52, 152, 219, 0.2);
  color: var(--purple);
  border-color: rgba(52, 152, 219, 0.4);
  transform: translateY(-1px);
}

.pravidla-wrapper {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  margin: 60px 0;
}

.pravidla-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.pravidla-content {
  display: flex;
  flex-direction: column;
}

.pravidlo-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(52, 152, 219, 0.15);
  border-left: 4px solid var(--purple);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.pravidlo-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(52, 152, 219, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(52, 152, 219, 0.15);
}

.pravidlo-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--purple);
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.pravidlo-card p {
  margin: 12px 0;
  line-height: 1.7;
  color: var(--text);
  font-size: 0.95rem;
}

.pravidlo-card strong {
  color: var(--pink);
}

.final-note {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(93, 173, 226, 0.05));
  border: 2px solid rgba(52, 152, 219, 0.3);
  border-radius: 12px;
  padding: 40px;
  margin-top: 60px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.final-note h3 {
  font-size: 1.5rem;
  color: var(--purple);
  margin-top: 0;
}

.final-note p {
  margin: 15px 0;
  line-height: 1.8;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.3rem;
  }
  
  .pravidlo-card {
    padding: 20px;
  }
  
  .pravidla-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .pravidla-sidebar {
    position: static;
    top: auto;
  }
}

