/* CSS with improved design */
:root {
    --primary-color: #1e3c72;
    --secondary-color: #556b2f;
    --accent-color: #25D366;
    --text-color: #333;
    --light-text: #fff;
    --bg-gradient: linear-gradient(to bottom, #87cefa, #1e3c72);
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    --border-radius: 10px;
}













.compact-crypto {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 15px 0;
    direction: ltr !important;
    text-align: left !important;
}

.crypto-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    direction: ltr !important;
}

.crypto-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #eee;
    direction: ltr !important;
}

.crypto-icon {
    margin-right: 8px;
    font-size: 16px;
}

.crypto-symbol {
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
}

.more-coins .crypto-icon {
    color: var(--secondary-color);
}

/* التأكد من عدم تغيير الاتجاه بأي حال */
[dir="rtl"] .compact-crypto,
[dir="rtl"] .crypto-list,
[dir="rtl"] .crypto-item {
    direction: ltr !important;
    text-align: left !important;
}


.compact-crypto h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: var(--primary-color);
    text-align: right;
}

[dir="ltr"] .compact-crypto h3 {
    text-align: left;
}
























.crypto-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    cursor: pointer;
}

.crypto-item:hover {
    background: #e9f5ff;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.crypto-icon {
    width: 20px;
    height: 20px;
    margin-left: 5px;
    font-size: 20px; /* لحجم الأيقونات */
}

.crypto-symbol {
    font-size: 0.85rem;
    font-weight: bold;
    color: #333;
}

.more-coins .crypto-icon {
    color: var(--secondary-color);
}

/* تأثيرات للعملة الأكثر استخداماً */
.crypto-item[data-coin="usdt"] {
    background: #e6f7f0;
    border-color: #26A17B;
}
.crypto-icons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    justify-content: center;
}

.crypto-icon {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 30px;
    border: 1px solid #eee;
    font-size: 14px;
    transition: all 0.3s ease;
}

.crypto-icon:hover {
    background: #e9f5ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.crypto-icon i {
    margin-left: 8px;
    font-size: 16px;
}

.crypto-icon span {
    font-weight: bold;
}
body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    text-align: center;
    background: var(--bg-gradient);
    transition: all 0.3s ease;
}

[dir="ltr"] body {
    text-align: left;
    font-family: 'Tajawal', sans-serif;
}

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-switcher button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.language-switcher button:hover {
    background-color: #445526;
    transform: scale(1.05);
}

.box {
    border: 2px solid var(--secondary-color);
    padding: 10px 20px;
    background-color: #f9f9f9;
    display: inline-block;
    border-radius: var(--border-radius);
    margin: 10px 0;
    color: var(--secondary-color);
    font-weight: bold;
}



.label {
    position: absolute;
    top: 37%;
    transform: none;
    background: white;
    color: black;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-weight: bold;
    white-space: nowrap;
    box-shadow: var(--box-shadow);
}

.label.left {
    left: 26px;
}

.label.right {
    right: 26px;
}

header {
    background: var(--primary-color);
    padding: 20px;
    color: var(--light-text);
    position: relative;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.profile-image {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 10px 0;
    border: 3px solid var(--secondary-color);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.main-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--box-shadow);
    border: 2px solid white;
}

.name {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--light-text);
}

.verified {
    color: #1DA851 !important;
}

.links-title {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 15px;
    font-weight: bold;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    width: 80%;
}

.links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 10px;
    padding: 0 20px;
    width: 80%;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.link-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

[dir="ltr"] .link-item:hover {
    transform: translateX(-5px);
}

.links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    flex-shrink: 0;
}

.links a.whatsapp {
    background-color: var(--accent-color);
}

.links a.whatsapp:hover {
    background-color: #1DA851;
    transform: scale(1.1);
}

.links a.telegram {
    background-color: #0088cc;
}

.links a.telegram:hover {
    background-color: #0077b5;
    transform: scale(1.1);
}

.links a.twitter {
    background-color: #000;
}

.links a.twitter:hover {
    background-color: #333;
    transform: scale(1.1);
}

.link-text {
    font-size: 1rem;
    color: var(--light-text);
    cursor: pointer;
    text-align: right;
    flex-grow: 1;
}

[dir="ltr"] .link-text {
    text-align: left;
}
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
    background: #fff;
    max-width:100%;
    margin: 0 auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.product {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
}

.product img {
    width: 100%;
    height:auto;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.5s ease;
}

.product:hover img {
    transform: scale(1.05);
}

.testimonials {
    padding: 30px;
    background: #fff;
    margin: 30px auto;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 800px;
}

.testimonials h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.testimonial {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: right;
    transition: all 0.3s ease;
    position: relative;
}

[dir="ltr"] .testimonial {
    text-align: left;
}

.testimonial:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial::before {
    content: '"';
    font-size: 60px;
    color: rgba(85, 107, 47, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

[dir="ltr"] .testimonial::before {
    right: auto;
    left: 20px;
}

.testimonial .user {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial .rating {
    font-size: 1.1rem;
    color: #FFA500;
    margin-bottom: 10px;
    font-weight: bold;
}

.testimonial .rating span {
    color: var(--primary-color);
}

.testimonial .comment {
    margin-top: 10px;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

.add-testimonial {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.add-testimonial input,
.add-testimonial textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.add-testimonial input:focus,
.add-testimonial textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.2);
}

.add-testimonial textarea {
    min-height: 100px;
    resize: vertical;
}

.add-testimonial button {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: var(--box-shadow);
}

.add-testimonial button:hover {
    background-color: #445526;
    transform: translateY(-2px);
}

footer {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 20px;
    margin-top: 30px;
}

footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.license {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-image {
        width: 100px;
        height: 100px;
    }

    .name {
        font-size: 1.3rem;
    }

    .links a {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .link-text {
        font-size: 0.9rem;
    }

    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }

    .product {
        padding: 10px;
    }

    .product img {
        height: 120px;
    }

    .testimonials {
        padding: 20px;
        margin: 20px 15px;
    }

    .testimonial {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .language-switcher button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .label {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
    
    .label.left {
        left: 10px;
    }
    
    .label.right {
        right: 10px;
    }
    
    .profile-image {
        width: 80px;
        height: 80px;
    }
    
    .links {
        width: 90%;
    }
    
    .products {
        grid-template-columns: 1fr;
    }
    
    .add-testimonial button {
        width: 100%;
    }
}
@media (max-width: 600px) {
  .product img {
    height: auto;
    object-fit: contain;
  }
}
