/* --- PACKAGES PAGE SPECIFIC STYLES --- */

/* Hero Adjustment */
.packages-hero {
    text-align: center;
    padding: 120px 20px 80px;
    background: transparent;
}

.packages-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.packages-hero h1 .accent-text {
    color: var(--accent-core, #C6F432);
}

.packages-hero p.hero-subtitle {
    color: #a0aec0;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Trust Badges under Hero */
.trust-badges-container {
    margin-top: 50px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
}

.trust-badges-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    font-size: 1.05rem;
    font-weight: 500;
}

.badge-item i {
    color: var(--accent-core, #C6F432);
    font-size: 1.2rem;
}

.rating-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.rating-row .stars {
    color: #f59e0b;
    font-size: 1.1rem;
    display: flex;
    gap: 4px;
}

.rating-text {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 1.05rem;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 1, 0.2, 1);
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

/* Tabs Navigation */
.packages-tabs-wrapper {
    width: 100%;
    border-bottom: 1px solid #e2e8f0;
    margin-top: 50px;
    padding-bottom: 0;
}

.packages-tabs {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.packages-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.tab-link {
    color: #000000;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    border-radius: 30px;
    background: transparent;
    transition: all 0.3s ease;
}

.tab-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.tab-link.active {
    background: var(--accent-core, #C6F432);
    color: #000000;
}

/* Tab Content */
.tab-content-container {
    padding: 60px 20px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-header {
    margin-bottom: 60px;
    text-align: center;
}

.sub-badge {
    background: var(--accent-core, #C6F432);
    color: #000000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.tab-header h2 {
    font-size: 2.8rem;
    color: #111;
    font-weight: 800;
    margin-bottom: 15px;
}

.tab-header p {
    color: #555;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.tab-table-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.mb-table {
    margin-bottom: 40px;
}

.tab-table-section h3 {
    font-size: 2rem;
    color: #111;
    font-weight: 800;
}

.table-responsive {
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}

.pricing-table th,
.pricing-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.pricing-table th {
    font-size: 0.9rem;
    color: #111;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pricing-table td {
    font-size: 0.95rem;
    color: #444;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table td:first-child,
.pricing-table th:first-child {
    font-weight: 600;
    color: #111;
}

.text-green {
    color: #000000;
    background: #C6F432;
    padding: 10px;
    border-radius: 30px;
}

.check-icon {
    color: #000000 !important;
    background: var(--accent-core, #C6F432);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem !important;
    flex-shrink: 0;
}

/* Pricing Cards */
.pricing-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .pricing-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-cards-wrapper {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.pricing-card.popular {
    background: #000000;
    border: 1px solid #000000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular .pc-tier {
    color: #000000;
}

.pricing-card.popular .pc-header h3,
.pricing-card.popular .pc-price h4 {
    color: #ffffff;
}

.pricing-card.popular .pc-header p,
.pricing-card.popular .pc-price h4 span,
.pricing-card.popular .pc-price>span,
.pricing-card.popular .pc-features li,
.pricing-card.popular .pc-timeline {
    color: #cbd5e1;
}

.pricing-card.popular .pc-price,
.pricing-card.popular .pc-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-core, #C6F432);
    color: #000000;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
}

.pc-tier {
    color: #000000;
    background: #C6F432;
    border-radius: 10px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
}

.pc-header h3 {
    font-size: 1.4rem;
    color: #111;
    font-weight: 800;
    margin-bottom: 15px;
}

.pc-header p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    min-height: 60px;
}

.pc-price {
    margin: 25px 0;
    padding: 25px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.pc-price h4 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.pc-price h4 span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
}

.pc-price>span {
    font-size: 0.85rem;
    color: #777;
    font-weight: 500;
    display: block;
}

.pc-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.pc-features li {
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.pc-features li i {
    font-size: 0.8rem;
    margin-top: 4px;
}

.pc-features li.disabled {
    color: #999;
    text-decoration: line-through;
}

.pc-features li.disabled i {
    color: #ccc;
    text-decoration: none;
}

.text-muted {
    color: #94a3b8 !important;
}

.pc-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.pc-timeline {
    display: block;
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 15px;
    font-weight: 500;
}

.btn-card-outline {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    color: #111;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-card-outline:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.btn-card-solid {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background: var(--accent-core, #C6F432);
    border: 2px solid var(--accent-core, #C6F432);
    border-radius: 30px;
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-card-solid:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* Ensure buttons on the black popular card remain visible on hover */
.pricing-card.popular .btn-card-solid:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
}

/* Delay classes for staggered animation */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* Reveal classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* CTA Section */
.packages-cta {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 20px;
    text-align: center;
}

.packages-cta h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 800;
}

.packages-cta p {
    color: #a0aec0;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent-core, #C6F432);
    color: #000;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #fff;
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent-core, #C6F432);
    border-color: var(--accent-core, #C6F432);
    color: #000;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .packages-hero {
        padding: 100px 0 40px; /* Reduced horizontal padding for more text width */
    }

    .packages-hero .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .packages-hero h1 {
        font-size: 2.8rem;
    }

    .packages-hero p.hero-subtitle {
        font-size: 1.1rem;
    }

    /* Ignore the global paragraph justify rule on the packages page */
    p {
        text-align: inherit !important;
    }

    /* Wrap package category tabs so they are fully visible */
    .packages-tabs {
        flex-wrap: wrap;
        padding: 0 10px;
    }

    .tab-link {
        font-size: 0.95rem;
        padding: 8px 16px;
    }
}

/* Custom Slider Control */
.table-slider-control {
    display: none; /* Only show on mobile */
    padding: 12px 16px 14px;
    background: #f8f8f8;
    border-radius: 0 0 20px 20px;
    border: 1px solid #e2e8f0;
    border-top: none;
    margin-top: 0px; 
    position: relative;
    z-index: 10;
}
.table-slider-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.table-slider-hint i {
    color: var(--accent-core, #C6F432);
    font-size: 0.75rem;
}
.table-slider-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    touch-action: none;
}
.table-slider-thumb {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: var(--accent-core, #C6F432);
    border-radius: 50%;
    cursor: grab;
    touch-action: none;
    box-shadow: 0 0 10px rgba(198, 244, 50, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease;
    z-index: 2;
}
.table-slider-thumb:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.15);
}
.table-slider-thumb::before {
    content: '⇔';
    font-size: 0.7rem;
    color: #000;
    font-weight: 900;
}
.table-slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(198, 244, 50, 0.4);
    border-radius: 6px;
    width: 0;
}

@media (max-width: 768px) {
    .table-slider-control {
        display: block; /* Show on mobile */
    }
    
    .table-responsive {
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive::-webkit-scrollbar {
        display: none;
    }
}
