/* ========== RESET E ESTILOS GLOBAIS ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #f0f2f5;
    color: #1a1f2e;
    line-height: 1.6;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========== CABEÇALHO ========== */
header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #eaeef2;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.header-controls {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.language-toggle {
    display: flex;
    gap: 0.25rem;
    background: #f1f4f9;
    padding: 0.25rem;
    border-radius: 2rem;
}

.lang-btn {
    border: none;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    background: transparent;
    color: #4a5568;
    transition: all 0.2s;
}

.lang-btn.active {
    background: white;
    color: #1e3c72;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-primary {
    background: #1e3c72;
    color: white;
}

.btn-primary:hover {
    background: #15355e;
}

.btn-secondary {
    background: #f1f4f9;
    color: #1e293b;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

#user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ========== CONTEÚDO PRINCIPAL ========== */
main {
    flex: 1;
    padding: 2.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ========== PLANOS (PRICING) ========== */
.pricing-container {
    text-align: center;
    padding: 1rem 0 3rem;
}

.pricing-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0b1a2f;
    letter-spacing: -1px;
}

.pricing-subtitle {
    color: #5a6b7a;
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid #eef2f6;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px rgba(0,0,0,0.1);
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #0b1a2f;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #1e3c72;
    margin: 1.5rem 0 1rem;
}

.price span {
    font-size: 1rem;
    color: #6c7a8a;
    font-weight: 400;
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
    padding: 0 0.5rem;
}

.pricing-card li {
    margin: 0.8rem 0;
    color: #33475b;
    display: flex;
    align-items: center;
}

.pricing-card li::before {
    content: "✓";
    color: #1e3c72;
    font-weight: 700;
    margin-right: 0.8rem;
    background: #e8edf5;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.paypal-button-container {
    margin-top: 1.5rem;
    min-height: 45px;
}

/* ========== DASHBOARD (FERRAMENTAS) ========== */
.dashboard {
    background: white;
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
}

.dashboard h2 {
    margin-bottom: 2.5rem;
    color: #0b1a2f;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: #f9fbfd;
    border-radius: 1.5rem;
    padding: 1.8rem;
    border: 1px solid #e2e9f2;
    transition: box-shadow 0.2s;
}

.tool-card:hover {
    box-shadow: 0 12px 25px rgba(0,0,0,0.05);
}

.tool-card h3 {
    margin-bottom: 1.2rem;
    color: #1e3c72;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.tool-card h3::before {
    content: "◆";
    color: #1e3c72;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.tool-input, .tool-textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #d0ddee;
    border-radius: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    background: white;
    transition: border 0.2s;
}

.tool-input:focus, .tool-textarea:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30,60,114,0.1);
}

.tool-textarea {
    min-height: 100px;
    resize: vertical;
}

.tool-btn {
    background: #1e3c72;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.tool-btn:hover {
    background: #15355e;
}

.tool-output {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #e2e9f2;
    font-size: 0.95rem;
    white-space: pre-wrap;
    min-height: 80px;
    color: #2c3e50;
    line-height: 1.5;
}

/* ========== RODAPÉ ========== */
footer {
    background: white;
    padding: 1.5rem;
    text-align: center;
    color: #6b7b8c;
    border-top: 1px solid #eaeef2;
    font-size: 0.9rem;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .pricing-grid, .tools-grid {
        grid-template-columns: 1fr;
    }
    .pricing-title {
        font-size: 2rem;
    }
    .dashboard {
        padding: 1.5rem;
    }
}