:root {
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    
    /* Pénzügyi Prémium Smaragdzöld */
    --accent-primary: #10B981; 
    --accent-hover: #059669;
    --accent-bg: #ECFDF5;
    
    --border-color: #E2E8F0;
    --border-hover: #CBD5E1;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    --font-base: 'Inter', system-ui, sans-serif;
    --font-display: 'Space Grotesk', var(--font-base);
    
    --border-radius-card: 24px;
    --border-radius-btn: 12px;
    --transition-smooth: 0.2s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font-base); background-color: var(--bg-page); color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.mt-40 { margin-top: 40px; }
h1, h2, h3, .result-value { font-family: var(--font-display); color: var(--text-primary); }
a { color: var(--accent-primary); text-decoration: none; transition: var(--transition-smooth); }
a:hover { color: var(--accent-hover); }

/* Trust Badge & Hero */
.hero { padding: 60px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 16px; letter-spacing: -0.03em; }
.hero .subtitle { font-size: 1.15rem; color: var(--text-secondary); max-width: 650px; margin: 0 auto 28px; }
.trust-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-color); padding: 8px 20px; border-radius: 100px; background: #ffffff; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.trust-badge span { color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; }
.trust-badge .material-symbols-rounded { font-size: 18px; color: var(--accent-primary); }

/* Header & Menu */
.glass-header { position: sticky; top: 0; width: 100%; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.2rem; font-family: var(--font-display); }
.desktop-nav { display: flex; gap: 32px; }
.desktop-nav a { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; }
.desktop-nav a:hover { color: var(--text-primary); }

#hamburger-btn { display: none; background: none; border: none; cursor: pointer; color: var(--text-primary); }
.mobile-menu { position: fixed; top: 72px; left: 0; width: 100%; background: #ffffff; border-bottom: 1px solid var(--border-color); display: flex; flex-direction: column; padding: 24px; transform: translateY(-150%); opacity: 0; transition: var(--transition-smooth); z-index: 99; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.mobile-menu.active { transform: translateY(0); opacity: 1; }
.mobile-link { color: var(--text-primary); font-size: 1.1rem; font-family: var(--font-display); font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--border-color); }

/* Bento Box */
.bento-box { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius-card); padding: 32px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: var(--transition-smooth); }
.bento-box:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); border-color: var(--border-hover); }
.calculator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; align-items: start; }
.panel-header { margin-bottom: 24px; border-bottom: 1px solid var(--border-color); padding-bottom: 16px; }
.panel-header h2 { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }

/* Presets */
.presets-row { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.presets-label { font-weight: 600; color: var(--text-secondary); font-size: 0.9rem; }
.preset-btn { background: var(--bg-page); color: var(--text-secondary); border: 1px solid var(--border-color); padding: 6px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: var(--transition-smooth); font-family: var(--font-base); }
.preset-btn:hover, .preset-btn.active { background: var(--accent-primary); border-color: var(--accent-primary); color: #FFF; }

/* Inputs */
.input-group { margin-bottom: 24px; }
.input-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-primary); }
.input-with-icon { position: relative; display: flex; align-items: center; }
.icon-left { position: absolute; left: 14px; color: var(--text-muted); font-size: 20px; pointer-events: none; }
.num-input { width: 100%; padding: 12px 16px 12px 42px; border: 1px solid var(--border-color); border-radius: var(--border-radius-btn); font-size: 1.05rem; font-family: var(--font-base); font-weight: 600; outline: none; transition: var(--transition-smooth); color: var(--text-primary); }
.num-input:focus, .num-inline:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); }

.slider-group .label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.num-inline { width: 100px; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 8px; text-align: right; font-weight: 600; font-family: var(--font-base); font-size: 1rem; outline: none; }
.styled-slider { -webkit-appearance: none; width: 100%; height: 6px; background: #E2E8F0; border-radius: 3px; outline: none; margin-top: 8px; }
.styled-slider::-webkit-slider-thumb { -webkit-appearance: none; height: 20px; width: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--accent-primary); cursor: pointer; transition: transform 0.1s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.styled-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

/* Progress Bar */
.progress-container { margin-bottom: 24px; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.progress-track { width: 100%; height: 8px; background: var(--border-color); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent-primary); width: 0%; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); }

/* Outputs */
.outputs-section { background: #F8FAFC; position: sticky; top: 100px; }
.result-card { background: #FFFFFF; border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; margin-bottom: 16px; transition: var(--transition-smooth); }
.primary-result { text-align: center; border-color: var(--accent-primary); background: var(--accent-bg); box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.1); }
.primary-result .result-value { font-size: 3rem; color: var(--accent-primary); line-height: 1.1; margin-top: 4px; }
.results-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.secondary-result .result-value { font-size: 1.5rem; margin-top: 4px; }
.result-label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* Coast FIRE Zöldes Highlight (Sárga helyett) */
.highlight-coast { background: #F0FDF4; border-color: #86EFAC; }
.tiny-text { font-size: 0.8rem; color: var(--text-secondary); margin-top: 6px; line-height: 1.4; }

/* Buttons */
.action-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.action-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 24px; border: none; outline: none; border-radius: var(--border-radius-btn); font-family: var(--font-base); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: var(--transition-smooth); text-decoration: none; }
.primary-btn { background: var(--accent-primary); color: #ffffff; box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2); }
.primary-btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3); }
.outline-btn { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); }
.outline-btn:hover { background: var(--bg-card); border-color: var(--text-primary); }

/* Semantic Content (pSEO) */
.semantic-content h2, .faq-section h2 { font-size: 1.6rem; font-family: var(--font-display); letter-spacing: -0.02em; margin-bottom: 16px; color: var(--text-primary); }
.article-body p { margin-bottom: 16px; color: var(--text-secondary); }

/* FAQ */
.faq-accordion { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #ffffff; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; transition: var(--transition-smooth); }
.faq-item:hover { border-color: var(--border-hover); }
.faq-item summary { padding: 20px; font-weight: 600; cursor: pointer; list-style: none; position: relative; font-size: 1.05rem; color: var(--text-primary); font-family: var(--font-display); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--text-muted); transition: var(--transition-smooth); }
.faq-item[open] summary::after { content: '−'; color: var(--accent-primary); }
.faq-content { padding: 0 20px 20px; color: var(--text-secondary); font-size: 0.95rem; }

/* Ads */
.ad-slot { margin: 40px auto; display: flex; justify-content: center; }
.ad-placeholder { width: 100%; max-width: 728px; height: 90px; background: #F1F5F9; border: 1px dashed #CBD5E1; color: var(--text-muted); display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-family: monospace; }

/* Footer & Cookie */
.site-footer { border-top: 1px solid var(--border-color); padding: 48px 0; margin-top: 80px; background: #ffffff; }
.btn-back { color: var(--text-secondary); text-decoration: none; font-weight: 600; padding: 10px 24px; border: 1px solid var(--border-color); border-radius: 100px; transition: var(--transition-smooth); background: #F8FAFC; }
.btn-back:hover { background: var(--text-primary); color: #fff; border-color: var(--text-primary); }
.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #0F172A; padding: 16px 24px; display: flex; justify-content: center; gap: 20px; align-items: center; z-index: 9999; transform: translateY(100%); transition: transform 0.3s ease-out; }
.cookie-bar.show { transform: translateY(0); }

/* Print Styles - Perfect PDF Rendering */
.print-header { display: none; }
@media print {
    .no-print, .ad-slot, .site-footer, .cookie-bar, .glass-header { display: none !important; }
    body { background: white; color: black; padding: 0; font-size: 12pt; }
    .container { padding: 0; max-width: 100%; }
    .bento-box { box-shadow: none; border: none; margin: 0; padding: 0; }
    
    /* Force layout to stack vertically for clean PDF */
    .calculator-grid { display: block; }
    .inputs-section { display: none; } /* Hide inputs on PDF, only show results */
    .outputs-section { width: 100%; page-break-inside: avoid; display: block; }
    
    /* Report Styling */
    .printable-report { padding: 40px; border: 2px solid #E2E8F0; border-radius: 12px; }
    .print-header { display: block; margin-bottom: 30px; }
    .results-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .result-card { border: 1px solid #CCC; break-inside: avoid; page-break-inside: avoid; }
    .progress-container { display: none; } /* Browsers strip background colors, hiding is cleaner */
}

/* Responsive */
@media (max-width: 850px) {
    .calculator-grid { grid-template-columns: 1fr; gap: 24px; }
    .outputs-section { position: static; }
}
@media (max-width: 600px) {
    .desktop-nav { display: none; }
    #hamburger-btn { display: block; }
    .results-row, .action-buttons { grid-template-columns: 1fr; }
    .cookie-bar { flex-direction: column; text-align: center; gap: 12px; }
}