:root{font-family:Inter,Segoe UI,system-ui,-apple-system,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-width:320px;min-height:100vh}#root{width:100%}*{margin:0;padding:0;box-sizing:border-box}.page-wrapper{min-height:100vh;display:flex;flex-direction:column;align-items:center;background:linear-gradient(135deg,#1a1a2e,#16213e,#0f3460)}.main-content{display:flex;align-items:flex-start;justify-content:center;gap:1rem;width:100%;max-width:1400px;padding:1rem;flex:1}.ad-banner{width:100%;display:flex;justify-content:center;padding:.5rem}.ad-banner .ad-placeholder{width:100%;max-width:728px;height:90px;background:#ffffff0d;border:1px dashed rgba(255,255,255,.2);border-radius:8px;display:flex;align-items:center;justify-content:center;color:#ffffff4d;font-size:.75rem;text-transform:uppercase;letter-spacing:1px}.ad-top{padding-top:1rem}.ad-bottom{padding-bottom:.5rem}.ad-sidebar{display:none;flex-shrink:0}.ad-sidebar .ad-placeholder{width:160px;height:600px;background:#ffffff0d;border:1px dashed rgba(255,255,255,.2);border-radius:8px;display:flex;align-items:center;justify-content:center;color:#ffffff4d;font-size:.75rem;text-transform:uppercase;letter-spacing:1px;writing-mode:vertical-rl;text-orientation:mixed}@media(min-width:1200px){.ad-sidebar{display:block}}@media(max-width:768px){.ad-banner .ad-placeholder{height:60px;max-width:320px}}.calculator-card{background:#fffffff2;border-radius:20px;padding:1.5rem;width:100%;max-width:800px;box-shadow:0 25px 50px -12px #0006,0 0 0 1px #ffffff1a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.header-compact{display:flex;align-items:center;justify-content:center;margin-bottom:1.25rem;position:relative}.header-content{display:flex;align-items:center;gap:.75rem}.header-icon{width:48px;height:48px;animation:float 3s ease-in-out infinite}.header-text{display:flex;flex-direction:column;gap:.25rem}.header-text h1{font-size:1.5rem;color:#1a1a2e;font-weight:700;margin:0}.config-badge{display:inline-flex;align-items:center;gap:.25rem;padding:.2rem .5rem;background:#d1fae5;color:#065f46;font-size:.7rem;font-weight:500;border-radius:9999px;width:fit-content}.config-badge.default{background:#fef3c7;color:#92400e}.header{text-align:center;margin-bottom:1.5rem;position:relative}.settings-btn{position:absolute;top:0;right:0;background:#f8f9fa;border:2px solid #e9ecef;border-radius:10px;width:36px;height:36px;font-size:1rem;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;z-index:10}.settings-btn:hover{background:#e9ecef;transform:rotate(45deg)}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.header h1{font-size:2rem;color:#1a1a2e;font-weight:700;margin-bottom:.5rem}.subtitle{color:#666;font-size:1rem}.form-grid{display:grid;grid-template-columns:1fr;gap:1rem;margin-bottom:1.25rem}@media(min-width:640px){.form-grid{grid-template-columns:repeat(2,1fr)}}.form-section{background:#f8f9fa;border-radius:12px;padding:1rem;border:1px solid #e9ecef}.form-section.compact{padding:.875rem}.form-section.compact h2{font-size:.875rem;margin-bottom:.75rem}.input-row{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}.lucro-exemplos{display:flex;gap:.375rem;margin-top:.5rem;flex-wrap:wrap}.lucro-exemplo{padding:.25rem .5rem;background:#e9ecef;border-radius:6px;font-size:.75rem;color:#495057;cursor:pointer;transition:all .2s ease;font-weight:500}.lucro-exemplo:hover{background:#0f3460;color:#fff}.form-section h2{font-size:.9rem;color:#1a1a2e;margin-bottom:.75rem;display:flex;align-items:center;gap:.375rem;font-weight:600}.section-icon{font-size:1rem}.input-group{margin-bottom:.625rem}.input-group:last-child{margin-bottom:0}.input-group label{display:flex;align-items:center;gap:.375rem;flex-wrap:wrap;font-size:.75rem;color:#495057;margin-bottom:.375rem;font-weight:500}.input-group input{width:100%;padding:.625rem .75rem;border:2px solid #e9ecef;border-radius:10px;font-size:.875rem;transition:all .2s ease;background:#fff;color:#1a1a2e}.input-group input:focus{outline:none;border-color:#0f3460;box-shadow:0 0 0 4px #0f34601a}.input-group input::placeholder{color:#adb5bd}.select-input{width:100%;padding:.625rem 2rem .625rem .75rem;border:2px solid #e9ecef;border-radius:10px;font-size:.875rem;transition:all .2s ease;background:#fff;color:#1a1a2e;cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 8L1 3h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .75rem center}.select-input:focus{outline:none;border-color:#0f3460;box-shadow:0 0 0 4px #0f34601a}.loading-badge{font-size:.75rem;padding:.125rem .5rem;background:#ffc107;color:#1a1a2e;border-radius:9999px;font-weight:500;animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}.tarifa-badge{font-size:.75rem;padding:.125rem .5rem;border-radius:9999px;font-weight:500}.tarifa-badge.aneel{background:#10b981;color:#fff}.tarifa-badge.estimativa{background:#6b7280;color:#fff}.tarifa-detalhes{display:flex;gap:1rem;margin-top:.5rem;font-size:.75rem;color:#6b7280}.tarifa-detalhes span{background:#e5e7eb;padding:.25rem .5rem;border-radius:6px}.api-info{margin-top:1rem;text-align:center;padding:.625rem;background:#f0f9ff;border-radius:10px;border:1px solid #bae6fd}.api-info p{font-size:.75rem;color:#0369a1;display:flex;align-items:center;justify-content:center;gap:.375rem}.api-info a{color:#0284c7;font-weight:500;text-decoration:none}.api-info a:hover{text-decoration:underline}.api-icon{font-size:.875rem}.buttons{display:flex;gap:.75rem;justify-content:center;margin-bottom:0}.btn-primary,.btn-secondary{padding:.75rem 1.5rem;border-radius:10px;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s ease;border:none}.btn-primary{background:linear-gradient(135deg,#0f3460,#16213e);color:#fff;flex:2}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 10px 20px #0f34604d}.btn-secondary{background:#e9ecef;color:#495057;flex:1}.btn-secondary:hover{background:#dee2e6}.resultado{background:linear-gradient(135deg,#0f3460,#16213e);border-radius:16px;padding:1.5rem;animation:slideUp .3s ease}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.resultado h2{color:#fff;text-align:center;margin-bottom:1.5rem;font-size:1.25rem;font-weight:600}.resultado-grid{display:grid;gap:.75rem;grid-template-columns:repeat(2,1fr)}@media(min-width:640px){.resultado-grid{grid-template-columns:repeat(4,1fr)}}.resultado-item{background:#ffffff1a;border-radius:12px;padding:1rem;display:flex;flex-direction:column;gap:.25rem}.resultado-item.total{grid-column:span 2;background:#fff3;text-align:center}@media(max-width:639px){.resultado-item.total{grid-column:span 1}}.resultado-label{color:#fffc;font-size:.875rem}.resultado-valor{color:#fff;font-size:1.5rem;font-weight:700}.resultado-item.total .resultado-valor{font-size:2rem;color:#4ade80}.resultado-separador{height:1px;background:#fff3;margin:1.5rem 0}.resultado-resumo{display:flex;flex-direction:column;gap:.75rem}.resultado-linha{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:#ffffff1a;border-radius:10px}.resultado-linha .resultado-label{font-size:.9rem}.resultado-linha .resultado-valor{font-size:1.25rem}.resultado-linha.lucro{background:#4ade8026}.resultado-linha.lucro .resultado-valor{color:#4ade80}.resultado-linha.preco-final{background:linear-gradient(135deg,#4ade804d,#22c55e4d);border:2px solid rgba(74,222,128,.5);padding:1rem 1.25rem}.resultado-linha.preco-final .resultado-label{font-size:1rem;font-weight:600;color:#fff}.resultado-linha.preco-final .resultado-valor{font-size:1.75rem;color:#4ade80;font-weight:700}.footer{margin-top:1rem;text-align:center;color:#fff9;font-size:.75rem}@media(max-width:640px){.calculator-card{padding:1rem}.header-text h1{font-size:1.25rem}.header-icon{width:40px;height:40px}.form-grid{gap:.75rem}.input-row{grid-template-columns:1fr;gap:.5rem}}.modal-overlay{position:fixed;inset:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal{background:#fff;border-radius:24px;width:100%;max-width:500px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column;animation:slideIn .3s ease}.modal.modal-resultado{max-width:600px;background:linear-gradient(135deg,#0f3460,#16213e)}.modal.modal-resultado .modal-header{border-bottom:1px solid rgba(255,255,255,.1)}.modal.modal-resultado .modal-header h2{color:#fff}.modal.modal-resultado .modal-close{background:#ffffff1a;color:#fffc}.modal.modal-resultado .modal-close:hover{background:#fff3;color:#fff}.modal.modal-resultado .modal-footer{border-top:1px solid rgba(255,255,255,.1);background:#0003}.modal.modal-resultado .btn-secondary{background:#ffffff1a;color:#fff;border:1px solid rgba(255,255,255,.2)}.modal.modal-resultado .btn-secondary:hover{background:#fff3}.modal.modal-resultado .btn-primary{background:linear-gradient(135deg,#4ade80,#22c55e);color:#0f3460}.modal.modal-resultado .btn-primary:hover{box-shadow:0 10px 20px #4ade804d}@keyframes slideIn{0%{opacity:0;transform:translateY(-20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.5rem;border-bottom:1px solid #e9ecef}.modal-header h2{font-size:1.25rem;color:#1a1a2e;font-weight:600;display:flex;align-items:center;gap:.5rem}.modal-close{background:#f8f9fa;border:none;width:36px;height:36px;border-radius:10px;font-size:1.25rem;cursor:pointer;color:#6b7280;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.modal-close:hover{background:#e9ecef;color:#1a1a2e}.modal-body{padding:1.5rem;overflow-y:auto;flex:1}.modal-description{color:#6b7280;font-size:.875rem;margin-bottom:1.5rem;line-height:1.5}.settings-section{margin-bottom:1.5rem}.settings-section:last-child{margin-bottom:0}.settings-section h3{font-size:.875rem;color:#1a1a2e;font-weight:600;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid #e9ecef}.input-hint{display:block;font-size:.75rem;color:#9ca3af;margin-top:.375rem}.modal-footer{display:flex;gap:1rem;padding:1.5rem;border-top:1px solid #e9ecef;background:#f8f9fa}.modal-footer .btn-secondary{flex:1}.modal-footer .btn-primary{flex:2}@media(max-width:640px){.modal{max-height:95vh;margin:.5rem}.modal-header,.modal-body,.modal-footer{padding:1rem}.modal-footer{flex-direction:column}.modal-footer .btn-secondary,.modal-footer .btn-primary{flex:1;width:100%}}
