/* =========================================================
   NET.COM - Campanha Torcida Premiada
   Arquivo em UTF-8. Manter este arquivo salvo como UTF-8 + LF.
   ========================================================= */

:root {
    --green-950: #031109;
    --green-900: #051f0f;
    --green-850: #072a14;
    --green-800: #0a351b;
    --green-neon: #00ff6a;
    --yellow: #ffea00;
    --white: #ffffff;
    --muted: #a7b8b0;
    --border: rgba(255, 255, 255, 0.14);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', Arial, sans-serif;
}

html {
    min-height: 100%;
    background: var(--green-950);
}

body {
    min-height: 100vh;
    color: var(--white);
    background: var(--green-950);
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

.hidden {
    display: none !important;
}

.transition-soft {
    transition: transform .35s ease, opacity .35s ease, box-shadow .35s ease;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.35);
}

::-webkit-scrollbar-thumb {
    background: var(--yellow);
    border-radius: 999px;
}

.brand-header {
    position: fixed;
    top: 24px;
    left: 32px;
    z-index: 70;
}

.brand-logo {
    width: 142px;
    max-width: 34vw;
    opacity: .9;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35));
    transition: opacity .25s ease, transform .25s ease;
}

.brand-logo:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.site-main {
    min-height: 100vh;
}

.site-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 60;
    padding: 14px 18px;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .82);
    background: rgba(3, 17, 9, .9);
    border-top: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
}

.portal-vouchers {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100vh;
    padding: 132px 20px 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(0, 25, 12, .10), rgba(0, 0, 0, .42)),
        url('https://netcomfibra.com.br/wp-content/uploads/2026/05/fundo-horizontal-menor.png') center center / cover no-repeat;
    background-attachment: fixed;
}

.portal-vouchers::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 234, 0, .16), transparent 28%),
        radial-gradient(circle at 78% 28%, rgba(0, 255, 106, .15), transparent 30%),
        radial-gradient(circle at 50% 86%, rgba(255, 255, 255, .08), transparent 22%);
    pointer-events: none;
}

.portal-vouchers::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(0, 0, 0, .24), transparent 26%, transparent 74%, rgba(0, 0, 0, .24));
    pointer-events: none;
}

.search-panel {
    position: relative;
    z-index: 5;
    width: min(720px, 100%);
    padding: 120px 54px 46px;
    text-align: center;
    border-radius: 30px;
    background: rgba(7, 42, 20, .86);
    border: 1px solid var(--border);
    box-shadow: var(--shadow), inset 0 1px 1px rgba(255, 255, 255, .07);
    backdrop-filter: blur(18px);
}

.logo-simbolo {
    position: absolute;
    top: -118px;
    left: 50%;
    width: 282px;
    max-width: 64%;
    transform: translateX(-50%);
    pointer-events: none;
    filter:
        drop-shadow(0 14px 22px rgba(0, 0, 0, .38))
        drop-shadow(0 0 18px rgba(255, 234, 0, .22));
}

.logo-simbolo img,
.dashboard-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.campaign-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: var(--green-neon);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2.4px;
}

.campaign-badge.compact {
    margin-bottom: 16px;
}

.search-title {
    margin-bottom: 14px;
    color: var(--white);
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -1.3px;
}

.descricao-card {
    max-width: 570px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, .9);
    font-size: 18px;
    line-height: 1.65;
}

.form-wrap {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.portal-vouchers input {
    width: min(365px, 100%);
    min-height: 58px;
    padding: 17px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .62);
    outline: none;
    background: #fff;
    color: #0b4d1f;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    appearance: none;
}

.portal-vouchers input:focus {
    border-color: var(--green-neon);
    box-shadow: 0 0 0 4px rgba(0, 255, 106, .2);
}

.portal-vouchers input::placeholder {
    color: rgba(11, 77, 31, .58);
}

.btn-wrap {
    position: relative;
    display: inline-block;
    padding: 2px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--yellow);
}

.btn-wrap::before {
    content: "";
    position: absolute;
    inset: -200%;
    background: conic-gradient(transparent 0deg, transparent 300deg, var(--green-neon) 330deg, #fff 345deg, var(--green-neon) 360deg);
    animation: neonRun 2.4s linear infinite;
}

.btn-wrap::after {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: 1;
    border-radius: 16px;
    background: var(--yellow);
}

@keyframes neonRun {
    to { transform: rotate(360deg); }
}

.portal-vouchers button,
.copy-code {
    cursor: pointer;
}

.portal-vouchers .btn-wrap button {
    position: relative;
    z-index: 2;
    min-height: 58px;
    padding: 17px 42px;
    border-radius: 16px;
    background: var(--yellow);
    color: #0b4d1f;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .5px;
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
    box-shadow: 0 10px 22px rgba(255, 234, 0, .22);
}

.portal-vouchers .btn-wrap button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(255, 234, 0, .4), 0 0 26px rgba(0, 255, 106, .22);
}

.portal-vouchers .btn-wrap button:disabled {
    cursor: wait;
    opacity: .7;
}

.form-message {
    width: min(520px, 100%);
    margin: 18px auto 0;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.form-message.error {
    color: #ffd4d4;
    background: rgba(255, 70, 70, .14);
    border: 1px solid rgba(255, 120, 120, .22);
}

.form-message.success {
    color: #caffe0;
    background: rgba(0, 255, 106, .12);
    border: 1px solid rgba(0, 255, 106, .22);
}

.privacy-note {
    max-width: 540px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
    line-height: 1.55;
}

.dashboard-view {
    position: relative;
    z-index: 5;
    width: min(1240px, 100%);
    animation: fadeIn .55s ease-out;
}

.dashboard-logo {
    width: 230px;
    max-width: 58vw;
    margin: 0 auto 30px;
    filter: drop-shadow(0 0 24px rgba(0, 255, 106, .26));
}

.result-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(330px, .9fr);
    gap: 22px;
    margin-bottom: 22px;
}

.hero-copy,
.hero-stat-grid,
.campaign-callout,
.summary-panel,
.codes-panel {
    background: rgba(7, 42, 20, .93);
    border: 1px solid var(--border);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .26);
    backdrop-filter: blur(14px);
}

.hero-copy {
    padding: 32px;
    border-radius: 28px;
}

.hero-copy h2 {
    color: var(--white);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -1.2px;
}

.hero-copy h2 span {
    color: var(--green-neon);
}

.document-line {
    margin-top: 12px;
    color: var(--muted);
    font-size: 15px;
}

.document-line strong {
    color: var(--white);
}

.hero-description {
    max-width: 660px;
    margin-top: 18px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.75;
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 18px;
    border-radius: 28px;
}

.stat-card {
    position: relative;
    min-height: 145px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .055);
    overflow: hidden;
}

.stat-card.wide {
    grid-column: 1 / -1;
    min-height: 112px;
    background: linear-gradient(135deg, rgba(0, 255, 106, .13), rgba(255, 234, 0, .08));
}

.stat-card p {
    max-width: 150px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2.4px;
}

.stat-card strong {
    color: var(--white);
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1;
    font-weight: 900;
}

.stat-card.wide strong {
    display: block;
    font-size: clamp(25px, 3vw, 34px);
}

.stat-card.wide strong span {
    color: var(--green-neon);
}

.stat-icon {
    position: absolute;
    right: 18px;
    bottom: 16px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--green-850);
    font-size: 26px;
    font-weight: 900;
}

.highlight-green .stat-icon {
    background: var(--green-neon);
    box-shadow: 0 0 26px rgba(0, 255, 106, .24);
}

.highlight-yellow .stat-icon {
    background: var(--yellow);
    box-shadow: 0 0 26px rgba(255, 234, 0, .18);
}

.campaign-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding: 22px 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(7, 42, 20, .96), rgba(10, 53, 27, .92));
}

.campaign-callout h3 {
    margin-bottom: 6px;
    color: var(--white);
    font-size: 18px;
    font-weight: 900;
}

.campaign-callout p {
    color: rgba(255, 255, 255, .72);
    line-height: 1.55;
}

.secondary-action {
    flex: 0 0 auto;
    padding: 15px 22px;
    border-radius: 16px;
    background: var(--yellow);
    color: #0b4d1f;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .4px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.secondary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 234, 0, .18);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(300px, .85fr) minmax(0, 1.7fr);
    gap: 22px;
}

.summary-panel,
.codes-panel {
    border-radius: 28px;
    overflow: hidden;
}

.summary-panel {
    padding: 24px;
}

.summary-panel h3,
.panel-header h3 {
    color: var(--white);
    font-size: 18px;
    font-weight: 900;
}

.summary-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    list-style: none;
}

.summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .1);
}

.summary-item.muted {
    opacity: .54;
}

.summary-copy strong {
    display: block;
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
}

.summary-copy span {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, .56);
    font-size: 12px;
    line-height: 1.4;
}

.summary-item b {
    flex: 0 0 auto;
    color: var(--white);
    font-size: 27px;
    font-weight: 900;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.panel-header p {
    margin-top: 6px;
    color: rgba(255, 255, 255, .58);
    font-size: 13px;
    line-height: 1.5;
}

.count-badge {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .11);
    font-size: 13px;
    font-weight: 800;
}

.table-wrap {
    max-height: 430px;
    overflow: auto;
}

.codes-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.codes-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(3, 17, 9, .96);
    backdrop-filter: blur(10px);
}

.codes-table th {
    padding: 15px 20px;
    color: rgba(255, 255, 255, .54);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.codes-table td {
    padding: 16px 20px;
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    vertical-align: middle;
}

.codes-table tr:hover td {
    background: rgba(255, 255, 255, .045);
}

.codes-table code {
    color: var(--green-neon);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .5px;
}

.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.reference-badge {
    padding: 7px 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .68);
    background: rgba(255, 255, 255, .06);
    font-size: 11px;
    font-weight: 700;
}

.copy-code {
    padding: 7px 11px;
    border-radius: 999px;
    color: #0b4d1f;
    background: var(--yellow);
    font-size: 11px;
    font-weight: 900;
    transition: transform .18s ease, opacity .18s ease;
}

.copy-code:hover {
    transform: translateY(-1px);
}

.empty-state {
    padding: 34px 20px !important;
    text-align: center;
    color: rgba(255, 255, 255, .64) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .result-hero,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .hero-stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-card.wide {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .brand-header {
        top: 18px;
        left: 18px;
    }

    .brand-logo {
        width: 112px;
    }

    .portal-vouchers {
        justify-content: flex-start;
        padding: 132px 16px 92px;
        background-attachment: scroll;
    }

    .search-panel {
        padding: 94px 20px 28px;
        border-radius: 24px;
    }

    .logo-simbolo {
        top: -80px;
        width: 205px;
        max-width: 72%;
    }

    .search-title {
        font-size: 30px;
    }

    .descricao-card {
        font-size: 15px;
    }

    .form-wrap,
    .btn-wrap,
    .portal-vouchers .btn-wrap button,
    .portal-vouchers input,
    .secondary-action {
        width: 100%;
    }

    .dashboard-logo {
        width: 188px;
        margin-bottom: 22px;
    }

    .hero-copy,
    .summary-panel,
    .panel-header {
        padding: 20px;
    }

    .hero-stat-grid {
        grid-template-columns: 1fr;
    }

    .campaign-callout {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .count-badge {
        width: 100%;
        text-align: center;
    }

    .codes-table th,
    .codes-table td {
        padding: 14px 14px;
        font-size: 12px;
    }

    .codes-table th:nth-child(3),
    .codes-table td:nth-child(3) {
        min-width: 160px;
    }

    .site-footer {
        font-size: 11px;
        padding: 12px 14px;
    }
}

@media (max-width: 420px) {
    .portal-vouchers {
        padding-left: 12px;
        padding-right: 12px;
    }

    .campaign-badge {
        letter-spacing: 1.6px;
        font-size: 10px;
    }

    .stat-card {
        min-height: 130px;
    }
}

/* =========================================================
   HOTFIX UI - Cards de métricas + painel de vouchers
   Corrige sobreposição do ícone no total de números e
   mantém a tabela de vouchers ocupando a área útil do card.
   ========================================================= */

/* Métricas do topo: evita que o ícone fique sobre o número */
.stat-card:not(.wide) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    column-gap: 12px;
    align-items: end;
    overflow: hidden;
}

.stat-card:not(.wide) p {
    grid-column: 1 / -1;
    max-width: none;
    margin-bottom: 14px;
}

.stat-card:not(.wide) strong {
    grid-column: 1;
    align-self: end;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(38px, 3.35vw, 52px);
    letter-spacing: -1.6px;
    position: relative;
    z-index: 2;
}

.stat-card:not(.wide) .stat-icon {
    position: static;
    grid-column: 2;
    align-self: end;
    justify-self: end;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    z-index: 1;
}

/* Painel de vouchers: evita sobra visual no rodapé do container */
.dashboard-grid {
    align-items: stretch;
}

.summary-panel,
.codes-panel {
    height: 100%;
}

.codes-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.codes-panel .panel-header {
    flex: 0 0 auto;
}

.table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;
    overflow-y: auto;
    overflow-x: auto;
}

.codes-table {
    width: 100%;
    min-width: 720px;
}

.codes-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
}

@media (min-width: 1081px) {
    .codes-panel {
        min-height: 620px;
        max-height: calc(100vh - 220px);
    }
}

@media (max-width: 1180px) {
    .stat-card:not(.wide) strong {
        font-size: clamp(34px, 5vw, 48px);
    }

    .stat-card:not(.wide) .stat-icon {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        font-size: 24px;
    }
}

@media (max-width: 760px) {
    .stat-card:not(.wide) strong {
        font-size: clamp(40px, 14vw, 58px);
    }

    .codes-panel,
    .summary-panel {
        height: auto;
    }

    .table-wrap {
        max-height: 520px !important;
    }
}

@media (max-width: 420px) {
    .stat-card:not(.wide) {
        column-gap: 10px;
    }

    .stat-card:not(.wide) strong {
        font-size: clamp(34px, 13vw, 48px);
        letter-spacing: -1.2px;
    }

    .stat-card:not(.wide) .stat-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        font-size: 22px;
    }
}
