/**
 * Splynx Tariffs Frontend Styles
 * Note: Removed Google Fonts import to prevent potential conflicts
 */

/* Widget Container */
.splynx-tariffs-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--splynx-font-color, #333);
}

/* Widget Header */
.splynx-widget-header {
    margin-bottom: 2rem;
    text-align: center;
}

.splynx-widget-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--splynx-primary-color, #2e94d1);
}

.splynx-widget-header .splynx-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--splynx-font-color, #333);
}

.splynx-widget-header .splynx-coverage-note {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* FNO Carousel */
.splynx-fno-carousel-container {
    position: relative;
    margin-bottom: 3rem;
}

.splynx-fno-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
    align-items: stretch;
    background: #f8f9fa;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.splynx-fno-carousel::-webkit-scrollbar {
    display: none;
}

.splynx-fno-card {
    position: relative;
    flex: 0 0 180px;
    width: 180px;
    height: 180px;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #f8f9fa;
    color: #6c757d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.splynx-fno-card.active {
    background: var(--splynx-primary-color, #17a2b8);
    color: white;
    transform: none;
    box-shadow: none;
}

.splynx-fno-card:hover:not(.active) {
    background: #e9ecef;
    transform: none;
}

.splynx-fno-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.splynx-fno-logo {
    margin-bottom: 0.5rem;
    height: 140px;
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto 0.5rem auto;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 70px !important;
    padding: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.splynx-fno-image {
    width: 130px;
    height: 130px;
    border-radius: 65px !important;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    filter: grayscale(100%) opacity(0.7);
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    padding: 0;
}

.splynx-fno-card.active .splynx-fno-image {
    filter: grayscale(0%) opacity(1) brightness(1.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.splynx-fno-card:hover:not(.active) .splynx-fno-image {
    filter: grayscale(50%) opacity(0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.splynx-fno-card.active .splynx-fno-logo {
    border-color: rgba(255, 255, 255, 0.8);
}

.splynx-fno-card:hover:not(.active) .splynx-fno-logo {
    border-color: rgba(255, 255, 255, 0.6);
}

/* Text fallback when no FNO logo is available */
.splynx-fno-text-fallback {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 65px !important;
    width: 130px;
    height: 130px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    line-height: 1.1;
    margin: 0 auto;
    transition: all 0.3s ease;
    padding: 0;
    box-sizing: border-box;
}

.splynx-fno-divider {
    width: 60%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0.5rem auto;
    transition: all 0.3s ease;
    display: none;
}

.splynx-fno-card.active .splynx-fno-divider {
    background: rgba(255, 255, 255, 0.6);
    width: 80%;
}

.splynx-fno-card:hover:not(.active) .splynx-fno-divider {
    background: rgba(255, 255, 255, 0.4);
    width: 70%;
}

.splynx-fno-info {
    margin-top: 0;
    text-align: center;
    width: 100%;
}

.splynx-installation-time {
    font-size: 12px;
    margin: 0;
    opacity: 0.8;
    line-height: 1.3;
    display: none;
}

.splynx-fno-card.active .splynx-installation-time {
    opacity: 1;
}

.splynx-fno-placeholder {
    display: none;
}

.splynx-fno-card:hover .splynx-fno-placeholder {
    display: none;
}

.splynx-fno-card.active .splynx-fno-placeholder {
    display: none;
}

.splynx-fno-placeholder .splynx-fno-name {
    display: none;
}

.splynx-fno-info {
    transition: all 0.3s ease;
}

.splynx-fno-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.splynx-installation-time {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.splynx-fno-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.splynx-installation-time {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.splynx-fno-card.active .splynx-installation-time {
    color: rgba(255, 255, 255, 0.9);
}

/* Carousel Navigation - Hidden for horizontal tab-style design */
.splynx-carousel-nav {
    display: none;
}

/* Package Card Pricing Styles */
.splynx-package-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.splynx-package-header {
    margin-bottom: 1rem;
}

.splynx-package-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.splynx-currency {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.splynx-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.splynx-period {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    margin-left: 0.25rem;
}

.splynx-vat-notice {
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    padding: 0.125rem 0.375rem;
    background: #f8f9fa;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

.splynx-vat-notice-small {
    font-size: 0.625rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 0.25rem;
}

.splynx-popular-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Packages Section */
.splynx-packages-section {
    margin-top: 3rem;
}

.splynx-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.splynx-packages-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--splynx-primary-color, #2e94d1);
    margin: 0;
}

.splynx-selected-fno-name {
    color: var(--splynx-primary-color, #2e94d1);
}

/* Package Filters */
.splynx-package-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.splynx-filter-group {
    min-width: 150px;
}

.splynx-filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.splynx-filter-select:focus {
    outline: none;
    border-color: var(--splynx-primary-color, #2e94d1);
}

/* Loading State */
.splynx-loading {
    text-align: center;
    padding: 3rem;
}

.splynx-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--splynx-primary-color, #2e94d1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* SLA Definition Display */
.splynx-sla-definition {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.splynx-sla-content {
    text-align: center;
}

.splynx-sla-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.splynx-sla-description {
    font-size: 0.95rem;
    color: #475569;
    margin: 0;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Packages Grid - Modern Design */
.splynx-packages-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 1rem;
}

/* Grid Layouts Based on Settings */
.splynx-packages-grid.columns-desktop-1 { grid-template-columns: 1fr; }
.splynx-packages-grid.columns-desktop-2 { grid-template-columns: repeat(2, 1fr); }
.splynx-packages-grid.columns-desktop-3 { grid-template-columns: repeat(3, 1fr); }
.splynx-packages-grid.columns-desktop-4 { grid-template-columns: repeat(4, 1fr); }
.splynx-packages-grid.columns-desktop-5 { grid-template-columns: repeat(5, 1fr); }
.splynx-packages-grid.columns-desktop-6 { grid-template-columns: repeat(6, 1fr); }

/* Tablet Layout */
@media (max-width: 1024px) {
    .splynx-packages-grid.columns-tablet-1 { grid-template-columns: 1fr !important; }
    .splynx-packages-grid.columns-tablet-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .splynx-packages-grid.columns-tablet-3 { grid-template-columns: repeat(3, 1fr) !important; }
    .splynx-packages-grid.columns-tablet-4 { grid-template-columns: repeat(4, 1fr) !important; }
}

/* Mobile Layout */
@media (max-width: 768px) {
    .splynx-packages-grid.columns-mobile-1 { grid-template-columns: 1fr !important; }
    .splynx-packages-grid.columns-mobile-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .splynx-packages-grid.columns-mobile-3 { grid-template-columns: repeat(3, 1fr) !important; }
}

/* Tariff Cards - Modern Design */
.splynx-tariff-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(10px);
}

.splynx-tariff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--sla-color, var(--splynx-primary-color, #2e94d1)) 0%,
        color-mix(in srgb, var(--sla-color, var(--splynx-primary-color, #2e94d1)) 80%, transparent) 100%);
    z-index: 1;
}

.splynx-tariff-card:hover {
    border-color: var(--sla-color, var(--splynx-primary-color, #2e94d1));
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px var(--sla-color, var(--splynx-primary-color, #2e94d1)) inset;
    transform: translateY(-8px) scale(1.02);
}

.splynx-tariff-card:hover::before {
    height: 6px;
    background: linear-gradient(90deg, 
        var(--sla-color, var(--splynx-primary-color, #2e94d1)) 0%,
        color-mix(in srgb, var(--sla-color, var(--splynx-primary-color, #2e94d1)) 60%, #ffffff) 100%);
}

/* Header Badges Container */
.splynx-header-badges {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}

/* Priority Chip - Left side */
.splynx-priority-chip {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 
        0 2px 4px rgba(245, 158, 11, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    backdrop-filter: blur(10px);
    min-width: 2.5rem;
    text-align: center;
}

/* SLA Badge - Right side */
.splynx-sla-badge.splynx-sla-right {
    background: linear-gradient(135deg, 
        var(--sla-color, var(--splynx-primary-color, #2e94d1)) 0%,
        color-mix(in srgb, var(--sla-color, var(--splynx-primary-color, #2e94d1)) 80%, #ffffff) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(10px);
}

/* Hide the old left SLA badge and package badge */
.splynx-sla-badge.splynx-sla-left,
.splynx-package-badge.splynx-package-right {
    display: none !important;
}

/* Legacy SLA Badge - Modern Design (hidden by template) */
.splynx-sla-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: linear-gradient(135deg, 
        var(--sla-color, var(--splynx-primary-color, #2e94d1)) 0%,
        color-mix(in srgb, var(--sla-color, var(--splynx-primary-color, #2e94d1)) 80%, #ffffff) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(10px);
}

/* Card Header - Modern Design */
.splynx-card-header {
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
}

.splynx-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, 
        rgba(var(--sla-color-rgb, 46, 148, 209), 0.03) 0%, 
        transparent 50%);
    pointer-events: none;
}

.splynx-card-provider {
    font-size: 0.875rem;
    color: var(--sla-color, var(--splynx-primary-color, #2e94d1));
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* FNO Logo sizing for tariff cards - larger and positioned better */
.splynx-tariff-card .splynx-fno-logo {
    max-height: 120px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.splynx-tariff-card .splynx-fno-provider {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.splynx-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.3;
    color: #1e293b;
    position: relative;
    z-index: 1;
}

.splynx-card-description {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Card Body - Modern Design */
.splynx-card-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.splynx-card-price {
    margin-bottom: 2rem;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(var(--sla-color-rgb, 46, 148, 209), 0.08) 0%, 
        rgba(var(--sla-color-rgb, 46, 148, 209), 0.02) 100%);
    border-radius: 1rem;
    border: 1px solid rgba(var(--sla-color-rgb, 46, 148, 209), 0.1);
    position: relative;
    overflow: visible;
}

.splynx-card-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(var(--sla-color-rgb, 46, 148, 209), 0.05) 0%, 
        transparent 70%);
    pointer-events: none;
}

.splynx-price-amount {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, 
        var(--sla-color, var(--splynx-primary-color, #2e94d1)) 0%,
        color-mix(in srgb, var(--sla-color, var(--splynx-primary-color, #2e94d1)) 70%, #1e293b) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    position: relative;
    z-index: 1;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
    line-height: 1.1;
    padding: 0 0.25rem;
}

.splynx-price-period {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.splynx-vat-notice {
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    padding: 0.125rem 0.375rem;
    background: #f8f9fa;
    border-radius: 3px;
    border: 1px solid #e9ecef;
    position: relative;
    z-index: 1;
}

/* Installation charge display */
.splynx-card-installation {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.08) 0%, rgba(108, 117, 125, 0.02) 100%);
    border-radius: 0.75rem;
    border: 1px solid rgba(108, 117, 125, 0.15);
}

.splynx-installation-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-right: 0.5rem;
    font-weight: 500;
}

.splynx-installation-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: #495057;
}

/* Card Features - Modern Design */
.splynx-card-features {
    margin-bottom: 2rem;
    display: grid;
    gap: 1rem;
}

.splynx-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.splynx-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--sla-color, var(--splynx-primary-color, #2e94d1)) 0%,
        color-mix(in srgb, var(--sla-color, var(--splynx-primary-color, #2e94d1)) 60%, transparent) 100%);
    transition: width 0.3s ease;
}

.splynx-feature:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-color: rgba(var(--sla-color-rgb, 46, 148, 209), 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.splynx-feature:hover::before {
    width: 6px;
}

.splynx-feature-icon {
    font-size: 1.5rem;
    opacity: 0.9;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    flex-shrink: 0;
}

.splynx-feature-content {
    flex: 1;
    min-width: 0;
}

.splynx-feature-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.splynx-feature-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    display: block;
}

.splynx-feature-value small {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-left: 0.25rem;
}

.splynx-feature-content {
    flex: 1;
}

.splynx-feature-label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.splynx-feature-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--splynx-font-color, #333);
}

.splynx-feature-value small {
    font-weight: 400;
    color: #666;
}

/* Setup Fee */
.splynx-card-setup-fee {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    text-align: center;
}

.splynx-card-setup-fee small {
    font-size: 0.875rem;
    color: #666;
}

/* Installation ETA */
.splynx-card-installation-eta {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 0.5rem;
    text-align: center;
}

.splynx-card-installation-eta small {
    font-size: 0.875rem;
    color: #0369a1;
    font-weight: 500;
}

/* Speed features container - side by side layout */
.splynx-feature-speeds .splynx-speeds-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.splynx-feature-speeds .splynx-speed-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 120px;
}

.splynx-feature-speeds .splynx-speed-item .splynx-feature-icon {
    font-size: 1.2em;
}

.splynx-feature-speeds .splynx-speed-item .splynx-feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.splynx-feature-speeds .splynx-speed-item .splynx-feature-label {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.splynx-feature-speeds .splynx-speed-item .splynx-feature-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--splynx-primary-color, #2e94d1);
}

/* FNO provider section */
.splynx-fno-provider {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.75rem;
    min-height: 50px;
}

.splynx-fno-logo {
    max-height: 50px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Hide FNO name text completely */
.splynx-fno-name {
    display: none;
}

/* Installation feature styling */
.splynx-feature-installation .splynx-feature-value {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Responsive adjustments for speed container */
@media (max-width: 480px) {
    .splynx-feature-speeds .splynx-speeds-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .splynx-feature-speeds .splynx-speed-item {
        min-width: unset;
    }
}

/* Card Footer - Modern Design */
.splynx-card-footer {
    padding: 0 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.5);
}

/* Buttons - Modern Design */
.splynx-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    min-height: 48px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.splynx-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.splynx-button:hover::before {
    left: 100%;
}

.splynx-button-primary {
    background: linear-gradient(135deg, 
        var(--sla-color, var(--splynx-primary-color, #2e94d1)) 0%,
        color-mix(in srgb, var(--sla-color, var(--splynx-primary-color, #2e94d1)) 80%, #1e293b) 100%);
    color: white;
    border-color: var(--sla-color, var(--splynx-primary-color, #2e94d1));
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.splynx-button-primary:hover {
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--sla-color, var(--splynx-primary-color, #2e94d1)) 90%, #000000) 0%,
        color-mix(in srgb, var(--sla-color, var(--splynx-primary-color, #2e94d1)) 70%, #1e293b) 100%);
    border-color: color-mix(in srgb, var(--sla-color, var(--splynx-primary-color, #2e94d1)) 90%, #000000);
    color: white;
    transform: translateY(-2px);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.splynx-button-text {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    color: var(--sla-color, var(--splynx-primary-color, #2e94d1));
    border: 1px solid rgba(var(--sla-color-rgb, 46, 148, 209), 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.splynx-button-text:hover {
    background: linear-gradient(135deg, 
        rgba(var(--sla-color-rgb, 46, 148, 209), 0.1) 0%, 
        rgba(var(--sla-color-rgb, 46, 148, 209), 0.05) 100%);
    color: var(--sla-color, var(--splynx-primary-color, #2e94d1));
    border-color: rgba(var(--sla-color-rgb, 46, 148, 209), 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.splynx-clear-filters {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.splynx-clear-filters:hover {
    background: #5a6268;
    border-color: #5a6268;
    color: white;
}

/* No Results */
.splynx-no-results {
    text-align: center;
    padding: 3rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    margin: 2rem 0;
}

.splynx-no-results-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--splynx-font-color, #333);
}

.splynx-no-results-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .splynx-section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .splynx-package-filters {
        justify-content: center;
    }
    
    .splynx-carousel-nav {
        display: none;
    }
    
    .splynx-fno-carousel {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .splynx-fno-card {
        min-width: 200px;
        padding: 1.25rem 1rem;
    }
    
    .splynx-fno-card:hover {
        transform: translateY(-6px) scale(1.01);
    }
    
    .splynx-fno-card.active {
        transform: translateY(-3px) scale(1.03);
    }
}

@media (max-width: 768px) {
    .splynx-widget-header h2 {
        font-size: 2rem;
    }
    
    .splynx-packages-title {
        font-size: 1.5rem;
    }
    
    .splynx-fno-card {
        min-width: 160px;
        padding: 1rem 0.75rem;
        min-height: 140px;
    }
    
    .splynx-fno-card:hover {
        transform: translateY(-4px) scale(1.005);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }
    
    .splynx-fno-card.active {
        transform: translateY(-2px) scale(1.02);
    }
    
    .splynx-fno-logo {
        height: 100px;
        width: 100px;
        margin-bottom: 0.75rem;
    }
    
    .splynx-fno-image {
        width: 90px;
        height: 90px;
        border-radius: 45px !important;
    }
    
    .splynx-fno-text-fallback {
        width: 90px;
        height: 90px;
        border-radius: 45px !important;
        font-size: 12px;
    }
    
    .splynx-fno-name {
        font-size: 1.1rem;
    }
    
    .splynx-installation-time {
        font-size: 0.8rem;
    }
    
    .splynx-package-filters {
        flex-direction: column;
    }
    
/* Add smooth loading animation for cards */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.splynx-fno-card {
    animation: cardEntrance 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.splynx-fno-card:nth-child(2) { animation-delay: 0.1s; }
.splynx-fno-card:nth-child(3) { animation-delay: 0.2s; }
.splynx-fno-card:nth-child(4) { animation-delay: 0.3s; }
.splynx-fno-card:nth-child(5) { animation-delay: 0.4s; }

/* Enhanced focus styles for accessibility */
.splynx-fno-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 148, 209, 0.3), 0 16px 48px rgba(0, 0, 0, 0.2);
    transform: translateY(-4px) scale(1.05);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .splynx-fno-card {
        transition: none;
        animation: none;
    }
    
    .splynx-fno-card:hover,
    .splynx-fno-card.active {
        transform: none;
    }

}

/* Prevent body scroll when modal is open */
body.splynx-modal-open {
    overflow: hidden !important;
    position: relative !important;
}

/* Modern Form Modal Styles - Ultra Strong Specificity */
html body #splynx-form-modal.splynx-modal-overlay,
body #splynx-form-modal.splynx-modal-overlay,
#splynx-form-modal.splynx-modal-overlay,
.splynx-modal-overlay#splynx-form-modal,
div#splynx-form-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 20px !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

html body #splynx-form-modal.splynx-modal-overlay.active,
body #splynx-form-modal.splynx-modal-overlay.active,
#splynx-form-modal.splynx-modal-overlay.active,
.splynx-modal-overlay#splynx-form-modal.active,
div#splynx-form-modal.active {
    opacity: 1 !important;
    visibility: visible !important;
}

body #splynx-form-modal .splynx-modal-content,
html body #splynx-form-modal .splynx-modal-content,
#splynx-form-modal .splynx-modal-content {
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    max-width: 520px !important;
    width: 100% !important;
    max-height: 85vh !important;
    overflow: hidden !important;
    transform: translateY(30px) scale(0.9) !important;
    position: relative !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin: 0 !important;
    cursor: default !important;
}

body #splynx-form-modal.splynx-modal-overlay.active .splynx-modal-content,
html body #splynx-form-modal.splynx-modal-overlay.active .splynx-modal-content,
#splynx-form-modal.splynx-modal-overlay.active .splynx-modal-content {
    transform: translateY(0) scale(1) !important;
}

body #splynx-form-modal .splynx-modal-header,
html body #splynx-form-modal .splynx-modal-header,
#splynx-form-modal .splynx-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 24px 28px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-radius: 20px 20px 0 0 !important;
    margin: 0 !important;
}

.splynx-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.splynx-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.splynx-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.splynx-modal-body {
    padding: 32px 28px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* Modal animations */
@keyframes splynx-modal-fade-in {
    to {
        opacity: 1;
    }
}

@keyframes splynx-modal-slide-in {
    to {
        transform: translateY(0);
    }
}

/* Responsive modal */
@media (max-width: 768px) {
    .splynx-modal-content {
        width: 95%;
        max-height: 90%;
        margin: 20px;
    }
    
    .splynx-modal-header {
        padding: 15px 20px;
    }
    
    .splynx-modal-header h3 {
        font-size: 16px;
    }
    
    .splynx-modal-body {
        padding: 20px;
        max-height: calc(90vh - 70px);
    }
}

/* Modern Contact Form Styles */
.splynx-contact-form {
    max-width: 100%;
}

.splynx-form-group {
    margin-bottom: 24px;
}

.splynx-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.splynx-form-group input,
.splynx-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: #f9fafb;
}

.splynx-form-group input:focus,
.splynx-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.splynx-form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.splynx-contact-form .splynx-button {
    width: 100%;
    position: relative;
    min-height: 52px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 8px;
}

.splynx-contact-form .splynx-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.splynx-button-loading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.splynx-form-messages {
    margin-top: 15px;
}

.splynx-success-message {
    padding: 12px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.splynx-error-message {
    padding: 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

.splynx-success-message p,
.splynx-error-message p {
    margin: 0;
}

.splynx-error-message small {
    opacity: 0.8;
    font-size: 12px;
}

}