/* =========================================
   LOADER
   ========================================= */
#loader {
    display: none;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   LANGUAGE SELECTOR
   ========================================= */
.language_cl select {
    font-size: 14px;
    border: none !important;
    width: 100px;
    background-color: #000 !important;
    outline: none !important;
}

/* =========================================
   AWARDS SECTION
   ========================================= */
.award-cl {
    display: flex;
    flex-direction: column;
    color: #2E4360;
    font-size: 18px;
    width: 100%;
    font-family: 'Open Sans';
    align-items: center;
}

.award-cl span.title {
    font-size: 24px;
    font-weight: 700;
    color: #89D0FF;
    display: block;
}

.award-cl span.description {
    color: #2E4360;
    font-weight: 400;
    line-height: 25px;
    padding-bottom: 20px;
    text-align: center;
    display: block;
}

.award-cl span.startup {
    display: block;
    padding-bottom: 10px;
}

.award-cl span.price {
    font-size: 36px;
    color: #2C3C94;
    font-weight: 400;
    display: block;
    padding-bottom: 18px;
    text-align: center;
    line-height: 37px;
}

.award-cl span.link {
    padding-bottom: 10px;
}

.award-cl span.link a {
    background-color: #2C3C94;
    color: #fff;
    padding: 10px 15px;
    border-radius: 7px;
    display: block;
}

.award-cl span.link a:hover {
    background-color: #eff9ff;
    color: #2C3C94;
}

/* =========================================
   PLANS CONTAINER
   ========================================= */
.plans-container {
    font-family: 'Open Sans', sans-serif;
    display: flex;
    flex-direction: column;
}

.heading_top {
    text-align: center;
    color: #2F4B91;
    font-size: 20px;
    font-weight: 600;
    padding: 20px 0;
}

/* =========================================
   BUTTON WRAPPER / FILTER TABS
   ========================================= */
.btn-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.btn-wrapper::-webkit-scrollbar {
    display: none;
}

.btn-wrapper ul {
    display: flex;
    gap: 10px;
    list-style: none;
    flex-wrap: nowrap;
    padding: 0;
    margin: 0;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
}

.btn-wrapper ul li {
    flex: 0 0 auto;
    width: 179px;
    border: 1px solid #2E436033;
    text-align: center;
    cursor: pointer;
    color: #232E2E;
    padding: 3px 0;
    background: #FFF;
    border-radius: 30px;
}

.btn-wrapper ul li button {
    padding: 10px 16px;
    border-radius: 6px;
    background: #2C3C94;
    color: #fff;
    border: none;
    white-space: nowrap;
}

.btn-wrapper ul li.active {
    background-color: #2C3C94;
    color: #fff;
}

.btn-wrapper ul li span {
    margin-left: 14px;
    padding: 2px 8px;
    color: #FFF;
    border-radius: 3px;
    font-size: 14px;
}

.btn-wrapper ul li span.blue {
    background-color: #89D0FF;
}

.btn-wrapper ul li span.darkblue {
    background-color: #2C3C94;
}

.btn-wrapper ul li span.red {
    background-color: #F15722;
}

/* =========================================
   CARDS GRID LAYOUT - MAIN FIX
   ========================================= */

/* Base wrapper for cards loaded via AJAX */
#load-cards {
    display: grid;
    gap: 24px;
    width: 100%;
    padding: 20px 0;
}

/* =========================================
   DESKTOP LAYOUT (769px and above)
   ========================================= */
@media (min-width: 769px) {
    /* DEFAULT: 3 columns (for 6 cards = 3+3) */
    #load-cards {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }
    
    /* EXACTLY 4 CARDS: 2 columns (2+2 layout) */
    #load-cards[data-count="4"] {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 900px;
        margin: 0 auto;
    }
    
    /* 1-2 CARDS: Centered with max width */
    #load-cards[data-count="1"],
    #load-cards[data-count="2"] {
        grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
        justify-content: center;
        max-width: 850px;
    }
    
    /* 5 CARDS: 3 columns (3+2 layout) */
    #load-cards[data-count="5"] {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }
}

/* =========================================
   TABLET LAYOUT (768px)
   ========================================= */
@media (min-width: 576px) and (max-width: 768px) {
    #load-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
        padding: 15px;
    }
}

/* =========================================
   MOBILE LAYOUT (below 576px)
   ========================================= */
@media (max-width: 575px) {
    /* Single column on small mobile */
    #load-cards {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 10px;
    }
    
    .plans-container {
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .btn-wrapper ul {
        justify-content: flex-start;
        overflow-x: auto;
    }
}

/* =========================================
   CARD STYLES
   ========================================= */
#load-cards .card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#load-cards .card:hover {
    transform: translateY(-5px);
    border-color: #2C3C94;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

#load-cards .card div.padding-out {
    padding: 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* =========================================
   FEATURED CARD
   ========================================= */
#load-cards .featuredCard {
    background: #2C3C94;
    border-color: #2C3C94;
}

#load-cards .featuredCard:hover {
    transform: translateY(-5px) scale(1.02);
}

.featuredCard span.popular {
    background-color: #ff6b35;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 8px 0;
    font-size: 14px;
    text-align: center;
    display: block;
    color: #FFF;
    font-weight: 600;
    text-transform: capitalize;
}

/* =========================================
   CARD TITLE
   ========================================= */
.card div.titleCl {
    display: flex;
    gap: 8px;
    color: #2C3C94;
    font-size: 22px;
    font-weight: 700;
    align-items: center;
    padding-top: 6px;
    margin-bottom: 6px;
}

.featuredCard div.titleCl {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-top: 0;
    color: #FFF;
    font-size: 22px;
    font-weight: 700;
}

/* =========================================
   DISCOUNT BADGE - ROUND STYLE
   ========================================= */
.card div.discount {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
}

.card div.discount span.netPrice {
    font-weight: 400;
    font-size: 16px;
    text-decoration: line-through;
    color: #9ca3af;
}

.featuredCard div.discount span.netPrice {
    color: rgba(255, 255, 255, 0.6);
}

/* Round Save Badge */
.card div.discount span.dicountBox {
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: white;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
}

/* =========================================
   CARD PRICING - BOLD STYLE
   ========================================= */
.card div.price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 16px;
}

.card div.price span.sp1 {
    font-weight: 800;
    font-size: 42px;
    color: #2C3C94;
    letter-spacing: -1px;
    line-height: 1;
}

.card div.price span.sp2 {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #6b7280;
}

.featuredCard div.price span.sp1 {
    font-weight: 800;
    font-size: 42px;
    color: #FFF;
}

.featuredCard div.price span.sp2 {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* =========================================
   CARD DESCRIPTIONS
   ========================================= */
.card p.plan-description {
    font-weight: 400;
    font-size: 14px;
    color: #6b7280;
    text-align: left;
    margin-bottom: 8px;
}

.featuredCard p.plan-description {
    font-weight: 400;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
}

.card p.plan-description2 {
    font-weight: 600;
    font-size: 13px;
    color: #2E4360;
    text-align: left;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 10px;
}

.featuredCard p.plan-description2 {
    font-weight: 600;
    font-size: 13px;
    color: #FFF;
    text-align: left;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
}

/* =========================================
   BUY NOW BUTTON
   ========================================= */
.card .buy-now-button {
    display: block;
    padding: 14px 24px;
    border: 2px solid #2C3C94;
    background-color: transparent;
    font-weight: 600;
    color: #2C3C94;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    margin-top: 10px;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 15px;
}

.card .buy-now-button:hover {
    background-color: #2C3C94;
    color: #FFF;
}

.featuredCard .buy-now-button {
    background-color: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
    margin-bottom: 10px;
}

.featuredCard .buy-now-button:hover {
    background-color: #ff8c5a;
    border-color: #ff8c5a;
    color: #fff;
}

/* =========================================
   FEATURES LIST - WITH UNDERLINES
   ========================================= */
.card .features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.card .features-list li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #2E4360;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
}

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

.featuredCard .features-list li {
    color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

/* Check icon styling */
.card .features-list li i.fa-check,
.card .features-list li i.fas.fa-check {
    color: #10b981;
    font-size: 14px;
    flex-shrink: 0;
}

.featuredCard .features-list li i.fa-check,
.featuredCard .features-list li i.fas.fa-check {
    color: #4ade80;
}

/* =========================================
   ✨ TOOLTIP STYLES - FIXED POSITIONING
   ========================================= */

/* Make feature-text the positioning anchor */
.card .features-list li .feature-text {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    /* Hidden by default */
    visibility: hidden;
    opacity: 0;
    
    /* Size & Layout */
    width: max-content;
    min-width: 140px;
    max-width: 220px;
    padding: 10px 14px;
    
    /* Premium Dark Gradient Background */
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    
    /* Text Styling */
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left !important;
    white-space: normal;
    word-wrap: break-word;
    text-decoration: none !important;
    
    /* ✅ FIXED: Position relative to .feature-text, not the li */
    position: absolute;
    z-index: 1000;
    bottom: calc(100% + 10px);
    left: 0;
    transform: translateY(5px);
    
    /* Border & Shadow */
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.1);
    
    /* Smooth Animation */
    transition: 
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

/* Tooltip Arrow - Points to the text */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: #334155 transparent transparent transparent;
}

/* Show Tooltip on Hover */
.features-list li:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Dotted underline for features with tooltips */
.features-list li:has(.tooltip-text) .feature-text {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #9ca3af;
    text-underline-offset: 4px;
    cursor: help;
}

/* Featured card tooltip underline */
.featuredCard .features-list li:has(.tooltip-text) .feature-text {
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

/* Prevent icon from getting underline */
.features-list li i {
    display: inline-block;
    text-decoration: none !important;
}

/* =========================================
   TOOLTIP - MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 575px) {
    .tooltip-text {
        min-width: 120px;
        max-width: 180px;
        font-size: 12px;
        padding: 8px 10px;
    }
}

/* =========================================
   MORE FEATURES TOGGLE
   ========================================= */
.card span.more_features {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #2C3C94;
    font-size: 14px;
    margin-top: 14px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.card span.more_features:hover {
    color: #ff6b35;
}

.card.featuredCard .more_features {
    color: #ffffff !important;
    opacity: 1 !important;
}

.card.featuredCard .more_features i {
    color: #ffffff !important;
}

.card.featuredCard .more_features:hover {
    color: #e0e0e0 !important;
}

.more_feature_content {
    display: none;
}

/* Arrow rotation on active */
.more_features.active i {
    transform: rotate(180deg);
}

.more_features i {
    transition: transform 0.3s ease;
    display: inline-block;
}

/* =========================================
   RESPONSIVE BUTTON WRAPPER
   ========================================= */
@media (max-width: 768px) {
    .btn-wrapper ul {
        justify-content: flex-start;
        padding-left: 10px;
    }
    
    .btn-wrapper ul li {
        width: auto;
        min-width: 120px;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .card div.price span.sp1 {
        font-size: 32px;
    }
}

/* =========================================
   CARD ENTRANCE ANIMATION
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#load-cards .card {
    animation: fadeInUp 0.5s ease forwards;
}

#load-cards .card:nth-child(1) { animation-delay: 0.1s; }
#load-cards .card:nth-child(2) { animation-delay: 0.15s; }
#load-cards .card:nth-child(3) { animation-delay: 0.2s; }
#load-cards .card:nth-child(4) { animation-delay: 0.25s; }
#load-cards .card:nth-child(5) { animation-delay: 0.3s; }
#load-cards .card:nth-child(6) { animation-delay: 0.35s; }

/* One-time payment below price */
.price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price .sp2 {
    font-size: 14px;
    color: #64748b;
    margin-top: 5px;
}