/* Modern Packages Section - Vodafone Inspired */
.modern-packages {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}



.modern-packages > .container {
    position: relative;
    z-index: 2;
}

/* Packages Header */
.packages-header {
    margin-bottom: 80px;
}

.packages-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--ng-primary-light, rgba(91, 131, 205, 0.1)), var(--ng-secondary-light, rgba(194, 128, 191, 0.1)));
    color: var(--ng-primary-start, #5b83cd);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid var(--ng-shadow-medium, rgba(91, 131, 205, 0.2));
}

.packages-badge i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

.packages-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: #333;
    margin-bottom: 24px;
}

.title-highlight {
    background: linear-gradient(135deg, var(--ng-primary-start, #5b83cd) 0%, var(--ng-primary-end, #c280bf) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.packages-description {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Package Type Selector */
.package-type-selector {
    margin-bottom: 60px;
}

.selector-wrapper {
    display: flex;
    background: white;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--ng-primary-light, rgba(91, 131, 205, 0.1));
}

.type-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 20px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.type-btn.active {
    background: linear-gradient(135deg, var(--ng-primary-start, #5b83cd) 0%, var(--ng-primary-end, #c280bf) 100%);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 8px 25px var(--ng-shadow-dark, rgba(91, 131, 205, 0.3));
}

.type-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ng-shadow-light, rgba(91, 131, 205, 0.1));
    transition: all 0.3s ease;
}

.type-btn.active .type-icon {
    background: rgba(255, 255, 255, 0.2);
}

.type-icon i {
    font-size: 24px;
    color: var(--ng-primary-start, #5b83cd);
    transition: color 0.3s ease;
}

.type-btn.active .type-icon i {
    color: white;
}

.type-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #333;
    transition: color 0.3s ease;
}

.type-btn.active .type-content h4 {
    color: white;
}

.type-content p {
    font-size: 14px;
    margin: 0;
    color: #666;
    transition: color 0.3s ease;
}

.type-btn.active .type-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* Package Groups */
.packages-content {
    position: relative;
}

.package-group {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.package-group.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Package Cards */
.modern-package-card {
    background: white;
    border-radius: 24px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--ng-primary-light, rgba(91, 131, 205, 0.1));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, var(--ng-primary-start, #5b83cd) 0%, var(--ng-primary-end, #c280bf) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px var(--ng-shadow-medium, rgba(91, 131, 205, 0.2));
}

.modern-package-card:hover::before {
    opacity: 1;
}

/* Featured Package */
.modern-package-card.featured {
    border: 2px solid var(--ng-primary-start, #5b83cd);
    transform: scale(1.05);
    z-index: 10;
}

.modern-package-card.featured::before {
    opacity: 1;
    height: 8px;
}

/* Premium Package */
.modern-package-card.premium {
    background: linear-gradient(135deg, var(--ng-primary-light, rgba(91, 131, 205, 0.1)) 0%, var(--ng-secondary-light, rgba(194, 128, 191, 0.1)) 100%);
}

/* Package Badge */
.package-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--ng-primary-start, #5b83cd) 0%, var(--ng-primary-end, #c280bf) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    animation: pulse 2s infinite;
}

.package-badge.premium {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.package-badge i {
    font-size: 14px;
}

/* Package Card Header */
.package-card-header {
    padding: 40px 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--ng-shadow-light, rgba(91, 131, 205, 0.1));
}

.package-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--ng-primary-light, rgba(91, 131, 205, 0.1)), var(--ng-secondary-light, rgba(194, 128, 191, 0.1)));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

.package-icon.premium {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.05));
}

.package-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--ng-shadow-light, rgba(91, 131, 205, 0.1));
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.modern-package-card:hover .package-icon::before {
    width: 100px;
    height: 100px;
}

.package-icon i {
    font-size: 36px;
    color: var(--ng-primary-start, #5b83cd);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.package-icon.premium i {
    color: #ff6b35;
}

.modern-package-card:hover .package-icon i {
    transform: scale(1.1);
}

.package-name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.3;
}

.package-speed-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.speed-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--ng-primary-start, #5b83cd);
    line-height: 1;
}

.speed-unit {
    font-size: 18px;
    font-weight: 600;
    color: #666;
}

/* Package Pricing */
.package-pricing {
    padding: 20px 30px;
    text-align: center;
    border-bottom: 1px solid var(--ng-shadow-light, rgba(91, 131, 205, 0.1));
}

.price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.currency {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.price {
    font-size: 36px;
    font-weight: 800;
    color: #333;
    line-height: 1;
}

.period {
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

.price-note {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
}

.price-note.premium {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

/* Package Features */
.package-features {
    padding: 30px;
    flex: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item.highlight {
    background: var(--ng-primary-light, rgba(91, 131, 205, 0.1));
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--ng-shadow-light, rgba(91, 131, 205, 0.1));
}

.feature-item.premium-feature {
    background: rgba(255, 107, 53, 0.03);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.feature-item i {
    color: #28a745;
    font-size: 16px;
    width: 20px;
    flex-shrink: 0;
}

.feature-item.highlight i {
    color: var(--ng-primary-start, #5b83cd);
}

.feature-item.premium-feature i {
    color: #ff6b35;
}

.feature-item span {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    line-height: 1.4;
}

/* Package Action */
.package-action {
    padding: 30px;
    text-align: center;
    border-top: 1px solid var(--ng-shadow-light, rgba(91, 131, 205, 0.1));
}

.package-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--ng-primary-start, #5b83cd) 0%, var(--ng-primary-end, #c280bf) 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--ng-shadow-dark, rgba(91, 131, 205, 0.3));
    width: 100%;
    justify-content: center;
    margin-bottom: 16px;
}

.package-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--ng-shadow-dark, rgba(91, 131, 205, 0.3));
    color: white;
}

.package-btn.premium {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.package-btn.premium:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.package-btn.featured {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.package-btn.featured:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.package-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.package-btn:hover i {
    transform: translateX(3px);
}

.package-note {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.package-note i {
    color: var(--ng-primary-start, #5b83cd);
}

/* No Packages */
.no-packages {
    padding: 60px 20px;
    color: #666;
}

.no-packages i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
    display: block;
}

.no-packages p {
    font-size: 18px;
    margin: 0;
}

/* Packages CTA */
.packages-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 60px 40px;
    border-radius: 25px;
    text-align: center;
    margin-top: 40px;
    border: 1px solid var(--ng-shadow-light, rgba(91, 131, 205, 0.1));
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-description {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-cta-primary {
    background: linear-gradient(135deg, var(--ng-primary-start, #5b83cd) 0%, var(--ng-primary-end, #c280bf) 100%);
    color: white;
    border-color: var(--ng-primary-start, #5b83cd);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--ng-shadow-dark, rgba(91, 131, 205, 0.3));
    color: white;
}

.btn-cta-secondary {
    background: white;
    color: var(--ng-primary-start, #5b83cd);
    border-color: var(--ng-primary-start, #5b83cd);
}

.btn-cta-secondary:hover {
    background: var(--ng-primary-start, #5b83cd);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--ng-shadow-dark, rgba(91, 131, 205, 0.3));
}

/* Responsive Design */
@media (max-width: 1199px) {
    .modern-package-card {
        margin-bottom: 25px;
    }
    
    .package-card-header {
        padding: 30px 25px 15px;
    }
    
    .package-icon {
        width: 70px;
        height: 70px;
    }
    
    .package-icon i {
        font-size: 32px;
    }
    
    .package-name {
        font-size: 22px;
    }
    
    .speed-number {
        font-size: 42px;
    }
}

@media (max-width: 991px) {
    .modern-packages {
        padding: 80px 0;
    }
    
    .packages-header {
        margin-bottom: 60px;
    }
    
    .package-type-selector {
        margin-bottom: 40px;
    }
    
    .selector-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .type-btn {
        padding: 16px;
    }
    
    .packages-cta {
        padding: 40px 30px;
        margin-top: 30px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-description {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .modern-packages {
        padding: 60px 0;
    }
    
    .package-card-header {
        padding: 25px 20px 15px;
    }
    
    .package-pricing {
        padding: 15px 20px;
    }
    
    .package-features {
        padding: 25px 20px;
    }
    
    .package-action {
        padding: 25px 20px;
    }
    
    .package-icon {
        width: 60px;
        height: 60px;
    }
    
    .package-icon i {
        font-size: 28px;
    }
    
    .package-name {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .speed-number {
        font-size: 36px;
    }
    
    .price {
        font-size: 32px;
    }
    
    .feature-item {
        padding: 10px 0;
    }
    
    .feature-item span {
        font-size: 13px;
    }
    
    .packages-cta {
        padding: 30px 20px;
    }
    
    .cta-title {
        font-size: 24px;
    }
    
    .cta-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .packages-badge {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .packages-description {
        font-size: 16px;
    }
    
    .type-btn {
        padding: 12px;
    }
    
    .type-icon {
        width: 40px;
        height: 40px;
    }
    
    .type-icon i {
        font-size: 20px;
    }
    
    .type-content h4 {
        font-size: 16px;
    }
    
    .type-content p {
        font-size: 13px;
    }
    
    .package-card-header {
        padding: 20px 15px 12px;
    }
    
    .package-pricing {
        padding: 12px 15px;
    }
    
    .package-features {
        padding: 20px 15px;
    }
    
    .package-action {
        padding: 20px 15px;
    }
    
    .packages-cta {
        padding: 25px 15px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .modern-packages {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    
    .modern-package-card {
        background: #2d2d2d;
        border-color: var(--ng-shadow-medium, rgba(91, 131, 205, 0.2));
    }
    
    .package-name {
        color: #ffffff;
    }
    
    .speed-unit,
    .currency,
    .price,
    .period {
        color: #ffffff;
    }
    
    .feature-item span {
        color: #cccccc;
    }
    
    .package-note {
        color: #cccccc;
    }
    
    .packages-title {
        color: #ffffff;
    }
    
    .packages-description,
    .cta-description {
        color: #cccccc;
    }
    
    .cta-title {
        color: #ffffff;
    }
    
    .packages-cta {
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .modern-package-card,
    .package-btn,
    .type-btn,
    .btn-cta-primary,
    .btn-cta-secondary {
        transition: none;
    }
    
    .modern-package-card:hover {
        transform: none;
    }
    
    .package-badge {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .modern-package-card {
        border: 2px solid #333;
    }
    
    .package-badge {
        background: #000;
        color: #fff;
    }
    
    .package-btn {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
}
