:root {
    --black: #050505;
    --black-soft: #11130f;
    --neon: #9bea00;
    --neon-dark: #6da800;
    --neon-soft: #efffcf;
    --ink: #181b15;
    --muted: #73796b;
    --line: #e2e7da;
    --bg: #f6f8f2;
    --orange: #f59e0b;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--ink); display: flex; min-height: 100vh; }
aside { width: 260px; background: var(--black); color: #eef5e5; padding: 22px 15px; position: fixed; inset: 0 auto 0 0; border-right: 1px solid #26300f; }
.brand { display: flex; align-items: center; gap: 10px; color: white; text-decoration: none; padding: 0 8px 24px; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.brand b { font-size: 17px; letter-spacing: -.2px; }
.brand small, .plan { background: var(--neon); color: var(--black); font-size: 10px; font-weight: 900; padding: 4px 7px; border-radius: 99px; }
.brand small { margin-left: auto; }
nav p { font-size: 10px; letter-spacing: 1.6px; color: #77835f; margin: 20px 12px 8px; }
nav a { display: block; color: #cbd4bb; text-decoration: none; padding: 11px 13px; margin: 3px 0; border-radius: 9px; font-size: 14px; border-left: 3px solid transparent; }
nav a:hover, nav a.on { background: #1a1f12; color: var(--neon); border-left-color: var(--neon); }
main { margin-left: 260px; width: calc(100% - 260px); }
header { height: 82px; background: var(--black); color: white; border-bottom: 3px solid var(--neon); display: flex; align-items: center; padding: 0 35px; gap: 14px; }
header div { display: flex; flex-direction: column; }
header b { font-size: 18px; }
header small { color: #aeb99d; margin-top: 3px; }
.plan { margin-left: auto; }
.menu { display: none; }
.master-body { display: block; }
.master-header { position: sticky; top: 0; z-index: 20; width: 100%; min-height: 82px; height: auto; padding: 14px clamp(18px, 4vw, 48px); }
.master-brand { display: flex; align-items: center; gap: 12px; min-width: max-content; color: white; text-decoration: none; }
.master-brand > span { display: flex; flex-direction: column; }
.master-brand b { font-size: 18px; }
.master-brand small { color: #aeb99d; }
.master-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; }
.master-actions form { margin: 0; }
.master-user { color: white; white-space: nowrap; margin-left: 4px; }
.master-menu { display: none; margin-left: auto; border: 1px solid #394329; border-radius: 8px; background: #171b12; color: var(--neon); padding: 8px 11px; font-size: 20px; cursor: pointer; }
.content { padding: 28px 35px; max-width: 1450px; margin: auto; }
.flash, .errors { padding: 13px 16px; border-radius: 10px; margin-bottom: 18px; background: var(--neon-soft); color: #365800; border-left: 4px solid var(--neon-dark); }
.errors { background: #fee2e2; color: #991b1b; border-left-color: #dc2626; }
.pagebar { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; }
.pagebar h1 { margin: 0; font-size: 25px; }
.pagebar p { color: var(--muted); margin: 5px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--black); border-radius: 9px; padding: 10px 15px; background: var(--black); color: var(--neon); text-decoration: none; font-weight: 800; cursor: pointer; font-size: 14px; }
.btn:hover { background: var(--neon); color: var(--black); border-color: var(--neon-dark); }
.btn.light { background: white; color: var(--ink); border: 1px solid var(--line); }
header .btn.light { background: #181a15; color: white; border-color: #343a29; }
.btn.orange { background: var(--neon); color: var(--black); border-color: var(--neon-dark); }
.btn.sm { padding: 7px 10px; font-size: 12px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 22px; }
.card, .panel { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 19px; box-shadow: 0 2px 8px #1a240b0a; }
.card { border-top: 3px solid var(--neon); }
.card small { display: block; color: var(--muted); font-weight: 600; }
.card strong { font-size: 25px; display: block; margin-top: 9px; }
.card em, a { color: var(--neon-dark); }
.card em { font-style: normal; font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.panel { margin-bottom: 18px; }
.panel h2 { font-size: 16px; margin: 0 0 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; padding: 10px; border-bottom: 2px solid var(--neon); }
td { padding: 12px 10px; border-bottom: 1px solid #edf0e8; }
tr:last-child td { border: 0; }
.money { font-variant-numeric: tabular-nums; font-weight: 700; }
.badge { display: inline-block; border-radius: 99px; padding: 5px 8px; background: var(--neon-soft); color: #456c00; font-size: 11px; font-weight: 900; }
.badge.warn { background: #fff3dd; color: #a35408; }
.badge.gray { background: #eef0e9; color: #62685a; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; color: #555d49; }
input, select, textarea { width: 100%; border: 1px solid #dce2d4; border-radius: 9px; background: white; padding: 10px 11px; font: inherit; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid #dfff9e; border-color: var(--neon-dark); }
.item-row { display: grid; grid-template-columns: 2fr .7fr 1fr 1fr auto; gap: 10px; align-items: end; border-top: 1px solid var(--line); padding: 13px 0; }
.muted { color: var(--muted); }
.big-number { font-size: 28px; font-weight: 800; }
.alert { border-left: 3px solid var(--neon-dark); padding: 10px 12px; background: #f8ffe8; margin: 8px 0; font-size: 13px; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.summary div { background: #f8faF4; border-radius: 9px; padding: 13px; border-bottom: 2px solid var(--neon); }
.summary span { display: block; color: var(--muted); font-size: 11px; }
.summary strong { display: block; margin-top: 5px; }
.negative { color: #c2410c; }
.positive { color: #5f9000; }
.costing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.step-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-title > span { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--black); color: var(--neon); font-weight: 900; }
.step-title h2 { margin: 0 0 3px; }
.step-title small { color: var(--muted); }
.costing-result { position: sticky; top: 20px; width: auto; inset: auto; padding: 24px; border-radius: 14px; border-top: 5px solid var(--neon); background: var(--black); color: white; }
.costing-result h2 { margin: 8px 0 0; font-size: 16px; color: #bdc7af; }
.costing-result > strong { display: block; color: var(--neon); font-size: 36px; margin: 4px 0 20px; }
.costing-result > .btn { width: 100%; margin: 18px 0 10px; }
.costing-result > small { color: #929d82; display: block; text-align: center; line-height: 1.4; }
.result-lines > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #292e22; font-size: 13px; }
.result-lines span { color: #aeb99d; }
.result-lines .result-total { border-bottom: 2px solid var(--neon); padding: 14px 0; }
.result-lines .result-total b { color: var(--neon); }
.costing-history { margin-top: 4px; }
.quota-alert { display: block; margin-bottom: 18px; }
.pro-callout { border-top: 4px solid var(--neon); }
.pro-callout .plan { display: inline-block; margin-bottom: 14px; }
.pro-callout ul { padding-left: 20px; line-height: 1.9; }
.btn:disabled { cursor: not-allowed; opacity: .5; }
.master-cards { grid-template-columns: repeat(5, 1fr); }
.master-grid { grid-template-columns: minmax(0, 2fr) minmax(280px, .7fr); }
.billing-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
.plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.plan-editor .panel-head h2 { margin: 10px 0 0; font-size: 22px; }
.feature-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.feature-checks label { border: 1px solid var(--line); border-radius: 8px; padding: 9px; font-size: 13px; }
.feature-checks input { width: auto; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 760px; }
.field-link { font-size: 11px; font-weight: 700; text-decoration: none; align-self: flex-end; }
.pricing-choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pricing-choice > label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; }
.pricing-choice > label:has(input:checked) { border-color: var(--neon-dark); background: var(--neon-soft); box-shadow: 0 0 0 2px #dfff9e; }
.pricing-choice input { width: auto; margin-top: 3px; }
.pricing-choice span, .pricing-choice small { display: block; }
.pricing-choice small { color: var(--muted); margin-top: 4px; }
.category-list form + form { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 15px; }
.category-row { grid-template-columns: 2fr .6fr .8fr auto; align-items: end; }
.category-action { min-width: 90px; }
.filters { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr)); gap: 12px; align-items: end; margin-bottom: 18px; }
.form-page { max-width: 960px; margin-inline: auto; }
.item-modal { width: min(92vw, 680px); max-height: 90vh; padding: 0; border: 0; border-radius: 15px; color: var(--ink); box-shadow: 0 28px 80px #0008; }
.item-modal::backdrop { background: #050505b8; backdrop-filter: blur(2px); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 22px; border-bottom: 3px solid var(--neon); background: var(--black); color: white; }
.modal-head h2 { margin: 4px 0 0; font-size: 21px; }
.modal-close { border: 1px solid #3b422f; border-radius: 8px; background: #181b15; color: white; width: 36px; height: 36px; font-size: 22px; cursor: pointer; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 22px; border-top: 1px solid var(--line); background: #f8faf4; }
.inline-error { margin: 14px 0 0; }
.item-grid td:first-child { min-width: 220px; }
.item-grid .actions { flex-wrap: nowrap; }
.item-search { max-width: 280px; }
body:has(.item-modal[open]) { overflow: hidden; }
.print-only { display: none; }
.auth-shell { background: radial-gradient(circle at 50% 0%, #29350e 0, var(--black) 46%); min-height: 100vh; display: grid; place-items: center; }
.auth-box { width: min(92vw, 520px); }
.auth-box .brand { justify-content: center; }
.auth-box .brand-logo { width: 88px; height: 88px; }
.auth-box .brand b { font-size: 22px; color: white; }
.auth-box .panel { border-top: 4px solid var(--neon); }

@media (max-width: 1100px) { .master-user { display: none; } .master-header { padding-inline: 22px; } }
@media (max-width: 1000px) { .cards, .master-cards { grid-template-columns: repeat(2, 1fr); } .grid2, .costing-layout, .billing-layout, .plans-grid { grid-template-columns: 1fr; } .costing-result { position: static; } .item-row { grid-template-columns: 2fr 1fr 1fr; } }
@media (max-width: 820px) {
    .master-header { min-height: 72px; padding: 10px 16px; }
    .master-brand .brand-logo { width: 44px; height: 44px; }
    .master-brand b { font-size: 16px; }
    .master-brand small { font-size: 11px; }
    .master-menu { display: block; }
    .master-actions { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 14px 16px 18px; background: var(--black); border-top: 1px solid #29301f; border-bottom: 3px solid var(--neon); box-shadow: 0 15px 25px #0004; flex-direction: column; align-items: stretch; }
    .master-open .master-actions { display: flex; }
    .master-actions .btn { width: 100%; }
    .master-actions .master-user { display: block; text-align: center; order: -1; padding: 5px; }
}
@media (max-width: 720px) { aside { transform: translateX(-100%); z-index: 5; transition: .2s; } body.open aside { transform: none; } main { margin-left: 0; width: 100%; } main > header { padding: 0 12px; } main > header > span:not(.plan) { display: none; } main > header form { margin-left: auto; } .menu { display: block; background: none; border: 0; color: var(--neon); font-size: 22px; } .content { padding: 20px 14px; } .cards { grid-template-columns: 1fr 1fr; gap: 9px; } .card { padding: 14px; } .card strong { font-size: 19px; } .form-grid, .summary, .pricing-choice, .category-row, .filters { grid-template-columns: 1fr; } .pagebar { flex-direction: column; align-items: stretch; gap: 12px; } .pagebar > .actions, .pagebar > .btn { width: 100%; } .pagebar > .actions .btn, .pagebar > .actions button { flex: 1; } .item-row { grid-template-columns: 1fr 1fr; } .item-row .product { grid-column: 1 / -1; } table { display: block; overflow-x: auto; white-space: nowrap; } .plan { display: none; } .panel-head { align-items: stretch; gap: 10px; flex-direction: column; } .panel-head input, .item-search { max-width: none !important; } .item-modal { width: calc(100vw - 20px); } .modal-body, .modal-head, .modal-actions { padding-left: 16px; padding-right: 16px; } .modal-actions .btn { flex: 1; } }
@media (max-width: 480px) { .cards, .master-cards { grid-template-columns: 1fr; } .master-brand small { display: none; } .content { padding-inline: 10px; } .panel { padding: 15px; } .pagebar .actions { flex-direction: column; } .pagebar > .actions .btn, .pagebar > .actions button { width: 100%; } .feature-checks { grid-template-columns: 1fr; } }
@media print { aside, header, .no-print, .btn { display: none !important; } main { margin: 0; width: 100%; } .content { padding: 0; } .panel { border: 0; box-shadow: none; } .print-only { display: block; } }

/* Site público */
.public-site { display: block; background: #f8faf4; }
.public-nav { position: sticky; top: 0; z-index: 10; height: 76px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); }
.public-nav .brand { padding: 0; }
.public-nav nav { margin-left: auto; display: flex; align-items: center; gap: 25px; }
.public-nav nav a { color: #d8dfcc; padding: 8px 0; border: 0; }
.public-nav nav a:hover { background: none; color: var(--neon); }
.public-nav .btn.light { padding: 9px 16px; border-color: var(--neon); }
.hero-public { min-height: 590px; padding: 80px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 60px; color: white; background: radial-gradient(circle at 80% 45%, #293b09, var(--black) 42%); }
.hero-public h1 { font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -3px; max-width: 800px; margin: 18px 0 25px; }
.hero-public p { color: #cbd3be; font-size: 19px; line-height: 1.6; max-width: 680px; }
.hero-public .btn, .public-cta .btn { background: var(--neon); color: var(--black); border-color: var(--neon); }
.hero-public .actions { align-items: center; gap: 22px; margin-top: 32px; }
.text-link { color: white; font-weight: 700; text-decoration: none; }
.hero-mark img { width: 100%; filter: drop-shadow(0 0 28px #9bea0038); }
.eyebrow { color: var(--neon-dark); font-size: 12px; letter-spacing: 2px; font-weight: 900; }
.hero-public .eyebrow, .dark-section .eyebrow { color: var(--neon); }
.public-section { max-width: 1180px; margin: auto; padding: 90px 24px; }
.simulator-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.section-copy h2, .section-title h2, .tips h2, .public-cta h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; margin: 12px 0 18px; letter-spacing: -1.5px; }
.section-copy p, .section-title p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.section-copy ul { padding: 0; list-style: none; line-height: 2; }
.section-copy li::before { content: '✓'; color: var(--neon-dark); font-weight: 900; margin-right: 10px; }
.calculator-card { background: white; border: 1px solid var(--line); border-top: 5px solid var(--neon); padding: 28px; border-radius: 16px; box-shadow: 0 22px 55px #18220a17; }
.calculator-card > .btn { width: 100%; margin: 20px 0; }
.input-unit { display: flex; align-items: center; border: 1px solid #dce2d4; border-radius: 9px; background: white; overflow: hidden; }
.input-unit:focus-within { outline: 3px solid #dfff9e; border-color: var(--neon-dark); }
.input-unit input { border: 0; outline: 0; border-radius: 0; }
.input-unit span { padding: 0 12px; color: var(--muted); font-weight: 800; }
.margin-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 8px; }
.margin-presets button { border: 1px solid var(--line); border-radius: 7px; background: #f5f7f1; padding: 8px; font-weight: 800; cursor: pointer; }
.margin-presets button:hover, .margin-presets button.active { color: var(--black); background: var(--neon); border-color: var(--neon-dark); }
.advanced { margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.advanced summary { cursor: pointer; font-weight: 800; }
.advanced summary span { float: right; color: var(--muted); font-size: 12px; font-weight: 500; }
.advanced .form-grid { margin-top: 16px; }
.price-highlight { background: var(--black); color: white; border-radius: 12px; padding: 20px; text-align: center; margin-bottom: 12px; }
.price-highlight span, .price-highlight small { display: block; color: #b2bca3; }
.price-highlight b { display: block; color: var(--neon); font-size: 36px; margin: 4px; }
.cost-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.cost-breakdown div { padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cost-breakdown span { display: block; color: var(--muted); font-size: 10px; }
.cost-breakdown b { font-size: 13px; }
.cost-breakdown .total { background: var(--neon-soft); }
.channel-result { border-left: 4px solid var(--neon); background: #f7faef; padding: 12px; margin-bottom: 12px; font-size: 13px; }
.calc-result { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 15px; }
.calc-result div { padding: 12px; background: var(--black); color: white; border-radius: 9px; }
.calc-result span { display: block; color: #adb69d; font-size: 10px; }
.calc-result b { display: block; color: var(--neon); font-size: 16px; margin-top: 5px; }
.section-title { max-width: 760px; margin-bottom: 40px; }
.content-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.content-cards article { background: white; border: 1px solid var(--line); padding: 28px; border-radius: 14px; }
.content-cards article > span { color: var(--neon-dark); font-weight: 900; }
.content-cards h3, .idea-grid h3 { font-size: 20px; margin: 28px 0 10px; }
.content-cards p, .idea-grid p { color: var(--muted); line-height: 1.65; }
.dark-section { background: var(--black); color: white; padding: 90px max(24px, calc((100vw - 1180px) / 2)); }
.idea-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #303521; border: 1px solid #303521; }
.idea-grid article { background: var(--black); padding: 28px; }
.idea-grid article::before { content: ''; display: block; width: 36px; height: 4px; background: var(--neon); }
.idea-grid p { color: #abb39d; }
.tips { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.tips ol { margin: 0; padding: 0; list-style: none; counter-reset: tip; }
.tips li { counter-increment: tip; display: grid; grid-template-columns: 40px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
.tips li::before { content: counter(tip, decimal-leading-zero); grid-row: 1 / 3; color: var(--neon-dark); font-weight: 900; }
.tips li span { color: var(--muted); margin-top: 5px; }
.public-cta { background: var(--neon); color: var(--black); padding: 75px 24px; text-align: center; }
.public-cta p { font-size: 18px; }
.public-cta .btn { background: var(--black); color: var(--neon); margin: 15px; }
.public-cta small { display: block; }
.public-footer { background: var(--black); color: #bec7b0; padding: 35px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; gap: 14px; }
.public-footer img { width: 50px; height: 50px; }
.public-footer a { margin-left: auto; }

@media (max-width: 800px) {
    .public-nav nav a:not(.btn) { display: none; }
    .hero-public { grid-template-columns: 1fr; min-height: auto; padding-top: 65px; }
    .hero-public h1 { letter-spacing: -2px; }
    .hero-mark { display: none; }
    .simulator-section, .tips { grid-template-columns: 1fr; gap: 30px; }
    .content-cards, .idea-grid { grid-template-columns: 1fr; }
    .calc-result { grid-template-columns: 1fr 1fr; }
    .cost-breakdown { grid-template-columns: 1fr 1fr; }
    .public-section, .dark-section { padding-top: 65px; padding-bottom: 65px; }
}
