.ta-pricing-tabs {
    text-align: center;
}

/* Wrapper provides the gradient border (stays fixed on mobile) */
.pricing-tab-headers-wrapper {
    margin-bottom: 32px;
    display: inline-flex;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(var(--tab-header-bg-angle, 92.44deg), var(--tab-header-bg-color, #8E77FF) 4.27%, var(--tab-header-bg-color-b, #F0FFA5) 98.25%);
    position: relative;
    max-width: 100%;
}

/* Inner container holds the tabs and provides the background */
.pricing-tab-headers {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    background: var(--tab-header-inner-bg, #181830);
    border-radius: 48px;
    padding: 4px;
    overflow: hidden;
}

.pricing-tab-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 12px 32px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ta-pricing-tabs .pricing-tab-content {
    display: none;
}

.ta-pricing-tabs .pricing-tab-content.active {
    display: block;
}

.ta-pricing-tabs .plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.ta-pricing-tabs .plan-card {
    background: #23234a;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transition: transform 0.2s ease;
}

.ta-pricing-tabs .plan-card:hover {
    transform: translateY(-4px);
}

.ta-pricing-tabs .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ta-pricing-tabs .plan-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.ta-pricing-tabs .plan-price {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 16px 0;
}

.ta-pricing-tabs .plan-features {
    color: #c7c7e6;
    max-width: 280px;
    margin: 0 auto 24px auto;
    padding: 0;
    list-style: none;
}

.ta-pricing-tabs .feature-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(199,199,230,0.1);
}

.ta-pricing-tabs .feature-label {
    font-weight: 500;
}

.ta-pricing-tabs .feature-value {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ta-pricing-tabs .value-text, .ta-pricing-tabs .checkmark {
    color: #fff;
    font-weight: 600;
}

.ta-pricing-tabs .plan-btn {
    display: inline-block;
    color: #fff;
    border-radius: 24px;
    padding: 12px 32px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ta-pricing-tabs .plan-btn:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .ta-pricing-tabs .plans-grid {
        grid-template-columns: 1fr;
    }
} 

/* Horizontal Pricing Table Layout */
.ta-pricing-table {
    background: #F6F4FF;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.ta-pricing-table .pricing-tab-content {
    display: none;
}

.ta-pricing-table .pricing-tab-content.active {
    display: block;
}

.ta-pricing-table .table-wrapper {
    overflow-x: auto;
    max-width: 100%;
    border-radius: 0 0 24px 24px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    touch-action: pan-x pan-y; /* Allow both horizontal and vertical touch scrolling */
}

.ta-pricing-table .pricing-comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
}

/* Sticky column styling */
.ta-pricing-table .sticky-column {
    position: sticky;
    left: 0;
    z-index: 10;
    background: #ECE8FF;
    min-width: 250px;
    max-width: 250px;
    width: 250px;
}

/* Header row styling */
.ta-pricing-table .sidebar-header {
    font-size: 2rem;
    font-weight: 700;
    color: #a78bfa;
    padding: 24px;
    text-align: left;
    vertical-align: top;
    text-align: center;
    vertical-align: middle;
}

.ta-pricing-table .sidebar-header .subtext {
    display: block;
    font-size: 1rem;
}

.ta-pricing-table .feature-value-cell.popular {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
    border-left: 2px solid #a78bfa;
    border-right: 2px solid #a78bfa;
}

.ta-pricing-table tr:first-child .feature-value-cell.popular::before {
    content: "Most Popular";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: #fff;
    padding: 4px 12px;
    border-radius: 0 0 5px 5px;    
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 5;
}

.ta-pricing-table .plan-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.ta-pricing-table .fee-info {
    color: #565656;
    font-size: 0.9rem;
}

.ta-pricing-table .fee-amount {
    color: #565656;
    font-weight: 700;
    font-size: 1.1rem;
}


.ta-pricing-table .plan-table-btn {
    display: inline-block;
    background: #a78bfa;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
}

.ta-pricing-table .plan-table-btn:hover {
    background: #8b67f5;
    transform: translateY(-1px);
}

/* Feature rows styling */
.ta-pricing-table .feature-label-cell {
    padding: 16px 24px;
    color: #c7c7e6;
    font-weight: 500;
    text-align: start;
    vertical-align: middle;
}

.ta-pricing-table .feature-value-cell {
    padding: 16px;
    text-align: center;
    border-left: 2px dashed #AFCAFE;
    vertical-align: middle;
    min-width: 250px;
}

.ta-pricing-table .feature-row:first-child td, 
.ta-pricing-table .feature-row:first-child th {
   padding-top: 48px;
}

.ta-pricing-table .feature-row:last-child td, 
.ta-pricing-table .feature-row:last-child th {
   padding-bottom: 64px;
}

.ta-pricing-table .value-text {
    color: #fff;
    font-weight: 600;
}

.pricing-tab-header svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* Responsive design */
@media (max-width: 1024px) {
    .ta-pricing-table .pricing-comparison-table {
        min-width: 700px;
    }
    
    .ta-pricing-table .sticky-column {
        min-width: 220px;
        max-width: 220px;
        width: 220px;
    }
}

@media (max-width: 768px) {
    .ta-pricing-table .pricing-comparison-table {
        min-width: 600px;
    }
    
    .ta-pricing-table .sticky-column {
        min-width: 160px;
        max-width: 160px;
        width: 160px;
    }
    
    .ta-pricing-table .feature-label-cell {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .ta-pricing-table .sidebar-header {
        padding: 12px 14px;
        font-size: 1.2rem;
    }
    
  
    
    .ta-pricing-table .plan-title {
        font-size: 1rem;
    }
    
    .ta-pricing-table .feature-value-cell {
        padding: 10px 20px;
        min-width: 200px;
        font-size: 0.9rem;
        white-space: break-spaces;
    }
    
    .ta-pricing-table .plan-table-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    
    .ta-pricing-table .pricing-tab-header {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .pricing-tab-headers {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .pricing-tab-headers::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    
    .pricing-tab-header {
        flex-shrink: 0;
        padding: 8px 18px;
        font-size: 0.85rem;
        white-space: nowrap;
        border-radius: 22px;
    }
}

/* Custom scrollbar for horizontal scroll */
.ta-pricing-table .table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.ta-pricing-table .table-wrapper::-webkit-scrollbar-track {
    background: rgba(167, 139, 250, 0.1);
    border-radius: 4px;
}

.ta-pricing-table .table-wrapper::-webkit-scrollbar-thumb {
    background: #a78bfa;
    border-radius: 4px;
}

.ta-pricing-table .table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #8b67f5;
}

/* Enhanced Scrolling Styles */
.ta-pricing-table .table-wrapper {
    position: relative;
    user-select: none;
    transition: all 0.2s ease;
}

.ta-pricing-table .table-wrapper.scrollable {
    cursor: grab;
}

.ta-pricing-table .table-wrapper.scrollable:active {
    cursor: grabbing;
}

/* Scroll Shadow Indicators */
.ta-pricing-table .table-wrapper.scroll-left-shadow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, rgba(167, 139, 250, 0.15), transparent);
    pointer-events: none;
    z-index: 15;
    transition: opacity 0.3s ease;
}

.ta-pricing-table .table-wrapper.scroll-right-shadow::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to left, rgba(167, 139, 250, 0.15), transparent);
    pointer-events: none;
    z-index: 15;
    transition: opacity 0.3s ease;
}

/* Smooth scrolling for the table */
.ta-pricing-table .table-wrapper {
    scroll-behavior: smooth;
}

/* Visual feedback for dragging */
.ta-pricing-table .table-wrapper:active {
    transform: scale(0.99);
}

/* Hide scroll indicators on mobile */
@media (max-width: 768px) {
    .ta-pricing-table .table-wrapper.scroll-left-shadow::before,
    .ta-pricing-table .table-wrapper.scroll-right-shadow::after {
        display: none;
    }
    
    .ta-pricing-table .table-wrapper {
        cursor: default !important;
    }
}

/* Accessibility: Focus styles for keyboard navigation */
.ta-pricing-table .table-wrapper:focus {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}

/* Scroll hint - shows on first load, centered in table */
.ta-pricing-table .table-wrapper.show-scroll-hint::after {
    content: '← Scroll to see more plans →';
    position: absolute;
    width: 250px;
    height: 40px;
    top: 95%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(167, 139, 250, 0.95);
    color: white;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
    z-index: 20;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: fadeInHint 0.4s ease forwards;
}

/* Hide hint when scrolling or after user interaction */
.ta-pricing-table .table-wrapper.is-scrolling::after,
.ta-pricing-table .table-wrapper.hint-dismissed::after {
    opacity: 0 !important;
    animation: fadeOutHint 0.3s ease forwards;
}

@keyframes fadeInHint {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeOutHint {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* Loading State for AJAX */
.ta-pricing-tabs.loading {
    pointer-events: none;
}

/* Skeleton Loading Animation */
@keyframes skeletonPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes skeletonShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Skeleton Base Styles */
.skeleton-loader {
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeleton-shimmer {
    background: linear-gradient(
        90deg,
        rgba(167, 139, 250, 0.1) 25%,
        rgba(167, 139, 250, 0.2) 50%,
        rgba(167, 139, 250, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

/* Skeleton Cards Grid */
.skeleton-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.skeleton-plan-card {
    background: rgba(35, 35, 74, 0.6);
    border-radius: 16px;
    padding: 32px;
}

.skeleton-badge {
    width: 100px;
    height: 24px;
    background: rgba(167, 139, 250, 0.2);
    border-radius: 12px;
    margin: 0 auto 16px;
}

.skeleton-title {
    width: 60%;
    height: 28px;
    background: rgba(167, 139, 250, 0.15);
    border-radius: 6px;
    margin: 0 auto 16px;
}

.skeleton-price {
    width: 40%;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin: 0 auto 24px;
}

.skeleton-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.skeleton-feature {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(199, 199, 230, 0.1);
}

.skeleton-feature-label {
    width: 40%;
    height: 16px;
    background: rgba(199, 199, 230, 0.1);
    border-radius: 4px;
}

.skeleton-feature-value {
    width: 30%;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.skeleton-button {
    width: 140px;
    height: 44px;
    background: rgba(167, 139, 250, 0.3);
    border-radius: 24px;
    margin: 0 auto;
}

/* Skeleton Table */
.skeleton-table-wrapper {
    overflow-x: auto;
    border-radius: 0 0 24px 24px;
}

.skeleton-table {
    width: 100%;
    min-width: 800px;
    border-collapse: separate;
    border-spacing: 0;
}

.skeleton-table td,
.skeleton-table th {
    padding: 16px 24px;
    text-align: center;
}

.skeleton-table .skeleton-sidebar {
    background: rgba(236, 232, 255, 0.5);
    min-width: 250px;
    text-align: left;
}

.skeleton-table .skeleton-cell {
    border-left: 2px dashed rgba(175, 202, 254, 0.3);
    min-width: 150px;
}

.skeleton-header-text {
    width: 80%;
    height: 32px;
    background: rgba(167, 139, 250, 0.2);
    border-radius: 6px;
    margin: 0 auto;
}

.skeleton-cell-text {
    width: 70%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 auto;
}

.skeleton-cell-button {
    width: 100px;
    height: 36px;
    background: rgba(167, 139, 250, 0.3);
    border-radius: 8px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .skeleton-plans-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   Comparison Grid Layout
   ============================== */

.ta-pricing-comparison {
    overflow: hidden;
}

.ta-pricing-comparison .pricing-tab-content {
    display: none;
}

.ta-pricing-comparison .pricing-tab-content.active {
    display: block;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
}

/* Sidebar: feature labels (desktop only) — subgrid shares parent row tracks */
.comparison-sidebar {
    grid-column: 1;
    grid-row: 1 / -1;
    display: grid;
    grid-template-rows: subgrid;
}

.comparison-sidebar .sidebar-spacer {
    min-height: 120px;
}

.comparison-sidebar .sidebar-feature {
    display: flex;
    align-items: center;
    padding: 16px 16px 16px 0;
    color: #c7c7e6;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(199, 199, 230, 0.1);
    min-height: 56px;
    box-sizing: border-box;
    text-align: start;
}

.comparison-sidebar .sidebar-footer {
    display: flex;
    align-items: center;
    padding: 24px 16px 24px 0;
    color: #c7c7e6;
    font-weight: 500;
    font-size: 0.95rem;
    box-sizing: border-box;
}

/* Columns container — subgrid shares parent row tracks, scrolls horizontally */
.comparison-columns {
    grid-column: 2;
    grid-row: 1 / -1;
    display: grid;
    grid-template-rows: subgrid;
    gap: 0 12px;
    min-width: 0;
    overflow-x: auto;
    user-select: none;
}

.comparison-columns:active {
    cursor: grabbing;
}

/* Single plan column — subgrid shares parent row tracks for alignment */
.comparison-column {
    grid-row: 1 / -1;
    min-width: 0;
    background: #23234a;
    border-radius: 16px;
    display: grid;
    grid-template-rows: subgrid;
    position: relative;
    overflow: hidden;
}

.comparison-column.popular {
    border: 2px solid #f59e0b;
}

.comparison-column .popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: #fff;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 2;
}

/* Column header */
.comparison-column .column-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    text-align: center;
    min-height: 120px;
    box-sizing: border-box;
}

.comparison-column .account-label {
    color: #a78bfa;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.comparison-column .account-balance {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Feature cells */
.comparison-column .column-feature {
    padding: 16px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid rgba(199, 199, 230, 0.1);
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Column footer */
.comparison-column .column-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    gap: 12px;
    margin-top: auto;
    box-sizing: border-box;
}

.comparison-column .column-fee {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.comparison-column .column-btn {
    width: 100%;
    display: inline-block;
    background: #a78bfa;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 12px 16px;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-align: center;
}

.comparison-column .column-btn:hover {
    background: #8b67f5;
    transform: translateY(-1px);
}

/* Top bar: pills + toggle side by side */
.comparison-top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 0 24px;
    flex-wrap: wrap;
}

/* Balance pills (visible on both desktop & mobile) */
.comparison-pills {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Price / Percentage toggle */
.comparison-toggles {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.comparison-price-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.comparison-price-toggle .price-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.comparison-price-toggle .toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(167, 139, 250, 0.25);
    border-radius: 12px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.comparison-price-toggle .toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.comparison-price-toggle .price-toggle-input:checked + .toggle-slider {
    background: #a78bfa;
}

.comparison-price-toggle .price-toggle-input:checked + .toggle-slider::after {
    transform: translateX(20px);
}

.comparison-price-toggle .toggle-label {
    color: #c7c7e6;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.comparison-pills .pill {
    background: rgba(167, 139, 250, 0.15);
    color: #c7c7e6;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.comparison-pills .pill.active {
    background: #a78bfa;
    color: #fff;
}

/* Toggleable value text transition */
.feature-value-text {
    transition: opacity 0.15s ease;
}

/* Desktop column highlight on pill click */
.comparison-column.highlighted {
    outline: 2px solid #a78bfa;
    outline-offset: -2px;
    transition: outline 0.3s ease;
}

/* Sidebar feature icon styling */
.sidebar-feature-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.sidebar-feature-icon svg,
.sidebar-feature-icon i {
    width: 16px;
    height: 16px;
    color: #a78bfa;
}

/* Merged phase cell styling */
.column-feature--merged {
    flex-direction: column;
    gap: 2px;
}

.phase-label {
    font-size: 0.75em;
    opacity: 0.6;
    font-weight: 500;
}

.phase-value.phase-2 {
    font-size: 0.85em;
    opacity: 0.75;
}


/* Show More / Show Less toggle */
.comparison-hidden-row {
    display: none !important;
}

.comparison-content.expanded .comparison-hidden-row {
    display: flex !important;
}

/* Show more / Show less toggle */
.comparison-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px 12px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #a78bfa;
    box-sizing: border-box;
    text-align: left;
}

.comparison-toggle:hover {
    opacity: 0.85;
}

.comparison-toggle__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.comparison-toggle__icon svg {
    width: 16px;
    height: 16px;
    color: #a78bfa;
}

/* Default: show "more" state, hide "less" state */
.comparison-toggle__icon--up,
.comparison-toggle__text--less {
    display: none;
}

/* Expanded: show "less" state, hide "more" state */
.comparison-content.expanded .comparison-toggle__icon--down,
.comparison-content.expanded .comparison-toggle__text--more {
    display: none;
}

.comparison-content.expanded .comparison-toggle__icon--up,
.comparison-content.expanded .comparison-toggle__text--less {
    display: inline-flex;
}

/* In-column toggle: invisible on desktop (keeps grid slot), visible on mobile */
.comparison-toggle--column {
    visibility: hidden;
    padding: 0;
    min-height: 0;
}

/* ==============================
   Comparison Grid - Mobile
   ============================== */
@media (max-width: 768px) {
    .comparison-grid {
        display: block;
    }

    .comparison-sidebar {
        display: none;
    }

    .comparison-columns {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 0 8px 12px 8px;
        scrollbar-width: none;
    }

    .comparison-columns::-webkit-scrollbar {
        display: none;
    }

    .comparison-column {
        display: flex;
        flex-direction: column;
        scroll-snap-align: start;
        min-width: 85vw;
        flex-shrink: 0;
    }

    .comparison-column .column-feature::before {
        content: attr(data-label);
        color: #c7c7e6;
        font-weight: 400;
        font-size: 0.85rem;
        margin-right: auto;
        text-align: left;
    }

    .comparison-column .column-feature {
        justify-content: flex-end;
        gap: 12px;
        padding: 12px 16px;
        height: auto;
    }

    /* Merged cells on mobile: label + phase values in a row */
    .comparison-column .column-feature--merged {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    .comparison-column .column-feature--merged .phase-value {
        white-space: nowrap;
    }

    /* Show the in-column toggle on mobile */
    .comparison-toggle--column {
        display: flex;
        visibility: visible;
        padding: 12px 16px;
        min-height: auto;
    }
}

/* Comparison Skeleton */
.skeleton-comparison-grid {
    display: flex;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.skeleton-comparison-column {
    flex: 1;
    background: rgba(35, 35, 74, 0.6);
    border-radius: 16px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.skeleton-comparison-header {
    width: 60%;
    height: 60px;
    background: rgba(167, 139, 250, 0.15);
    border-radius: 8px;
}

.skeleton-comparison-feature {
    width: 80%;
    height: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.skeleton-comparison-footer {
    width: 50%;
    height: 44px;
    background: rgba(167, 139, 250, 0.3);
    border-radius: 8px;
    margin-top: auto;
}

@media (max-width: 768px) {
    .skeleton-comparison-grid {
        overflow-x: hidden;
    }
    .skeleton-comparison-column {
        min-width: 85vw;
        flex-shrink: 0;
    }
}

/* Error State */
.ta-pricing-error {
    text-align: center;
    padding: 48px 24px;
    color: #f87171;
    font-size: 1rem;
    background: rgba(248, 113, 113, 0.1);
    border-radius: 12px;
    margin: 24px auto;
    max-width: 400px;
}