.formats {
    padding: var(--spacing-lg) 0;
    /* Reduced from xl */
    background-color: var(--bg-color);
}

.formats-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.format-row {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.format-row:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Grid Layout */
.format-row-inner {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    padding: var(--spacing-lg) var(--spacing-sm);
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar Column */
.format-sidebar {
    position: sticky;
    top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}



.format-header h3 {
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.format-header .price {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-family: 'Inter', sans-serif;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.format-slots {
    font-size: 0.85rem;
    color: var(--accent-color);
    background: rgba(212, 175, 55, 0.1);
    /* Low opacity accent background */
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.format-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}

/* Action Button in Sidebar */
.format-action {
    /* position: sticky removed */
    display: flex;
    justify-content: flex-start;
}

.format-action .btn {
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.format-action .btn:hover {
    border-color: var(--accent-color);
}

[data-theme="light"] .format-action .btn {
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="light"] .format-action .btn:hover {
    border-color: var(--text-color);
}

/* Content Grid */
.format-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 4rem;
}

.format-category h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    opacity: 0.9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.category-fact {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    border-left: 2px solid var(--accent-color);
    padding-left: 0.8rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    opacity: 1;
}

.format-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.format-category li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    line-height: 1.4;
    position: relative;
    padding-left: 0;
}

/* Remove bullets */
.format-category li::before {
    display: none;
}

/* Nested List Styling */
.format-category ul ul {
    margin-top: 0.3rem;
    margin-left: 0;
    padding-left: 1rem;
    border-left: none;
}

.format-category ul ul li {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    opacity: 0.8;
}

.format-category ul ul li::before {
    display: none;
}

/* Singleton Feature */
.feature-single {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    line-height: 1.4;
    padding-left: 0.4rem;
}

.feature-single::before {
    content: "✦";
    color: var(--accent-color);
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .format-row-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .format-sidebar {
        position: static;
        gap: 0.8rem;
        border-bottom: none;
        padding-bottom: 0.5rem;
    }

    .format-content {
        margin-top: 0.5rem;
    }

    .format-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .format-header h3 {
        font-size: 2.5rem;
    }
}

/* Mobile Toggle */
.btn-more-mobile {
    display: none;
}

@media (max-width: 768px) {
    .format-category h4 {
        margin-bottom: 0.5rem;
        padding-bottom: 0.4rem;
    }

    .format-category li,
    .format-category ul ul li {
        font-size: 0.75rem;
    }

    .desktop-text {
        display: none;
    }

    .format-content {
        display: none;
    }

    .format-content.active {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        animation: slideDown 0.3s ease-out;
        padding-bottom: 2rem;
    }

    .btn-more-mobile {
        display: block;
        width: 100%;
        padding: 0.8rem;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: #ffffff;
        border-radius: 4px;
        cursor: pointer;
        font-family: inherit;
        font-size: 0.9rem;
        margin-top: 0.5rem;
        transition: all 0.3s ease;
    }

    .btn-more-mobile:hover,
    .btn-more-mobile.active {
        background: rgba(255, 255, 255, 0.1);
        border-color: #ffffff;
    }

    /* Light Theme Override */
    [data-theme="light"] .btn-more-mobile {
        border-color: rgba(0, 0, 0, 0.3);
        color: var(--text-color);
    }

    [data-theme="light"] .btn-more-mobile:hover,
    [data-theme="light"] .btn-more-mobile.active {
        background: rgba(0, 0, 0, 0.05);
        border-color: var(--text-color);
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Compare Trigger */
.formats-compare-trigger {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    /* Reduced from spacing-md */
    padding-top: 1rem;
    /* Reduced from spacing-sm */
}

.formats-compare-trigger .btn {
    padding: 1rem 3rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    /* Ensure visible border */
}

/* Modal */
.compare-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.compare-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.compare-modal-content {
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.compare-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.compare-modal-close:hover {
    color: var(--text-color);
}

.compare-modal-content h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 300;
}

/* Table */
.compare-table-wrapper {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    /* Ensure table doesn't squish too much */
}

.compare-table th,
.compare-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: top;
}

.compare-table th {
    font-weight: 500;
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    padding-bottom: 1.5rem;
}

.compare-table td {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.compare-table td:first-child {
    font-weight: 500;
    color: var(--text-muted);
    width: 15%;
}

.compare-table td:not(:first-child) {
    width: 28%;
}

h2 {
    margin-bottom: var(--spacing-md);
}

.compare-table .sub-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    font-style: italic;
}

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

/* Highlight price row */
/* Highlight price row */
.compare-table tr:last-child td:not(:first-child) {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .formats {
        padding: 4rem 0;
    }

    .formats .section-title {
        font-size: 2.2rem;
        /* Match other sections */
        margin-bottom: 2rem;
    }

    .compare-modal-content {
        padding: 1rem;
        max-height: 85vh;
    }

    .compare-table-wrapper {
        margin: 0 -1rem;
        /* Negative margin to allow edge-to-edge scroll */
        padding: 0 1rem;
    }

    .compare-table {
        min-width: 600px;
        /* Ensure scroll */
    }

    .compare-table th,
    .compare-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    /* Sticky first column */
    .compare-table th:first-child,
    .compare-table td:first-child {
        position: sticky;
        left: 0;
        background: var(--bg-color);
        z-index: 10;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .compare-modal-content {
        padding: 1rem 0;
    }

    .compare-table th,
    .compare-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .compare-modal-content h3 {
        font-size: 1.8rem;
        /* Reduced from 2rem */
    }

    /* Mobile Tabs */
    /* Mobile Tabs */
    .formats-mobile-tabs {
        display: flex;
        position: sticky;
        top: 45px;
        /* Account for fixed header height */
        z-index: 999;
        background: var(--bg-color);
        padding: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 1.5rem;
        gap: 0.5rem;
        backdrop-filter: blur(10px);
    }

    .format-tab {
        flex: 1;
        appearance: none;
        -webkit-appearance: none;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: rgba(255, 255, 255, 0.6);
        padding: 0.8rem;
        border-radius: 6px;
        font-size: 0.9rem;
        font-family: inherit;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
    }

    .format-tab.active {
        background: var(--accent-color, #D4AF37);
        color: #000;
        border-color: var(--accent-color, #D4AF37);
        font-weight: 600;
        opacity: 1;
    }

    /* Light Theme Tab Overrides */
    [data-theme="light"] .format-tab {
        background: rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.1);
        color: var(--text-muted);
    }

    [data-theme="light"] .format-tab.active {
        color: #fff;
        /* White text on dark green accent */
    }

    /* Show/Hide logic */
    .format-row {
        display: none;
    }

    .format-row.active {
        display: block;
        animation: fadeIn 0.4s ease-out forwards;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .formats-list {
        border-top: none;
    }
}

/* Desktop: Hide tabs, show all rows */
@media (min-width: 769px) {
    .formats-mobile-tabs {
        display: none;
    }

    .format-row {
        display: block !important;
    }
}