:root {
    /* Cores da Marca */
    --primary-color: #07D292;
    --primary-hover: #06b77f;
    --secondary-color: #012C3F;
    
    /* Cores de Fundo e Texto (Tema Claro) */
    --bg-color: #f4f7f6;
    --text-main: #012C3F;
    --text-muted: #546e7a;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 1);
    
    /* Outros */
    --error-color: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    /* Fundo clean branco/cinza claro */
    background: linear-gradient(135deg, #ffffff, #eef2f5);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow-x: hidden;
}

/* Typography */
h1, h2 {
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.small-text {
    font-size: 0.85rem;
    margin-top: 1rem;
    margin-bottom: 0;
    opacity: 0.8;
}

/* Glassmorphism Classes (Light Theme) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px -10px rgba(1, 44, 63, 0.08); /* Sombra suave usando a cor secundária */
}

.glass-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px -10px rgba(1, 44, 63, 0.05);
}

.glass-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Sections & Layout */
#login-container {
    max-width: 420px;
    width: 100%;
    text-align: center;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lock-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

#main-content {
    max-width: 1000px;
    width: 100%;
    animation: fadeIn 0.6s ease-out forwards;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(7, 210, 146, 0.25);
    border-color: rgba(7, 210, 146, 0.4);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: rgba(7, 210, 146, 0.15);
    padding: 1rem;
    border-radius: 1rem;
}

/* Form Elements */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

input {
    width: 100%;
    padding: 1.1rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(7, 210, 146, 0.2);
}

input::placeholder {
    color: #94a3b8;
}

/* Buttons */
button, .primary-button, .secondary-button {
    cursor: pointer;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

button {
    padding: 1.1rem 1.5rem;
    background: var(--primary-color);
    color: white;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(7, 210, 146, 0.4);
}

.primary-button {
    display: inline-block;
    width: 100%;
    padding: 1.1rem;
    background: var(--primary-color);
    color: white;
}

.primary-button:hover {
    background: var(--primary-hover);
    box-shadow: 0 10px 25px -5px rgba(7, 210, 146, 0.4);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: auto;
}

.secondary-button {
    padding: 1rem;
    background: var(--secondary-color);
    color: white;
    border: 1px solid var(--secondary-color);
}

.secondary-button:hover {
    background: #011f2c; /* Uma versão mais escura do secondary */
}

.secondary-button.outline {
    background: transparent;
    color: var(--secondary-color);
}

.secondary-button.outline:hover {
    background: rgba(1, 44, 63, 0.05);
}

/* Utilities */
.hidden {
    display: none !important;
}

.error {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0;
    font-weight: 500;
}

footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================
   Layout principal (coluna única)
======================== */
main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.apk-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
}

.apk-card .card-content {
    flex: 1;
}

.button-group-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* ========================
   API Card Header
======================== */
.api-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.api-header p {
    margin-bottom: 0;
}

/* ========================
   Instruções e URL
======================== */
.instructions-box {
    background: rgba(7, 210, 146, 0.06);
    border: 1px solid rgba(7, 210, 146, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.instructions-box h3 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.instructions-box ol {
    color: var(--text-muted);
    padding-left: 1.25rem;
    line-height: 2;
    margin-bottom: 1.25rem;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 0.4rem;
    letter-spacing: 0.05em;
}

.badge-post {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.url-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

.url-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.url-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.url-row code {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--secondary-color);
    word-break: break-all;
}

/* ========================
   Tabs (Abas)
======================== */
.tabs-container {
    margin-bottom: 1.5rem;
}

.tabs-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}

.tab-btn {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover {
    color: var(--primary-color);
    transform: none;
    box-shadow: none;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

.tab-pane {
    display: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 0.75rem 0.75rem;
    overflow: hidden;
}

.tab-pane.active {
    display: block;
}

/* ========================
   Blocos de Código
======================== */
.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: #eef2f5;
    border-bottom: 1px solid #e2e8f0;
}

.code-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

pre {
    margin: 0;
    padding: 1.25rem;
    overflow-x: auto;
}

pre code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.7;
}

.field-desc {
    padding: 0.75rem 1.25rem;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

.field-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.field-note:last-child {
    margin-bottom: 0;
}

/* ========================
   Botão Copiar
======================== */
.copy-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: none;
    box-shadow: none;
}

.copy-btn.copied {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

/* ========================
   Tabela de Campos
======================== */
.fields-table-wrapper {
    margin-top: 1.5rem;
}

.fields-table-wrapper h3 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.fields-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.fields-table thead {
    background: var(--secondary-color);
    color: white;
}

.fields-table th {
    padding: 0.9rem 1.25rem;
    text-align: left;
    font-weight: 600;
}

.fields-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-muted);
}

.fields-table tbody tr:hover {
    background: rgba(7, 210, 146, 0.05);
}

.fields-table td code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--primary-hover);
    background: #f0fdf4;
    padding: 0.15rem 0.4rem;
    border-radius: 0.3rem;
}

/* ========================
   Credenciais
======================== */
.credentials-box {
    background: rgba(7, 210, 146, 0.06);
    border: 1px solid rgba(7, 210, 146, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.credentials-box h3 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.credential-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
}

.credential-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.credential-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.credential-row code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--secondary-color);
    word-break: break-all;
}

/* ========================
   Fluxo de Passos
======================== */
.flow-container {
    margin-bottom: 1.5rem;
}

.flow-container h3 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.flow-step:last-child {
    border-bottom: none;
}

.step-number {
    min-width: 2.25rem;
    height: 2.25rem;
    background: var(--primary-color);
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(7, 210, 146, 0.3);
}

.success-step .step-number {
    background: #022c3f;
    box-shadow: 0 4px 12px rgba(1, 44, 63, 0.25);
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.highlight-tag {
    background: rgba(7, 210, 146, 0.15);
    color: var(--primary-hover);
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border-radius: 0.4rem;
}

/* ========================
   Opções de Pagamento
======================== */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid transparent;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s;
}

.payment-option p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.payment-option strong {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.1rem;
}

.payment-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.payment-option.pix {
    border-left-color: var(--primary-color);
}

.payment-option.cartao {
    border-left-color: #6366f1;
}

.payment-option.boleto {
    border-left-color: #f59e0b;
}

/* ========================
   Banner de Aviso
======================== */
.warning-banner {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid #f59e0b;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.6;
}


/* Responsive */
/* CVV hint */
.cvv-hint {
    font-size: 0.82rem;
    color: #6366f1;
    margin-top: 0.4rem;
    margin-bottom: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    body {
        padding: 1.5rem;
    }
    .glass-card {
        padding: 1.5rem;
    }
    .apk-card {
        flex-direction: column;
    }
    .api-header {
        flex-direction: column;
    }
    .url-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .tabs-header {
        flex-wrap: wrap;
    }
    .credentials-grid {
        grid-template-columns: 1fr;
    }
}
