/* True Mortgages Calculator - Dark Mode Professional Theme */
/* Colors: Navy/Dark Blue base, Tasteful Red/White/Blue accents */

:root {
    /* Base Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-card-hover: #273548;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Accent Colors - Tasteful Patriotic */
    --accent-blue: #3b82f6;
    --accent-blue-light: #60a5fa;
    --accent-blue-dark: #2563eb;
    --accent-red: #ef4444;
    --accent-red-light: #f87171;
    --accent-red-dark: #dc2626;
    --accent-white: #f8fafc;

    /* Semantic Colors */
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --warning: #f59e0b;
    --error: #ef4444;

    /* Borders & Shadows */
    --border-color: #334155;
    --border-light: #475569;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);

    /* Spacing */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.calculator-app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.calc-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.logo-icon {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Tabs */
.calc-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

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

.tab-btn.active {
    background: var(--accent-blue);
    color: white;
}

.tab-btn svg {
    flex-shrink: 0;
}

/* Sections */
.calc-section {
    display: none;
}

.calc-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Grid Layout */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

/* Input Panel */
.input-panel {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.input-panel h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.input-panel h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

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

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

.input-wrapper .prefix,
.input-wrapper .suffix {
    position: absolute;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.input-wrapper .prefix {
    left: 1rem;
}

.input-wrapper .suffix {
    right: 1rem;
}

.input-wrapper.currency input {
    padding-left: 2rem;
}

.input-wrapper.percent input {
    padding-right: 2.5rem;
}

input[type="text"],
input[type="number"],
input[type="month"] {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

input[type="range"] {
    width: 100%;
    height: 6px;
    margin-top: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 3px;
    -webkit-appearance: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-blue);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--accent-blue-light);
}

/* Term Buttons */
.term-buttons {
    display: flex;
    gap: 0.5rem;
}

.term-buttons.small {
    gap: 0.25rem;
}

.term-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.term-btn:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.term-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.term-buttons.small .term-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

.hidden {
    display: none !important;
}

.divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.calculate-btn.large {
    max-width: 400px;
    margin: 2rem auto;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* Results Panel */
.results-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-card {
    background: var(--bg-card);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.result-card.highlight {
    background: linear-gradient(135deg, var(--accent-blue-dark) 0%, var(--accent-blue) 100%);
    border: none;
}

.result-card.savings-highlight {
    background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
    border: none;
}

.result-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.result-card.highlight .result-label,
.result-card.savings-highlight .result-label {
    color: rgba(255, 255, 255, 0.8);
}

.result-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.result-card.highlight .result-value,
.result-card.savings-highlight .result-value {
    color: white;
}

.result-value.savings {
    color: var(--success);
}

.result-note {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.result-card.highlight .result-note {
    color: rgba(255, 255, 255, 0.7);
}

.result-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Donut Chart */
.chart-container {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.chart-container h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.donut-chart {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1rem;
}

.donut-chart svg {
    transform: rotate(-90deg);
}

.chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.chart-center span:first-child {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.chart-center span:last-child {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.legend-item .dot.principal {
    background: var(--accent-blue);
}

.legend-item .dot.interest {
    background: var(--accent-red);
}

.legend-item .dot.balance {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}

/* Glass Morphism Effects */
.glass {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-inset {
    background: rgba(15, 23, 42, 0.6);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Premium Donut Chart */
.donut-chart.premium {
    position: relative;
}

.donut-chart.premium svg {
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.donut-chart.premium .chart-center span:first-child {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated arcs */
#principal-arc, #interest-arc {
    transition: stroke-dasharray 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Area Chart Container */
.area-chart-container {
    margin-top: 1rem;
}

.area-chart {
    position: relative;
    width: 100%;
    padding: 0.5rem 0;
}

.area-chart canvas {
    width: 100%;
    height: auto;
    display: block;
}

.chart-legend.horizontal {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Schedule Table */
.schedule-section {
    margin-top: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.schedule-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.schedule-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.view-btn:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.view-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.export-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-blue);
    background: transparent;
    color: var(--accent-blue);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.export-btn:hover {
    background: var(--accent-blue);
    color: white;
}

.schedule-table-wrapper {
    max-height: 400px;
    overflow-y: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    padding: 0.875rem 1rem;
    text-align: right;
    font-size: 0.875rem;
}

.schedule-table th:first-child,
.schedule-table td:first-child {
    text-align: left;
}

.schedule-table th {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.schedule-table td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.schedule-table tbody tr:hover {
    background: var(--bg-tertiary);
}

/* Comparison Grid (Extra Payments) */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.comparison-column {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.comparison-column.highlight {
    border-color: var(--success);
    background: var(--success-bg);
}

.comparison-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.comparison-stat:last-child {
    border-bottom: none;
}

.comparison-column.highlight .comparison-stat {
    border-color: rgba(34, 197, 94, 0.2);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-value.highlight {
    color: var(--success);
}

/* Timeline Chart */
.timeline-chart {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.timeline-chart h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-bar {
    display: grid;
    grid-template-columns: 80px 1fr 60px;
    align-items: center;
    gap: 1rem;
}

.bar-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bar-track {
    height: 24px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 0.5s ease;
}

.bar-fill.original {
    background: var(--text-muted);
}

.bar-fill.accelerated {
    background: linear-gradient(90deg, var(--success) 0%, #4ade80 100%);
}

.bar-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.bar-value.highlight {
    color: var(--success);
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

/* Premium Timeline Bars */
.timeline-bars.premium {
    gap: 1.25rem;
}

.timeline-bars.premium .bar-track {
    height: 32px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.timeline-bars.premium .bar-fill {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.timeline-bars.premium .bar-fill.animated {
    animation: slideIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideIn {
    from {
        width: 0 !important;
    }
}

.timeline-bars.premium .bar-fill.original {
    background: linear-gradient(90deg, #475569 0%, #64748b 100%);
}

.timeline-bars.premium .bar-fill.accelerated {
    background: linear-gradient(90deg, #059669 0%, #10b981 50%, #34d399 100%);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* Pulse animation on bar end */
.bar-pulse {
    position: absolute;
    right: 4px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.bar-pulse.success {
    background: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Timeline savings badge */
.timeline-savings-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    color: #34d399;
    font-weight: 600;
    font-size: 0.95rem;
}

.timeline-savings-badge svg {
    animation: trendUp 2s ease-in-out infinite;
}

@keyframes trendUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Balance Payoff Curve */
.balance-curve-container {
    margin-top: 1rem;
}

.balance-curve-chart {
    position: relative;
    width: 100%;
    padding: 0.5rem 0;
}

.balance-curve-chart canvas {
    width: 100%;
    height: auto;
    display: block;
}

.curve-labels {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.5rem 0;
}

.curve-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.curve-label.start {
    color: var(--accent-blue-light);
}

.curve-label.end {
    color: var(--success);
}

/* Canvas Chart Styling */
canvas {
    border-radius: var(--radius-sm);
}

#amortization-canvas {
    min-height: 200px;
}

#balance-curve-canvas {
    min-height: 180px;
}

/* Chart container refinements */
.chart-container.glass h3 {
    background: linear-gradient(90deg, var(--text-secondary) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Side-by-Side Comparison */
.comparison-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-intro h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.comparison-intro p {
    color: var(--text-secondary);
}

.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.compare-panel {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.compare-panel.new {
    border-color: var(--accent-blue);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.panel-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 999px;
}

.compare-panel.new .panel-badge {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue-light);
}

.calculated-stats {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.calculated-stats .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.calculated-stats .stat-value.highlight {
    color: var(--accent-blue-light);
    font-size: 1.25rem;
}

/* Comparison Results */
.comparison-results {
    margin-top: 2rem;
}

.result-banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue-dark) 0%, var(--accent-blue) 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.banner-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: white;
}

.banner-content {
    flex: 1;
}

.banner-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.banner-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.results-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.recommendation-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--success-bg);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
}

.recommendation-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
}

.rec-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    border-radius: 50%;
    color: white;
}

.recommendation-box.warning .rec-icon {
    background: var(--warning);
}

.rec-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--success);
}

.recommendation-box.warning .rec-content h4 {
    color: var(--warning);
}

.rec-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.rec-content strong {
    color: var(--text-primary);
}

/* Footer */
.calc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .calc-footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

.footer-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.footer-content a {
    color: var(--accent-blue);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--accent-red);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.cta-btn:hover {
    background: var(--accent-red-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
    .calculator-app {
        padding: 1rem;
    }

    .calc-tabs {
        flex-direction: column;
    }

    .tab-btn {
        justify-content: flex-start;
    }

    .input-panel,
    .compare-panel {
        padding: 1.25rem;
    }

    .result-value {
        font-size: 1.5rem;
    }

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

    .banner-value {
        font-size: 2rem;
    }
}
