/* 
 * Bảng Giá CSS - Dịch Vụ SEO 247
 * Design System: Neon Dark Mode / Glassmorphism
 */

.dvs-pricing-page {
    /* Base Variables inheriting from theme if available, or fallbacks */
    --pricing-bg: rgba(15, 23, 42, 0.8);
    --pricing-border: rgba(255, 255, 255, 0.1);
    --pricing-highlight: var(--dvs-primary, #3b82f6);
    --pricing-text: #cbd5e1;
    --pricing-title: #ffffff;
}

/* Base resets inside the pricing page */
.dvs-pricing-page ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Pricing Section */
.dvs-pricing-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center; /* Center vertically to allow highlight to scale */
    margin: 50px auto;
    max-width: 1200px;
}

@media (max-width: 992px) {
    .dvs-pricing-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .dvs-pricing-wrapper {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

/* Pricing Card */
.dvs-pricing-card {
    background: var(--pricing-bg);
    border: 1px solid var(--pricing-border);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dvs-pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Highlighted (Popular) Card */
.dvs-pricing-card.dvs-popular {
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.5) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: var(--pricing-highlight);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2), inset 0 0 20px rgba(59, 130, 246, 0.1);
    transform: scale(1.05);
    z-index: 2;
}

.dvs-pricing-card.dvs-popular:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.4);
}

@media (max-width: 768px) {
    .dvs-pricing-card.dvs-popular {
        transform: scale(1);
    }
    .dvs-pricing-card.dvs-popular:hover {
        transform: translateY(-5px);
    }
}

/* Popular Badge */
.dvs-popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    white-space: nowrap;
}

/* Header */
.dvs-pricing-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--pricing-border);
    padding-bottom: 30px;
}

.dvs-pricing-header h3 {
    color: var(--pricing-title);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.dvs-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
}

.dvs-price .currency {
    font-size: 1.2rem;
    color: var(--pricing-text);
    font-weight: 600;
}

.dvs-price .period {
    font-size: 1rem;
    color: var(--pricing-text);
    font-weight: 400;
}

/* Features List */
.dvs-pricing-features {
    flex-grow: 1;
    margin-bottom: 30px;
}

.dvs-pricing-features li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--pricing-text);
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.dvs-pricing-features li::before {
    content: "✅";
    font-size: 1rem;
    display: inline-flex;
    width: 1em;
    height: 1em;
    align-items: center;
    justify-content: center;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    flex-shrink: 0;
}

.dvs-pricing-features li.dvs-disabled {
    color: #475569;
    text-decoration: line-through;
}
.dvs-pricing-features li.dvs-disabled::before {
    content: "❌";
    filter: grayscale(1) opacity(0.5);
}

/* Button */
.dvs-pricing-action {
    text-align: center;
}

.dvs-pricing-card .dvs-btn-outline {
    width: 100%;
    display: block;
}

.dvs-pricing-card.dvs-popular .dvs-btn-glow {
    width: 100%;
    display: block;
}

/* Comparison Table */
.dvs-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--pricing-border);
}

.dvs-comparison-table th,
.dvs-comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--pricing-border);
    color: var(--pricing-text);
}

.dvs-comparison-table th {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

.dvs-comparison-table th:first-child,
.dvs-comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: white;
}

.dvs-comparison-table tr:last-child td {
    border-bottom: none;
}

.dvs-comparison-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 768px) {
    .dvs-comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
