/* ==========================================================================
   OmniCalc Core Stylesheet - Ultra-Fast, Responsive, Zero-Layout-Shift
   ========================================================================== */

:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Light Theme (Default) */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-accent: #e2e8f0;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --focus-ring: rgba(37, 99, 235, 0.25);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);

    --radius-sm: 4px;
    --radius-md: 4px;
    --radius-lg: 4px;
    --radius-full: 9999px;

    --container-max: 1200px;
    --header-height: 64px;
}

[data-theme="dark"] {
    --bg-page: #0b0f19;
    --bg-surface: #111827;
    --bg-subtle: #1f2937;
    --bg-accent: #374151;

    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;

    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-light: rgba(59, 130, 246, 0.15);

    --border: #1f2937;
    --border-hover: #374151;
    --focus-ring: rgba(59, 130, 246, 0.35);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    height: var(--header-height);
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: #ffffff;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--bg-subtle);
}

/* ==========================================================================
   Navigation Dropdown & Mega Menu
   ========================================================================== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.15s ease;
}

.nav-dropdown-btn:hover,
.nav-dropdown.is-open .nav-dropdown-btn {
    color: var(--primary);
    background-color: var(--bg-subtle);
}

.dropdown-chevron {
    transition: transform 0.2s ease;
}

/* Mega Menu Container */
.mega-menu-content {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    width: min(920px, calc(100vw - 2rem));
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.25rem 0.75rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    pointer-events: none;
}

/* Desktop Open states (Hover & Click) */
@media (min-width: 821px) {
    .nav-mega-dropdown {
        position: static;
    }

    .nav-dropdown:hover .mega-menu-content,
    .nav-dropdown:focus-within .mega-menu-content,
    .nav-dropdown.is-open .mega-menu-content {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    .nav-dropdown:hover .dropdown-chevron,
    .nav-dropdown.is-open .dropdown-chevron {
        transform: rotate(180deg);
    }

    /* Explicit forced-closed state when user clicks button to close while hovered */
    .nav-dropdown.is-forced-closed .mega-menu-content {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateX(-50%) translateY(8px) !important;
        pointer-events: none !important;
    }

    .nav-dropdown.is-forced-closed .dropdown-chevron {
        transform: none !important;
    }
}

/* Mega Menu 4-Column Grid */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.mega-col {
    display: flex;
    flex-direction: column;
}

.mega-col-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.4rem;
    border-bottom: 2px solid var(--border);
}

.mega-col-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.mega-col-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mega-items {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mega-item {
    display: flex;
    flex-direction: column;
    padding: 0.45rem 0.55rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.12s ease;
}

.mega-item:hover {
    background-color: var(--bg-subtle);
    transform: translateX(3px);
}

.mega-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.15s ease;
}

.mega-item:hover .mega-item-title {
    color: var(--primary);
}

.mega-item-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    line-height: 1.25;
}

/* Mega Menu Footer */
.mega-menu-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mega-footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mega-footer-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.mega-footer-link:hover {
    text-decoration: underline;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.currency-picker select {
    background: var(--bg-subtle);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.icon-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.icon-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.mobile-toggle {
    display: none;
}

/* ==========================================================================
   Hero & Calculator Grid (Homepage)
   ========================================================================== */
.hero-section {
    padding: 3.5rem 0 2rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 2rem;
}

.search-box {
    max-width: 520px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 2.85rem;
    font-size: 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    outline: none;
    transition: all 0.2s ease;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.search-box .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.calc-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.calc-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.calc-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.calc-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.calc-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.calc-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.calc-card-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==========================================================================
   Calculator Single Page Layout
   ========================================================================== */
.calc-page-header {
    padding: 2.5rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

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

.page-title {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 820px;
}

/* Main 2-Column Calculator App Layout */
.calc-app-wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3.5rem;
}

.calc-inputs-card,
.calc-results-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.calc-results-card {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Form Controls */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.label-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.input-with-affix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix,
.input-suffix {
    position: absolute;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
}

.input-prefix {
    left: 0.85rem;
}

.input-suffix {
    right: 0.85rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-primary);
    outline: none;
    transition: all 0.15s ease;
}

.has-prefix {
    padding-left: 2rem;
}

.has-suffix {
    padding-right: 3.75rem;
}

/* Hide redundant number spinners on affixed inputs so labels never overlap */
.input-with-affix input[type="number"]::-webkit-inner-spin-button,
.input-with-affix input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-with-affix input[type="number"] {
    -moz-appearance: textfield;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Range Slider */
.slider-wrap {
    margin-top: 0.4rem;
}

.form-range {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Radio & Toggle Pills */
.pill-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.4rem;
    max-width: 100%;
    background: var(--bg-subtle);
    padding: 0.25rem;
    border-radius: var(--radius-md);
}

.pill-btn {
    text-align: center;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.pill-btn.active {
    background: var(--bg-surface);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Results Display */
.highlight-result-box {
    background: linear-gradient(135deg, var(--primary-light), var(--bg-surface));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.highlight-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.highlight-amount {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-mono);
    line-height: 1.15;
    word-break: break-word;
}

.highlight-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border);
    font-size: 0.9rem;
}

.metric-label {
    color: var(--text-secondary);
}

.metric-val {
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

/* Visual Progress & SVG Chart */
.visual-bar-wrap {
    margin-bottom: 1.5rem;
}

.visual-bar {
    height: 12px;
    border-radius: var(--radius-full);
    overflow: hidden;
    display: flex;
    background: var(--bg-subtle);
    margin-bottom: 0.6rem;
}

.bar-segment {
    height: 100%;
    transition: width 0.3s ease;
}

.bar-legend {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    justify-content: center;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

/* ==========================================================================
   Editorial & SEO Content Section Below Calculator
   ========================================================================== */
.calc-content-wrap {
    max-width: 880px;
    margin: 0 auto 4rem;
}

.home-content-wrap {
    width: 100%;
    margin: 0 auto 4rem;
}

.content-block {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.content-block h2 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.content-block h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}

.content-block p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

.formula-card {
    background: var(--bg-subtle);
    border-left: 4px solid var(--primary);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1.25rem 0;
    font-family: var(--font-mono);
    color: var(--text-primary);
    overflow-x: auto;
}

.example-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.example-box h4 {
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.tips-list {
    list-style: none;
    margin: 1.25rem 0;
}

.tips-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tips-list li::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
}

/* Table styling for Amortization, Projections & Schedules */
.projection-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.table-responsive {
    overflow-x: auto;
    max-height: 480px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    margin: 1rem 0 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: right;
}

.data-table th,
.data-table td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table th {
    background: var(--bg-subtle);
    color: var(--text-primary);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 1px 0 var(--border);
}

.data-table tbody tr:hover td {
    background-color: var(--bg-subtle);
}

.data-table tbody tr:nth-child(even) td {
    background-color: rgba(0, 0, 0, 0.015);
}

[data-theme="dark"] .data-table tbody tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.02);
}

.data-table th:first-child,
.data-table td:first-child {
    text-align: left;
    font-weight: 600;
}

/* FAQ Accordion */
.faq-accordion {
    margin-top: 1.5rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    background: var(--bg-surface);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-icon {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.25rem 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
}

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

/* Ad Slot Containers (Pre-allocated height for Zero CLS) */
.ad-slot {
    margin: 1.5rem auto;
    text-align: center;
    min-height: 90px;
    max-width: var(--container-max);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot-result_banner {
    min-height: 250px;
    margin: 1.5rem 0;
}

/* ==========================================================================
   Editorial Trust Badges & Knowledge Cards
   ========================================================================== */
.editorial-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.author-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

[data-theme="dark"] .verified-pill {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

.editorial-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
}

.heading-icon-badge {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.heading-icon-badge.warning-badge {
    background: #fef3c7;
    color: #d97706;
}

[data-theme="dark"] .heading-icon-badge.warning-badge {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
}

.heading-icon-badge.success-badge {
    background: #d1fae5;
    color: #059669;
}

[data-theme="dark"] .heading-icon-badge.success-badge {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
}

.trust-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .trust-badge-wrap {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

.trust-badge-icon {
    width: 16px;
    height: 16px;
}

.card-callout {
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    border-left: 4px solid;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-callout-warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

[data-theme="dark"] .card-callout-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fde68a;
    border-color: #f59e0b;
}

.card-callout-info {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1e40af;
}

[data-theme="dark"] .card-callout-info {
    background: rgba(37, 99, 235, 0.1);
    color: #bfdbfe;
    border-color: #3b82f6;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.25rem 0;
    list-style: none;
    counter-reset: step-counter;
}

.steps-list-item {
    position: relative;
    padding-left: 3rem;
    counter-increment: step-counter;
}

.steps-list-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.use-case-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.use-case-card h4 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.use-case-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

.pro-tips-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(16, 185, 129, 0.05));
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.pro-tips-list {
    list-style: none;
    margin-top: 0.75rem;
}

.pro-tips-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.pro-tips-list li::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
}

/* Homepage Category Filter Bar */
.calc-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 2.5rem;
}

.filter-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1.15rem;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.filter-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.filter-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.filter-pill .pill-count {
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.08);
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full);
}

[data-theme="dark"] .filter-pill .pill-count {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
}

.filter-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 3.5rem 0 2rem;
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    max-width: 280px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 540px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.code-box textarea {
    width: 100%;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    resize: none;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.copy-feedback {
    color: var(--accent-emerald);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) and (min-width: 821px) {
    .mega-menu-content {
        width: min(740px, calc(100vw - 2rem));
        left: 50%;
    }

    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

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

    .calc-results-card {
        position: static;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .nav-menu {
        display: none;
    }

    .nav-menu.is-active {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: var(--bg-surface);
        padding: 0.75rem 1.25rem 2.5rem;
        box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
        border-bottom: 2px solid var(--border);
        z-index: 999;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .btn-group {
        grid-template-columns: 1fr;
    }

    /* Mobile Mega Menu Container */
    .nav-dropdown.nav-mega-dropdown {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .nav-dropdown-btn.nav-mega-btn {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.85rem 0.5rem;
        font-size: 1rem;
        font-weight: 600;
        border-bottom: 1px solid var(--border);
        border-radius: var(--radius-sm);
    }

    /* Direct Navigation Links in Mobile Menu */
    .nav-menu .nav-link {
        display: block;
        padding: 0.85rem 0.5rem;
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-primary);
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    .nav-menu .nav-link:hover {
        background-color: var(--bg-subtle);
        color: var(--primary);
    }

    /* Mobile Mega Menu Content: Collapsed by Default */
    .mega-menu-content {
        display: none !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        overflow-y: visible !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0.75rem 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: none !important;
        pointer-events: none !important;
        background: transparent !important;
    }

    /* Mobile Mega Menu Content: Expanded when toggled (.is-open) */
    .nav-dropdown.is-open .mega-menu-content {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .nav-dropdown.is-open .dropdown-chevron {
        transform: rotate(180deg);
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .mega-col {
        background: var(--bg-subtle);
        border: 1px solid var(--border);
        padding: 0.75rem;
        border-radius: var(--radius-sm);
    }
}

@media (max-width: 600px) {

    .content-block,
    .calc-inputs-card,
    .calc-results-card {
        padding: 1.25rem;
    }

    .editorial-author-bar {
        padding: 0.9rem 1rem;
    }

    .calc-page-header {
        padding: 1.75rem 0 1.25rem;
    }

    .hero-section {
        padding: 2.25rem 0 1.5rem;
    }
}

@media (max-width: 420px) {
    .container {
        padding-left: 0.95rem;
        padding-right: 0.95rem;
    }

    .brand-logo {
        font-size: 1.05rem;
        gap: 0.45rem;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }

    .header-actions {
        gap: 0.35rem;
    }

    .currency-picker select {
        padding: 0.3rem 0.35rem;
        font-size: 0.78rem;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
    }
}

/* ==========================================================================
   Interactive Tool Enhancements: Visual Charts, Action Bar & Scenarios
   ========================================================================== */

/* Action Bar (Share, Export CSV, Print, Compare) */
.calc-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.825rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.btn-action:hover {
    background: var(--bg-subtle);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-action svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
}

.btn-action-primary {
    background: var(--primary-light);
    border-color: rgba(37, 99, 235, 0.25);
    color: var(--primary);
}

.btn-action-primary:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Toast Notification (Zero external library) */
.calc-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calc-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Visual Canvas Chart Containers (CLS-safe) */
.calc-chart-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-height: 220px;
}

.calc-chart-box h4 {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    width: 100%;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: space-between;
    align-items: center;
}

.calc-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-canvas-growth {
    max-width: 100% !important;
    aspect-ratio: 16 / 9;
}

.calc-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Chart Legends */
.chart-legend {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.chart-legend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.chart-legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.4rem;
    flex-shrink: 0;
}

.chart-legend-label {
    display: flex;
    align-items: center;
    color: var(--text-primary);
    font-weight: 500;
}

.chart-legend-val {
    font-weight: 700;
    color: var(--text-primary);
}

/* Side-by-Side Scenario Comparison Mode */
.comparison-toggle-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.comparison-toggle-bar strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

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

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

.comparison-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.comparison-card.is-winner {
    border-color: #10b981;
    box-shadow: 0 0 0 1px #10b981, var(--shadow-sm);
}

.scenario-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.badge-a {
    background: #dbeafe;
    color: #1e40af;
}

.badge-b {
    background: #fef3c7;
    color: #92400e;
}

.comparison-winner-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
    border: 1px solid #10b981;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #065f46;
}

[data-theme="dark"] .comparison-winner-banner {
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
}

.comparison-winner-banner svg {
    flex-shrink: 0;
    color: #10b981;
}

.comparison-winner-text strong {
    font-size: 1rem;
    display: block;
    margin-bottom: 0.2rem;
}

.comparison-winner-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ==========================================================================
   Homepage Telemetry, Suite Methodology & Facts Grids
   ========================================================================== */
.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.telemetry-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.telemetry-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.telemetry-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.telemetry-value {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    line-height: 1.2;
}

.telemetry-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.2rem 0 0.5rem;
}

.telemetry-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.suite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.suite-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.suite-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.suite-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    color: var(--text-primary);
}

.suite-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.1rem;
}

.suite-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.suite-chip {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.15s ease;
}

.suite-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.fact-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent-emerald);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
}

.fact-category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #059669;
    margin-bottom: 0.35rem;
}

[data-theme="dark"] .fact-category {
    color: #6ee7b7;
}

.fact-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.fact-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* Empty Search State (Homepage) */
.calc-empty-state {
    background: var(--bg-surface);
    border: 1px dashed var(--border-hover);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
    margin: 0 auto 3.5rem;
    max-width: 600px;
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.calc-empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.calc-empty-state p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 auto 1.5rem;
    max-width: 440px;
    line-height: 1.55;
}

.empty-state-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Print Stylesheet for Schedules & Receipts */
@media print {

    .site-header,
    .site-footer,
    .ad-slot,
    .btn-group,
    .faq-accordion,
    .currency-picker,
    #themeToggle,
    .calc-actions-bar,
    .comparison-toggle-bar,
    .breadcrumb,
    .calc-filter-wrap,
    .calc-filter-bar {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .calc-app-wrap {
        display: block !important;
    }

    .calc-results-card,
    .calc-inputs-card,
    .calc-chart-box {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        padding: 1rem !important;
        page-break-inside: avoid;
        margin-bottom: 1rem !important;
    }

    .calc-table-wrap {
        max-height: none !important;
        overflow: visible !important;
        page-break-inside: auto;
    }

    .calc-table th,
    .calc-table td {
        padding: 0.4rem !important;
        font-size: 9pt !important;
        border: 1px solid #eee !important;
    }

    .calc-content-wrap {
        page-break-before: always;
    }
}