/* ProfitGate Premium Modal Styles */
#pg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#pg-modal-overlay:not(.pg-hidden) {
    opacity: 1;
    pointer-events: auto;
}

.pg-hidden {
    display: none !important;
}

#pg-modal {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 32px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#pg-modal-overlay:not(.pg-hidden) #pg-modal {
    transform: translateY(0);
}

.pg-logo-placeholder {
    width: 48px;
    height: 48px;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    border-radius: 12px;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pg-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 12px;
}

#pg-modal h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

#pg-modal p {
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

#pg-otp-input-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.pg-otp-box {
    width: 50px;
    height: 60px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s ease;
}

.pg-otp-box:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

#pg-verify-btn {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    transition: transform 0.2s ease;
}

#pg-verify-btn:active {
    transform: scale(0.98);
}

#pg-cancel-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

#pg-error-msg {
    color: #ff4d4d;
    font-size: 12px;
    margin-bottom: 16px;
}

.pg-modal-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    color: #aaa;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}