.currency-button {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-icon {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    display: inline-block;
}

.currency-icon.USD::before {
    content: "";
    display: inline-block;
    width: 100%;
    height: 100%;
    background: url("https://flagcdn.com/w20/us.png") no-repeat center/cover;
}

.currency-icon.EUR::before {
    content: "";
    display: inline-block;
    width: 100%;
    height: 100%;
    background: url("https://flagcdn.com/w20/eu.png") no-repeat center/cover;
}

.currency-icon.GBP::before {
    content: "";
    display: inline-block;
    width: 100%;
    height: 100%;
    background: url("https://flagcdn.com/w20/gb.png") no-repeat center/cover;
}

.currency-icon.CAD::before {
    content: "";
    display: inline-block;
    width: 100%;
    height: 100%;
    background: url("https://flagcdn.com/w20/ca.png") no-repeat center/cover;
}

.currency-icon.AUD::before {
    content: "";
    display: inline-block;
    width: 100%;
    height: 100%;
    background: url("https://flagcdn.com/w20/au.png") no-repeat center/cover;
}

.currency-icon.CHF::before {
    content: "";
    display: inline-block;
    width: 100%;
    height: 100%;
    background: url("https://flagcdn.com/w20/ch.png") no-repeat center/cover;
}

.select-selected::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.3s ease;
}

.floating-currency-selector.active .select-selected::after {
    transform: translateY(-30%) rotate(-135deg);
}

.floating-currency-selector {
    position: fixed;
    right: 10px; /* مسافة صغيرة من الحافة اليمنى */
    top: 50%; /* لتكون في منتصف الشاشة */
    transform: translateY(-250%); /* تحريك العنصر بحيث يصبح منتصفه في المنتصف */
    z-index: 1000; /* تأكد من أنها فوق العناصر الأخرى */
    display: flex; /* إبقائها مرئية دائمًا */
    flex-direction: column; /* لجعل الخيارات عمودية */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}



.currency-button {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 8px 35px 8px 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    min-width: 150px;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
}

.currency-button:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.currency-selector {
    background: rgba(20,20,20,0.95);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    margin-top: 5px;
    backdrop-filter: blur(10px);
    display: none;
    width: 100%;
    transition: all 0.3s ease;
}

.currency-selector:focus {
    outline: none;
    border-color: rgba(255,255,255,0.3);
}

.currency-selector option {
    background: #222;
    padding: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.floating-currency-selector.active .currency-selector {
    display: block;
    animation: fadeIn 0.2s ease;
}

#currentCurrencyText {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .floating-currency-selector {
        right: 15px;
        top: auto; /* Optional: Adjust position for smaller screens */
        bottom: 20px; /* Place it near the bottom */
    }
    
    .currency-button {
        min-width: 100px;
        padding: 5px 20px 5px 10px;
        font-size: 12px;
        gap: 5px;
    }
    
    .currency-selector {
        font-size: 12px;
    }
}

/* Specific adjustments for very small screens */
@media (max-width: 480px) {
    .currency-button {
        min-width: 80px;
        padding: 5px 15px 5px 8px;
        font-size: 11px;
    }
}

/* Show on desktop */
@media (min-width: 1025px) {
    .floating-currency-selector {
        display: flex;
    }
    
    #currentCurrencyText {
        display: block;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}






:root {
  /* Couleurs primaires avec contraste suffisant */

  --save-tag: #065F46;        /* Vert foncé pour save tag (7:1) */

}


.save-tag {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--save-tag);
    padding: 0.3rem 0.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}



.payment-methods-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
    width: 300px; /* Default width for large screens */
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    .payment-methods-image {
        width: 250px;
    }
}

@media (max-width: 576px) {
    .payment-methods-image {
        width: 200px;
    }
}

@media (max-width: 380px) {
    .payment-methods-image {
        width: 150px;
    }
}



    .conn_number {
        transition: all 0.3s ease;
    }
    
    .save-badge {
        transition: all 0.3s ease;
        background: rgba(255,56,80,0.1);
        color: #998809;
        padding: 0.5rem 1rem;
        border-radius: 50px;
        font-size: 0.9rem;
        font-weight: bold;
        display: inline-block;
    }
    
    .price {
        transition: all 0.3s ease;
    }
/* Pricing Section Styles */

.guarantee {
    display: block;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-top: 1rem;
}
.pricing-section {
    background: linear-gradient(180deg, var(--dark) 0%, rgba(17,17,17,0.95) 100%);
    position: relative;
}

.badge.bg-gradient-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 50px;
}

/* Device Selector */
.device-slider {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
}

.device-option {
    background: rgba(255,255,255,0.05);
    border: none;
    padding: 0.5rem;
    border-radius: 15px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    min-width: 200px;
}

.device-option i {
    font-size: 2rem;
}

.device-option:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.device-option.active {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
}

.save-tag {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--save-tag);
    padding: 0.3rem 0.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Price Cards */
.price-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 1px 0 8px 0 #788099;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.period {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-align: center;
   /* margin-bottom: 1.5rem; */
}

.product_price {
    text-align: center;
    margin-bottom: 2rem;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
}

.currency {
    font-size: 1.2rem;
    color: var(--primary);
}

.old_price {
    text-decoration: line-through;
    color: rgba(255,255,255,0.5);
    margin-left: 0.5rem;
}

.server_infos {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.server_infos li {
    padding: 0.75rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.02);
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.server_infos li i {
    color: var(--secondary);
}

.order_now_product {
    width: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.order_now_product:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,56,80,0.2);
}

.featured {
    border: 2px solid var(--primary);
}

.hot {
    position: absolute;
    top: 1.5rem;
    right: -3rem;
    background: #998809;
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-size: 0.9rem;
    font-weight: bold;
}

    .order_now_product.loading {
        opacity: 0.8;
        cursor: wait;
    }

    .spinner {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255,255,255,0.3);
        border-radius: 50%;
        border-top-color: #fff;
        animation: spin 1s ease-in-out infinite;
        margin-right: 8px;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

@media (max-width: 768px) {
    .device-slider {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .device-option {
        width: calc(50% - 0.5rem);
        min-width: unset;
    }
}