@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Jaro:opsz@6..72&family=Rubik+Vinyl&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    width: 20.83vw;
    height: 31.25vw;
    background: linear-gradient(135deg, rgba(16, 17, 34, 0.98), rgba(26, 28, 58, 0.99));
    border-radius: 25px;
    margin-left: 50vw;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 0 100px rgba(138, 43, 226, 0.1);
    cursor: all-scroll;
}





.header {
    padding: 25px;
    text-align: center;
    background: linear-gradient(90deg, 
        rgba(31, 45, 62, 0.7) 0%,
        rgba(41, 67, 98, 0.7) 40%,
        rgba(41, 67, 98, 0.7) 60%,
        rgba(31, 45, 62, 0.7) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}



.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent);
    animation: shine 3s infinite;
    
}





@keyframes shine {
    to {
        transform: translateX(100%);
    }
}

.header h1 {
    color: #fff;
    font-size: 1.4em;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4),
                 0 4px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.content {
    bottom: 3vw;
    height: calc(100% - 140px);
    overflow-y: auto;
    padding: 25px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.content::-webkit-scrollbar {
    width: 6px;
}

.content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
}

.section {
    margin-bottom: 25px;
    display: none;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.section.active {
    display: block;
}

.card {
    background: rgba(255, 255, 255, 0.07);
    cursor: no-drop;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, 
        rgba(255, 255, 255, 0.1),
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.card:hover::before {
    opacity: 1;
}

.button {
    width: 100%;
    padding: 15px 20px;
    margin: 10px 0;
    background: linear-gradient(90deg,
        rgba(31, 45, 62, 0.8) 0%,
        rgba(41, 67, 98, 0.8) 40%,
        rgba(41, 67, 98, 0.8) 60%,
        rgba(31, 45, 62, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.button:hover::before {
    transform: translateX(100%);
}

.icon-wrapper {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(to right, rgba(255,255,255,0.2), transparent);
    animation: rotate 2s linear infinite;
}

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

.button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

.navigation {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(90deg,
        rgba(31, 45, 62, 0.8) 0%,
        rgba(41, 67, 98, 0.8) 40%,
        rgba(41, 67, 98, 0.8) 60%,
        rgba(31, 45, 62, 0.8) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-dots {
    display: flex;
    gap: 18px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 25px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dot.active {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.stat {
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.stat:hover::before {
    transform: translateX(100%);
}

/**/
.icon-wrapper {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.button:hover .icon-wrapper {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.button-text {
    flex-grow: 1;
    text-align: right;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg, rgba(21, 35, 52, 0.616) 0%, rgba(31, 57, 88, 0.705) 40%, rgba(31, 57, 88, 0.699) 60%, rgba(21, 35, 52, 0.692) 100%);
}

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

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


.navigation {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(90deg, rgba(21,35,52,0.4962359943977591) 0%, rgba(31,57,88,0.5) 40%, rgba(31,57,88,0.5) 60%, rgba(21,35,52,0.5) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-dots {
    display: flex;
    gap: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    top: -2px;
    left: -2px;
    transition: all 0.3s ease;
}

.dot.active {
    background: linear-gradient(90deg, rgba(21,35,52,0.4962359943977591) 0%, rgba(31,57,88,0.5) 40%, rgba(31,57,88,0.5) 60%, rgba(21,35,52,0.5) 100%);
    transform: scale(1.2);
}

.dot.active::after {
    border-color: rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

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

.stat {
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
}

/**/


.notification {
    background: rgb(21,35,52);
    background: linear-gradient(90deg, rgba(21,35,52,0.4962359943977591) 0%, rgba(31,57,88,0.5) 40%, rgba(31,57,88,0.5) 60%, rgba(21,35,52,0.5) 100%);
    width: 25vw;
    border-radius: 2vw;
    position: absolute;
    left: 70vw;
}

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

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.new-event {
    background: rgba(41, 128, 185, 0.3);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    margin-top: 0.5vw;
    margin-right: 1vw;
    width: 7vw;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid rgba(41, 128, 185, 0.5);
    box-shadow: 0 2px 10px rgba(41, 128, 185, 0.2);
}

.content {
    margin-top: 60px;
    position: relative;
}

.event-details {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.event-name, .participants {
    margin: 10px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    min-width: 100px;
}

.value {
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.key-instructions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.key {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.accept {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.accept:hover {
    background: rgba(46, 204, 113, 0.25);
    transform: translateY(-2px);
}

.decline {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.decline:hover {
    background: rgba(231, 76, 60, 0.25);
    transform: translateY(-2px);
}

.key-button {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 5px;
}



/*win*/

.winners-container {
    background: rgb(21,35,52);
    background: linear-gradient(90deg, rgba(21,35,52,0.4962359943977591) 0%, rgba(31,57,88,0.5) 40%, rgba(31,57,88,0.5) 60%, rgba(21,35,52,0.5) 100%);
    width: 25vw;
    border-radius: 2vw;
    position: absolute;
    left: 70vw;
    padding: 25px;
    color: #ffffff;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.title {
    text-align: center;
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2em;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.winner {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

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

.winner:hover::before {
    left: 100%;
}

.winner:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.1);
}

.place {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.name {
    font-size: 1.1em;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    margin-right: 25px;
}

#first {
    background: linear-gradient(45deg, rgba(255,215,0,0.1), rgba(255,215,0,0.05));
}

#second {
    background: linear-gradient(45deg, rgba(192,192,192,0.1), rgba(192,192,192,0.05));
}

#third {
    background: linear-gradient(45deg, rgba(205,127,50,0.1), rgba(205,127,50,0.05));
}

#first .place {
    color: #ffd700;
}

#second .place {
    color: #c0c0c0;
}

#third .place {
    color: #cd7f32;
}

.trophy {
    font-size: 2em;
    position: absolute;
    top: -15px;
    right: -15px;
    transform: rotate(30deg);
    opacity: 0.2;
}

@keyframes shine {
    0% { opacity: 0.2; }
    50% { opacity: 0.3; }
    100% { opacity: 0.2; }
}

.winner:hover .trophy {
    animation: shine 2s infinite;
}

.glow {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(20px);
    opacity: 0.5;
}

#first .glow {
    background: #ffd700;
}

#second .glow {
    background: #c0c0c0;
}

#third .glow {
    background: #cd7f32;
}



/*msg*/

.event-message {
    font-family: 'Cairo', sans-serif;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    background: linear-gradient(90deg, rgba(21,35,52,0.4962359943977591) 0%, rgba(31,57,88,0.5) 40%, rgba(31,57,88,0.5) 60%, rgba(21,35,52,0.5) 100%);
    border-radius: 15px;
    padding: 20px;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    transform-origin: right bottom;
    animation: messageAppear 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.event-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.event-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00ffcc, #007fff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 0 15px rgba(0,255,204,0.3);
}

.event-title {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(to right, #00ffcc, #007fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0,255,204,0.2);
}

.event-content {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 15px;
    text-align: right;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 2px solid rgba(255,255,255,0.1);
    font-size: 14px;
}



.timestamp {
    color: rgba(255,255,255,0.6);
}

@keyframes messageAppear {
    0% {
        transform: scale(0.8) translateX(100px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateX(0);
        opacity: 1;
    }
}

.event-message:hover {
    border-color: rgba(0,255,204,0.3);
    box-shadow: 0 0 40px rgba(0,255,204,0.2);
    transition: all 0.3s ease;
}

.pulse {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background-color: #00ffcc;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.countdown {
    left: 46vw;
    top: 35vw;
    text-align: center;
    color: white;
    position: absolute;
    z-index: 1;

}

.countdown h1 {
    font-size: 3rem;
    margin-bottom: 0;
    line-height: 1;
    text-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
    font-family: "Jaro", serif;

}

@keyframes pulse {
    0% {
        text-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 100px rgba(255, 255, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }
}

.countdown::before {
    content: "";
    position: absolute;
    top: -150px;
    left: -150px;
    right: -150px;
    bottom: -150px;
    z-index: -1;
    animation: glow 5s infinite;
}

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

.countdown::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("https://i.imgur.com/3MRTYg9.png") no-repeat center;
    background-size: contain;
    opacity: 0.2;
    z-index: -2;
    animation: rotate 20s infinite linear;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.countdown span {
    display: block;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 1rem;
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        opacity: 0.99;
        text-shadow: -1px -1px 0 rgba(255, 255, 255, 0.4), 1px -1px 0 rgba(255, 255, 255, 0.4), -1px 1px 0 rgba(255, 255, 255, 0.4), 1px 1px 0 rgba(255, 255, 255, 0.4), 0 -2px 8px, 0 0 2px, 0 0 5px #ff7e00, 0 0 15px #ff4444, 0 0 2px #ff7e00, 0 2px 3px #000;
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: 0.4;
        text-shadow: none;
    }
}

.countdown h1.countdown-finished {
    color: red;
}

@media (max-width: 768px) {
    .countdown h1 {
        font-size: 16rem;
    }
    .countdown span {
        font-size: 1.5rem;
    }
}