/* Reset CSS */
h1,
h2,
h3,
p,
ul,
li,
table {
    margin: 0;
    padding: 0;
}

/* Global Styles */
body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #0F1115;
    color: #F3F4F6;
    padding-top: 60px;
}

/* Header Styles */
header {
    background-color: #0F1115;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

a {
    color: #F3F4F6;
    font-weight: bold;
}

#logo {
    font-size: 24px;
    order: 1;
    max-height: 50px;
}

/* Menu principal — versão revisada */
#menu {
    display:flex;
    align-items:center;
    gap:18px;
    margin-right:20px;
    background-color:#0F1115;
    order:2;
}

#menu .menu-list {
    display:flex;
    align-items:center;
    gap:10px;
    list-style:none;
    margin:0;
    padding:0;
}

#menu .menu-dropdown {
    position:relative;
    margin:0;
    padding:0;
    list-style:none;
}

#menu .menu-trigger {
    appearance:none;
    border:1px solid #2A2E38;
    border-radius:20px;
    background:transparent;
    color:#F3F4F6;
    font:inherit;
    font-weight:700;
    padding:8px 14px;
    line-height:1.2;
    cursor:pointer;
    white-space:nowrap;
    transition:border-color .2s ease, background-color .2s ease, color .2s ease;
}

#menu .menu-trigger i {
    margin-left:7px;
    font-size:12px;
    transition:transform .2s ease;
}

#menu .menu-dropdown:hover > .menu-trigger,
#menu .menu-dropdown:focus-within > .menu-trigger,
#menu .menu-dropdown.open > .menu-trigger {
    border-color:#C8A96B;
    color:#F3F4F6;
    background:#171A20;
}

#menu .menu-dropdown:hover > .menu-trigger i,
#menu .menu-dropdown:focus-within > .menu-trigger i,
#menu .menu-dropdown.open > .menu-trigger i {
    transform:rotate(180deg);
}

#menu .submenu {
    display:block;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    position:absolute;
    top:100%;
    left:0;
    min-width:210px;
    margin:0;
    padding:7px;
    list-style:none;
    background:#1A1E25;
    border:1px solid #2A2E38;
    border-radius:10px;
    box-shadow:0 12px 28px rgba(0,0,0,.45);
    transform:translateY(-4px);
    transition:opacity .15s ease, transform .15s ease, visibility .15s ease;
    z-index:1100;
}

#menu .menu-dropdown:hover > .submenu,
#menu .menu-dropdown:focus-within > .submenu,
#menu .menu-dropdown.open > .submenu {
    visibility:visible;
    opacity:1;
    pointer-events:auto;
    transform:translateY(0);
}

#menu .submenu li {
    display:block;
    margin:0;
    padding:0;
    width:100%;
}

#menu .submenu li a {
    display:block;
    width:100%;
    box-sizing:border-box;
    padding:10px 12px;
    border-radius:7px;
    text-decoration:none;
    white-space:nowrap;
    color:#F3F4F6;
    font-size:14px;
    font-weight:600;
}

#menu .submenu li a:hover,
#menu .submenu li a:focus,
#menu .submenu li a.active {
    color:#0F1115;
    background:#C8A96B;
    outline:none;
}

#menu .submenu::before {
    content:"";
    position:absolute;
    top:-9px;
    left:22px;
    width:16px;
    height:16px;
    background:#1A1E25;
    border-left:1px solid #2A2E38;
    border-top:1px solid #2A2E38;
    transform:rotate(45deg);
}

#user-actions {
    display:flex;
    align-items:center;
    gap:10px;
    margin:0;
    padding:0;
}

#user-actions #cadastro-btn,
#user-actions #login-btn {
    text-decoration:none;
    white-space:nowrap;
}

#mobile-menu {
    display:none;
}

#menu-icon {
    display:none;
}

body.menu-open {
    overflow:hidden;
}

/* Main Styles */

main {
    padding: 20px 20px 20px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex: 1;
}

.pagina {
    margin: 20px auto;
    line-height: 1.6;

    max-width: 100%;
    margin-bottom: 20px;
    background-color: #1A1E25;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #2A2E38;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.box {
    width: 30%;
    margin-bottom: 20px;
    background-color: #1A1E25;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid #C8A96B;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.box h2 {
    color: #C8A96B;
    font-size: 18px;
    margin-bottom: 10px;
}

.box table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.box table
 {
    border-top: 1px solid #2A2E38;
}

.box th,
.box td {   
    padding: 12px;
    text-align: left;
}

.box a {
    display: block;
    margin-top: 10px;
    text-decoration: none;
    color: #0F1115;
    font-weight: bold;
    padding: 8px 12px;
    border: 2px solid #C8A96B;
    border-radius: 20px;
    background-color: #C8A96B;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 14px;
    width: 70px;
    text-align: center;
}

.box a:hover {
    background-color: #b8965a;
    color: #0F1115;
}

.toggle-btn span {
    height: 3px;
    width: 25px;
    background-color: #F3F4F6;
    margin-bottom: 5px;
    display: block;
    transition: all 0.3s ease;
}

.toggle-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.toggle-btn.active span:nth-child(2) {
    opacity: 0;
}

.toggle-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {

    header {
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        flex-direction: row;
        justify-content: space-between;
        padding: 10px;
    }

    #logo {
        order: 1;
        max-height: 40px;
    }

    #menu {
        display:none;
    }

    #menu-icon {
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        order:2;
        position:relative;
        z-index:1002;
        margin-right:10px;
        width:42px;
        height:42px;
        padding:0;
        border:0;
        border-radius:8px;
        background:transparent;
        cursor:pointer;
        pointer-events:auto;
        -webkit-tap-highlight-color:transparent;
        touch-action:manipulation;
    }

    #menu-icon:focus-visible {
        outline:2px solid #C8A96B;
        outline-offset:2px;
    }

    #menu-icon span {
        pointer-events:none;
    }

    #mobile-menu {
        display:block;
        position:fixed;
        top:60px;
        right:-100%;
        width:min(360px, 88vw);
        height:calc(100vh - 60px);
        padding:20px 18px 30px;
        box-sizing:border-box;
        background:#0F1115;
        border-left:1px solid #2A2E38;
        overflow-y:auto;
        transition:right .25s ease;
        z-index:999;
        box-shadow:-12px 0 30px rgba(0,0,0,.28);
    }

    #mobile-menu.active {
        right:0;
    }

    #mobile-menu nav {
        display:block;
    }

    .mobile-user-actions {
        display:flex;
        justify-content:flex-end;
        align-items:center;
        gap:10px;
        padding-bottom:18px;
        margin-bottom:8px;
        border-bottom:1px solid #2A2E38;
    }

    .mobile-user-actions a {
        display:inline-block;
        padding:9px 12px;
        border:1px solid #2A2E38;
        border-radius:7px;
        color:#C8A96B;
        text-decoration:none;
        font-weight:700;
    }

    .mobile-user-actions a#login-btn {
        background:#C8A96B;
        color:#0F1115;
    }

    .mobile-menu-section {
        border-bottom:1px solid #242832;
    }

    .mobile-menu-trigger {
        width:100%;
        display:flex;
        align-items:center;
        justify-content:space-between;
        padding:16px 4px;
        border:0;
        background:transparent;
        color:#F3F4F6;
        font:inherit;
        font-weight:700;
        font-size:17px;
        text-align:left;
        cursor:pointer;
    }

    .mobile-menu-trigger i {
        color:#C8A96B;
        transition:transform .2s ease;
    }

    .mobile-menu-trigger[aria-expanded="true"] i {
        transform:rotate(180deg);
    }

    .mobile-submenu {
        display:none;
        list-style:none;
        margin:0 0 8px;
        padding:0 0 8px 10px;
    }

    .mobile-submenu.open {
        display:block;
    }

    .mobile-submenu li {
        margin:0;
        padding:0;
    }

    .mobile-submenu a {
        display:block;
        padding:10px 8px;
        color:#D7DAE0;
        text-decoration:none;
        font-size:16px;
        line-height:1.35;
        border-radius:6px;
    }

    .mobile-submenu a:hover,
    .mobile-submenu a:focus {
        color:#C8A96B;
        background:#171A20;
    }

    main {
        padding-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        flex: 1;
    }

    .box {
        width: 100%;
    }
}


@media screen and (min-width: 769px) {

    #logo {
        margin-left: 15px;
    }
}

/* Footer Styles */
footer {
    background-color: #0F1115;
    color: #9CA3AF;
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

.livro-info {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.livro-info img {
    max-height: 300px;
    margin-right: 15px;
}

.descricao-livro {
    max-width: 600px;
}


/*tabela das paginas dos ranks */

.tabela {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tabela th, .tabela td {
    border: 1px solid #2A2E38;
    padding: 8px;
    text-align: left;
}

.tabela th {
    background-color: #C8A96B;
    color: #0F1115;
}

.tabela tr:nth-child(even) {
    background-color: #1A1E25;
}

.tabela tr:hover {
    background-color: #22262F;
}

.tabela-scroll {
    overflow-x: auto;
    width: 100%;
    margin: 0 auto;
}

.highlight {
    background-color: #2E2008;
    border: 1px solid #C8A96B !important;
}

/* Adicione este trecho de código no seu arquivo de estilo (por exemplo, estilo_v2.css) */

#user-actions {
    display: flex;
    align-items: center;
}

#user-actions a#circle-btn {
    background-color: #0F1115;
    color: #F3F4F6;
    display: inline-block;
    padding: 0px;
    margin-left: -26px;
    text-decoration: none;
    border: 0px solid #fff;
    border-radius: 0px;
    text-align: center;
    width: 0px;
}

#user-actions a {
    display: inline-block;
    padding: 10px;
    margin-left: 10px;
    text-decoration: none;
    color: #C8A96B;
    border: 1px solid #2A2E38;
    border-radius: 5px;
    text-align: center;
    width: 100px;
}

#user-actions a#login-btn {
    background-color: #C8A96B;
    color: #0F1115;
}

#user-actions a#cadastro-btn:hover {
    background-color: #C8A96B;
    color: #0F1115;
}

.breve-resumo p {
    margin-top: 5px;
}

.descricao-livro p {
    margin-top: 10px;
}
    
.atencao {
    color:#6e6e6e;
    text-align: center;
    width: 100%;
    font-size: small;
    background-color: #fff787;
    padding: 5px;
    text-align: center;
    margin-top: 10px;
    border-radius: 5px;
}

/* cadastro */
.container {
    margin-top: 15px;
    max-width: 600px;
    margin: 0 auto;
}

@media screen and (min-width: 769px) {
    .container {
        min-width: 0px;
    }
}

label {
    display: block;
    margin-bottom: 5px;
}

input, select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}


.form-check-input {
    width: 10%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.form-check {
    display: flex;
    align-items: center;
}

button {
    background-color: #0F1115;
    color: #F3F4F6;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}

button:hover {
    background-color: #C8A96B;
    color: #0F1115;
}

input[type="submit"] {
    background-color: #0F1115;
    color: #F3F4F6;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}

input[type="submit"]:hover {
    background-color: #C8A96B;
    color: #0F1115;
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #dc3545;
    border-radius: 4px;
    color: #dc3545;
    background-color: #f8d7da;
}

#user-circle {
    background-color: #C8A96B;
    color: #0F1115;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
}

#user-circle a {
    color: inherit;
    text-decoration: none;
}

/*Mobile menu v2*/



/* ============================================================
   FERRAMENTA "ANALISE UMA ACAO"
   ============================================================ */

   .analise-pagina {
    width: 100%;
    max-width: 1180px;
}

.analise-hero {
    text-align: center;
    max-width: 850px;
    margin: 10px auto 30px auto;
}

.analise-kicker {
    display: inline-block;
    color: #C8A96B;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.analise-hero h1 {
    font-size: 34px;
    margin-bottom: 10px;
}

.analise-hero p {
    color: #BFC3CC;
    line-height: 1.6;
}

.analise-form {
    max-width: 620px;
    margin: 25px auto 0 auto;
    text-align: left;
}

.analise-form label {
    font-weight: 600;
}

.analise-form-linha {
    display: flex;
    gap: 10px;
}

.analise-form-linha input {
    margin: 0;
    background: #0F1115;
    color: #F3F4F6;
    border: 1px solid #3A3F4A;
    border-radius: 6px;
    font-size: 18px;
}

.analise-form-linha button {
    width: 170px;
    flex-shrink: 0;
    background: #C8A96B;
    color: #0F1115;
    font-weight: 700;
    border-radius: 6px;
}

.analise-form-linha button:hover {
    background: #E0C486;
}

.analise-atualizacao {
    font-size: 12px;
    color: #777D88 !important;
    margin-top: 10px;
}

.analise-alerta {
    max-width: 850px;
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #8A4B4B;
    border-radius: 8px;
    background: #241719;
}

.analise-alerta p {
    margin-top: 7px;
    color: #BFC3CC;
}

.destaque-acao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    border: 1px solid #C8A96B;
}

.analise-label {
    color: #C8A96B;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.destaque-acao h2 {
    font-size: 30px;
    margin: 5px 0;
}

.destaque-acao p {
    color: #9EA4AF;
}

.preco-atual {
    text-align: right;
}

.preco-atual span {
    display: block;
    color: #9EA4AF;
    font-size: 13px;
}

.preco-atual strong {
    display: block;
    color: #F3F4F6;
    font-size: 25px;
    margin-top: 4px;
}

.analise-titulo-secao {
    color: #C8A96B;
    margin: 30px 0 12px 0;
}

.analise-metricas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.analise-metricas div {
    background: #14171D;
    border: 1px solid #2A2E38;
    border-radius: 7px;
    padding: 13px;
}

.analise-metricas span {
    display: block;
    color: #8F96A2;
    font-size: 12px;
}

.analise-metricas strong {
    display: block;
    margin-top: 5px;
    font-size: 17px;
}

.metodos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.metodo-card {
    background: #14171D;
    border: 1px solid #2A2E38;
    border-radius: 8px;
    padding: 18px;
}

.metodo-card.metodo-hever {
    border-color: #C8A96B;
}

.metodo-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.metodo-cabecalho h3 {
    font-size: 19px;
}

.resultado-ok,
.resultado-neutro {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
    padding: 5px 7px;
    border-radius: 4px;
}

.resultado-ok {
    color: #9BD6A0;
    background: #17251A;
    border: 1px solid #315C37;
}

.resultado-neutro {
    color: #B2B6BE;
    background: #20232A;
    border: 1px solid #383D47;
}

.metodo-dado {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 0;
    border-top: 1px solid #252932;
}

.metodo-dado span {
    color: #9298A4;
}

.metodo-dado strong {
    color: #F3F4F6;
}

.metodo-card > a {
    display: inline-block;
    margin-top: 13px;
    color: #C8A96B;
    text-decoration: none;
    font-size: 13px;
}

.metodo-card > a:hover {
    text-decoration: underline;
}

.analise-cta {
    text-align: center;
    margin: 35px 0 20px 0;
    padding: 30px 20px;
    border: 1px solid #2A2E38;
    border-radius: 8px;
    background: #14171D;
}

.analise-cta h2 {
    margin: 5px auto 10px auto;
    max-width: 650px;
}

.analise-cta p {
    color: #A5ABB5;
    max-width: 650px;
    margin: 0 auto 20px auto;
}

.analise-cta-botao {
    display: inline-block;
    background: #C8A96B;
    color: #0F1115;
    padding: 11px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
}

.analise-cta-botao:hover {
    background: #E0C486;
}

.analise-disclaimer {
    color: #777D88;
    font-size: 11px;
    line-height: 1.5;
    border-top: 1px solid #252932;
    padding-top: 15px;
    margin-top: 20px;
}

.analise-como-funciona {
    max-width: 1000px;
    margin: 35px auto;
    text-align: center;
}

.analise-como-funciona h2 {
    color: #C8A96B;
    margin-bottom: 10px;
}

.analise-como-funciona > p {
    color: #A5ABB5;
    margin-bottom: 25px;
}

.metodo-resumo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.metodo-resumo-grid div {
    background: #14171D;
    border: 1px solid #2A2E38;
    border-radius: 7px;
    padding: 15px 10px;
}

.metodo-resumo-grid strong {
    display: block;
    color: #F3F4F6;
    margin-bottom: 5px;
}

.metodo-resumo-grid span {
    color: #8F96A2;
    font-size: 12px;
}

@media screen and (max-width: 768px) {
    .analise-pagina {
        padding: 15px;
    }

    .analise-hero h1 {
        font-size: 27px;
    }

    .analise-form-linha {
        flex-direction: column;
    }

    .analise-form-linha button {
        width: 100%;
    }

    .destaque-acao {
        align-items: flex-start;
        flex-direction: column;
    }

    .preco-atual {
        text-align: left;
    }

    .analise-metricas {
        grid-template-columns: repeat(2, 1fr);
    }

    .metodos-grid {
        grid-template-columns: 1fr;
    }

    .metodo-resumo-grid {
        grid-template-columns: 1fr;
    }
}



/* ============================================================
   HOMEPAGE V2 - HEVER INVEST
   Acrescentar ao final de css/estilo_v6.css
   ============================================================ */

   .home-v2 {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

/* Hero */
.home-hero {
    width: 100%;
    min-height: 510px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 20px 80px;
    border-bottom: 1px solid #2A2E38;
    background:
        radial-gradient(circle at 50% 20%, rgba(200,169,107,.10), transparent 42%);
}

.home-hero-conteudo {
    max-width: 900px;
}

.home-kicker {
    display: inline-block;
    color: #C8A96B;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 12px;
}

.home-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    margin: 0 auto 20px;
    letter-spacing: -1px;
}

.home-hero h1 span {
    display: block;
    color: #C8A96B;
}

.home-hero-subtitulo {
    max-width: 720px;
    margin: 0 auto;
    color: #B6BBC5;
    font-size: 18px;
    line-height: 1.7;
}

.home-hero-botoes {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.home-btn {
    display: inline-block;
    padding: 13px 21px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .3px;
}

.home-btn-principal {
    background: #C8A96B;
    color: #0F1115;
}

.home-btn-principal:hover {
    background: #E0C486;
    color: #0F1115;
}

.home-btn-secundario {
    border: 1px solid #4A4F5A;
    color: #F3F4F6;
}

.home-btn-secundario:hover {
    border-color: #C8A96B;
    color: #C8A96B;
}

.home-hero-nota {
    color: #6F7580;
    font-size: 11px;
    margin-top: 12px;
}

/* Sections */
.home-section-cabecalho {
    max-width: 800px;
    margin: 0 auto 28px;
    text-align: center;
}

.home-section-cabecalho h2 {
    font-size: 30px;
    margin: 0 0 10px;
}

.home-section-cabecalho p {
    color: #A9AFBA;
    line-height: 1.6;
    margin: 0;
}

/* Busca */
.home-analise {
    margin: 25px 0;
    padding: 55px 25px;
    background: #14171D;
    border: 1px solid #2A2E38;
    border-radius: 10px;
    text-align: center;
}

.home-busca-acao {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.home-busca-acao input {
    margin: 0;
    height: 48px;
    font-size: 17px;
    background: #0F1115;
    color: #F3F4F6;
    border: 1px solid #3A3F4A;
    border-radius: 5px;
    padding: 0 15px;
}

.home-busca-acao button {
    width: 160px;
    flex-shrink: 0;
    margin: 0;
    height: 48px;
    border-radius: 5px;
    background: #C8A96B;
    color: #0F1115;
    font-weight: 700;
}

.home-busca-acao button:hover {
    background: #E0C486;
}

.home-busca-exemplos {
    margin-top: 14px;
    color: #6F7580;
    font-size: 12px;
}

.home-busca-exemplos a {
    color: #C8A96B;
    margin-left: 10px;
    text-decoration: none;
}

/* Métodos */
.home-metodos {
    padding: 60px 10px;
}

.home-metodos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.home-metodo-card {
    position: relative;
    padding: 25px 20px;
    min-height: 220px;
    background: #14171D;
    border: 1px solid #2A2E38;
    border-radius: 8px;
}

.home-metodo-card:hover {
    border-color: #C8A96B;
}

.home-metodo-numero {
    color: #4D535E;
    font-size: 12px;
    font-weight: 700;
}

.home-metodo-card h3 {
    color: #C8A96B;
    font-size: 20px;
    margin: 18px 0 10px;
}

.home-metodo-card p {
    color: #9EA4AF;
    line-height: 1.55;
    font-size: 14px;
}

.home-metodo-card a {
    position: absolute;
    bottom: 20px;
    color: #F3F4F6;
    text-decoration: none;
    font-size: 13px;
}

.home-metodo-card a:hover {
    color: #C8A96B;
}

/* Hever */
.home-hever {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 30px;
    align-items: center;
    padding: 55px 30px;
    margin: 10px 0 40px;
    background: #14171D;
    border: 1px solid #C8A96B;
    border-radius: 10px;
}

.home-hever-texto h2 {
    font-size: 31px;
    line-height: 1.2;
    margin: 0 0 15px;
}

.home-hever-texto p {
    color: #A9AFBA;
    line-height: 1.7;
}

.home-fluxo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 25px 0;
    color: #B9BEC8;
    font-size: 13px;
}

.home-fluxo span,
.home-fluxo strong {
    padding: 7px 9px;
    border: 1px solid #343944;
    border-radius: 5px;
}

.home-fluxo b {
    color: #C8A96B;
}

.home-fluxo strong {
    color: #0F1115;
    background: #C8A96B;
    border-color: #C8A96B;
}

.home-hever-ranking {
    background: #0F1115;
    border: 1px solid #303540;
    border-radius: 8px;
    overflow: hidden;
}

.home-ranking-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px;
    border-bottom: 1px solid #2A2E38;
}

.home-ranking-topo span {
    display: block;
    color: #C8A96B;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.home-ranking-topo strong {
    display: block;
    margin-top: 5px;
}

.home-ranking-topo i {
    color: #6C727D;
}

.home-ranking-linha {
    display: grid;
    grid-template-columns: 45px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 14px 17px;
    border-bottom: 1px solid #242832;
}

.home-ranking-posicao {
    color: #6E7480;
    font-size: 12px;
}

.home-ranking-papel {
    font-weight: 700;
    letter-spacing: 1px;
}

.home-ranking-upside {
    font-size: 13px;
}

.positivo {
    color: #82C78A;
}

.negativo {
    color: #D87979;
}

.home-ranking-rodape {
    padding: 13px 17px;
    color: #777E89;
    font-size: 11px;
}

/* Rankings */
.home-rankings {
    padding: 30px 10px 60px;
}

.home-rank-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.home-rank-card {
    background: #14171D;
    border: 1px solid #2A2E38;
    border-radius: 8px;
    padding: 18px;
}

.home-rank-card h3 {
    margin: 0 0 3px;
    color: #C8A96B;
}

.home-rank-descricao {
    display: block;
    color: #737A86;
    font-size: 11px;
    margin-bottom: 14px;
}

.home-rank-card table {
    width: 100%;
    border-collapse: collapse;
}

.home-rank-card td {
    padding: 9px 2px;
    border-top: 1px solid #252932;
    font-size: 13px;
}

.home-rank-card td:last-child {
    text-align: right;
}

.home-rank-card > a {
    display: block;
    margin-top: 13px;
    color: #F3F4F6;
    font-size: 12px;
    text-decoration: none;
}

.home-rank-card > a:hover {
    color: #C8A96B;
}

/* Público */
.home-publico {
    padding: 55px 10px;
    border-top: 1px solid #252932;
}

.home-publico-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.home-publico-grid > div {
    text-align: center;
    padding: 25px;
    background: #14171D;
    border: 1px solid #2A2E38;
    border-radius: 8px;
}

.home-publico-grid i {
    color: #C8A96B;
    font-size: 25px;
}

.home-publico-grid h3 {
    margin: 13px 0 8px;
}

.home-publico-grid p {
    color: #9299A4;
    font-size: 14px;
    line-height: 1.6;
}

/* CTA final */
.home-final-cta {
    text-align: center;
    padding: 70px 20px;
    margin-top: 15px;
    border-top: 1px solid #2A2E38;
}

.home-final-cta h2 {
    font-size: 32px;
    margin: 0 auto 10px;
}

.home-final-cta p {
    color: #9FA5B0;
    margin-bottom: 25px;
}

.home-link-secundario {
    display: block;
    color: #C8A96B;
    margin-top: 15px;
    font-size: 13px;
    text-decoration: none;
}

.home-disclaimer {
    color: #6F7580;
    font-size: 10px;
    line-height: 1.55;
    border-top: 1px solid #252932;
    padding: 15px 10px 25px;
    text-align: center;
}

/* Mobile */
@media screen and (max-width: 900px) {
    .home-metodos-grid,
    .home-rank-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-hever {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 600px) {
    .home-hero {
        min-height: 470px;
        padding: 45px 15px 55px;
    }

    .home-hero h1 {
        font-size: 34px;
    }

    .home-hero-subtitulo {
        font-size: 15px;
    }

    .home-hero-botoes {
        flex-direction: column;
    }

    .home-btn {
        width: 100%;
        text-align: center;
    }

    .home-analise {
        padding: 40px 15px;
    }

    .home-busca-acao {
        flex-direction: column;
    }

    .home-busca-acao button {
        width: 100%;
    }

    .home-metodos,
    .home-rankings,
    .home-publico {
        padding-left: 0;
        padding-right: 0;
    }

    .home-metodos-grid,
    .home-rank-grid,
    .home-publico-grid {
        grid-template-columns: 1fr;
    }

    .home-hever {
        padding: 35px 20px;
    }

    .home-hever-texto h2,
    .home-final-cta h2 {
        font-size: 26px;
    }

    .home-fluxo {
        gap: 5px;
    }

    .home-fluxo span,
    .home-fluxo strong {
        font-size: 11px;
    }
}

/* ============================================================
   CORREÇÃO RESPONSIVA MOBILE — V2
   Compatibilidade com estilo_v6.css existente
   ============================================================ */

html, body { max-width: 100%; overflow-x: hidden; }
main:has(.home-v2) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}
.home-v2, .home-v2 * { box-sizing: border-box; }
.home-v2 { min-width: 0; max-width: 1240px; overflow: hidden; }
.home-hero, .home-analise, .home-metodos, .home-hever,
.home-rankings, .home-publico, .home-final-cta,
.home-section-cabecalho, .home-hero-conteudo, .home-hever-texto,
.home-hever-ranking, .home-busca-acao, .home-fluxo { min-width: 0; max-width: 100%; }
.home-busca-acao input { min-width: 0; width: auto; flex: 1 1 auto; }
.home-busca-acao button { flex: 0 0 160px; }
.home-metodo-card, .home-rank-card, .home-publico-grid > div {
    min-width: 0;
    overflow-wrap: anywhere;
}
.home-rank-card table { table-layout: fixed; width: 100%; }
.home-rank-card td { overflow-wrap: anywhere; }
.home-ranking-linha { min-width: 0; }
.home-ranking-papel { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

@media screen and (max-width: 768px) {
    main {
        width: 100%; max-width: 100%; min-width: 0;
        padding-left: 10px; padding-right: 10px;
        overflow-x: hidden;
    }
    .home-v2 { width: 100%; max-width: 100%; min-width: 0; margin: 0; }
    .home-hero { width: 100%; padding: 42px 14px 48px; }
    .home-hero-conteudo { width: 100%; max-width: 100%; }
    .home-hero h1 { font-size: clamp(30px, 8vw, 38px); letter-spacing: -.6px; overflow-wrap: anywhere; }
    .home-hero-subtitulo { width: 100%; font-size: 15px; line-height: 1.55; }
    .home-hero-botoes { width: 100%; }
    .home-btn { max-width: 100%; white-space: normal; }
    .home-analise { width: 100%; margin: 18px 0; padding: 34px 14px; }
    .home-section-cabecalho { width: 100%; }
    .home-section-cabecalho h2 { font-size: 25px; line-height: 1.2; }
    .home-busca-acao { display: flex; flex-direction: column; width: 100%; gap: 8px; }
    .home-busca-acao input, .home-busca-acao button { width: 100%; max-width: 100%; flex: 0 0 auto; }
    .home-busca-acao input { height: 48px; margin-bottom: 0; }
    .home-busca-acao button { height: 48px; margin-top: 0; }
    .home-busca-exemplos { line-height: 2; }
    .home-busca-exemplos a { display: inline-block; margin-left: 5px; }
    .home-metodos { width: 100%; padding: 42px 0; }
    .home-metodos-grid, .home-rank-grid, .home-publico-grid {
        width: 100%; grid-template-columns: minmax(0, 1fr);
    }
    .home-metodo-card { width: 100%; min-height: 0; padding: 22px 18px 58px; }
    .home-metodo-card a { bottom: 18px; left: 18px; }
    .home-hever {
        width: 100%; margin: 0 0 28px; padding: 30px 16px;
        grid-template-columns: minmax(0, 1fr); gap: 24px;
    }
    .home-hever-texto h2 { font-size: 25px; overflow-wrap: anywhere; }
    .home-fluxo { justify-content: flex-start; gap: 5px; }
    .home-fluxo span, .home-fluxo strong { max-width: 100%; font-size: 11px; overflow-wrap: anywhere; }
    .home-hever-ranking { width: 100%; max-width: 100%; }
    .home-ranking-linha { grid-template-columns: 35px minmax(0, 1fr) auto; gap: 7px; padding: 13px 12px; }
    .home-ranking-upside { white-space: nowrap; font-size: 12px; }
    .home-rankings { width: 100%; padding: 20px 0 45px; }
    .home-rank-card { width: 100%; padding: 16px; }
    .home-publico { width: 100%; padding: 42px 0; }
    .home-publico-grid > div { width: 100%; padding: 22px 16px; }
    .home-final-cta { width: 100%; padding: 48px 10px; }
    .home-final-cta h2 { font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
    .home-disclaimer { width: 100%; overflow-wrap: anywhere; }
}

@media screen and (max-width: 380px) {
    main { padding-left: 6px; padding-right: 6px; }
    .home-hero { padding-left: 10px; padding-right: 10px; }
    .home-hero h1 { font-size: 29px; }
    .home-hero-subtitulo { font-size: 14px; }
    .home-fluxo { gap: 4px; }
    .home-fluxo span, .home-fluxo strong { padding: 6px 7px; font-size: 10px; }
    .home-ranking-upside { font-size: 11px; }
}

/* V5.7 - perfil no menu mobile: neutraliza o estilo dos links de acao */
@media (max-width: 900px) {
    #mobile-menu .mobile-user-actions #user-circle {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 0;
        border-radius: 50%;
        background-color: #C8A96B;
        color: #0F1115;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        box-sizing: border-box;
    }

    #mobile-menu .mobile-user-actions #user-circle a#circle-btn {
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: #0F1115;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1;
        box-sizing: border-box;
        font-weight: 700;
        text-decoration: none;
    }

    #mobile-menu .mobile-user-actions #user-circle a#circle-btn:hover,
    #mobile-menu .mobile-user-actions #user-circle a#circle-btn:focus {
        background: transparent;
        color: #0F1115;
        border: 0;
    }
}
