/* Font Be Vietnam Pro - Tối ưu cho tiếng Việt */

:root {
    --primary-color: #007AFF;
    --primary-hover: #0056B3;
    --bg-color: #F8F9FA;
    --text-main: #1D1D1F;
    --text-muted: #86868B;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: 100px; /* Space for sticky footer */
}

.container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: white;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.05);
}

/* Header & Background */
.header {
    position: relative;
    height: 220px;
    overflow: visible;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); /* Fallback */
}

.profile-section {
    position: relative;
    text-align: center;
    margin-top: -60px;
    padding: 0 20px;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background: white;
    object-fit: cover;
}

/* Typography */
.name-h1 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.name-h1 span {
    font-weight: 400;
    text-transform: lowercase;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    overflow: hidden;
}

.social-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.social-btn:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(0,122,255,0.3);
}

/* Info Card */
.info-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #F2F2F7;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: scale(1.02);
}

.info-icon {
    color: var(--text-muted);
}

.info-text {
    font-size: 15px;
    color: var(--text-main);
}

/* Main Buttons */
.main-actions {
    padding: 10px 20px;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(0,122,255,0.25);
    margin-bottom: 20px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,122,255,0.35);
}

/* Links List */
.links-list {
    padding: 0 20px;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-color);
    border-radius: 16px;
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.link-item:hover {
    background: white;
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.link-item i {
    color: var(--primary-color);
}

.premium-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
    animation: pulse 2s infinite;
}

.premium-btn i {
    color: white !important;
}

.premium-btn:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

.loader {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FFA500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

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

/* Sticky Footer */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 90px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 20px 25px 20px; /* Extra bottom padding for home indicator */
    border-top: 1px solid #F2F2F7;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-icon {
    font-size: 22px;
}

.qr-btn {
    width: 65px;
    height: 65px;
    background: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin-top: -45px;
    box-shadow: 0 10px 25px rgba(0,122,255,0.4);
    transition: var(--transition);
}

.qr-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0,122,255,0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    width: 80%;
    max-width: 320px;
    transform: scale(0.8);
    transition: var(--transition);
}

.modal.active {
    display: flex;
}

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

.qr-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.close-modal {
    margin-top: 15px;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 500;
}
