/* Premium Compact Card Modal Styles */
.modal-content.premium-fullscreen {
    background: linear-gradient(165deg, #1a1a1a 0%, #050505 100%);
    width: 90%;
    max-width: 380px;
    height: auto;
    max-height: 90vh;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    margin: auto;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(20px);
}

/* Modal overlay and content styles moved to modal.css for consistency */

/* Pix Overlay - Uses standard modal-overlay styles */
.modal-overlay.pix-overlay-custom {
    background-color: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.close-modal-round {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.centered-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 20px;
    width: 100%;
    overflow-y: auto;
    max-height: 100%;
}

.pix-header-info {
    margin-bottom: 20px;
}

.pix-header-info .label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gold-amount {
    color: var(--accent-gold);
    font-size: 28px;
    font-weight: 800;
    margin: 5px 0 0 0;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    margin-bottom: 15px;
}

.qrcode-wrapper-premium {
    background: #fff;
    padding: 10px;
    border-radius: 20px;
    width: 200px;
    height: 200px;
    margin: 0 auto 15px auto;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.1);
}

.qrcode-wrapper-premium img {
    width: 100%;
    height: 100%;
    display: block;
}

.pix-timer-pill {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: monospace;
    color: #bbb;
    font-size: 13px;
    margin-bottom: 20px;
}

.pix-actions {
    width: 100%;
    position: relative;
}

.btn-gold-glitch {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    font-weight: 900;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 20px rgba(255, 165, 0, 0.3);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-gold-glitch:active {
    transform: scale(0.98);
}

.hint-text {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    margin-top: 10px;
}

.status-pill {
    margin-top: 30px;
    font-size: 12px;
    letter-spacing: 2px;
    color: #00C8FF;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-pill .dot {
    width: 8px;
    height: 8px;
    background: #00C8FF;
    border-radius: 50%;
    box-shadow: 0 0 10px #00C8FF;
}

.premium-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.05);
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin: 0 auto 20px auto;
}

.pulsing-text {
    animation: pulse-opacity 2s infinite;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes pulse-opacity {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.success-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #4CAF50;
    color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 40px;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.3);
}

.error-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #ff4444;
    color: #ff4444;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 40px;
}


/* Slide-up handled globally */

/* PIX Payment Modal Styles */
.pix-state {
    text-align: center;
}

.pix-state.hidden {
    display: none;
}

/* Success State Premium Styling */
.success-animation {
    margin: 10px auto 30px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.2);
    animation: pulse-gold 2s infinite;
}

.checkmark.draw {
    width: 25px;
    height: 45px;
    border: solid var(--color-primary);
    border-width: 0 4px 4px 0;
    transform: rotate(45deg) translate(-2px, -4px);
    opacity: 0;
    animation: checkmark-draw 0.6s ease-out forwards 0.3s;
}

.success-title {
    color: var(--color-primary) !important;
    font-size: 1.8rem;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

.success-msg {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.success-actions {
    margin-top: 20px;
    width: 100%;
}

.success-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animations */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 193, 7, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

@keyframes checkmark-draw {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }

    40% {
        height: 45px;
        width: 0;
        opacity: 1;
    }

    100% {
        height: 45px;
        width: 25px;
        opacity: 1;
    }
}

/* Error State Styling */
.error-animation {
    margin: 10px auto 30px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 30px rgba(244, 67, 54, 0.2);
    animation: pulse-red 2s infinite;
}

.error-x {
    position: relative;
    width: 40px;
    height: 40px;
}

.error-x span {
    position: absolute;
    display: block;
    width: 100%;
    height: 4px;
    background-color: #ef4444;
    border-radius: 2px;
    top: 50%;
    left: 0;
    margin-top: -2px;
}

.error-x .left {
    transform: rotate(45deg);
}

.error-x .right {
    transform: rotate(-45deg);
}

.error-title {
    color: #ef4444 !important;
    font-size: 1.8rem;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(244, 67, 54, 0.3);
}

.error-msg {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(244, 67, 54, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}