* {
    box-sizing: border-box;
}

:root {
    --bg: #080d10;
    --bg-soft: #0d1317;
    --panel: #0e1519;
    --line: rgba(255, 255, 255, 0.12);
    --text: #f2eee7;
    --muted: #aab0b4;
    --gold: #f2c85c;
    --gold-soft: #d9b65a;
    --green: #62d5a5;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    min-height: 100vh;
    overflow: hidden;
}

/* NAV */

.nav {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;

    height: 64px;
    padding: 0 clamp(24px, 7vw, 92px);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: none;
    align-items: center;
    gap: 10px;
    font-family: Georgia, serif;
    font-weight: 700;
}

.brand-mark {
    color: var(--gold);
    font-size: 26px;
}

.nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 13px;
    color: #dfe2e3;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
}

.nav-links a {
    position: relative;
    padding: 10px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gold);
}

.language {
    border: 0;
    background: transparent;
    color: #ddd;
    cursor: pointer;
    font-size: 21px;
}

/* HERO */

.hero {
    position: relative;
    min-height: 520px;
    padding: 88px clamp(24px, 7vw, 92px) 42px;

    display: grid;
    grid-template-columns: minmax(380px, 0.88fr) minmax(420px, 1.12fr);
    align-items: center;

    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 9, 11, 0.6) 0, rgba(5, 9, 11, 0) 110px),
        linear-gradient(90deg,
            rgba(5, 9, 11, 0.98) 0%,
            rgba(5, 9, 11, 0.92) 34%,
            rgba(5, 9, 11, 0.35) 56%,
            rgba(5, 9, 11, 0) 78%);
    pointer-events: none;
    z-index: 2;
}

.hero-copy {
    position: relative;
    z-index: 4;
    max-width: 610px;
}

.eyebrow {
    color: #d8d9d9;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 2.8vw, 50px);
    line-height: 1.15;
    letter-spacing: 0;
    font-weight: 700;
}

.hero h1 span {
    display: block;
    color: var(--gold);
}

.hero-text {
    margin-top: 22px;
    max-width: 330px;
    color: #c7cacc;
    font-size: 15px;
    line-height: 1.3;
}

.hero-text p {
    margin: 0 0 10px;
}

.hero-text .gold {
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 700;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    border: 0;
    border-radius: 999px;
    background: var(--gold);
    color: #17130a;

    padding: 17px 34px;
    min-width: 240px;

    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.5px;

    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(242, 200, 92, .18);
}

.hero .primary-button {
    margin-top: 14px;
}

.hero-art {
    position: absolute;
    z-index: 1;
    inset: 0 0 0 38%;
    background: url("images/hero.jpg") right bottom / cover no-repeat;
    background-color: #0a1216;

    /* suaviza a borda esquerda da foto para ela se misturar com o fundo */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%);
    mask-image: linear-gradient(90deg, transparent 0, #000 30%);
}

/* GENERAL SECTIONS */

.section {
    padding: 56px clamp(24px, 7vw, 92px);
    border-bottom: 1px solid var(--line);
}

.section-heading h2,
.freedom-copy h2,
.about-section h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.1;
    font-weight: 400;
}

.section-heading h2 {
    font-size: clamp(22px, 2.25vw, 32px);
    letter-spacing: .04em;
}

.freedom-copy h2 {
    font-size: clamp(15px, 1.4vw, 20px);
    letter-spacing: .02em;
}

.about-section h2 {
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 700;
}

.about-section .eyebrow {
    display: block;
}

.section-heading p {
    margin: 12px 0 0;
    color: #aeb4b7;
    font-size: 15px;
    line-height: 1.45;
}

.globe {
    color: var(--gold);
    font-size: 27px;
    vertical-align: 4px;
    margin-right: 8px;
}

/* LEADERBOARD */

.leaderboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: 40px;
    margin-top: 28px;
}

.ranking-card,
.country-highlight,
.impact-card {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.018);
}

.ranking-card {
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.ranking-head,
.country-row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(0, .7fr);
    gap: 10px;
    align-items: center;
}

.ranking-head {
    padding: 0 12px 12px;
    color: #899095;
    font-size: 13px;
}

.country-row {
    min-height: 37px;
    padding: 0 12px;
    border-top: 1px solid rgba(255,255,255,.055);
    color: #e2e4e5;
    font-size: 15px;
}

.country-row:nth-child(odd) {
    background: rgba(255,255,255,.018);
}

.country-row > span:nth-child(3) {
    color: #e2e4e5;
}

.country-row > span:nth-child(4) {
    color: #a9afb3;
    font-size: 13px;
}

.rank {
    color: #8f969b;
}

.medal {
    display: inline-flex;
    width: 26px;
    height: 26px;
    font-size: 13px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
}

.first .medal { background: #f1ca61; color: #1d180b; }
.second .medal { background: #c5cbd0; color: #16191b; }
.third .medal { background: #c47d4e; color: #17110c; }

.country {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* bandeiras (biblioteca flag-icons: o tamanho vem do font-size) */
.flag,
.big-flag {
    flex-shrink: 0;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}

.flag {
    font-size: 22px;
}

.leader-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.country-highlight,
.impact-card {
    padding: 20px;
}

.tiny-label {
    color: #bcc1c4;
    font-size: 12px;
    letter-spacing: .3px;
}

.country-highlight h3 {
    margin: 12px 0 18px;
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 1px;
}

.big-flag {
    font-size: 28px;
    margin-right: 10px;
    vertical-align: -4px;
}

.highlight-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.highlight-stats > div + div {
    border-left: 1px solid var(--line);
    padding-left: 20px;
}

.highlight-stats strong {
    display: block;
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 400;
}

.highlight-stats > div + div {
    text-align: center;
}

.highlight-stats > div + div strong {
    color: #f2eee7;
    font-size: 26px;
}

.highlight-stats small {
    display: block;
    margin-top: 6px;
    color: #8e969a;
    font-size: 11px;
    letter-spacing: .5px;
}

.impact-grid small {
    display: block;
    margin-top: 5px;
    color: #a9afb3;
    font-size: 12px;
}

.highlight-bottom {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-top: 16px;
    margin-top: 17px;
    border-top: 1px solid var(--line);
    color: #d2d5d6;
    font-size: 13px;
}

.highlight-bottom b {
    color: var(--green);
    white-space: nowrap;
}

.impact-card h3 {
    margin: 0 0 17px;
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 400;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.impact-grid > div + div {
    border-left: 1px solid var(--line);
}

.impact-grid span {
    display: block;
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 7px;
}

.impact-grid strong {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #e7e8e8;
}

blockquote {
    margin: 3px 0 0;
    padding: 0 0 0 18px;
    color: #c5c8c9;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 17px;
    line-height: 1.5;
}

/* FREEDOM / PAYMENT */

.freedom-section {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 40px;
    align-items: start;
    padding-top: 48px;
    padding-bottom: 48px;
}

.freedom-copy p {
    margin: 8px 0 22px;
    color: #aeb4b7;
    font-size: 15px;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.amount-buttons button {
    min-width: 0;
    padding: 12px 6px;
    font-size: 15px;
    border: 1px solid rgba(242,200,92,.32);
    border-radius: 9px;
    background: transparent;
    color: #ded4b9;
    cursor: pointer;
    transition: .18s ease;
}

.amount-buttons button:hover,
.amount-buttons button.selected {
    background: rgba(242,200,92,.11);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-1px);
}

.amount-buttons button[data-amount="custom"] {
    font-size: 13px;
}

.custom-input-wrap {
    display: flex;
    align-items: center;
    width: 210px;
    margin-top: 15px;
    border-bottom: 1px solid var(--gold);
    color: var(--gold);
}

.custom-input-wrap input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
    padding: 9px 7px;
}

.custom-input-wrap input::placeholder {
    color: #70777b;
}

.selected-line {
    margin-top: 16px;
    color: #898f93;
    font-size: 12px;
}

.selected-line strong {
    color: var(--gold);
    font-size: 14px;
}

.payment-trigger {
    margin-top: 19px;
    min-width: 185px;
    padding: 13px 25px;
}

.microcopy {
    margin: 12px 0 0 !important;
    font-size: 11px !important;
    opacity: .55;
}

.payment-panel {
    border-left: 1px solid var(--line);
    padding-left: 34px;
}

.payment-panel h3 {
    margin: 0 0 18px;
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .03em;
}

.payment-methods {
    display: flex;
    gap: 12px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    background: rgba(255,255,255,.02);
    color: #ddd;
    text-align: left;
    cursor: pointer;
}

.payment-method:hover,
.payment-method.selected {
    border-color: rgba(242,200,92,.5);
}

.payment-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(242,200,92,.13);
    color: var(--gold);
    font-weight: 900;
}

.payment-icon.paypal {
    background: rgba(80,120,220,.18);
    color: #9bb7ff;
}

.payment-method b,
.payment-method small {
    display: block;
}

.payment-method b {
    font-size: 14px;
    font-weight: 500;
}

.payment-method small {
    margin-top: 4px;
    color: #8c9397;
    font-size: 10px;
}

.payment-note {
    margin-top: 15px;
    color: #687074;
    font-size: 11px;
    line-height: 1.45;
}

/* ABOUT */

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 280px;
}

.about-section h2 {
    max-width: 520px;
}

.about-section {
    align-items: start;
}

.about-copy {
    max-width: 540px;
    color: #aeb4b7;
    font-size: 16px;
    line-height: 1.65;
}

.about-copy p {
    margin: 0 0 16px;
}

.about-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.about-steps li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .025);
    font-size: 14px;
    line-height: 1.3;
}

.about-steps b {
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 400;
}

.about-steps span {
    color: #d8dbdc;
}

/* FAQ */

.faq-section {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: start;
}

.faq-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1.1;
}

.faq-heading .eyebrow {
    display: block;
}

.faq-list details {
    border-top: 1px solid var(--line);
}

.faq-list details:last-child {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    position: relative;
    padding: 18px 40px 18px 0;
    color: #ecebe6;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 24px;
    font-weight: 400;
    transition: transform .2s ease;
}

.faq-list details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-list summary:hover {
    color: #fff;
}

.faq-list details p {
    margin: 0 0 20px;
    max-width: 620px;
    color: #aeb4b7;
    font-size: 15px;
    line-height: 1.65;
}

.faq-list a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* MODAL */

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 20px;
}

.modal.open {
    display: grid;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(10px);
}

/* RESULT — pôster pensado para screenshot */

.modal {
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.close-modal:hover {
    background: rgba(255, 255, 255, .2);
}

.result-wrap {
    margin: auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.result-poster {
    /* largura limitada também pela altura da tela, para o pôster inteiro caber (bom para print) */
    --poster-w: min(560px, 92vw, calc((100vh - 175px) * 0.9375));
    --poster-w: min(560px, 92vw, calc((100dvh - 175px) * 0.9375));

    position: relative;
    container-type: inline-size;
    width: var(--poster-w);
    aspect-ratio: 15 / 16;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, #17303f 0%, #0b1114 100%);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .55);
    color: #fff;
    text-align: center;
}

.poster-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* onde a foto é "ancorada" quando precisa cortar; mude por faixa se quiser (veja abaixo) */
    object-position: var(--poster-focus, 50% 70%);
}

.result-poster.no-image .poster-img {
    display: none;
}

/* degradês para o texto sempre ficar legível, seja qual for a foto */
.result-poster::before,
.result-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.result-poster::before {
    background: linear-gradient(180deg, rgba(2, 14, 30, .42) 0%, rgba(2, 14, 30, 0) 46%);
}

.result-poster::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, 0) 34%);
}

.poster-top {
    position: absolute;
    z-index: 2;
    top: 8.5%;
    left: 5%;
    right: 5%;
}

.result-poster h2 {
    margin: 0;
    font-family: "Permanent Marker", "Marker Felt", "Segoe Print", "Bradley Hand", cursive;
    font-size: 9.6cqw;
    font-style: italic;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: .01em;
    white-space: nowrap;
    text-shadow: 0 .5cqw 2.4cqw rgba(0, 0, 0, .38);
}

.result-amount {
    margin: 2.6cqw 0 0;
    font-size: 4.7cqw;
    font-weight: 500;
    line-height: 1.15;
    text-shadow: 0 .3cqw 1.6cqw rgba(0, 0, 0, .45);
}

.result-country {
    display: inline-flex;
    align-items: center;
    gap: 1.8cqw;
    margin: 2.8cqw 0 0;
    font-size: 3.7cqw;
    font-weight: 500;
    text-shadow: 0 .3cqw 1.4cqw rgba(0, 0, 0, .5);
}

.result-country .fi {
    font-size: 4.4cqw;
    border-radius: .5cqw;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}

.result-country .globe-icon {
    font-size: 4.6cqw;
    line-height: 1;
}

.result-message {
    position: absolute;
    z-index: 2;
    left: 7%;
    right: 7%;
    bottom: 9%;
    margin: 0;
    color: #ffe7b0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 5.1cqw;
    font-style: italic;
    font-weight: 700;
    line-height: 1.18;
    text-wrap: balance;
    text-shadow: 0 .4cqw 2cqw rgba(0, 0, 0, .7);
}

.poster-brand {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 3.4%;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 2.7cqw;
    font-weight: 600;
    letter-spacing: .09em;
    text-shadow: 0 .3cqw 1.2cqw rgba(0, 0, 0, .6);
}

/* Se alguma foto precisar de outro enquadramento, ajuste aqui (exemplos):
.result-poster[data-level="sky"]  { --poster-focus: 50% 40%; }
.result-poster[data-level="tiny"],
.result-poster[data-level="small"] { --poster-focus: 50% 60%; } */

.result-actions {
    position: relative;   /* fica acima da sombra grande do pôster */
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.text-button {
    border: 0;
    background: transparent;
    color: #9da4a8;
    text-decoration: underline;
    cursor: pointer;
    font-size: 12px;
}

/* TOAST */

.toast {
    position: fixed;
    z-index: 200;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 30px);
    opacity: 0;
    pointer-events: none;

    padding: 11px 17px;
    border-radius: 999px;
    background: #f2eee7;
    color: #171717;
    font-size: 12px;
    font-weight: 700;

    transition: .22s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* FOOTER */

.footer {
    min-height: 74px;
    padding: 0 clamp(24px, 7vw, 92px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #8a9195;
    font-size: 11px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e6e2da;
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 700;
}

.footer-brand span {
    color: var(--gold);
    font-size: 22px;
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 26px;
}

.footer a:hover {
    color: #ddd;
}

.footer-tagline span {
    color: var(--gold);
    margin-left: 5px;
}

/* RESPONSIVE */

@media (max-width: 950px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 110px;
        padding-bottom: 280px;
    }

    /* telas menores: texto em cima, foto embaixo */
    .hero-art {
        inset: auto 0 0 0;
        height: 340px;
        background-position: 80% bottom;
        -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 45%);
        mask-image: linear-gradient(180deg, transparent 0, #000 45%);
    }

    .hero::before {
        background: linear-gradient(180deg, rgba(5, 9, 11, 0.6) 0, rgba(5, 9, 11, 0) 110px);
    }

    .hero-copy {
        max-width: 700px;
    }

    .leaderboard-grid,
    .freedom-section,
    .about-section {
        grid-template-columns: 1fr;
    }

    .payment-panel {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 30px;
    }
}

@media (max-width: 650px) {
    .nav {
        height: 68px;
        padding: 0 18px;
    }

    .nav-links {
        gap: 16px;
        font-size: 11px;
    }

    .language {
        display: none;
    }

    .hero {
        padding: 100px 22px 250px;
    }

    .hero-art {
        height: 300px;
    }

    .hero h1 {
        font-size: clamp(28px, 8vw, 40px);
    }

    .amount-buttons {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .footer-brand {
        font-size: 13px;
    }

    .section {
        padding: 42px 18px;
    }

    .ranking-head,
    .country-row {
        grid-template-columns: 38px 1.4fr 1fr;
    }

    .ranking-head > span:last-child,
    .country-row > span:last-child {
        display: none;
    }

    .country-row {
        font-size: 12px;
    }

    .flag {
        font-size: 18px;
    }

    .leader-side {
        margin-top: 5px;
    }

    .highlight-bottom {
        flex-direction: column;
    }

    .payment-methods {
        flex-direction: column;
    }

    .payment-method {
        width: 100%;
    }

    .footer {
        min-height: 110px;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    .footer-links {
        gap: 13px;
        flex-wrap: wrap;
        justify-content: center;
    }

}

/* botão enquanto o pagamento é processado */
.payment-trigger:disabled {
    opacity: .7;
    cursor: progress;
}

/* COMPARTILHAR */

.share-panel {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 8px;
}

.share-panel[hidden] {
    display: none;
}

.share-option {
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.share-option:hover {
    background: rgba(242, 200, 92, .16);
    border-color: var(--gold);
}

.share-hint {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    color: #8f979b;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 420px) {
    .share-panel {
        grid-template-columns: repeat(2, auto);
    }
}

/* garante que o atributo hidden sempre esconde (botões usam display próprio) */
[hidden] {
    display: none !important;
}


/* RANKING DINÂMICO */

.ranking-empty {
    margin: 0;
    padding: 26px 12px;
    border-top: 1px solid rgba(255, 255, 255, .055);
    color: #8f979b;
    font-size: 14px;
    line-height: 1.5;
}

.country-row .country {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* JANELA DE PAGAMENTO (Stripe / PayPal) */

.payment-dialog {
    position: relative;
    z-index: 2;
    margin: auto;
    width: min(460px, 92vw);
    padding: 30px 26px 22px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    background: #0d1417;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .6);
}

.payment-dialog h3 {
    margin: 0 30px 18px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 400;
    letter-spacing: .03em;
}

.close-payment {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.close-payment:hover {
    background: rgba(255, 255, 255, .18);
}

#paymentBody .primary-button {
    width: 100%;
    justify-content: center;
    margin-top: 18px;
}

.payment-loading {
    margin: 0;
    padding: 30px 0;
    color: #9da4a8;
    text-align: center;
    font-size: 14px;
}

.payment-error {
    margin: 14px 0 0;
    color: #ff9b8f;
    font-size: 13px;
    line-height: 1.45;
}

.payment-secure {
    margin: 16px 0 0;
    color: #6f777b;
    font-size: 11px;
    text-align: center;
}

#paypalButtons {
    min-height: 60px;
    margin-top: 4px;
}

@media (max-width: 950px) {
    .faq-section {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 420px) {
    .about-steps {
        grid-template-columns: 1fr;
    }

    .about-steps li {
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }
}


/* PÁGINAS DE TERMOS E PRIVACIDADE */

.legal-page {
    min-height: 100vh;
}

.legal-header,
.legal-footer {
    padding: 26px clamp(24px, 7vw, 92px);
}

.legal-back {
    color: #d9dcdd;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
}

.legal-back:hover {
    color: var(--gold);
}

.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px clamp(24px, 5vw, 40px) 60px;
    color: #b9bfc2;
    font-size: 16px;
    line-height: 1.7;
}

.legal h1 {
    margin: 0;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.1;
}

.legal-updated {
    margin: 10px 0 30px;
    color: #7f878b;
    font-size: 13px;
}

.legal h2 {
    margin: 32px 0 6px;
    color: #ecebe6;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 700;
}

.legal p {
    margin: 0 0 12px;
}

.legal a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-footer {
    display: flex;
    gap: 26px;
    border-top: 1px solid var(--line);
    color: #8a9195;
    font-size: 12px;
}

.legal-footer a:hover {
    color: #ddd;
}

/* trechos que ainda precisam ser preenchidos antes de publicar */
mark.todo {
    padding: 0 4px;
    border-radius: 4px;
    background: #f2c85c;
    color: #1d180b;
}
