/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    direction: rtl;
}

/* إعدادات الشاشات */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    z-index: 1;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* شاشة الترحيب */
#welcome-screen {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    color: white;
}

.logo-container {
    position: relative;
}

.animated-logo {
    width: 150px;
    height: 150px;
    filter: brightness(1.2) contrast(1.1);
    animation: colorPulse 2s ease-in-out infinite, logoFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes colorPulse {
    0% { 
        filter: brightness(1.2) contrast(1.1) hue-rotate(0deg);
        box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
    }
    25% { 
        filter: brightness(1.4) contrast(1.2) hue-rotate(90deg);
        box-shadow: 0 0 40px rgba(53, 255, 107, 0.4);
    }
    50% { 
        filter: brightness(1.6) contrast(1.3) hue-rotate(180deg);
        box-shadow: 0 0 50px rgba(107, 53, 255, 0.5);
    }
    75% { 
        filter: brightness(1.4) contrast(1.2) hue-rotate(270deg);
        box-shadow: 0 0 40px rgba(255, 53, 107, 0.4);
    }
    100% { 
        filter: brightness(1.2) contrast(1.1) hue-rotate(360deg);
        box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
    }
}









/* شاشة السؤال */
#question-screen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.question-container {
    max-width: 600px;
    padding: 20px;
}

.question-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.question-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.question-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.btn-yes {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.btn-no {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.btn-no:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(244, 67, 54, 0.3);
}

/* شاشة التحميل المشابهة لفري فاير */
#loading-screen {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.ff-loading-container {
    text-align: center;
    color: white;
}

.ff-logo img {
    width: 150px;
    height: 150px;
    animation: ffLogoGlow 2s ease-in-out infinite;
}

@keyframes ffLogoGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 10px #ff6b35);
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 20px #ff6b35);
        transform: scale(1.05);
    }
}

.ff-loading-bar {
    width: 400px;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    margin: 40px auto 20px;
    overflow: hidden;
    border: 2px solid #ff6b35;
}

.ff-loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #ffd700, #ff6b35);
    border-radius: 4px;
    animation: ffLoadingProgress 3s ease-in-out;
}

@keyframes ffLoadingProgress {
    from { width: 0%; }
    to { width: 100%; }
}

.ff-loading-text {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #ff6b35;
    font-weight: 600;
}

.ff-loading-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.ff-loading-dots span {
    width: 12px;
    height: 12px;
    background: #ff6b35;
    border-radius: 50%;
    animation: ffDotsBounce 1.4s ease-in-out infinite both;
}

.ff-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.ff-loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes ffDotsBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* شاشة اختيار البطاقات */
#cards-screen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.cards-container {
    max-width: 1200px;
    width: 100%;
}

.cards-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.cards-title {
    text-align: center;
    font-size: 2.5rem;
    color: white;
    margin: 0;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.arrow-down {
    font-size: 1.5rem;
    animation: bounceDown 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: visible;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 3px solid #ff6b35;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: cardSlideIn 0.6s ease-out;
    height: 140px;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 10px;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* ألوان مختلفة للبطاقات */
.card[data-gems="105"] {
    border-color: #4CAF50;
}

.card[data-gems="310"] {
    border-color: #CD7F32;
}

.card[data-gems="520"] {
    border-color: #C0C0C0;
}

.card[data-gems="1100"] {
    border-color: #FFD700;
}

.card-main {
    display: flex;
    height: 140px;
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}

.card-image {
    position: relative;
    width: 120px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.3));
}



.card-content {
    flex: 1;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}

.card-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title::before {
    content: "💎";
    font-size: 1rem;
}

.card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

.card-button-container {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.card-btn {
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    padding: 10px 30px;
    margin: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 2px solid white;
}

.card-btn.free {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.card-btn.task {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
}

.card-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: #fff;
}

/* محتوى الزر - الحالة العادية والموقت */
.btn-normal-content {
    display: inline-block;
}

.btn-timer-content {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-timer-content .timer-icon {
    font-size: 1rem;
    animation: timerSpin 3s linear infinite;
}

.btn-timer-content .timer-time {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* حالة الزر عندما يكون موقت */
.card-btn.timer-mode {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    animation: timerPulse 2s ease-in-out infinite;
    pointer-events: none;
    cursor: default;
}







.cards-footer {
    text-align: center;
    margin-top: 30px;
}

.trust-message {
    color: white;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.1);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

/* الصفحات الكاملة */
.full-page-container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 20px 60px 20px;
    position: relative;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

/* أيقونة العودة */
.back-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.9);
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #333;
    z-index: 100;
}

.back-icon:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.back-arrow {
    font-size: 1.2rem;
    font-style: normal;
}

/* رأس الصفحة */
.page-header {
    text-align: center;
    margin: 60px 0 30px 0;
    color: white;
}

/* عرض الجواهر الجديد */
.gems-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.gem-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: gemSparkle 3s ease-in-out infinite;
}

.gems-count {
    font-size: 3rem;
    font-weight: 700;
    color: #4fc3f7;
    text-shadow: 
        0 0 10px rgba(79, 195, 247, 0.5),
        2px 2px 4px rgba(0,0,0,0.3);
    animation: gemsGlow 2s ease-in-out infinite alternate;
}

.task-instruction {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@keyframes gemSparkle {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) brightness(1);
    }
    25% { 
        transform: scale(1.1) rotate(5deg);
        filter: drop-shadow(0 6px 12px rgba(79, 195, 247, 0.4)) brightness(1.2);
    }
    50% { 
        transform: scale(1.05) rotate(0deg);
        filter: drop-shadow(0 8px 16px rgba(79, 195, 247, 0.6)) brightness(1.3);
    }
    75% { 
        transform: scale(1.1) rotate(-5deg);
        filter: drop-shadow(0 6px 12px rgba(79, 195, 247, 0.4)) brightness(1.2);
    }
}

@keyframes gemsGlow {
    0% { 
        text-shadow: 
            0 0 10px rgba(79, 195, 247, 0.5),
            2px 2px 4px rgba(0,0,0,0.3);
    }
    100% { 
        text-shadow: 
            0 0 20px rgba(79, 195, 247, 0.8),
            0 0 30px rgba(79, 195, 247, 0.4),
            2px 2px 4px rgba(0,0,0,0.3);
    }
}

/* الاحتفاظ بتنسيقات gems-badge للبطاقة المجانية */
.gems-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    padding: 20px 30px;
    border-radius: 50px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    animation: gemsPulse 2s ease-in-out infinite;
}

@keyframes gemsPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
}

/* منطقة الكود */
.code-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 30px auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.code-info {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.code-display {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.code-display.locked {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.code-text {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #ff6b35;
    letter-spacing: 2px;
}

.code-text.blurred {
    filter: blur(5px);
    user-select: none;
}

.code-text.locked {
    color: #856404;
}

.code-text.hidden {
    display: none;
}

.reveal-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reveal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.copy-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* معلومات الاستخدام */
.usage-info {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.info-title {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
}

.steps-container {
    display: grid;
    gap: 12px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-right: 3px solid #ff6b35;
}

.step-number {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.step-content p {
    color: #666;
    line-height: 1.5;
}

/* الملاحظات المهمة */
.important-notes {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.notes-title {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.notes-list {
    list-style: none;
    padding: 0;
}

.notes-list li {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    color: #856404;
    position: relative;
    padding-right: 40px;
}

.notes-list li:before {
    content: "⚠️";
    position: absolute;
    right: 15px;
    top: 15px;
}

/* قسم النصائح */
.tips-section {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.tips-title {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
}

.tips-container {
    display: grid;
    gap: 10px;
}

.tip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #e8f5e8;
    border-radius: 10px;
    border-right: 3px solid #4CAF50;
}

.tip-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.tip-content {
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
}

/* قسم الإجراء */
.action-section {
    text-align: center;
    margin: 40px auto;
    max-width: 600px;
}

.complete-task-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.complete-task-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

.action-note {
    color: white;
    opacity: 0.8;
    font-size: 0.95rem;
}

/* تحسينات التمرير للهواتف */
html {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

body {
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    touch-action: manipulation;
    position: relative;
}

.screen {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    position: fixed;
    overflow: hidden;
}

.screen.active {
    overflow: auto;
}

/* إصلاح التمرير على الصفحات الكاملة */
#free-card-screen.active,
#paid-card-screen.active {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* تأثيرات متجاوبة */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cards-title {
        font-size: 2rem;
    }
    
    .arrow-down {
        font-size: 1.3rem;
    }
    
    .card {
        height: 130px;
        margin-bottom: 15px;
    }
    
    .card-main {
        height: 130px;
    }
    
    .card-image {
        width: 100px;
    }
    
    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    

    
    .card-content {
        padding: 10px 15px;
    }
    
    .card-title {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }
    
    .card-description {
        font-size: 0.85rem;
    }
    
    .card-btn {
        padding: 8px 25px;
        font-size: 0.9rem;
    }
    
    .question-box {
        padding: 30px 20px;
    }
    
    .question-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .tasks-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-details-container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .ff-loading-bar {
        width: 300px;
    }
    
    /* الصفحات الكاملة - متجاوب */
    .full-page-container {
        padding: 15px 15px 80px 15px;
        height: 100vh;
        overflow-y: scroll;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    .back-icon {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .page-header {
        margin: 60px 0 30px 0;
    }
    
    .gems-badge {
        font-size: 2rem;
        padding: 15px 25px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .code-section, .usage-info, .important-notes, .tips-section {
        padding: 20px;
        margin: 20px auto;
    }
    
    .step, .tip {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .tip-content {
        font-size: 0.85rem;
    }
    
    .tip-icon {
        font-size: 1rem;
    }
    
    .usage-info, .tips-section, .important-notes {
        margin: 15px auto;
        padding: 15px;
    }
    
    .code-section {
        margin: 15px auto;
        padding: 20px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .complete-task-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    /* رأس الصفحة - تابلت */
    .page-header {
        margin: 50px 0 25px 0;
    }
    
    .gem-icon {
        font-size: 2rem;
    }
    
    .gems-count {
        font-size: 2.5rem;
    }
    
    .task-instruction {
        font-size: 1rem;
    }
    
    .gems-badge {
        font-size: 2rem;
        padding: 15px 25px;
    }
    

}

@media (max-width: 480px) {
    .animated-logo {
        width: 120px;
        height: 120px;
    }
    
    .cards-title {
        font-size: 1.8rem;
    }
    
    .arrow-down {
        font-size: 1.2rem;
    }
    
    .card {
        height: 120px;
        margin-bottom: 12px;
    }
    
    .card-main {
        height: 120px;
    }
    
    .card-image {
        width: 90px;
    }
    
    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .card-content {
        padding: 8px 12px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-description {
        font-size: 0.8rem;
    }
    
    .card-btn {
        font-size: 0.8rem;
        padding: 6px 20px;
    }
    
    .question-title {
        font-size: 1.6rem;
    }
    
    .details-title {
        font-size: 1.6rem;
    }
    
    /* الصفحات الكاملة - شاشات صغيرة */
    .full-page-container {
        padding: 10px 10px 70px 10px;
        height: 100vh;
        overflow-y: scroll;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    .page-header {
        margin: 40px 0 20px 0;
    }
    
    .gem-icon {
        font-size: 1.8rem;
    }
    
    .gems-count {
        font-size: 2.2rem;
    }
    
    .task-instruction {
        font-size: 0.95rem;
    }
    
    .gems-badge {
        font-size: 1.8rem;
        padding: 12px 20px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 0.95rem;
    }
    

    
    .code-section, .usage-info, .important-notes, .tips-section {
        padding: 15px;
        margin: 15px auto;
    }
    
    .info-title, .notes-title, .tips-title {
        font-size: 1.3rem;
    }
    
    .step, .tip {
        padding: 8px 10px;
        gap: 6px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .step-content h4 {
        font-size: 0.95rem;
    }
    
    .step-content p {
        font-size: 0.8rem;
    }
    
    .tip-content {
        font-size: 0.8rem;
    }
    
    .tip-icon {
        font-size: 0.9rem;
    }
    
    .usage-info, .tips-section, .important-notes {
        margin: 10px auto;
        padding: 12px;
    }
    
    .code-section {
        margin: 10px auto;
        padding: 15px;
    }
    
    .complete-task-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .code-text {
        font-size: 1.2rem;
    }
    

}

/* تأثيرات إضافية */
.btn:active {
    transform: scale(0.98);
}

.card:active {
    transform: scale(0.98);
}

/* تأثير الانتقال بين الشاشات */
.screen-transition {
    animation: screenFadeOut 0.3s ease-in-out;
}

@keyframes screenFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}