#page-content,
#popup-success-content,
.zoom08x {
    zoom: 0.85;
    /* ลดทั้งหน้าเหลือ 80% */
}

@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



.message-alert {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.message-alert.success {
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.message-alert.error {
    color: #c62828;
    border-left: 4px solid #f44336;
}

.message-alert.info {
    color: #1565c0;
    border-left: 4px solid #2196f3;
}

.hidden {
    display: none !important;
}



.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 4px solid rgba(255, 107, 53, 0.2);
    border-left-color: #ff6b35;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.popup-overlay {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInBg 0.3s;
}

.popup-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px 24px;
    min-width: 400px;
    max-width: 520px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: popupBounce 0.4s;
}

.popup-box .success-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    /* จัดแนวนอน */
    align-items: center;
    /* จัดแนวตั้ง */
}

.popup-box .success-title {
    color: #333;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
}

.popup-box .success-subtitle {
    color: #666;
    /* margin-bottom: 20px; */
    font-size: 14px;
}

.popup-box .login-info {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.popup-box .login-info div {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
}

.popup-box .login-info span {
    font-weight: bold;
    color: #2196f3;
    font-family: monospace;
}

.popup-box .btn-login {
    width: 100%;
    padding: 12px;
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.popup-box .btn-login:hover {
    background: #1976d2;
}

.popup-box .btn-home {
    width: 100%;
    padding: 12px;
    background: #f5f5f5;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.3s ease;
}

.popup-box .btn-home:hover {
    background: #e0e0e0;
}

.popup-box .contact-info {
    font-size: 12px;
    color: #666;
}

.popup-box .contact-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.popup-box .contact-links a {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #666;
    font-size: 12px;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.popup-close:hover {
    transform: scale(1.2);
}

.fail-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #f44336;
    margin: 15px 0 10px;
}

.fail-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #444;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
}

.copy-btn {
    display: flex;
    align-items: center;
    background: #e3f2fd;
    border: none;
    color: #1565c0;
    border-radius: 6px;
    font-size: 15px;
    padding: 6px 6px;
    cursor: pointer;
    transition: background 0.18s;
    gap: 6px;
    box-shadow: 0 1px 3px #1565c00a;
}

.copy-btn:hover {
    background: #bbdefb;
}

.copy-label {
    font-weight: 500;
}

.copy-btn {
    position: relative;
}

.copy-btn .tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: -20px;
    left: 70%;
    transform: translateX(-50%);
    background: #fff;
    color: #fff;
    font-size: 13px;
    border-radius: 6px;
    padding: 5px 14px;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

.copy-btn.show-tooltip .tooltip {
    visibility: visible;
    opacity: 1;
}

.login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 2px 0;
}

@keyframes fadeInBg {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popupBounce {
    0% {
        transform: scale(0.7);
    }

    70% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

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