:root {
    /*  */
    --bg-dark: #151515;       /* رمادي فحمي غامق */
    --bg-card: #1E1E1E;       /* لون البطاقات */
    --accent-gold: #C8A165;   /* ذهبي ريشة الباهت */
    --text-white: #FFFFFF;
    --text-gray: #B0B0B0;
    --border-subtle: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Loader --- */
#loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-dark); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: 0.5s;
}
.feather-draw { width: 100px; height: 100px; }
.draw-rect { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2s forwards; }
.draw-path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 2s 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* --- Header --- */
header {
    background: rgba(21, 21, 21, 0.95);
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 0; position: sticky; top: 0; z-index: 100;
}
.header-inner {
    width: 90%; max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-svg { width: 30px; color: var(--text-white); }
.logo-text { font-size: 1.4rem; font-weight: 700; color: #fff; }
.logo-text span { color: var(--accent-gold); font-size: 0.8em; font-weight: 300; }

.top-nav { display: flex; gap: 15px; }
.nav-btn {
    text-decoration: none; padding: 8px 20px; border-radius: 4px; /* زوايا خفيفة مثل ريشة */
    font-size: 0.9rem; transition: 0.3s;
}
.outline { border: 1px solid var(--border-subtle); color: var(--text-gray); }
.outline:hover { border-color: #fff; color: #fff; }
.filled { background: var(--text-white); color: #000; font-weight: 700; }
.filled:hover { background: var(--accent-gold); }

/* --- Hero (Mafia) --- */
.hero-mafia {
    width: 90%; max-width: 1200px; margin: 40px auto;
    background: linear-gradient(135deg, #1e1e1e 0%, #101010 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 60px;
    display: flex; justify-content: space-between; align-items: center;
    position: relative; overflow: hidden;
}
.mafia-content { max-width: 500px; z-index: 2; }
.new-badge { color: var(--accent-gold); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.mafia-content h1 { font-size: 3.5rem; margin: 10px 0; line-height: 1.2; }
.mafia-content p { color: var(--text-gray); margin-bottom: 30px; font-size: 1.1rem; }
.hero-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 30px; border: 1px solid var(--border-subtle);
    color: var(--text-gray); text-decoration: none; border-radius: 50px;
    transition: 0.3s; cursor: not-allowed;
}
.hero-btn svg { width: 18px; fill: currentColor; }
.hat-svg { width: 250px; opacity: 0.1; position: absolute; left: -50px; bottom: -50px; transform: rotate(-15deg); }

/* --- Grid (Arcade Style) --- */
.games-arcade { width: 90%; max-width: 1200px; margin: 60px auto; }
.section-title { margin-bottom: 40px; display: flex; align-items: center; gap: 20px; }
.section-title h2 { font-size: 1.5rem; color: #fff; }
.line { flex: 1; height: 1px; background: var(--border-subtle); }

.grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px;
}

.card {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 12px; overflow: hidden; text-decoration: none;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* حركة ممتعة */
    position: relative;
}
.card:hover { transform: translateY(-10px); border-color: var(--accent-gold); }

.card-visual {
    height: 180px; display: flex; justify-content: center; align-items: center;
    background: rgba(255,255,255,0.02);
}
.card-visual svg { width: 60px; height: 60px; opacity: 0.8; transition: 0.3s; }
.card:hover .card-visual svg { transform: scale(1.1); stroke: var(--accent-gold); }

.card-info { padding: 20px; background: #232323; }
.card-info h3 { color: #fff; font-size: 1.1rem; margin-bottom: 5px; }
.tag { font-size: 0.8rem; color: var(--text-gray); }

/* Locked State */
.locked { cursor: default; }
.locked:hover { transform: none; border-color: var(--border-subtle); }
.dim svg { opacity: 0.2; }
.lock-overlay {
    position: absolute; top: 15px; right: 15px; width: 30px; height: 30px;
    background: rgba(0,0,0,0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.lock-overlay svg { width: 16px; fill: #fff; }

/* --- Footer (Replica) --- */
footer {
    background: #0f0f0f; /* لون أغمق قليلاً للفوتر */
    border-top: 1px solid #222;
    padding: 60px 0 20px; margin-top: 100px;
}
.footer-container {
    width: 90%; max-width: 1200px; margin: 0 auto;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px;
}
.footer-col { flex: 1; min-width: 250px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; }
.footer-col p { color: #888; line-height: 1.8; font-size: 0.9rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: #888; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--accent-gold); }

.contact ul li { display: flex; justify-content: space-between; align-items: center; color: #888; font-size: 0.9rem; }
.contact svg { width: 18px; fill: #555; }

.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a svg { width: 20px; fill: #fff; border: 1px solid #555; padding: 5px; border-radius: 50%; box-sizing: content-box; }

/* Footer Bottom */
.footer-bottom {
    width: 90%; max-width: 1200px; margin: 40px auto 0;
    border-top: 1px solid #222; padding-top: 30px;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.sbc-link { color: #888; text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 5px; }
.sbc-link svg { width: 18px; }

.payment-icons { display: flex; gap: 10px; }
.pay-icon {
    background: #eee; color: #333; padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: bold;
    filter: grayscale(100%); transition: 0.3s; cursor: default;
}
.payment-icons:hover .pay-icon { filter: grayscale(0%); }

.copyrights { color: #555; font-size: 0.8rem; }

/* --- Modals --- */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 2000;
    display: none; justify-content: center; align-items: center;
}
.modal-box {
    background: var(--bg-card); padding: 40px; border-radius: 8px; width: 90%; max-width: 500px; position: relative; border: 1px solid var(--border-subtle);
}
.close { position: absolute; top: 15px; left: 15px; color: #fff; cursor: pointer; font-size: 1.5rem; }

/* Responsive */
@media (max-width: 768px) {
    .hero-mafia { flex-direction: column; padding: 30px; text-align: center; }
    .mafia-visual { display: none; }
    .footer-container { flex-direction: column; text-align: center; }
    .contact ul li { justify-content: center; gap: 10px; }
    .social-icons { justify-content: center; }
}
