@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-Regular-e920e6b0.woff2') format('woff2'),
        url('fonts/Metropolis-Regular-b19e8951.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-Medium-f3a73873.woff2') format('woff2'),
        url('fonts/Metropolis-Medium-91cf497b.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-SemiBold-695870d1.woff2') format('woff2'),
        url('fonts/Metropolis-SemiBold-bd9cc6de.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-Bold-9a712a2c.woff2') format('woff2'),
        url('fonts/Metropolis-Bold-cd1f8382.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-ExtraBold-0c9ff630.woff2') format('woff2'),
        url('fonts/Metropolis-ExtraBold-f79c09f3.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-Black-bcd0ced5.woff2') format('woff2'),
        url('fonts/Metropolis-Black-ece44382.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    font-family: 'Metropolis', sans-serif;
}

body {
    background-color: #35363A;
    display: flex;
    justify-content: center;
    color: #333;
}

.app-wrapper {
    width: 100%;
    max-width: 380px;
    background-color: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

/* Header */
.coupon-bar {
    background: #c0392b;
    color: #ffffff;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

#coupon-timer {
    font-weight: 700;
}

.top-header {
    background: #ffffff;
    padding: 10px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.garena-logo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 12px;
}

.garena-logo {
    width: 28px;
    height: auto;
}

.garena-text {
    color: #e50000;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
}

.header-divider {
    width: 1px;
    height: 30px;
    background-color: #eaeaea;
    margin-right: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: #333;
    line-height: 1.2;
}

.user-profile svg {
    width: 28px;
    height: 28px;
    cursor: pointer;
}

.hg-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #cfcfcf;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    position: relative;
}

.hg-circle .g-mini {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Base App Section */
.app-section {
    display: none;
}

.app-section.active {
    display: block;
}

/* Banner */
.main-banner {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.carousel-slides {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-banner .banner-visual {
    position: relative;
    z-index: 2;
    height: 100%;
    background: linear-gradient(90deg, rgba(3, 101, 154, 0.1), rgba(12, 187, 208, 0.3));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    padding: 0 16px;
}

.banner-inner {
    color: #fff;
    font-style: italic;
    width: 80%;
}

.free-fire-logo-top {
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 14px;
}

.banner-inner h1 {
    font-weight: 900;
    font-size: 20px;
    line-height: 1.1;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.4);
    margin-bottom: 24px;
    color: #fff;
}

.banner-bottom {
    position: absolute;
    bottom: 4px;
    right: 8px;
}

.terms {
    font-size: 6px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.carousel-dots .dot {
    width: 6px;
    height: 6px;
    background: #d8d8d8;
    border-radius: 50%;
    cursor: pointer;
}

.carousel-dots .dot.active {
    background: #e50000;
}

/* Games Section */
.games-container {
    padding: 16px 16px 12px 16px;
    position: relative;
    background: #fdfdfd;
}

.bg-triangle {
    position: absolute;
    top: 0;
    right: 0;
    width: 130px;
    height: 35px;
    background-color: #ffdda1;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.7;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.games-grid {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 65px;
}

.game-icon-wrapper {
    position: relative;
    width: 65px;
    height: 65px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    margin-bottom: 8px;
    border: 2px solid transparent;
}

.game-icon-wrapper>img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    background: white;
}

.garena-small-logo {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.garena-small-logo img {
    width: 12px;
}

.game-card.active .game-icon-wrapper {
    border-color: #e50000;
}

.check-badge {
    position: absolute;
    top: -2px;
    left: -2px;
    background: #e50000;
    width: 22px;
    height: 22px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    border-top-left-radius: 9px;
    display: none;
}

.check-badge svg {
    position: absolute;
    top: 1px;
    left: 1px;
}

.game-card.active .check-badge {
    display: block;
}

.game-name {
    font-size: 11px;
    text-align: center;
    color: #555;
    line-height: 1.2;
}

.game-card.active .game-name {
    color: #e50000;
    font-weight: 700;
}

.game-card.unavailable {
    pointer-events: none;
    opacity: 0.5;
}

.game-card.unavailable .game-icon-wrapper {
    position: relative;
}

.unavailable-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    text-align: center;
    padding: 2px 0;
    border-bottom-left-radius: 9px;
    border-bottom-right-radius: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Security Banner */
.security-banner-wrapper {
    padding: 0 16px;
    margin-bottom: 12px;
}

.security-banner {
    display: flex;
    align-items: center;
    background: url('https://codex.garena.com/images/ff_bg_br.jpg') no-repeat center;
    background-size: cover;
    border-radius: 4px;
    padding: 8px 10px;
    position: relative;
    overflow: hidden;
    height: 60px;
}

.security-banner::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(82, 59, 58, 0.9) 0%, rgba(162, 114, 105, 0.7) 40%, rgba(82, 59, 58, 0) 100%);
    z-index: 1;
}

.hot-ribbon {
    position: absolute;
    top: 6px;
    left: -16px;
    background: #ff3b30;
    color: white;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 16px;
    transform: rotate(-45deg);
    z-index: 3;
}

.ff-icon-sec {
    position: relative;
    z-index: 2;
    margin-left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ff-icon-sec>img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    background: white;
}

.ff-icon-sec .garena-mini {
    position: absolute;
    bottom: -3px;
    right: -3px;
    background: white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ff-icon-sec .garena-mini img {
    width: 8px;
}

.sec-text-col {
    position: relative;
    z-index: 2;
    margin-left: 10px;
}

.sec-title {
    color: white;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.sec-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* SECTION 1 - PRE LOGIN Styles */
.free-item-container {
    margin: 4px 16px 20px 16px;
    background: #f2f3f5;
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.free-item-bg-logo {
    position: absolute;
    right: 35%;
    top: 50%;
    transform: translateY(-50%) skewX(-15deg);
    font-size: 100px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 3px #e4e6eb;
    pointer-events: none;
}

.free-item-bg-logo::before {
    content: "F";
}

.free-item-left {
    z-index: 2;
    flex: 1;
}

.free-item-left h3 {
    font-size: 15px;
    color: #222;
    margin-bottom: 2px;
}

.free-item-left p {
    font-size: 11px;
    color: #888;
    margin-bottom: 12px;
}

.btn-resgatar {
    background: #da291c;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(218, 41, 28, 0.3);
}

.free-item-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.chest-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    position: relative;
}

.chest-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #19273c;
    border-radius: 4px;
    clip-path: polygon(15% 0, 85% 0, 100% 20%, 100% 80%, 85% 100%, 15% 100%, 0 80%, 0 20%);
}

.question-mark {
    color: white;
    font-size: 22px;
    font-weight: bold;
    position: relative;
    z-index: 5;
}

.chest-label {
    font-size: 9px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-i {
    width: 10px;
    height: 10px;
    border: 1px solid #777;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    color: #777;
    font-family: serif;
}

.login-container {
    padding: 0 16px 40px 16px;
}

/* Step Headers general */
.step-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.step-badge {
    background: #d32f2f;
    color: white;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    border-radius: 3px;
    border-bottom-right-radius: 6px;
    flex-shrink: 0;
}

.step-header h2 {
    font-size: 16px;
    color: #222;
    font-weight: bold;
    flex: 1;
}

.login-box {
    background: #f7f7f7;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    padding: 16px;
    padding-bottom: 0px;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
}

.help-icon {
    width: 14px;
    height: 14px;
    color: #666;
}

.input-group-row {
    display: flex;
    height: 42px;
    margin-bottom: 24px;
}

.input-group-row input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 0 12px;
    font-size: 13px;
    outline: none;
    border-right: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    color: #333;
}

.input-group-row input::placeholder {
    color: #aaa;
}

.btn-login-submit {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 0 18px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.login-feedback {
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
}

.login-feedback.error {
    color: #d32f2f;
}

.btn-login-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.social-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eaeaea;
    padding-top: 16px;
}

.social-text {
    font-size: 11px;
    color: #888;
    line-height: 1.4;
}

.social-buttons {
    display: flex;
    gap: 8px;
}

.social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.google {
    background: white;
}

.social-btn.x-comp {
    background: white;
}

.social-btn.vk {
    background: #0077ff;
}

/* ======================================================== */
/* SECTION 2 - LOGGED IN STYLES */
/* ======================================================== */

/* 1 Conta */
.user-account-container {
    padding: 0 16px 16px 16px;
    margin-top: 10px;
}

.btn-sair {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #d32f2f;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px;
}

.account-box {
    background: #f7f7f7;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
}

.hg-circle-large {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #cfcfcf;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    position: relative;
}

.g-mini-large {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.user-text {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

/* 2 Valor de Recarga */
.diamond-packages-container {
    padding: 0 16px 8px 16px;
}

.tabs-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tab-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: white;
    border: 1px solid #ddd;
    color: #444;
    text-align: center;
}

.tab-btn.active {
    border-color: #d32f2f;
    color: #d32f2f;
    font-weight: 600;
}

.diamonds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.diamond-btn {
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    background: white;
}

.diamond-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background: url('images/point.png') no-repeat center;
    background-size: contain;
}

/* Box Diamantes */
.box-diamantes {
    position: relative;
    border: 2px solid rgb(216, 16, 20);
    border-radius: .375rem;
    display: flex;
    align-items: center;
    background-color: rgb(255, 244, 244);
    padding: 0 18px 3px;
    min-height: 90px;
    max-width: 270px;
    margin: 0px 15px 0;
}
.box-diamantes .content {
    width: 100%;
    position: relative;
}
.box-diamantes .content span {
    font-size: .875rem;
    line-height: 22px;
    font-weight: 600;
    color: #374151;
    display: block;
}
.box-diamantes .content h3 {
    display: flex;
    align-items: center;
    padding: 2px 0 3px;
    line-height: 1;
    font-size: 1.025rem;
    font-weight: 500;
    margin: 6px 0 0;
}
.box-diamantes .content h3 img {
    margin-right: 5px;
}
.box-diamantes .content .bonus {
    display: flex;
    align-items: center;
    color: rgb(255, 122, 0);
    font-size: .875rem;
    line-height: 1;
    font-weight: 500;
}
.box-diamantes .content .bonus span {
    margin-right: 5px;
    color: rgb(255, 122, 0);
    font-size: .875rem;
    line-height: 1;
    font-weight: 500;
    display: inline;
}

/* Ofertas Especiais */
.pacotes {
    padding: 0 16px 20px 16px;
}

.pacotes .title-pacotes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0 16px;
}

.pacotes .title-pacotes strong:first-child {
    font-size: 1rem;
    font-weight: 700;
    color: rgb(117, 117, 117);
    white-space: nowrap;
}

.pacotes .title-pacotes strong:last-child {
    font-weight: 700;
    font-size: 0.8rem;
    color: rgb(216, 16, 20);
    white-space: nowrap;
}

.pacotes .title-pacotes .line {
    flex: 1;
    margin: 0 12px;
    height: 1px;
    background-color: #eee;
}

.lista-pacotes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lista-pacotes .pacote {
    position: relative;
    border: 1px solid rgb(211, 211, 211);
    border-radius: 6px;
    padding: 6px;
    width: calc(50% - 5px);
    text-align: center;
    cursor: pointer;
    background-color: #fff;
}

.lista-pacotes .pacote.selecionado {
    border: 2px solid rgb(216, 16, 20);
    background-color: rgb(255, 244, 244);
}

.pacote .check-compra {
    position: absolute;
    right: 6px;
    top: 5px;
    color: rgb(216, 16, 20);
    opacity: 0;
    visibility: hidden;
    transition: all .2s linear;
}

.pacote.selecionado .check-compra {
    opacity: 1;
    visibility: visible;
}

.lista-pacotes .pacote .content-pacote .image {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 4px;
}

.lista-pacotes .pacote .content-pacote .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lista-pacotes .pacote .content-pacote span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    line-height: 16px;
    font-weight: 500;
    text-align: center;
    margin: 8px 0 2px;
}

.lista-pacotes .pacote .content-pacote .price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.lista-pacotes .pacote .content-pacote .price span {
    font-size: .7rem;
    opacity: 0.6;
    text-decoration: line-through;
    margin: 0;
}

.lista-pacotes .pacote .content-pacote .price strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgb(216, 16, 20);
}

/* 3 Pagamento */
.payment-methods-container {
    padding: 0 16px 20px 16px;
}

.payment-desc {
    font-size: 11px;
    color: #777;
    margin-bottom: 20px;
    line-height: 1.5;
}

.payment-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-card {
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    position: relative;
    background: #fffdfd;
    cursor: pointer;
}

.payment-card.active {
    border-color: #d32f2f;
}

.active-check {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #d32f2f;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.payment-card:not(.active) .active-check {
    display: none;
}

.pay-logo-box {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-right: 16px;
}

.pay-logo-box img {
    width: 100%;
    object-fit: contain;
}

.pay-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pay-price {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.pay-bonus {
    font-size: 13px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pay-promo-badge {
    background: #df3646;
    color: white;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* FIXED CHECKOUT FOOTER */
.checkout-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 380px;
    background: white;
    border-top: 1px solid #eee;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    z-index: 50;
}

.checkout-left {
    display: flex;
    flex-direction: column;
}

.checkout-items {
    font-size: 13px;
    font-weight: bold;
    color: #222;
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.checkout-total {
    font-size: 12px;
    color: #333;
}

.checkout-total span {
    font-weight: bold;
    color: #d32f2f;
    font-size: 14px;
    margin-left: 4px;
}

.btn-compre-agora {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.btn-compre-agora:hover {
    background: #b71c1c;
}

/* LOADING OVERLAY */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.loading-overlay.hidden {
    display: none;
}

.loading-overlay .top-header {
    position: relative;
    z-index: 1;
}

.loading-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 24px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #d32f2f;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

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

.loading-text {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    margin: 0;
}

.loading-sub {
    font-size: 13px;
    color: #777;
    text-align: center;
    margin: 0;
    max-width: 260px;
}

.loading-footer {
    text-align: center;
}

.loading-footer p {
    font-size: 11px;
    color: #aaa;
    margin: 0 0 4px;
}

.loading-footer-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 4px;
}

.loading-footer span {
    font-size: 11px;
    color: #aaa;
}

/* SECTION 3 — CHECKOUT */
.s3-banner {
    position: relative;
    height: 110px;
    overflow: hidden;
}

.s3-banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.s3-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.s3-back-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.s3-game-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -36px;
    position: relative;
    z-index: 2;
    padding-bottom: 8px;
}

.s3-game-icon-wrap {
    position: relative;
    width: 72px;
    height: 72px;
}

.s3-game-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

.s3-hot-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    background: #e50000;
    color: white;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 3px;
}

.s3-garena-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.s3-game-title {
    font-size: 17px;
    font-weight: bold;
    margin: 10px 0 0;
}

.s3-summary {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 0 16px 12px;
    padding: 12px 16px;
}

.s3-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.s3-total {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
}

.s3-sub {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.s3-diamonds {
    display: flex;
    align-items: center;
    color:black;
    font-weight: 600;
}

.s3-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 6px 0;
}

.s3-note {
    font-size: 11px;
    color: #777;
    margin: 10px 0 0;
    line-height: 1.5;
}

.s3-details {
    margin: 0 16px 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.s3-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}

.s3-detail-row:last-child {
    border-bottom: none;
}

.s3-detail-label {
    color: #444;
}

.s3-detail-value {
    font-weight: 600;
    color: #222;
}

.s3-form {
    padding: 0 16px 16px;
}

.s3-field {
    margin-bottom: 14px;
}

.s3-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}

.s3-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    color: #222;
}

.s3-input:focus {
    border-color: #aaa;
}

.s3-terms {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin: 4px 0 16px;
}

.s3-link {
    color: #1a7fd4;
    text-decoration: none;
}

.s3-btn-prosseguir {
    width: 100%;
    padding: 15px;
    background: #e8a0a0;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: not-allowed;
    letter-spacing: 0.3px;
    transition: background 0.2s;
    pointer-events: none;
}

.s3-btn-prosseguir.ready {
    background: #d32f2f;
    cursor: pointer;
    pointer-events: auto;
}

.s3-input.valid {
    border-color: #2e7d32;
}

.s3-input.invalid {
    border-color: #d32f2f;
}

.s3-footer {
    text-align: center;
    padding: 16px;
}

.s3-footer p {
    font-size: 11px;
    color: #aaa;
    margin: 0 0 4px;
}

.s3-footer-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 4px;
}

.s3-footer span {
    font-size: 11px;
    color: #aaa;
}

/* SECTION 4 — PIX */
.s4-pix-block {
    padding: 16px 16px 0;
}

.s4-pix-title {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 16px;
    color: #222;
}

.s4-qr-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.s4-qr-img {
    width: 180px;
    height: 180px;
    display: block;
}

.s4-company {
    margin-bottom: 12px;
}

.s4-company-name {
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.s4-company-cnpj {
    font-size: 12px;
    color: #555;
}

.s4-code-box {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 12px;
    font-size: 11px;
    color: #444;
    word-break: break-all;
    line-height: 1.6;
    margin-bottom: 0;
}

.s4-btn-wrap {
    padding: 16px;
    position: sticky;
    bottom: 0;
    background: white;
}

.s4-btn-copiar {
    width: 100%;
    padding: 15px;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.s4-btn-copiar:active {
    background: #b71c1c;
}

.s4-loading {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 40px 0;
}
.s4-status {
    text-align: center; font-size: 13px; padding: 12px 16px;
    margin: 0 16px 12px; border-radius: 6px; display: none;
}
.s4-status:not(:empty) { display: block; }
.s4-status.paid {
    background: #e8f5e9; color: #2e7d32; font-weight: 600;
    border: 1px solid #a5d6a7;
}