:root {
    --bg-color: #000000;
    --card-bg: rgba(10, 15, 30, 0.4);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --primary: #007bff;
    --primary-glow: rgba(0, 123, 255, 0.5);
    --youtube: #ff0000;
    --whatsapp: #25d366;
    --discord: #5865F2;
    --kick: #53fc18;
    --glass-border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cairo', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); min-height: 100vh; overflow-x: hidden; direction: rtl; }

/* Keep Background */
.background-animation {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1;
    background: radial-gradient(circle at center, #051024 0%, #000000 100%);
    overflow: hidden;
}
.background-animation::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.15) 0%, transparent 20%), radial-gradient(circle, rgba(0, 50, 255, 0.05) 0%, transparent 20%);
    background-position: 0 0, 50px 50px; background-size: 100px 100px;
    animation: rotate 60s linear infinite;
}
@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.container { max-width: 600px; margin: 0 auto; padding: 2rem 1.5rem; position: relative; z-index: 1; }

/* Header & Typography */
.header { text-align: center; margin-bottom: 3.5rem; animation: fadeDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }

.main-text-logo {
    font-size: 4rem; font-weight: 900; letter-spacing: 2px; text-transform: uppercase;
    background: linear-gradient(to right, #ffffff, #80bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 123, 255, 0.6));
    animation: textPulse 3s infinite alternate ease-in-out;
    margin-bottom: 0.5rem;
}
@keyframes textPulse {
    0% { filter: drop-shadow(0 0 15px rgba(0, 123, 255, 0.6)); }
    100% { filter: drop-shadow(0 0 30px rgba(0, 123, 255, 1)); }
}
.subtitle { font-size: 1.1rem; color: var(--text-muted); font-weight: 400; letter-spacing: 1px; }

/* Ultra Premium Cards */
.links-grid { display: grid; gap: 1rem; margin-bottom: 4rem; perspective: 1000px; }
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px; padding: 1.2rem 1.5rem;
    text-decoration: none; color: var(--text-main);
    display: flex; align-items: center; gap: 1.2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 10px 30px rgba(0,0,0,0.5);
    position: relative; overflow: hidden;
    opacity: 0; transform: translateY(20px);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.glass-card:nth-child(1) { animation-delay: 0.1s; }
.glass-card:nth-child(2) { animation-delay: 0.2s; }
.glass-card:nth-child(3) { animation-delay: 0.3s; }
.glass-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.glass-card::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg); transition: 0.5s;
}
.glass-card:hover::after { left: 150%; }

.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(15, 25, 45, 0.8);
    border-color: rgba(255,255,255,0.2);
}

.glass-card .icon {
    font-size: 1.8rem; width: 60px; height: 60px; flex-shrink: 0;
    display: flex; justify-content: center; align-items: center;
    border-radius: 18px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
}

.glass-card.youtube:hover .icon { color: var(--youtube); border-color: rgba(255,0,0,0.3); box-shadow: 0 0 20px rgba(255,0,0,0.2); }
.glass-card.whatsapp:hover .icon { color: var(--whatsapp); border-color: rgba(37,211,102,0.3); box-shadow: 0 0 20px rgba(37,211,102,0.2); }
.glass-card.discord:hover .icon { color: var(--discord); border-color: rgba(88,101,242,0.3); box-shadow: 0 0 20px rgba(88,101,242,0.2); }
.glass-card.kick:hover .icon { color: var(--kick); border-color: rgba(83,252,24,0.3); box-shadow: 0 0 20px rgba(83,252,24,0.2); }

.glass-card .content { flex-grow: 1; }
.glass-card .content h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.2rem; }
.glass-card .content p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.3; }

.glass-card .external-link-icon {
    opacity: 0.5; transition: opacity 0.3s;
}
.glass-card:hover .external-link-icon { opacity: 1; }

/* Rules Section Refined */
.rules-section {
    background: var(--card-bg); backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: 24px;
    padding: 2.5rem 2rem; margin-bottom: 2rem;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.05), 0 15px 40px rgba(0,0,0,0.6);
    opacity: 0; transform: translateY(20px);
    animation: fadeUp 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.section-title {
    text-align: center; font-size: 1.5rem; margin-bottom: 1.5rem; font-weight: 800;
    color: var(--text-main); position: relative;
}

.rules-accordion { display: flex; flex-direction: column; gap: 0.8rem; }

.rule-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px; overflow: hidden; transition: all 0.3s;
}
.rule-item:hover { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); }

.accordion-btn {
    width: 100%; background: transparent; border: none; padding: 1.2rem 1.5rem;
    color: var(--text-main); font-size: 1.05rem; font-weight: 700;
    text-align: right; cursor: pointer; display: flex; align-items: center; gap: 1rem;
}

.accordion-btn i:first-child { font-size: 1.4rem; }
.accordion-btn .arrow { margin-right: auto; margin-left: 0; font-size: 1rem; color: var(--text-muted); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.accordion-btn.active .arrow { transform: rotate(180deg); color: var(--primary); }

.accordion-btn.youtube-btn i:first-child { color: var(--youtube); }
.accordion-btn.whatsapp-btn i:first-child { color: var(--whatsapp); }
.accordion-btn.discord-btn i:first-child { color: var(--discord); }
.accordion-btn.kick-btn i:first-child { color: var(--kick); }

.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.accordion-content ul { list-style: none; padding: 0 1.5rem 1.5rem 1.5rem; }
.accordion-content li {
    margin-bottom: 0.8rem; display: flex; align-items: flex-start; gap: 0.8rem;
    line-height: 1.6; font-size: 0.9rem; color: var(--text-muted);
}
.accordion-content li:last-child { margin-bottom: 0; }
.accordion-content li i { color: var(--primary); font-size: 0.9rem; margin-top: 0.3rem; }

footer {
    text-align: center; margin-top: 3rem; padding-bottom: 2rem;
    color: var(--text-muted); font-size: 0.9rem;
    animation: fadeUp 1s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0;
}
footer p:last-child { margin-top: 0.5rem; opacity: 0.6; font-size: 0.8rem; }

/* Ultra Responsive / Mobile First considerations */
@media (max-width: 600px) {
    .container { padding: 1.5rem 1rem; }
    .main-text-logo { font-size: 3rem; }
    .glass-card { padding: 1rem; border-radius: 20px; } 
    .glass-card .icon { width: 50px; height: 50px; font-size: 1.4rem; border-radius: 14px; }
    .glass-card .content h2 { font-size: 1.1rem; }
    .glass-card .content p { font-size: 0.8rem; }
    .rules-section { padding: 1.5rem 1rem; border-radius: 20px; }
    .accordion-btn { padding: 1rem; font-size: 1rem; }
}
