/* ================================================================
   Fringe Calculadora de Marketplace — calculadora.css v1.2.0
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Container principal — fundo total, conteúdo centralizado ── */
.fringe-calc {
    --fc-bg:      #0d0f14;
    --fc-surface: #13151f;
    --fc-card:    #191c28;
    --fc-card2:   #1e2130;
    --fc-border:  #272b3d;
    --fc-accent:  #ff5f00;
    --fc-accent2: #ff9a3c;
    --fc-text:    #e4e6f0;
    --fc-muted:   #717694;
    --fc-green:   #2ecc8f;
    --fc-yellow:  #f5c542;
    --fc-red:     #e05050;
    --fc-radius:  14px;
    --fc-font:    'Plus Jakarta Sans', sans-serif;
    --fc-mono:    'JetBrains Mono', monospace;

    background: var(--fc-bg);
    color: var(--fc-text);
    font-family: var(--fc-font);
    font-size: 14px;
    padding: 0 0 48px;
    transition: background .25s, color .25s;
    width: 100%;
}

.fringe-calc.fc-light {
    --fc-bg:      #eef0f6;
    --fc-surface: #f8f9fc;
    --fc-card:    #ffffff;
    --fc-card2:   #f2f4fb;
    --fc-border:  #d8dced;
    --fc-text:    #14172a;
    --fc-muted:   #656a8a;
    --fc-green:   #15996a;
    --fc-yellow:  #b8890e;
    --fc-red:     #c42e2e;
}

/* ── Theme toggle — alinhado no header ── */
.fringe-calc .fc-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: var(--fc-font);
    font-size: 12px;
    font-weight: 700;
    color: var(--fc-muted);
    transition: all .2s;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 40px;
    padding: 6px 14px;
    margin: 0 auto 16px;
}
.fringe-calc.fc-light .fc-toggle {
    background: rgba(0,0,0,.07);
    border-color: rgba(0,0,0,.12);
}
.fringe-calc .fc-toggle:hover { border-color: var(--fc-accent); color: var(--fc-text); }

/* ── Header interno — largura total, texto centralizado ── */
.fringe-calc .fc-header {
    background: linear-gradient(135deg, #0d0f14 0%, #1a1030 100%);
    border-bottom: 1px solid var(--fc-border);
    padding: 36px 24px 30px;
    position: relative;
    overflow: hidden;
    text-align: center;
    width: 100%;
}
.fringe-calc.fc-light .fc-header {
    background: linear-gradient(135deg, #fff5ee 0%, #ffe0c8 100%);
}
.fringe-calc .fc-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,95,0,.12), transparent);
    pointer-events: none;
}
.fringe-calc.fc-light .fc-header::before {
    background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,95,0,.07), transparent);
}
.fringe-calc .fc-header-inner {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}
.fringe-calc .fc-header h2 {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: #e4e6f0;
    margin: 0 0 6px;
}
.fringe-calc.fc-light .fc-header h2 { color: #14172a; }
.fringe-calc .fc-header h2 span { color: var(--fc-accent); }
.fringe-calc .fc-header p {
    font-size: 13px;
    color: #9196b8;
    font-family: var(--fc-mono);
    margin: 0;
}

/* ── Wrap — conteúdo centralizado com max-width ── */
.fringe-calc .fc-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 0;
    width: 100%;
}

/* ── Seletor ── */
.fringe-calc .fc-selector {
    background: var(--fc-card);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 18px;
    margin-bottom: 18px;
}
.fringe-calc .fc-sel-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fc-muted);
    margin-bottom: 10px;
}

/* Botões plataforma */
.fringe-calc .fc-plat-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.fringe-calc .fc-plat-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
    background: var(--fc-card2);
    border: 1.5px solid var(--fc-border);
    border-radius: 10px;
    color: var(--fc-muted);
    font-family: var(--fc-font);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s;
    flex: 1;
    min-width: 90px;
    justify-content: center;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .fringe-calc .fc-plat-btn { min-width: calc(50% - 4px); }
}
.fringe-calc .fc-plat-btn:hover  { border-color: var(--fc-accent); color: var(--fc-text); }
.fringe-calc .fc-plat-btn.active { border-color: var(--fc-accent); color: var(--fc-accent); background: rgba(255,95,0,.08); }
.fringe-calc .fc-plat-btn .fc-picon { font-size: 16px; }

/* Botões tipo conta */
.fringe-calc .fc-tipo-group { display: flex; gap: 8px; }
.fringe-calc .fc-tipo-btn {
    flex: 1;
    padding: 8px 12px;
    background: var(--fc-card2);
    border: 1.5px solid var(--fc-border);
    border-radius: 8px;
    color: var(--fc-muted);
    font-family: var(--fc-font);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s;
    text-align: center;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.fringe-calc .fc-tipo-btn:hover  { border-color: var(--fc-accent); }
.fringe-calc .fc-tipo-btn.active { border-color: var(--fc-accent); color: var(--fc-accent); background: rgba(255,95,0,.08); }

/* Balão info taxa */
.fringe-calc .fc-info-taxa {
    margin-top: 12px;
    background: rgba(255,95,0,.07);
    border: 1px solid rgba(255,95,0,.18);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--fc-accent2);
    display: none;
    font-family: var(--fc-mono);
    line-height: 1.6;
}
.fringe-calc.fc-light .fc-info-taxa { background: rgba(255,95,0,.06); border-color: rgba(255,95,0,.2); }
.fringe-calc .fc-info-taxa.visible  { display: block; }

/* ── Grid ── */
.fringe-calc .fc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .fringe-calc .fc-grid2 { grid-template-columns: 1fr; } }

/* ── Cards ── */
.fringe-calc .fc-card {
    background: var(--fc-card);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 18px;
}
.fringe-calc .fc-card-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--fc-accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fringe-calc .fc-card-title::before {
    content: '';
    display: block;
    width: 3px;
    height: 14px;
    background: var(--fc-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Campos ── */
.fringe-calc .fc-field { margin-bottom: 13px; }
.fringe-calc .fc-field:last-child { margin-bottom: 0; }
.fringe-calc .fc-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fc-muted);
    margin-bottom: 5px;
}
.fringe-calc .fc-field input[type="number"] {
    width: 100%;
    background: var(--fc-surface);
    border: 1.5px solid var(--fc-border);
    border-radius: 8px;
    color: var(--fc-text);
    font-family: var(--fc-mono);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 11px;
    transition: border-color .18s;
    -moz-appearance: textfield;
    appearance: textfield;
    box-shadow: none;
}
.fringe-calc .fc-field input[type="number"]::-webkit-inner-spin-button,
.fringe-calc .fc-field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
.fringe-calc .fc-field input:focus { outline: none; border-color: var(--fc-accent); box-shadow: none; }
.fringe-calc.fc-light .fc-field input { background: #f0f2f9; }
.fringe-calc .fc-hint { font-size: 11px; color: var(--fc-muted); margin-top: 3px; line-height: 1.4; }

/* ── Kits ── */
.fringe-calc .fc-kit-group { display: flex; gap: 8px; flex-wrap: wrap; }
.fringe-calc .fc-kit-opt input[type="checkbox"] { display: none; }
.fringe-calc .fc-kit-opt label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 38px;
    border: 1.5px solid var(--fc-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s;
    color: var(--fc-muted);
    background: var(--fc-card2);
    font-family: var(--fc-font);
}
.fringe-calc .fc-kit-opt input:checked + label {
    border-color: var(--fc-accent);
    color: var(--fc-accent);
    background: rgba(255,95,0,.08);
}

/* ── Botão calcular ── */
.fringe-calc .fc-btn-calc {
    width: 100%;
    padding: 14px;
    background: var(--fc-accent);
    color: #fff;
    border: none;
    border-radius: var(--fc-radius);
    font-family: var(--fc-font);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 8px;
    transition: background .18s, transform .1s;
}
.fringe-calc .fc-btn-calc:hover  { background: var(--fc-accent2); }
.fringe-calc .fc-btn-calc:active { transform: scale(.98); }

/* ── Alerta ── */
.fringe-calc .fc-alert {
    background: rgba(255,95,0,.08);
    border: 1px solid rgba(255,95,0,.22);
    border-radius: var(--fc-radius);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--fc-accent2);
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* ── Resultados ── */
.fringe-calc .fc-result { margin-top: 26px; }
.fringe-calc .fc-result-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fc-muted);
    margin-bottom: 14px;
}
.fringe-calc .fc-kit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.fringe-calc .fc-kit-card {
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    overflow: hidden;
}
.fringe-calc.fc-light .fc-kit-card { background: #f5f7fd; }
.fringe-calc .fc-kit-head {
    background: var(--fc-card);
    padding: 11px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--fc-border);
}
.fringe-calc.fc-light .fc-kit-head { background: #fff; }
.fringe-calc .fc-kit-label { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.fringe-calc .fc-kit-preco { font-family: var(--fc-mono); font-size: 19px; font-weight: 500; color: var(--fc-accent2); }
.fringe-calc .fc-kit-body { padding: 11px 15px; }
.fringe-calc .fc-kit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
    font-size: 13px;
}
.fringe-calc.fc-light .fc-kit-row { border-bottom-color: rgba(0,0,0,.05); }
.fringe-calc .fc-kit-row:last-child { border-bottom: none; }
.fringe-calc .fc-kit-row .rk { color: var(--fc-muted); }
.fringe-calc .fc-kit-row .rv { font-family: var(--fc-mono); font-weight: 500; }
.fringe-calc .fc-kit-row .rv.pos { color: var(--fc-green); }
.fringe-calc .fc-kit-row .rv.neg { color: var(--fc-red); }

/* ── Badges ── */
.fringe-calc .fc-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--fc-mono);
}
.fringe-calc .fc-badge-green  { background: rgba(46,204,143,.12);  color: var(--fc-green);  border: 1px solid rgba(46,204,143,.25); }
.fringe-calc .fc-badge-yellow { background: rgba(245,197,66,.10);  color: var(--fc-yellow); border: 1px solid rgba(245,197,66,.25); }
.fringe-calc .fc-badge-red    { background: rgba(224,80,80,.10);   color: var(--fc-red);    border: 1px solid rgba(224,80,80,.25); }

/* ── Tabela ── */
.fringe-calc .fc-table-wrap {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: var(--fc-radius);
    border: 1px solid var(--fc-border);
}
.fringe-calc table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 500px; }
.fringe-calc thead tr { background: var(--fc-card); }
.fringe-calc.fc-light thead tr { background: #eef0f8; }
.fringe-calc thead th {
    padding: 10px 13px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fc-muted);
    border-bottom: 1px solid var(--fc-border);
    white-space: nowrap;
}
.fringe-calc tbody tr { background: var(--fc-surface); transition: background .15s; }
.fringe-calc.fc-light tbody tr { background: #fff; }
.fringe-calc tbody tr:hover { background: var(--fc-card); }
.fringe-calc.fc-light tbody tr:hover { background: #f5f7fd; }
.fringe-calc tbody tr:not(:last-child) td { border-bottom: 1px solid var(--fc-border); }
.fringe-calc tbody td { padding: 9px 13px; font-family: var(--fc-mono); vertical-align: middle; }
.fringe-calc tbody td:first-child {
    font-family: var(--fc-font);
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

/* ── Legenda ── */
.fringe-calc .fc-legenda {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 11px;
    font-family: var(--fc-mono);
    color: var(--fc-muted);
}

.fringe-calc input[type="hidden"] { display: none !important; }

/* ── Seção de ajuda / rodapé ── */
.fringe-calc .fc-ajuda {
    margin-top: 40px;
    border-top: 1px solid var(--fc-border);
    padding-top: 32px;
}
.fringe-calc .fc-ajuda-titulo {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--fc-accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fringe-calc .fc-ajuda-titulo::before {
    content: '';
    display: block;
    width: 3px;
    height: 14px;
    background: var(--fc-accent);
    border-radius: 2px;
    flex-shrink: 0;
}
.fringe-calc .fc-ajuda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.fringe-calc .fc-ajuda-card {
    background: var(--fc-card);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 16px 18px;
}
.fringe-calc .fc-ajuda-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--fc-text);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.fringe-calc .fc-ajuda-card h4 .fc-ic {
    font-size: 16px;
    line-height: 1;
}
.fringe-calc .fc-ajuda-card p {
    font-size: 12px;
    color: var(--fc-muted);
    line-height: 1.6;
    margin: 0;
}
.fringe-calc .fc-ajuda-card strong {
    color: var(--fc-accent2);
    font-weight: 600;
}

/* Bloco como usar */
.fringe-calc .fc-como-usar {
    background: var(--fc-card);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 18px;
    margin-bottom: 14px;
}
.fringe-calc .fc-como-usar h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--fc-text);
    margin: 0 0 12px;
}
.fringe-calc .fc-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fringe-calc .fc-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 12px;
    color: var(--fc-muted);
    line-height: 1.5;
}
.fringe-calc .fc-step-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--fc-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

/* Nota rodapé */
.fringe-calc .fc-nota {
    font-size: 11px;
    color: var(--fc-muted);
    font-family: var(--fc-mono);
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--fc-border);
    line-height: 1.6;
}
.fringe-calc .fc-nota a {
    color: var(--fc-accent);
    text-decoration: none;
}
.fringe-calc .fc-toggle { display: none !important; }

