@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(to top, #382d80, #5a2bc9 );
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.container {
    width: 100%;
    max-width: 600px;
}

.card {
    background: transparent;
    border: 2px solid #6956e53b;
    border-radius: 50px;
    padding: 30px;
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); */
    /* backdrop-filter: blur(10px); */
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.title-box{
    display: flex;
    align-items: center;
    justify-content: center;
} 
.title-box img{
    width: 41px;
    height: 44px;
    margin: 0 10px 20px 0;
}
.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pro-badge {
    background: #2c3e50;
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid #2c3e50;
}

.subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 500;
}

.guarantee {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 400;
}

.subscription-options {
    margin-bottom: 30px;
}

.subscription-option {
    background: rgba(0, 0, 0, 0.13);
    border: 2px solid #6956e5b2;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.subscription-option:hover {
    border-color: #ffffff;
    box-shadow: 0 0 40px #ffffff9d;
}

.subscription-option.selected {
    border-color: #ffffff;
    background: linear-gradient(135deg, #00000065 0%, #0000006b 100%);
    box-shadow: 0 0px 20px rgba(215, 160, 255, 0.623);
}

.option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.subscription-title-Box{
    display: flex;
    align-items: center;
}
.option-info {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 1;
}

.option-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.monthly-price {
    font-size: 0.9rem;
    color: #ffffffc9;
    font-weight: 400;
}

.price-section {
    display: flex;
    align-items: center;
    /* margin: 0 20px; */
}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.discounted-price {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.original-price {
    font-size: 16px;
    color: #ffffffc9;
    text-decoration: line-through;
    font-weight: 400;
}

.discount-badge {
    display: inline-flex;
    gap: 5px;
    position: absolute;
    top: -12px;
    left: 30%;
    text-align: center;
    background: #fecb21fe;
    color: rgb(0, 0, 0);
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.percent{
    margin-bottom: -5px;
    font-size: 0.9rem;
}

.radio-button {
    position: relative;
    margin-left: 20px;
}

.radio-button input[type="radio"] {
    display: none;
}

.radio-button label {
    width: 24px;
    height: 24px;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    display: block;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.radio-button input[type="radio"]:checked + label {
    border-color: #ffffff;
    background: #ffffff;
}

.radio-button input[type="radio"]:checked + label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #582cc4;
    font-size: 14px;
    font-weight: 900;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.btn {
    width: 100%;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.btn-primary {
    background: white;
    color: #2c3e50;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: #f8f9fa00;
    color: #ffffff;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef21;
}

.card-transfer {
    text-align: center;
    margin-bottom: 25px;
}

.card-transfer p {
    font-size: 0.9rem;
    color: #ffffff;
}

.highlight {
    color: #7aa8ff;
    font-weight: 600;
}

.enamad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.enamad img{
    width: 125px;
    height: 136px;
}



/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }
    .card {
        padding: 0 !important;
        border: none !important;
    }
    
    .title {
        font-size: 2rem;
    }
    .subscription-option{
        padding: 15px 10px;
        margin-bottom: 15px;
    }
    .option-content {
        gap: 15px;
        text-align: center;
        position: relative;
    }
    .monthly-price{
        font-size: 12px !important;
    }
    .option-info h3{
        font-size: 14px;
    }
    .discounted-price{
        font-size: 14px;
    }
    .original-price{
        font-size: 12px;
    }
    .discount-badge{
        top: -25px;
        font-size: 10px;
        margin-left: 5px;
    }
    .percent {
        font-size: 10px;
    }
    .price-section {
        margin: 0;
        justify-content: center;
    }
    .radio-button{
        margin-left: 10px;
    }
    .price-info {
        align-items: center;
    }
}

/* Loading Skeleton Styles */
.subscriptions-loading,
.card-subscriptions-loading {
    animation: fadeIn 0.3s ease;
}

.skeleton-option {
    background: rgba(0, 0, 0, 0.13);
    border: 2px solid #6956e5b2;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.skeleton-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.skeleton-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-text-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.skeleton-title {
    height: 18px;
    width: 120px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-subtitle {
    height: 14px;
    width: 160px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    animation-delay: 0.1s;
}

.skeleton-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.skeleton-badge {
    width: 60px;
    height: 40px;
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    animation-delay: 0.2s;
}

.skeleton-price {
    height: 20px;
    width: 140px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    animation-delay: 0.3s;
}

/* Card to Card Skeleton */
.card-skeleton-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.card-skeleton-option .skeleton-text-group {
    align-items: flex-start;
}

.card-skeleton-option .skeleton-title {
    width: 100px;
}

.card-skeleton-option .skeleton-subtitle {
    width: 140px;
}

.card-skeleton-option .skeleton-price {
    width: 120px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Hide loading when content is ready */
.subscription-options:has(.subscription-option) .subscriptions-loading,
.subscriptions-section:has(.card-subscription-option) .card-subscriptions-loading {
    display: none;
}

@media (max-width: 600px) {
    .skeleton-option {
        padding: 10px;
    }
    
    .skeleton-left {
        gap: 10px;
    }
    
    .skeleton-right {
        gap: 5px;
        flex-direction: column;
    }
    
    .skeleton-title {
        width: 80px;
        height: 16px;
    }
    
    .skeleton-subtitle {
        width: 100px;
        height: 12px;
    }
    
    .skeleton-badge {
        width: 40px;
        height: 30px;
    }
    
    .skeleton-price {
        width: 100px;
        height: 16px;
    }
} 