:root {
    --bg-color: #fffdf9;
    --text-primary: #3d3128;
    --text-secondary: #756354;
    --card-bg: rgba(255, 255, 255, 0.85);
    --accent-color: #e58b3c;
    --accent-hover: #d1752b;
    --highlight-bg: #fff1e3;
    
    /* Social Colors */
    --fb-color: #1877F2;
    --insta-color: #E4405F;
    --tiktok-color: #000000;
    --shopee-color: #EE4D2D;
    --email-color: #EA4335;
    --ngl-color: #E94F85;
    
    --bg-gradient-1: #fff8f0;
    --bg-gradient-2: #ffedd8;
    --bg-gradient-3: #fffaf5;
    
    --shadow-sm: 0 4px 15px rgba(229, 139, 60, 0.05);
    --shadow-md: 0 10px 30px rgba(229, 139, 60, 0.08);
    --shadow-hover: 0 15px 35px rgba(229, 139, 60, 0.15);
    
    --border-radius: 24px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Be Vietnam Pro', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Beautiful mesh gradient background for bread aesthetic */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Lớp dưới cùng: Hình ảnh gốc ôm trọn cứng đơ không cho trượt scroll */
    background: url('background.jpg') center/cover no-repeat fixed;
    z-index: -2;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Lớp 2: Gradient phủ lên trên hình ảnh tạo độ mờ ảo, hòa trộn màu sắc */
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.88), rgba(255, 250, 245, 0.92));
    z-index: -1;
}

.bg-gradient::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Lớp 3: Các điểm sáng lấp lánh (flares) điểm xuyết */
    background: radial-gradient(circle at 15% 10%, rgba(242, 204, 143, 0.3) 0%, transparent 40%),
                radial-gradient(circle at 85% 80%, rgba(229, 139, 60, 0.2) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.5) 0%, transparent 60%);
    filter: blur(40px);
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 600px; /* Base for mobile/pad */
    padding: 50px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

/* Animations */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Section */
.profile {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.avatar-container {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, #f2cc8f, #e58b3c);
    box-shadow: var(--shadow-md), 0 0 0 8px rgba(229, 139, 60, 0.1);
    margin-bottom: 8px;
    animation: pulseBorder 3s infinite alternate;
}

@keyframes pulseBorder {
    0% { box-shadow: var(--shadow-md), 0 0 0 4px rgba(229, 139, 60, 0.1); }
    100% { box-shadow: var(--shadow-md), 0 0 0 12px rgba(229, 139, 60, 0.05); }
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    background-color: #fff;
    transition: transform 0.5s ease;
}

.avatar-container:hover .avatar {
    transform: scale(1.05);
}

.name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.bio {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 100%;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.main-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Links Section */
.links-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 18px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0; height: 100%;
    background-color: transparent;
    transition: var(--transition);
    opacity: 0.05;
    z-index: 0;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(229, 139, 60, 0.4);
}

.link-card:hover::before {
    width: 100%;
}

.link-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(229, 139, 60, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    transition: var(--transition);
    z-index: 1;
}

.link-icon {
    font-size: 26px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.link-card:hover .link-icon-wrapper {
    background: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.link-text {
    font-size: 1.15rem;
    font-weight: 600;
    flex-grow: 1;
    z-index: 1;
}

.link-subtext {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
    font-weight: 400;
    z-index: 1;
}

.link-text-group {
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* Brand Colors on Hover */
.link-card.fb:hover .link-icon { color: var(--fb-color); }
.link-card.fb:hover::before { background-color: var(--fb-color); }

.link-card.fb-page:hover .link-icon { color: var(--fb-color); }
.link-card.fb-page:hover::before { background-color: var(--fb-color); }

.link-card.insta:hover .link-icon { color: var(--insta-color); }
.link-card.insta:hover::before { background-color: var(--insta-color); }

.link-card.tiktok:hover .link-icon { color: var(--tiktok-color); }
.link-card.tiktok:hover::before { background-color: var(--tiktok-color); }

.link-card.shopee:hover .link-icon { color: var(--shopee-color); }
.link-card.shopee:hover::before { background-color: var(--shopee-color); }

.link-card.email:hover .link-icon { color: var(--email-color); }
.link-card.email:hover::before { background-color: var(--email-color); }

.link-card.ngl-link:hover .link-icon { color: var(--ngl-color); }
.link-card.ngl-link:hover::before { background-color: var(--ngl-color); }

/* Highlight Link for Extension */
.highlight-link {
    background: linear-gradient(135deg, rgba(255, 241, 227, 0.9), rgba(255, 255, 255, 0.9));
    border: 2px solid rgba(229, 139, 60, 0.4);
}
.highlight-link:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(229, 139, 60, 0.2);
}
.highlight-link .link-icon-wrapper {
    background: rgba(229, 139, 60, 0.15);
}
.highlight-link .link-icon {
    color: var(--accent-color);
}

/* Buy Me A Coffee Section */
.support-section {
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.support-header i {
    font-size: 26px;
    color: var(--accent-color);
}

.support-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.bank-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 246, 0.95));
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(229, 139, 60, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bank-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(229,139,60,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    pointer-events: none;
}

.bank-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.bank-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bank-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

.account-name {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.account-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-top: 6px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.bank-actions {
    display: flex;
    gap: 8px;
}

.copy-btn, .qr-btn {
    background: white;
    border: 1px solid rgba(229, 139, 60, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--accent-color);
    font-size: 22px;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.copy-btn:hover, .qr-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(229,139,60,0.3);
}

.copy-tooltip {
    position: absolute;
    top: -40px;
    background: var(--text-primary);
    color: white;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: var(--text-primary) transparent transparent transparent;
}

.copy-btn.copied .copy-tooltip {
    opacity: 1;
    visibility: visible;
    top: -45px;
}

/* QR Modal */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.qr-modal-content {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    max-width: 90%;
    width: 320px;
    box-shadow: var(--shadow-hover);
    transform: scale(0.9);
    transition: var(--transition);
}

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

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.qr-image {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #eee;
}

/* Footer */
footer {
    margin-top: 20px;
    padding-bottom: 20px;
}

footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

@media (max-width: 480px) {
    .container {
        padding: 40px 20px;
        max-width: 100%;
    }
    
    .name { font-size: 1.7rem; }
    
    .link-card { padding: 16px 20px; }
    .link-icon-wrapper { width: 44px; height: 44px; margin-right: 16px; }
    .link-icon { font-size: 24px; }
    
    .bank-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .account-number {
        font-size: 1.3rem;
        word-break: break-all;
    }

    .bank-number {
        font-size: 1.2rem;
        word-break: break-all;
    }
    
    .bank-actions {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        justify-content: flex-end;
        padding-top: 4px;
    }
    
    .copy-btn, .qr-btn, .bank-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

/* ==========================================
   Language Switcher Styling
   ========================================== */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(229, 139, 60, 0.15);
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.lang-btn:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
}

.lang-btn i {
    font-size: 16px;
    color: var(--accent-color);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(229, 139, 60, 0.2);
    border-radius: 18px;
    padding: 6px;
    width: 160px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--highlight-bg);
    color: var(--accent-color);
    padding-left: 16px;
}

.lang-option.active {
    background: rgba(229, 139, 60, 0.1);
    color: var(--accent-color);
    font-weight: 600;
}

@media (max-width: 480px) {
    .language-switcher {
        top: 12px;
        right: 12px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 0.78rem;
        gap: 4px;
    }
    
    .lang-btn i {
        font-size: 14px;
    }
    
    .lang-dropdown {
        width: 140px;
        border-radius: 14px;
    }
    
    .lang-option {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
}

