/* Reset CSS & Biến toàn cục */
:root {
    --bg-dark: #0a1122; /* Màu nền navy đậm */
    --bg-light-spot: #182b4c; /* Vệt sáng tạo chiều sâu */
    --text-white: #FFFFFF;
    --text-subtitle: #C8D3E0;
    --btn-gradient-start: #2A8BF2;
    --btn-gradient-end: #46C0FA;
    --btn-hover-glow: rgba(70, 192, 250, 0.4);
    --modal-bg: #FFFFFF;
    --modal-text: #4A4A4A;
    --modal-btn-bg: #6D78E3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Tắt highlight màu xanh trên mobile */
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: radial-gradient(circle at 50% 10%, var(--bg-light-spot), var(--bg-dark) 80%);
    background-attachment: fixed;
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    line-height: 1.5;
}

.profile-card {
    width: 100%;
    max-width: 480px; 
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.header-section {
    text-align: center;
    margin-bottom: 32px;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    animation: rotateRing 20s linear infinite;
}

@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.avatar-img {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--text-white);
    z-index: 1;
}

.main-name { font-size: 32px; font-weight: 700; background: linear-gradient(to right, #38BDF8, #818CF8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; }

.subtitle {
    font-weight: 400;
    font-size: 15px;
    color: var(--text-subtitle);
}

.section {
    width: 100%;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-weight: 600;
    font-size: 19px;
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-icons a {
    color: var(--text-white);
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.social-icons svg {
    width: 28px;
    height: 28px;
}

.social-icons a:hover,
.social-icons a:active {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.donate-logos {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.donate-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-white);
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.donate-btn:hover,
.donate-btn:active {
    transform: scale(1.05);
    opacity: 0.8;
}

.utilities-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.utility-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    border-radius: 50px; 
    background: linear-gradient(90deg, var(--btn-gradient-start), var(--btn-gradient-end));
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.utility-btn:hover,
.utility-btn:active {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 20px var(--btn-hover-glow);
}


.footer {
    margin-top: auto; 
    padding-top: 20px;
}

.footer p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4); 
    font-weight: 400;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--modal-bg);
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 300px;
    width: 90%;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #F0F8F1; 
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-icon svg {
    width: 40px;
    height: 40px;
}

.modal-title {
    color: var(--modal-text);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-text {
    color: #666;
    font-size: 15px;
    margin-bottom: 24px;
}

.modal-btn {
    background: var(--modal-btn-bg);
    color: white;
    border: none;
    padding: 12px 36px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s ease;
}

.modal-btn:active {
    opacity: 0.8;
}

@media screen and (min-width: 768px) {
    .main-name { font-size: 38px; }
    .section-title { font-size: 20px; }
}