        * { box-sizing: border-box; margin: 0; padding: 0; }

        body { 
            font-family: 'Poppins', sans-serif; 
            min-height: 100vh; 
            display: flex; 
            flex-direction: column; 
            justify-content: center; 
            align-items: center; 
            background: url('https://images.unsplash.com/photo-1557683316-973673baf926?q=80&w=1080') no-repeat center center/cover; 
            background-attachment: fixed !important; 
            background-size: cover !important; 
            padding: 20px 0; 
            transition: background 0.5s ease;
        }

        .card-container { 
            background: rgba(255, 255, 255, 0.15); 
            backdrop-filter: blur(20px); 
            -webkit-backdrop-filter: blur(20px); 
            border: 1px solid rgba(255, 255, 255, 0.3); 
            border-radius: 24px; 
            padding: 0 0 40px 0; 
            width: 90%; 
            max-width: 420px; 
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); 
            position: relative; 
            color: white; 
            margin: auto;
            overflow: hidden;
            animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        }

        .controls { 
            position: relative; 
            padding: 20px 20px 15px 20px; 
            display: flex; 
            justify-content: space-between; 
            z-index: 10; 
            width: 100%;
        }

        .lang-switch { display: flex; background: rgba(0,0,0,0.2); border-radius: 20px; overflow: hidden; }
        .lang-switch button { background: transparent; border: none; color: rgba(255,255,255,0.8); padding: 6px 12px; cursor: pointer; font-weight: 600; transition: 0.3s; }
        .lang-switch button.active { background: white; color: #333; }

        .login-icon-btn { background: rgba(0,0,0,0.2); border: none; color: white; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; transition: 0.3s; }
        .login-icon-btn:hover { background: rgba(0,0,0,0.5); transform: scale(1.1); }

        .cover-photo { width: 100%; height: 140px; object-fit: cover; display: block; background: rgba(0,0,0,0.1); }

        .profile-content { padding: 0 30px; display: flex; flex-direction: column; align-items: center; width: 100%; }

        .card-avatar { 
            width: 130px; height: 130px; border-radius: 50%; object-fit: cover; 
            border: 4px solid rgba(255, 255, 255, 0.9); margin-top: -65px; margin-bottom: 10px;
            position: relative; z-index: 2; box-shadow: 0 8px 20px rgba(0,0,0,0.2); background: white;
        }

        .name { font-size: 26px; font-weight: 600; margin-bottom: 5px; text-align: center; }
        .job-title { font-size: 15px; font-weight: 300; margin-bottom: 20px; opacity: 0.9; text-transform: uppercase; text-align: center; }

        .btn-save-contact {
            background: linear-gradient(135deg, #f39c12, #e67e22); color: white; border: none; padding: 12px 25px; border-radius: 50px;
            font-size: 15px; font-weight: 600; cursor: pointer; margin-bottom: 25px; box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4); 
            transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; font-family: 'Poppins', sans-serif;
            animation: pulseGlow 2s infinite;
        }
        .btn-save-contact:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(230, 126, 34, 0.6); }

        .contact-section-title { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.9); text-transform: uppercase; letter-spacing: 1px; margin: 15px 0 15px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.3); padding-bottom: 6px; width: 100%; }

        #display-links { width: 100%; }

        .btn-group { display: flex; flex-direction: column; gap: 14px; width: 100%; }
        .btn { text-decoration: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 8px 8px; border-radius: 50px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: white; transition: 0.3s; overflow: hidden; cursor: pointer; }
        .btn:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-3px); }
        .btn-icon-wrapper { width: 44px; height: 44px; background: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; overflow: hidden; flex-shrink: 0; }
        .btn-icon-wrapper i { font-size: 18px; color: #2c3e50; } 
        .btn-text { flex: 1; text-align: left; margin-left: 16px; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 5px; }
        .btn-arrow { flex-shrink: 0; }

        .social-icons-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin-top: 20px; }
        .social-icon-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; transition: 0.3s; cursor: pointer; }
        .social-icon-wrapper { width: 65px; height: 65px; border-radius: 50%; display: flex; justify-content: center; align-items: center; position: relative; padding: 2px; flex-shrink: 0; background: linear-gradient(rgba(255,255,255,0.15), rgba(255,255,255,0.02)) padding-box, linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1)) border-box; border: 2px solid transparent; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
        .social-icon-img { width: 36px; height: 36px; object-fit: contain; transition: 0.3s; }
        .social-icon-item:hover .social-icon-wrapper { transform: translateY(-5px); background: linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.1)) padding-box, linear-gradient(135deg, #1bcedf, #5b247a) border-box; box-shadow: 0 12px 24px rgba(27, 206, 223, 0.4); }
        .social-icon-text { font-size: 12px; color: rgba(255,255,255,0.95); font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
        
        .company-block { background: rgba(0, 0, 0, 0.15); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 16px; padding: 20px 15px; margin-top: 15px; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%;}
        .company-logo { width: 70px; height: auto; border-radius: 8px; background: white; padding: 5px; }
        .company-details { text-align: center; width: 100%; }
        
        .company-details h4 { font-size: clamp(13px, 4.5vw, 16px); font-weight: 600; color: #fff; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
        .company-details p { font-size: 12px; font-weight: 300; color: rgba(255, 255, 255, 0.85); margin-bottom: 6px; line-height: 1.4; display: flex; align-items: center; justify-content: center; gap: 8px; }
        .company-details a { color: rgba(255, 255, 255, 0.9); text-decoration: none; font-weight: 500;}
        .company-details a:hover { color: #fff; text-decoration: underline; }

        .attribution { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 20px; text-align: center; }
        .attribution a { color: rgba(255,255,255,0.6); text-decoration: none; }
        .attribution a:hover { text-decoration: underline; }

        .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); justify-content: center; align-items: center; z-index: 1000; }
        .modal-content { background: #fcfcfc; color: #333; padding: 25px; border-radius: 20px; width: 95%; max-width: 450px; max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);}
        .modal h2 { text-align: center; font-size: 20px; color: #2c3e50; margin-bottom: 5px;}
        .section-title { font-size: 14px; font-weight: 600; color: #7f8c8d; text-transform: uppercase; margin-top: 10px; text-align: center;}
        
        .modal input[type="text"], .modal input[type="password"], .modal select { width: 100%; padding: 12px 15px; border: 1px solid #dcdde1; border-radius: 10px; font-family: 'Poppins', sans-serif; font-size: 14px; outline: none; transition: 0.3s; background: white; margin-bottom: 10px; } 
        .modal input:focus, .modal select:focus { border-color: #3498db; }
        
        .upload-box { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 5px 0 15px; }
        .upload-box label { font-size: 12px; font-weight: 600; color: #7f8c8d; text-transform: uppercase; text-align: center;}
        
        .avatar-edit-container { position: relative; width: 100px; height: 100px; margin: 5px auto 15px; }
        .preview-area-circle { width: 100px; height: 100px; border-radius: 50%; border: 2px dashed #bdc3c7; background-color: #f8f9fa; background-size: cover; background-position: center; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; }
        .preview-area-circle:hover { border-color: #3498db; background-color: #f1f8ff; }
        .edit-badge { position: absolute; bottom: 0; right: 0; width: 32px; height: 32px; background: #3498db; color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 14px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.2); border: 2px solid white; transition: 0.3s; pointer-events: none; }
        
        .preview-area.qr { border: 2px dashed #bdc3c7; cursor: pointer; background-color: #f8f9fa; background-size: cover; background-position: center; display: flex; justify-content: center; align-items: center; transition: 0.3s; color: #7f8c8d; border-radius: 12px; height: 90px; width: 90px; }
        .preview-area.qr:hover { border-color: #3498db; color: #3498db; background-color: #f1f8ff; }
        
        .zalo-input-group { display: flex; align-items: center; width: 100%; margin-bottom: 10px; }
        .zalo-prefix { background: #f1f2f6; color: #57606f; padding: 12px 12px; border: 1px solid #dcdde1; border-right: none; border-radius: 10px 0 0 10px; font-size: 14px; font-weight: 500; white-space: nowrap; user-select: none; height: 46px; display: flex; align-items: center; }
        .zalo-input-group input { margin-bottom: 0 !important; border-radius: 0 10px 10px 0 !important; height: 46px; }

        .palette-grid { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
        .color-swatch { width: 45px; height: 45px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; transition: 0.3s; box-shadow: 0 3px 6px rgba(0,0,0,0.15); }
        .color-swatch:hover { transform: scale(1.15); }
        .color-swatch.active { border-color: #3498db; transform: scale(1.15); box-shadow: 0 0 10px rgba(52, 152, 219, 0.5); }

        #cropModal .modal-content { max-width: 400px; padding: 15px; }
        .crop-container { width: 100%; height: 300px; background: #eee; margin-bottom: 15px; }
        .crop-container img { max-width: 100%; max-height: 100%; }

        #qrModal .modal-content { align-items: center; max-width: 320px; padding: 30px 20px;}
        #qrModal img { width: 220px; height: 220px; object-fit: contain; border-radius: 12px; border: 2px solid #ecf0f1; margin-bottom: 10px;}
        .qr-id-container { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 5px; }
        .qr-id-text { font-size: 18px; font-weight: 600; color: #e74c3c; margin-bottom: 0; text-align: center; }
        .btn-copy-id {
            background: rgba(231, 76, 60, 0.1); color: #e74c3c; border: none; width: 32px; height: 32px;
            border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center;
            transition: 0.3s; font-size: 14px;
        }
        .btn-copy-id:hover { background: #e74c3c; color: white; }
        .qr-guide { font-size: 13px; color: #7f8c8d; text-align: center; margin-bottom: 15px;}

        .social-box { border: 1px solid #e1e8ed; padding: 15px; border-radius: 12px; background: white; position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.02); display: flex; flex-direction: column; gap: 10px;}
        .remove-social { position: absolute; top: 15px; right: 15px; color: #e74c3c; cursor: pointer; border: none; background: rgba(231, 76, 60, 0.1); width: 30px; height: 30px; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: 0.3s; }
        .remove-social:hover { background: #e74c3c; color: white; }
        .add-btn { background: #f1f2f6; color: #2f3542; border: 1px dashed #a4b0be; padding: 12px; border-radius: 10px; cursor: pointer; font-weight: 600; width: 100%; transition: 0.3s;}
        
        .modal-buttons { display: flex; gap: 12px; margin-top: 20px; width: 100%;}
        .modal-buttons button { flex: 1; padding: 14px; border: none; border-radius: 10px; cursor: pointer; font-weight: 600; color: white; font-size: 15px; transition: 0.3s;}
        .btn-save { background: #2ecc71; }
        .btn-cancel { background: #95a5a6; }

        .btn-register-consult {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 250px; /* Chiều rộng bằng với nút Lưu danh bạ */
    margin: 10px  0px ; /* Tạo khoảng cách với nút trên và các phần tử dưới */
    padding: 12px 20px;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4); 
    border-radius: 25px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hiệu ứng khi người dùng rê chuột vào nút */
.btn-register-consult:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(230, 126, 34, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0);
    }
}