/* Цены - Чистый и элегантный дизайн */
.arbi-pricing {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.arbi-pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 15%, rgba(0, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 85%, rgba(0, 128, 255, 0.02) 0%, transparent 50%);
    z-index: 0;
}

[data-theme="light"] .arbi-pricing {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #f0f7ff 100%);
}

[data-theme="light"] .arbi-pricing::before {
    background: 
        radial-gradient(circle at 10% 15%, rgba(49, 130, 206, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 85%, rgba(66, 153, 225, 0.03) 0%, transparent 50%);
}

.arbi-pricing .container {
    position: relative;
    z-index: 1;
}

/* Сетка тарифов */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 60px auto 0;
}

@media (min-width: 1400px) {
    .pricing-grid {
        max-width: 1300px;
        gap: 25px;
    }
}

/* Базовая карточка */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(0, 255, 255, 0) 0%, 
        var(--accent-primary) 50%, 
        rgba(0, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 
        0 15px 35px rgba(0, 255, 255, 0.12),
        0 0 0 1px rgba(0, 255, 255, 0.08);
}

.pricing-card:hover::before {
    opacity: 1;
}

/* Рекомендуемый тариф - исправлено */
.pricing-card.featured {
    border: 1px solid var(--accent-primary);
    background: linear-gradient(145deg, 
        color-mix(in srgb, var(--bg-card) 95%, var(--accent-primary) 5%),
        var(--bg-card));
    position: relative;
    transform: scale(1.02);
}

/* Чистая метка рекомендованного тарифа */
.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
}

.featured-badge::before {
    content: '★';
    margin-right: 4px;
    font-size: 0.9em;
}

[data-theme="light"] .pricing-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(49, 130, 206, 0.1);
    box-shadow: 0 3px 15px rgba(49, 130, 206, 0.03);
}

[data-theme="light"] .pricing-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 
        0 20px 40px rgba(49, 130, 206, 0.08),
        0 0 0 1px rgba(49, 130, 206, 0.05);
}

[data-theme="light"] .pricing-card.featured {
    border: 1px solid var(--accent-primary);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.98),
        rgba(49, 130, 206, 0.02));
}

[data-theme="light"] .featured-badge {
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.2);
}

/* Бесплатный тариф */
.pricing-card.free {
    border-color: #10b981;
}

.pricing-card.free::before {
    background: linear-gradient(90deg, 
        rgba(16, 185, 129, 0) 0%, 
        #10b981 50%, 
        rgba(16, 185, 129, 0) 100%);
}

.pricing-card.free:hover {
    border-color: #10b981;
    box-shadow: 
        0 15px 35px rgba(16, 185, 129, 0.12),
        0 0 0 1px rgba(16, 185, 129, 0.08);
}

/* Заголовок плана */
.plan-header {
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.plan-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* Цена - элегантный знак доллара */
.plan-price {
    margin-bottom: 15px;
}

.price {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
    font-feature-settings: "tnum";
    letter-spacing: -1px;
}

.currency {
    font-size: 0.5em;
    vertical-align: super;
    margin-right: 2px;
    opacity: 0.9;
    font-weight: 500;
    position: relative;
    top: -0.3em;
}

.pricing-card.free .price {
    color: #10b981;
}

/* Экономия */
.savings {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 5px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8em;
    margin: 8px 0;
}

.savings::before {
    content: '💰';
    font-size: 0.9em;
}

/* Период */
.period {
    color: var(--text-muted);
    font-size: 0.9em;
    display: block;
    font-weight: 400;
    opacity: 0.8;
}

/* Особенности плана */
.plan-features {
    margin-bottom: 25px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.plan-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.4;
    position: relative;
    padding-left: 24px;
}

.plan-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--accent-primary);
    font-size: 1.5em;
    line-height: 0.8;
}

.pricing-card.free .plan-features li::before {
    color: #10b981;
}

/* Кнопки действий */
.plan-actions {
    flex-shrink: 0;
}

.btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.25);
}

[data-theme="light"] .btn:hover {
    box-shadow: 0 10px 25px rgba(49, 130, 206, 0.25);
}

/* Бесплатная кнопка */
.btn-free {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.btn-free:hover {
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }
.pricing-card:nth-child(4) { animation-delay: 0.4s; }

/* Адаптивность */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        max-width: 800px;
    }
    
    .price {
        font-size: 2.5em;
    }
}

@media (max-width: 992px) {
    .arbi-pricing {
        padding: 80px 0;
    }
    
    .pricing-grid {
        margin-top: 40px;
        gap: 20px;
    }
    
    .pricing-card {
        padding: 25px 20px;
    }
    
    .price {
        font-size: 2.3em;
    }
    
    .featured-badge {
        top: 12px;
        right: 12px;
        padding: 5px 10px;
        font-size: 0.7em;
    }
}

@media (max-width: 768px) {
    .arbi-pricing {
        padding: 60px 0;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        gap: 20px;
    }
    
    .pricing-card {
        padding: 25px 20px;
    }
    
    .price {
        font-size: 2.5em;
    }
    
    .plan-title {
        font-size: 1.3em;
    }
    
    .btn {
        padding: 13px 20px;
        font-size: 0.95em;
    }
    
    .plan-features li {
        font-size: 0.9em;
        padding: 7px 0;
        padding-left: 20px;
    }
    
    .featured-badge {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 0.65em;
    }
}

@media (max-width: 480px) {
    .pricing-grid {
        gap: 15px;
    }
    
    .pricing-card {
        padding: 20px 15px;
        border-radius: 16px;
    }
    
    .price {
        font-size: 2.2em;
    }
    
    .plan-title {
        font-size: 1.2em;
    }
    
    .plan-features li {
        font-size: 0.85em;
    }
}