:root {
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --border-color: #E2E8F0;
    
    /* Prémium Indigo/Kék Gradiens a sötétfekete helyett */
    --accent-primary: #4F46E5;
    --accent-hover: #4338CA;
    --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #3B82F6 100%);
    
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --elite: #8B5CF6;

    --radius-bento: 24px;
    --radius-sm: 8px;
    --shadow-soft: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-page); color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; color: var(--text-primary); }

/* Header & Nav */
.glass-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color); }
.header-container { max-width: 1140px; margin: 0 auto; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 1.25rem; color: var(--text-primary); font-family: 'Space Grotesk', sans-serif; }
.desktop-nav a { text-decoration: none; color: var(--text-secondary); font-weight: 500; margin-left: 32px; transition: 0.2s; }
.desktop-nav a:hover { color: var(--accent-primary); }
.hamburger-btn { display: none; background: none; border: none; cursor: pointer; color: var(--text-primary); }
.mobile-menu { display: none; background: var(--bg-card); border-bottom: 1px solid var(--border-color); padding: 16px 24px; flex-direction: column; gap: 16px; position: fixed; top: 65px; left: 0; width: 100%; z-index: 999; box-shadow: var(--shadow-soft); }
.mobile-menu.active { display: flex; }
.mobile-menu a { text-decoration: none; color: var(--text-primary); font-weight: 600; font-family: 'Space Grotesk', sans-serif; padding: 8px 0; border-bottom: 1px solid var(--border-color); }

/* Hero */
main { max-width: 1140px; margin: 40px auto; padding: 0 24px; }
.hero { text-align: center; margin-bottom: 48px; padding-top: 20px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 16px; letter-spacing: -0.02em; }
.hero .subtitle { color: var(--text-secondary); font-size: 1.15rem; max-width: 700px; margin: 0 auto 24px; }
.trust-bar { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; border: 1px solid var(--border-color); display: inline-flex; padding: 10px 24px; border-radius: 100px; background: #fff; }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.trust-item .material-symbols-rounded { font-size: 18px; color: var(--accent-primary); }

/* Calculator Grid */
.calculator-section { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.bento-box { background: var(--bg-card); border-radius: var(--radius-bento); border: 1px solid var(--border-color); box-shadow: var(--shadow-soft); padding: 32px; }

/* Presets */
.presets h3 { margin-bottom: 16px; font-size: 1rem; color: var(--text-primary); }
.preset-buttons { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.preset-btn { padding: 8px 16px; border: 1px solid var(--border-color); background: var(--bg-page); border-radius: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); transition: 0.2s; font-family: inherit; }
.preset-btn:hover, .preset-btn.active { border-color: var(--accent-primary); background: var(--accent-primary); color: #fff; }

/* Inputs */
.input-group { margin-bottom: 24px; }
.label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.input-group label { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.input-group label .info { display: inline-block; width: 16px; height: 16px; background: var(--border-color); color: var(--text-secondary); border-radius: 50%; text-align: center; font-size: 11px; line-height: 16px; cursor: help; margin-left: 4px; }
.slider-val { font-size: 0.85rem; font-weight: 600; color: var(--accent-primary); font-family: monospace; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper .icon { position: absolute; left: 14px; color: #94A3B8; font-size: 20px; pointer-events: none; }
.num-input, .styled-select { width: 100%; padding: 12px 16px 12px 42px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; font-weight: 600; transition: 0.2s; background: white; color: var(--text-primary); outline: none; }
.styled-select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.num-input:focus, .styled-select:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
.slider { width: 100%; margin-top: 12px; accent-color: var(--accent-primary); height: 6px; background: #E2E8F0; border-radius: 3px; -webkit-appearance: none; outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; height: 20px; width: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--accent-primary); cursor: pointer; }

/* Dashboard Panel (Indigo Gradient) */
.dashboard-panel { position: sticky; top: 100px; background: var(--gradient-primary); color: white; border: none; }
.dashboard-header { display: none; }
.output-hero { text-align: center; margin-bottom: 32px; }
.output-hero h3 { font-size: 1.15rem; opacity: 0.9; margin-bottom: 8px; color: white; }
.price-display { font-size: 4rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; line-height: 1; }
.price-display .period { font-size: 1.25rem; opacity: 0.8; font-weight: 500; }
.model-label { font-size: 0.85rem; opacity: 0.8; margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

.metrics-grid { display: grid; gap: 16px; margin-bottom: 24px; }
.metric-card { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius-sm); padding: 20px; display: flex; flex-direction: column; backdrop-filter: blur(4px); }
.card-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.icon-display { opacity: 0.8; font-size: 22px; margin-bottom: 8px; }
.card-header-flex .icon-display { margin-bottom: 0; }
.metric-card h4 { font-size: 0.9rem; font-weight: 500; opacity: 0.9; margin-bottom: 4px; color: white; }
.metric-value { font-size: 1.6rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }

/* Badges */
.badge { padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #FCA5A5; border: 1px solid rgba(239, 68, 68, 0.4); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #FDE68A; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-success { background: rgba(16, 185, 129, 0.2); color: #6EE7B7; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-elite { background: rgba(139, 92, 246, 0.2); color: #DDD6FE; border: 1px solid rgba(139, 92, 246, 0.4); }

/* Chart Area */
.chart-container { background: rgba(0, 0, 0, 0.15); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 24px; border: 1px solid rgba(255, 255, 255, 0.05); }
.chart-container h4 { font-size: 0.9rem; opacity: 0.9; margin-bottom: 12px; text-align: center; color: white; }
canvas { width: 100%; height: 120px; }

/* Buttons */
.action-buttons { display: flex; gap: 12px; }
.btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; border: none; outline: none; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: 0.2s; font-family: inherit; font-size: 0.95rem; text-decoration: none;}
.btn-primary { background: var(--accent-primary); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.dashboard-panel .btn-primary { background: white; color: var(--accent-primary); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.dashboard-panel .btn-primary:hover { background: #F8FAFC; }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-card); border-color: var(--text-primary); }
.dashboard-panel .btn-secondary { background: rgba(255, 255, 255, 0.1); color: white; border: 1px solid rgba(255, 255, 255, 0.3); }
.dashboard-panel .btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }

/* Tables & Content */
.content-section { margin: 60px 0; }
.content-section h2 { margin-bottom: 20px; font-size: 2rem; }
.content-section p { margin-bottom: 20px; color: var(--text-secondary); }
.table-responsive { overflow-x: auto; margin-top: 20px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 16px 24px; border-bottom: 1px solid var(--border-color); }
th { background: var(--bg-page); font-weight: 600; color: var(--text-primary); }
tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 20px; transition: 0.2s; }
.faq-item:hover { border-color: var(--border-hover); }
.faq-item summary { font-weight: 600; font-family: 'Space Grotesk', sans-serif; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text-primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent-primary); font-size: 1.5rem; }
.faq-item[open] summary::after { content: '-'; }
.faq-item p { margin-top: 12px; color: var(--text-secondary); margin-bottom: 0; }

/* 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: #94A3B8; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; font-family: monospace; }

/* Footer & Cookie */
.site-footer { background: var(--bg-card); border-top: 1px solid var(--border-color); padding: 64px 24px 32px; margin-top: 60px; }
.footer-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 48px; }
.footer-col h4 { margin-bottom: 20px; color: var(--text-primary); font-size: 1rem; }
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; margin-bottom: 12px; transition: 0.2s; }
.footer-col a:hover { color: var(--accent-primary); }
.footer-bottom { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border-color); flex-wrap: wrap; gap: 20px;}
.back-hub-btn { background: var(--bg-page); color: var(--text-secondary); font-weight: 600; padding: 10px 24px; border-radius: 100px; }

.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #0F172A; color: white; padding: 16px 24px; display: flex; justify-content: center; gap: 24px; align-items: center; z-index: 9999; transform: translateY(100%); transition: 0.3s; }
.cookie-bar.visible { transform: translateY(0); }
.cookie-bar a { color: #93C5FD; text-decoration: underline; }
.btn-small { padding: 8px 24px; width: auto; font-size: 0.9rem; border-radius: 8px;}

/* Print Styles - Perfect PDF */
.print-only { display: none; }
@media print {
    .no-print, .ad-slot, .site-footer, .cookie-bar, .glass-header { display: none !important; }
    body { background: white; color: black; padding: 0; }
    main { margin: 0; padding: 0; max-width: 100%; }
    .calculator-section { display: block; }
    .inputs-panel { display: none; } /* Hide inputs, show only result */
    
    .dashboard-panel { background: white !important; color: black !important; box-shadow: none !important; border: 2px solid #E2E8F0 !important; padding: 40px !important; break-inside: avoid; }
    .dashboard-header.print-only { display: block; }
    .output-hero h3 { color: black; }
    .price-display { color: var(--accent-primary); }
    .metric-card { background: white; border: 1px solid #CCC; color: black; break-inside: avoid; }
    .metric-card h4 { color: #475569; }
    .badge { border: 1px solid #000; color: #000; background: transparent; }
    .icon-display { display: none; }
    
    @page { margin: 1.5cm; }
}

@media (max-width: 850px) {
    .calculator-section { grid-template-columns: 1fr; }
    .dashboard-panel { position: relative; top: 0; }
    .desktop-nav { display: none; }
    .hamburger-btn { display: block; }
    .action-buttons { flex-direction: column; }
}