	@font-face{
	font-family:KalamehRegular;
	font-style:normal;
	font-weight:400;
	src:url('../fonts/KalamehRegular.ttf') format('truetype');
    }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: KalamehRegular;
            background: linear-gradient(145deg, #f0f7ff 0%, #e9eef5 100%);
            color: #1e2a3e;
            line-height: 1.5;
            min-height: 100vh;
        }

        .app-container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 1.5rem 2rem;
        }

        /* ----- NAVBAR ----- */
        .navbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 0;
            border-bottom: 2px solid rgba(59, 130, 246, 0.2);
            flex-wrap: wrap;
            gap: 1rem;
        }

        /* لوگو */
        .logo-area {
            display: flex;
            align-items: center;
        }
        .logo-icon {
            font-size: 1.8rem;
            color: #3b82f6;
        }
        .logo-text {
            font-weight: 800;
            font-size: 1.4rem;
            background: linear-gradient(135deg, #3b82f6, #8b5cf6);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
        }

        /* منوی دسکتاپ */
        .desktop-menu {
            display: flex;
            gap: 2rem;
            background: rgba(255,255,255,0.7);
            backdrop-filter: blur(4px);
            padding: 0.5rem 1.5rem;
            border-radius: 60px;
        }
        .desktop-menu a {
            text-decoration: none;
            font-weight: 600;
            color: #1f2937;
            transition: 0.2s;
            font-size: 1rem;
        }
        .desktop-menu a:hover {
            color: #3b82f6;
        }

        /* دکمه حساب کاربری */
        .user-btn {
            background: white;
            border: none;
            padding: 0.5rem 1.2rem;
            border-radius: 40px;
            font-family: KalamehRegular;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
            transition: 0.2s;
            font-size: 0.9rem;
        }
        .user-btn i {
            font-size: 1.1rem;
            color: #3b82f6;
        }
        .user-btn:hover {
            background: #eef2ff;
        }

        /* ----- استایل موبایل (فقط ظاهر، منو و جاوااسکریپت محدود) ----- */
        .mobile-header {
            display: none;
            align-items: center;
            justify-content: flex-end;
            width: 100%;
        }
        .menu-toggle {
                border: none;padding-right: 5px;
    font-size: 1.8rem;
    cursor: pointer;
    width: 48px;
    color: #1e293b;
    background: transparent;
        }
        /* منوی موبایل از راست */
        .mobile-nav-overlay {
            position: fixed;
            top: 0;
            right: -100%;
            width: 75%;
            max-width: 300px;
            height: 100%;
            background: white;
            box-shadow: -5px 0 20px rgba(0,0,0,0.2);
            z-index: 1000;
            padding: 2rem 1.5rem;
            transition: right 0.3s ease-in-out;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        .mobile-nav-overlay.open {
            right: 0;
        }
        .close-mobile-menu {
            background: #f1f5f9;
            border: none;
            font-size: 1.2rem;
            padding: 5px 10px;
            border-radius: 30px;
            position: absolute;
            left: 1em;
            top: 1em;
        }
        .mobile-nav-overlay a {
            text-decoration: none;
            font-size: 1.2rem;
            font-weight: 600;
            color: #1e293b;
            padding: 0.6rem 0;
            border-bottom: 1px solid #e2e8f0;
        }
        .overlay-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.4);
            z-index: 999;
            visibility: hidden;
            opacity: 0;
            transition: 0.2s;
        }
        .overlay-backdrop.active {
            visibility: visible;
            opacity: 1;
        }

        /* زیر منو تیتر و توضیح */
        .hero-section {
            margin: 2rem 0 1.5rem;
        }
        .hero-section h1 {
            font-size: 1.2rem;
            font-weight: 800;
            color: #ef6e40;
            display: inline-block;
        }
        .hero-section p {
            color: #334155;
            max-width: 600px;
            margin-top: 0.5rem;
        }

        /* شبکه دوتایی دکمه‌ها (برترین‌ها و ویرایش حساب کاربری) */
        .double-btn-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin: 1.5rem 0;
        }
        .action-card {
            background: linear-gradient(135deg, #ff7a00, #e7b707);
    border-radius: 20px;
    padding: 5px;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 6px 12px -8px rgb(2 2 2 / 50%);
        }
        .action-card i {
            margin-left: 8px;
            font-size: 1.2rem;
            color: #3b82f6;
        }

        /* باکس رتبه بندی کلی */
        .rank-card {
            background: linear-gradient(115deg, #ffffff, #f8fafc);
            border-radius: 20px;
            padding: 10px;
            margin: 1rem 0 2rem;
            border: 1px solid rgba(59,130,246,0.2);
        }
        .rank-header {
            display: flex;
			justify-content: space-between;
            align-items: center;
            gap: 0.2rem;
            border-bottom: 2px dashed #cbd5e1;
            padding-bottom: 0.8rem;
            margin-bottom: 1.2rem;
        }
        .rank-header i {
            font-size: 2rem;
            color: #fbbf24;
        }
        .rank-header h3 {
            font-size: 1.5rem;
            font-weight: 700;
        }
        .user-rank-info {
            display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 20px;margin-bottom: 5px;
        }
        .user-name {
            font-size: 14px;
            display: flex;
            align-items: center;
        }
        .user-score {
            background: linear-gradient(135deg, #f9b43a, #fb8c00);
            padding: 0.3rem 1rem;
            border-radius: 20px;
            color: white;
            font-size: 14px;
        }

        /* شبکه دوتایی بازی‌ها (4 نمونه) */
        .games-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            margin-top: 1rem;
            margin-bottom: 2rem;
        }
        .game-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 5px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
            text-align: center;
            border: 1px solid #eee;
            position: relative;
            overflow: hidden;
        }

        .game-card:hover {
            box-shadow: 0 0 10px rgb(0 0 0 / 25%);
        }

        .game-title {
            font-size: 1rem;
            margin-bottom: 5px;
            color: #2c3e50;
            font-weight: bold;
        }

        .best-score {
            text-align: center;
            margin-top: 8px;
            font-weight: bold;
            color: #2c3e50;
            font-size: 14px;
            background: rgba(52, 152, 219, 0.1);
            padding: 5px 10px;
            border-radius: 10px;
            display: inline-block;
            width: 100%;
        }

        .best-score-value {
            color: #3498db;
            font-weight: bold;
        }

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

        .btn {
            padding: 8px 20px;
            border: none;
            border-radius: 50px;
            font-size: 1rem;
            transition: all 0.3s ease;
            font-family: KalamehRegular;
        }

        .btn-play {
            background: #27ae60;
            color: white;
            animation: pulse 2s infinite;
        }
 @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7); }
        70% { box-shadow: 0 0 0 10px rgba(72, 187, 120, 0); }
        100% { box-shadow: 0 0 0 0 rgba(72, 187, 120, 0); }
    }
       
        .btn:hover {
            opacity: 0.9;
            transform: scale(1.05);
        }


        .footer-note {
            text-align: center;
            margin-top: 3rem;
            font-size: 0.75rem;
            color: #5b6e8c;
        }

        /* ----- RESPONSIVE (موبایل) ----- */
        @media (max-width: 768px) {
            .desktop-menu {
                display: none ;
            }
            .navbar {
                flex-direction: row;
                flex-wrap: nowrap;
            }
            .mobile-header {
                display: flex;
                width: 100%;
            }
            .desktop-user-area {
                display: none !important;
            }
            /* در موبایل: دکمه حساب کاربری سمت چپ، لوگو سمت راست */
            .mobile-header .user-btn-mobile {
                margin-left: 0;
            }
            .logo-area {
                margin-right: auto; /* لوگو به راست میرود */
                margin-left: 0;
            }
            .app-container {
                padding: 0 1rem 1.5rem;
            }
            .hero-section h1 {
                font-size: 1.7rem;
            }
            .games-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 769px) {
            .mobile-header, .menu-toggle, .mobile-nav-overlay, .overlay-backdrop {
                display: none;
            }
            .desktop-user-area {
                display: block;
            }
            .desktop-menu {
                display: flex;
            }
        }








/* ===== بخش‌های جدید و مدرن صفحه اصلی ===== */
html { direction: rtl; scroll-behavior: smooth; }
body { direction: rtl; }
.smart-games-section, .parent-testimonials { margin: 2.5rem 0; }
.section-heading { margin-bottom: 1.25rem; }
.section-kicker { display:inline-block; padding:.35rem .75rem; border-radius:999px; background:#eef2ff; color:#4f46e5; font-weight:800; font-size:.82rem; }
.section-heading h2 { margin:.55rem 0 .25rem; font-size:1.55rem; color:#172033; }
.section-heading p { color:#64748b; }
.smart-benefits { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.smart-benefits article { background:rgba(255,255,255,.92); border:1px solid #e8edf5; border-radius:22px; padding:1.25rem; box-shadow:0 10px 30px rgba(15,23,42,.06); transition:.25s; }
.smart-benefits article:hover { box-shadow:0 16px 35px rgba(15,23,42,.1); }
.smart-benefits span { font-size:1.8rem; }
.smart-benefits h3 { margin:.55rem 0 .3rem; font-size:1.05rem; }
.smart-benefits p { color:#64748b; line-height:1.8; font-size:.93rem; }
.parent-testimonials { background:linear-gradient(135deg,#f8fbff,#f4f1ff); border:1px solid #e8eaf4; border-radius:28px; padding:2rem; }
.testimonial-slider { position:relative; min-height:170px; }
.testimonial-card { display:none; max-width:800px; margin:auto; background:#fff; border-radius:22px; padding:1.5rem 1.75rem; box-shadow:0 12px 35px rgba(15,23,42,.08); text-align:center; animation:fadeIn .35s ease; }
.testimonial-card.active { display:block; }
.testimonial-card .stars { letter-spacing:4px; color:#f59e0b; font-size:1.35rem; margin-bottom:.7rem; }
.testimonial-card p { color:#334155; font-size:1.05rem; line-height:2; }
.testimonial-card strong { display:block; color:#64748b; margin-top:.8rem; font-size:.9rem; }
.testimonial-dots { display:flex; justify-content:center; gap:7px; margin-top:1rem; }
.testimonial-dots button { width:8px; height:8px; padding:0; border:0; border-radius:50%; background:#cbd5e1; cursor:pointer; transition:.2s; }
.testimonial-dots button.active { width:24px; border-radius:999px; background:#6366f1; }
@keyframes fadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }
@media (max-width:800px){ .smart-benefits{grid-template-columns:1fr 1fr;} .parent-testimonials{padding:1.25rem;} }
@media (max-width:520px){ .smart-benefits{grid-template-columns:1fr;} .section-heading h2{font-size:1.3rem;} }


/* ===== طراحی جدید صفحه اصلی ===== */
.home-intro-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,.85fr);gap:1.25rem;margin:1.5rem 0 2rem;align-items:stretch}
.welcome-card{background:linear-gradient(135deg,#ffffff 0%,#eef2ff 100%);border:1px solid #e5e7eb;border-radius:28px;padding:2.2rem;box-shadow:0 18px 45px rgba(15,23,42,.08);display:flex;flex-direction:column;justify-content:center;min-height:285px}
.welcome-card h1{font-size:clamp(1.8rem,4vw,2.7rem);line-height:1.35;margin:.7rem 0}.welcome-card p{color:#64748b;line-height:2;max-width:720px;font-size:1rem}
.welcome-actions{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:1.3rem}.primary-action,.secondary-action{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:14px;padding:.8rem 1.25rem;font-weight:900}.primary-action{background:#4f46e5;color:#fff;box-shadow:0 10px 24px rgba(79,70,229,.2)}.secondary-action{background:#fff;color:#4338ca;border:1px solid #ddd6fe}
.home-rank-card{margin:0;padding:1.2rem;background:#fff;border:1px solid #e8edf5;box-shadow:0 18px 45px rgba(15,23,42,.07)}.home-rank-card .rank-header{border-bottom:1px solid #edf1f5}.home-rank-card .rank-header h3{margin:.35rem 0 0}.leader-link{color:#4f46e5;text-decoration:none;font-weight:800;font-size:.9rem}
.site-footer{margin-top:3rem;padding:2rem 1.5rem;background:#111827;color:#e5e7eb;border-radius:28px;display:grid;grid-template-columns:1.2fr 1fr auto;gap:1.5rem;align-items:center}.footer-brand{display:flex;flex-direction:column;gap:.35rem}.footer-brand strong{font-size:1.2rem;color:#fff}.footer-brand span,.footer-copy{color:#9ca3af;font-size:.85rem}.footer-links{display:flex;justify-content:center;gap:1.2rem;flex-wrap:wrap}.footer-links a{color:#d1d5db;text-decoration:none}.footer-links a:hover{color:#fff}.footer-copy{text-align:left;direction:rtl}
@media(max-width:850px){.home-intro-grid{grid-template-columns:1fr}.site-footer{grid-template-columns:1fr;text-align:center}.footer-copy{text-align:center}.footer-links{justify-content:center}}
@media(max-width:520px){.welcome-card{padding:1.5rem;min-height:auto}.welcome-actions>*{width:100%}.site-footer{border-radius:22px;padding:1.5rem 1rem}}
.games-page .games-grid{margin-top:2rem}.games-page .game-card{padding:8px}.games-page .game-card p{line-height:1.8}.games-page .btn-play{border-radius:12px}
