.back-home,
.social-link-large,
a {
    text-decoration: none;
}
.category-card,
.contact-page,
.feature-card,
.hero-bg-shapes,
.hero-section,
.map-container,
.social-btn,
.stat-card {
    overflow: hidden;
}
.auth-divider,
.auth-switch,
.child-name,
.child-stat,
.contact-card,
.contact-hero-content,
.feature-card,
.game-card,
.game-selection-header,
.social-divider,
.social-section,
.step-item {
    text-align: center;
}
.back-home,
.contact-hero-icon,
.navbar-custom {
    backdrop-filter: blur(10px);
}
.brand-name,
.gradient-text,
.quiz-page .result-message {
    -webkit-text-fill-color: transparent;
}
:root {
    --primary-purple: #8b5cf6;
    --primary-blue: #3b82f6;
    --primary-green: #10b981;
    --primary-orange: #f59e0b;
    --primary-pink: #ec4899;
    --primary-red: #ef4444;
    --primary-yellow: #fbbf24;
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --gradient-orange: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.2);
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.logo-circle,
.nav-link {
    border-radius: var(--radius-full);
    display: flex;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family:
        "Noto Sans Arabic",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    background: var(--white);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}
a {
    color: inherit;
}
img {
    max-width: 100%;
    height: auto;
}
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 8px 0;
    transition: var(--transition);
}
.brand-name,
.logo-circle {
    background: var(--gradient-purple);
}
.navbar-custom.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}
.logo-wrapper,
.quiz-page .score-display {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-circle {
    width: 55px;
    height: 55px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    position: relative;
    animation: 3s ease-in-out infinite logoFloat;
}
@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}
.logo-circle i {
    font-size: 1.7rem;
    color: var(--white);
}
.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dropdown-item,
.nav-link {
    align-items: center;
    transition: var(--transition);
}
.brand-name {
    font-size: 1.6rem;
    font-weight: 900;
    -webkit-background-clip: text;
    background-clip: text;
    line-height: 1;
}
.brand-tagline {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 600;
}
.navbar-nav {
    gap: 10px;
}
.nav-link {
    color: var(--dark) !important;
    font-weight: 700;
    padding: 12px 4px !important;
    gap: 4px;
    font-size: 14px;
}
.nav-link.active,
.nav-link:hover {
    color: #6c6bce !important;
    transform: translateY(-2px);
}
.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 15px;
    min-width: 320px;
    margin-top: 10px !important;
}
.dropdown-icon,
.dropdown-item {
    border-radius: var(--radius-md);
    display: flex;
}
.dropdown-item {
    gap: 15px;
    padding: 15px;
}
.dropdown-item:hover {
    background: var(--light-gray);
    transform: translateX(-5px);
}
.dropdown-icon {
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}
.badge-purple,
.dropdown-icon.memorization,
.memorization-category .category-icon,
.memorization-category .category-overlay,
.purple-card .icon-circle {
    background: var(--gradient-purple);
}
.dropdown-icon.fun,
.fun-category .category-icon,
.fun-category .category-overlay,
.orange-card .icon-circle {
    background: var(--gradient-orange);
}
.dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.dropdown-text strong {
    font-size: 1.1rem;
    color: var(--dark);
}
.child-stat-label,
.dropdown-text span,
.game-card p {
    font-size: 0.85rem;
    color: var(--gray);
}
.btn-logout,
.btn-teacher {
    color: var(--white) !important;
    gap: 5px;
    font-size: 14px;
    display: flex;
    border-radius: var(--radius-full);
    transition: var(--transition-bounce);
}
.btn-teacher {
    background: var(--gradient-green);
    padding: 10px;
    font-weight: 700;
    align-items: center;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}
.btn-logout,
.btn-logout:hover {
    background: var(--primary-red);
}
.btn-teacher:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}
.btn-logout {
    align-items: center;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}
.btn-logout:hover {
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.4);
}
.hero-section {
    padding: 180px 0 120px;
    position: relative;
    background: linear-gradient(180deg, #f9fafb 0, #fff 100%);
}
.gradient-text,
.shape-1 {
    background: var(--gradient-purple);
}
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.shape {
    position: absolute;
    border-radius: var(--radius-full);
    opacity: 0.1;
}
.shape-1 {
    right: -100px;
    animation: 15s ease-in-out infinite float1;
}
.shape-2 {
    background: var(--gradient-blue);
    bottom: -150px;
    left: -100px;
    animation: 20s ease-in-out infinite float2;
}
.shape-3 {
    background: var(--gradient-green);
    top: 50%;
    right: 5%;
    animation: 18s ease-in-out infinite float3;
}
.shape-4 {
    background: var(--gradient-orange);
    bottom: 20%;
    animation: 12s ease-in-out infinite float1;
}
@keyframes float1 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}
@keyframes float2 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-40px, -40px) scale(1.1);
    }
}
@keyframes float3 {
    0%,
    100% {
        transform: translate(0, 0) rotate(0);
    }
    50% {
        transform: translate(20px, -50px) rotate(180deg);
    }
}
.fun-container,
.games-page .mem-container,
.hero-content,
.hero-illustration {
    position: relative;
    z-index: 2;
}
.hero-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
    box-shadow: var(--shadow-sm);
    animation: 3s ease-in-out infinite badgeFloat;
}
.hero-title,
.stat-info h3 {
    font-weight: 900;
    color: var(--dark);
}
.badge-green,
.green-card .icon-circle,
.stat-card:nth-child(3) .stat-icon {
    background: var(--gradient-green);
}
@keyframes badgeFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}
.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 25px;
}
.gradient-text {
    -webkit-background-clip: text;
    background-clip: text;
    display: block;
}
.hero-description {
    font-size: 1.25rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.btn-hero-primary,
.btn-hero-secondary {
    padding: 18px 35px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-bounce);
    border: none;
    cursor: pointer;
}
.feature-card::before,
.footer-bottom-links a,
.footer-links a,
.stat-card {
    transition: var(--transition);
}
.btn-hero-primary {
    background: var(--gradient-purple);
    color: var(--white);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}
.btn-hero-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 50px rgba(139, 92, 246, 0.5);
}
.btn-hero-secondary {
    background: var(--white);
    color: var(--primary-purple);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--light-gray);
}
.btn-hero-secondary:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-purple);
}
.hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.float-item,
.stat-icon {
    border-radius: var(--radius-md);
    align-items: center;
    display: flex;
    color: var(--white);
}
.item-1,
.stat-icon {
    background: var(--gradient-purple);
}
.faq-item:hover,
.float-item,
.stat-card:hover {
    box-shadow: var(--shadow-md);
}
.btn-category,
.category-card,
.feature-card,
.social-link,
.step-item {
    transition: var(--transition-bounce);
}
.stat-icon {
    justify-content: center;
}
.blue-card .icon-circle,
.stat-card:nth-child(2) .stat-icon {
    background: var(--gradient-blue);
}
.stat-info h3 {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 5px;
}
.stat-info p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.float-item {
    position: absolute;
    width: 60px;
    height: 60px;
    justify-content: center;
    font-size: 2rem;
}
.hero-circle,
.section-badge {
    border-radius: var(--radius-full);
}
.item-1 {
    top: 5%;
    right: 10%;
    animation: 4s ease-in-out infinite floatItem;
}
.item-2 {
    background: var(--gradient-blue);
    top: 30%;
    left: 5%;
    animation: 5s ease-in-out 0.5s infinite floatItem;
}
.item-3 {
    background: var(--gradient-green);
    bottom: 30%;
    right: 5%;
    animation: 4.5s ease-in-out 1s infinite floatItem;
}
.item-4 {
    background: var(--gradient-orange);
    bottom: 10%;
    left: 15%;
    animation: 5.5s ease-in-out 1.5s infinite floatItem;
}
.item-5 {
    background: linear-gradient(135deg, #ec4899 0, #ef4444 100%);
    top: 50%;
    right: 50%;
    animation: 4s ease-in-out 2s infinite floatItem;
}
@keyframes floatItem {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}
.hero-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
}
.hero-circle {
    width: 400px;
    height: 400px;
    background: var(--gradient-purple);
    box-shadow: 0 30px 80px rgba(139, 92, 246, 0.4);
    animation: 3s ease-in-out infinite pulse;
}
.hero-character {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12rem;
    color: var(--white);
    animation: 2s ease-in-out infinite characterBounce;
}
@keyframes characterBounce {
    0%,
    100% {
        transform: translate(-50%, -50%);
    }
    50% {
        transform: translate(-50%, -55%);
    }
}
.features-section {
    padding: 40px 0;
    background: var(--white);
}
.section-header {
    flex-direction: column;
}
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--light-gray);
    padding: 10px 25px;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 20px;
}
.category-icon,
.icon-circle {
    align-items: center;
    display: flex;
}
.section-badge i {
    font-size: 1.2rem;
}
.section-title {
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}
.form-header p,
.game-selection-header p,
.quran-games-section .section-subtitle,
.section-subtitle {
    font-size: 1rem;
    color: var(--gray);
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    border: 3px solid transparent;
    height: 100%;
    position: relative;
}
.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-purple);
    opacity: 0;
    z-index: 0;
}
.feature-card:hover::before {
    opacity: 0.05;
}
.purple-card {
    border-color: var(--primary-purple);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
}
.blue-card {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}
.green-card {
    border-color: var(--primary-green);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.2);
}
.orange-card {
    border-color: var(--primary-orange);
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.2);
}
.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
}
.feature-icon {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}
.icon-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: var(--radius-full);
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    animation: 3s ease-in-out infinite iconFloat;
}
.category-card,
.category-icon {
    border-radius: var(--radius-lg);
}
.auth-logo,
.contact-hero-icon {
    animation: 2s ease-in-out infinite pulse;
}
@keyframes iconFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--dark);
    position: relative;
    z-index: 1;
}
.feature-card p {
    color: var(--gray);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}
.games-categories {
    padding: 120px 0;
    background: var(--light-gray);
}
.category-card {
    background: var(--white);
    padding: 50px 40px;
    position: relative;
    box-shadow: var(--shadow-md);
    height: 100%;
}
.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 0;
}
.category-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}
.category-content {
    position: relative;
    z-index: 1;
}
.category-icon {
    width: 100px;
    height: 100px;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 30px;
}
.category-card h3 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--dark);
}
.category-card p {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 25px;
}
.footer-links li,
.step-item h3 {
    margin-bottom: 12px;
}
.category-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px;
}
.category-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 1.05rem;
    color: var(--dark);
    font-weight: 600;
}
.category-list i {
    color: var(--primary-green);
    font-size: 1.2rem;
}
.btn-category {
    background: var(--gradient-purple);
    color: var(--white);
    padding: 18px 40px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}
.fun-category .btn-category {
    background: var(--gradient-orange);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}
.btn-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(139, 92, 246, 0.5);
}
.fun-category .btn-category:hover {
    box-shadow: 0 15px 45px rgba(245, 158, 11, 0.5);
}
.category-number {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    line-height: 1;
    z-index: 0;
}
.how-it-works {
    padding: 120px 0;
    background: var(--white);
}
.steps-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 60px;
}
.step-item {
    flex: 1;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    position: relative;
    box-shadow: var(--shadow-md);
}
.social-link,
.step-number {
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
}
.step-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-purple);
    color: var(--white);
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}
.step-icon {
    font-size: 4rem;
    margin: 25px 0 20px;
}
.step-item h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
}
.step-item p {
    color: var(--gray);
    line-height: 1.6;
}
.step-connector {
    position: relative;
    flex: 0 0 80px;
}
.connector-line {
    width: 100%;
    height: 3px;
    background: var(--light-gray);
    position: relative;
}
.connector-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--primary-purple);
}
.auth-container,
.contact-page,
.input-with-icon {
    position: relative;
}
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}
.footer-brand,
.form-group {
    margin-bottom: 25px;
}
.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 30px;
}
.footer-bottom-links a:hover,
.footer-title,
.social-link {
    color: var(--white);
}
.social-links {
    display: flex;
    gap: 12px;
}
.social-link {
    width: 50px;
    height: 50px;
    justify-content: center;
}
.social-link-large.facebook,
.social-link.facebook {
    background: #1877f2;
}
.social-link-large.twitter,
.social-link.twitter {
    background: #1da1f2;
}
.social-link-large.instagram,
.social-link.instagram {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
}
.social-link-large.youtube,
.social-link.youtube {
    background: red;
}
.social-link:hover {
    transform: translateY(-5px) scale(1.1);
}
.footer-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 25px;
}
.footer-contact,
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: inline-block;
}
.footer-links a:hover {
    color: var(--white);
    transform: translateX(-5px);
}
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}
.footer-contact i {
    color: var(--primary-purple);
    font-size: 1.2rem;
}
.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 50px 0 30px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(255, 255, 255, 0.5);
}
.footer-bottom-links {
    display: flex;
    gap: 15px;
    align-items: center;
}
.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    .cta-content h2,
    .section-title {
        font-size: 2.5rem;
    }
    .steps-wrapper {
        flex-direction: column;
    }
    .step-connector {
        transform: rotate(90deg);
        flex: 0 0 60px;
    }
}
.contact-page {
    background: linear-gradient(135deg, #8b5cf6 0, #ec4899 100%);
}
.auth-section::before,
.contact-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    opacity: 0.3;
}
.contact-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.contact-hero-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 4rem;
}
.contact-card-icon,
.social-link-large {
    height: 80px;
    align-items: center;
    display: flex;
}
.contact-hero-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
}
.contact-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}
.contact-section,
.map-section {
    padding: 80px 0;
    background: #f9fafb;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}
.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.contact-card-icon {
    width: 80px;
    border-radius: 20px;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    margin: 0 auto 25px;
}
.contact-card:first-child .contact-card-icon,
.stat-card.purple .stat-icon,
.stat-card.purple::before {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}
.contact-card:nth-child(2) .contact-card-icon,
.stat-card.blue .stat-icon,
.stat-card.blue::before {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}
.contact-card:nth-child(3) .contact-card-icon,
.stat-card.green .stat-icon,
.stat-card.green::before {
    background: linear-gradient(135deg, #10b981, #3b82f6);
}
.contact-card:nth-child(4) .contact-card-icon,
.stat-card.orange .stat-icon,
.stat-card.orange::before {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
}
.contact-card p {
    color: var(--gray);
    margin-bottom: 20px;
}
.auth-switch a,
.contact-card a {
    color: var(--primary-purple);
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}
.auth-switch a:hover,
.contact-card a:hover {
    color: var(--primary-pink);
}
.btn-close-game-modal:hover,
.form-header h2,
.form-label,
.games-page .game-card-mem h3,
.quran-games-section .section-title {
    color: var(--dark);
}
.contact-form-wrapper {
    background: #fff;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}
.auth-header,
.form-header {
    text-align: center;
    margin-bottom: 40px;
}
.form-header h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 15px;
}
.back-home:hover,
.toggle-password:hover {
    color: var(--primary-purple);
}
textarea.form-control-custom {
    min-height: 150px;
    resize: vertical;
}
.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    border: none;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}
.btn-auth:hover,
.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
}
.social-section {
    padding: 80px 0;
    background: #fff;
}
.social-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 20px;
}
.social-subtitle {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 40px;
}
.quiz-page .result-buttons,
.social-links-large {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.social-link-large {
    width: 80px;
    border-radius: 20px;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.auth-logo,
.map-container {
    display: flex;
    align-items: center;
}
.social-link-large:hover {
    transform: translateY(-10px) scale(1.1);
}
.social-link-large.whatsapp {
    background: #25d366;
}
.social-link-large.telegram {
    background: #08c;
}
.map-container {
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    height: 450px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}
@media (max-width: 768px) {
    .hero-section {
        padding: 85px 0 50px;
    }
    .hero-section .content {
        flex-direction: column-reverse;
    }
    .hero-section .gradient-text {
        display: inline-block;
    }
    .hero-badges {
        gap: 5px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .btn-cta-primary,
    .btn-cta-secondary,
    .btn-hero-primary,
    .btn-hero-secondary {
        justify-content: center;
    }
    .hero-buttons {
        gap: 10px;
    }
    .hero-stats {
        flex-direction: column;
    }
    .hero-circle {
        width: 150px;
        height: 200px;
    }
    .hero-character {
        font-size: 8rem;
    }
    .cta-content h2,
    .form-header h2,
    .section-title {
        font-size: 2rem;
    }
    .cta-wrapper {
        padding: 50px 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 9px 11px;
        font-size: 14px;
    }
    .contact-hero {
        padding: 90px 0 30px;
    }
    .contact-hero-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    .contact-hero-title {
        font-size: 1.5rem;
    }
    .contact-card h3,
    .contact-hero-subtitle {
        font-size: 1rem;
    }
    .contact-form-wrapper {
        padding: 30px 25px;
    }
    .social-links-large {
        gap: 15px;
    }
    .social-link-large {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .contact-card {
        padding: 10px;
    }
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    .contact-card p {
        margin-bottom: 10px;
        font-size: 12px;
    }
    .contact-card a {
        font-size: 15px;
    }
    .social-title {
        font-size: 1.4rem;
    }
}
.auth-container {
    max-width: 500px;
    width: 100%;
    z-index: 2;
}
.auth-card {
    background: #fff;
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
}
.auth-logo,
.btn-auth {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.auth-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    justify-content: center;
    margin: 0 auto 20px;
}
.auth-logo i {
    font-size: 2.5rem;
    color: #fff;
}
.auth-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 10px;
}
.auth-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
}
.form-label {
    color: var(--dark);
    display: block;
    font-size: 1rem;
}
.input-icon,
.toggle-password {
    left: 20px;
    transform: translateY(-50%);
    color: var(--gray);
    top: 50%;
}
.form-control-custom {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    font-size: 1rem;
    transition: 0.3s;
    font-family: Cairo, sans-serif;
}
.form-control-custom:focus {
    outline: 0;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}
.input-icon {
    position: absolute;
    font-size: 1.2rem;
}
.input-with-icon .form-control-custom {
    padding-left: 55px;
}
.toggle-password {
    position: absolute;
    cursor: pointer;
    transition: 0.3s;
}
.btn-auth {
    width: 100%;
    padding: 18px;
    color: #fff;
    border: none;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}
.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.auth-divider {
    margin: 30px 0;
    position: relative;
}
.auth-divider::before,
.social-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e5e7eb;
}
.auth-divider span {
    background: #fff;
    padding: 0 20px;
    color: var(--gray);
    position: relative;
    z-index: 1;
}
.auth-switch {
    margin-top: 25px;
    color: var(--gray);
}
.back-home {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    z-index: 10;
}
.back-home:hover {
    background: #fff;
    transform: translateY(-3px);
}
.alert-custom {
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    font-weight: 600;
    display: none;
}
.btn-logout,
.social-btn {
    font-weight: 700;
    transition: 0.3s;
}
.remember-me,
.social-btn {
    display: flex;
    align-items: center;
}
.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}
.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}
.social-btn,
.social-divider span {
    background: #fff;
    position: relative;
}
.remember-me {
    gap: 10px;
    margin-bottom: 25px;
}
.remember-me input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.remember-me label {
    cursor: pointer;
    color: var(--gray);
    font-weight: 600;
    margin: 0;
}
.social-login {
    margin-top: 30px;
}
.social-btn {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    font-size: 1rem;
    cursor: pointer;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}
.social-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;
}
.social-btn:hover::before {
    left: 100%;
}
.social-btn i {
    font-size: 1.4rem;
}
.btn-google {
    color: #db4437;
    border-color: #db4437;
}
.btn-google:hover {
    background: #db4437;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(219, 68, 55, 0.3);
}
.btn-facebook {
    color: #1877f2;
    border-color: #1877f2;
}
.btn-facebook:hover {
    background: #1877f2;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(24, 119, 242, 0.3);
}
.social-divider {
    margin: 25px 0;
    position: relative;
}
.social-divider span {
    padding: 0 15px;
    color: var(--gray);
    z-index: 1;
    font-size: 0.9rem;
}
@media (max-width: 576px) {
    .category-card h3,
    .hero-title {
        font-size: 2rem;
    }
    .hero-title {
        line-height: 1.4;
    }
    .hero-description {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .auth-card {
        padding: 15px 10px;
    }
    .auth-title {
        font-size: 1.6rem;
    }
    .back-home {
        top: 15px;
        right: 15px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
.dashboard-header {
    background: linear-gradient(135deg, #8b5cf6 0, #ec4899 100%);
    padding: 40px 0;
    color: #fff;
    margin-top: 80px;
}
.welcome-text h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}
.welcome-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}
.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 30px;
    border-radius: 50px;
}
.btn-logout:hover {
    background: #fff;
    color: var(--primary-purple);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    position: relative;
}
.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}
.child-card:hover,
.game-card:hover,
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
}
.stat-label {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 10px;
}
.section-title,
.stat-value {
    font-weight: 900;
    color: var(--dark);
}
.stat-value {
    font-size: 2.5rem;
    line-height: 1;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.section-title {
    font-size: 2rem;
}
.btn-add-child {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}
.btn-add-child:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}
.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}
.child-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    position: relative;
}
.btn-select,
.child-avatar,
.selected-child-avatar {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}
.child-avatar,
.selected-child-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}
.child-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}
.child-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 2px solid #f3f4f6;
    border-bottom: 2px solid #f3f4f6;
}
.child-stat-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-purple);
    display: block;
}
.child-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-select {
    color: #fff;
}
.btn-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}
.btn-delete {
    background: #fee2e2;
}
.btn-delete:hover {
    background: #ef4444;
    color: #fff;
}
.empty-state {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.empty-icon {
    color: var(--light-gray);
}
.empty-text {
    color: var(--gray);
    margin-bottom: 30px;
}
.modal-content {
    border: none;
}
.modal-header {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    border-radius: 20px 20px 0 0;
}
.btn-close {
    filter: brightness(0) invert(1);
}
.form-label {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}
.form-control {
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    font-family: Cairo, sans-serif;
}
.form-control:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}
.avatar-picker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}
.avatar-option {
    width: 60px;
    height: 60px;
    background: #f3f4f6;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
    border: 3px solid transparent;
}
.avatar-option.selected,
.avatar-option:hover,
input[name="avatar"]:checked + label .avatar-option {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    transform: scale(1.1);
}
.btn-save {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    width: 100%;
    transition: 0.3s;
}
.btn-save:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}
.game-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}
.audio-visualizer.active,
.game-selection-modal.show,
.modal-overlay.active,
.quiz-page .result-screen.active {
    display: flex;
}
.game-selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}
.game-selection-content {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    position: relative;
}
.btn-close-game-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: 0 0;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
}
.game-selection-header {
    margin-bottom: 20px;
}
.game-selection-header h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 10px;
}
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.game-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.game-card-fun,
.games-page .game-card-mem {
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}
.game-card.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.game-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-purple);
    margin-bottom: 10px;
}
.game-card-fun p,
.game-card.disabled .game-icon {
    color: var(--gray);
}
.game-card h4 {
    font-size: 1rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 5px;
}
.fun-header,
.games-page .mem-header {
    margin-bottom: 60px;
    text-align: center;
}
.games-page .memorization-page {
    background: linear-gradient(135deg, #667eea 0, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}
.games-page .mem-shape-1,
.games-page .mem-shape-2,
.games-page .mem-shape-3 {
    background: radial-gradient(circle, #fff 0, transparent 70%);
}
.fun-bg-shapes,
.games-page .mem-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.games-page .mem-shape {
    position: absolute;
    opacity: 0.1;
    animation: 25s ease-in-out infinite floatMemShape;
}
.games-page .mem-shape-1 {
    width: 350px;
    height: 350px;
    top: 5%;
    right: 5%;
    animation-delay: 0s;
}
.games-page .mem-shape-2 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 10%;
    animation-delay: 3s;
}
.games-page .mem-shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 15%;
    animation-delay: 6s;
}
@keyframes floatMemShape {
    0%,
    100% {
        transform: translate(0, 0) rotate(0);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-30px, 30px) rotate(180deg);
    }
    75% {
        transform: translate(30px, 30px) rotate(270deg);
    }
}
.games-page .islamic-pattern {
    position: absolute;
    font-size: 4rem;
    opacity: 0.08;
    animation: 30s linear infinite floatPattern;
}
.games-page .child-info-mem,
.games-page .mem-header-icon {
    background: #fff;
    align-items: center;
    position: relative;
    display: flex;
}
.games-page .pattern-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}
.games-page .pattern-2 {
    top: 20%;
    right: 15%;
    animation-delay: 5s;
}
.games-page .pattern-3 {
    bottom: 15%;
    left: 20%;
    animation-delay: 10s;
}
.games-page .pattern-4 {
    top: 60%;
    right: 10%;
    animation-delay: 15s;
}
@keyframes floatPattern {
    0% {
        transform: translateY(0) rotate(0);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}
.games-page .mem-header {
    animation: 1s fadeInDown;
}
.games-page .mem-header-icon {
    border-radius: 50%;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    animation: 3s ease-in-out infinite pulseGlow;
}
.games-page .mem-header-icon::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    z-index: -1;
    opacity: 0.3;
    animation: 4s linear infinite rotate;
}
.games-page .child-info-mem::before,
.games-page .game-card-mem::before {
    left: 0;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    position: absolute;
    content: "";
    top: 0;
    right: 0;
}
@keyframes pulseGlow {
    0%,
    100% {
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 30px 90px rgba(102, 126, 234, 0.5);
        transform: scale(1.05);
    }
}
.games-page .mem-header h1 {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}
.games-page .mem-header p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.games-page .child-info-mem {
    border-radius: 30px;
    padding: 35px 40px;
    margin-bottom: 50px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    gap: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: 1s fadeInUp;
    overflow: hidden;
}
.games-page .child-info-mem::before {
    height: 6px;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.games-page .child-avatar-mem {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    flex-shrink: 0;
}
.child-details-fun,
.games-page .child-details-mem,
.header-content,
.template-info,
.template-option-info {
    flex: 1;
}
.games-page .child-details-mem h3 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 12px;
}
.games-page .child-stats-mem {
    display: flex;
    gap: 30px;
}
.games-page .stat-mem,
.stat-fun {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--gray);
}
.games-page .stat-mem i {
    color: #764ba2;
    font-size: 1.4rem;
}
.games-page .stat-mem strong {
    color: #667eea;
    font-weight: 900;
    font-size: 1.4rem;
}
.games-page .games-grid-mem {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}
.games-page .game-card-mem {
    background: #fff;
    border-radius: 30px;
    text-align: center;
    color: var(--dark);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
}
.games-page .game-badge-mem,
.games-page .game-icon-mem {
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: relative;
    z-index: 2;
}
.games-page .game-card-mem::before {
    height: 10px;
    transform: scaleX(0);
    transition: transform 0.5s;
}
.athkar-card:hover::before,
.game-card-fun:hover::before,
.games-page .game-card-mem:hover::before,
.service-card-modern:hover::before,
.why-card:hover::before {
    transform: scaleX(1);
}
.games-page .game-card-mem::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(102, 126, 234, 0.1) 0,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    transition:
        width 0.6s,
        height 0.6s;
}
.games-page .game-card-mem:hover::after {
    width: 500px;
    height: 500px;
}
.games-page .game-card-mem:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.4);
}
.games-page .game-card-mem.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
}
.game-card-fun.coming-soon:hover,
.games-page .game-card-mem.coming-soon:hover {
    transform: translateY(0) scale(1);
}
.games-page .game-icon-mem {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.5);
    transition: 0.4s;
}
.games-page .game-card-mem:hover .game-icon-mem {
    transform: rotate(360deg) scale(1.1);
}
.games-page .game-card-mem p {
    color: var(--gray);
    position: relative;
    z-index: 2;
}
.games-page .game-badge-mem {
    display: inline-block;
    padding: 10px 25px;
    color: #fff;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}
.game-badge-fun.new,
.games-page .game-badge-mem.new {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    animation: 2s ease-in-out infinite pulse;
}
.games-page .game-badge-mem.coming-soon {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
}
.games-page .difficulty-level {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}
.games-page .difficulty-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e7eb;
}
.games-page .difficulty-dot.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
}
.section-divider h2,
.tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
}
.games-page .game-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f3f4f6;
}
.games-page .game-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.games-page .game-stat-item i {
    color: #667eea;
    font-size: 1.3rem;
}
.games-page .game-stat-item span {
    font-size: 0.9rem;
    color: var(--gray);
}
.games-page .btn-back-mem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 50px;
    background: #fff;
    color: #667eea;
    border: none;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: 0.4s;
}
.games-page .btn-back-mem:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    color: #667eea;
}
.games-page .section-divider {
    text-align: center;
    margin: 60px 0 40px;
}
.games-page .section-divider h2 {
    display: inline-block;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.fun-games-page {
    min-height: 100vh;
    background: linear-gradient(
        135deg,
        #ff6b6b 0,
        #ffe66d 25%,
        #4ecdc4 50%,
        #95e1d3 75%,
        #f093fb 100%
    );
    padding: 65px 0 60px;
    position: relative;
    overflow: hidden;
}
.fun-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: 20s ease-in-out infinite floatShape;
}
.shape-1 {
    width: 400px;
    height: 400px;
    background: #ff6b6b;
    top: 5%;
    left: 5%;
    animation-delay: 0s;
}
.shape-2 {
    width: 300px;
    height: 300px;
    background: #4ecdc4;
    top: 50%;
    right: 5%;
    animation-delay: 2s;
}
.shape-3 {
    width: 350px;
    height: 350px;
    background: #ffe66d;
    bottom: 5%;
    left: 15%;
    animation-delay: 4s;
}
.shape-4 {
    width: 250px;
    height: 250px;
    background: #95e1d3;
    top: 25%;
    right: 25%;
    animation-delay: 6s;
}
.shape-5 {
    width: 200px;
    height: 200px;
    background: #f093fb;
    bottom: 30%;
    right: 10%;
    animation-delay: 8s;
}
.child-info-fun,
.fun-header-icon {
    background: #fff;
    align-items: center;
    display: flex;
}
@keyframes floatShape {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.15);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.85);
    }
    75% {
        transform: translate(30px, 30px) scale(1.1);
    }
}
.fun-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    animation: 25s linear infinite floatFunIcon;
}
.icon-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}
.icon-2 {
    top: 25%;
    right: 12%;
    animation-delay: 3s;
}
.icon-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 6s;
}
.icon-4 {
    top: 55%;
    right: 8%;
    animation-delay: 9s;
}
.icon-5 {
    bottom: 35%;
    left: 8%;
    animation-delay: 12s;
}
@keyframes floatFunIcon {
    0% {
        transform: translateY(0) rotate(0);
    }
    100% {
        transform: translateY(-120vh) rotate(720deg);
    }
}
.fun-header {
    animation: 1s zoomIn;
}
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.fun-header-icon {
    border-radius: 50%;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: 2s ease-in-out infinite bounce;
    position: relative;
}
.fun-header-icon::before {
    content: "";
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #ffe66d, #4ecdc4, #f093fb);
    z-index: -1;
    opacity: 0.3;
    animation: 5s linear infinite rotate;
}
@keyframes bounce {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }
    25% {
        transform: translateY(-20px) rotate(-5deg);
    }
    75% {
        transform: translateY(-10px) rotate(5deg);
    }
}
@keyframes rotate {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}
.fun-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
}
.fun-header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.child-info-fun {
    border-radius: 35px;
    padding: 40px 45px;
    margin-bottom: 50px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    gap: 35px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    animation: 1s slideInRight;
    position: relative;
    overflow: hidden;
}
.child-info-fun::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #ff6b6b, #ffe66d, #4ecdc4, #f093fb);
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.child-avatar-fun {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #ff6b6b, #f093fb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.5);
    flex-shrink: 0;
}
.child-details-fun h3 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 15px;
}
.child-stats-fun {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.stat-fun i {
    color: #ff6b6b;
    font-size: 1.5rem;
}
.stat-fun strong {
    color: #f093fb;
    font-weight: 900;
    font-size: 1.5rem;
}
.games-grid-fun {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}
.game-card-fun {
    background: #fff;
    border-radius: 35px;
    text-align: center;
    color: var(--dark);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    position: relative;
}
.game-badge-fun,
.game-icon-fun {
    background: linear-gradient(135deg, #ff6b6b, #f093fb);
}
.game-card-fun::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(90deg, #ff6b6b, #ffe66d, #4ecdc4);
    transform: scaleX(0);
    transition: transform 0.5s;
}
.game-card-fun::after {
    content: "✨";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    transition: 0.5s;
}
.game-card-fun:hover::after {
    opacity: 1;
    transform: scale(1) rotate(0);
}
.game-card-fun:hover {
    transform: translateY(-25px) scale(1.03);
    box-shadow: 0 35px 90px rgba(255, 107, 107, 0.4);
}
.game-card-fun.coming-soon {
    opacity: 0.65;
    cursor: not-allowed;
}
.game-icon-fun {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 25px 60px rgba(255, 107, 107, 0.5);
    position: relative;
    transition: 0.5s;
}
.game-card-fun:hover .game-icon-fun {
    transform: scale(1.15) rotate(360deg);
}
.game-card-fun h3 {
    font-weight: 900;
    color: var(--dark);
}
.game-badge-fun,
.section-divider h2 {
    display: inline-block;
    color: #fff;
    font-weight: 900;
}
.game-badge-fun {
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
    animation: 3s ease-in-out infinite wiggle;
}
@keyframes wiggle {
    0%,
    100% {
        transform: rotate(0);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg);
    }
}
.game-badge-fun.coming-soon {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    animation: none;
}
.btn-back-fun {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 22px 55px;
    background: #fff;
    color: #ff6b6b;
    border: none;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transition: 0.4s;
}
.page-header,
.tabs-container {
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
.btn-back-fun:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
}
.section-divider {
    text-align: center;
    margin: 70px 0 50px;
}
.section-divider h2 {
    backdrop-filter: blur(15px);
    border-radius: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}
@media (max-width: 768px) {
    .children-grid,
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dashboard-header {
        padding: 30px 0;
    }
    .fun-header h1,
    .games-page .mem-header h1,
    .welcome-text h1 {
        font-size: 1.5rem;
    }
    .child-name,
    .child-stat-value,
    .games-page .mem-header p,
    .welcome-text p {
        font-size: 1rem;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .btn-add-child {
        width: 100%;
        justify-content: center;
    }
    .children-grid {
        gap: 5px;
    }
    .stat-card {
        flex-direction: column;
        padding: 10px;
        gap: 0;
    }
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .dashboard {
        padding-top: 20px;
    }
    .stat-value {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.2rem;
    }
    .child-card {
        padding: 10px;
    }
    .child-avatar {
        width: 55px;
        height: 55px;
        font-size: 2rem;
    }
    .child-actions {
        width: 100%;
    }
    .btn-delete {
        max-width: 20%;
        padding: 2px;
    }
    .btn-select {
        max-width: 80%;
        padding: 5px;
        font-size: 14px;
    }
    .child-stats {
        margin: 5px 0;
        padding: 5px 0;
    }
    .games-grid-fun,
    .games-page .games-grid-mem {
        grid-template-columns: 1fr;
    }
    .games-page .child-info-mem {
        flex-direction: column;
        text-align: center;
    }
    .games-page .mem-header {
        margin-bottom: 25px;
    }
    .child-info-fun {
        flex-direction: column;
        text-align: center;
        padding: 30px 25px;
    }
    .child-stats-fun {
        justify-content: center;
    }
    .navbar-custom {
        padding: 2px 0;
    }
}
.teacher-temp-page {
    background: linear-gradient(135deg, #667eea 0, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
}
.page-header {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.page-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}
.page-title i {
    color: #667eea;
}
.page-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin: 10px 0 0;
}
.btn-back {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-back:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.tabs-container {
    background: #fff;
    padding: 25px;
    margin-bottom: 30px;
}
.empty-state,
.template-card {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.tabs-header {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}
.tabs-header::-webkit-scrollbar {
    height: 5px;
}
.tabs-header::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.tabs-header::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}
.tab-btn {
    padding: 5px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
}
.quiz-page .answer-btn.correct .answer-label,
.quiz-page .answer-btn.wrong .answer-label,
.tab-count {
    background: rgba(255, 255, 255, 0.3);
}
.tab-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}
.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}
.tab-icon {
    font-size: 1.8rem;
}
.tab-count {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 900;
}
.templates-content {
    display: none;
    animation: 0.5s fadeIn;
}
.quiz-page .game-container.active,
.templates-content.active {
    display: block;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}
.template-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    transition: 0.3s;
    position: relative;
    border: 3px solid transparent;
}
.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}
.template-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}
.template-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1),
        rgba(118, 75, 162, 0.1)
    );
    border-radius: 18px;
    flex-shrink: 0;
}
.template-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: #1e293b;
    margin: 0 0 8px;
}
.template-student {
    color: #667eea;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.template-details {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}
.template-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 12px;
}
.template-detail i {
    color: #667eea;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}
.template-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.btn-action {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-action:hover,
.btn-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.btn-edit,
.quiz-page .btn-restart {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}
.btn-change {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
}
.btn-share {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}
.btn-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    max-width: 100%;
}
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border-radius: 20px;
}
.empty-icon {
    font-size: 6rem;
    margin-bottom: 20px;
    opacity: 0.3;
}
.empty-title,
.quiz-page .level-name {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 10px;
}
.empty-text,
.modal-text {
    color: #64748b;
    font-size: 1.1rem;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-content {
    background: #fff;
    border-radius: 25px;
    padding: 0;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: 0.3s modalZoom;
}
@keyframes modalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.modal-header {
    text-align: center;
    margin-bottom: 0;
    padding: 5px 20px;
}
.modal-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}
.modal-title {
    font-size: 1rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0;
}
.template-options {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}
.template-option {
    padding: 20px;
    border: 3px solid #e2e8f0;
    border-radius: 18px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 20px;
}
.template-option:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}
.template-option.selected,
input[type="radio"]:checked + .template-option,
input[type="radio"]:checked ~ .template-option {
    border-color: #667eea;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1),
        rgba(118, 75, 162, 0.1)
    );
}
.form-group input[type="radio"] {
    display: none;
}
label input[type="radio"]:checked + .template-option,
label:has(.template-option) input[type="radio"]:checked ~ .template-option {
    border-color: #667eea;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1),
        rgba(118, 75, 162, 0.1)
    );
}
.template-option-icon {
    font-size: 3rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1),
        rgba(118, 75, 162, 0.1)
    );
    border-radius: 15px;
    flex-shrink: 0;
}
.template-option-name {
    font-size: 1.3rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 5px;
}
.btn-copy,
.btn-modal {
    font-weight: 800;
    gap: 10px;
    display: flex;
    transition: 0.3s;
    cursor: pointer;
}
.template-option-desc {
    color: #64748b;
    font-size: 0.95rem;
}
.share-link-container {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}
.share-link {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.95rem;
    color: #667eea;
    word-break: break-all;
    margin-bottom: 15px;
}
.btn-confirm,
.btn-copy {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}
.btn-copy {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    align-items: center;
    justify-content: center;
}
.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}
.modal-actions {
    display: flex;
    gap: 10px;
}
.btn-modal {
    flex: 1;
    border: none;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
}
.btn-cancel,
.quiz-page .btn-menu {
    background: #e2e8f0;
    color: #64748b;
}
.theme-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 3px;
    margin-top: 15px;
}
.theme-option {
    padding: 25px 15px;
    background: #fff;
    border: 3px solid #e5e7eb;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.theme-option:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #8b5cf6;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}
.theme-option.selected {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #f3e8ff, #fce7f3);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}
.theme-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    animation: 3s ease-in-out infinite float;
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
.theme-name {
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--dark);
}
.theme-option.selected .theme-icon {
    animation: 0.5s bounce;
}
.form-control {
    font-family: inherit;
}
.input-group input[type="text"] {
    border-radius: 0 15px 15px 0 !important;
}
.input-group .btn {
    border-radius: 0;
}
.game-card-fun,
.modal-body {
    padding: 10px;
}
.btn-modal {
    padding: 9px;
    font-size: 1rem;
    gap: 6px;
}
.fun-header-icon,
.game-icon-fun,
.games-page .mem-header-icon {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
}
.game-card-fun h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.game-card-fun p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
}
.game-badge-fun {
    padding: 5px 15px;
    font-size: 1rem;
}
.section-divider h2 {
    padding: 18px 30px;
    font-size: 1.5rem;
}
.games-page .memorization-page {
    min-height: 100vh;
    padding: 90px 20px 4px;
}
.games-page .game-card-mem {
    padding: 5px 4px;
}
.games-page .game-icon-mem {
    width: 70px;
    height: 70px;
    font-size: 2.3rem;
}
.games-page .game-card-mem h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 18px;
    color: var(--dark);
    position: relative;
    z-index: 2;
}
.games-page .game-card-mem p {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.6;
}
.verse-range-custom .input-group {
    width: 140px;
}
.verse-range-custom .input-group input {
    width: 50%;
    padding: 5px;
}
.form-section-timer .input-group button,
.verse-range-custom .input-group button {
    font-weight: 700;
    border-radius: 0;
}
.verse-range-custom .form-control[readonly] {
    background-color: #f8f9fa;
    font-weight: 700;
    font-size: 1.1rem;
}
.verse-range-custom .divider {
    margin-top: 7px;
}
.form-section-timer .input-group {
    width: 200px;
    margin: 0 auto;
}
.form-section-timer .input-group input {
    width: 50%;
}
@media (max-width: 991px) {
    .theme-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }
    .form-section-timer .input-group input,
    .theme-option {
        padding: 4px;
    }
    .theme-icon {
        font-size: 1.7rem;
    }
    .template-option {
        padding: 10px;
        gap: 3px;
    }
    .template-option-info {
        text-align: right;
        margin-right: 5px;
    }
    .template-option-name {
        font-size: 1rem;
    }
    .btn-action {
        padding: 7px 0;
        font-size: 11px;
        gap: 0;
    }
    .template-actions,
    .verse-range-custom {
        gap: 2px;
    }
    .badge-item {
        gap: 2px;
        padding: 9px 4px;
        font-size: 13px;
    }
    .verse-range-custom .input-group {
        width: 140px;
    }
}
.quiz-page .start-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5d876 0, #dbad2b 100%);
    z-index: 1000;
    padding: 20px;
}
.quiz-page .start-content {
    text-align: center;
    color: #fff;
    max-width: 1200px;
    width: 100%;
    animation: 0.8s zoomIn;
}
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.quiz-page .result-icon,
.quiz-page .start-icon {
    font-size: 8rem;
    margin-bottom: 30px;
    animation: 2s ease-in-out infinite bounce;
}
@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}
.quiz-page .start-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}
.quiz-page .start-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 60px;
    opacity: 0.95;
}
.quiz-page .levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.quiz-page .level-card {
    background: #fff;
    border-radius: 25px;
    padding: 35px 25px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
}
.quiz-page .level-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: #fff;
}
.quiz-page .level-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #dbad2b, #f5d876);
}
.quiz-page .level-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}
.quiz-page .level-desc {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 15px;
}
.quiz-page .level-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #dbad2b, #f5d876);
    color: #fff;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 800;
}
.quiz-page .level-card.level-1 .level-icon {
    color: #10b981;
}
.quiz-page .level-card.level-2 .level-icon {
    color: #3b82f6;
}
.quiz-page .level-card.level-3 .level-icon {
    color: #f59e0b;
}
.quiz-page .level-card.level-4 .level-icon {
    color: #8b5cf6;
}
.quiz-page .level-card.level-5 .level-icon {
    color: #ef4444;
}
.quiz-page .btn-back-start {
    background: #fff;
    color: #dbad2b;
    padding: 18px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}
.quiz-page .btn-back-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.quiz-page .game-container {
    display: none;
    min-height: 100vh;
    padding: 20px;
}
.quiz-page .game-header {
    background: #fff;
    border-radius: 25px;
    padding: 25px 35px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border: 3px solid rgba(219, 173, 43, 0.2);
}
.quiz-page .header-left {
    display: flex;
    align-items: center;
    gap: 25px;
}
.quiz-page .level-indicator {
    background: linear-gradient(135deg, #dbad2b, #f5d876);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 900;
    box-shadow: 0 8px 25px rgba(219, 173, 43, 0.3);
}
.quiz-page .score-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
}
.quiz-page .score-item i {
    font-size: 1.5rem;
    color: #dbad2b;
}
.quiz-page .score-value {
    font-size: 2rem;
    color: #dbad2b;
}
.quiz-page .header-right {
    display: flex;
    gap: 15px;
}
.quiz-page .btn-header,
.quiz-page .question-number {
    font-weight: 800;
    color: #64748b;
    gap: 10px;
    display: flex;
}
.quiz-page .btn-header {
    padding: 12px 25px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background: #fff;
    cursor: pointer;
    transition: 0.3s;
    align-items: center;
}
.quiz-page .btn-header:hover {
    border-color: #dbad2b;
    color: #dbad2b;
    transform: translateY(-2px);
}
.quiz-page .question-container {
    background: #fff;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    border: 3px solid rgba(219, 173, 43, 0.2);
}
.quiz-page .question-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.quiz-page .question-number {
    font-size: 1.5rem;
    background: #f8fafc;
    padding: 15px 30px;
    border-radius: 50px;
    align-items: center;
}
.quiz-page .question-timer {
    font-size: 3rem;
    font-weight: 900;
    color: #dbad2b;
    display: flex;
    align-items: center;
    gap: 15px;
}
.quiz-page .question-timer.warning {
    color: #ef4444;
    animation: 0.5s ease-in-out infinite shake;
}
@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-8px);
    }
    75% {
        transform: translateX(8px);
    }
}
.quiz-page .progress-bar-custom {
    height: 12px;
    background: #f1f5f9;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 40px;
}
.quiz-page .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dbad2b, #f5d876);
    border-radius: 50px;
    transition: width 0.5s;
    box-shadow: 0 0 15px rgba(219, 173, 43, 0.5);
}
.quiz-page .question-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1e293b;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.5;
}
.quiz-page .answers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.quiz-page .answer-btn {
    padding: 30px;
    border: 4px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    cursor: pointer;
    transition: 0.3s;
    text-align: right;
    position: relative;
}
.quiz-page .answer-btn:hover:not(.disabled) {
    transform: translateY(-5px);
    border-color: #dbad2b;
    box-shadow: 0 10px 30px rgba(219, 173, 43, 0.2);
}
.quiz-page .answer-btn.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
.quiz-page .answer-btn.correct {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-color: #10b981;
    animation: 0.5s correctAnim;
}
.quiz-page .answer-btn.wrong {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border-color: #ef4444;
    animation: 0.5s wrongAnim;
}
@keyframes correctAnim {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
@keyframes wrongAnim {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}
.quiz-page .answer-label {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #dbad2b, #f5d876);
    color: #fff;
    border-radius: 12px;
    font-size: 1.8rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
}
.quiz-page .result-screen {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.quiz-page .result-content {
    background: #fff;
    border-radius: 40px;
    padding: 60px;
    text-align: center;
    max-width: 700px;
    width: 100%;
    animation: 0.6s zoomIn;
    border: 5px solid #dbad2b;
}
.quiz-page .result-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 20px;
}
.quiz-page .result-message {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #dbad2b, #f5d876);
    -webkit-background-clip: text;
    background-clip: text;
}
.quiz-page .result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}
.quiz-page .result-stat {
    background: linear-gradient(
        135deg,
        rgba(219, 173, 43, 0.1),
        rgba(245, 216, 118, 0.1)
    );
    padding: 25px;
    border-radius: 20px;
    border: 2px solid rgba(219, 173, 43, 0.2);
}
.quiz-page .result-stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.quiz-page .result-stat-value {
    font-size: 3rem;
    font-weight: 900;
    color: #dbad2b;
    margin-bottom: 5px;
}
.quiz-page .result-stat-label {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 600;
}
.quiz-page .btn-result {
    padding: 20px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}
.quiz-page .btn-next-level {
    background: linear-gradient(135deg, #dbad2b, #f5d876);
    color: #fff;
}
.quiz-page .btn-result:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.quiz-page .stars-display {
    margin-bottom: 30px;
}
.quiz-page .star {
    font-size: 3rem;
    margin: 0 5px;
    opacity: 0.3;
}
.quiz-page .star.filled {
    opacity: 1;
    color: #dbad2b;
    animation: 0.5s starPop;
}
@keyframes starPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}
.services-section-modern {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0, #fff 100%);
}
.service-card-modern {
    background: #fff;
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    transition: 0.4s;
    border: 2px solid rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
}
.service-card-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    transform: scaleX(0);
    transition: transform 0.4s;
}
.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}
.service-icon-modern {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.athkar-icon,
.whatsapp-float {
    align-items: center;
    display: flex;
}
.service-icon-modern::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.service-card-modern:hover .service-icon-modern::before {
    opacity: 1;
}
.service-icon-modern.purple {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}
.service-icon-modern.blue {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}
.service-icon-modern.green {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}
.service-icon-modern.orange {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}
.service-icon-modern.pink {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}
.service-icon-modern.red {
    background: linear-gradient(135deg, #ef4444, #f87171);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}
.service-card-modern h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1f2937;
    margin-bottom: 15px;
}
.service-card-modern p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}
.service-glow {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(
        circle,
        rgba(139, 92, 246, 0.1) 0,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    transition: 0.4s;
}
.service-card-modern:hover .service-glow {
    bottom: -30px;
    right: -30px;
    opacity: 1.5;
}
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: 0.3s;
    animation: 2s infinite pulse;
}
.mechanism-card h3,
.mechanism-card p,
.mechanism-icon,
.thikr-text {
    z-index: 1;
    position: relative;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(37, 211, 102, 0.5);
    color: #fff;
}
.whatsapp-float i {
    font-size: 2rem;
}
.whatsapp-float::before {
    content: "تواصل معنا";
    position: absolute;
    left: 100%;
    margin-left: 15px;
    background: #1f2937;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    font-family: Cairo, sans-serif;
}
.whatsapp-float:hover::before {
    opacity: 1;
    margin-right: 20px;
}
.whatsapp-float::after {
    content: "";
    position: absolute;
    left: 100%;
    margin-left: 7px;
    border: 7px solid transparent;
    border-left-color: #1f2937;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}
.whatsapp-float:hover::after {
    opacity: 1;
    margin-right: 12px;
}
.btn-large {
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 45px;
}
.btn-modern.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}
.athkar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 80px;
    background: linear-gradient(135deg, #f8fafc 0, #fff 100%);
    min-height: 100vh;
}
.athkar-header {
    text-align: center;
    margin-bottom: 60px;
    animation: 0.8s fadeInDown;
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.athkar-icon {
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 4.5rem;
    box-shadow: 0 25px 70px rgba(16, 185, 129, 0.35);
    animation: 2s ease-in-out infinite pulse;
}
@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 10px 40px rgba(37, 211, 102, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 10px 60px rgba(37, 211, 102, 0.6);
        transform: scale(1.05);
    }
}
.athkar-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 15px;
}
.athkar-header .gradient-text,
.athkar-view-title .gradient-text {
    background: linear-gradient(135deg, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.athkar-header p {
    font-size: 1.4rem;
    color: #64748b;
    font-weight: 600;
}
.categories-section {
    margin-bottom: 60px;
}
.category-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.category-title i {
    color: #10b981;
    font-size: 2rem;
}
.athkar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 40px;
}
.athkar-card {
    background: #fff;
    border-radius: 25px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 3px solid rgba(16, 185, 129, 0.1);
    position: relative;
}
.athkar-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #10b981, #34d399);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.athkar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
}
.athkar-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e0f2fe 0, #bae6fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
    overflow: hidden;
}
.athkar-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0,
        rgba(0, 0, 0, 0.05) 100%
    );
}
.athkar-content {
    padding: 25px;
}
.athkar-title {
    font-size: 1rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.4;
}
.athkar-desc {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 15px;
}
.athkar-badge,
.btn-back {
    border-radius: 50px;
    font-weight: 800;
}
.athkar-badge {
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
    font-size: 0.9rem;
}
.athkar-view-title,
.thikr-text {
    color: #1e293b;
    text-align: center;
}
.athkar-card:nth-child(4n + 1) .athkar-image {
    background: linear-gradient(135deg, #fef3c7 0, #fde68a 100%);
}
.athkar-card:nth-child(4n + 2) .athkar-image {
    background: linear-gradient(135deg, #dbeafe 0, #bfdbfe 100%);
}
.athkar-card:nth-child(4n + 3) .athkar-image {
    background: linear-gradient(135deg, #fce7f3 0, #fbcfe8 100%);
}
.athkar-card:nth-child(4n + 4) .athkar-image {
    background: linear-gradient(135deg, #e0f2fe 0, #bae6fd 100%);
}
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}
.btn-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.3);
}
.athkar-view-page {
    background: linear-gradient(135deg, #10b981 0, #34d399 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.athkar-view-container {
    max-width: 900px;
    width: 100%;
    background: #fff;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: 0.6s zoomIn;
    margin-top: 70px;
}
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.athkar-icon-big {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 10px;
    animation: 2s ease-in-out infinite bounce;
}
@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}
.athkar-view-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 40px;
}
.thikr-box {
    background: linear-gradient(135deg, #f0fdf4 0, #dcfce7 100%);
    border: 3px solid rgba(16, 185, 129, 0.3);
    border-radius: 30px;
    padding: 15px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}
.thikr-box::before {
    content: "🤲";
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    opacity: 0.1;
}
.thikr-box::after {
    content: "✨";
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.1;
}
.benefits-section::before,
.faq-section::before,
.mechanism-card::before,
.quran-games-section::before,
.why-ayakids-section::before,
.why-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
.thikr-text {
    font-family: Amiri, serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 2;
}
.thikr-text.reading {
    animation: 1s ease-in-out infinite pulse;
}
@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}
.word-highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    padding: 5px 15px;
    border-radius: 10px;
    display: inline-block;
    margin: 0 5px;
    animation: 0.5s highlightPulse;
}
@keyframes highlightPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}
.thikr-meaning {
    background: rgba(219, 173, 43, 0.1);
    border: 2px solid rgba(219, 173, 43, 0.2);
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 10px;
}
.meaning-label {
    font-size: 1.2rem;
    font-weight: 900;
    color: #dbad2b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.meaning-text {
    font-size: 1.3rem;
    color: #64748b;
    font-weight: 600;
    line-height: 1.8;
}
.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.btn-control {
    padding: 20px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.btn-back,
.repeat-section {
    border: 2px solid rgba(16, 185, 129, 0.2);
}
.repeat-btn,
.repeat-label {
    font-size: 1.2rem;
    font-weight: 900;
}
.btn-play {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
}
.btn-play:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}
.btn-play:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-play.playing {
    animation: 1s ease-in-out infinite playingPulse;
}
@keyframes playingPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}
.btn-stop {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: #fff;
}
.btn-stop:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.4);
}
.btn-back {
    background: #fff;
    color: #10b981;
}
.btn-back:hover {
    background: #10b981;
    color: #fff;
    border-color: transparent;
}
.repeat-section {
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
}
.bar,
.repeat-btn {
    background: linear-gradient(135deg, #10b981, #34d399);
}
.repeat-label {
    color: #1e293b;
    margin-bottom: 15px;
}
.repeat-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.repeat-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.why-card,
.why-card::before {
    transition: var(--transition);
}
.repeat-btn:hover {
    transform: scale(1.1);
}
.repeat-count {
    font-size: 2rem;
    font-weight: 900;
    color: #10b981;
    min-width: 80px;
    text-align: center;
}
.audio-visualizer {
    display: none;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    height: 5px;
    margin-bottom: 30px;
}
.bar {
    width: 8px;
    height: 20px;
    border-radius: 4px;
    animation: 0.8s ease-in-out infinite wave;
}
.bar:first-child {
    animation-delay: 0s;
}
.bar:nth-child(2),
.bar:nth-child(8) {
    animation-delay: 0.1s;
}
.bar:nth-child(3),
.bar:nth-child(7) {
    animation-delay: 0.2s;
}
.bar:nth-child(4),
.bar:nth-child(6) {
    animation-delay: 0.3s;
}
.bar:nth-child(5) {
    animation-delay: 0.4s;
}
@keyframes wave {
    0%,
    100% {
        height: 20px;
    }
    50% {
        height: 50px;
    }
}
.benefit-number,
.why-icon {
    align-items: center;
    color: var(--white);
}
.why-ayakids-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}
.why-ayakids-section::before {
    height: 2px;
    background: var(--gradient-purple);
}
.why-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.why-card::before,
.why-icon {
    background: var(--gradient-purple);
}
.benefit-item,
.why-icon {
    border-radius: var(--radius-md);
    display: flex;
}
.why-card::before {
    height: 4px;
    transform: scaleX(0);
}
.why-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}
.why-icon {
    width: 70px;
    height: 70px;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 28px;
    transition: var(--transition-bounce);
}
.benefit-item,
.benefit-item::before,
.mechanism-card,
.mechanism-card::before {
    transition: var(--transition);
}
.why-card:hover .why-icon {
    transform: scale(1.1) rotate(5deg);
}
.why-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}
.why-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1rem;
}
.benefits-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}
.benefits-section::before {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary-purple),
        transparent
    );
}
.benefit-item {
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0, #fff 100%);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}
.benefit-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-blue);
    transform: scaleY(0);
}
.benefit-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}
.benefit-item:hover::before {
    transform: scaleY(1);
}
.benefit-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-blue);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}
.benefit-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}
.benefit-item p {
    color: var(--gray);
    line-height: 1.7;
}
.quran-games-section {
    padding: 100px 0;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}
.quran-games-section::before {
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}
.mechanism-card {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.faq-item,
.mechanism-icon {
    border-radius: var(--radius-md);
}
.mechanism-card::before {
    bottom: 0;
    background: var(--gradient-green);
    opacity: 0;
}
.mechanism-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}
.mechanism-card:hover::before {
    opacity: 0.1;
}
.mechanism-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--white);
    transition: var(--transition-bounce);
}
.mechanism-card:hover .mechanism-icon {
    transform: scale(1.1) rotate(-5deg);
}
.mechanism-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}
.mechanism-card p {
    color: var(--gray);
    line-height: 1.7;
}
.faq-section {
    padding: 100px 0;
    background: var(--light-gray);
    position: relative;
}
.faq-item,
.faq-question {
    background: var(--white);
    transition: var(--transition);
}
.faq-section::before {
    height: 3px;
    background: var(--gradient-orange);
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid transparent;
}
.faq-question:hover {
    background: linear-gradient(135deg, #fef3c7 0, #fff 100%);
    border-color: var(--primary-orange);
}
.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    flex: 1;
}
.faq-question i {
    color: var(--primary-orange);
    font-size: 1.2rem;
    transition: var(--transition);
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: rgba(254, 243, 199, 0.3);
}
.faq-item.active .faq-answer {
    max-height: 500px;
}
.faq-answer p {
    padding: 0 30px 25px;
    color: var(--gray);
    line-height: 1.8;
    font-size: 1rem;
}
@media (max-width: 992px) {
    .benefits-section,
    .faq-section,
    .quran-games-section,
    .why-ayakids-section {
        padding: 80px 0;
    }
    .why-card {
        padding: 30px 25px;
    }
    .mechanism-card {
        padding: 30px 20px;
    }
}
@media (max-width: 768px) {
    .athkar-grid,
    .template-actions,
    .templates-grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-header {
        padding: 20px;
    }
    .page-title {
        font-size: 1.6rem;
    }
    .tabs-container {
        padding: 5px;
    }
    .tabs-header {
        gap: 10px;
    }
    .tab-btn {
        padding: 2px 0;
        font-size: 12px;
    }
    .athkar-header h1,
    .tab-icon {
        font-size: 1.5rem;
    }
    .templates-grid {
        gap: 5px;
    }
    .template-card {
        padding: 2px;
    }
    .athkar-container,
    .modal-content {
        padding: 0;
    }
    .athkar-header p,
    .meaning-label,
    .meaning-text,
    .modal-title,
    .repeat-label {
        font-size: 1rem;
    }
    .template-option {
        flex-direction: row;
        text-align: center;
    }
    .template-icon {
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
    .template-title {
        font-size: 0.8rem;
    }
    .template-student {
        font-size: 0.7rem;
        gap: 4px;
    }
    .template-detail {
        font-size: 0.75rem;
        padding: 5px 6px;
    }
    .quiz-page .result-title,
    .quiz-page .start-title {
        font-size: 2.5rem;
    }
    .category-title,
    .quiz-page .start-subtitle {
        font-size: 1.3rem;
    }
    .quiz-page .answers-grid,
    .quiz-page .levels-grid,
    .quiz-page .result-stats {
        grid-template-columns: 1fr;
    }
    .quiz-page .game-header {
        padding: 20px;
        flex-direction: column;
    }
    .quiz-page .header-left {
        flex-direction: column;
        width: 100%;
    }
    .quiz-page .score-display {
        width: 100%;
        justify-content: space-around;
    }
    .quiz-page .question-container {
        padding: 30px 20px;
    }
    .quiz-page .question-text {
        font-size: 1.8rem;
    }
    .quiz-page .answer-btn {
        padding: 20px;
        font-size: 1.2rem;
    }
    .quiz-page .result-content {
        padding: 40px 25px;
    }
    .controls,
    .quiz-page .result-buttons {
        flex-direction: column;
    }
    .quiz-page .btn-result {
        width: 100%;
        justify-content: center;
    }
    .btn-large {
        padding: 18px 40px;
        font-size: 1.2rem;
        width: 100%;
        justify-content: center;
    }
    .service-card-modern {
        margin-bottom: 20px;
    }
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 20px;
    }
    .whatsapp-float i {
        font-size: 1.7rem;
    }
    .whatsapp-float::after,
    .whatsapp-float::before {
        display: none;
    }
    .athkar-view-container {
        padding: 10px 5px;
    }
    .athkar-icon-big,
    .athkar-view-title {
        font-size: 2rem;
    }
    .btn-control,
    .thikr-text {
        font-size: 1.2rem;
    }
    .btn-control {
        padding: 15px 30px;
        width: 100%;
        justify-content: center;
    }
    .athkar-view-page {
        padding: 3px;
    }
    .repeat-section {
        padding: 1px;
        margin-bottom: 5px;
    }
    .benefits-section,
    .faq-section,
    .quran-games-section,
    .why-ayakids-section {
        padding: 60px 0;
    }
    .mechanism-card,
    .why-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    .benefit-item {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    .benefit-number {
        margin: 0 auto 15px;
    }
    .faq-question {
        padding: 20px 25px;
    }
    .faq-question h3 {
        font-size: 1.1rem;
    }
    .faq-answer p {
        padding: 0 25px 20px;
    }
}
@media (max-width: 576px) {
    .games-cta-section,
    .services-section-modern {
        padding: 60px 0;
    }
    .service-icon-modern {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    .service-card-modern h3,
    .why-card h3 {
        font-size: 1.3rem;
    }
    .service-card-modern p {
        font-size: 0.95rem;
    }
    .benefits-section,
    .faq-section,
    .quran-games-section,
    .why-ayakids-section {
        padding: 40px 0;
    }
    .benefit-item,
    .mechanism-card,
    .why-card {
        padding: 20px 15px;
    }
    .why-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    .benefit-number {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    .benefit-item h3,
    .mechanism-card h3 {
        font-size: 1.2rem;
    }
    .mechanism-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1rem;
    }
    .faq-answer p {
        padding: 0 20px 15px;
        font-size: 0.95rem;
    }
}
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    animation: 0.3s fadeInDown;
}
.auth-alert i {
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.auth-alert-error {
    background: #fff1f2;
    color: #b91c1c;
    border: 2px solid #fecaca;
}
.auth-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 2px solid #bbf7d0;
}
.auth-alert ul {
    list-style: disc;
    margin: 0;
    padding-right: 20px;
}
.auth-alert ul li {
    margin-bottom: 4px;
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang {
    border: 1px solid #3091d7;
    color: #358ae7;
}
