:root {
    --primary-color: #6f42c1; /* Roxo principal */
    --secondary-color: #8a2be2; /* Roxo mais vibrante para botões e destaques */
    --background-color: #1a0529; /* Fundo roxo bem escuro */
    --text-color: #f0e6ff; /* Cor de texto clara (lavanda) */
    --card-bg-color: #3c1e5a; /* Fundo do card roxo escuro */
    --success-color: #28a745;
    --error-color: #dc3545;
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Auth Pages (Login/Register) --- */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--background-color);
}

.auth-card {
    background-color: var(--card-bg-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.auth-card .logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.auth-card h2 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.auth-card p {
    margin-bottom: 25px;
    color: #c7b3e0;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #5a3a82;
    background-color: #2b1144;
    color: var(--text-color);
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.3);
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: var(--secondary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    text-transform: uppercase;
}

.btn:hover {
    transform: translateY(-2px);
    background-color: #9932cc;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.error-message {
    color: var(--error-color);
    margin-top: 15px;
    font-size: 0.9rem;
    min-height: 1.2em;
}

.success-message {
    color: var(--success-color);
    margin-top: 15px;
    font-size: 0.9rem;
    min-height: 1.2em;
}

.switch-form {
    margin-top: 25px;
}

.switch-form a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

/* --- Dashboard Page --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #1a0529;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-dashboard {
    height: 50px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

#welcome-message {
    font-weight: 600;
    color: var(--text-color);
}

.btn-logout {
    width: auto;
    padding: 8px 15px;
    font-size: 0.9rem;
    background: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    background-color: var(--card-bg-color);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 2.2rem;
}

/* Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    margin-bottom: 20px;
    border-radius: 8px;
}
.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 80s linear infinite;
}
.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 0.9rem;
    color: var(--text-color);
}
.ticker-item::before {
    content: '🎉';
    margin-right: 10px;
}
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.pricing-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.pricing-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.pricing-card .description {
    margin-bottom: 15px;
    color: #c7b3e0;
    flex-grow: 1;
}

.pricing-card .price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.pricing-card.combo {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    grid-column: 1 / -1; /* Ocupa a linha toda */
}

.pricing-card.combo h3, .pricing-card.combo .price, .pricing-card.combo .description {
    color: white;
}

.pricing-card.combo .fa-star {
    color: #ffc107;
}

.btn-buy {
    width: 100%;
    padding: 12px;
    margin-top: auto;
}

.btn-combo {
    background: var(--secondary-color);
    color: white;
}

/* PIX Section */
.pix-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}
.pix-qr, .pix-copy {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    text-align: center;
}

#pix-qr-image {
    max-width: 250px;
    width: 100%;
    margin: 15px auto;
    border: 5px solid var(--card-bg-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.edit-note {
    font-size: 0.8rem;
    color: #9a7eb9;
    margin-top: 5px;
}

.copy-paste-box {
    display: flex;
    margin-top: 15px;
    border: 1px solid #5a3a82;
    border-radius: 8px;
    overflow: hidden;
}
#pix-key {
    flex-grow: 1;
    border: none;
    padding: 10px;
    font-size: 0.9rem;
    background-color: #2b1144;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#pix-key:focus {
    outline: none;
}
#copy-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
}

.copy-success-message {
    color: var(--success-color);
    margin-top: 10px;
    font-weight: 600;
    display: inline-block;
    opacity: 0;
    transition: opacity 0.5s;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .auth-card {
        padding: 25px;
    }
    .dashboard-header {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    .user-info {
        width: 100%;
        justify-content: space-between;
    }
    .container {
        padding: 10px;
    }
    .section {
        padding: 20px;
    }
    .section h2 {
        font-size: 1.8rem;
    }
    .pricing-card.combo {
        grid-column: auto;
    }
    .image-gallery {
         grid-template-columns: repeat(2, 1fr);
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}