/* ===== ESTILOS ESPECÍFICOS PARA A PÁGINA DE PERFIL ===== */

/* Variáveis de cores específicas para o perfil */
:root {
    --profile-primary: #2e7d32;
    --profile-secondary: #4caf50;
    --profile-accent: #81c784;
    --profile-light: #e8f5e8;
    --profile-dark: #1b5e20;
    --profile-gradient: linear-gradient(135deg, #2e7d32 0%, #4caf50 50%, #81c784 100%);
    --profile-shadow: 0 8px 32px rgba(46, 125, 50, 0.15);
    --profile-border-radius: 16px;
    --profile-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SEÇÃO DE PERFIL PRINCIPAL ===== */
.profile-section {
    padding: 2rem 0 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f5e8 100%);
    min-height: 100vh;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--profile-border-radius);
    box-shadow: var(--profile-shadow);
    overflow: hidden;
    position: relative;
}

.profile-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--profile-gradient);
}

/* ===== HEADER DO PERFIL ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 3rem 2.5rem;
    background: var(--profile-gradient);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* ===== ÁREA DO AVATAR ===== */
.profile-avatar {
    position: relative;
    text-align: center;
    flex-shrink: 0;
}

.profile-avatar i {
    font-size: 6rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.profile-avatar .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--profile-transition);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.profile-avatar .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.profile-avatar .btn i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* ===== INFORMAÇÕES DO USUÁRIO ===== */
.profile-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.profile-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.profile-info p {
    margin-bottom: 0.75rem;
    opacity: 0.95;
    font-size: 1.1rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-info p i {
    font-size: 1rem;
    opacity: 0.8;
}

/* ===== ESTATÍSTICAS ===== */
.profile-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--profile-transition);
    min-width: 100px;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== ABAS DE NAVEGAÇÃO ===== */
.profile-tabs {
    display: flex;
    background: var(--white);
    border-bottom: 1px solid #e0e7ff;
    position: relative;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.profile-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    transition: var(--profile-transition);
    border-bottom: 3px solid transparent;
    position: relative;
    white-space: nowrap;
}

.tab-btn:hover {
    background: var(--profile-light);
    color: var(--profile-primary);
}

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

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--profile-primary);
}

/* ===== CONTEÚDO DAS ABAS ===== */
.tab-content {
    padding: 2.5rem;
    background: var(--white);
}

.tab-pane {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FORMULÁRIO DE PERFIL ===== */
.profile-form {
    max-width: 700px;
    margin: 0 auto;
}

.profile-form .form-group {
    margin-bottom: 2rem;
    position: relative;
}

.profile-form label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-form input,
.profile-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--profile-transition);
    background: #f9fafb;
    color: #374151;
    font-weight: 500;
}

.profile-form input:focus,
.profile-form textarea:focus {
    border-color: var(--profile-primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.profile-form input:hover,
.profile-form textarea:hover {
    border-color: var(--profile-accent);
    background: var(--white);
}

.profile-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.profile-form .btn {
    background: var(--profile-gradient);
    border: none;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--profile-transition);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    position: relative;
    overflow: hidden;
}

.profile-form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.profile-form .btn:hover::before {
    left: 100%;
}

.profile-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
}

.profile-form .btn:active {
    transform: translateY(0);
}

.profile-form .btn i {
    margin-right: 0.5rem;
}

/* ===== AÇÕES DO FORMULÁRIO ===== */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.form-actions .btn {
    flex: 1;
    min-width: 200px;
}

.form-actions .btn.outline {
    background: transparent;
    border: 2px solid var(--profile-primary);
    color: var(--profile-primary);
}

.form-actions .btn.outline:hover {
    background: var(--profile-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

/* ===== CARDS DE CONTEÚDO ===== */
.ebook-card,
.raffle-card,
.purchase-item {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--profile-transition);
    position: relative;
    overflow: hidden;
}

.ebook-card::before,
.raffle-card::before,
.purchase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--profile-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ebook-card:hover::before,
.raffle-card:hover::before,
.purchase-item:hover::before {
    transform: scaleX(1);
}

.ebook-card:hover,
.raffle-card:hover,
.purchase-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--profile-accent);
}

/* ===== ESTADOS VAZIOS ===== */
.no-items {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
    font-size: 1.1rem;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f5e8 100%);
    border-radius: 16px;
    border: 2px dashed #d1d5db;
    margin: 2rem 0;
}

.no-items i {
    font-size: 4rem;
    color: #9ca3af;
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-items h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #374151;
    font-weight: 600;
}

.no-items p {
    margin-bottom: 2rem;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
}

.no-items .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--profile-transition);
}

.no-items .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

/* ===== MODAIS ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--white);
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: var(--profile-border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-content h2 {
    color: var(--profile-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #6b7280;
    cursor: pointer;
    transition: var(--profile-transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--profile-primary);
    background: var(--profile-light);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .profile-info h2 {
        font-size: 2rem;
    }

    .profile-stats {
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: 80px;
        padding: 0.75rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .profile-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        min-width: 120px;
        padding: 1rem;
        font-size: 0.9rem;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .profile-form {
        max-width: 100%;
    }

    .modal-content {
        margin: 10% auto;
        padding: 2rem;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .profile-section {
        padding: 1rem 0 2rem 0;
    }

    .profile-container {
        margin: 0 1rem;
        border-radius: 12px;
    }

    .profile-header {
        padding: 1.5rem 1rem;
    }

    .profile-info h2 {
        font-size: 1.75rem;
    }

    .profile-stats {
        gap: 1rem;
    }

    .stat-item {
        min-width: 70px;
        padding: 0.5rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .tab-btn {
        min-width: 100px;
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .tab-content {
        padding: 1rem;
    }

    .profile-form input,
    .profile-form textarea {
        padding: 0.75rem 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        min-width: 100%;
    }

    .modal-content {
        margin: 15% auto;
        padding: 1.5rem;
    }
}

/* ===== ANIMAÇÕES E EFEITOS ===== */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== MELHORIAS ESPECÍFICAS ===== */
.profile-avatar .btn {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.profile-info p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.stat-item {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.tab-btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.profile-form label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== ESTADOS DE CARREGAMENTO ===== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--profile-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== INPUT DE ARQUIVO PERSONALIZADO ===== */
.file-input-wrapper {
    position: relative;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-input-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    transition: var(--profile-transition);
    text-align: center;
    min-height: 120px;
}

.file-input-placeholder:hover {
    border-color: var(--profile-accent);
    background: var(--profile-light);
}

.file-input-placeholder i {
    font-size: 2rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.file-input-placeholder span {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.file-input-placeholder small {
    color: #6b7280;
    font-size: 0.85rem;
}

.file-input-wrapper input[type="file"]:focus+.file-input-placeholder {
    border-color: var(--profile-primary);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

/* ===== PREVIEW DO AVATAR ===== */
.avatar-preview {
    margin: 1.5rem 0;
    text-align: center;
}

.avatar-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 50%;
    border: 4px solid var(--profile-primary);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.2);
    object-fit: cover;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--white);
    font-weight: 500;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.success {
    background: var(--profile-primary);
}

.toast.error {
    background: #ef4444;
}

.toast.info {
    background: #3b82f6;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== EFEITOS EXTRAS ===== */
.profile-container {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HOVER EFFECTS PARA CARDS ===== */
.ebook-card,
.raffle-card,
.purchase-item {
    position: relative;
    overflow: hidden;
}

.ebook-card::after,
.raffle-card::after,
.purchase-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.ebook-card:hover::after,
.raffle-card:hover::after,
.purchase-item:hover::after {
    left: 100%;
}

/* ===== MODAL DE PAGAMENTO PIX - DESIGN MODERNO ===== */
.pix-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.4s ease-out;
}

.pix-modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    margin: 3% auto;
    padding: 0;
    border-radius: 20px;
    width: 95%;
    max-width: 900px;
    min-height: 600px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.4s ease-out;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== HEADER DO MODAL PIX ===== */
.pix-modal-header {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.pix-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.pix-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.pix-header-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pix-header-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.pix-header-text h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pix-header-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    font-weight: 400;
}

.pix-close-btn {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pix-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.pix-close-btn i {
    font-size: 1.2rem;
}

/* ===== BODY DO MODAL PIX - LAYOUT PAISAGEM ===== */
.pix-modal-body {
    display: flex;
    min-height: 500px;
    padding: 0;
}

.pix-left-section {
    flex: 1;
    padding: 2rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pix-right-section {
    flex: 1;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f5e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pix-right-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%232e7d32" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

/* ===== DETALHES DO PAGAMENTO ===== */
.pix-payment-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pix-amount-card {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
    position: relative;
    overflow: hidden;
}

.pix-amount-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.amount-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.amount-value {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pix-expiry-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    color: #856404;
    font-weight: 500;
}

.pix-expiry-info i {
    color: #f39c12;
    font-size: 1.1rem;
}

/* ===== INSTRUÇÕES ===== */
.pix-instructions {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.pix-instructions h3 {
    color: #2e7d32;
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pix-instructions h3 i {
    color: #4caf50;
}

.instructions-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.step:hover {
    background: #e8f5e8;
    transform: translateX(5px);
}

.step-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-text {
    color: #495057;
    font-weight: 500;
    flex: 1;
}

/* ===== CONTAINER DO QR CODE ===== */
.pix-qr-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.qr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: #2e7d32;
    font-weight: 600;
    font-size: 1.1rem;
}

.qr-header i {
    font-size: 1.3rem;
}

.qr-code-wrapper {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pix-qr-code {
    width: 220px;
    height: 220px;
    border: 3px solid #2e7d32;
    border-radius: 16px;
    padding: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.2);
    transition: all 0.3s ease;
}

.pix-qr-code:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(46, 125, 50, 0.3);
}

.qr-fallback {
    width: 220px;
    height: 220px;
    border: 3px dashed #6c757d;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
}

.qr-fallback i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.qr-fallback p {
    margin: 0;
    font-weight: 500;
}

.pix-copy-btn {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    width: 100%;
    margin-top: 1.5rem;
}

.pix-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
}

.pix-copy-btn:active {
    transform: translateY(0);
}

.pix-copy-btn i {
    font-size: 1.1rem;
}

/* ===== FOOTER DO MODAL PIX ===== */
.pix-modal-footer {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e9ecef;
}

.pix-footer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.pix-footer-info i {
    color: #2e7d32;
    font-size: 1.1rem;
}

.pix-close-footer-btn {
    background: transparent;
    color: #6c757d;
    border: 2px solid #dee2e6;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pix-close-footer-btn:hover {
    background: #6c757d;
    color: #ffffff;
    border-color: #6c757d;
    transform: translateY(-1px);
}

/* ===== STATUS DE COMPRAS ===== */
.purchase-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.purchase-status.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.purchase-status.processing {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.purchase-status.completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.purchase-status.cancelled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== BOTÕES DE AÇÃO ===== */
.purchase-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.purchase-actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.purchase-actions .btn.primary {
    background: var(--profile-primary);
    color: var(--white);
}

.purchase-actions .btn.primary:hover {
    background: var(--profile-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.purchase-actions .btn.outline {
    background: transparent;
    color: var(--profile-primary);
    border: 2px solid var(--profile-primary);
}

.purchase-actions .btn.outline:hover {
    background: var(--profile-primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== RESPONSIVIDADE PARA MODAL PIX ===== */
@media (max-width: 768px) {
    .pix-modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: 500px;
        min-height: auto;
    }

    .pix-modal-body {
        flex-direction: column;
        min-height: auto;
    }

    .pix-left-section,
    .pix-right-section {
        padding: 1.5rem;
    }

    .pix-right-section {
        order: -1;
    }

    .pix-qr-code {
        width: 180px;
        height: 180px;
    }

    .qr-fallback {
        width: 180px;
        height: 180px;
    }

    .amount-value {
        font-size: 2rem;
    }

    .pix-modal-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .purchase-actions {
        flex-direction: column;
    }

    .purchase-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pix-modal-content {
        margin: 2% auto;
        width: 98%;
        border-radius: 16px;
    }

    .pix-modal-header {
        padding: 1rem 1.5rem;
    }

    .pix-header-icon {
        width: 40px;
        height: 40px;
    }

    .pix-header-text h2 {
        font-size: 1.3rem;
    }

    .pix-left-section,
    .pix-right-section {
        padding: 1rem;
    }

    .pix-qr-code {
        width: 150px;
        height: 150px;
    }

    .qr-fallback {
        width: 150px;
        height: 150px;
    }

    .amount-value {
        font-size: 1.8rem;
    }

    .step {
        padding: 0.5rem;
    }

    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}

.pix-instructions {
    overflow-y: auto;
}