:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --warning: #f72585;
    --danger: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin-top: 40px;
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f2ff 100%);
    color: var(--dark);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(67, 97, 238, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(76, 201, 240, 0.05) 0%, transparent 20%);
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.header {
    text-align: center;
    color: var(--dark);
    padding: 35px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: none;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
    border-radius: 2px;
}

.header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 25px auto 0;
    line-height: 1.8;
}

.highlight {
    background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: none;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.subscription-status {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 25px 30px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-header i {
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
}

.card-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.timer-container {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    color: var(--dark);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
}

.timer-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--warning) 0%, var(--success) 100%);
}

.timer-label {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--gray);
    font-weight: 600;
}

#countdown-timer {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    direction: ltr;
    text-align: center;
    color: var(--primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.current-plan {
    background-color: #f8f9ff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--gray-light);
}

.plan-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-title i {
    color: var(--success);
}

.plan-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detail-box {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.detail-box:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.1);
}

.detail-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 8px;
    font-weight: 500;
}

.detail-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.features-list {
    margin-top: auto;
}

.features-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.features-title i {
    color: var(--warning);
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.feature:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.feature i {
    color: var(--success);
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 201, 240, 0.1);
    border-radius: 50%;
}

.feature span {
    font-weight: 600;
    color: var(--dark);
}

.purchase-section {
    flex: 1.2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.pricing-rules {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
}

.pricing-rules::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--success) 0%, var(--primary) 100%);
}

.rules-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rules-title i {
    color: var(--warning);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.rule {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.rule:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.1);
}

.rule i {
    color: var(--success);
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 201, 240, 0.1);
    border-radius: 10px;
}

.rule-text {
    color: var(--dark);
    font-weight: 600;
}

.rule-text strong {
    color: var(--primary);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.month-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.month-option {
    flex: 1;
    padding: 20px;
    text-align: center;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.month-option:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.month-option.selected {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.2);
}

.month-option .discount-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--warning);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.month-duration {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.month-price {
    font-size: 1.1rem;
    opacity: 0.9;
}

.user-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.user-option {
    flex: 1;
    min-width: 120px;
    padding: 20px;
    text-align: center;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.user-option:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.user-option.selected {
    background: linear-gradient(135deg, var(--success) 0%, #3a86ff 100%);
    color: white;
    border-color: var(--success);
    box-shadow: 0 10px 20px rgba(76, 201, 240, 0.2);
}

.user-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--gray-light);
}

.user-option.disabled:hover {
    border-color: var(--gray-light);
    transform: none;
}

.user-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.user-count {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.user-label {
    font-size: 1rem;
    opacity: 0.9;
}

.price-summary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.3);
    position: relative;
    overflow: hidden;
}

.price-summary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.1;
}

.price-label {
    font-size: 1.2rem;
    margin-bottom: 10px;
    opacity: 0.9;
    font-weight: 600;
}

#total-price {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    direction: ltr;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.currency {
    font-size: 2rem;
    margin-right: 10px;
    font-weight: 700;
}

.price-breakdown {
    margin-top: 20px;
    font-size: 1rem;
    opacity: 0.9;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.purchase-btn {
    width: 100%;
    padding: 22px;
    background: linear-gradient(135deg, var(--warning) 0%, #b5179e 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(247, 37, 133, 0.3);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.purchase-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.purchase-btn:hover {
    background: linear-gradient(135deg, #b5179e 0%, var(--warning) 100%);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(247, 37, 133, 0.4);
}

.purchase-btn:hover::before {
    right: 100%;
}

.purchase-btn:active {
    transform: translateY(0);
}

.purchase-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.purchase-btn i {
    font-size: 1.6rem;
}

.footer {
    text-align: center;
    color: var(--gray);
    padding: 25px;
    font-size: 0.9rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: none;
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    #countdown-timer {
        font-size: 2.2rem;
    }
    
    #total-price {
        font-size: 2.8rem;
    }
    
    .plan-details {
        grid-template-columns: 1fr;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .month-options {
        flex-direction: column;
    }
    
    .user-option {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
    }
    
    .container {
        gap: 20px;
    }
    
    .header {
        padding: 25px 20px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .user-option {
        min-width: 100%;
    }
    
    .month-option, .user-option {
        padding: 15px;
    }
    
    .price-summary {
        padding: 20px;
    }
}
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(67, 97, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
}
    
/* هدر */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0px;
    z-index: 100;
    left: 0px;
    width: 100%;
}

.navbar2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 28px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}
    