:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #06b6d4;
    --accent-color: #f43f5e;
    --text-main: #1e293b;
    --text-light: #64748b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --gradient-main: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-main);
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    overflow: hidden;
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.gradient-text {
    background: var(--gradient-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.search-box {
    position: relative;
    max-width: 400px;
    display: flex;
    box-shadow: var(--shadow-lg);
    border-radius: 50px;
    background: white;
    padding: 0.5rem;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    outline: none;
    border-radius: 50px;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: scale(1.05);
    background: var(--primary-dark);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
    background: radial-gradient(circle at center, rgba(79, 70, 229, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
}

.floating-card .icon {
    font-size: 2rem;
    background: #f0f9ff;
    padding: 0.5rem;
    border-radius: 12px;
}

.floating-card .text {
    font-weight: 600;
    font-size: 1.1rem;
}

.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 40%;
    left: 10%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 10%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Categories */
.categories {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.cat-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.math-bg {
    background: #e0e7ff;
    color: #4f46e5;
}

.finance-bg {
    background: #dcfce7;
    color: #16a34a;
}

.health-bg {
    background: #fee2e2;
    color: #ef4444;
}

.tech-bg {
    background: #e0f2fe;
    color: #0284c7;
}

.other-bg {
    background: #f3f4f6;
    color: #4b5563;
}

.category-card h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Popular Tools */
.popular-tools {
    padding: 4rem 0;
    background: #f1f5f9;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.tool-icon {
    font-size: 2rem;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
}

.tool-info h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tool-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-link:hover {
    gap: 0.5rem;
}

/* Footer */
.copyright-footer {
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    border-top: 1px solid #e2e8f0;
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e2e8f0;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    font-size: 2rem;
}

.footer-logo .logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
}

.footer-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.footer-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.link-group h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.link-group ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-group ul li {
    margin-bottom: 0;
}

.link-group a {
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.link-group a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.link-group a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.link-group a:hover::before {
    opacity: 1;
}

.footer-bottom {
    padding: 2rem 0;
    background: white;
}

.copyright-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Ad Container */
.ad-container {
    margin: 2rem auto;
    text-align: center;
    min-height: 100px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Calculator Styles */
.calculator-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 2rem auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calculator-card h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    text-align: center;
}

.calculator-card>p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: white;
}

.btn-calculate {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-calculate:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f0f9ff;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    animation: slideDown 0.3s ease-out;
}

.result h3 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.result p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.result span {
    font-weight: 700;
    color: var(--primary-color);
}

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-lg);
        display: none;
        padding: 1rem 0;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }

    .search-box {
        margin: 0 auto;
    }

    .hero-visual {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-links-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .link-group {
        text-align: center;
    }

    .link-group a::before {
        display: none;
    }

    .link-group a:hover {
        transform: none;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .calculator-card {
        padding: 1.5rem;
        margin: 1rem;
    }

    .calculator-card h1 {
        font-size: 1.75rem;
    }
}

/* Premium Calculator Layout (from BMI) */
.calc-wrapper {
    padding: 4rem 0;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.calc-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: #4f46e5;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    border-radius: 2px;
    display: block;
}

.calculate-btn {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: #64748b;
    font-weight: 500;
}

.result-value {
    font-weight: 700;
    color: #0f172a;
}

.result-value.highlight {
    color: #4f46e5;
    font-size: 1.5rem;
}

.content-section {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    margin-top: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-section h2,
.content-section h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.content-section h2 {
    margin-top: 0;
}

.content-section h3 {
    margin-top: 2rem;
}

.content-section p,
.content-section li {
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-section ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

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

/* =========================================
   Compatibility Styles for Batch Calculators
   (Fixes typography and layout consistency)
   ========================================= */

.calc-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0 1rem;
}

.calc-header h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.2;
}

.calc-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.calc-container {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto 3rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-section {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.info-section h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
    line-height: 1.3;
}

.tip-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease;
}

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

.warning-card {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.warning-card h3 {
    color: #be123c;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.embed-section {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: #f0f9ff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.embed-code-container {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.embed-code-container code {
    flex: 1;
    background: white;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    font-family: monospace;
    font-size: 0.9rem;
    color: #475569;
    overflow-x: auto;
    white-space: nowrap;
}

.reviewer-badge {
    max-width: 800px;
    margin: 3rem auto;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
}

.reviewer-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.reviewer-content img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.reviewer-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.reviewer-title {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.reviewer-credentials {
    font-size: 0.85rem;
    color: var(--text-light);
}

.reviewer-note {
    font-style: italic;
    color: var(--text-main);
    background: #f8fafc;
    padding: 1rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--secondary-color);
}

/* =========================================
   Compatibility Styles for Batch Y
   (Car vs Uber, Childcare Cost, etc.)
   ========================================= */

.calculator-container {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto 3rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-box {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.info-box.expert-tip {
    background: #f8fafc;
    border-left: 4px solid var(--secondary-color);
}

.info-box.common-mistake {
    background: #fff1f2;
    border-left: 4px solid var(--accent-color);
}

.calculator-wrapper h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: transform 0.2s;
}

.back-link:hover {
    transform: translateX(-5px);
}

/* =========================================
   Compatibility Styles for Batch Z
   (Website Carbon, etc.)
   ========================================= */

.calc-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.calc-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.calc-input-section {
    margin-bottom: 2rem;
}

.calc-result-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f0f9ff;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    animation: slideDown 0.3s ease-out;
}

/* Ensure images in info sections are responsive */
.info-section img,
.info-box img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* Fix spacing in lists within info sections */
.info-section ul,
.info-section ol,
.info-box ul,
.info-box ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-section li,
.info-box li {
    margin-bottom: 0.5rem;
}

/* =========================================
   🚨 EMERGENCY FIXES for Website Carbon & Batch Z 
   (Fixing layout, buttons, reviewer badge, code areas)
   ========================================= */

/* 1. Embed Section & Code Block Fixes */
.embed-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 3rem auto;
    max-width: 800px;
    box-shadow: none;
    /* Reset potential conflict */
}

.embed-code-container {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
}

.embed-code-container code,
#embed-code {
    flex: 1;
    display: block;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #334155;
    overflow-x: auto;
    white-space: nowrap;
    text-align: left;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 2. Missing Button Styling (.copy-embed-btn) */
.copy-embed-btn {
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    height: auto;
}

.copy-embed-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 3. Reviewer Badge Visual Overhaul */
.reviewer-badge {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 3rem auto;
    max-width: 800px;
}

.reviewer-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.reviewer-content img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #f0f9ff;
    box-shadow: var(--shadow-sm);
}

.reviewer-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.reviewer-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.reviewer-credentials {
    font-size: 0.9rem;
    color: var(--text-light);
}

.reviewer-note {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    font-style: italic;
    color: #475569;
    border-left: 4px solid var(--secondary-color);
    line-height: 1.7;
    margin-top: 1rem;
}

/* 4. Improve 'How to Use' Lists in Info Section */
.info-section ol,
.info-section ul {
    background: #ffffff;
    padding: 2.5rem 2.5rem 2.5rem 4rem;
    /* More indent for numbers */
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    margin-top: 1.5rem;
}

.info-section li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    color: var(--text-main);
}

.info-section li strong {
    color: var(--primary-dark);
    display: inline-block;
    margin-bottom: 0.25rem;
}

/* =========================================
   🧩 LEGACY SUPPORT & MODALS
   (Fixing 'Pet Insurance' & generic modals)
   ========================================= */

/* 1. Modal Styles (Missing globally) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 2.5rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
    animation: slideUp 0.3s;
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
    text-decoration: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

/* 2. Legacy 'copy-btn' Compatibility */
.copy-btn {
    /* Copying .copy-embed-btn styles manually since we don't have SASS */
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    height: auto;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 3. Legacy 'reviewer-info' Compatibility */
/* Some older pages use .reviewer-info instead of .reviewer-content */
.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
}

.reviewer-info strong {
    font-size: 1.2rem;
    color: var(--text-main);
}

.reviewer-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}