/* ============================================
   PACKAGES PAGE - PREMIUM STYLES
   ============================================ */

/* ---------- PACKAGES HERO ---------- */
.packages-hero {
    min-height: 600px;
}

.packages-hero .highlight {
    color: #6FB3FF;
}

/* ---------- FILTER SECTION ---------- */
.filter-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: 100px;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.btn-filter {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border-light);
    transition: var(--transition);
}

.btn-filter:hover {
    background: var(--color-bg-light);
    border-color: var(--color-primary);
    color: var(--color-text-primary);
}

.btn-filter.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.sort-select {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--color-border-light);
    background: #fff;
    font-size: 0.85rem;
}

/* ---------- PACKAGE CARDS ---------- */
.packages-section {
    padding: 60px 0;
    background: var(--color-bg-white);
}

.package-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    border: 1px solid var(--color-border-light);
    height: 100%;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl);
}

.package-card .badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--color-accent-gradient);
    color: #fff;
    padding: 0.2rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-card .package-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: block;
    transition: var(--transition);
}

.package-card:hover .package-icon {
    transform: scale(1.1);
    color: var(--color-primary-dark);
}

.package-card h5 {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.package-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0.25rem 0;
}

.package-card .price small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.package-card .speed {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.package-card .features-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    flex-grow: 1;
}

.package-card .features-list li {
    padding: 0.4rem 0;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border-light);
}

.package-card .features-list li:last-child {
    border-bottom: none;
}

.package-card .features-list li i {
    color: var(--color-success);
    font-size: 1rem;
    width: 20px;
}

.package-card .package-actions {
    margin-top: auto;
}

.package-card .package-actions .btn {
    border-radius: var(--radius-full);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.package-card .package-actions .btn i {
    transition: var(--transition);
}

.package-card .package-actions .btn:hover i {
    transform: translateX(4px);
}

/* Featured package */
.package-card.featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    background: linear-gradient(180deg, #fff, #f8faff);
}

.package-card.featured .badge {
    background: var(--color-primary-gradient);
}

/* ---------- COMPARISON CTA ---------- */
.comparison-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #0a1628, #10345D);
}

.comparison-cta .btn-white {
    background: #fff;
    color: var(--color-primary);
    padding: 0.75rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition);
}

.comparison-cta .btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,255,255,0.2);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .packages-hero {
        min-height: 500px;
    }
    .filter-section {
        top: 80px;
    }
}

@media (max-width: 768px) {
    .packages-hero {
        min-height: 400px;
    }
    .package-card .price {
        font-size: 2rem;
    }
    .package-card .package-icon {
        font-size: 2rem;
    }
    .filter-section {
        top: 60px;
        padding: 16px 0;
    }
    .btn-filter {
        font-size: 0.75rem;
        padding: 0.3rem 1rem;
    }
}

@media (max-width: 576px) {
    .packages-hero h1 {
        font-size: 1.8rem;
    }
    .package-card {
        padding: 1.5rem 1rem;
    }
    .package-card .price {
        font-size: 1.75rem;
    }
}

/* ============================================
   PREMIUM PACKAGES SECTION
   ============================================ */

.packages-section-premium {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: visible !important;
}

.packages-section-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.packages-section-premium::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ---------- PREMIUM PACKAGE CARD ---------- */
.package-premium-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2.5rem 1.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    overflow: visible !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Glassmorphism glow border */
.package-premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(245, 158, 11, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.package-premium-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.1);
}

/* Featured Tier */
.package-premium-card[data-tier="featured"] {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(239, 246, 255, 0.9));
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: 0 8px 40px rgba(37, 99, 235, 0.08);
}

.package-premium-card[data-tier="featured"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #f59e0b, #2563eb);
    background-size: 200% 100%;
    animation: shimmerBorder 3s ease-in-out infinite;
}

@keyframes shimmerBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- BADGE ---------- */
.package-premium-badge {
    position: absolute;
    top: -6px;
    right: 20px;
}

.package-premium-badge span {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 0.2rem 1.2rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* ---------- ICON ---------- */
.package-premium-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #2563eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-premium-card:hover .package-premium-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.25);
}

/* ---------- NAME ---------- */
.package-premium-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

/* ---------- PRICE ---------- */
.package-premium-price {
    margin: 0.75rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.package-premium-price .currency {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    vertical-align: top;
}

.package-premium-price .amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2563eb;
    line-height: 1;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.package-premium-card:hover .package-premium-price .amount {
    transform: scale(1.05);
    color: #1d4ed8;
}

.package-premium-price .period {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ---------- SPEED ---------- */
.package-premium-speed {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(37, 99, 235, 0.06);
    color: #2563eb;
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.package-premium-speed i {
    font-size: 0.9rem;
}

/* ---------- FEATURES ---------- */
.package-premium-features {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    text-align: left;
}

.package-premium-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0;
    color: #475569;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.package-premium-features li:last-child {
    border-bottom: none;
}

.package-premium-features li i {
    color: #10b981;
    font-size: 1rem;
    width: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.package-premium-card:hover .package-premium-features li i {
    transform: scale(1.15);
}

/* ---------- BUTTON ---------- */
.package-premium-actions .btn-premium-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: visible !important;
}

.package-premium-actions .btn-premium-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.package-premium-actions .btn-premium-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
    color: #fff;
}

.package-premium-actions .btn-premium-primary:hover::before {
    opacity: 1;
}

.package-premium-actions .btn-premium-primary span,
.package-premium-actions .btn-premium-primary i {
    position: relative;
    z-index: 1;
}

.package-premium-actions .btn-premium-primary i {
    transition: transform 0.3s ease;
}

.package-premium-actions .btn-premium-primary:hover i {
    transform: translateX(4px);
}

/* ---------- VIEW ALL BUTTON ---------- */
.btn-premium-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 2.5rem;
    border: 2px solid #2563eb;
    color: #2563eb;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent;
}

.btn-premium-outline:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.25);
}

.btn-premium-outline i {
    transition: transform 0.3s ease;
}

.btn-premium-outline:hover i {
    transform: translateX(4px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .package-premium-price .amount {
        font-size: 2.2rem;
    }
    .package-premium-card {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .packages-section-premium {
        padding: 48px 0;
    }
    .package-premium-card {
        padding: 1.25rem 1rem;
    }
    .package-premium-price .amount {
        font-size: 1.8rem;
    }
    .package-premium-name {
        font-size: 1rem;
    }
    .package-premium-features li {
        font-size: 0.8rem;
        padding: 0.25rem 0;
    }
    .package-premium-speed {
        font-size: 0.75rem;
        padding: 0.2rem 0.8rem;
    }
    .package-premium-actions .btn-premium-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }
    .btn-premium-outline {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .package-premium-card {
        padding: 1rem;
    }
    .package-premium-price .amount {
        font-size: 1.6rem;
    }
    .package-premium-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .package-premium-badge span {
        font-size: 0.55rem;
        padding: 0.15rem 0.8rem;
    }
}

/* ---------- RIBBON BADGE - TOP CENTER ---------- */


/* Ribbon tails */



/* Different badge colors */









/* Responsive */
@media (max-width: 768px) {
}

@media (max-width: 576px) {
}
/* ---------- RIBBON BADGE - 50% OUTSIDE BOX ---------- */
.package-premium-card {
    position: relative;
    padding-top: 2.5rem; /* Space for badge to sit half outside */
}

.package-premium-card .package-premium-badge {
    position: absolute;
    top: -18px; /* Half of badge height (36px / 2) */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: auto;
}

.package-premium-card .package-premium-badge span {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 0.35rem 1.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    position: relative;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ribbon tails */
.package-premium-card .package-premium-badge span::before,
.package-premium-card .package-premium-badge span::after {
    content: '';
    position: absolute;
    bottom: -8px;
    width: 0;
    height: 0;
    border-style: solid;
}

.package-premium-card .package-premium-badge span::before {
    left: 4px;
    border-width: 0 8px 8px 0;
    border-color: transparent #b45309 transparent transparent;
}

.package-premium-card .package-premium-badge span::after {
    right: 4px;
    border-width: 0 0 8px 8px;
    border-color: transparent transparent #b45309 transparent;
}

/* Popular - Blue */
.package-premium-card .package-premium-badge span.badge-popular {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.package-premium-card .package-premium-badge span.badge-popular::before {
    border-color: transparent #1a3a8a transparent transparent;
}

.package-premium-card .package-premium-badge span.badge-popular::after {
    border-color: transparent transparent #1a3a8a transparent;
}

/* Best Seller - Red */
.package-premium-card .package-premium-badge span.badge-best-seller {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.4);
}

.package-premium-card .package-premium-badge span.badge-best-seller::before {
    border-color: transparent #be123c transparent transparent;
}

.package-premium-card .package-premium-badge span.badge-best-seller::after {
    border-color: transparent transparent #be123c transparent;
}

/* New - Green */
.package-premium-card .package-premium-badge span.badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.package-premium-card .package-premium-badge span.badge-new::before {
    border-color: transparent #047857 transparent transparent;
}

.package-premium-card .package-premium-badge span.badge-new::after {
    border-color: transparent transparent #047857 transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .package-premium-card {
        padding-top: 2rem;
    }
    .package-premium-card .package-premium-badge {
        top: -14px;
    }
    .package-premium-card .package-premium-badge span {
        font-size: 0.6rem;
        padding: 0.25rem 1.2rem;
        min-height: 28px;
    }
    .package-premium-card .package-premium-badge span::before,
    .package-premium-card .package-premium-badge span::after {
        bottom: -6px;
        border-width: 0 6px 6px 0;
    }
    .package-premium-card .package-premium-badge span::after {
        border-width: 0 0 6px 6px;
    }
}

@media (max-width: 576px) {
    .package-premium-card {
        padding-top: 1.8rem;
    }
    .package-premium-card .package-premium-badge {
        top: -12px;
    }
    .package-premium-card .package-premium-badge span {
        font-size: 0.5rem;
        padding: 0.2rem 0.8rem;
        min-height: 24px;
    }
    .package-premium-card .package-premium-badge span::before,
    .package-premium-card .package-premium-badge span::after {
        bottom: -4px;
        border-width: 0 4px 4px 0;
    }
    .package-premium-card .package-premium-badge span::after {
        border-width: 0 0 4px 4px;
    }
}

/* ---------- FIX: BADGE VISIBLE OUTSIDE CARD ---------- */
.package-premium-card {
    overflow: visible !important;
}

.packages-section-premium .row {
    overflow: visible !important;
}

.packages-section-premium .col-md-4 {
    overflow: visible !important;
}

.package-premium-card .package-premium-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100 !important;
}

/* Ensure the badge is visible */
.package-premium-card .package-premium-badge span {
    display: inline-block;
    padding: 0.35rem 1.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 36px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Remove tails if they're causing issues */
.package-premium-card .package-premium-badge span::before,
.package-premium-card .package-premium-badge span::after {
    display: none;
}

/* Badge colors */
.package-premium-card .package-premium-badge span.badge-popular {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.package-premium-card .package-premium-badge span.badge-best-seller {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
}

.package-premium-card .package-premium-badge span.badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Mobile Package Card Fixes */
@media (max-width: 576px) {
    .package-premium-card {
        padding: 1rem;
        margin: 0 0 0.5rem 0;
    }
    
    .package-premium-card .package-premium-price .amount {
        font-size: 1.8rem;
    }
    
    .package-premium-card .package-premium-features {
        margin: 0.5rem 0;
    }
    
    .package-premium-card .package-premium-features li {
        font-size: 0.75rem;
        padding: 0.15rem 0;
    }
    
    .package-premium-card .package-premium-actions .btn-premium-primary {
        padding: 0.5rem;
        font-size: 0.8rem;
        width: 100%;
    }
    
    .package-premium-badge span {
        font-size: 0.5rem;
        padding: 0.1rem 0.5rem;
    }
}

/* ============================================
   FESTIVE MEGAOFFER & CITY PACKAGES (EWNET-WEB-048)
   ============================================ */

.festive-offer-section,
.festive-strip {
    padding: 72px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f4f1ff 55%, #fff7ed 100%);
    overflow: hidden;
}

.festive-strip {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    padding: 64px 0;
}

.festive-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #b45309;
    background: #ffedd5;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 6px 18px;
    margin-bottom: 16px;
}

.festive-eyebrow i {
    color: #ea580c;
}

.text-gradient {
    background: linear-gradient(135deg, #1e3a8a, #2563eb, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.festive-group {
    margin: 48px auto 0;
    max-width: 1200px;
}

.festive-group-head {
    text-align: center;
    margin-bottom: 28px;
}

.festive-group-head h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-heading, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.festive-group-head h3 i {
    color: #f59e0b;
}

.festive-group-head p {
    color: var(--color-muted, #64748b);
    margin: 6px 0 0;
    font-size: 0.95rem;
}

.festive-subgroup {
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px dashed #e2e8f0;
}

.festive-subgroup i {
    color: #2563eb;
}

/* --- Term switcher --- */
.festive-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.festive-tab {
    padding: 10px 34px;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.festive-tab:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.festive-tab.active {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.festive-term-panel {
    display: none;
}

.festive-term-panel.is-active {
    display: block;
    animation: festiveFadeUp 0.35s ease;
}

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

/* --- Card grid --- */
.festive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
}

/*
 * Homepage festive strip: exactly 4 featured cards in one centered row.
 * Breakpoints below enforce 4-across desktop, 2x2 tablet, 1-across mobile.
 */
.festive-strip .festive-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1100px;
}

.festive-strip .festive-card {
    height: 100%;
}

.festive-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e8e6f4;
    padding: 24px 22px 20px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* EWNET-WEB-054 — premium festive-card interaction
   Desktop hover + keyboard focus (fine pointer + keyboard first-class).
   Coming on hover / focus-within basis; NO idle/continuous perimeter on any
   lazy card; no JS; transforms only (no scale, no layout shift). */
@media (hover: hover) and (pointer: fine) {
    .festive-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(30, 58, 138, 0.16);
    }
}

/* Keyboard parity: focus-within gets the same lift+shadow+perimeter as hover
   (blue+green border is never removed; native focus ring stays visible). */
.festive-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(30, 58, 138, 0.16);
}

/* Ranuna perimeter — animated blue+green ring (running, 5-7s, only while
   hovered / keyboard-focused). Ring matches the 18px radius (pseudo at
   -2px with 20px radius); mask keeps only the 1.5-2px edge band; CSS-only. */
@property --festive-ring-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.festive-card::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 20px;
    padding: 2px;
    background:
        conic-gradient(
            from var(--festive-ring-angle, 0deg),
            #2563eb,
            #16a34a 25%,
            #2563eb 50%,
            #16a34a 75%,
            #2563eb
        );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .festive-card:hover::before,
    .festive-card:focus-within::before {
        opacity: 1;
        animation: festive-ring-run 6s linear infinite;
    }
    .festive-card:focus-within::before {
        opacity: 1;
    }
}

@keyframes festive-ring-run {
    to {
        --festive-ring-angle: 360deg;
    }
}

/* The action itself is the CTA arrow (translateX 3px, 200ms, arrow only —
   never the whole CTA or card). */
.festive-cta i.bi-arrow-right {
    display: inline-block;
    transform: translateX(0);
    transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .festive-card:hover .festive-cta i.bi-arrow-right,
    .festive-card:focus-within .festive-cta i.bi-arrow-right {
        transform: translateX(4px);
    }
}

/* Mobile press feedback (:active) — native quick press on the CTA area;
   no sticky hover on touch (interaction gated to hover/fine above). */
.festive-card:active .festive-cta {
    transform: translateY(1px);
}

.festive-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border-radius: 6px;
    padding: 4px 10px;
}

.festive-card-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-right: 90px;
}

.festive-speed,
.festive-router {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e3a8a;
    background: #eef2ff;
    border-radius: 999px;
    padding: 5px 12px;
}

.festive-speed i,
.festive-router i {
    color: #2563eb;
}

.festive-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-heading, #0f172a);
    margin-bottom: 12px;
}

.festive-price {
    font-size: 0.85rem;
    color: #475569;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e2e8f0;
    margin-bottom: 14px;
}

.festive-price strong {
    font-size: 1.9rem;
    color: #1e3a8a;
}

.festive-price .festive-period {
    color: #64748b;
    font-size: 0.8rem;
}

.festive-perks {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.festive-perk {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: #334155;
}

.festive-perk i {
    margin-top: 2px;
}

.festive-perk.bonus {
    color: #15803d;
    font-weight: 600;
}

.festive-perk.bonus i {
    color: #16a34a;
}

.festive-perk.gift i {
    color: #ea580c;
}

.festive-foot {
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.festive-install {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.festive-install i {
    color: #2563eb;
}

.festive-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border-radius: 999px;
    padding: 11px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.festive-cta:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

.festive-detail {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2563eb;
}

.festive-detail i {
    font-size: 0.75rem;
}

.festive-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
    border-radius: 999px;
    padding: 12px 28px;
    transition: all 0.2s ease;
}

.festive-view-all:hover {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border-color: transparent;
    color: #ffffff;
}

@media (max-width: 768px) {
    .festive-offer-section,
    .festive-strip {
        padding: 48px 0;
    }

    .festive-card-head {
        padding-right: 0;
    }

    .festive-tabs {
        flex-wrap: wrap;
    }

    .festive-tab {
        padding: 9px 20px;
        font-size: 0.85rem;
    }

    .festive-grid {
        grid-template-columns: 1fr;
    }
}

/* Homepage festive strip responsive grid (more specific than the generic rule). */
@media (max-width: 991.98px) {
    .festive-strip .festive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .festive-strip .festive-grid {
        grid-template-columns: 1fr;
    }
}

/* EWNET-WEB-054 — HOME-ONLY mobile festive carousel (native scroll-snap).
   ONLY home.php:162 carries .festive-grid-snap; the /packages festive grids
   (index.php:134/144/163/172) do NOT — so /packages stays a normal responsive
   grid (K). Card = ~86% of the strip with the next card peeking; native
   horizontal scroll retained; scrollbar hidden visually only (still swipable);
   no JS, no carousel library, no sticky hover. */
@media (max-width: 575.98px) {
    .festive-strip .festive-grid.festive-grid-snap {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scroll-padding-inline-start: 4px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 4px 4px 10px;
        margin: 0 -4px;
    }

    .festive-strip .festive-grid.festive-grid-snap::-webkit-scrollbar {
        display: none;
    }

    .festive-strip .festive-grid.festive-grid-snap > * {
        flex: 0 0 86%;
        min-width: 0;
        scroll-snap-align: start;
    }

    /* Touch press feedback on the CTA (mobile only — no sticky hover,
       gated to pointer-coarse; interaction press, not a carousel swipe). */
    @media (pointer: coarse) {
        .festive-grid-snap .festive-card:active .festive-cta {
            transform: translateY(1px);
            transition: transform 0.1s ease;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .festive-term-panel.is-active {
        animation: none;
    }

    /* EWNET-WEB-054 — reduced-motion: stop every festive animation (running
       perimeter, card lift, CTA arrow). The blue+green ring itself REMAINS on
       hover/focus as a static border (focus contrast is never lost); only the
       motion is suppressed. */
    .festive-card,
    .festive-card::before,
    .festive-cta,
    .festive-cta i.bi-arrow-right {
        animation: none;
        transition: none;
    }

    .festive-card:hover,
    .festive-card:focus-within {
        transform: none;
    }

    .festive-card:hover::before,
    .festive-card:focus-within::before {
        opacity: 1;
        animation: none;
        -webkit-mask-composite: xor;
        mask-composite: exclude;
    }
}
