*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #FAFAF9; color: #1C1917; line-height: 1.5; min-height: 100vh; }
input, select, button, textarea { font-family: inherit; font-size: inherit; }
input[type="text"], input[type="number"], select { width: 100%; padding: 0.625rem 0.75rem; border: 1px solid #E7E5E4; border-radius: 0.5rem; background: #fff; font-size: 1rem; transition: border-color 0.15s; }
input[type="text"]:focus, input[type="number"]:focus, select:focus { outline: none; border-color: #D97706; box-shadow: 0 0 0 3px rgba(217,119,6,0.1); }
label { display: block; font-size: 0.875rem; font-weight: 500; color: #78716C; margin-bottom: 0.25rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.625rem 1.25rem; font-weight: 600; border-radius: 9999px; border: none; cursor: pointer; transition: all 0.15s; text-decoration: none; font-size: 0.875rem; }
.btn-primary { background: #D97706; color: #fff; box-shadow: 0 2px 8px rgba(217,119,6,0.2); }
.btn-primary:hover { background: #B45309; box-shadow: 0 4px 12px rgba(217,119,6,0.3); }
.btn-outline { background: transparent; border: 1px solid #E7E5E4; color: #1C1917; }
.btn-outline:hover { border-color: #D97706; color: #D97706; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.card { background: #fff; border-radius: 0.75rem; border: 1px solid #E7E5E4; padding: 1.25rem; }
.result-card { padding: 1rem; border-radius: 0.5rem; background: #FFF7ED; border-left: 4px solid #D97706; }
.result-card.success { background: #F0FDF4; border-left-color: #059669; }
.result-card.amber { background: #FFFBEB; border-left-color: #D97706; }
.ad-slot-sidebar-top { min-height: 250px; background: #F5F5F4; display: flex; align-items: center; justify-content: center; color: #A8A29E; font-size: 0.75rem; border-radius: 0.5rem; max-width: 100%; overflow: hidden; }
.ad-slot-in-content { min-height: 90px; background: #F5F5F4; display: flex; align-items: center; justify-content: center; color: #A8A29E; font-size: 0.75rem; border-radius: 0.5rem; max-width: 100%; overflow: hidden; }
.ad-slot-footer { min-height: 90px; background: #F5F5F4; display: flex; align-items: center; justify-content: center; color: #A8A29E; font-size: 0.75rem; border-radius: 0.5rem; max-width: 100%; overflow: hidden; }
.ad-slot-inter-field { min-height: 250px; background: #F5F5F4; display: flex; align-items: center; justify-content: center; color: #A8A29E; font-size: 0.75rem; border-radius: 0.5rem; max-width: 100%; overflow: hidden; }
.lang-toggle { display: flex; gap: 0.25rem; background: #F5F5F4; border-radius: 0.5rem; padding: 0.25rem; }
.lang-toggle button { padding: 0.25rem 0.625rem; border: none; background: transparent; border-radius: 0.375rem; cursor: pointer; font-weight: 500; font-size: 0.8125rem; color: #78716C; transition: all 0.15s; }
.lang-toggle button.active { background: #fff; color: #D97706; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.section-title { font-size: 0.75rem; font-weight: 600; color: #A8A29E; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; padding-top: 1rem; border-top: 1px solid #E7E5E4; }
.fade-in { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(0.25rem); } to { opacity: 1; transform: translateY(0); } }
.faq-item { border-bottom: 1px solid #E7E5E4; }
.faq-question { width: 100%; text-align: left; padding: 0.75rem 0; background: none; border: none; cursor: pointer; font-weight: 500; color: #1C1917; font-size: 0.9375rem; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1); color: #78716C; font-size: 0.875rem; line-height: 1.625; }
.faq-answer.open { padding-bottom: 0.75rem; }
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card { background: #fff; border: 1px solid #E7E5E4; border-radius: 0.75rem; padding: 1.5rem; transition: box-shadow 0.2s, transform 0.2s; }
.tool-card:hover { box-shadow: 0 4px 16px rgba(217,119,6,0.12); transform: translateY(-2px); }
.two-col { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 320px; } }
.result-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid #F5F5F4; font-size: 0.9375rem; }
.result-row:last-child { border-bottom: none; font-weight: 700; }
.result-label { color: #78716C; }
.result-value { color: #1C1917; font-weight: 600; }
.result-row.total { border-top: 2px solid #D97706; margin-top: 0.5rem; padding-top: 0.75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; white-space: nowrap; border: 0; }
.toast { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%) translateY(100px); background: #1C1917; color: #fff; padding: 0.75rem 1.25rem; border-radius: 0.5rem; font-size: 0.875rem; z-index: 100; opacity: 0; transition: all 0.3s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
@media (prefers-reduced-motion: reduce) { .stagger-row, .scroll-entrance { opacity: 1; transform: none; } }
:focus-visible { outline: 2px solid #D97706; outline-offset: 2px; }
[data-i18n] { transition: opacity 0.15s; }
.btn:active { transform: scale(0.97); }
.result-value { transition: color 0.25s, opacity 0.25s; }
.stagger-row { opacity: 0; transform: translateY(6px); transition: opacity 0.3s ease, transform 0.3s ease; }
.stagger-row.revealed { opacity: 1; transform: translateY(0); }
.faq-icon { display: inline-block; transition: transform 0.25s ease; }
.faq-question.open .faq-icon { transform: rotate(45deg); }
.scroll-entrance { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.scroll-entrance.visible { opacity: 1; transform: translateY(0); }
.tool-card:focus-within { box-shadow: 0 0 0 3px rgba(217,119,6,0.15); }
.tooltip-popup { position: fixed; background: #1C1917; color: #fff; padding: 0.375rem 0.75rem; border-radius: 0.375rem; font-size: 0.8125rem; max-width: 260px; pointer-events: none; opacity: 0; transform: translateX(-50%) translateY(-4px); transition: opacity 0.15s, transform 0.15s; z-index: 200; white-space: normal; line-height: 1.4; }
.tooltip-popup.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.tooltip-trigger { display: inline-flex; align-items: center; justify-content: center; width: 1rem; height: 1rem; border-radius: 50%; background: #E7E5E4; color: #78716C; font-size: 0.625rem; font-weight: 700; cursor: help; margin-left: 0.25rem; vertical-align: middle; transition: background 0.15s, color 0.15s; }
.tooltip-trigger:hover { background: #D97706; color: #fff; }
.onboarding-overlay { position: fixed; inset: 0; background: rgba(28,25,23,0.6); display: flex; align-items: center; justify-content: center; z-index: 300; opacity: 0; transition: opacity 0.3s; backdrop-filter: blur(2px); pointer-events: none; }
.onboarding-overlay.active { opacity: 1; pointer-events: auto; }
.onboarding-card { background: #fff; border-radius: 1rem; padding: 2rem; max-width: 360px; width: 90%; text-align: center; box-shadow: 0 16px 48px rgba(0,0,0,0.2); position: relative; animation: fadeIn 0.3s ease; pointer-events: auto; }
.onboarding-close { position: absolute; top: 0.75rem; right: 0.75rem; background: none; border: none; font-size: 1.5rem; color: #A8A29E; cursor: pointer; line-height: 1; padding: 0.25rem; }
.onboarding-close:hover { color: #1C1917; }
.onboarding-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.onboarding-title { font-size: 1.125rem; font-weight: 700; color: #1C1917; margin-bottom: 1rem; }
.onboarding-list { text-align: left; list-style: none; padding: 0; margin: 0 0 1.25rem; }
.onboarding-list li { padding: 0.5rem 0; border-bottom: 1px solid #F5F5F4; font-size: 0.875rem; color: #57534E; display: flex; gap: 0.5rem; align-items: flex-start; }
.onboarding-list li::before { content: '✓'; color: #059669; font-weight: 700; flex-shrink: 0; }
