/* =================================================================
   1. ESTILOS GERAIS E BODY
   ================================================================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Garante que o conteúdo principal ocupe o espaço restante */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

a {
    color: #39c439;
    text-decoration: none;
}

a:hover {
    color: #55d455;
    text-decoration: underline;
}

/* Botões personalizados (VERDE VIBRANTE) - PROPORCIONAL */
.btn-primary-custom {
    background-color: #39c439;
    border-color: #39c439;
    color: #fff;
    padding: 10px 30px;
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 200px;
    font-size: 1.0em;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.btn-primary-custom:hover {
    background-color: #30aa30;
    border-color: #30aa30;
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

/* Textos de bônus */
.bonus-text {
    font-size: 0.85em;
    color: #4dd0e1;
}

/* =================================================================
   2. ESTILOS DO HEADER (Navbar) - ALINHAMENTO À DIREITA FINAL
   ================================================================= */
.navbar-custom {
    background-color: #222222;
    border-bottom: 1px solid #333333;
    padding: 15px 0;
}

.navbar-brand {
    color: #e0e0e0 !important;
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 30px;
    margin-right: 10px;
}

.nav-link {
    color: #cccccc !important;
    margin-right: 15px;
    font-size: 1.1rem;
}

.nav-link:hover {
    color: #ffffff !important;
}

/* AJUSTE FINAL: FORÇA O PAI (navbar-collapse) A JOGAR O CONTEÚDO PARA A DIREITA */
.navbar-collapse {
    flex-grow: 1;
    display: flex;
    /* ESSENCIAL: Torna o container flexível */
    justify-content: flex-end;
    /* A CHAVE: Empurra o navbar-nav para a extrema direita */
}

.navbar-nav {
    display: flex;
    align-items: center;
    /* Removemos o margin-left: auto para usar justify-content: flex-end no pai */
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.navbar-nav:last-child {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.nav-item.dropdown .dropdown-menu {
    background-color: #2c2c2c;
    border: 1px solid #444444;
}

.nav-item.dropdown .dropdown-item {
    color: #cccccc;
}

.nav-item.dropdown .dropdown-item:hover {
    background-color: #3a3a3a;
    color: #ffffff;
}

/* Estilo para o link Login Steam no menu (agora um botão) */
.nav-link.btn-primary-custom {
    padding: 5px 15px !important;
    margin-left: 15px !important;
    font-size: 0.95rem !important;
    font-weight: bold;
    text-transform: uppercase;
}

.nav-tabs {
    border-bottom: 1px solid #444;
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    color: #ccc;
    border: none;
}

.nav-tabs .nav-link.active {
    background-color: #222;
    border-bottom: 2px solid #39c439;
    color: #fff;
    font-weight: bold;
}

.tab-content {
    padding-top: 15px;
}

#pix-qrcode-container {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#pix-qrcode-container img {
    margin-bottom: 15px;
    max-width: 250px;
    border: 1px solid #444;
    padding: 5px;
    background: white;
}

.mp-input-custom {
    background-color: #2c2c2c;
    border: 1px solid #444;
    color: #fff;
}

/* =================================================================
   3. ESTILOS DA SEÇÃO HERO (Página Inicial)
   ================================================================= */
.hero-section {
    background-image: url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-grow: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-content .btn-primary-custom {
    padding: 15px 45px;
    font-size: 1.25em;
    max-width: 300px;
    width: auto;
}

/* =================================================================
   4. ESTILOS DA SEÇÃO PACOTES 
   ================================================================= */
.section-title {
    font-size: 3rem;
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 50px;
}

.package-card {
    background-color: #222222;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 15px 15px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.package-card:hover {
    transform: translateY(-5px);
    border-color: #39c439;
}

.package-card.popular {
    border: 2px solid #39c439;
    box-shadow: 0 0 20px rgba(57, 196, 57, 0.5);
}

.popular-badge {
    position: absolute;
    top: 25px;
    right: -45px;
    background-color: #39c439;
    color: #fff;
    font-weight: bold;
    padding: 5px 45px;
    font-size: 0.8rem;
    text-transform: uppercase;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.package-card img {
    width: 70px;
    height: 70px;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.package-coins {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 5px;
}

.package-bonus {
    font-size: 0.95rem;
    color: #39c439;
    font-weight: bold;
    margin-bottom: 10px;
}

.package-card .price {
    font-size: 2.8rem;
    font-weight: bold;
    color: #39c439;
    margin-bottom: 5px;
}

.package-card .price small {
    font-size: 0.5em;
    color: #cccccc;
}

.payment-info {
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 10px;
}

.package-card ul {
    display: none;
}

/* =================================================================
   5. ESTILOS DO CARRINHO/CHECKOUT
   ================================================================= */
.checkout-box {
    background-color: #222222;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 30px;
    color: #e0e0e0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #444444;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item h5 {
    color: #e0e0e0;
}

.cart-item .price {
    color: #39c439;
}

.server-select label {
    font-size: 1.1rem;
}

.form-check-input:checked {
    background-color: #39c439;
    border-color: #39c439;
}

/* =================================================================
   6. ESTILOS DO FOOTER
   ================================================================= */
.footer-custom {
    background-color: #222222;
    border-top: 1px solid #333333;
    padding: 20px 0;
    color: #cccccc;
    font-size: 0.9em;
    text-align: center;
    margin-top: auto;
}

.footer-custom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-left: var(--bs-gutter-x, 0.75rem);
    padding-right: var(--bs-gutter-x, 0.75rem);
    margin-left: auto;
    margin-right: auto;
}

.footer-custom a {
    color: #cccccc;
    text-decoration: none;
}

.footer-custom a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* =================================================================
   7. MEDIA QUERIES (Responsividade)
   ================================================================= */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .footer-custom .container {
        flex-direction: column;
    }

    .footer-custom div {
        margin-top: 10px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .package-card {
        padding: 20px 15px;
    }

    .package-card h3 {
        font-size: 1.5rem;
    }

    .package-card .price {
        font-size: 2rem;
    }

    .btn-primary-custom {
        max-width: 180px;
    }
}

