/* HMVIP Checkout Modal - Complete CSS */

/* === BASE === */
.hmvip-checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999999;
}

.hmvip-checkout-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.hmvip-modal-open {
    overflow: hidden;
}

.hmvip-checkout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.hmvip-checkout-content {
    position: relative;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16162a 100%);
    border-radius: 16px;
    overflow-y: auto;
    margin: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* === CLOSE BUTTON === */
.hmvip-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hmvip-close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.hmvip-close-button svg {
    width: 20px;
    height: 20px;
}

/* === BODY === */
.hmvip-checkout-body {
    padding: 40px 30px;
}

/* === LOADING === */
.hmvip-loading {
    text-align: center;
    padding: 60px 20px;
}

.hmvip-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #e91e63;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hmvip-loading p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* === QR CODE CONTAINER === */
.hmvip-qr-container {
    text-align: center;
}

.hmvip-checkout-header {
    margin-bottom: 24px;
}

.hmvip-checkout-header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hmvip-checkout-header h2 svg {
    color: #e91e63;
}

.hmvip-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.hmvip-qr-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    display: inline-block;
    margin-bottom: 20px;
}

.hmvip-qr-image {
    width: 220px;
    height: 220px;
    display: block;
}

/* === PIX CODE === */
.hmvip-pix-code {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.hmvip-pix-code code {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    word-break: break-all;
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 12px;
    max-height: 60px;
    overflow-y: auto;
}

.hmvip-copy-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #e91e63 0%, #ff5722 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hmvip-copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.hmvip-copy-button.copied {
    background: linear-gradient(135deg, #00d9a3 0%, #00b894 100%);
}

/* === TIMER === */
.hmvip-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 20px;
}

.hmvip-timer svg {
    color: #ff9800;
}

.hmvip-countdown {
    color: #ff9800;
    font-family: 'Courier New', monospace;
}

/* === STATUS === */
.hmvip-status-waiting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: rgba(233, 30, 99, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.hmvip-pulse {
    width: 12px;
    height: 12px;
    background: #e91e63;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* === SUCCESS === */
.hmvip-success-container {
    text-align: center;
    padding: 40px 20px;
}

.hmvip-success-icon {
    margin-bottom: 24px;
}

.hmvip-success-icon svg {
    color: #00d9a3;
}

.hmvip-success-container h2 {
    color: #00d9a3;
    font-size: 28px;
    margin: 0 0 12px;
}

.hmvip-success-container p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    margin: 0 0 30px;
}

.hmvip-continue-button {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #00d9a3 0%, #00b894 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hmvip-continue-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 217, 163, 0.4);
}

/* === ERROR === */
.hmvip-error-container {
    text-align: center;
    padding: 40px 20px;
}

.hmvip-error-icon {
    margin-bottom: 24px;
}

.hmvip-error-icon svg {
    color: #ff5252;
}

.hmvip-error-container h2 {
    color: #fff;
    font-size: 24px;
    margin: 0 0 12px;
}

.hmvip-error-container p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0 0 30px;
}

.hmvip-retry-button {
    display: inline-block;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hmvip-retry-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* === CHECKOUT BUTTON (on product pages) === */
.hmvip-checkout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #e91e63 0%, #ff5722 100%);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.hmvip-checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.hmvip-btn-icon {
    font-size: 20px;
}

/* === MOBILE === */
@media (max-width: 480px) {
    .hmvip-checkout-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }

    .hmvip-checkout-body {
        padding: 30px 20px;
    }

    .hmvip-qr-image {
        width: 180px;
        height: 180px;
    }

    .hmvip-checkout-header h2 {
        font-size: 20px;
    }
}
}

body.hmvip-modal-open {
    overflow: hidden;
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .hmvip-checkout-content {
        width: 480px;
        height: auto;
        max-height: 90vh;
        border-radius: 24px;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .hmvip-checkout-content {
        width: 540px;
    }
}
