* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    width: 100%;
    padding: 10px;
    text-align: center;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
}

.logo {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    color: transparent;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #6C5CE7, #FFD93D);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.6));
}

.container::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 40px;
    z-index: -1;
    background: conic-gradient(
        #FF6B6B 0deg 90deg,
        #FFD93D 90deg 180deg,
        #6C5CE7 180deg 270deg,
        #00B894 270deg 360deg
    );
    filter: blur(25px) brightness(1.2);
    opacity: 0.8;
    animation: containerGlow 5s ease-in-out infinite;
}

@keyframes containerGlow {
    0% { filter: blur(25px) brightness(1.2); opacity: 0.8; }
    50% { filter: blur(35px) brightness(1.5); opacity: 1; }
    100% { filter: blur(25px) brightness(1.2); opacity: 0.8; }
}

.logo::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50px;
    z-index: -1;
    background: conic-gradient(
        #FF6B6B 0deg 90deg,
        #FFD93D 90deg 180deg,
        #6C5CE7 180deg 270deg,
        #00B894 270deg 360deg
    );
    filter: blur(18px) brightness(1.2);
    opacity: 0.85;
    animation: neonGlow 3s linear infinite;
}

@keyframes neonGlow {
    0% { filter: blur(18px) brightness(1.2); opacity: 0.85; }
    50% { filter: blur(28px) brightness(1.5); opacity: 1; }
    100% { filter: blur(18px) brightness(1.2); opacity: 0.85; }
}

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

.logo span {
    display: inline-block;
    animation: wave 1.2s infinite;
    animation-delay: calc(0.1s * var(--i));
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

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

.logo span:nth-child(1) { color: #FF6B6B; text-shadow: 0 0 20px rgba(255, 107, 107, 0.8), 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; }
.logo span:nth-child(2) { color: #FFD93D; text-shadow: 0 0 20px rgba(255, 217, 61, 0.8), 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; }
.logo span:nth-child(3) { color: #6C5CE7; text-shadow: 0 0 20px rgba(108, 92, 231, 0.8), 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; }
.logo span:nth-child(4) { color: transparent; }
.logo span:nth-child(5) { color: #00B894; text-shadow: 0 0 20px rgba(0, 184, 148, 0.8), 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; }
.logo span:nth-child(6) { color: #FF6B6B; text-shadow: 0 0 20px rgba(255, 107, 107, 0.8), 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; }
.logo span:nth-child(7) { color: #FFD93D; text-shadow: 0 0 20px rgba(255, 217, 61, 0.8), 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; }
.logo span:nth-child(8) { color: transparent; }
.logo span:nth-child(9) { color: #6C5CE7; text-shadow: 0 0 20px rgba(108, 92, 231, 0.8), 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; }
.logo span:nth-child(10) { color: #00B894; text-shadow: 0 0 20px rgba(0, 184, 148, 0.8), 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; }
.logo span:nth-child(11) { color: #FF6B6B; text-shadow: 0 0 20px rgba(255, 107, 107, 0.8), 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000; }

.hidden {
    display: none !important;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

.btn {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

.btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.15);
}

/* Нови стилове за бутона за правилата */
.styled-wrapper-rules {
    margin-top: 1.5rem;
}

.btn-rules {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 13rem;
    overflow: hidden;
    height: 3rem;
    background-size: 300% 300%;
    cursor: pointer;
    backdrop-filter: blur(1rem);
    border-radius: 5rem;
    transition: 0.5s;
    animation: gradient_301 5s ease infinite;
    border: double 4px transparent;
    background-image: linear-gradient(#212121, #212121),
      linear-gradient(
        137.48deg,
        #ffdb3b 10%,
        #fe53bb 45%,
        #8f51ea 67%,
        #0044ff 87%
      );
    background-origin: border-box;
    background-clip: content-box, border-box;
}

#container-stars-rules {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: 0.5s;
    backdrop-filter: blur(1rem);
    border-radius: 5rem;
}

.btn-rules strong {
    z-index: 2;
    font-family: "Avalors Personal Use", "Arial", sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 4px white;
}

#glow-rules {
    position: absolute;
    display: flex;
    width: 12rem;
}

.circle-rules {
    width: 100%;
    height: 30px;
    filter: blur(2rem);
    animation: pulse_3011 4s infinite;
    z-index: -1;
}

.circle-rules:nth-of-type(1) {
    background: rgba(254, 83, 186, 0.636);
}

.circle-rules:nth-of-type(2) {
    background: rgba(142, 81, 234, 0.704);
}

.btn-rules:hover #container-stars-rules {
    z-index: 1;
    background-color: #212121;
}

.btn-rules:hover {
    transform: scale(1.1);
}

.btn-rules:active {
    border: double 4px #fe53bb;
    background-origin: border-box;
    background-clip: content-box, border-box;
    animation: none;
}

.btn-rules:active .circle-rules {
    background: #fe53bb;
}

#stars-rules {
    position: relative;
    background: transparent;
    width: 200rem;
    height: 200rem;
}

#stars-rules::after {
    content: "";
    position: absolute;
    top: -10rem;
    left: -100rem;
    width: 100%;
    height: 100%;
    animation: animStarRotate 90s linear infinite;
}

#stars-rules::after {
    background-image: radial-gradient(#ffffff 1px, transparent 1%);
    background-size: 50px 50px;
}

#stars-rules::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 170%;
    height: 500%;
    animation: animStar 60s linear infinite;
}

#stars-rules::before {
    background-image: radial-gradient(#ffffff 1px, transparent 1%);
    background-size: 50px 50px;
    opacity: 0.5;
}

@keyframes animStar {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-135rem);
    }
}

@keyframes animStarRotate {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0);
    }
}

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

@keyframes pulse_3011 {
    0% {
        transform: scale(0.75);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
    100% {
        transform: scale(0.75);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* Facebook бутон */
.facebook-button-wrapper {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modern-facebook-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    border-radius: 25px;
    background: #316FF6;
    color: white;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(49, 111, 246, 0.3);
    transition: all 0.5s ease;
    border: none;
    cursor: pointer;
    gap: 8px;
}

.modern-facebook-button:hover {
    transform: translateY(-3px);
    border-radius: 25px;
    background: linear-gradient(135deg, #331029, #310413);
    box-shadow: 0 8px 25px rgba(49, 111, 246, 0.4);
}

.facebook-icon {
    width: 20px;
    height: 22px;
    transition: all 0.3s ease;
}

.facebook-tooltip {
    position: absolute;
    opacity: 0;
    color: #374151;
    font-size: 14px;
    transform: translateY(0);
    transition: all 0.7s ease;
    pointer-events: none;
    white-space: nowrap;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.modern-facebook-button:hover .facebook-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

/* Desktop версия - показваме оригиналния дизайн */
@media (min-width: 769px) {
    .modern-facebook-button {
        padding: 12px 16px;
        border-radius: 25px;
        gap: 8px;
    }
    
    .modern-facebook-button:hover {
        border-radius: 25px;
    }
    
    .facebook-tooltip {
        display: none;
    }
}

/* Мобилна версия - показваме новия компактен дизайн */
@media (max-width: 768px) {
    .modern-facebook-button {
        padding: 8px;
        border-radius: 8px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .modern-facebook-button:hover {
        border-radius: 50%;
    }
    
    .facebook-tooltip {
        display: block;
    }
}

.player-count-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px 50px;
    border-radius: 20px;
    width: fit-content;
    position: relative;
}

.count-btn {
    background: #FF6B6B;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    color: white;
    font-weight: bold;
}

.count-btn:hover {
    transform: scale(1.1);
    background: #ff5252;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.count-btn:active {
    transform: scale(0.95);
}

#player-count {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    width: 100px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: #FF6B6B;
    font-family: 'Arial Black', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#player-count:focus {
    outline: none;
    border-color: #ff5252;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* Нови стилове за анимирания бутон */
.styled-wrapper {
    margin-top: 1.5rem;
}

.animated-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0 25px;
    color: white;
    text-shadow: 2px 2px rgb(116, 116, 116);
    text-transform: uppercase;
    cursor: pointer;
    border: solid 3px black;
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 24px;
    background-color: hsl(49deg 98% 60%);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    min-height: 100px;
    min-width: 350px;
}

.animated-button:active {
    transform: scale(0.9);
    transition: all 100ms ease;
}

.animated-button svg {
    transition: all 0.5s ease;
    z-index: 2;
}

.animated-button .play {
    transition: all 0.5s ease;
    transition-delay: 300ms;
}

.animated-button:hover svg {
    transform: scale(3) translate(50%);
}

.animated-button .now {
    position: absolute;
    left: 0;
    transform: translateX(-100%);
    transition: all 0.5s ease;
    z-index: 2;
}

.animated-button:hover .now {
    transform: translateX(10px);
    transition-delay: 300ms;
}

.animated-button:hover .play {
    transform: translateX(200%);
    transition-delay: 300ms;
}

/* Запазваме стария ID за съвместимост */
#start-game {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

#setup-screen {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#setup-screen .btn {
    display: block;
    margin: 15px auto;
    width: fit-content;
}

#setup-screen h2 {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Arial Black', 'Helvetica Bold', sans-serif;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
}

#setup-screen h2::before {
    content: '👥';
    font-size: 2.5rem;
    animation: playersIcon 2s ease-in-out infinite;
    margin-right: 15px;
}

@keyframes playersIcon {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

#game-controls,
.game-controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Нови стилове за бутона "Смени рунда" */
.change-round-submit {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: transparent;
    text-transform: uppercase;
    border: 0.1vw solid rgb(50, 50, 50);
    box-shadow:
        0 0 0.5vw black,
        0 0 0.5vw 0.1vw transparent,
        0vw 0 2vw -0.5vw black,
        0vw 0 2vw -0.5vw black,
        0 -1vw 1vw -1vw transparent inset;
    padding: 0.4vw 0.55vw;
    width: 8vw;
    height: 2vw;
    border-radius: 0.2vw;
    cursor: pointer;
    text-shadow: 0.05vw 0 0 white;
    font-size: 0.8vw;
    position: relative;
    overflow: hidden;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    font-family: arial;
    letter-spacing: 0.2vw;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    margin-top: 20px;
}

.change-round-submit:after {
    content: "СМЕНИ РУНДА";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: transparent;
    text-shadow: 1.8vw 1.8vw 1.2vw white;
    text-transform: uppercase;
    font-size: 0.8vw;
    letter-spacing: 5.2vw;
    -webkit-transition: 0.5s;
    transition: 0.5s;
}

.change-round-submit:hover:after,
.change-round-submit:focus:after {
    letter-spacing: 0.28vw;
    text-shadow: 0.08vw 0vw 0 white;
}

.change-round-submit:before {
    content: "СМЕНИ РУНДА";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: transparent;
    text-shadow: 1.8vw -2vw 1.2vw white;
    text-transform: uppercase;
    font-size: 0.8vw;
    letter-spacing: 5.2vw;
    -webkit-transition: 0.8s;
    transition: 0.8s;
}

.change-round-submit:hover:before,
.change-round-submit:focus:before {
    letter-spacing: 0.28vw;
    text-shadow: 0.08vw 0vw 0.08vw white;
}

.change-round-submit:hover,
.change-round-submit:focus {
    box-shadow:
        0 0 2vw black,
        0 0 1.2vw 0.1vw black,
        4vw 0 2vw -0.5vw rgb(255, 0, 105),
        -4vw 0 2vw -0.5vw rgb(255, 0, 105),
        0 -1vw 1vw -1vw rgb(255, 0, 105) inset;
    -webkit-transform: scale(1.15, 1.15);
    transform: scale(1.15, 1.15);
    background: rgba(0, 0, 0, 0.2);
    font-size: 1.25vw;
    letter-spacing: 1.28vw;
    padding: 0.4vw 1vw;
    text-shadow: 0 0 2vw white;
    border-bottom: 0.1vw solid rgb(255, 0, 105);
}

#game-screen {
    text-align: center;
}

/* Нови стилове за бутона за текущия играч */
.current-player-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.current-player-button {
    background: #fbca1f;
    font-family: inherit;
    padding: 0.6em 1.3em;
    font-weight: 900;
    font-size: 18px;
    border: 3px solid black;
    border-radius: 0.4em;
    box-shadow: 0.1em 0.1em;
    cursor: pointer;
    color: black;
    text-align: center;
    display: inline-block;
    transition: all 0.2s ease;
}

.current-player-button:hover {
    transform: translate(-0.05em, -0.05em);
    box-shadow: 0.15em 0.15em;
}

.current-player-button:active {
    transform: translate(0.05em, 0.05em);
    box-shadow: 0.05em 0.05em;
}

#timer {
    font-size: 2rem;
    font-weight: 800;
    color: #FF6B6B;
    text-align: center;
    margin-bottom: 15px;
}

#images-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    margin: 20px 0;
    position: relative;
    width: 100%;
}

.image-card {
    position: relative;
    width: 420px;
    height: 280px;
    margin: 10px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-card img.loaded {
    opacity: 1;
}

.image-card .image-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    z-index: 10;
}

.image-card .image-loader svg {
    width: 100%;
    height: 100%;
}

.image-card .image-loader path {
    stroke: #FF6B6B;
    stroke-width: 0.6px;
    animation: dashArray 4s ease-in-out infinite,
        dashOffset 4s linear infinite;
}

@keyframes dashArray {
    0% {
        stroke-dasharray: 0 1 359 0;
    }
    50% {
        stroke-dasharray: 0 359 1 0;
    }
    100% {
        stroke-dasharray: 359 1 0 0;
    }
}

@keyframes dashOffset {
    0% {
        stroke-dashoffset: 365;
    }
    100% {
        stroke-dashoffset: 5;
    }
}

.image-card.selected {
    border: 3px solid #4ECDC4;
}

.level-end {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.trophy-container {
    margin: 20px 0;
}

.trophy-icon {
    font-size: 60px;
    color: gold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.impostor-message {
    text-align: center;
    font-size: 1.8rem;
    color: #fff;
    padding: 2.5rem;
    background: rgba(255, 107, 107, 0.2);
    border-radius: 1.5rem;
    max-width: 450px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    border: 2px solid rgba(255, 107, 107, 0.5);
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
    font-weight: 700;
    margin: 0 auto;
    animation: impostorMessageGlow 2s ease-in-out infinite;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@keyframes impostorMessageGlow {
    0%, 100% { 
        box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3), 0 0 20px rgba(255, 107, 107, 0.2);
        border-color: rgba(255, 107, 107, 0.5);
    }
    50% { 
        box-shadow: 0 15px 50px rgba(255, 107, 107, 0.6), 0 0 40px rgba(255, 107, 107, 0.4);
        border-color: rgba(255, 107, 107, 0.8);
    }
}

.impostor-message div {
    color: #fff;
    text-shadow: 1px 1px 2px #000, 0 0 2px #FF6B6B;
    font-weight: 700;
    line-height: 1.4;
}

.impostor-icon {
    font-size: 4rem;
    color: #FF6B6B;
    animation: impostorApproach 3s ease-in-out infinite;
    text-shadow: 
        2px 2px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        0 0 30px rgba(255, 107, 107, 0.8),
        0 0 60px rgba(255, 107, 107, 0.6);
    filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.8));
    -webkit-text-stroke: 1px #000;
}

/* Стилове за бутона за разкриване на импостъра */
.reveal-button-container {
    margin: 20px 0;
    text-align: center;
}

.reveal-impostor-btn {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 280px;
}

.reveal-impostor-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.reveal-impostor-btn:hover::before {
    left: 100%;
}

.reveal-impostor-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #FF5252, #FF7676);
}

.reveal-impostor-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.reveal-impostor-btn i {
    margin-right: 10px;
    font-size: 1.1rem;
    animation: eyeBlink 2s ease-in-out infinite;
}

@keyframes eyeBlink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

/* Стилове за съдържанието на разкриването */
.impostor-reveal-content {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 107, 0.3);
    text-align: center;
}

.impostor-reveal-content p {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.impostor-name {
    font-size: 2rem;
    color: #FF6B6B;
    font-weight: bold;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
    margin: 15px 0;
    padding: 10px 20px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.confetti-container {
    margin-top: 15px;
    position: relative;
    height: 40px;
}

.confetti {
    position: absolute;
    color: #FFD93D;
    font-size: 1.5rem;
    animation: confettiFall 3s ease-in-out infinite;
}

.confetti:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.confetti:nth-child(2) {
    left: 50%;
    animation-delay: 0.5s;
}

.confetti:nth-child(3) {
    left: 80%;
    animation-delay: 1s;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(40px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes impostorApproach {
    0% { 
        transform: scale(1) translateZ(0px);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.2) translateZ(20px);
        opacity: 1;
    }
    100% { 
        transform: scale(1) translateZ(0px);
        opacity: 0.8;
    }
}





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

/* Pac-Man Loader стилове */
.countdown-container {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pacman-loader {
    position: relative;
    margin-bottom: 20px;
}

.loader-wrapper {
    position: relative;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
}

.loader-wrapper .packman::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 25px;
    background-color: #EFF107;
    border-radius: 100px 100px 0 0;
    transform: translate(-50%, -50%);
    animation: pac-top 0.5s linear infinite;
    transform-origin: center bottom;
}

.loader-wrapper .packman::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 25px;
    background-color: #EFF107;
    border-radius: 0 0 100px 100px;
    transform: translate(-50%, 50%);
    animation: pac-bot 0.5s linear infinite;
    transform-origin: center top;
}

@keyframes pac-top {
    0% {
        transform: translate(-50%, -50%) rotate(0)
    }
    50% {
        transform: translate(-50%, -50%) rotate(-30deg)
    }
    100% {
        transform: translate(-50%, -50%) rotate(0)
    }
}

@keyframes pac-bot {
    0% {
        transform: translate(-50%, 50%) rotate(0)
    }
    50% {
        transform: translate(-50%, 50%) rotate(30deg)
    }
    100% {
        transform: translate(-50%, 50%) rotate(0)
    }
}

.dots .dot {
    position: absolute;
    z-index: -1;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
}

.dots .dot:nth-child(1) {
    left: 90px;
    animation: dot-stage1 0.5s infinite;
}

.dots .dot:nth-child(2) {
    left: 60px;
    animation: dot-stage1 0.5s infinite;
}

.dots .dot:nth-child(3) {
    left: 30px;
    animation: dot-stage1 0.5s infinite;
}

.dots .dot:nth-child(4) {
    left: 10px;
    animation: dot-stage2 0.5s infinite;
}

@keyframes dot-stage1 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-24px, 0);
    }
}

@keyframes dot-stage2 {
    0% {
        transform: scale(1);
    }
    5%, 100% {
        transform: scale(0);
    }
}

.countdown {
    font-size: 8rem;
    font-weight: 800;
    color: #FF6B6B;
    animation: scale 1s infinite;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

.countdown-message {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 0 20px rgba(255, 255, 255, 1), 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-top: 20px;
    text-align: center;
    animation: pulse 1.5s ease-in-out infinite;
    background: rgba(255, 0, 0, 0.8);
    padding: 15px 30px;
    border-radius: 30px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

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

#results-screen {
    text-align: center;
    position: relative;
    padding: 30px;
    border-radius: 30px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

#results-screen::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 45px;
    z-index: -1;
    background: conic-gradient(
        #FF6B6B 0deg 90deg,
        #FFD93D 90deg 180deg,
        #6C5CE7 180deg 270deg,
        #00B894 270deg 360deg
    );
    filter: blur(20px) brightness(1.3);
    opacity: 0.9;
    animation: resultsGlow 4s ease-in-out infinite;
}

@keyframes resultsGlow {
    0% { filter: blur(20px) brightness(1.3); opacity: 0.9; }
    50% { filter: blur(30px) brightness(1.6); opacity: 1; }
    100% { filter: blur(20px) brightness(1.3); opacity: 0.9; }
}

#results-screen h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

#results-screen h2::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 20px;
    z-index: -1;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #6C5CE7);
    filter: blur(15px);
    opacity: 0.7;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0% { filter: blur(15px); opacity: 0.7; }
    50% { filter: blur(25px); opacity: 1; }
    100% { filter: blur(15px); opacity: 0.7; }
}

#results-list {
    margin: 30px 0;
    text-align: left;
    position: relative;
    z-index: 2;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.result-item .player-name {
    font-weight: 700;
    color: #fff;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.result-item .score {
    font-weight: 800;
    color: #FFD93D;
    font-size: 1.3rem;
    text-shadow: 0 0 15px rgba(255, 217, 61, 0.8);
}

#new-game {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    font-size: 1.4rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    font-weight: 700;
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

#new-game:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}

#new-game:active {
    transform: translateY(-1px) scale(1.02);
}

/* Модален прозорец */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 40, 0.95) 50%, rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease-out;
}

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

.modal-content {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 40px 30px;
    border-radius: 25px;
    max-width: 600px;
    width: 90vw;
    margin: auto;
    position: relative;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    animation: modalContentSlideIn 0.4s ease-out;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF6B6B, #FFD93D, #6C5CE7, #00B894, #FF6B6B);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes modalContentSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

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

/* Специални стилове за login модала */
#login-modal .modal-content {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    color: #FF6B6B;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    backdrop-filter: blur(10px);
}

.close-modal:hover {
    color: #fff;
    background: rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.6);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

/* Специални стилове за close бутона в login модала */
#login-modal .close-modal {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    top: 10px;
    right: 15px;
}

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

#login-modal .close-modal:hover {
    color: #FF6B6B;
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.9);
}

.rules-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #FFD93D;
    font-size: 1.3em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(255, 217, 61, 0.5);
    position: relative;
    padding-left: 35px;
}

.rules-content h3::before {
    content: '🎮';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.1); }
}

.rules-content ul, .rules-content ol {
    margin-left: 1.5em;
    margin-bottom: 1.5em;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.rules-content li {
    margin-bottom: 0.8em;
    padding: 8px 0;
    color: #e0e0e0;
    line-height: 1.6;
    position: relative;
    padding-left: 25px;
}

.rules-content li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 8px;
    color: #FF6B6B;
    font-size: 0.8em;
    animation: listItemPulse 2s ease-in-out infinite;
}

.rules-content p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1em;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid #6C5CE7;
}

@keyframes listItemPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Стилове за заглавието на модала */
.modal-content h2 {
    color: #FFD93D;
    font-size: 2.2em;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 30px rgba(255, 217, 61, 0.8),
        2px 2px 0 rgba(0, 0, 0, 0.8);
    position: relative;
    padding-bottom: 15px;
}

.modal-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #FF6B6B, #FFD93D, #6C5CE7);
    border-radius: 2px;
    animation: titleUnderline 3s ease-in-out infinite;
}

@keyframes titleUnderline {
    0%, 100% { width: 100px; }
    50% { width: 150px; }
}

@media (max-width: 600px) {
    .container {
        padding: 15px 3vw 25px 3vw;
        margin-top: 20px;
    }
    .logo {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }
    .logo span {
        font-size: 2.5rem;
    }
    .image-card {
        max-width: 90vw;
        width: 90vw;
    }
    .image-card img {
        height: 250px;
        width: 100%;
        object-fit: cover;
    }
    .modal-content {
        padding: 25px 15px;
        margin: 10px;
        max-width: 95vw;
    }
    .player-selection-container {
        padding: 20px 15px;
        border-radius: 15px;
        max-width: 95vw;
        width: 95vw;
        min-width: 0;
        margin: 15px auto;
        box-sizing: border-box;
    }
    .player-selection-container h2 {
        padding: 25px 35px 25px 55px;
        font-size: 1.6rem;
        border-radius: 25px;
        margin-bottom: 20px;
        letter-spacing: 1px;
    }
    
    .player-selection-container h2::before {
        display: none;
    }
    .player-selection-container .player-count-container {
        padding: 15px 10px;
        border-radius: 12px;
        gap: 15px;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .count-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        border-radius: 12px;
    }
    #player-count {
        font-size: 1.8rem;
        min-width: 40px;
        padding: 8px 12px;
        border-radius: 8px;
    }
    body {
        overflow-x: hidden;
        padding-top: 10px;
    }
}

/* Нови стилове за бутона "Следващ играч" */
.next-player-btn-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    --color-text: #ffffff;
    --color-background: #ff135a;
    --color-outline: #ff145b80;
    --color-shadow: #00000080;
}

.next-player-btn-content {
    display: flex;
    align-items: center;
    padding: 5px 30px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 30px;
    color: var(--color-text);
    background: var(--color-background);
    transition: 1s;
    border-radius: 100px;
    box-shadow: 0 0 0.2em 0 var(--color-background);
    border: none;
    cursor: pointer;
}

.next-player-btn-content:hover, .next-player-btn-content:focus {
    transition: 0.5s;
    -webkit-animation: next-player-btn-content 1s;
    animation: next-player-btn-content 1s;
    outline: 0.1em solid transparent;
    outline-offset: 0.2em;
    box-shadow: 0 0 0.4em 0 var(--color-background);
}

.next-player-btn-content .next-player-icon-arrow {
    transition: 0.5s;
    margin-right: 0px;
    transform: scale(0.6);
}

.next-player-btn-content:hover .next-player-icon-arrow {
    transition: 0.5s;
    margin-right: 25px;
}

.next-player-icon-arrow {
    width: 20px;
    margin-left: 15px;
    position: relative;
    top: 6%;
}

/* SVG анимации */
#arrow-icon-one {
    transition: 0.4s;
    transform: translateX(-60%);
}

#arrow-icon-two {
    transition: 0.5s;
    transform: translateX(-30%);
}

.next-player-btn-content:hover #arrow-icon-three {
    animation: color_anim 1s infinite 0.2s;
}

.next-player-btn-content:hover #arrow-icon-one {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.6s;
}

.next-player-btn-content:hover #arrow-icon-two {
    transform: translateX(0%);
    animation: color_anim 1s infinite 0.4s;
}

/* SVG анимации */
@keyframes color_anim {
    0% {
        fill: white;
    }
    50% {
        fill: var(--color-background);
    }
    100% {
        fill: white;
    }
}

/* Бутон анимации */
@-webkit-keyframes next-player-btn-content {
    0% {
        outline: 0.2em solid var(--color-background);
        outline-offset: 0;
    }
}

@keyframes next-player-btn-content {
    0% {
        outline: 0.2em solid var(--color-background);
        outline-offset: 0;
    }
}

.next-round-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    z-index: 1000;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.9), 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
    background: conic-gradient(
        #FF6B6B 0deg 90deg,
        #FFD93D 90deg 180deg,
        #6C5CE7 180deg 270deg,
        #00B894 270deg 360deg
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.next-round-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 1));
}

.next-round-message.hide {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.6)) blur(5px);
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 4px 0 3px 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.footer p {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
}

.footer .brand {
    color: #667eea;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    font-family: 'Arial Black', sans-serif;
}

.player-selection-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    padding: 30px 50px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    width: fit-content;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}



.player-selection-container h2::before {
    content: '';
    display: none;
}

.player-selection-container h2 {
    margin-bottom: 25px;
    margin-top: 0;
    padding: 30px 60px 30px 80px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 2.4rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.player-selection-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #FF6B6B 20%, 
        #FFD93D 40%, 
        #6C5CE7 60%, 
        #00B894 80%, 
        transparent 100%);
    animation: moveLine 3s linear infinite;
    box-shadow: 
        0 0 10px rgba(255, 107, 107, 0.8),
        0 0 20px rgba(255, 217, 61, 0.6),
        0 0 30px rgba(108, 92, 231, 0.4),
        0 0 40px rgba(0, 184, 148, 0.2);
}

/* Анимацията titleGlow е премахната - използваме само moveLine */

@keyframes playersIcon {
    0%, 100% { 
        transform: translateY(-50%) scale(1) rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    }
    25% { 
        transform: translateY(-50%) scale(1.1) rotate(5deg);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
    }
    50% { 
        transform: translateY(-50%) scale(1) rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    }
    75% { 
        transform: translateY(-50%) scale(1.1) rotate(-5deg);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
    }
}

/* Shimmer анимацията е премахната - използваме moveLine */

.player-selection-container h2:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.player-selection-container .player-count-container {
    margin: 0;
    padding: 30px 50px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.falling-emoji {
    position: fixed;
    top: -50px;
    font-size: 2rem;
    z-index: 1000;
    pointer-events: none;
    animation: fallDown 3s linear forwards;
    opacity: 0.8;
}

@keyframes fallDown {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.emoji-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}



.setup-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.detective-logo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.detective-logo:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.detective-logo.left {
    left: -120px;
}

.detective-logo .logo-icon {
    font-size: 2rem;
    color: #4ECDC4;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.impostor-logo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.impostor-logo:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.impostor-logo.right {
    right: -120px;
}

.impostor-logo .logo-icon {
    font-size: 2rem;
    color: #FF6B6B;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

/* Добавяме tooltip ефект */
.detective-logo::after,
.impostor-logo::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.detective-logo:hover::after,
.impostor-logo:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -50px;
}

/* Бутон за избор на език */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 20px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.language-btn i {
    font-size: 18px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-option .flag {
    font-size: 20px;
}

.language-option.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Модален прозорец за първоначално съобщение */
.welcome-content {
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.welcome-header {
    margin-bottom: 25px;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    animation: pulse 2s infinite;
}

.welcome-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.welcome-header p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.primary-btn {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.secondary-btn {
    background: linear-gradient(45deg, #6C5CE7, #00B894);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.secondary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

/* Модален прозорец за регистрация */
.registration-content {
    max-width: 500px;
    width: 90%;
    max-height: 95vh;
    overflow-y: auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.registration-header {
    text-align: center;
    margin-bottom: 30px;
}

.registration-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.registration-header p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4ECDC4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
    transform: translateY(-2px);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #4ECDC4;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

.form-actions {
    margin-top: 20px;
    text-align: center;
}

.register-btn {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
    width: 100%;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.register-btn:active {
    transform: translateY(-1px);
}

.registration-footer {
    position: relative;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

.registration-footer p {
    position: relative;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

#login-link, .login-link-btn {
    pointer-events: auto !important;
    z-index: 10000 !important;
    color: #00fff7 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    display: inline-block !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    background: none !important;
    transition: all 0.3s ease !important;
}

#login-link:hover, .login-link-btn:hover {
    color: #ffffff !important;
    background: rgba(0, 255, 247, 0.2) !important;
    text-shadow: 0 0 10px #00fff7 !important;
}

/* Анимация за появяване на регистрационния модал */
.registration-modal.show {
    animation: slideInUp 0.5s ease-out;
}

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

/* Модален прозорец за вход */
/* Нови стилове за анимираната login форма */
.login-content {
    background: transparent;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    margin: 20px auto;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    max-height: none;
    overflow-y: visible;
}

/* Мобилни стилове за login-content */
@media (max-width: 768px) {
    .login-content {
        padding: 20px;
        max-width: 95%;
        width: 95%;
        margin: 10px auto;
    }
}

@media (max-width: 480px) {
    .login-content {
        padding: 15px;
        max-width: 98%;
        width: 98%;
        margin: 5px auto;
    }
}

#Container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

#rays {
    z-index: 2;
    position: relative;
    bottom: -1.5em;
    animation: rays 2s ease-in-out infinite;
}

.form {
    position: relative;
    top: 5em;
    padding: 4%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    border: 4px solid #fff;
    background: rgba(0, 255, 240, 0.52);
    box-shadow: 0px 0px 64px 0px #82e1ff inset, 0px 0px 16px #a8fffaa6;
    backdrop-filter: blur(3.5px);
    gap: 1em;
    animation: float 2s ease-in-out infinite;
}

#login-lable {
    text-align: center;
    color: white;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 8px;
    text-shadow: 0px 0px 16px rgb(243, 243, 243);
}

.form-content {
    height: 3em;
    padding: 1px 8px;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: bold;
    border-radius: 6px;
    border: 2px solid #fff;
    background: rgba(139, 255, 247, 0.486);
    box-shadow: 0px 0px 1px 3px #9ee5e3 inset, 0px 4px 4px 0px #181a6040;
    text-shadow: 0px 1px 4px rgb(243, 243, 243);
}

.form-content:focus-visible {
    outline: none;
    text-decoration: none;
    background: rgba(139, 189, 255, 0.59);
    box-shadow: 0px 0px 1px 4px #9ee5e3;
}

.form-content:hover {
    background: rgba(139, 189, 255, 0.59);
}

.form-content::placeholder {
    font-weight: 300;
    color: white;
    letter-spacing: 0.1rem;
    text-shadow: 0px 1px 5px rgb(66, 66, 66);
}

.form button {
    cursor: pointer;
    height: 3.5rem;
    padding: 0%;
    color: white;
    font-size: 1.5em;
    letter-spacing: 0.3rem;
    border: 2px solid white;
    background: linear-gradient(144deg, #9c11ffce, #2000eeb6 50%, #15efffbb);
}

.form button:hover {
    position: relative;
    bottom: 4px;
    background: linear-gradient(144deg, #9c11ff, #2000ee 50%, #15fff3);
    box-shadow: 0px 0px 2px 2px #ffffff;
}

@keyframes float {
    0% {
        position: relative;
    }

    50% {
        top: 50px;
    }

    100% {
        position: relative;
    }
}

@keyframes rays {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.login-footer p {
    color: #666;
    font-size: 0.95rem;
}

.login-footer a {
    color: #4ECDC4;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #FF6B6B;
}

/* Анимация за появяване на login модала */
.login-modal.show {
    animation: slideInUp 0.5s ease-out;
}

/* Панел за профил горе в ляво */
.profile-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    width: fit-content;
    min-width: auto;
    max-width: calc(100% - 100px);
    padding: 12px 20px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 2px solid rgba(255,255,255,0.2);
}

.profile-info {
    gap: 5px;
    flex-wrap: wrap;
}

.profile-info i {
    font-size: 1rem;
}

.profile-info #profile-username {
    font-size: 0.9rem;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-btn {
    padding: 4px 8px;
    font-size: 0.7rem;
    margin: 0 1px;
    min-width: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.profile-actions {
    gap: 3px;
    flex-wrap: wrap;
}

.profile-info.hidden {
    display: none !important;
}

.profile-actions.hidden {
    display: none !important;
}

@media (max-width: 600px) {
    .profile-panel {
        top: 2px;
        left: 2px;
        width: fit-content;
        min-width: auto;
        padding: 2px 3px;
    }
    .profile-info i {
        font-size: 0.8rem;
    }
    .profile-btn {
        padding: 1px 3px;
        font-size: 0.5rem;
    }
}

/* Responsive дизайн за регистрация и вход */
@media (max-width: 600px) {
    .registration-content,
    .login-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }
    
    .registration-header h2,
    .login-header h2 {
        font-size: 2rem;
    }
    
    /* Responsive стилове за новата login форма */
    .form {
        top: 3em;
        padding: 3%;
        gap: 0.8em;
    }
    
    #login-lable {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }
    
    .form-content {
        height: 2.5em;
        font-size: 0.9rem;
    }
    
    .form button {
        height: 3rem;
        font-size: 1.2em;
        letter-spacing: 0.2rem;
    }
    
    #rays {
        bottom: -1em;
    }
    
    #rays svg {
        height: 6em;
        width: 12em;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
}

.login-link-btn {
    background: none !important;
    border: none !important;
    color: #00fff7 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    font-size: inherit !important;
    font-family: inherit !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
}

.login-link-btn:hover {
    color: #ffffff !important;
    background-color: rgba(0, 255, 247, 0.2) !important;
    text-shadow: 0 0 10px #00fff7 !important;
}

.login-link-btn:focus {
    outline: 2px solid #00fff7 !important;
    outline-offset: 2px !important;
}

/* Responsive дизайн за мобилни устройства */
@media (max-width: 768px) {
    body {
        padding-top: 10px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .container {
        max-width: 100%;
        padding: 15px;
        margin-top: 20px; /* По-малко място, тъй като няма профилен панел */
    }
    
    .logo {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    .logo span {
        font-size: 2.5rem;
    }
    
    /* Профилен панел - скрит на мобилни устройства */
    .profile-panel {
        display: none;
    }
    
    /* Икони за детектив и импостор - по-големи за мобилни */
    .detective-logo,
    .impostor-logo {
        width: 100px;
        height: 100px;
        margin: 15px;
    }
    
    .detective-logo .logo-icon,
    .impostor-logo .logo-icon {
        font-size: 1.5rem;
    }
    
    /* Setup content - по-компактен */
    .setup-content {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .player-selection-container {
        order: 2;
        margin: 10px 0;
    }
    
    .detective-logo.left {
        order: 1;
        position: static;
        transform: none;
    }
    
    .impostor-logo.right {
        order: 3;
        position: static;
        transform: none;
    }
    
    /* Бутони - по-големи за мобилни */
    .btn {
        padding: 15px 25px;
        font-size: 1.2rem;
        margin: 8px;
        border-radius: 15px;
    }
    
    /* Responsive стилове за анимирания бутон */
    .animated-button {
        min-width: 350px;
        min-height: 120px;
        font-size: 28px;
        gap: 20px;
        border-radius: 25px;
        padding: 0 35px;
    }
    
    .animated-button svg {
        width: 40px;
        height: 40px;
    }
    
    /* Responsive стилове за бутона за правилата */
    .btn-rules {
        width: 16rem;
        height: 4rem;
        border-radius: 25px;
    }
    
    .btn-rules strong {
        font-size: 16px;
        letter-spacing: 1.5px;
    }
    
    #glow-rules {
        width: 16rem;
        border-radius: 25px;
    }
    
    /* Facebook бутон - responsive */
    .facebook-button-wrapper {
        bottom: 50px;
        right: 15px;
    }
    
    .modern-facebook-button {
        padding: 8px;
        border-radius: 8px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .modern-facebook-button:hover {
        border-radius: 50%;
    }
    
    .facebook-tooltip {
        display: block;
    }
    
    /* Responsive стилове за Pac-Man loader */
    .countdown-container {
        height: 300px;
    }
    
    .loader-wrapper .packman::before,
    .loader-wrapper .packman::after {
        width: 50px;
        height: 25px;
    }
    
    .dots .dot {
        width: 12px;
        height: 12px;
        top: 8px;
    }
    
    .dots .dot:nth-child(1) { left: 80px; }
    .dots .dot:nth-child(2) { left: 60px; }
    .dots .dot:nth-child(3) { left: 35px; }
    .dots .dot:nth-child(4) { left: 15px; }
    
    .countdown {
        font-size: 8rem;
        font-weight: 900;
    }
    
    .countdown-message {
        font-size: 1.3rem;
        padding: 12px 25px;
        margin-top: 15px;
        background: rgba(255, 0, 0, 0.9);
        border: 2px solid rgba(255, 255, 255, 0.9);
        box-shadow: 0 0 25px rgba(255, 0, 0, 0.7);
    }
    
    /* Модали - по-добре позиционирани */
    .modal-content {
        width: 95%;
        max-width: 400px;
        margin: 10px auto;
        padding: 20px;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 15px;
    }
    
    .registration-content,
    .login-content {
        width: 95%;
        padding: 15px;
        margin: 10px auto;
        border-radius: 15px;
    }
    
    .registration-header h2,
    .login-header h2 {
        font-size: 1.6rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 15px;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    /* Language selector - по-малък и по-наляво */
    .language-selector {
        top: 2px;
        right: 40px;
    }
    
    .language-btn {
        width: 25px;
        height: 25px;
        font-size: 0.5rem;
        padding: 4px 6px;
    }
    
    .language-dropdown {
        top: 25px;
        right: 0;
        min-width: 80px;
    }
    
    /* Game controls - по-големи бутони */
    .game-controls {
        flex-direction: column;
        gap: 25px;
        padding: 20px;
    }
    
    .game-controls .btn {
        width: 100%;
        margin: 8px 0;
        padding: 18px 30px;
        font-size: 1.3rem;
        border-radius: 15px;
        min-height: 60px;
    }
    
    /* Responsive стилове за новия бутон "Следващ играч" */
    .next-player-btn-content {
        font-size: 32px;
        padding: 15px 35px;
        border-radius: 30px;
        min-width: 280px;
        min-height: 70px;
    }
    
    .next-player-icon-arrow {
        width: 28px;
        margin-left: 20px;
    }
    
    /* Responsive стилове за новия бутон "Смени рунда" */
    .change-round-submit {
        width: 280px;
        height: 70px;
        font-size: 20px;
        border-radius: 20px;
        min-width: 280px;
    }
    
    .change-round-submit:after,
    .change-round-submit:before {
        font-size: 20px;
    }
    
    /* Responsive стилове за новия бутон за текущия играч */
    .current-player-button {
        font-size: 18px;
        padding: 0.8em 1.5em;
    }
    
    /* Image cards - по-големи за мобилни */
    .image-card {
        max-width: 90vw;
        max-height: 300px;
        border-radius: 15px;
    }
    
    .image-card img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        border-radius: 15px;
    }
    
    /* Съобщения за импостъра - по-малки за да са като картинките */
    .impostor-message {
        font-size: 1.6rem;
        padding: 1.5rem;
        max-width: 300px;
        border-radius: 15px;
    }
    
    .impostor-icon {
        font-size: 3rem;
    }
    
    .reveal-impostor-btn {
        font-size: 1.1rem;
        padding: 12px 25px;
        min-width: 260px;
    }
    
    .impostor-reveal-content p {
        font-size: 1.2rem;
    }
    
    .impostor-name {
        font-size: 1.8rem;
        padding: 8px 15px;
    }
    
    /* Таймер - по-голям за мобилни */
    #timer {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    /* Game start screen - по-добре позициониран */
    .game-start-screen {
        padding: 20px;
        box-sizing: border-box;
    }
    
    .game-start-text {
        font-size: 3rem;
        letter-spacing: 3px;
        text-align: center;
        word-wrap: break-word;
        max-width: 100%;
        padding: 0 10px;
    }
    
    /* Footer - по-малък за мобилни устройства */
    .footer {
        padding: 8px;
    }
    
    .footer p {
        font-size: 0.7rem;
    }
    
    .footer .brand {
        font-size: 0.7rem;
    }
}

/* Още по-малки екрани */
@media (max-width: 480px) {
    .container {
        padding: 10px;
        margin-top: 50px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .logo span {
        font-size: 2rem;
    }
    
    /* Responsive стилове за анимирания бутон на малки екрани */
    .animated-button {
        min-width: 300px;
        min-height: 90px;
        font-size: 22px;
        gap: 15px;
        padding: 0 25px;
        border-radius: 20px;
    }
    
    .animated-button svg {
        width: 30px;
        height: 30px;
    }
    
    /* Responsive стилове за бутона за правилата на малки екрани */
    .btn-rules {
        width: 12rem;
        height: 3rem;
        border-radius: 15px;
    }
    
    .btn-rules strong {
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    #glow-rules {
        width: 12rem;
        border-radius: 15px;
    }
    
    /* Facebook бутон - responsive за малки екрани */
    .facebook-button-wrapper {
        bottom: 45px;
        right: 10px;
    }
    
    .modern-facebook-button {
        padding: 8px;
        border-radius: 8px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .modern-facebook-button:hover {
        border-radius: 50%;
    }
    
    .facebook-tooltip {
        display: block;
    }
    
    /* Responsive стилове за Pac-Man loader на малки екрани */
    .countdown-container {
        height: 200px;
    }
    
    .loader-wrapper .packman::before,
    .loader-wrapper .packman::after {
        width: 30px;
        height: 15px;
    }
    
    .dots .dot {
        width: 6px;
        height: 6px;
        top: 4px;
    }
    
    .dots .dot:nth-child(1) { left: 55px; }
    .dots .dot:nth-child(2) { left: 40px; }
    .dots .dot:nth-child(3) { left: 20px; }
    .dots .dot:nth-child(4) { left: 6px; }
    
    .countdown {
        font-size: 4rem;
    }
    
    .countdown-message {
        font-size: 1rem;
        padding: 10px 20px;
        margin-top: 10px;
        background: rgba(255, 0, 0, 0.95);
        border: 2px solid rgba(255, 255, 255, 1);
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    }
    
    /* Responsive стилове за новата login форма на малки екрани */
    .form {
        top: 0.5em;
        padding: 2%;
        gap: 0.4em;
        max-width: 95vw;
        width: 95vw;
    }
    
    #login-lable {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    .form-content {
        height: 1.8em;
        font-size: 0.8rem;
    }
    
    .form button {
        height: 2rem;
        font-size: 0.8rem;
        letter-spacing: 0.1rem;
    }
    
    #rays {
        bottom: -0.2em;
    }
    
    #rays svg {
        height: 2.5em;
        width: 5em;
    }
    
    .profile-panel {
        display: none;
    }
    
    .detective-logo,
    .impostor-logo {
        width: 50px;
        height: 50px;
        margin: 5px;
    }
    
    .detective-logo .logo-icon,
    .impostor-logo .logo-icon {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
        border-radius: 12px;
        min-height: 50px;
    }
    
    .player-selection-container h2 {
        font-size: 1.2rem;
        padding: 20px 25px 20px 40px;
        border-radius: 20px;
        margin-bottom: 15px;
        letter-spacing: 0.5px;
    }
    
    .player-selection-container h2::before {
        display: none;
    }
    
    /* Responsive стилове за новия бутон "Следващ играч" на малки екрани */
    .next-player-btn-content {
        font-size: 24px;
        padding: 10px 25px;
        margin-bottom: 20px;
        min-width: 250px;
        min-height: 60px;
        border-radius: 25px;
    }
    
    .next-player-icon-arrow {
        width: 20px;
        margin-left: 15px;
    }
    
    /* Responsive стилове за новия бутон "Смени рунда" на малки екрани */
    .change-round-submit {
        width: 250px;
        height: 60px;
        font-size: 18px;
        margin-top: 20px;
        border-radius: 15px;
        min-width: 250px;
    }
    
    .change-round-submit:after,
    .change-round-submit:before {
        font-size: 18px;
    }
    
    /* Responsive стилове за новия бутон за текущия играч на малки екрани */
    .current-player-button {
        font-size: 16px;
        padding: 0.6em 1.2em;
    }
    
    /* Game controls за малки екрани */
    .game-controls {
        gap: 20px;
        padding: 15px;
    }
    
    .game-controls .btn {
        padding: 15px 25px;
        font-size: 1.1rem;
        min-height: 55px;
    }
    
    .modal-content {
        width: 98%;
        padding: 12px;
        margin: 5px auto;
        max-height: 80vh;
    }
    
    .registration-content,
    .login-content {
        width: 98%;
        padding: 12px;
        margin: 5px auto;
    }
    
    .registration-header h2,
    .login-header h2 {
        font-size: 1.4rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    /* Language selector - още по-малък */
    .language-selector {
        top: 2px;
        right: 40px;
    }
    
    .language-btn {
        width: 25px;
        height: 25px;
        font-size: 0.5rem;
        padding: 4px 6px;
    }
    
    .language-dropdown {
        top: 25px;
        right: 0;
        min-width: 80px;
    }
    
    /* Game start screen - още по-малък */
    .game-start-text {
        font-size: 2.5rem;
        letter-spacing: 2px;
        padding: 0 15px;
    }
    
    /* Footer - още по-малък за малки екрани */
    .footer {
        padding: 5px;
    }
    
    .footer p {
        font-size: 0.6rem;
    }
    
    .footer .brand {
        font-size: 0.6rem;
    }
    
    .reveal-impostor-btn {
        font-size: 1rem;
        padding: 10px 20px;
        min-width: 220px;
    }
    
    /* Съобщения за импостъра - още по-малки на най-малки екрани */
    .impostor-message {
        font-size: 1.4rem;
        padding: 1rem;
        max-width: 250px;
        border-radius: 12px;
    }
    
    .impostor-icon {
        font-size: 2.5rem;
    }
    
    .impostor-reveal-content p {
        font-size: 1.1rem;
    }
    
    .impostor-name {
        font-size: 1.5rem;
        padding: 6px 12px;
    }
}

/* Модални съобщения */
.message-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message-modal.show {
    opacity: 1;
}

.message-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.message-modal.show .message-content {
    transform: scale(1);
}

.message-content.error {
    border-left: 5px solid #ff4757;
}

.message-content.success {
    border-left: 5px solid #2ed573;
}

.message-content.info {
    border-left: 5px solid #3742fa;
}

.message-text {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

.message-close-btn {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.message-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

/* Responsive дизайн за съобщения */
@media (max-width: 768px) {
    .message-content {
        padding: 25px;
        width: 95%;
    }
    
    .message-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .message-content {
        padding: 20px;
        width: 98%;
    }
    
    .message-text {
        font-size: 0.9rem;
    }
    
    .message-close-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Административен панел */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-modal.show {
    opacity: 1;
}

.admin-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    max-width: 90%;
    width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.admin-modal.show .admin-panel {
    transform: scale(1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.admin-header h2 {
    font-size: 2rem;
    color: #333;
    margin: 0;
}

.close-admin-btn {
    background: #ff4757;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-admin-btn:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

.tab-btn {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.tab-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

.tab-btn.active {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Таблица с потребители */
.users-table {
    overflow-x: auto;
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.users-table th,
.users-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.users-table th {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
}

.users-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

.admin-btn {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 2px;
}

.admin-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.admin-btn.small {
    padding: 5px 8px;
    font-size: 0.9rem;
}

.admin-btn.danger:hover {
    background: #ff4757;
    color: white;
}

/* Логове на активности */
.logs-container {
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.log-entry {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: #666;
    font-size: 0.9rem;
    min-width: 150px;
}

.log-user {
    font-weight: 600;
    color: #333;
    min-width: 120px;
}

.log-action {
    color: #555;
    flex: 1;
}

/* Детайлна статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-item h4 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 1rem;
}

.stat-item p {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: #333;
}

/* Админ бутон в профилния панел */
.admin-btn {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

/* Responsive дизайн за админ панел */
@media (max-width: 768px) {
    .admin-panel {
        width: 95%;
        padding: 20px;
        max-height: 95vh;
    }
    
    .admin-header h2 {
        font-size: 1.5rem;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .admin-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .users-table {
        font-size: 0.9rem;
    }
    
    .users-table th,
    .users-table td {
        padding: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .log-entry {
        flex-direction: column;
        gap: 5px;
    }
    
    .log-time,
    .log-user {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .admin-panel {
        width: 98%;
        padding: 15px;
    }
    
    .admin-header h2 {
        font-size: 1.3rem;
    }
    
    .close-admin-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .users-table {
        font-size: 0.8rem;
    }
    
    .users-table th,
    .users-table td {
        padding: 8px;
    }
    
    .admin-btn.small {
        padding: 3px 6px;
        font-size: 0.8rem;
    }
}

/* Екран за край на играта */
.game-end-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-end-modal.show {
    opacity: 1;
}

.game-end-screen {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    max-width: 90%;
    width: 500px;
}

.game-end-modal.show .game-end-screen {
    transform: scale(1);
}

.game-end-content h2 {
    font-size: 2.5rem;
    color: #333;
    margin: 0 0 20px 0;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-end-content p {
    font-size: 1.2rem;
    color: #666;
    margin: 0 0 30px 0;
}

.game-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.stat {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.game-end-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

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

.game-btn.primary {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.game-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.game-btn.secondary {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.game-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Responsive дизайн за екрана за край на играта */
@media (max-width: 768px) {
    .game-end-screen {
        width: 95%;
        padding: 30px;
    }
    
    .game-end-content h2 {
        font-size: 2rem;
    }
    
    .game-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .game-end-buttons {
        flex-direction: column;
    }
    
    .game-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .game-end-screen {
        width: 98%;
        padding: 20px;
    }
    
    .game-end-content h2 {
        font-size: 1.8rem;
    }
    
    .game-end-content p {
        font-size: 1rem;
    }
    
    .stat {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
}

/* Екран за внимание */
.attention-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 50%, #ff6b6b 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.attention-screen.show {
    opacity: 1;
}

.attention-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: attentionPulse 2s ease-in-out infinite;
}

@keyframes attentionPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 35px 70px rgba(0, 0, 0, 0.4); }
}

.attention-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: attentionShake 0.5s ease-in-out infinite;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

@keyframes attentionShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.attention-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 #000, -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000;
    animation: titleGlow 1.5s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 3px 3px 0 #000, -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 0 0 20px rgba(255, 255, 255, 0.5); }
    50% { text-shadow: 3px 3px 0 #000, -3px -3px 0 #000, 3px -3px 0 #000, -3px 3px 0 #000, 0 0 40px rgba(255, 255, 255, 0.8); }
}

.attention-message {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
}

.attention-submessage {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    color: #ffd700;
}

.attention-timer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.timer-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(255, 215, 0, 0.6); }
    50% { transform: scale(1.1); box-shadow: 0 0 50px rgba(255, 215, 0, 0.8); }
}

.timer-number {
    font-size: 3rem;
    font-weight: 900;
    color: #333;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.8);
}

/* Responsive дизайн за екрана за внимание */
@media (max-width: 768px) {
    .attention-content {
        max-width: 90%;
        padding: 30px 20px;
    }
    
    .attention-title {
        font-size: 2.5rem;
    }
    
    .attention-message {
        font-size: 1.5rem;
    }
    
    .attention-submessage {
        font-size: 1.2rem;
    }
    
    .attention-icon {
        font-size: 3rem;
    }
    
    .timer-circle {
        width: 100px;
        height: 100px;
    }
    
    .timer-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .attention-content {
        padding: 20px 15px;
    }
    
    .attention-title {
        font-size: 2rem;
    }
    
    .attention-message {
        font-size: 1.2rem;
    }
    
    .attention-submessage {
        font-size: 1rem;
    }
    
    .attention-icon {
        font-size: 2.5rem;
    }
    
    .timer-circle {
        width: 80px;
        height: 80px;
    }
    
    .timer-number {
        font-size: 2rem;
    }
}

.unlock-pro-btn {
  width: fit-content;
  display: flex;
  align-items: center;
  padding: 0.5em 0.9em;
  cursor: pointer;
  gap: 0.3rem;
  font-weight: bold;
  border-radius: 22px;
  text-shadow: 2px 2px 3px rgb(136 0 136 / 50%);
  background: linear-gradient(15deg, #880088, #aa2068, #cc3f47, #de6f3d, #f09f33, #de6f3d, #cc3f47, #aa2068, #880088) no-repeat;
  background-size: 300%;
  color: #fff;
  border: none;
  background-position: left center;
  box-shadow: 0 30px 10px -20px rgba(0,0,0,.2);
  transition: background .3s ease;
  font-size: 0.98rem;
  min-height: 36px;

}
.unlock-pro-btn:hover {
  background-size: 320%;
  background-position: right center;
}
.unlock-pro-btn:hover svg {
  fill: #fff;
}
.unlock-pro-btn svg {
  width: 18px;
  height: 18px;
  fill: #f09f33;
  transition: .3s ease;
}

#unlock-pro-wrapper {
  position: fixed;
  left: 20px;
  bottom: 80px;
  z-index: 10000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.unlock-pro-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: 20000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.unlock-pro-modal.show {
  opacity: 1;
  visibility: visible;
}

.unlock-pro-modal.show .unlock-pro-modal-content {
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.unlock-pro-modal-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 0;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
  min-width: 380px;
  max-width: 90vw;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.unlock-pro-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

.unlock-pro-modal-content::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.unlock-pro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0 24px;
  position: relative;
  z-index: 2;
}

.unlock-pro-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
  animation: crownGlow 2s ease-in-out infinite alternate;
}

.unlock-pro-icon i {
  font-size: 28px;
  color: #8b4513;
}

@keyframes crownGlow {
  0% { box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4); }
  100% { box-shadow: 0 8px 32px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.3); }
}

.close-unlock-pro-modal {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.close-unlock-pro-modal:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}
.unlock-pro-title {
  padding: 20px 24px 0 24px;
  position: relative;
  z-index: 2;
}

.unlock-pro-title h2 {
  color: white;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.unlock-pro-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.badge-text {
  color: #8b4513;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.unlock-pro-price {
  padding: 24px 24px 0 24px;
  position: relative;
  z-index: 2;
}

.price-container {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-currency {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: top;
}

.price-amount {
  color: white;
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  animation: priceGlow 3s ease-in-out infinite alternate;
}

@keyframes priceGlow {
  0% { text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
  100% { text-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.3); }
}

.price-period {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 500;
}

.unlock-pro-benefits {
  padding: 24px 24px 0 24px;
  position: relative;
  z-index: 2;
}

.unlock-pro-benefits h3 {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.benefits-list li {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 12px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.benefits-list li:nth-child(1) { animation-delay: 0.1s; }
.benefits-list li:nth-child(2) { animation-delay: 0.2s; }
.benefits-list li:nth-child(3) { animation-delay: 0.3s; }
.benefits-list li:nth-child(4) { animation-delay: 0.4s; }
.benefits-list li:nth-child(5) { animation-delay: 0.5s; }
.benefits-list li:nth-child(6) { animation-delay: 0.6s; }

.benefits-list li:hover {
  color: white;
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 -12px 12px -12px;
}

.benefits-list li i {
  color: #4ade80;
  font-size: 1.1rem;
  min-width: 20px;
  animation: checkPulse 2s ease-in-out infinite;
}

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

@keyframes checkPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.unlock-pro-payment {
  padding: 24px 24px 0 24px;
  position: relative;
  z-index: 2;
}

.payment-info {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.payment-info strong {
  color: white;
}

.revolut-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #0055ff, #00c3ff);
  color: white;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,85,255,0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.revolut-link:hover {
  background: linear-gradient(135deg, #00c3ff, #0055ff);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,85,255,0.4);
}

.revolut-link i {
  font-size: 1.2rem;
}

.unlock-pro-footer {
  padding: 20px 24px 24px 24px;
  position: relative;
  z-index: 2;
}

.guarantee {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.guarantee i {
  color: #4ade80;
  font-size: 1rem;
}

.hacker-loader {
  position: relative;
  width: 24em;
  height: 6em;
  background-color: #0a0a0a;
  border: 0.2em solid #00ff00;
  border-radius: 0.5em;
  padding: 1em;
  overflow: hidden;
  box-shadow: 0 0 1em rgba(0, 255, 0, 0.3);
  z-index: 99999;
}
.loader-text {
  text-align: center;
  margin-bottom: 1em;
}
.text-glitch {
  color: #00ff00;
  font-family: monospace;
  font-size: 1.5em;
  position: relative;
  display: inline-block;
}
.text-glitch::before,
.text-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0a0a0a;
  clip: rect(0, 0, 0, 0);
}
.text-glitch::before {
  left: -0.1em;
  text-shadow: 0.1em 0 #ff00ff;
  animation: glitch-effect 3s infinite linear alternate-reverse;
}
.text-glitch::after {
  left: 0.1em;
  text-shadow: -0.1em 0 #00ffff;
  animation: glitch-effect 2s infinite linear alternate-reverse;
}
.loader-bar {
  width: 100%;
  height: 0.5em;
  background-color: #003300;
  border-radius: 0.25em;
  position: relative;
  overflow: hidden;
}
.bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #00ff00;
  animation: bar-fill-animation 2s infinite ease-in-out;
}
.bar-glitch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(0, 255, 0, 0.2), transparent);
  background-size: 200% 200%;
  animation: bar-glitch-animation 2s infinite linear;
}
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 0.2em;
  height: 0.2em;
  background-color: #00ff00;
  border-radius: 50%;
  opacity: 0;
  animation: particle-animation 2s infinite linear;
}
.particle:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  top: 30%;
  left: 60%;
  animation-delay: 0.5s;
}
.particle:nth-child(3) {
  top: 70%;
  left: 30%;
  animation-delay: 1s;
}
.particle:nth-child(4) {
  top: 90%;
  left: 90%;
  animation-delay: 1.5s;
}
.particle:nth-child(5) {
  top: 50%;
  left: 50%;
  animation-delay: 2s;
}
@keyframes glitch-effect {
  0% { clip: rect(42px, 9999px, 44px, 0); }
  5% { clip: rect(12px, 9999px, 59px, 0); }
  10% { clip: rect(48px, 9999px, 29px, 0); }
  15.0% { clip: rect(42px, 9999px, 73px, 0); }
  20% { clip: rect(63px, 9999px, 27px, 0); }
  25% { clip: rect(34px, 9999px, 55px, 0); }
  30.0% { clip: rect(86px, 9999px, 73px, 0); }
  35% { clip: rect(20px, 9999px, 20px, 0); }
  40% { clip: rect(26px, 9999px, 60px, 0); }
  45% { clip: rect(25px, 9999px, 66px, 0); }
  50% { clip: rect(57px, 9999px, 98px, 0); }
  55.0% { clip: rect(5px, 9999px, 46px, 0); }
  60.0% { clip: rect(82px, 9999px, 31px, 0); }
  65% { clip: rect(54px, 9999px, 27px, 0); }
  70% { clip: rect(28px, 9999px, 99px, 0); }
  75% { clip: rect(45px, 9999px, 69px, 0); }
  80% { clip: rect(23px, 9999px, 85px, 0); }
  85.0% { clip: rect(54px, 9999px, 84px, 0); }
  90% { clip: rect(45px, 9999px, 47px, 0); }
  95% { clip: rect(37px, 9999px, 20px, 0); }
  100% { clip: rect(4px, 9999px, 91px, 0); }
}
@keyframes bar-fill-animation {
  0%, 100% { width: 0; }
  50% { width: 100%; }
}
@keyframes bar-glitch-animation {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}
@keyframes particle-animation {
  0% { opacity: 0; transform: translate(0, 0); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translate(2em, 2em); }
}

/* Responsive стилове за Unlock Pro модала */
@media (max-width: 768px) {
  .unlock-pro-modal-content {
    min-width: 320px;
    margin: 20px;
  }
  
  .unlock-pro-title h2 {
    font-size: 1.8rem;
  }
  
  .price-amount {
    font-size: 2.8rem;
  }
  
  .benefits-list li {
    font-size: 0.9rem;
  }
  
  .revolut-link {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  #unlock-pro-wrapper {
    bottom: 50px;
    left: 8px;
  }
  
  .unlock-pro-btn {
    width: 28px;
    height: 28px;
    padding: 3px;
    font-size: 0.5rem;
    min-height: 28px;
  }
  
  .unlock-pro-btn svg {
    width: 14px;
    height: 10px;
  }
  
  .unlock-pro-modal-content {
    min-width: 280px;
    margin: 10px;
  }
  
  .unlock-pro-header {
    padding: 20px 20px 0 20px;
  }
  
  .unlock-pro-icon {
    width: 50px;
    height: 50px;
  }
  
  .unlock-pro-icon i {
    font-size: 24px;
  }
  
  .unlock-pro-title {
    padding: 16px 20px 0 20px;
  }
  
  .unlock-pro-title h2 {
    font-size: 1.6rem;
  }
  
  .unlock-pro-price {
    padding: 20px 20px 0 20px;
  }
  
  .price-amount {
    font-size: 2.4rem;
  }
  
  .unlock-pro-benefits {
    padding: 20px 20px 0 20px;
  }
  
  .unlock-pro-benefits h3 {
    font-size: 1.1rem;
  }
  
  .benefits-list li {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  
  .unlock-pro-payment {
    padding: 20px 20px 0 20px;
  }
  
  .payment-info {
    font-size: 0.9rem;
  }
  
  .revolut-link {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  .unlock-pro-footer {
    padding: 16px 20px 20px 20px;
  }
  
  .guarantee {
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  #unlock-pro-wrapper {
    position: fixed;
    bottom: 50px;
    left: 10px;
    z-index: 1001;
  }
  
  .unlock-pro-btn {
    width: 32px;
    height: 32px;
    padding: 4px;
    border-radius: 50%;
    font-size: 0.6rem;
    min-height: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  
  .unlock-pro-btn svg {
    width: 16px;
    height: 12px;
  }
  
  .unlock-pro-btn span {
    display: none;
  }
  
  .unlock-pro-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
}

/* Image Loader Styles */
.image-card {
  position: relative;
  width: 420px;
  height: 280px;
  margin: 10px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-card img.loaded {
  opacity: 1;
}

.image-card .image-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  z-index: 10;
}

.image-card .image-loader svg {
  width: 100%;
  height: 100%;
}

.image-card .image-loader path {
  stroke: #FF6B6B;
  stroke-width: 0.6px;
  animation: dashArray 4s ease-in-out infinite,
    dashOffset 4s linear infinite;
}

@keyframes dashArray {
  0% {
    stroke-dasharray: 0 1 359 0;
  }
  50% {
    stroke-dasharray: 0 359 1 0;
  }
  100% {
    stroke-dasharray: 359 1 0 0;
  }
}

@keyframes dashOffset {
  0% {
    stroke-dashoffset: 365;
  }
  100% {
    stroke-dashoffset: 5;
  }
}

.image-loader-text {
  margin-top: 8px;
  text-align: center;
  color: #888;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  font-weight: 500;
  text-shadow: 0 1px 2px #fff, 0 0 2px #FF6B6B22;
}

/* Информативно балонче за ползите на регистрацията */
.registration-benefits-tooltip {
    position: relative;
    margin: 15px 0;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 200px;
    overflow-y: auto;
}

.registration-benefits-tooltip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4, #6C5CE7, #FFD93D);
    animation: gradientMove 3s ease-in-out infinite;
}

.registration-benefits-tooltip:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.tooltip-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    animation: pulse 2s infinite;
}

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

.tooltip-content {
    padding-right: 50px;
}

.tooltip-content h4 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tooltip-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tooltip-content li {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    font-size: 0.9rem;
}

.tooltip-content li:nth-child(1) { animation-delay: 0.1s; }
.tooltip-content li:nth-child(2) { animation-delay: 0.2s; }
.tooltip-content li:nth-child(3) { animation-delay: 0.3s; }
.tooltip-content li:nth-child(4) { animation-delay: 0.4s; }
.tooltip-content li:nth-child(5) { animation-delay: 0.5s; }

.tooltip-content li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tooltip-content li i {
    width: 16px;
    margin-right: 8px;
    color: #4ECDC4;
    font-size: 12px;
    flex-shrink: 0;
}

.tooltip-content li strong {
    color: #333;
    font-weight: 600;
    margin-right: 5px;
}

/* Анимация за появяване на елементите */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стилове за скролбара на балончето */
.registration-benefits-tooltip::-webkit-scrollbar {
    width: 6px;
}

.registration-benefits-tooltip::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.registration-benefits-tooltip::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    border-radius: 3px;
}

.registration-benefits-tooltip::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #FF5252, #26A69A);
}

/* Responsive дизайн за welcome модала */
@media (max-width: 768px) {
    .welcome-content {
        max-width: 95%;
        padding: 30px 20px;
    }
    
    .welcome-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .welcome-header h2 {
        font-size: 1.5rem;
    }
    
    .welcome-header p {
        font-size: 1rem;
    }
    
    .primary-btn, .secondary-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .welcome-content {
        max-width: 98%;
        padding: 25px 15px;
    }
    
    .welcome-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .welcome-header h2 {
        font-size: 1.3rem;
    }
    
    .welcome-header p {
        font-size: 0.9rem;
    }
    
    .primary-btn, .secondary-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Responsive дизайн за балончето */
@media (max-width: 768px) {
    .registration-benefits-tooltip {
        margin: 15px 0;
        padding: 12px;
        max-height: 180px;
    }
    
    .tooltip-content h4 {
        font-size: 0.95rem;
    }
    
    .tooltip-content li {
        font-size: 0.85rem;
        padding: 5px 8px;
    }
    
    .tooltip-icon {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .registration-benefits-tooltip {
        margin: 10px 0;
        padding: 10px;
    }
    
    .tooltip-content {
        padding-right: 40px;
    }
    
    .tooltip-content h4 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .tooltip-content li {
        font-size: 0.85rem;
        padding: 5px 8px;
        margin-bottom: 6px;
    }
    
    .tooltip-content li i {
        width: 16px;
        margin-right: 8px;
        font-size: 12px;
    }
    
    .tooltip-icon {
        width: 22px;
        height: 22px;
        font-size: 11px;
        top: 10px;
        right: 10px;
    }
}