/* Dojang Go Pricing Components - Cards & Table */

/* --- Billing Toggle UI --- */
.pv-billing-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pv-toggle-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #a0a0a0;
    transition: color 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pv-toggle-label.pv-active {
    color: #231f20;
}

.pv-toggle-discount {
    background-color: #e5f5ed;
    color: #0b7c47;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
}

.pv-billing-toggle {
    appearance: none;
    background-color: #231f20;
    border: none;
    border-radius: 30px;
    width: 64px;
    height: 32px;
    position: relative;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.pv-billing-toggle:focus-visible {
    outline: 2px solid #901a1e;
    outline-offset: 2px;
}

.pv-toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* State when Annual is selected */
.pv-billing-toggle[aria-pressed="true"] {
    background-color: #901a1e;
}

.pv-billing-toggle[aria-pressed="true"] .pv-toggle-slider {
    transform: translateX(32px);
}

.pv-pricing-section {
    max-width: 1200px;
    margin: 60px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #231f20;
}

/* --- Pricing Cards --- */
.pv-pricing-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
    padding: 0 20px;
}

.pv-card {
    background: #ffffff;
    border: 1px solid #e0ddd5;
    border-radius: 12px;
    padding: 40px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pv-card-recommended {
    border: 2px solid #901a1e;
    box-shadow: 0 12px 32px rgba(144, 26, 30, 0.08);
}

.pv-card-badge {
    position: absolute;
    top: -14px;
    left: 32px;
    background: #901a1e;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pv-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.pv-card-price {
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pv-price-amount {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.pv-price-subtitle {
    color: #666666;
    font-size: 1rem;
    font-weight: 500;
}

.pv-card-desc {
    color: #555555;
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 32px;
    min-height: 48px; /* Aligns buttons horizontally */
}

.pv-btn-full {
    width: 100%;
    margin-bottom: 40px;
}

.pv-card-features h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #231f20;
}

.pv-card-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pv-card-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.4;
}

.pv-card-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- Detailed Feature Table --- */
.pv-feature-table-wrapper {
    padding: 0 20px;
}

.pv-table-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 40px;
    text-align: left;
}

.pv-dojang-pricing-table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
}

.pv-dojang-pricing-table th,
.pv-dojang-pricing-table td {
    padding: 20px 16px !important;
    text-align: center !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #e0ddd5 !important;
}

.pv-dojang-pricing-table th {
    font-size: 1.25rem;
    font-weight: 700 !important;
    border-bottom: none !important;
    position: relative;
}

.pv-feature-name-col {
    width: 40% !important;
}

.pv-table-badge {
    display: block;
    color: #901a1e;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Category Headers (Dark Rows) */
.pv-category-row td {
    background-color: #231f20 !important;
    color: #ffffff !important;
    text-align: left !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    padding: 16px 24px !important;
    border: none !important;
}

/* Feature Names */
.pv-dojang-pricing-table .pv-feature-name {
    text-align: left !important;
    font-weight: 500;
    color: #231f20;
    padding-left: 24px !important;
}

/* Recommended Column Highlighting */
.pv-dojang-pricing-table .pv-recommended-col {
    background-color: #fdfbf7 !important;
}

/* Icons */
.pv-dojang-pricing-table .pv-icon-tick {
    color: #231f20;
    font-size: 1.1rem;
}

.pv-dojang-pricing-table .pv-icon-dash {
    display: inline-block;
    width: 12px;
    height: 2px;
    background-color: #a0a0a0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .pv-dojang-pricing-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .pv-feature-name-col {
        width: auto !important;
    }
}

/* --- Pricing Card Headers (Strict Inline Layout) --- */
.pv-card-header {
    display: flex !important;
    flex-direction: row !important; /* Forces side-by-side layout */
    align-items: center !important; /* Vertically centres the icon with the text */
    justify-content: flex-start !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
}

.pv-card-header .pv-card-title {
    margin: 0 !important; 
    font-size: 1.8rem !important; /* Slightly increased to balance the 48px icon */
    font-weight: 800 !important;
    line-height: 1 !important;
    color: #231f20 !important;
}

.pv-tier-icon {
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0 !important;
    display: block !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-radius: 12px; 
}