/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: #050505;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
    /* Custom Scrollbar for table */
    padding-bottom: 20px;
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #0f0f0f;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(15, 15, 15, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
    /* Add space for badge */
}

/* Rounded corners for table */
.comparison-table tr:first-child th:first-child {
    border-top-left-radius: 20px;
}

.comparison-table tr:first-child th:last-child {
    border-top-right-radius: 20px;
}

.comparison-table tr:last-child td:first-child {
    border-bottom-left-radius: 20px;
}

.comparison-table tr:last-child td:last-child {
    border-bottom-right-radius: 20px;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ccc;
    font-size: 1rem;
    vertical-align: middle;
}

.comparison-table th {
    background: #111;
    padding: 30px 20px;
    position: relative;
}

/* Sticky First Column (Features) */
.comparison-table .feature-col,
.comparison-table .feature-row {
    text-align: left;
    font-weight: 500;
    color: #fff;
    background: rgba(10, 10, 10, 0.95);
    position: sticky;
    left: 0;
    z-index: 2;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 200px;
}

/* Package Headers */
.pkg-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.pkg-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Recommended Column Highlight */
.comparison-table th.recommended {
    background: rgba(212, 175, 55, 0.1);
    border-top: 4px solid var(--gold-primary);
    position: relative;
}

.comparison-table th.recommended::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.comparison-table td:nth-child(3) {
    background: rgba(212, 175, 55, 0.02);
    /* Slight tint for pro column */
}

/* Badges */
.pkg-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold-metallic);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    z-index: 5;
}

/* Icons */
.fa-check-circle {
    font-size: 1.2rem;
}

/* Price Row */
.price-row td {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    padding-top: 30px;
    border-bottom: none;
}

.action-row td {
    border-bottom: none;
    padding-bottom: 40px;
}

.text-small {
    font-size: 0.8rem !important;
    padding: 10px 20px !important;
}

/* Responsive Table */
@media (max-width: 768px) {

    .comparison-table th,
    .comparison-table td {
        padding: 15px 10px;
        font-size: 0.9rem;
    }

    .pkg-name {
        font-size: 1.2rem;
    }

    /* Make sticky column work well on mobile */
    .comparison-table .feature-col,
    .comparison-table .feature-row {
        min-width: 140px;
        font-size: 0.85rem;
    }
}