/*
Theme Name: Burton Acoustix V8
Description: V8 = v6 article engine (preserved 1:1) + v7 design system for homepage, category, and page templates. Articles load this stylesheet (the original v6 sheet verbatim). All other page types load the v7 tokens/base/layout/components stack via functions.php.
Version: 8.0.0-alpha
*/

/* =====================================
   CSS VARIABLES - Aura Fresh Tech
   ===================================== */
:root {
    /* Primary Colors */
    --bg-main: #F2FBF9;
    --bg-surface: #FFFFFF;
    --primary-teal: #06B6D4;
    --primary-hover: #0891B2;
    
    /* Text Colors */
    --text-main: #0F172A;
    --text-muted: #475569;
    
    /* UI Colors */
    --border-light: #E2E8F0;
    --accent-light: #ECFEFF;
    --badge-blue-bg: #EFF6FF;
    --badge-blue-text: #2563EB;
    
    /* Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    
    /* Border Radius */
    --radius-card: 24px;
    --radius-btn: 100px;
    --radius-sm: 12px;
    
    /* Legacy Compatibility */
    --primary-green: #06B6D4;
    --header-green: #0F172A;
    --accent-green: #06B6D4;
    --yellow-accent: #06B6D4;
    --text-dark: #0F172A;
    --text-light: #475569;
    --white: #ffffff;
    --light-gray: #F2FBF9;
    --border-color: #E2E8F0;
}

/* =====================================
   READING PROGRESS BAR
   ===================================== */
.reading-progress-container {
    position: sticky;
    top: 0; /* Sticks to top since header is not sticky */
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, 
        rgba(242, 251, 249, 1) 0%,
        rgba(242, 251, 249, 0.95) 20%,
        rgba(242, 251, 249, 0.7) 60%,
        rgba(242, 251, 249, 0) 100%
    );
    z-index: 50;
    pointer-events: none;
}

.reading-progress-bar {
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-teal), #22D3EE);
    transition: width 0.1s ease-out;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
    pointer-events: auto;
}

.reading-progress-bar.complete {
    background: linear-gradient(90deg, #10B981, #34D399);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    animation: pulse-glow 1s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.6); }
    50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.9); }
}

/* =====================================
   RESET & BASE STYLES
   ===================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: clip;
    max-width: 100vw;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

a {
    color: var(--primary-teal);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* =====================================
   LAYOUT CONTAINERS
   ===================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================
   TOP PICKS WRAPPER (Full Width)
   ===================================== */
.top-picks-wrapper {
    max-width: 1400px;
    margin: 0 auto 32px;
    padding: 0 32px;
}

@media (max-width: 1000px) {
    .top-picks-wrapper {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .top-picks-wrapper {
        padding: 0 16px;
    }
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
}

@media (max-width: 1200px) {
    .blog-container {
        grid-template-columns: 1fr 260px;
        gap: 32px;
    }
}

@media (max-width: 1000px) {
    .blog-container {
        grid-template-columns: 1fr 220px;
        gap: 24px;
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: 1fr;
        max-width: 100vw;
        padding: 0 16px;
    }
    
    .article-content {
        max-width: 100%;
        width: 100%;
        padding: 24px 16px;
        overflow-x: visible;
    }

    .article-main {
        padding: 0;
    }

    .article-content .post-content {
        padding: 0;
        overflow-x: visible;
    }
}

/* =====================================
   HEADER / NAVIGATION
   ===================================== */
.site-header {
    padding: 24px;
    z-index: 100;
    background: var(--bg-main);
}

/* Prevent Google auto-ads from appearing inside header */
.site-header .google-auto-placed,
.site-header .adsbygoogle,
.site-header ins.adsbygoogle {
    display: none;
    height: 0;
    overflow: hidden;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    padding: 16px 32px;
    border-radius: 100px;
    box-shadow: var(--shadow-soft);
}

.site-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: var(--text-main);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 14px;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--text-main);
}

/* =====================================
   BUTTONS
   ===================================== */
.btn-primary {
    background-color: var(--primary-teal);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    color: white;
}

.btn-outline {
    background: white;
    color: var(--text-main);
    border: 1px solid #E2E8F0;
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-outline:hover {
    border-color: var(--text-muted);
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

.btn-dark {
    background-color: var(--text-main);
    color: white;
}

/* =====================================
   CARDS
   ===================================== */
.card {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 32px;
}

.card-elevated {
    box-shadow: var(--shadow-card);
}

/* =====================================
   BADGES
   ===================================== */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
}
.badge-teal {
    background: var(--accent-light);
    color: var(--primary-teal);
}
.badge-blue {
    background: var(--badge-blue-bg);
    color: var(--badge-blue-text);
}

/* =====================================
   STICKY MINI-TABLE (Affiliate)
   ===================================== */
.sticky-mini-table {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 20px 24px;
    margin-bottom: 32px;
    border: 1px solid #E2E8F0;
}

.mini-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mini-table-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-products {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 12px 0;
}

.mini-products::-webkit-scrollbar {
    height: 4px;
}

.mini-products::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.4);
    border-radius: 2px;
}

.mini-products::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary-teal), #22D3EE);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(6, 182, 212, 0.4);
}

.mini-products::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #0891B2, var(--primary-teal));
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

.mini-product {
    flex: 1 0 200px;
    min-width: 200px;
    max-width: calc(33.333% - 8px);
    background: #F8FAFC;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    scroll-snap-align: start;
}
.mini-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.mini-product.highlight {
    background: var(--accent-light);
    border: 2px solid var(--primary-teal);
}

.mini-product-img {
    width: 135px;
    height: 135px;
    object-fit: contain;
    margin: 0 auto 12px;
    border-radius: 12px;
    flex-shrink: 0;
}

.mini-product-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
    flex-grow: 1;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.mini-product-price {
    display: none; /* Hidden to encourage Amazon clicks for affiliate revenue */
}

a.mini-btn,
.mini-btn {
    display: block;
    background: var(--text-main);
    color: white;
    padding: 8px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    width: 100%;
}
a.mini-btn:hover,
.mini-btn:hover {
    color: white;
}
.mini-product.highlight .mini-btn {
    background: var(--primary-teal);
    color: white;
}

@media (max-width: 600px) {
    .mini-products {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .mini-product {
        flex: 0 0 200px;
        min-width: 200px;
        max-width: 200px;
    }
}

/* =====================================
   IN-CONTENT PRODUCT CARD
   ===================================== */
.product-card-inline {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-card);
    padding: 24px;
    margin: 32px 0;
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 24px;
    align-items: center;
}

.product-card-inline img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #F8FAFC;
    border-radius: 12px;
    margin: 0;
}

.product-card-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-card-info .rating {
    color: #FBBF24;
    font-size: 14px;
    margin-bottom: 8px;
}

.product-card-info .features {
    font-size: 13px;
    color: var(--text-muted);
}

.product-card-info .features span {
    display: inline-block;
    background: #F1F5F9;
    padding: 4px 10px;
    border-radius: 100px;
    margin-right: 8px;
    margin-bottom: 4px;
}

.product-card-cta {
    text-align: center;
}

.product-card-cta .price {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.product-card-cta .btn-check {
    display: block;
    background: var(--primary-teal);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 8px;
}
.product-card-cta .btn-check:hover {
    background: var(--primary-hover);
}

.product-card-cta .amazon-note {
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .product-card-inline {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .product-card-inline img {
        margin: 0 auto;
    }
}

/* =====================================
   ARTICLE CONTENT
   ===================================== */
.article-content {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: var(--radius-card);
    padding: 48px;
    box-shadow: var(--shadow-soft);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.article-content * {
    font-family: inherit;
}

.article-content h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--text-muted);
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 48px 0 16px;
    color: var(--text-main);
    scroll-margin-top: 60px;
}

.article-content h3 {
    font-size: 21px;
    font-weight: 800;
    margin: 32px 0 12px;
    color: var(--text-main);
    letter-spacing: -0.01em;
    scroll-margin-top: 60px;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 10px;
    color: var(--text-main);
    scroll-margin-top: 60px;
}

.article-content p {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-main);
    line-height: 1.7;
}

.article-content img {
    width: 100%;
    border-radius: 12px;
    margin: 24px 0;
}

.article-content a {
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
}
.article-content a:hover:not(.inline-product-card):not(.ipc-btn):not(.cc-btn):not(.cta-btn) {
    text-decoration: underline;
}

/* =====================================
   QUICK TAKEAWAY BOX (compact card, amber palette)
   ===================================== */
.quick-takeaway {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 12px;
    padding: 14px 20px 16px;
    margin: 24px 0;
}

/* Scroll offset for ALL headings to account for sticky header */
.article-content h2,
.article-content h3,
#quick-takeaway {
    scroll-margin-top: 60px;
}

.quick-takeaway-title,
.article-content .quick-takeaway-title {
    font-size: 14px;
    font-weight: 700;
    color: #B45309;
    margin: 0 0 6px 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quick-takeaway p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 10px 0;
    color: #334155;
}

.quick-takeaway p:last-child {
    margin-bottom: 0;
}

/* =====================================
   CONTENT TABLES (excludes .quick-picks-table)
   The :not(.quick-picks-table) guard prevents the generic table frame
   (border + radius + shadow + last-row highlight) from double-wrapping the
   comparison table, which already has its own .quick-picks-table-wrapper frame.
   ===================================== */
.article-content table:not(.quick-picks-table),
.post-content table:not(.quick-picks-table),
article table:not(.quick-picks-table) {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 32px 0;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #E2E8F0;
}

.article-content table:not(.quick-picks-table) thead,
.post-content table:not(.quick-picks-table) thead,
article table:not(.quick-picks-table) thead {
    background: linear-gradient(135deg, #ECFEFF 0%, #F0FDFA 100%);
}

.article-content table:not(.quick-picks-table) th,
.post-content table:not(.quick-picks-table) th,
article table:not(.quick-picks-table) th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 14px;
    color: #0F172A;
    border-bottom: 2px solid #06B6D4;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.article-content table:not(.quick-picks-table) td,
.post-content table:not(.quick-picks-table) td,
article table:not(.quick-picks-table) td {
    padding: 14px 20px;
    font-size: 15px;
    color: #0F172A;
    border-bottom: 1px solid #E2E8F0;
    vertical-align: middle;
}

.article-content table:not(.quick-picks-table) tbody tr:last-child td,
.post-content table:not(.quick-picks-table) tbody tr:last-child td,
article table:not(.quick-picks-table) tbody tr:last-child td {
    border-bottom: none;
}

.article-content table:not(.quick-picks-table) tbody tr:hover,
.post-content table:not(.quick-picks-table) tbody tr:hover,
article table:not(.quick-picks-table) tbody tr:hover {
    background: #F8FAFC;
}

/* Highlight row for totals or important data */
.article-content table:not(.quick-picks-table) tbody tr:last-child,
.post-content table:not(.quick-picks-table) tbody tr:last-child,
article table:not(.quick-picks-table) tbody tr:last-child {
    background: linear-gradient(135deg, #ECFEFF 0%, #F0FDFA 100%);
    font-weight: 700;
}

/* First column styling (item names) */
.article-content table:not(.quick-picks-table) td:first-child,
.post-content table:not(.quick-picks-table) td:first-child,
article table:not(.quick-picks-table) td:first-child {
    font-weight: 600;
    color: #0F172A;
}

/* Responsive content tables (excludes .quick-picks-table — it has its own
   responsive rules in the QUICK PICKS TABLE block lower in this file) */
@media (max-width: 768px) {
    .article-content table:not(.quick-picks-table),
    .post-content table:not(.quick-picks-table),
    article table:not(.quick-picks-table) {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .article-content table:not(.quick-picks-table) thead,
    .article-content table:not(.quick-picks-table) tbody,
    .post-content table:not(.quick-picks-table) thead,
    .post-content table:not(.quick-picks-table) tbody,
    article table:not(.quick-picks-table) thead,
    article table:not(.quick-picks-table) tbody {
        display: table;
        width: max-content;
        min-width: 480px;
    }
    
    .article-content table:not(.quick-picks-table) th,
    .article-content table:not(.quick-picks-table) td,
    .post-content table:not(.quick-picks-table) th,
    .post-content table:not(.quick-picks-table) td,
    article table:not(.quick-picks-table) th,
    article table:not(.quick-picks-table) td {
        padding: 12px 16px;
        font-size: 14px;
        white-space: normal;
    }
}

/* Post content specific */
.post-content p,
.post-content .wp-block-paragraph {
    margin-bottom: 1.5em;
    line-height: 1.7;
}

.post-content h2 {
    font-weight: 800;
    margin-top: 2.5em;
    margin-bottom: 1em;
    font-size: 24px;
}

.post-content h3 {
    margin-top: 2em;
    margin-bottom: 0.75em;
    font-size: 18px;
}

.post-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-size: 16px;
    font-weight: 700;
}

/* Lists - bullets/numbers sit in the padding gutter via outside positioning */
.post-content ol,
.post-content ul {
    margin-left: 0;
    margin-bottom: 1.5em;
    padding-left: 1.2em;
    list-style-position: outside;
}

.post-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* Fix "bullet on its own line" when WP/Pandoc outputs <li><p>...</p></li> */
.post-content li > p {
    margin: 0;
}
.post-content li > p:first-child {
    display: inline;
}
.post-content li > p + p {
    display: block;
    margin-top: 0.75em;
}

/* =====================================
   SIDEBAR
   ===================================== */
.sidebar {
    align-self: stretch;
}

.sidebar-inner {
    position: sticky;
    top: 50px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.toc-box {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.toc-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: var(--primary-teal);
}

.toc-list a.active {
    color: var(--primary-teal);
    font-weight: 700;
    background: var(--accent-light);
    padding: 6px 10px;
    margin: -6px -10px;
    border-radius: 6px;
}

/* =====================================
   HERO SECTION
   ===================================== */
.hero {
    padding: 80px 0 120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    aspect-ratio: 4/3;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.hero-stats {
    margin-top: 32px;
    display: flex;
    gap: 24px;
}

.stat-num {
    font-weight: 800;
    font-size: 24px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions,
    .hero-stats {
        justify-content: flex-start;
    }
    .hero-content h1 {
        font-size: 36px;
    }
}

/* =====================================
   FEATURE GRID
   ===================================== */
.features {
    padding: 0 0 120px;
}

.section-label {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 64px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    color: var(--primary-teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 20px;
    font-size: 24px;
}

.feature-title {
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

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

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================
   PRODUCT COMPARISON GRID
   ===================================== */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
}

.product-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    border: 1px solid transparent;
    position: relative;
}

.product-card.highlight {
    border: 2px solid var(--primary-teal);
    transform: scale(1.05);
    z-index: 2;
}

.prod-image-area {
    height: 160px;
    background: #F8FAFC;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.prod-image-area img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prod-price {
    font-size: 36px;
    font-weight: 800;
    margin: 16px 0;
}

.check-list {
    list-style: none;
    margin: 24px 0;
    padding: 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.check-icon {
    color: var(--primary-teal);
    font-weight: bold;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .product-card.highlight {
        transform: none;
    }
}

/* =====================================
   FAQ SECTION
   ===================================== */
.faq-section {
    max-width: 800px;
    margin: 0 auto 120px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.8);
}

.faq-question {
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 14px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* =====================================
   FOOTER CTA
   ===================================== */
.footer-cta {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    border-radius: var(--radius-card);
    padding: 80px;
    text-align: center;
    color: white;
    margin-top: 64px;
    margin-bottom: 48px;
}

.footer-cta-title {
    color: white;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.footer-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

.btn-primary.btn-light {
    background: white;
    color: #0F172A;
}

.btn-primary.btn-light:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.btn-primary.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-primary.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: white;
    color: white;
}

/* =====================================
   SITE FOOTER
   ===================================== */
.site-footer {
    text-align: center;
    padding: 64px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.site-footer-links {
    margin-top: 8px;
}

/* =====================================
   UTILITY CLASSES
   ===================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none; }

@media (max-width: 768px) {
    .hide-mobile { display: none; }
}

/* =====================================
   MINI TABLE (NOT STICKY - V2)
   ===================================== */
.mini-table-wrapper {
    background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(6,182,212,0.06) 50%, rgba(0,0,0,0.02) 100%);
    padding: 32px 24px;
    border-radius: var(--radius-card);
    margin-bottom: 32px;
}

.mini-table {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: var(--radius-card);
    box-shadow: 0 4px 6px -1px rgba(6,182,212,0.1), 0 10px 40px -10px rgba(6,182,212,0.15);
    padding: 20px 24px;
    margin-bottom: 0;
}

.mini-table-header {
    margin-bottom: 16px;
}

.mini-table-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-product {
    flex: 1 0 200px;
    min-width: 200px;
    max-width: calc(33.333% - 8px);
    background: #F8FAFC;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    scroll-snap-align: start;
}
.mini-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.mini-product.highlight {
    background: var(--accent-light);
    border: 2px solid var(--primary-teal);
}

.mini-product-img {
    width: 135px;
    height: 135px;
    object-fit: contain;
    border-radius: 12px;
    margin: 0 auto 12px;
}

.mini-product-img-placeholder {
    width: 135px;
    height: 135px;
    background: #E2E8F0;
    border-radius: 12px;
    margin: 0 auto 8px;
}

.mini-product-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.mini-product-price {
    display: none; /* Hidden to encourage Amazon clicks for affiliate revenue */
}

.mini-btn {
    display: block;
    background: var(--text-main);
    color: white;
    padding: 8px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.mini-product.highlight .mini-btn {
    background: var(--primary-teal);
}

/* =====================================
   SIDEBAR TOC (Desktop - sticky)
   ===================================== */
.toc-box {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.toc-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    line-height: 1.4;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: var(--primary-teal);
}

.toc-list a.active {
    color: var(--primary-teal);
    font-weight: 700;
    background: var(--accent-light);
    padding: 6px 10px;
    margin: -6px -10px;
    border-radius: 6px;
}

/* =====================================
   MOBILE TOC (Dropdown - tablet/mobile)
   ===================================== */
.mobile-toc {
    display: none;
    margin-bottom: 16px;
}

.mobile-toc-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-toc-toggle:hover {
    border-color: var(--primary-teal);
}

.mobile-toc-toggle .toggle-icon {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.mobile-toc-dropdown {
    display: none;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #E2E8F0;
    border-top: 1px solid #E2E8F0;
    border-radius: 0 0 16px 16px;
    padding: 12px 20px 16px;
    margin-top: -8px;
}

.mobile-toc-dropdown.open {
    display: block;
}

.mobile-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-toc-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.mobile-toc-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mobile-toc-list a {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    display: block;
    padding: 4px 0;
}

.mobile-toc-list a:hover {
    color: var(--primary-teal);
}

.site-footer-links {
    margin-top: 8px;
}

.affiliate-disclosure {
    margin: 16px 0 24px;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-left: 4px solid #06B6D4;
    border-radius: 10px;
    background: #F8FAFC;
    color: #0F172A;
    font-size: 14px;
    line-height: 1.6;
}

/* =====================================
   INLINE EMAIL CAPTURE (Premium Gradient Effect)
   ===================================== */
.inline-email-capture {
    margin: 40px -48px;
    padding: 0;
}

.email-capture-spotlight {
    background: linear-gradient(180deg, 
        rgba(242, 251, 249, 0) 0%,
        rgba(242, 251, 249, 0.95) 15%,
        rgba(242, 251, 249, 1) 50%,
        rgba(242, 251, 249, 0.95) 85%,
        rgba(242, 251, 249, 0) 100%
    );
    padding: 48px 24px;
    position: relative;
}

/* Top gradient line with glow - matches progress bar */
.email-capture-spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(6, 182, 212, 0.3) 20%,
        var(--primary-teal) 50%,
        rgba(6, 182, 212, 0.3) 80%,
        transparent 100%
    );
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

/* Bottom gradient line with glow */
.email-capture-spotlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(6, 182, 212, 0.3) 20%,
        var(--primary-teal) 50%,
        rgba(6, 182, 212, 0.3) 80%,
        transparent 100%
    );
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.email-capture-card {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: var(--radius-card);
    padding: 40px 48px;
    max-width: 640px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    box-shadow: 
        0 4px 20px -4px rgba(6, 182, 212, 0.15),
        0 12px 48px -12px rgba(6, 182, 212, 0.2);
    position: relative;
}

.email-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.email-capture-card h4 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.email-capture-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.email-capture-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.email-capture-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border-light);
    border-radius: 100px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.email-capture-form input:focus {
    outline: none;
    border-color: var(--primary-teal);
}

.email-capture-form button {
    padding: 14px 24px;
    white-space: nowrap;
    font-size: 14px;
}

.email-note {
    font-size: 11px;
    color: var(--text-muted);
}

/* Tablet adjustments for inline email */
@media (max-width: 768px) {
    .email-capture-card {
        max-width: 500px;
        padding: 32px 36px;
    }
}

/* Mobile adjustments for inline email */
@media (max-width: 600px) {
    .inline-email-capture {
        margin: 32px -20px;
    }
    
    .email-capture-spotlight {
        padding: 32px 16px;
    }
    
    .email-capture-card {
        max-width: 100%;
        width: 100%;
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .email-capture-card h4 {
        font-size: 18px;
    }
    
    .email-capture-form {
        flex-direction: column;
    }
    
    .email-capture-form button {
        width: 100%;
    }
}

/* Legacy mobile email capture - hidden now */
.mobile-email-capture {
    display: none;
}

/* =====================================
   SIDEBAR EMAIL BOX
   ===================================== */
.sidebar-email-box {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: var(--radius-card);
    padding: 24px 24px 28px 24px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    margin-bottom: 8px; /* Ensure box-shadow is visible at bottom */
}

.sidebar-email-box h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.sidebar-email-box p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.sidebar-email-box input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #E2E8F0;
    border-radius: 100px;
    margin-bottom: 12px;
    font-size: 15px;
}

/* =====================================
   ARTICLE STYLES V2
   ===================================== */
.article-main {
    min-width: 0;
}

.article-featured-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
}

.author-box {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    margin-top: 48px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.author-box .author-avatar {
    border-radius: 50%;
}

.author-info h4 {
    margin-bottom: 4px;
}

.author-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.related-posts {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #E2E8F0;
}

.related-posts h3 {
    margin-bottom: 24px;
}

.related-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-card {
    display: flex;
    gap: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: var(--radius-card);
    padding: 14px;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #E2E8F0;
    align-items: stretch; /* Make image fill full height */
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-thumb {
    flex-shrink: 0;
    width: 200px;
    min-height: 130px;
    border-radius: 10px;
    overflow: hidden;
    align-self: stretch; /* Fill available height */
}

.related-thumb-placeholder {
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--primary-teal);
    font-size: 24px;
}

.related-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.related-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.35;
    color: var(--text-main);
    text-decoration: none;
}

.related-card:hover h4 {
    color: var(--primary-teal);
}

.related-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 10px 0;
    flex: 1;
}

.related-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-teal);
    transition: color 0.2s;
}

.related-card:hover .related-cta {
    color: var(--primary-hover);
}

/* =====================================
   DESKTOP ONLY UTILITY
   ===================================== */
.desktop-only {
    display: block;
}

/* =====================================
   RESPONSIVE - TABLET
   ===================================== */
@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .desktop-only {
        display: none;
    }
    
    /* Show mobile TOC and email capture */
    .mobile-toc {
        display: block;
    }
    
    .mobile-email-capture {
        display: block;
    }
    
    /* Compact mini-table for tablet */
    .mini-table {
        padding: 16px;
    }
    
    .mini-products {
        flex-direction: row;
        gap: 8px;
    }
    
    .mini-product {
        padding: 12px 8px;
    }
    
    .mini-product-img-placeholder {
        width: 135px;
        height: 135px;
        margin-bottom: 12px;
    }
    
    .mini-product-name {
        font-size: 11px;
    }
    
    .mini-product-price {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .mini-btn {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================
   RESPONSIVE - TABLET (901px - 768px)
   ===================================== */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 { font-size: 36px; }
    h2 { font-size: 26px; }
    h3 { font-size: 19px; }
    
    .article-content h1 {
        font-size: 36px;
    }
    
    .article-content h2 {
        font-size: 26px;
    }
    
    .article-content h3 {
        font-size: 19px;
    }
    
    .article-content h4 {
        font-size: 17px;
    }
    
    .article-content p {
        font-size: 15px;
    }
}

/* =====================================
   RESPONSIVE - MOBILE (< 600px)
   ===================================== */
@media (max-width: 600px) {
    body {
        font-size: 14px;
        line-height: 1.7;
    }
    
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 17px; }
    h4 { font-size: 15px; }
    
    .blog-container {
        padding: 0 16px;
    }
    
    .article-content {
        padding: 20px;
        border-radius: 12px;
    }
    
    .article-content h1 {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    .article-content h2 {
        font-size: 22px;
        margin-top: 32px;
    }
    
    .article-content h3 {
        font-size: 17px;
        font-weight: 800;
    }
    
    .article-content h4 {
        font-size: 15px;
        font-weight: 700;
    }
    
    .article-content p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 1.2em;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 12px;
    }
    
    .mini-table {
        padding: 12px;
        border-radius: 12px;
    }
    
    .mini-table-title {
        font-size: 10px;
    }
    
    .mini-product-name {
        font-size: 10px;
    }
    
    .mini-product-price {
        font-size: 11px;
    }
    
    .mini-btn {
        padding: 6px 8px;
        font-size: 9px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .author-info h4 {
        font-size: 14px;
    }
    
    .author-info p {
        font-size: 12px;
    }
    
    .email-form-inline {
        flex-direction: column;
    }
    
    .email-form-inline button {
        width: 100%;
    }
    
    .email-capture-box h4 {
        font-size: 16px;
    }
    
    .email-capture-box p {
        font-size: 13px;
    }
    
    /* Header mobile */
    .nav-container {
        padding: 12px 16px;
    }
    
    .nav-links {
        display: none;
    }
    
    .site-logo {
        font-size: 16px;
    }
    
    .btn-primary {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    /* Footer */
    .footer-cta {
        padding: 40px 20px;
        border-radius: 12px;
    }
    
    .footer-cta-title {
        font-size: 24px;
    }
    
    .footer-cta p {
        font-size: 14px;
    }
    
    .related-posts h3 {
        font-size: 18px;
    }
    
    .related-card {
        padding: 10px;
        gap: 12px;
    }
    
    .related-thumb {
        width: 120px;
        height: 90px;
    }
    
    .related-card h4 {
        font-size: 15px;
    }
    
    .related-excerpt {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .related-cta {
        font-size: 12px;
    }
}

/* =====================================
   INLINE PRODUCT CARDS (In-Article)
   ===================================== */

/* IPC List Container - for grouped product cards */
.ipc-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.ipc-list .inline-product-card {
    margin: 0; /* Remove individual margins when in list */
}

/* Mobile-first: Stack by default */
.inline-product-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #E2E8F0;
    border-left: 3px solid #06B6D4;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

/* Desktop: 3-column layout */
@media (min-width: 1100px) {
    .inline-product-card {
        grid-template-columns: 120px 1fr auto;
        gap: 20px;
        text-align: left;
        padding: 20px 24px;
        margin: 32px 0;
    }
}

.inline-product-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

a.inline-product-card,
a.inline-product-card:hover,
a.inline-product-card:focus,
a.inline-product-card:active {
    text-decoration: none;
}

a.inline-product-card .ipc-title,
a.inline-product-card:hover .ipc-title {
    text-decoration: none;
}

/* Mobile-first: centered image */
.ipc-image {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

@media (min-width: 1100px) {
    .ipc-image {
        width: 120px;
        height: 120px;
        margin: 0;
    }
}

.ipc-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ipc-image .no-image {
    font-size: 40px;
}

.ipc-content {
    flex: 1;
    min-width: 0;
}

.ipc-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.ipc-meta {
    display: flex;
    align-items: center;
    justify-content: center; /* Center on mobile */
    gap: 16px;
    flex-wrap: wrap;
}

@media (min-width: 1100px) {
    .ipc-meta {
        justify-content: flex-start; /* Left-align on desktop */
    }
}

.ipc-rating {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap; /* Prevent stars and number from breaking */
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ipc-price {
    display: none; /* Hidden to encourage Amazon clicks for affiliate revenue */
}

/* Mobile-first: full-width button */
.ipc-cta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

a.ipc-btn,
.ipc-btn {
    display: block;
    width: 100%;
    background: #06B6D4;
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

@media (min-width: 1100px) {
    .ipc-cta {
        justify-content: flex-end;
    }
    
    a.ipc-btn,
    .ipc-btn {
        display: inline-block;
        width: auto;
        white-space: nowrap;
    }
}

a.ipc-btn:hover,
.ipc-btn:hover {
    background: var(--primary-hover);
    color: white;
}

/* Pros/Cons in Product Cards - Mobile-first: stacked */
.ipc-pros-cons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #E2E8F0;
}

@media (min-width: 1100px) {
    .ipc-pros-cons {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
    }
}

.ipc-pros,
.ipc-cons {
    flex: 1;
}

.ipc-pros ul,
.ipc-cons ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ipc-pros li,
.ipc-cons li {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ipc-icon {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.ipc-pros .ipc-icon {
    color: #10B981;
}

.ipc-cons .ipc-icon {
    color: #EF4444;
}

/* Card with pros/cons needs more space */
/* .inline-product-card.has-pros-cons { */
.inline-product-card.has-pros-cons-DISABLED {
    flex-wrap: wrap;
}

/* Disabled for grid layout */
.inline-product-card.has-pros-cons-DISABLED .ipc-content {
    flex-basis: calc(100% - 140px);
}

/* Disabled for grid layout */
.inline-product-card.has-pros-cons-DISABLED .ipc-cta {
    flex-basis: 100%;
    text-align: center;
    margin-top: 16px;
}

/* Tablet & Mobile styles are now in the base (mobile-first) rules above */

/* =====================================
   MONEY PAGE TOP PICKS (Enhanced)
   ===================================== */
.money-top-picks {
    background: linear-gradient(135deg, #ECFEFF 0%, #F0FDFA 100%);
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
}

.money-top-picks-header {
    text-align: center;
    margin-bottom: 20px;
}

.money-picks-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.money-picks-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
}

/* Center cards when they don't fill the width - desktop only */
/* Use 'safe center' to prevent first card clipping when content overflows */
@media (min-width: 769px) {
    .money-picks-grid {
        justify-content: safe center;
    }
    
    /* Non-money pages: also center */
    .simple-picks .money-picks-grid {
        justify-content: safe center;
    }
}

.money-picks-grid::-webkit-scrollbar {
    height: 4px;
}

.money-picks-grid::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.4);
    border-radius: 2px;
}

.money-picks-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary-teal), #22D3EE);
    border-radius: 2px;
}

.money-pick-card {
    flex: 0 0 220px;
    min-width: 220px;
    max-width: 220px;
    background: white;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    scroll-snap-align: start;
}

.money-pick-card:hover {
    box-shadow: var(--shadow-card);
    border: 1px solid var(--primary-teal);
}

/* Featured card (Best Overall) - gradient border emphasis */
.money-pick-card.featured {
    position: relative;
    border: 2px solid #14B8A6;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.3), 0 0 0 1px #8B5CF6;
}

.money-pick-card.featured:hover {
    border: 2px solid #14B8A6;
    box-shadow: 0 8px 28px rgba(20, 184, 166, 0.4), 0 0 0 2px #8B5CF6;
}

/* Featured label - coral/salmon for contrast */
.money-pick-card.featured .money-pick-label {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

.money-pick-label {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-teal);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.money-pick-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 12px 0;
    border-radius: 8px;
    flex-shrink: 0;
}

.money-pick-img-placeholder {
    width: 100px;
    height: 100px;
    margin: 12px 0;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #F8FAFC;
    border-radius: 8px;
    flex-shrink: 0;
}

.money-pick-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

.money-pick-rating {
    font-size: 14px;
    color: var(--text-muted);
    height: 20px;
    flex-shrink: 0;
}

.money-pick-pros {
    list-style: none;
    margin: 10px 0;
    padding: 12px 10px;
    text-align: left;
    font-size: 12px;
    background: #F0FDF4;
    border-radius: 6px;
    border-left: 3px solid #10B981;
    width: 100%;
    min-height: 70px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.money-pick-pros li {
    line-height: 1.4;
    color: #166534;
    font-weight: 500;
}

.money-pick-btn {
    display: block;
    background: var(--text-main);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius-btn);
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    margin-top: auto;
}

.money-pick-card:hover .money-pick-btn {
    background: var(--primary-teal);
}

/* Responsive - Tablet: show 2 cards */
@media (max-width: 768px) {
    .money-picks-grid {
        gap: 10px;
        padding: 16px 12px;
        justify-content: flex-start;
        scroll-padding-left: 0;
        scroll-snap-type: none;
    }
    
    .money-pick-card {
        flex: 0 0 calc(50% - 5px);
        min-width: calc(50% - 5px);
        max-width: calc(50% - 5px);
    }
}

@media (max-width: 768px) {
    .money-top-picks {
        padding: 16px;
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 0;
    }
    
    /* Show 2 cards at first load on tablets/mobile */
    .money-pick-card {
        flex: 0 0 calc(50% - 5px);
        min-width: calc(50% - 5px);
        max-width: calc(50% - 5px);
    }
    
    .money-pick-img,
    .money-pick-img-placeholder {
        width: 75px;
        height: 75px;
    }
}

@media (max-width: 480px) {
    .money-picks-grid {
        gap: 10px;
        padding: 16px 12px;
        justify-content: flex-start;
    }
    
    /* Show exactly 2 cards on mobile - calc based on viewport */
    .money-pick-card {
        flex: 0 0 calc(50% - 5px);
        min-width: calc(50% - 5px);
        max-width: calc(50% - 5px);
        padding: 12px;
    }
    
    .money-pick-img,
    .money-pick-img-placeholder {
        width: 70px;
        height: 70px;
    }
}

.quick-picks-table-wrapper {
    margin: 20px 0 32px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.quick-picks-table-scroll {
    overflow-x: visible;
}

.quick-picks-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    table-layout: fixed;
    min-width: 0;
}

.quick-picks-table thead {
    background: linear-gradient(135deg, #ECFEFF 0%, #F0FDFA 100%);
}

.quick-picks-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 800;
    font-size: 11px;
    color: #0F172A;
    border-bottom: 2px solid #06B6D4;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.quick-picks-table td {
    padding: 12px 8px;
    font-size: 14px;
    color: #0F172A;
    border-bottom: 1px solid #E2E8F0;
    vertical-align: middle;
}

.quick-picks-table th.qp-col-rating,
.quick-picks-table td.qp-col-rating {
    width: 10%;
    text-align: center;
}

.quick-picks-table th.qp-col-thickness,
.quick-picks-table td.qp-col-thickness {
    width: 12%;
    text-align: center;
}

.quick-picks-table th.qp-col-pack,
.quick-picks-table td.qp-col-pack {
    width: 12%;
    text-align: center;
}

.quick-picks-table th.qp-col-shape,
.quick-picks-table td.qp-col-shape {
    width: 12%;
    text-align: center;
}

.quick-picks-table th.qp-col-price,
.quick-picks-table td.qp-col-price {
    width: 6%;
    text-align: center;
}

.quick-picks-table th.qp-col-cta,
.quick-picks-table td.qp-col-cta {
    width: 18%;
    text-align: center;
}

.quick-picks-table td.qp-col-product {
    padding-right: 6px;
}

@media (min-width: 1001px) {
    .quick-picks-table td.qp-col-price {
        padding-right: 48px;
        text-align: right;
    }

    .quick-picks-table td.qp-col-cta {
        padding-left: 48px;
        text-align: left;
    }

    .quick-picks-table td.qp-col-price .qp-price {
        margin-right: 18px;
    }
}

.quick-picks-table td.qp-col-rating {
    padding-left: 6px;
}

.quick-picks-table td.qp-col-thickness,
.quick-picks-table td.qp-col-pack {
    white-space: nowrap;
}

.quick-picks-table tbody tr:hover {
    background: #F8FAFC;
}

.quick-picks-table tbody tr:last-child td {
    border-bottom: none;
}

.quick-picks-table .qp-row-featured {
    background: linear-gradient(135deg, #f0fdfa 0%, #ffffff 100%);
}

.qp-bestfor {
    margin-bottom: 6px;
    display: flex;
    justify-content: flex-start;
}

.qp-product {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.qp-img-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    margin: 0;
}

.quick-picks-table .qp-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: transparent;
    border: none;
    margin: 0;
    display: block;
}

.qp-product-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quick-picks-table .qp-name {
    color: #0F172A;
    font-weight: 800;
    text-decoration: none;
}

.quick-picks-table .qp-name:hover {
    text-decoration: underline;
}

.qp-badge {
    display: inline-block;
    background: #14B8A6;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.qp-rating {
    color: #f59e0b;
    font-weight: 700;
    white-space: nowrap;
}

.qp-price {
    display: inline-block;
    background: #0F172A;
    color: #ffffff;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.qp-cta {
    display: block;
    background: #06B6D4;
    color: #ffffff;
    padding: 10px 0;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.qp-cta:hover {
    background: #0891B2;
    color: #ffffff;
}

.quick-picks-table a.qp-cta {
    color: #ffffff;
}

.quick-picks-table a.qp-cta:hover {
    color: #ffffff;
}

@media (max-width: 1000px) {
    .quick-picks-table-scroll {
        display: block;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .article-content table.quick-picks-table,
    .post-content table.quick-picks-table,
    article table.quick-picks-table {
        display: inline-table;
        overflow-x: visible;
        white-space: normal;
    }

    .quick-picks-table {
        table-layout: auto;
        display: inline-table;
        width: max-content;
        min-width: 100%;
    }

    .quick-picks-table th.qp-col-product,
    .quick-picks-table td.qp-col-product {
        min-width: 220px;
    }

    .quick-picks-table th.qp-col-rating,
    .quick-picks-table td.qp-col-rating {
        min-width: 90px;
    }

    .quick-picks-table th.qp-col-thickness,
    .quick-picks-table td.qp-col-thickness {
        min-width: 80px;
    }

    .quick-picks-table th.qp-col-pack,
    .quick-picks-table td.qp-col-pack {
        min-width: 90px;
    }

    .quick-picks-table th.qp-col-shape,
    .quick-picks-table td.qp-col-shape {
        min-width: 90px;
    }

    .quick-picks-table th.qp-col-price,
    .quick-picks-table td.qp-col-price {
        min-width: 64px;
    }

    .quick-picks-table th.qp-col-cta,
    .quick-picks-table td.qp-col-cta {
        min-width: 120px;
    }

    .quick-picks-table th,
    .quick-picks-table td {
        padding: 10px 8px;
    }

    .quick-picks-table th.qp-col-rating,
    .quick-picks-table td.qp-col-rating,
    .quick-picks-table th.qp-col-thickness,
    .quick-picks-table td.qp-col-thickness,
    .quick-picks-table th.qp-col-pack,
    .quick-picks-table td.qp-col-pack,
    .quick-picks-table th.qp-col-shape,
    .quick-picks-table td.qp-col-shape,
    .quick-picks-table th.qp-col-price,
    .quick-picks-table td.qp-col-price,
    .quick-picks-table th.qp-col-cta,
    .quick-picks-table td.qp-col-cta {
        width: auto;
    }
}

/* ================================
   COMPARISON CARDS - CORE LAYOUT
   IMPORTANT: enable CSS Grid so grid-template rules work
   ================================ */
.comparison-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
    align-items: center;
}

/* Desktop: 3-column layout */
@media (min-width: 1100px) {
    .comparison-card {
        grid-template-columns: 120px 1fr auto;
        gap: 20px;
        text-align: left;
        align-items: center;
    }
}

.comparison-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.comparison-card.featured {
    border: 2px solid var(--primary-teal);
    background: linear-gradient(135deg, #f0fdfa 0%, #fff 100%);
}

/* Mobile-first: centered image */
.comparison-card img,
.comparison-card-image {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
}

@media (min-width: 1100px) {
    .comparison-card img,
    .comparison-card-image {
        width: 120px;
        height: 120px;
        margin: 0;
    }
}

.comparison-card-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comparison-card-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

@media (min-width: 1100px) {
    .comparison-card-header {
        justify-content: flex-start;
    }
}

.comparison-card-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    text-decoration: none;
}

.comparison-card-name:hover {
    color: var(--primary-teal);
}

.comparison-card-badge {
    background: var(--primary-teal);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-card.featured .comparison-card-badge {
    background: #0d9488;
}

.comparison-card-rating {
    color: #f59e0b;
    font-size: 14px;
}

.comparison-card-specs {
    font-size: 14px;
    color: #64748b;
}

.comparison-card-proscons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

@media (min-width: 1100px) {
    .comparison-card-proscons {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px 16px;
    }
}

.comparison-card-pro {
    color: #666666;
}

.comparison-card-con {
    color: #dc2626;
}

/* Mobile-first: full-width button */
.comparison-card-cta {
    display: block;
    width: 100%;
    background: #06B6D4;
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

@media (min-width: 1100px) {
    .comparison-card-cta {
        display: inline-block;
        width: auto;
        white-space: nowrap;
    }
}

.comparison-card-cta:hover {
    background: #0d9488;
    color: white;
}

/* Old mobile styles removed - now using mobile-first approach above */

/* Comparison Card Button */
.comparison-card-btn {
    display: inline-block;
    background: #06B6D4;
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}

.comparison-card-btn:hover {
    background: #0891B2;
    color: white;
    transform: translateY(-2px);
}

/* ================================
   COMPARISON CARDS - MOBILE
   ================================ */
@media (max-width: 768px) {
    .comparison-cards .comparison-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }
    
    .comparison-cards .comparison-card img {
        margin: 0 auto;
        width: 100px;
        height: 100px;
    }
    
    .comparison-cards .comparison-card > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .comparison-cards .comparison-card > div > div {
        justify-content: flex-start;
        text-align: center;
    }
    
    .comparison-cards .comparison-card a[href*='amazon'] {
        width: 100%;
        text-align: center;
        display: block;
    }
}

/* ================================
   COMPARISON CARDS (cc-* classes)
   Mobile-first approach
   ================================ */

/* Card details container */
.cc-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Header with name, badge, rating */
.cc-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

@media (min-width: 1100px) {
    .cc-meta {
        justify-content: flex-start;
    }
}

.cc-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
}

.cc-badge {
    background: #14b8a6;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.comparison-card.featured .cc-badge {
    background: #0d9488;
}

.cc-rating {
    color: #f59e0b;
    font-size: 14px;
}

.cc-specs {
    font-size: 14px;
    color: #64748b;
}

/* Pros/Cons - mobile-first: stacked */
.cc-proscons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

@media (min-width: 1100px) {
    .cc-proscons {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px 16px;
    }
}

.cc-pro {
    color: #666666;
}

.cc-con {
    color: #dc2626;
}

/* Button - mobile-first: full width */
a.cc-btn,
.cc-btn {
    display: block;
    width: 100%;
    background: #06B6D4;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

@media (min-width: 1100px) {
    a.cc-btn,
    .cc-btn {
        display: inline-block;
        width: auto;
        white-space: nowrap;
    }
}

a.cc-btn:hover,
.cc-btn:hover {
    background: #0891B2;
    color: #ffffff;
}

/* Fix inline product card colors */
.inline-product-card,
.inline-product-card:hover {
    color: #1a202c;
}

.inline-product-card .ipc-specs {
    color: #64748b;
}

.inline-product-card .ipc-pro {
    color: #16a34a;
}

.inline-product-card .ipc-con {
    color: #dc2626;
}

/* Keep inline card pros/cons stacked vertically always */
.inline-product-card .ipc-pros-cons {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

@media (max-width: 1099px) {
    .inline-product-card .ipc-pros-cons {
        align-items: center;
    }
}

/* Con text and mitigation styling - clean rules */
.cc-con .con-text,
.ipc-con .con-text {
    display: block;
    font-weight: 500;
    color: #DC2626;
}

.cc-con .con-mitigation,
.ipc-con .con-mitigation {
    display: block;
    font-weight: 400;
    color: #666;
    font-size: 13px;
    margin-top: 4px;
}

/* Pros styling - green */
.cc-pro {
    color: #10B981;
}

/* Inline product card - no bold */
.ipc-pro,
.ipc-con {
    font-weight: 400;
}

/* Con text in inline cards - no bold */
.ipc-con .con-text {
    font-weight: 400;
}

/* Inline product card specs - smaller, more spacing */
.ipc-specs {
    margin-top: 8px;
    font-size: 13px;
    color: #6B7280;
}

/* Spec rows - separate lines */
.ipc-spec-row {
    display: block;
    font-size: 13px;
    color: #6B7280;
    line-height: 1.4;
}
.ipc-spec-label {
    color: #9CA3AF;
}

/* Fix wpautop adding empty p tags to comparison cards */
.comparison-card > p:empty,
.comparison-card > p:has(> a.cc-btn) {
    display: contents;
}
.cc-details > p:empty {
    display: none;
}

/* Force con to new line in comparison cards */
@media (min-width: 1100px) {
    .cc-proscons .cc-con {
        flex-basis: 100%;
        margin-top: 4px;
    }
    
    .cc-proscons .cc-con .con-mitigation {
        text-align: right;
        margin-top: 2px;
    }
}

/* Fix tip alignment - left-aligned like pros/cons */
@media (min-width: 1100px) {
    .cc-proscons .cc-con .con-mitigation {
        text-align: left;
    }
}

/* ==================== ACOUSTIC PANEL CALCULATOR ==================== */

/* Simple Calculator (Article Embed) */
.acoustic-calc-simple {
    max-width: 100%;
    margin: 32px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid #E2E8F0;
}

.calc-simple-header {
    background: linear-gradient(135deg, var(--primary-teal) 0%, #0891B2 100%);
    color: white;
    padding: 20px 24px;
}

.calc-simple-header h3 {
    font-size: 18px;
    margin: 0 0 4px 0;
    color: white;
}

.calc-simple-header p {
    font-size: 13px;
    color: white;
    opacity: 0.9;
    margin: 0;
}

.calc-simple-body {
    padding: 24px;
}

.calc-label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 0;
}

.calc-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.calc-dimension-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.calc-dim-input {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    padding: 6px 10px;
    gap: 4px;
    flex: 0 0 auto;
}

.calc-dim-input .dim-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.calc-dim-input input {
    width: 36px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    background: transparent;
}

.calc-dim-input input:focus {
    outline: none;
}

.dim-x {
    color: var(--text-muted);
    font-weight: 500;
}

.calc-unit-toggle {
    display: flex;
    background: #F1F5F9;
    border-radius: 6px;
    padding: 2px;
}

.calc-unit-toggle .unit-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.calc-unit-toggle .unit-btn.active {
    background: white;
    color: var(--text-main);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.calc-options-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.calc-select-group {
    flex: 1;
}

.calc-select-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.calc-select-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    background: white;
    cursor: pointer;
}

.calc-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, #0891B2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.calc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.calc-result {
    margin-top: 20px;
    padding: 20px;
    background: var(--text-main);
    border-radius: 10px;
    text-align: center;
    color: white;
}

.calc-result .result-number {
    font-size: 48px;
    font-weight: 800;
    color: white;
}

.calc-result .result-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.calc-result .result-details {
    font-size: 13px;
    opacity: 0.8;
    margin: 8px 0 0 0;
}

.calc-simple-footer {
    padding: 16px 24px;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    text-align: center;
}

.calc-full-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-teal);
    text-decoration: none;
}

.calc-full-link:hover {
    text-decoration: underline;
}

/* Full Calculator (Standalone Page) */
.acoustic-calc-full {
    max-width: 1000px;
    margin: 0 auto 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #E2E8F0;
}

.acoustic-calc-full .calc-header {
    background: linear-gradient(135deg, var(--primary-teal) 0%, #0891B2 100%);
    color: white;
    padding: 40px 32px;
    text-align: center;
}

.acoustic-calc-full .calc-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: white;
}

.acoustic-calc-full .calc-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    color: white;
}

.acoustic-calc-full .calc-body {
    display: grid;
    grid-template-columns: 60% 40%;
}

@media (max-width: 768px) {
    .acoustic-calc-full .calc-body {
        grid-template-columns: 1fr;
    }
}

.acoustic-calc-full .calc-inputs {
    padding: 32px;
    border-right: 1px solid #E2E8F0;
}

.acoustic-calc-full .calc-preview {
    padding: 32px;
    background: #F8FAFC;
}

.acoustic-calc-full .calc-group {
    margin-bottom: 24px;
}

.acoustic-calc-full .calc-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Room Type Grid */
.acoustic-calc-full .room-type-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) transparent;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.acoustic-calc-full .room-type-grid:hover {
    mask-image: none;
    -webkit-mask-image: none;
}

.acoustic-calc-full .room-type-grid::-webkit-scrollbar {
    height: 6px;
}

.acoustic-calc-full .room-type-grid::-webkit-scrollbar-track {
    background: transparent;
}

.acoustic-calc-full .room-type-grid::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

.acoustic-calc-full .room-type-btn {
    flex-shrink: 0;
    width: 120px;
    padding: 18px 12px;
    border: 2px solid #E2E8F0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.acoustic-calc-full .room-type-btn:hover {
    border-color: var(--primary-teal);
}

.acoustic-calc-full .room-type-btn.active {
    border-color: var(--primary-teal);
    background: var(--accent-light);
}

.acoustic-calc-full .room-type-btn .icon {
    font-size: 28px;
}

.acoustic-calc-full .room-type-btn .label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
}

/* Unit Toggle */
.acoustic-calc-full .unit-toggle {
    display: flex;
    background: #F1F5F9;
    border-radius: 8px;
    padding: 4px;
    width: fit-content;
}

.acoustic-calc-full .unit-toggle .unit-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.acoustic-calc-full .unit-toggle .unit-btn.active {
    background: white;
    color: var(--text-main);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Dimensions */
.acoustic-calc-full .dimension-row {
    display: flex;
    gap: 12px;
}

.acoustic-calc-full .dimension-input {
    flex: 1;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}

.acoustic-calc-full .dimension-input .dim-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.acoustic-calc-full .dimension-input input {
    width: 50px;
    border: none;
    font-size: 24px;
    font-weight: 700;
    text-align: right;
    background: transparent;
    display: inline-block;
}

.acoustic-calc-full .dimension-input input:focus {
    outline: none;
}

.acoustic-calc-full .dimension-input .unit-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    display: inline-block;
    margin-left: 4px;
    vertical-align: baseline;
}

/* Coverage Options */
.acoustic-calc-full .coverage-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.acoustic-calc-full .coverage-btn {
    padding: 20px 16px;
    border: 2px solid #E2E8F0;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.acoustic-calc-full .coverage-btn:hover {
    border-color: var(--primary-teal);
}

.acoustic-calc-full .coverage-btn.active {
    background: var(--primary-teal);
    border-color: var(--primary-teal);
}

.acoustic-calc-full .coverage-btn .coverage-percent {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.acoustic-calc-full .coverage-btn.active .coverage-percent {
    color: white;
}

.acoustic-calc-full .coverage-btn .coverage-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.acoustic-calc-full .coverage-btn.active .coverage-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Select */
.acoustic-calc-full .calc-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    background: white;
    cursor: pointer;
}

/* 3D Room Preview */
.room-3d-container {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 600px;
    margin-bottom: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid #E2E8F0;
    overflow: visible;
}

.room-3d {
    position: relative;
    width: var(--room-w, 150px);
    height: var(--room-h, 120px);
    transform-style: preserve-3d;
    animation: rotateRoom3D 25s linear infinite;
}

@keyframes rotateRoom3D {
    0% { transform: rotateX(-20deg) rotateY(0deg); }
    100% { transform: rotateX(-20deg) rotateY(360deg); }
}

.room-3d:hover {
    animation-play-state: paused;
}

.wall-3d {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-style: preserve-3d;
    /* Glass Effect - more visible */
    background: rgba(6, 182, 212, 0.08);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(6, 182, 212, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    overflow: visible;
}

.wall-3d .wall-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-main);
    background: white;
    padding: 4px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.wall-3d.back {
    width: var(--room-w, 150px);
    height: var(--room-h, 120px);
    transform: translate(-50%, -50%) translateZ(calc(var(--room-l, 150px) / -2 - 30px));
}

.wall-3d.back .wall-label {
    transform: translateX(-50%) rotateY(180deg) translateZ(10px);
}

.wall-3d.front {
    width: var(--room-w, 150px);
    height: var(--room-h, 120px);
    transform: translate(-50%, -50%) translateZ(calc(var(--room-l, 150px) / 2 + 30px));
    background: rgba(6, 182, 212, 0.04);
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.wall-3d.front .wall-label {
    transform: translateX(-50%) translateZ(10px);
}

.wall-3d.left {
    width: var(--room-l, 150px);
    height: var(--room-h, 120px);
    transform: translate(-50%, -50%) rotateY(-90deg) translateZ(calc(var(--room-w, 150px) / 2 + 30px));
}

.wall-3d.left .wall-label {
    transform: translateX(-50%) rotateY(90deg) translateZ(10px);
}

.wall-3d.right {
    width: var(--room-l, 150px);
    height: var(--room-h, 120px);
    transform: translate(-50%, -50%) rotateY(90deg) translateZ(calc(var(--room-w, 150px) / 2 + 30px));
}

.wall-3d.right .wall-label {
    transform: translateX(-50%) rotateY(-90deg) translateZ(10px);
}

.wall-3d.floor {
    width: var(--room-w, 150px);
    height: var(--room-l, 150px);
    transform: translate(-50%, -50%) rotateX(90deg) translateZ(calc(var(--room-h, 120px) / 2 + 25px));
    background: rgba(6, 182, 212, 0.1);
    border: 2px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
}

.wall-3d.floor .wall-label {
    display: none;
}

/* 3D Panels */
.wall-3d .panel-viz {
    background: linear-gradient(135deg, var(--primary-teal) 0%, #0891B2 100%);
    border: none;
    border-radius: 2px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
    transform: translateZ(3px);
    flex-shrink: 0;
}

.wall-3d.front .panel-viz {
    opacity: 0.7;
}

/* Coverage Breakdown */
.coverage-breakdown {
    margin-bottom: 20px;
}

.coverage-breakdown .calc-label {
    margin-bottom: 12px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    margin-bottom: 10px;
}

.breakdown-item.total {
    background: #F8FAFC;
}

.breakdown-icon {
    width: 44px;
    height: 44px;
    background: #F1F5F9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
}

.breakdown-item.total .breakdown-icon {
    background: rgba(6, 182, 212, 0.15);
}

.breakdown-info {
    flex: 1;
}

.breakdown-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.breakdown-panels {
    font-size: 12px;
    color: var(--primary-teal);
    font-weight: 600;
}

.breakdown-area {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

/* Results Box */
.calc-results-box {
    background: var(--text-main);
    color: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.calc-results-box .result-main {
    margin-bottom: 16px;
}

.calc-results-box .result-number {
    font-size: 48px;
    font-weight: 800;
    color: white;
    display: block;
}

.calc-results-box .result-label {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.calc-results-box .result-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.calc-results-box .result-stat {
    text-align: center;
}

.calc-results-box .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.calc-results-box .stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #94A3B8;
    letter-spacing: 0.5px;
}

/* CTA Section */
.calc-cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    margin-top: 16px;
    text-align: center;
}

.calc-cta-section .cta-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.calc-cta-section .cta-btn {
    padding: 14px 28px;
    width: auto;
    display: inline-block;
    font-size: 14px;
}

/* CTA Button */
.acoustic-calc-full .cta-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, #0891B2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.acoustic-calc-full .cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
    color: white;
}

